@mriqbox/ui-kit 3.0.0 → 3.2.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.
Files changed (39) hide show
  1. package/bin/cli.js +10 -1
  2. package/dist/components/atoms/MriButton.d.ts +1 -0
  3. package/dist/components/atoms/MriButton.stories.d.ts +1 -0
  4. package/dist/components/atoms/MriInput.d.ts +7 -1
  5. package/dist/components/atoms/MriInput.stories.d.ts +4 -2
  6. package/dist/components/atoms/MriSkeleton.d.ts +2 -0
  7. package/dist/components/atoms/MriSkeleton.stories.d.ts +16 -0
  8. package/dist/components/atoms/MriSpinner.d.ts +4 -0
  9. package/dist/components/atoms/MriSpinner.stories.d.ts +20 -0
  10. package/dist/components/molecules/MriActionButton.d.ts +9 -0
  11. package/dist/components/molecules/MriActionButton.stories.d.ts +30 -0
  12. package/dist/components/molecules/MriActionDropdown.d.ts +28 -0
  13. package/dist/components/molecules/MriActionDropdown.stories.d.ts +51 -0
  14. package/dist/components/molecules/MriActionModal.d.ts +17 -0
  15. package/dist/components/molecules/MriActionModal.stories.d.ts +15 -0
  16. package/dist/components/molecules/MriColorPicker.d.ts +7 -0
  17. package/dist/components/molecules/MriColorPicker.stories.d.ts +8 -0
  18. package/dist/components/molecules/MriCompactSearch.d.ts +4 -1
  19. package/dist/components/molecules/MriCompactSearch.stories.d.ts +3 -0
  20. package/dist/components/molecules/MriCreatableCombobox.d.ts +17 -0
  21. package/dist/components/molecules/MriCreatableCombobox.stories.d.ts +8 -0
  22. package/dist/components/molecules/MriDatePicker.d.ts +3 -1
  23. package/dist/components/molecules/MriDatePicker.stories.d.ts +2 -0
  24. package/dist/components/molecules/MriDrawer.d.ts +19 -0
  25. package/dist/components/molecules/MriDrawer.stories.d.ts +13 -0
  26. package/dist/components/molecules/MriModal.stories.d.ts +1 -0
  27. package/dist/components/molecules/MriSearchInput.d.ts +3 -1
  28. package/dist/components/molecules/MriSearchInput.stories.d.ts +2 -0
  29. package/dist/components/molecules/MriSelectSearch.d.ts +5 -1
  30. package/dist/components/molecules/MriSelectSearch.stories.d.ts +4 -0
  31. package/dist/components/molecules/MriTimePicker.d.ts +3 -1
  32. package/dist/components/molecules/MriTimePicker.stories.d.ts +2 -0
  33. package/dist/components/organisms/MriKeyboardVisualizer.d.ts +5 -0
  34. package/dist/components/organisms/MriKeyboardVisualizer.stories.d.ts +7 -0
  35. package/dist/index.d.ts +7 -0
  36. package/dist/index.es.js +4973 -3927
  37. package/dist/index.umd.js +95 -70
  38. package/dist/style.css +1 -1
  39. package/package.json +3 -1
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(R,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],B):(R=typeof globalThis<"u"?globalThis:R||self,B(R.MriUiKit={},R.React,R.ReactDOM))})(this,function(R,B,vo){"use strict";function po(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=po(B),go=po(vo);var Xr={exports:{}},Bt={};/**
1
+ (function(O,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):(O=typeof globalThis<"u"?globalThis:O||self,E(O.MriUiKit={},O.React,O.ReactDOM))})(this,function(O,E,Yo){"use strict";function zo(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const m=zo(E),Vo=zo(Yo);var cn={exports:{}},Jt={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var bo;function Us(){if(bo)return Bt;bo=1;var e=B,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,c,l){var d,m={},h=null,v=null;l!==void 0&&(h=""+l),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(v=c.ref);for(d in c)n.call(c,d)&&!a.hasOwnProperty(d)&&(m[d]=c[d]);if(s&&s.defaultProps)for(d in c=s.defaultProps,c)m[d]===void 0&&(m[d]=c[d]);return{$$typeof:t,type:s,key:h,ref:v,props:m,_owner:o.current}}return Bt.Fragment=r,Bt.jsx=i,Bt.jsxs=i,Bt}var Yt={};/**
9
+ */var Uo;function Bl(){if(Uo)return Jt;Uo=1;var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,u,c){var d,f={},h=null,v=null;c!==void 0&&(h=""+c),u.key!==void 0&&(h=""+u.key),u.ref!==void 0&&(v=u.ref);for(d in u)n.call(u,d)&&!a.hasOwnProperty(d)&&(f[d]=u[d]);if(i&&i.defaultProps)for(d in u=i.defaultProps,u)f[d]===void 0&&(f[d]=u[d]);return{$$typeof:t,type:i,key:h,ref:v,props:f,_owner:o.current}}return Jt.Fragment=r,Jt.jsx=s,Jt.jsxs=s,Jt}var er={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,141 +14,166 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var yo;function qs(){return yo||(yo=1,process.env.NODE_ENV!=="production"&&function(){var e=B,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),b=Symbol.iterator,g="@@iterator";function y(p){if(p===null||typeof p!="object")return null;var M=b&&p[b]||p[g];return typeof M=="function"?M:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(p){{for(var M=arguments.length,D=new Array(M>1?M-1:0),$=1;$<M;$++)D[$-1]=arguments[$];C("error",p,D)}}function C(p,M,D){{var $=w.ReactDebugCurrentFrame,te=$.getStackAddendum();te!==""&&(M+="%s",D=D.concat([te]));var oe=D.map(function(G){return String(G)});oe.unshift("Warning: "+M),Function.prototype.apply.call(console[p],console,oe)}}var k=!1,E=!1,_=!1,N=!1,z=!1,L;L=Symbol.for("react.module.reference");function I(p){return!!(typeof p=="string"||typeof p=="function"||p===n||p===a||z||p===o||p===l||p===d||N||p===v||k||E||_||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===m||p.$$typeof===i||p.$$typeof===s||p.$$typeof===c||p.$$typeof===L||p.getModuleId!==void 0))}function V(p,M,D){var $=p.displayName;if($)return $;var te=M.displayName||M.name||"";return te!==""?D+"("+te+")":D}function T(p){return p.displayName||"Context"}function U(p){if(p==null)return null;if(typeof p.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case d:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case s:var M=p;return T(M)+".Consumer";case i:var D=p;return T(D._context)+".Provider";case c:return V(p,p.render,"ForwardRef");case m:var $=p.displayName||null;return $!==null?$:U(p.type)||"Memo";case h:{var te=p,oe=te._payload,G=te._init;try{return U(G(oe))}catch{return null}}}return null}var Y=Object.assign,Z=0,K,j,S,J,le,se,P;function F(){}F.__reactDisabledLog=!0;function q(){{if(Z===0){K=console.log,j=console.info,S=console.warn,J=console.error,le=console.group,se=console.groupCollapsed,P=console.groupEnd;var p={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}Z++}}function A(){{if(Z--,Z===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},p,{value:K}),info:Y({},p,{value:j}),warn:Y({},p,{value:S}),error:Y({},p,{value:J}),group:Y({},p,{value:le}),groupCollapsed:Y({},p,{value:se}),groupEnd:Y({},p,{value:P})})}Z<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=w.ReactCurrentDispatcher,ee;function ue(p,M,D){{if(ee===void 0)try{throw Error()}catch(te){var $=te.stack.trim().match(/\n( *(at )?)/);ee=$&&$[1]||""}return`
18
- `+ee+p}}var ce=!1,_e;{var zr=typeof WeakMap=="function"?WeakMap:Map;_e=new zr}function or(p,M){if(!p||ce)return"";{var D=_e.get(p);if(D!==void 0)return D}var $;ce=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=Q.current,Q.current=null,q();try{if(M){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(Me){$=Me}Reflect.construct(p,[],G)}else{try{G.call()}catch(Me){$=Me}p.call(G.prototype)}}else{try{throw Error()}catch(Me){$=Me}p()}}catch(Me){if(Me&&$&&typeof Me.stack=="string"){for(var X=Me.stack.split(`
19
- `),be=$.stack.split(`
20
- `),de=X.length-1,me=be.length-1;de>=1&&me>=0&&X[de]!==be[me];)me--;for(;de>=1&&me>=0;de--,me--)if(X[de]!==be[me]){if(de!==1||me!==1)do if(de--,me--,me<0||X[de]!==be[me]){var je=`
21
- `+X[de].replace(" at new "," at ");return p.displayName&&je.includes("<anonymous>")&&(je=je.replace("<anonymous>",p.displayName)),typeof p=="function"&&_e.set(p,je),je}while(de>=1&&me>=0);break}}}finally{ce=!1,Q.current=oe,A(),Error.prepareStackTrace=te}var $t=p?p.displayName||p.name:"",bt=$t?ue($t):"";return typeof p=="function"&&_e.set(p,bt),bt}function pt(p,M,D){return or(p,!1)}function Vr(p){var M=p.prototype;return!!(M&&M.isReactComponent)}function It(p,M,D){if(p==null)return"";if(typeof p=="function")return or(p,Vr(p));if(typeof p=="string")return ue(p);switch(p){case l:return ue("Suspense");case d:return ue("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case c:return pt(p.render);case m:return It(p.type,M,D);case h:{var $=p,te=$._payload,oe=$._init;try{return It(oe(te),M,D)}catch{}}}return""}var gt=Object.prototype.hasOwnProperty,Ur={},qr=w.ReactDebugCurrentFrame;function Ze(p){if(p){var M=p._owner,D=It(p.type,p._source,M?M.type:null);qr.setExtraStackFrame(D)}else qr.setExtraStackFrame(null)}function $p(p,M,D,$,te){{var oe=Function.call.bind(gt);for(var G in p)if(oe(p,G)){var X=void 0;try{if(typeof p[G]!="function"){var be=Error(($||"React class")+": "+D+" type `"+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[G]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw be.name="Invariant Violation",be}X=p[G](M,G,$,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(de){X=de}X&&!(X instanceof Error)&&(Ze(te),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",$||"React class",D,G,typeof X),Ze(null)),X instanceof Error&&!(X.message in Ur)&&(Ur[X.message]=!0,Ze(te),x("Failed %s type: %s",D,X.message),Ze(null))}}}var Bp=Array.isArray;function co(p){return Bp(p)}function Yp(p){{var M=typeof Symbol=="function"&&Symbol.toStringTag,D=M&&p[Symbol.toStringTag]||p.constructor.name||"Object";return D}}function Hp(p){try{return As(p),!1}catch{return!0}}function As(p){return""+p}function Ts(p){if(Hp(p))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Yp(p)),As(p)}var Ls=w.ReactCurrentOwner,zp={key:!0,ref:!0,__self:!0,__source:!0},Ws,Is;function Vp(p){if(gt.call(p,"ref")){var M=Object.getOwnPropertyDescriptor(p,"ref").get;if(M&&M.isReactWarning)return!1}return p.ref!==void 0}function Up(p){if(gt.call(p,"key")){var M=Object.getOwnPropertyDescriptor(p,"key").get;if(M&&M.isReactWarning)return!1}return p.key!==void 0}function qp(p,M){typeof p.ref=="string"&&Ls.current}function Xp(p,M){{var D=function(){Ws||(Ws=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};D.isReactWarning=!0,Object.defineProperty(p,"key",{get:D,configurable:!0})}}function Gp(p,M){{var D=function(){Is||(Is=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};D.isReactWarning=!0,Object.defineProperty(p,"ref",{get:D,configurable:!0})}}var Kp=function(p,M,D,$,te,oe,G){var X={$$typeof:t,type:p,key:M,ref:D,props:G,_owner:oe};return X._store={},Object.defineProperty(X._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(X,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.defineProperty(X,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze(X.props),Object.freeze(X)),X};function Qp(p,M,D,$,te){{var oe,G={},X=null,be=null;D!==void 0&&(Ts(D),X=""+D),Up(M)&&(Ts(M.key),X=""+M.key),Vp(M)&&(be=M.ref,qp(M,te));for(oe in M)gt.call(M,oe)&&!zp.hasOwnProperty(oe)&&(G[oe]=M[oe]);if(p&&p.defaultProps){var de=p.defaultProps;for(oe in de)G[oe]===void 0&&(G[oe]=de[oe])}if(X||be){var me=typeof p=="function"?p.displayName||p.name||"Unknown":p;X&&Xp(G,me),be&&Gp(G,me)}return Kp(p,X,be,te,$,Ls.current,G)}}var uo=w.ReactCurrentOwner,Fs=w.ReactDebugCurrentFrame;function Ft(p){if(p){var M=p._owner,D=It(p.type,p._source,M?M.type:null);Fs.setExtraStackFrame(D)}else Fs.setExtraStackFrame(null)}var fo;fo=!1;function mo(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function $s(){{if(uo.current){var p=U(uo.current.type);if(p)return`
17
+ */var qo;function Hl(){return qo||(qo=1,process.env.NODE_ENV!=="production"&&function(){var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),b=Symbol.iterator,p="@@iterator";function y(g){if(g===null||typeof g!="object")return null;var j=b&&g[b]||g[p];return typeof j=="function"?j:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(g){{for(var j=arguments.length,T=new Array(j>1?j-1:0),B=1;B<j;B++)T[B-1]=arguments[B];C("error",g,T)}}function C(g,j,T){{var B=x.ReactDebugCurrentFrame,te=B.getStackAddendum();te!==""&&(j+="%s",T=T.concat([te]));var oe=T.map(function(G){return String(G)});oe.unshift("Warning: "+j),Function.prototype.apply.call(console[g],console,oe)}}var N=!1,k=!1,P=!1,_=!1,z=!1,W;W=Symbol.for("react.module.reference");function F(g){return!!(typeof g=="string"||typeof g=="function"||g===n||g===a||z||g===o||g===c||g===d||_||g===v||N||k||P||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===f||g.$$typeof===s||g.$$typeof===i||g.$$typeof===u||g.$$typeof===W||g.getModuleId!==void 0))}function V(g,j,T){var B=g.displayName;if(B)return B;var te=j.displayName||j.name||"";return te!==""?T+"("+te+")":T}function L(g){return g.displayName||"Context"}function U(g){if(g==null)return null;if(typeof g.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case i:var j=g;return L(j)+".Consumer";case s:var T=g;return L(T._context)+".Provider";case u:return V(g,g.render,"ForwardRef");case f:var B=g.displayName||null;return B!==null?B:U(g.type)||"Memo";case h:{var te=g,oe=te._payload,G=te._init;try{return U(G(oe))}catch{return null}}}return null}var H=Object.assign,J=0,K,D,S,Z,le,ie,M;function $(){}$.__reactDisabledLog=!0;function q(){{if(J===0){K=console.log,D=console.info,S=console.warn,Z=console.error,le=console.group,ie=console.groupCollapsed,M=console.groupEnd;var g={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}J++}}function A(){{if(J--,J===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},g,{value:K}),info:H({},g,{value:D}),warn:H({},g,{value:S}),error:H({},g,{value:Z}),group:H({},g,{value:le}),groupCollapsed:H({},g,{value:ie}),groupEnd:H({},g,{value:M})})}J<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=x.ReactCurrentDispatcher,ee;function de(g,j,T){{if(ee===void 0)try{throw Error()}catch(te){var B=te.stack.trim().match(/\n( *(at )?)/);ee=B&&B[1]||""}return`
18
+ `+ee+g}}var ce=!1,Re;{var on=typeof WeakMap=="function"?WeakMap:Map;Re=new on}function br(g,j){if(!g||ce)return"";{var T=Re.get(g);if(T!==void 0)return T}var B;ce=!0;var te=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=Q.current,Q.current=null,q();try{if(j){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(ke){B=ke}Reflect.construct(g,[],G)}else{try{G.call()}catch(ke){B=ke}g.call(G.prototype)}}else{try{throw Error()}catch(ke){B=ke}g()}}catch(ke){if(ke&&B&&typeof ke.stack=="string"){for(var X=ke.stack.split(`
19
+ `),Ne=B.stack.split(`
20
+ `),fe=X.length-1,he=Ne.length-1;fe>=1&&he>=0&&X[fe]!==Ne[he];)he--;for(;fe>=1&&he>=0;fe--,he--)if(X[fe]!==Ne[he]){if(fe!==1||he!==1)do if(fe--,he--,he<0||X[fe]!==Ne[he]){var Te=`
21
+ `+X[fe].replace(" at new "," at ");return g.displayName&&Te.includes("<anonymous>")&&(Te=Te.replace("<anonymous>",g.displayName)),typeof g=="function"&&Re.set(g,Te),Te}while(fe>=1&&he>=0);break}}}finally{ce=!1,Q.current=oe,A(),Error.prepareStackTrace=te}var Zt=g?g.displayName||g.name:"",kt=Zt?de(Zt):"";return typeof g=="function"&&Re.set(g,kt),kt}function jt(g,j,T){return br(g,!1)}function an(g){var j=g.prototype;return!!(j&&j.isReactComponent)}function Kt(g,j,T){if(g==null)return"";if(typeof g=="function")return br(g,an(g));if(typeof g=="string")return de(g);switch(g){case c:return de("Suspense");case d:return de("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case u:return jt(g.render);case f:return Kt(g.type,j,T);case h:{var B=g,te=B._payload,oe=B._init;try{return Kt(oe(te),j,T)}catch{}}}return""}var Mt=Object.prototype.hasOwnProperty,sn={},ln=x.ReactDebugCurrentFrame;function ot(g){if(g){var j=g._owner,T=Kt(g.type,g._source,j?j.type:null);ln.setExtraStackFrame(T)}else ln.setExtraStackFrame(null)}function ib(g,j,T,B,te){{var oe=Function.call.bind(Mt);for(var G in g)if(oe(g,G)){var X=void 0;try{if(typeof g[G]!="function"){var Ne=Error((B||"React class")+": "+T+" type `"+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[G]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ne.name="Invariant Violation",Ne}X=g[G](j,G,B,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(fe){X=fe}X&&!(X instanceof Error)&&(ot(te),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).",B||"React class",T,G,typeof X),ot(null)),X instanceof Error&&!(X.message in sn)&&(sn[X.message]=!0,ot(te),w("Failed %s type: %s",T,X.message),ot(null))}}}var lb=Array.isArray;function Io(g){return lb(g)}function cb(g){{var j=typeof Symbol=="function"&&Symbol.toStringTag,T=j&&g[Symbol.toStringTag]||g.constructor.name||"Object";return T}}function ub(g){try{return El(g),!1}catch{return!0}}function El(g){return""+g}function _l(g){if(ub(g))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",cb(g)),El(g)}var Dl=x.ReactCurrentOwner,db={key:!0,ref:!0,__self:!0,__source:!0},Ol,Rl;function fb(g){if(Mt.call(g,"ref")){var j=Object.getOwnPropertyDescriptor(g,"ref").get;if(j&&j.isReactWarning)return!1}return g.ref!==void 0}function mb(g){if(Mt.call(g,"key")){var j=Object.getOwnPropertyDescriptor(g,"key").get;if(j&&j.isReactWarning)return!1}return g.key!==void 0}function hb(g,j){typeof g.ref=="string"&&Dl.current}function vb(g,j){{var T=function(){Ol||(Ol=!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)",j))};T.isReactWarning=!0,Object.defineProperty(g,"key",{get:T,configurable:!0})}}function pb(g,j){{var T=function(){Rl||(Rl=!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)",j))};T.isReactWarning=!0,Object.defineProperty(g,"ref",{get:T,configurable:!0})}}var gb=function(g,j,T,B,te,oe,G){var X={$$typeof:t,type:g,key:j,ref:T,props:G,_owner:oe};return X._store={},Object.defineProperty(X._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(X,"_self",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.defineProperty(X,"_source",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.freeze&&(Object.freeze(X.props),Object.freeze(X)),X};function bb(g,j,T,B,te){{var oe,G={},X=null,Ne=null;T!==void 0&&(_l(T),X=""+T),mb(j)&&(_l(j.key),X=""+j.key),fb(j)&&(Ne=j.ref,hb(j,te));for(oe in j)Mt.call(j,oe)&&!db.hasOwnProperty(oe)&&(G[oe]=j[oe]);if(g&&g.defaultProps){var fe=g.defaultProps;for(oe in fe)G[oe]===void 0&&(G[oe]=fe[oe])}if(X||Ne){var he=typeof g=="function"?g.displayName||g.name||"Unknown":g;X&&vb(G,he),Ne&&pb(G,he)}return gb(g,X,Ne,te,B,Dl.current,G)}}var Fo=x.ReactCurrentOwner,Tl=x.ReactDebugCurrentFrame;function Qt(g){if(g){var j=g._owner,T=Kt(g.type,g._source,j?j.type:null);Tl.setExtraStackFrame(T)}else Tl.setExtraStackFrame(null)}var $o;$o=!1;function Bo(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function Al(){{if(Fo.current){var g=U(Fo.current.type);if(g)return`
22
22
 
23
- Check the render method of \``+p+"`."}return""}}function Jp(p){return""}var Bs={};function Zp(p){{var M=$s();if(!M){var D=typeof p=="string"?p:p.displayName||p.name;D&&(M=`
23
+ Check the render method of \``+g+"`."}return""}}function yb(g){return""}var Ll={};function xb(g){{var j=Al();if(!j){var T=typeof g=="string"?g:g.displayName||g.name;T&&(j=`
24
24
 
25
- Check the top-level render call using <`+D+">.")}return M}}function Ys(p,M){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var D=Zp(M);if(Bs[D])return;Bs[D]=!0;var $="";p&&p._owner&&p._owner!==uo.current&&($=" It was passed a child from "+U(p._owner.type)+"."),Ft(p),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,$),Ft(null)}}function Hs(p,M){{if(typeof p!="object")return;if(co(p))for(var D=0;D<p.length;D++){var $=p[D];mo($)&&Ys($,M)}else if(mo(p))p._store&&(p._store.validated=!0);else if(p){var te=y(p);if(typeof te=="function"&&te!==p.entries)for(var oe=te.call(p),G;!(G=oe.next()).done;)mo(G.value)&&Ys(G.value,M)}}}function eg(p){{var M=p.type;if(M==null||typeof M=="string")return;var D;if(typeof M=="function")D=M.propTypes;else if(typeof M=="object"&&(M.$$typeof===c||M.$$typeof===m))D=M.propTypes;else return;if(D){var $=U(M);$p(D,p.props,"prop",$,p)}else if(M.PropTypes!==void 0&&!fo){fo=!0;var te=U(M);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof M.getDefaultProps=="function"&&!M.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tg(p){{for(var M=Object.keys(p.props),D=0;D<M.length;D++){var $=M[D];if($!=="children"&&$!=="key"){Ft(p),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),Ft(null);break}}p.ref!==null&&(Ft(p),x("Invalid attribute `ref` supplied to `React.Fragment`."),Ft(null))}}var zs={};function Vs(p,M,D,$,te,oe){{var G=I(p);if(!G){var X="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(X+=" 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 be=Jp();be?X+=be:X+=$s();var de;p===null?de="null":co(p)?de="array":p!==void 0&&p.$$typeof===t?(de="<"+(U(p.type)||"Unknown")+" />",X=" Did you accidentally export a JSX literal instead of a component?"):de=typeof p,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",de,X)}var me=Qp(p,M,D,te,oe);if(me==null)return me;if(G){var je=M.children;if(je!==void 0)if($)if(co(je)){for(var $t=0;$t<je.length;$t++)Hs(je[$t],p);Object.freeze&&Object.freeze(je)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Hs(je,p)}if(gt.call(M,"key")){var bt=U(p),Me=Object.keys(M).filter(function(sg){return sg!=="key"}),ho=Me.length>0?"{key: someKey, "+Me.join(": ..., ")+": ...}":"{key: someKey}";if(!zs[bt+ho]){var ig=Me.length>0?"{"+Me.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+T+">.")}return j}}function Wl(g,j){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var T=xb(j);if(Ll[T])return;Ll[T]=!0;var B="";g&&g._owner&&g._owner!==Fo.current&&(B=" It was passed a child from "+U(g._owner.type)+"."),Qt(g),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,B),Qt(null)}}function Il(g,j){{if(typeof g!="object")return;if(Io(g))for(var T=0;T<g.length;T++){var B=g[T];Bo(B)&&Wl(B,j)}else if(Bo(g))g._store&&(g._store.validated=!0);else if(g){var te=y(g);if(typeof te=="function"&&te!==g.entries)for(var oe=te.call(g),G;!(G=oe.next()).done;)Bo(G.value)&&Wl(G.value,j)}}}function wb(g){{var j=g.type;if(j==null||typeof j=="string")return;var T;if(typeof j=="function")T=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===u||j.$$typeof===f))T=j.propTypes;else return;if(T){var B=U(j);ib(T,g.props,"prop",B,g)}else if(j.PropTypes!==void 0&&!$o){$o=!0;var te=U(j);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",te||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Cb(g){{for(var j=Object.keys(g.props),T=0;T<j.length;T++){var B=j[T];if(B!=="children"&&B!=="key"){Qt(g),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B),Qt(null);break}}g.ref!==null&&(Qt(g),w("Invalid attribute `ref` supplied to `React.Fragment`."),Qt(null))}}var Fl={};function $l(g,j,T,B,te,oe){{var G=F(g);if(!G){var X="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(X+=" 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 Ne=yb();Ne?X+=Ne:X+=Al();var fe;g===null?fe="null":Io(g)?fe="array":g!==void 0&&g.$$typeof===t?(fe="<"+(U(g.type)||"Unknown")+" />",X=" Did you accidentally export a JSX literal instead of a component?"):fe=typeof g,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",fe,X)}var he=bb(g,j,T,te,oe);if(he==null)return he;if(G){var Te=j.children;if(Te!==void 0)if(B)if(Io(Te)){for(var Zt=0;Zt<Te.length;Zt++)Il(Te[Zt],g);Object.freeze&&Object.freeze(Te)}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 Il(Te,g)}if(Mt.call(j,"key")){var kt=U(g),ke=Object.keys(j).filter(function(Pb){return Pb!=="key"}),Ho=ke.length>0?"{key: someKey, "+ke.join(": ..., ")+": ...}":"{key: someKey}";if(!Fl[kt+Ho]){var kb=ke.length>0?"{"+ke.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,ho,bt,ig,bt),zs[bt+ho]=!0}}return p===n?tg(me):eg(me),me}}function rg(p,M,D){return Vs(p,M,D,!0)}function ng(p,M,D){return Vs(p,M,D,!1)}var og=ng,ag=rg;Yt.Fragment=n,Yt.jsx=og,Yt.jsxs=ag}()),Yt}process.env.NODE_ENV==="production"?Xr.exports=Us():Xr.exports=qs();var u=Xr.exports;function wo(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=wo(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function xo(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=wo(e))&&(n&&(n+=" "),n+=t);return n}const Co=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,So=xo,Mo=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return So(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(l=>{const d=r==null?void 0:r[l],m=a==null?void 0:a[l];if(d===null)return null;const h=Co(d)||Co(m);return o[l][h]}),s=r&&Object.entries(r).reduce((l,d)=>{let[m,h]=d;return h===void 0||(l[m]=h),l},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,d)=>{let{class:m,className:h,...v}=d;return Object.entries(v).every(b=>{let[g,y]=b;return Array.isArray(y)?y.includes({...a,...s}[g]):{...a,...s}[g]===y})?[...l,m,h]:l},[]);return So(e,i,c,r==null?void 0:r.class,r==null?void 0:r.className)},Po=Mo("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"}}),Gr="-",Xs=e=>{const t=Ks(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(Gr);return s[0]===""&&s.length!==1&&s.shift(),ko(s,t)||Gs(i)},getConflictingClassGroupIds:(i,s)=>{const c=r[i]||[];return s&&n[i]?[...c,...n[i]]:c}}},ko=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?ko(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Gr);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},Eo=/^\[(.+)\]$/,Gs=e=>{if(Eo.test(e)){const t=Eo.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ks=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Js(Object.entries(e.classGroups),r).forEach(([a,i])=>{Kr(i,n,a,t)}),n},Kr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:No(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Qs(o)){Kr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{Kr(i,No(t,a),r,n)})})},No=(e,t)=>{let r=e;return t.split(Gr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Qs=e=>e.isThemeGetter,Js=(e,t)=>t?e.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[r,o]}):e,Zs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},_o="!",el=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],a=t.length,i=s=>{const c=[];let l=0,d=0,m;for(let y=0;y<s.length;y++){let w=s[y];if(l===0){if(w===o&&(n||s.slice(y,y+a)===t)){c.push(s.slice(d,y)),d=y+a;continue}if(w==="/"){m=y;continue}}w==="["?l++:w==="]"&&l--}const h=c.length===0?s:s.substring(d),v=h.startsWith(_o),b=v?h.substring(1):h,g=m&&m>d?m-d:void 0;return{modifiers:c,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:g}};return r?s=>r({className:s,parseClassName:i}):i},tl=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},rl=e=>({cache:Zs(e.cacheSize),parseClassName:el(e),...Xs(e)}),nl=/\s+/,ol=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(nl);let s="";for(let c=i.length-1;c>=0;c-=1){const l=i[c],{modifiers:d,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:v}=r(l);let b=!!v,g=n(b?h.substring(0,v):h);if(!g){if(!b){s=l+(s.length>0?" "+s:s);continue}if(g=n(h),!g){s=l+(s.length>0?" "+s:s);continue}b=!1}const y=tl(d).join(":"),w=m?y+_o:y,x=w+g;if(a.includes(x))continue;a.push(x);const C=o(g,b);for(let k=0;k<C.length;++k){const E=C[k];a.push(w+E)}s=l+(s.length>0?" "+s:s)}return s};function al(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=jo(t))&&(n&&(n+=" "),n+=r);return n}const jo=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=jo(e[n]))&&(r&&(r+=" "),r+=t);return r};function il(e,...t){let r,n,o,a=i;function i(c){const l=t.reduce((d,m)=>m(d),e());return r=rl(l),n=r.cache.get,o=r.cache.set,a=s,s(c)}function s(c){const l=n(c);if(l)return l;const d=ol(c,r);return o(c,d),d}return function(){return a(al.apply(null,arguments))}}const ie=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Do=/^\[(?:([a-z-]+):)?(.+)\]$/i,sl=/^\d+\/\d+$/,ll=new Set(["px","full","screen"]),cl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ul=/\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$/,dl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ml=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xe=e=>yt(e)||ll.has(e)||sl.test(e),et=e=>wt(e,"length",xl),yt=e=>!!e&&!Number.isNaN(Number(e)),Qr=e=>wt(e,"number",yt),Ht=e=>!!e&&Number.isInteger(Number(e)),hl=e=>e.endsWith("%")&&yt(e.slice(0,-1)),H=e=>Do.test(e),tt=e=>cl.test(e),vl=new Set(["length","size","percentage"]),pl=e=>wt(e,vl,Ro),gl=e=>wt(e,"position",Ro),bl=new Set(["image","url"]),yl=e=>wt(e,bl,Sl),wl=e=>wt(e,"",Cl),zt=()=>!0,wt=(e,t,r)=>{const n=Do.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},xl=e=>ul.test(e)&&!dl.test(e),Ro=()=>!1,Cl=e=>fl.test(e),Sl=e=>ml.test(e),Ml=il(()=>{const e=ie("colors"),t=ie("spacing"),r=ie("blur"),n=ie("brightness"),o=ie("borderColor"),a=ie("borderRadius"),i=ie("borderSpacing"),s=ie("borderWidth"),c=ie("contrast"),l=ie("grayscale"),d=ie("hueRotate"),m=ie("invert"),h=ie("gap"),v=ie("gradientColorStops"),b=ie("gradientColorStopPositions"),g=ie("inset"),y=ie("margin"),w=ie("opacity"),x=ie("padding"),C=ie("saturate"),k=ie("scale"),E=ie("sepia"),_=ie("skew"),N=ie("space"),z=ie("translate"),L=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",H,t],T=()=>[H,t],U=()=>["",Xe,et],Y=()=>["auto",yt,H],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],j=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],S=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",H],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],se=()=>[yt,H];return{cacheSize:500,separator:":",theme:{colors:[zt],spacing:[Xe,et],blur:["none","",tt,H],brightness:se(),borderColor:[e],borderRadius:["none","","full",tt,H],borderSpacing:T(),borderWidth:U(),contrast:se(),grayscale:J(),hueRotate:se(),invert:J(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[hl,et],inset:V(),margin:V(),opacity:se(),padding:T(),saturate:se(),scale:se(),sepia:J(),skew:se(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[tt]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","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:[...Z(),H]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ht,H]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",Ht,H]}],"grid-cols":[{"grid-cols":[zt]}],"col-start-end":[{col:["auto",{span:["full",Ht,H]},H]}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":[zt]}],"row-start-end":[{row:["auto",{span:[Ht,H]},H]}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...S()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...S(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...S(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[tt]},tt]}],h:[{h:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",tt,et]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qr]}],"font-family":[{font:[zt]}],"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:["tighter","tight","normal","wide","wider","widest",H]}],"line-clamp":[{"line-clamp":["none",yt,Qr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xe,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xe,et]}],"underline-offset":[{"underline-offset":["auto",Xe,H]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H]}],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",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),gl]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",pl]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yl]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:K()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[Xe,H]}],"outline-w":[{outline:[Xe,et]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Xe,et]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",tt,wl]}],"shadow-color":[{shadow:[zt]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...j(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":j()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",tt,H]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[m]}],saturate:[{saturate:[C]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:se()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:se()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Ht,H]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",H]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xe,et,Qr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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"],"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"]}}});function O(...e){return Ml(xo(e))}function Pl({className:e,variant:t,...r}){return u.jsx("div",{className:O(Po({variant:t}),e),...r})}function Oo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function rt(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Oo(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Oo(e[o],null)}}}}function pe(...e){return f.useCallback(rt(...e),e)}var kl=Symbol.for("react.lazy"),ar=f[" use ".trim().toString()];function El(e){return typeof e=="object"&&e!==null&&"then"in e}function Ao(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===kl&&"_payload"in e&&El(e._payload)}function To(e){const t=_l(e),r=f.forwardRef((n,o)=>{let{children:a,...i}=n;Ao(a)&&typeof ar=="function"&&(a=ar(a._payload));const s=f.Children.toArray(a),c=s.find(Dl);if(c){const l=c.props.children,d=s.map(m=>m===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:m);return u.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var Nl=To("Slot");function _l(e){const t=f.forwardRef((r,n)=>{let{children:o,...a}=r;if(Ao(o)&&typeof ar=="function"&&(o=ar(o._payload)),f.isValidElement(o)){const i=Ol(o),s=Rl(a,o.props);return o.type!==f.Fragment&&(s.ref=n?rt(n,i):i),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jl=Symbol("radix.slottable");function Dl(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jl}function Rl(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Ol(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const ir=Mo("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"}}),ye=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},a)=>{const i=n?Nl:"button";return u.jsx(i,{className:O(ir({variant:t,size:r,className:e})),ref:a,...o})});ye.displayName="MriButton";const Al=(e={})=>u.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("circle",{cx:"12",cy:"9",r:"2.5",fill:"currentColor"})]}),Tl=(e={})=>u.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M21 15v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M7 10l5-5 5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M12 5v12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ll=(e={})=>u.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M21 12H7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M11 16l-4-4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Wl=(e={})=>u.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M21 12a9 9 0 11-3-6.6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M12 8v8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M8 12h8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Il=(e={})=>u.jsx("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M20 6L9 17l-5-5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),Fl=(e={})=>u.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("rect",{x:"2",y:"7",width:"20",height:"14",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),u.jsx("path",{d:"M12 11v6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("circle",{cx:"12",cy:"10",r:"1.5",fill:"currentColor"})]}),$l=(e={})=>u.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M16 3l3 3v11a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6l3-3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M9 8h6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Bl=(e={})=>u.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"1.5"})]}),Yl=(e={})=>u.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("path",{d:"M12 9v4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("circle",{cx:"12",cy:"17",r:"0.8",fill:"currentColor"})]}),Hl=(e={})=>u.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.jsx("circle",{cx:"12",cy:"7",r:"4",stroke:"currentColor",strokeWidth:"1.5"}),u.jsx("path",{d:"M15 10l-6-6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),zl=(e={})=>u.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"1.5"}),u.jsx("path",{d:"M4.93 4.93l14.14 14.14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]});function Lo(e){return u.jsx("input",{...e,className:O("w-full rounded-lg border border-input bg-background/50 px-3 py-2 text-sm text-foreground focus:border-ring focus:outline-none placeholder:text-muted-foreground transition-colors disabled:opacity-50",e.className)})}function Jr(e){const t=Vl(e),r=f.forwardRef((n,o)=>{const{children:a,...i}=n,s=f.Children.toArray(a),c=s.find(ql);if(c){const l=c.props.children,d=s.map(m=>m===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:m);return u.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return u.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Vl(e){const t=f.forwardRef((r,n)=>{const{children:o,...a}=r;if(f.isValidElement(o)){const i=Gl(o),s=Xl(a,o.props);return o.type!==f.Fragment&&(s.ref=n?rt(n,i):i),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ul=Symbol("radix.slottable");function ql(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ul}function Xl(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const c=a(...s);return o(...s),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Gl(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Kl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=Kl.reduce((e,t)=>{const r=Jr(`Primitive.${t}`),n=f.forwardRef((o,a)=>{const{asChild:i,...s}=o,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ql(e,t){e&&go.flushSync(()=>e.dispatchEvent(t))}var Ge=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{};function Jl(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Le=e=>{const{present:t,children:r}=e,n=Zl(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),a=pe(n.ref,ec(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:a}):null};Le.displayName="Presence";function Zl(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),i=e?"mounted":"unmounted",[s,c]=Jl(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=sr(n.current);a.current=s==="mounted"?l:"none"},[s]),Ge(()=>{const l=n.current,d=o.current;if(d!==e){const h=a.current,v=sr(l);e?c("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(d&&h!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ge(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,m=v=>{const g=sr(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&g&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=v=>{v.target===t&&(a.current=sr(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function sr(e){return(e==null?void 0:e.animationName)||"none"}function ec(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function tc(e,t){const r=f.createContext(t),n=a=>{const{children:i,...s}=a,c=f.useMemo(()=>s,Object.values(s));return u.jsx(r.Provider,{value:c,children:i})};n.displayName=e+"Provider";function o(a){const i=f.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function lr(e,t=[]){let r=[];function n(a,i){const s=f.createContext(i),c=r.length;r=[...r,i];const l=m=>{var w;const{scope:h,children:v,...b}=m,g=((w=h==null?void 0:h[e])==null?void 0:w[c])||s,y=f.useMemo(()=>b,Object.values(b));return u.jsx(g.Provider,{value:y,children:v})};l.displayName=a+"Provider";function d(m,h){var g;const v=((g=h==null?void 0:h[e])==null?void 0:g[c])||s,b=f.useContext(v);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${m}\` must be used within \`${a}\``)}return[l,d]}const o=()=>{const a=r.map(i=>f.createContext(i));return function(s){const c=(s==null?void 0:s[e])||a;return f.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[n,rc(o,...t)]}function rc(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((s,{useScope:c,scopeName:l})=>{const m=c(a)[`__scope${l}`];return{...s,...m}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Pe(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var nc=f.createContext(void 0);function oc(e){const t=f.useContext(nc);return e||t||"ltr"}function ac(e,[t,r]){return Math.min(r,Math.max(t,e))}function fe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ic(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Zr="ScrollArea",[Wo]=lr(Zr),[sc,Ne]=Wo(Zr),Io=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=e,[s,c]=f.useState(null),[l,d]=f.useState(null),[m,h]=f.useState(null),[v,b]=f.useState(null),[g,y]=f.useState(null),[w,x]=f.useState(0),[C,k]=f.useState(0),[E,_]=f.useState(!1),[N,z]=f.useState(!1),L=pe(t,V=>c(V)),I=oc(o);return u.jsx(sc,{scope:r,type:n,dir:I,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:d,content:m,onContentChange:h,scrollbarX:v,onScrollbarXChange:b,scrollbarXEnabled:E,onScrollbarXEnabledChange:_,scrollbarY:g,onScrollbarYChange:y,scrollbarYEnabled:N,onScrollbarYEnabledChange:z,onCornerWidthChange:x,onCornerHeightChange:k,children:u.jsx(he.div,{dir:I,...i,ref:L,style:{position:"relative","--radix-scroll-area-corner-width":w+"px","--radix-scroll-area-corner-height":C+"px",...e.style}})})});Io.displayName=Zr;var Fo="ScrollAreaViewport",$o=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=e,i=Ne(Fo,r),s=f.useRef(null),c=pe(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(he.div,{"data-radix-scroll-area-viewport":"",...a,ref:c,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:n})})]})});$o.displayName=Fo;var We="ScrollAreaScrollbar",en=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Ne(We,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(lc,{...n,ref:t,forceMount:r}):o.type==="scroll"?u.jsx(cc,{...n,ref:t,forceMount:r}):o.type==="auto"?u.jsx(Bo,{...n,ref:t,forceMount:r}):o.type==="always"?u.jsx(tn,{...n,ref:t}):null});en.displayName=We;var lc=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Ne(We,e.__scopeScrollArea),[a,i]=f.useState(!1);return f.useEffect(()=>{const s=o.scrollArea;let c=0;if(s){const l=()=>{window.clearTimeout(c),i(!0)},d=()=>{c=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),u.jsx(Le,{present:r||a,children:u.jsx(Bo,{"data-state":a?"visible":"hidden",...n,ref:t})})}),cc=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Ne(We,e.__scopeScrollArea),a=e.orientation==="horizontal",i=fr(()=>c("SCROLL_END"),100),[s,c]=ic("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 l=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,o.scrollHideDelay,c]),f.useEffect(()=>{const l=o.viewport,d=a?"scrollLeft":"scrollTop";if(l){let m=l[d];const h=()=>{const v=l[d];m!==v&&(c("SCROLL"),i()),m=v};return l.addEventListener("scroll",h),()=>l.removeEventListener("scroll",h)}},[o.viewport,a,c,i]),u.jsx(Le,{present:r||s!=="hidden",children:u.jsx(tn,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:fe(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:fe(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Bo=f.forwardRef((e,t)=>{const r=Ne(We,e.__scopeScrollArea),{forceMount:n,...o}=e,[a,i]=f.useState(!1),s=e.orientation==="horizontal",c=fr(()=>{if(r.viewport){const l=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;i(s?l:d)}},10);return xt(r.viewport,c),xt(r.content,c),u.jsx(Le,{present:n||a,children:u.jsx(tn,{"data-state":a?"visible":"hidden",...o,ref:t})})}),tn=f.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,o=Ne(We,e.__scopeScrollArea),a=f.useRef(null),i=f.useRef(0),[s,c]=f.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=Uo(s.viewport,s.content),d={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:h=>a.current=h,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:h=>i.current=h};function m(h,v){return vc(h,i.current,s,v)}return r==="horizontal"?u.jsx(uc,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const h=o.viewport.scrollLeft,v=qo(h,s,o.dir);a.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollLeft=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollLeft=m(h,o.dir))}}):r==="vertical"?u.jsx(dc,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const h=o.viewport.scrollTop,v=qo(h,s);a.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollTop=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollTop=m(h))}}):null}),uc=f.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,a=Ne(We,e.__scopeScrollArea),[i,s]=f.useState(),c=f.useRef(null),l=pe(t,c,a.onScrollbarXChange);return f.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),u.jsx(Ho,{"data-orientation":"horizontal",...o,ref:l,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":dr(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,m)=>{if(a.viewport){const h=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(h),Go(h,m)&&d.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:ur(i.paddingLeft),paddingEnd:ur(i.paddingRight)}})}})}),dc=f.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,a=Ne(We,e.__scopeScrollArea),[i,s]=f.useState(),c=f.useRef(null),l=pe(t,c,a.onScrollbarYChange);return f.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),u.jsx(Ho,{"data-orientation":"vertical",...o,ref:l,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":dr(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,m)=>{if(a.viewport){const h=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(h),Go(h,m)&&d.preventDefault()}},onResize:()=>{c.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:ur(i.paddingTop),paddingEnd:ur(i.paddingBottom)}})}})}),[fc,Yo]=Wo(We),Ho=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:d,onResize:m,...h}=e,v=Ne(We,r),[b,g]=f.useState(null),y=pe(t,L=>g(L)),w=f.useRef(null),x=f.useRef(""),C=v.viewport,k=n.content-n.viewport,E=Pe(d),_=Pe(c),N=fr(m,10);function z(L){if(w.current){const I=L.clientX-w.current.left,V=L.clientY-w.current.top;l({x:I,y:V})}}return f.useEffect(()=>{const L=I=>{const V=I.target;(b==null?void 0:b.contains(V))&&E(I,k)};return document.addEventListener("wheel",L,{passive:!1}),()=>document.removeEventListener("wheel",L,{passive:!1})},[C,b,k,E]),f.useEffect(_,[n,_]),xt(b,N),xt(v.content,N),u.jsx(fc,{scope:r,scrollbar:b,hasThumb:o,onThumbChange:Pe(a),onThumbPointerUp:Pe(i),onThumbPositionChange:_,onThumbPointerDown:Pe(s),children:u.jsx(he.div,{...h,ref:y,style:{position:"absolute",...h.style},onPointerDown:fe(e.onPointerDown,L=>{L.button===0&&(L.target.setPointerCapture(L.pointerId),w.current=b.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),z(L))}),onPointerMove:fe(e.onPointerMove,z),onPointerUp:fe(e.onPointerUp,L=>{const I=L.target;I.hasPointerCapture(L.pointerId)&&I.releasePointerCapture(L.pointerId),document.body.style.webkitUserSelect=x.current,v.viewport&&(v.viewport.style.scrollBehavior=""),w.current=null})})})}),cr="ScrollAreaThumb",zo=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Yo(cr,e.__scopeScrollArea);return u.jsx(Le,{present:r||o.hasThumb,children:u.jsx(mc,{ref:t,...n})})}),mc=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,a=Ne(cr,r),i=Yo(cr,r),{onThumbPositionChange:s}=i,c=pe(t,m=>i.onThumbChange(m)),l=f.useRef(void 0),d=fr(()=>{l.current&&(l.current(),l.current=void 0)},100);return f.useEffect(()=>{const m=a.viewport;if(m){const h=()=>{if(d(),!l.current){const v=pc(m,s);l.current=v,s()}};return s(),m.addEventListener("scroll",h),()=>m.removeEventListener("scroll",h)}},[a.viewport,d,s]),u.jsx(he.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:fe(e.onPointerDownCapture,m=>{const v=m.target.getBoundingClientRect(),b=m.clientX-v.left,g=m.clientY-v.top;i.onThumbPointerDown({x:b,y:g})}),onPointerUp:fe(e.onPointerUp,i.onThumbPointerUp)})});zo.displayName=cr;var rn="ScrollAreaCorner",Vo=f.forwardRef((e,t)=>{const r=Ne(rn,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?u.jsx(hc,{...e,ref:t}):null});Vo.displayName=rn;var hc=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=Ne(rn,r),[a,i]=f.useState(0),[s,c]=f.useState(0),l=!!(a&&s);return xt(o.scrollbarX,()=>{var m;const d=((m=o.scrollbarX)==null?void 0:m.offsetHeight)||0;o.onCornerHeightChange(d),c(d)}),xt(o.scrollbarY,()=>{var m;const d=((m=o.scrollbarY)==null?void 0:m.offsetWidth)||0;o.onCornerWidthChange(d),i(d)}),l?u.jsx(he.div,{...n,ref:t,style:{width:a,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function ur(e){return e?parseInt(e,10):0}function Uo(e,t){const r=e/t;return isNaN(r)?0:r}function dr(e){const t=Uo(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function vc(e,t,r,n="ltr"){const o=dr(r),a=o/2,i=t||a,s=o-i,c=r.scrollbar.paddingStart+i,l=r.scrollbar.size-r.scrollbar.paddingEnd-s,d=r.content-r.viewport,m=n==="ltr"?[0,d]:[d*-1,0];return Xo([c,l],m)(e)}function qo(e,t,r="ltr"){const n=dr(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,s=a-n,c=r==="ltr"?[0,i]:[i*-1,0],l=ac(e,c);return Xo([0,i],[0,s])(l)}function Xo(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Go(e,t){return e>0&&e<t}var pc=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},i=r.left!==a.left,s=r.top!==a.top;(i||s)&&t(),r=a,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function fr(e,t){const r=Pe(e),n=f.useRef(0);return f.useEffect(()=>()=>window.clearTimeout(n.current),[]),f.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function xt(e,t){const r=Pe(t);Ge(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}var Ko=Io,gc=$o,bc=Vo;const mr=f.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(Ko,{ref:n,className:O("relative overflow-hidden",e),...r,children:[u.jsx(gc,{className:"h-full w-full rounded-[inherit]",children:t}),u.jsx(nn,{}),u.jsx(bc,{})]}));mr.displayName=Ko.displayName;const nn=f.forwardRef(({className:e,orientation:t="vertical",...r},n)=>u.jsx(en,{ref:n,orientation:t,className:O("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...r,children:u.jsx(zo,{className:"relative flex-1 rounded-full bg-border"})}));nn.displayName=en.displayName;function yc({label:e,variant:t="default",className:r,size:n="xs"}){return u.jsx("span",{className:O("font-medium rounded border flex items-center justify-center font-mono whitespace-nowrap",n==="xs"&&"px-1.5 py-0.5 text-[10px]",n==="sm"&&"px-2 py-1 text-xs",n==="md"&&"px-2.5 py-1 text-sm",t==="default"&&"bg-muted text-muted-foreground border-border",t==="outline"&&"bg-transparent text-foreground border-border",t==="ghost"&&"bg-black/40 text-zinc-300 border-white/5",t==="destructive"&&"bg-red-500/10 text-red-500 border-red-500/20",t==="warning"&&"bg-yellow-500/10 text-yellow-500 border-yellow-500/20",t==="success"&&"bg-green-500/10 text-green-500 border-green-500/20",r),children:e})}const Qo=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:O("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Qo.displayName="MriCard";const Jo=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:O("flex flex-col space-y-1.5 p-6",e),...t}));Jo.displayName="MriCardHeader";const Zo=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:O("font-semibold leading-none tracking-tight",e),...t}));Zo.displayName="MriCardTitle";const ea=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:O("text-sm text-muted-foreground",e),...t}));ea.displayName="MriCardDescription";const ta=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:O("p-6 pt-0",e),...t}));ta.displayName="MriCardContent";const ra=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:O("flex items-center p-6 pt-0",e),...t}));ra.displayName="MriCardFooter";function wc(e,t=globalThis==null?void 0:globalThis.document){const r=Pe(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var xc="DismissableLayer",on="dismissableLayer.update",Cc="dismissableLayer.pointerDownOutside",Sc="dismissableLayer.focusOutside",na,oa=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),an=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,l=f.useContext(oa),[d,m]=f.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=f.useState({}),b=pe(t,N=>m(N)),g=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(y),x=d?g.indexOf(d):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,k=x>=w,E=kc(N=>{const z=N.target,L=[...l.branches].some(I=>I.contains(z));!k||L||(o==null||o(N),i==null||i(N),N.defaultPrevented||s==null||s())},h),_=Ec(N=>{const z=N.target;[...l.branches].some(I=>I.contains(z))||(a==null||a(N),i==null||i(N),N.defaultPrevented||s==null||s())},h);return wc(N=>{x===l.layers.size-1&&(n==null||n(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},h),f.useEffect(()=>{if(d)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(na=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),aa(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=na)}},[d,h,r,l]),f.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),aa())},[d,l]),f.useEffect(()=>{const N=()=>v({});return document.addEventListener(on,N),()=>document.removeEventListener(on,N)},[]),u.jsx(he.div,{...c,ref:b,style:{pointerEvents:C?k?"auto":"none":void 0,...e.style},onFocusCapture:fe(e.onFocusCapture,_.onFocusCapture),onBlurCapture:fe(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:fe(e.onPointerDownCapture,E.onPointerDownCapture)})});an.displayName=xc;var Mc="DismissableLayerBranch",Pc=f.forwardRef((e,t)=>{const r=f.useContext(oa),n=f.useRef(null),o=pe(t,n);return f.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),u.jsx(he.div,{...e,ref:o})});Pc.displayName=Mc;function kc(e,t=globalThis==null?void 0:globalThis.document){const r=Pe(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){ia(Cc,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Ec(e,t=globalThis==null?void 0:globalThis.document){const r=Pe(e),n=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!n.current&&ia(Sc,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function aa(){const e=new CustomEvent(on);document.dispatchEvent(e)}function ia(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Ql(o,a):o.dispatchEvent(a)}var sn=0;function sa(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??la()),document.body.insertAdjacentElement("beforeend",e[1]??la()),sn++,()=>{sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),sn--}},[])}function la(){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 ln="focusScope.autoFocusOnMount",cn="focusScope.autoFocusOnUnmount",ca={bubbles:!1,cancelable:!0},Nc="FocusScope",un=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=f.useState(null),l=Pe(o),d=Pe(a),m=f.useRef(null),h=pe(t,g=>c(g)),v=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let g=function(C){if(v.paused||!s)return;const k=C.target;s.contains(k)?m.current=k:nt(m.current,{select:!0})},y=function(C){if(v.paused||!s)return;const k=C.relatedTarget;k!==null&&(s.contains(k)||nt(m.current,{select:!0}))},w=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&nt(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",y);const x=new MutationObserver(w);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),x.disconnect()}}},[n,s,v.paused]),f.useEffect(()=>{if(s){fa.add(v);const g=document.activeElement;if(!s.contains(g)){const w=new CustomEvent(ln,ca);s.addEventListener(ln,l),s.dispatchEvent(w),w.defaultPrevented||(_c(Ac(ua(s)),{select:!0}),document.activeElement===g&&nt(s))}return()=>{s.removeEventListener(ln,l),setTimeout(()=>{const w=new CustomEvent(cn,ca);s.addEventListener(cn,d),s.dispatchEvent(w),w.defaultPrevented||nt(g??document.body,{select:!0}),s.removeEventListener(cn,d),fa.remove(v)},0)}}},[s,l,d,v]);const b=f.useCallback(g=>{if(!r&&!n||v.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(y&&w){const x=g.currentTarget,[C,k]=jc(x);C&&k?!g.shiftKey&&w===k?(g.preventDefault(),r&&nt(C,{select:!0})):g.shiftKey&&w===C&&(g.preventDefault(),r&&nt(k,{select:!0})):w===x&&g.preventDefault()}},[r,n,v.paused]);return u.jsx(he.div,{tabIndex:-1,...i,ref:h,onKeyDown:b})});un.displayName=Nc;function _c(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(nt(n,{select:t}),document.activeElement!==r)return}function jc(e){const t=ua(e),r=da(t,e),n=da(t.reverse(),e);return[r,n]}function ua(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function da(e,t){for(const r of e)if(!Dc(r,{upTo:t}))return r}function Dc(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 Rc(e){return e instanceof HTMLInputElement&&"select"in e}function nt(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Rc(e)&&t&&e.select()}}var fa=Oc();function Oc(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=ma(e,t),e.unshift(t)},remove(t){var r;e=ma(e,t),(r=e[0])==null||r.resume()}}}function ma(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Ac(e){return e.filter(t=>t.tagName!=="A")}var Tc=f[" useId ".trim().toString()]||(()=>{}),Lc=0;function Ie(e){const[t,r]=f.useState(Tc());return Ge(()=>{r(n=>n??String(Lc++))},[e]),t?`radix-${t}`:""}const Wc=["top","right","bottom","left"],ot=Math.min,ke=Math.max,hr=Math.round,vr=Math.floor,Fe=e=>({x:e,y:e}),Ic={left:"right",right:"left",bottom:"top",top:"bottom"},Fc={start:"end",end:"start"};function dn(e,t,r){return ke(e,ot(t,r))}function Ke(e,t){return typeof e=="function"?e(t):e}function Qe(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function fn(e){return e==="x"?"y":"x"}function mn(e){return e==="y"?"height":"width"}const $c=new Set(["top","bottom"]);function $e(e){return $c.has(Qe(e))?"y":"x"}function hn(e){return fn($e(e))}function Bc(e,t,r){r===void 0&&(r=!1);const n=Ct(e),o=hn(e),a=mn(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=pr(i)),[i,pr(i)]}function Yc(e){const t=pr(e);return[vn(e),t,vn(t)]}function vn(e){return e.replace(/start|end/g,t=>Fc[t])}const ha=["left","right"],va=["right","left"],Hc=["top","bottom"],zc=["bottom","top"];function Vc(e,t,r){switch(e){case"top":case"bottom":return r?t?va:ha:t?ha:va;case"left":case"right":return t?Hc:zc;default:return[]}}function Uc(e,t,r,n){const o=Ct(e);let a=Vc(Qe(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(vn)))),a}function pr(e){return e.replace(/left|right|bottom|top/g,t=>Ic[t])}function qc(e){return{top:0,right:0,bottom:0,left:0,...e}}function pa(e){return typeof e!="number"?qc(e):{top:e,right:e,bottom:e,left:e}}function gr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function ga(e,t,r){let{reference:n,floating:o}=e;const a=$e(t),i=hn(t),s=mn(i),c=Qe(t),l=a==="y",d=n.x+n.width/2-o.width/2,m=n.y+n.height/2-o.height/2,h=n[s]/2-o[s]/2;let v;switch(c){case"top":v={x:d,y:n.y-o.height};break;case"bottom":v={x:d,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:m};break;case"left":v={x:n.x-o.width,y:m};break;default:v={x:n.x,y:n.y}}switch(Ct(t)){case"start":v[i]-=h*(r&&l?-1:1);break;case"end":v[i]+=h*(r&&l?-1:1);break}return v}const Xc=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:m}=ga(l,n,c),h=n,v={},b=0;for(let g=0;g<s.length;g++){const{name:y,fn:w}=s[g],{x,y:C,data:k,reset:E}=await w({x:d,y:m,initialPlacement:n,placement:h,strategy:o,middlewareData:v,rects:l,platform:i,elements:{reference:e,floating:t}});d=x??d,m=C??m,v={...v,[y]:{...v[y],...k}},E&&b<=50&&(b++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(l=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:d,y:m}=ga(l,h,c)),g=-1)}return{x:d,y:m,placement:h,strategy:o,middlewareData:v}};async function Vt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:h=!1,padding:v=0}=Ke(t,e),b=pa(v),y=s[h?m==="floating"?"reference":"floating":m],w=gr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:d,strategy:c})),x=m==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),k=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},E=gr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:C,strategy:c}):x);return{top:(w.top-E.top+b.top)/k.y,bottom:(E.bottom-w.bottom+b.bottom)/k.y,left:(w.left-E.left+b.left)/k.x,right:(E.right-w.right+b.right)/k.x}}const Gc=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:d=0}=Ke(e,t)||{};if(l==null)return{};const m=pa(d),h={x:r,y:n},v=hn(o),b=mn(v),g=await i.getDimensions(l),y=v==="y",w=y?"top":"left",x=y?"bottom":"right",C=y?"clientHeight":"clientWidth",k=a.reference[b]+a.reference[v]-h[v]-a.floating[b],E=h[v]-a.reference[v],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let N=_?_[C]:0;(!N||!await(i.isElement==null?void 0:i.isElement(_)))&&(N=s.floating[C]||a.floating[b]);const z=k/2-E/2,L=N/2-g[b]/2-1,I=ot(m[w],L),V=ot(m[x],L),T=I,U=N-g[b]-V,Y=N/2-g[b]/2+z,Z=dn(T,Y,U),K=!c.arrow&&Ct(o)!=null&&Y!==Z&&a.reference[b]/2-(Y<T?I:V)-g[b]/2<0,j=K?Y<T?Y-T:Y-U:0;return{[v]:h[v]+j,data:{[v]:Z,centerOffset:Y-Z-j,...K&&{alignmentOffset:j}},reset:K}}}),Kc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...y}=Ke(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const w=Qe(o),x=$e(s),C=Qe(s)===s,k=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=h||(C||!g?[pr(s)]:Yc(s)),_=b!=="none";!h&&_&&E.push(...Uc(s,g,b,k));const N=[s,...E],z=await Vt(t,y),L=[];let I=((n=a.flip)==null?void 0:n.overflows)||[];if(d&&L.push(z[w]),m){const Y=Bc(o,i,k);L.push(z[Y[0]],z[Y[1]])}if(I=[...I,{placement:o,overflows:L}],!L.every(Y=>Y<=0)){var V,T;const Y=(((V=a.flip)==null?void 0:V.index)||0)+1,Z=N[Y];if(Z&&(!(m==="alignment"?x!==$e(Z):!1)||I.every(S=>$e(S.placement)===x?S.overflows[0]>0:!0)))return{data:{index:Y,overflows:I},reset:{placement:Z}};let K=(T=I.filter(j=>j.overflows[0]<=0).sort((j,S)=>j.overflows[1]-S.overflows[1])[0])==null?void 0:T.placement;if(!K)switch(v){case"bestFit":{var U;const j=(U=I.filter(S=>{if(_){const J=$e(S.placement);return J===x||J==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(J=>J>0).reduce((J,le)=>J+le,0)]).sort((S,J)=>S[1]-J[1])[0])==null?void 0:U[0];j&&(K=j);break}case"initialPlacement":K=s;break}if(o!==K)return{reset:{placement:K}}}return{}}}};function ba(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ya(e){return Wc.some(t=>e[t]>=0)}const Qc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Ke(e,t);switch(n){case"referenceHidden":{const a=await Vt(t,{...o,elementContext:"reference"}),i=ba(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ya(i)}}}case"escaped":{const a=await Vt(t,{...o,altBoundary:!0}),i=ba(a,r.floating);return{data:{escapedOffsets:i,escaped:ya(i)}}}default:return{}}}}},wa=new Set(["left","top"]);async function Jc(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Qe(r),s=Ct(r),c=$e(r)==="y",l=wa.has(i)?-1:1,d=a&&c?-1:1,m=Ke(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof b=="number"&&(v=s==="end"?b*-1:b),c?{x:v*d,y:h*l}:{x:h*l,y:v*d}}const Zc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await Jc(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},eu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:y=>{let{x:w,y:x}=y;return{x:w,y:x}}},...c}=Ke(e,t),l={x:r,y:n},d=await Vt(t,c),m=$e(Qe(o)),h=fn(m);let v=l[h],b=l[m];if(a){const y=h==="y"?"top":"left",w=h==="y"?"bottom":"right",x=v+d[y],C=v-d[w];v=dn(x,v,C)}if(i){const y=m==="y"?"top":"left",w=m==="y"?"bottom":"right",x=b+d[y],C=b-d[w];b=dn(x,b,C)}const g=s.fn({...t,[h]:v,[m]:b});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:a,[m]:i}}}}}},tu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Ke(e,t),d={x:r,y:n},m=$e(o),h=fn(m);let v=d[h],b=d[m];const g=Ke(s,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const C=h==="y"?"height":"width",k=a.reference[h]-a.floating[C]+y.mainAxis,E=a.reference[h]+a.reference[C]-y.mainAxis;v<k?v=k:v>E&&(v=E)}if(l){var w,x;const C=h==="y"?"width":"height",k=wa.has(Qe(o)),E=a.reference[m]-a.floating[C]+(k&&((w=i.offset)==null?void 0:w[m])||0)+(k?0:y.crossAxis),_=a.reference[m]+a.reference[C]+(k?0:((x=i.offset)==null?void 0:x[m])||0)-(k?y.crossAxis:0);b<E?b=E:b>_&&(b=_)}return{[h]:v,[m]:b}}}},ru=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...l}=Ke(e,t),d=await Vt(t,l),m=Qe(o),h=Ct(o),v=$e(o)==="y",{width:b,height:g}=a.floating;let y,w;m==="top"||m==="bottom"?(y=m,w=h===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(w=m,y=h==="end"?"top":"bottom");const x=g-d.top-d.bottom,C=b-d.left-d.right,k=ot(g-d[y],x),E=ot(b-d[w],C),_=!t.middlewareData.shift;let N=k,z=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(z=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(N=x),_&&!h){const I=ke(d.left,0),V=ke(d.right,0),T=ke(d.top,0),U=ke(d.bottom,0);v?z=b-2*(I!==0||V!==0?I+V:ke(d.left,d.right)):N=g-2*(T!==0||U!==0?T+U:ke(d.top,d.bottom))}await c({...t,availableWidth:z,availableHeight:N});const L=await i.getDimensions(s.floating);return b!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function br(){return typeof window<"u"}function St(e){return xa(e)?(e.nodeName||"").toLowerCase():"#document"}function Ee(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Be(e){var t;return(t=(xa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xa(e){return br()?e instanceof Node||e instanceof Ee(e).Node:!1}function De(e){return br()?e instanceof Element||e instanceof Ee(e).Element:!1}function Ye(e){return br()?e instanceof HTMLElement||e instanceof Ee(e).HTMLElement:!1}function Ca(e){return!br()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ee(e).ShadowRoot}const nu=new Set(["inline","contents"]);function Ut(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!nu.has(o)}const ou=new Set(["table","td","th"]);function au(e){return ou.has(St(e))}const iu=[":popover-open",":modal"];function yr(e){return iu.some(t=>{try{return e.matches(t)}catch{return!1}})}const su=["transform","translate","scale","rotate","perspective"],lu=["transform","translate","scale","rotate","perspective","filter"],cu=["paint","layout","strict","content"];function pn(e){const t=gn(),r=De(e)?Re(e):e;return su.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||lu.some(n=>(r.willChange||"").includes(n))||cu.some(n=>(r.contain||"").includes(n))}function uu(e){let t=at(e);for(;Ye(t)&&!Mt(t);){if(pn(t))return t;if(yr(t))return null;t=at(t)}return null}function gn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const du=new Set(["html","body","#document"]);function Mt(e){return du.has(St(e))}function Re(e){return Ee(e).getComputedStyle(e)}function wr(e){return De(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function at(e){if(St(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ca(e)&&e.host||Be(e);return Ca(t)?t.host:t}function Sa(e){const t=at(e);return Mt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&Ut(t)?t:Sa(t)}function qt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Sa(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=Ee(o);if(a){const s=bn(i);return t.concat(i,i.visualViewport||[],Ut(o)?o:[],s&&r?qt(s):[])}return t.concat(o,qt(o,[],r))}function bn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ma(e){const t=Re(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ye(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=hr(r)!==a||hr(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function yn(e){return De(e)?e:e.contextElement}function Pt(e){const t=yn(e);if(!Ye(t))return Fe(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Ma(t);let i=(a?hr(r.width):r.width)/n,s=(a?hr(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const fu=Fe(0);function Pa(e){const t=Ee(e);return!gn()||!t.visualViewport?fu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mu(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ee(e)?!1:t}function dt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=yn(e);let i=Fe(1);t&&(n?De(n)&&(i=Pt(n)):i=Pt(e));const s=mu(a,r,n)?Pa(a):Fe(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,d=o.width/i.x,m=o.height/i.y;if(a){const h=Ee(a),v=n&&De(n)?Ee(n):n;let b=h,g=bn(b);for(;g&&n&&v!==b;){const y=Pt(g),w=g.getBoundingClientRect(),x=Re(g),C=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*y.x,k=w.top+(g.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,l*=y.y,d*=y.x,m*=y.y,c+=C,l+=k,b=Ee(g),g=bn(b)}}return gr({width:d,height:m,x:c,y:l})}function xr(e,t){const r=wr(e).scrollLeft;return t?t.left+r:dt(Be(e)).left+r}function ka(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-xr(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function hu(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=Be(n),s=t?yr(t.floating):!1;if(n===i||s&&a)return r;let c={scrollLeft:0,scrollTop:0},l=Fe(1);const d=Fe(0),m=Ye(n);if((m||!m&&!a)&&((St(n)!=="body"||Ut(i))&&(c=wr(n)),Ye(n))){const v=dt(n);l=Pt(n),d.x=v.x+n.clientLeft,d.y=v.y+n.clientTop}const h=i&&!m&&!a?ka(i,c):Fe(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+d.x+h.x,y:r.y*l.y-c.scrollTop*l.y+d.y+h.y}}function vu(e){return Array.from(e.getClientRects())}function pu(e){const t=Be(e),r=wr(e),n=e.ownerDocument.body,o=ke(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ke(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+xr(e);const s=-r.scrollTop;return Re(n).direction==="rtl"&&(i+=ke(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const Ea=25;function gu(e,t){const r=Ee(e),n=Be(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const d=gn();(!d||d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const l=xr(n);if(l<=0){const d=n.ownerDocument,m=d.body,h=getComputedStyle(m),v=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,b=Math.abs(n.clientWidth-m.clientWidth-v);b<=Ea&&(a-=b)}else l<=Ea&&(a+=l);return{width:a,height:i,x:s,y:c}}const bu=new Set(["absolute","fixed"]);function yu(e,t){const r=dt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ye(e)?Pt(e):Fe(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,l=n*a.y;return{width:i,height:s,x:c,y:l}}function Na(e,t,r){let n;if(t==="viewport")n=gu(e,r);else if(t==="document")n=pu(Be(e));else if(De(t))n=yu(t,r);else{const o=Pa(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return gr(n)}function _a(e,t){const r=at(e);return r===t||!De(r)||Mt(r)?!1:Re(r).position==="fixed"||_a(r,t)}function wu(e,t){const r=t.get(e);if(r)return r;let n=qt(e,[],!1).filter(s=>De(s)&&St(s)!=="body"),o=null;const a=Re(e).position==="fixed";let i=a?at(e):e;for(;De(i)&&!Mt(i);){const s=Re(i),c=pn(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&bu.has(o.position)||Ut(i)&&!c&&_a(e,i))?n=n.filter(d=>d!==i):o=s,i=at(i)}return t.set(e,n),n}function xu(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?yr(t)?[]:wu(t,this._c):[].concat(r),n],s=i[0],c=i.reduce((l,d)=>{const m=Na(t,d,o);return l.top=ke(m.top,l.top),l.right=ot(m.right,l.right),l.bottom=ot(m.bottom,l.bottom),l.left=ke(m.left,l.left),l},Na(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Cu(e){const{width:t,height:r}=Ma(e);return{width:t,height:r}}function Su(e,t,r){const n=Ye(t),o=Be(t),a=r==="fixed",i=dt(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=Fe(0);function l(){c.x=xr(o)}if(n||!n&&!a)if((St(t)!=="body"||Ut(o))&&(s=wr(t)),n){const v=dt(t,!0,a,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&l();a&&!n&&o&&l();const d=o&&!n&&!a?ka(o,s):Fe(0),m=i.left+s.scrollLeft-c.x-d.x,h=i.top+s.scrollTop-c.y-d.y;return{x:m,y:h,width:i.width,height:i.height}}function wn(e){return Re(e).position==="static"}function ja(e,t){if(!Ye(e)||Re(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Be(e)===r&&(r=r.ownerDocument.body),r}function Da(e,t){const r=Ee(e);if(yr(e))return r;if(!Ye(e)){let o=at(e);for(;o&&!Mt(o);){if(De(o)&&!wn(o))return o;o=at(o)}return r}let n=ja(e,t);for(;n&&au(n)&&wn(n);)n=ja(n,t);return n&&Mt(n)&&wn(n)&&!pn(n)?r:n||uu(e)||r}const Mu=async function(e){const t=this.getOffsetParent||Da,r=this.getDimensions,n=await r(e.floating);return{reference:Su(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Pu(e){return Re(e).direction==="rtl"}const ku={convertOffsetParentRelativeRectToViewportRelativeRect:hu,getDocumentElement:Be,getClippingRect:xu,getOffsetParent:Da,getElementRects:Mu,getClientRects:vu,getDimensions:Cu,getScale:Pt,isElement:De,isRTL:Pu};function Ra(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Eu(e,t){let r=null,n;const o=Be(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const l=e.getBoundingClientRect(),{left:d,top:m,width:h,height:v}=l;if(s||t(),!h||!v)return;const b=vr(m),g=vr(o.clientWidth-(d+h)),y=vr(o.clientHeight-(m+v)),w=vr(d),C={rootMargin:-b+"px "+-g+"px "+-y+"px "+-w+"px",threshold:ke(0,ot(1,c))||1};let k=!0;function E(_){const N=_[0].intersectionRatio;if(N!==c){if(!k)return i();N?i(!1,N):n=setTimeout(()=>{i(!1,1e-7)},1e3)}N===1&&!Ra(l,e.getBoundingClientRect())&&i(),k=!1}try{r=new IntersectionObserver(E,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,C)}r.observe(e)}return i(!0),a}function Nu(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=yn(e),d=o||a?[...l?qt(l):[],...qt(t)]:[];d.forEach(w=>{o&&w.addEventListener("scroll",r,{passive:!0}),a&&w.addEventListener("resize",r)});const m=l&&s?Eu(l,r):null;let h=-1,v=null;i&&(v=new ResizeObserver(w=>{let[x]=w;x&&x.target===l&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=v)==null||C.observe(t)})),r()}),l&&!c&&v.observe(l),v.observe(t));let b,g=c?dt(e):null;c&&y();function y(){const w=dt(e);g&&!Ra(g,w)&&r(),g=w,b=requestAnimationFrame(y)}return r(),()=>{var w;d.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),m==null||m(),(w=v)==null||w.disconnect(),v=null,c&&cancelAnimationFrame(b)}}const _u=Zc,ju=eu,Du=Kc,Ru=ru,Ou=Qc,Oa=Gc,Au=tu,Tu=(e,t,r)=>{const n=new Map,o={platform:ku,...r},a={...o.platform,_c:n};return Xc(e,t,{...o,platform:a})};var Lu=typeof document<"u",Wu=function(){},Cr=Lu?B.useLayoutEffect:Wu;function Sr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Sr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Sr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Aa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ta(e,t){const r=Aa(e);return Math.round(t*r)/r}function xn(e){const t=f.useRef(e);return Cr(()=>{t.current=e}),t}function Iu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[d,m]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,v]=f.useState(n);Sr(h,n)||v(n);const[b,g]=f.useState(null),[y,w]=f.useState(null),x=f.useCallback(S=>{S!==_.current&&(_.current=S,g(S))},[]),C=f.useCallback(S=>{S!==N.current&&(N.current=S,w(S))},[]),k=a||b,E=i||y,_=f.useRef(null),N=f.useRef(null),z=f.useRef(d),L=c!=null,I=xn(c),V=xn(o),T=xn(l),U=f.useCallback(()=>{if(!_.current||!N.current)return;const S={placement:t,strategy:r,middleware:h};V.current&&(S.platform=V.current),Tu(_.current,N.current,S).then(J=>{const le={...J,isPositioned:T.current!==!1};Y.current&&!Sr(z.current,le)&&(z.current=le,go.flushSync(()=>{m(le)}))})},[h,t,r,V,T]);Cr(()=>{l===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,m(S=>({...S,isPositioned:!1})))},[l]);const Y=f.useRef(!1);Cr(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Cr(()=>{if(k&&(_.current=k),E&&(N.current=E),k&&E){if(I.current)return I.current(k,E,U);U()}},[k,E,U,I,L]);const Z=f.useMemo(()=>({reference:_,floating:N,setReference:x,setFloating:C}),[x,C]),K=f.useMemo(()=>({reference:k,floating:E}),[k,E]),j=f.useMemo(()=>{const S={position:r,left:0,top:0};if(!K.floating)return S;const J=Ta(K.floating,d.x),le=Ta(K.floating,d.y);return s?{...S,transform:"translate("+J+"px, "+le+"px)",...Aa(K.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:J,top:le}},[r,s,K.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:U,refs:Z,elements:K,floatingStyles:j}),[d,U,Z,K,j])}const Fu=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Oa({element:n.current,padding:o}).fn(r):{}:n?Oa({element:n,padding:o}).fn(r):{}}}},$u=(e,t)=>({..._u(e),options:[e,t]}),Bu=(e,t)=>({...ju(e),options:[e,t]}),Yu=(e,t)=>({...Au(e),options:[e,t]}),Hu=(e,t)=>({...Du(e),options:[e,t]}),zu=(e,t)=>({...Ru(e),options:[e,t]}),Vu=(e,t)=>({...Ou(e),options:[e,t]}),Uu=(e,t)=>({...Fu(e),options:[e,t]});var qu="Arrow",La=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return u.jsx(he.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});La.displayName=qu;var Xu=La;function Gu(e){const[t,r]=f.useState(void 0);return Ge(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Cn="Popper",[Wa,Ia]=lr(Cn),[Ku,Fa]=Wa(Cn),$a=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return u.jsx(Ku,{scope:t,anchor:n,onAnchorChange:o,children:r})};$a.displayName=Cn;var Ba="PopperAnchor",Ya=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Fa(Ba,r),i=f.useRef(null),s=pe(t,i),c=f.useRef(null);return f.useEffect(()=>{const l=c.current;c.current=(n==null?void 0:n.current)||i.current,l!==c.current&&a.onAnchorChange(c.current)}),n?null:u.jsx(he.div,{...o,ref:s})});Ya.displayName=Ba;var Sn="PopperContent",[Qu,Ju]=Wa(Sn),Ha=f.forwardRef((e,t)=>{var ee,ue,ce,_e,zr,or;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:b,...g}=e,y=Fa(Sn,r),[w,x]=f.useState(null),C=pe(t,pt=>x(pt)),[k,E]=f.useState(null),_=Gu(k),N=(_==null?void 0:_.width)??0,z=(_==null?void 0:_.height)??0,L=n+(a!=="center"?"-"+a:""),I=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},V=Array.isArray(l)?l:[l],T=V.length>0,U={padding:I,boundary:V.filter(ed),altBoundary:T},{refs:Y,floatingStyles:Z,placement:K,isPositioned:j,middlewareData:S}=Iu({strategy:"fixed",placement:L,whileElementsMounted:(...pt)=>Nu(...pt,{animationFrame:v==="always"}),elements:{reference:y.anchor},middleware:[$u({mainAxis:o+z,alignmentAxis:i}),c&&Bu({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Yu():void 0,...U}),c&&Hu({...U}),zu({...U,apply:({elements:pt,rects:Vr,availableWidth:It,availableHeight:gt})=>{const{width:Ur,height:qr}=Vr.reference,Ze=pt.floating.style;Ze.setProperty("--radix-popper-available-width",`${It}px`),Ze.setProperty("--radix-popper-available-height",`${gt}px`),Ze.setProperty("--radix-popper-anchor-width",`${Ur}px`),Ze.setProperty("--radix-popper-anchor-height",`${qr}px`)}}),k&&Uu({element:k,padding:s}),td({arrowWidth:N,arrowHeight:z}),h&&Vu({strategy:"referenceHidden",...U})]}),[J,le]=Ua(K),se=Pe(b);Ge(()=>{j&&(se==null||se())},[j,se]);const P=(ee=S.arrow)==null?void 0:ee.x,F=(ue=S.arrow)==null?void 0:ue.y,q=((ce=S.arrow)==null?void 0:ce.centerOffset)!==0,[A,Q]=f.useState();return Ge(()=>{w&&Q(window.getComputedStyle(w).zIndex)},[w]),u.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:j?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:A,"--radix-popper-transform-origin":[(_e=S.transformOrigin)==null?void 0:_e.x,(zr=S.transformOrigin)==null?void 0:zr.y].join(" "),...((or=S.hide)==null?void 0:or.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(Qu,{scope:r,placedSide:J,onArrowChange:E,arrowX:P,arrowY:F,shouldHideArrow:q,children:u.jsx(he.div,{"data-side":J,"data-align":le,...g,ref:C,style:{...g.style,animation:j?void 0:"none"}})})})});Ha.displayName=Sn;var za="PopperArrow",Zu={top:"bottom",right:"left",bottom:"top",left:"right"},Va=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Ju(za,n),i=Zu[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(Xu,{...o,ref:r,style:{...o.style,display:"block"}})})});Va.displayName=za;function ed(e){return e!==null}var td=e=>({name:"transformOrigin",options:e,fn(t){var y,w,x;const{placement:r,rects:n,middlewareData:o}=t,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,d]=Ua(r),m={start:"0%",center:"50%",end:"100%"}[d],h=(((w=o.arrow)==null?void 0:w.x)??0)+s/2,v=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let b="",g="";return l==="bottom"?(b=i?m:`${h}px`,g=`${-c}px`):l==="top"?(b=i?m:`${h}px`,g=`${n.floating.height+c}px`):l==="right"?(b=`${-c}px`,g=i?m:`${v}px`):l==="left"&&(b=`${n.floating.width+c}px`,g=i?m:`${v}px`),{data:{x:b,y:g}}}});function Ua(e){const[t,r="center"]=e.split("-");return[t,r]}var rd=$a,qa=Ya,nd=Ha,od=Va,ad="Portal",Mn=f.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[o,a]=f.useState(!1);Ge(()=>a(!0),[]);const i=r||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?vo.createPortal(u.jsx(he.div,{...n,ref:t}),i):null});Mn.displayName=ad;var id=f[" useInsertionEffect ".trim().toString()]||Ge;function Xa({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,i]=sd({defaultProp:t,onChange:r}),s=e!==void 0,c=s?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const m=d.current;m!==s&&console.warn(`${n} is changing from ${m?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,n])}const l=f.useCallback(d=>{var m;if(s){const h=ld(d)?d(e):d;h!==e&&((m=i.current)==null||m.call(i,h))}else a(d)},[s,e,a,i]);return[c,l]}function sd({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),a=f.useRef(t);return id(()=>{a.current=t},[t]),f.useEffect(()=>{var i;o.current!==r&&((i=a.current)==null||i.call(a,r),o.current=r)},[r,o]),[r,n,a]}function ld(e){return typeof e=="function"}var cd=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},kt=new WeakMap,Mr=new WeakMap,Pr={},Pn=0,Ga=function(e){return e&&(e.host||Ga(e.parentNode))},ud=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Ga(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},dd=function(e,t,r,n){var o=ud(t,Array.isArray(e)?e:[e]);Pr[r]||(Pr[r]=new WeakMap);var a=Pr[r],i=[],s=new Set,c=new Set(o),l=function(m){!m||s.has(m)||(s.add(m),l(m.parentNode))};o.forEach(l);var d=function(m){!m||c.has(m)||Array.prototype.forEach.call(m.children,function(h){if(s.has(h))d(h);else try{var v=h.getAttribute(n),b=v!==null&&v!=="false",g=(kt.get(h)||0)+1,y=(a.get(h)||0)+1;kt.set(h,g),a.set(h,y),i.push(h),g===1&&b&&Mr.set(h,!0),y===1&&h.setAttribute(r,"true"),b||h.setAttribute(n,"true")}catch(w){console.error("aria-hidden: cannot operate on ",h,w)}})};return d(t),s.clear(),Pn++,function(){i.forEach(function(m){var h=kt.get(m)-1,v=a.get(m)-1;kt.set(m,h),a.set(m,v),h||(Mr.has(m)||m.removeAttribute(n),Mr.delete(m)),v||m.removeAttribute(r)}),Pn--,Pn||(kt=new WeakMap,kt=new WeakMap,Mr=new WeakMap,Pr={})}},Ka=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=cd(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),dd(n,o,r,"aria-hidden")):function(){return null}},He=function(){return He=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},He.apply(this,arguments)};function Qa(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function fd(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var kr="right-scroll-bar-position",Er="width-before-scroll-bar",md="with-scroll-bars-hidden",hd="--removed-body-scroll-bar-size";function kn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vd(e,t){var r=B.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var pd=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ja=new WeakMap;function gd(e,t){var r=vd(null,function(n){return e.forEach(function(o){return kn(o,n)})});return pd(function(){var n=Ja.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||kn(s,null)}),a.forEach(function(s){o.has(s)||kn(s,i)})}Ja.set(r,e)},[e]),r}function bd(e){return e}function yd(e,t){t===void 0&&(t=bd);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(a),i=r}var c=function(){var d=i;i=[],d.forEach(a)},l=function(){return Promise.resolve().then(c)};l(),r={push:function(d){i.push(d),l()},filter:function(d){return i=i.filter(d),r}}}};return o}function wd(e){e===void 0&&(e={});var t=yd(null);return t.options=He({async:!0,ssr:!1},e),t}var Za=function(e){var t=e.sideCar,r=Qa(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return f.createElement(n,He({},r))};Za.isSideCarExport=!0;function xd(e,t){return e.useMedium(t),Za}var ei=wd(),En=function(){},Nr=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:En,onWheelCapture:En,onTouchMoveCapture:En}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,m=e.shards,h=e.sideCar,v=e.noRelative,b=e.noIsolation,g=e.inert,y=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,C=e.gapMode,k=Qa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,_=gd([r,t]),N=He(He({},k),o);return f.createElement(f.Fragment,null,d&&f.createElement(E,{sideCar:ei,removeScrollBar:l,shards:m,noRelative:v,noIsolation:b,inert:g,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:C}),i?f.cloneElement(f.Children.only(s),He(He({},N),{ref:_})):f.createElement(x,He({},N,{className:c,ref:_}),s))});Nr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Nr.classNames={fullWidth:Er,zeroRight:kr};var Cd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Sd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Cd();return t&&e.setAttribute("nonce",t),e}function Md(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Pd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var kd=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Sd())&&(Md(t,r),Pd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ed=function(){var e=kd();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ti=function(){var e=Ed(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Nd={left:0,top:0,right:0,gap:0},Nn=function(e){return parseInt(e||"",10)||0},_d=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Nn(r),Nn(n),Nn(o)]},jd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Nd;var t=_d(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Dd=ti(),Et="data-scroll-locked",Rd=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
31
- .`.concat(md,` {
32
- overflow: hidden `).concat(n,`;
33
- padding-right: `).concat(s,"px ").concat(n,`;
34
- }
35
- body[`).concat(Et,`] {
36
- overflow: hidden `).concat(n,`;
37
- overscroll-behavior: contain;
38
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
39
- padding-left: `.concat(o,`px;
40
- padding-top: `).concat(a,`px;
41
- padding-right: `).concat(i,`px;
42
- margin-left:0;
43
- margin-top:0;
44
- margin-right: `).concat(s,"px ").concat(n,`;
45
- `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
46
- }
47
-
48
- .`).concat(kr,` {
49
- right: `).concat(s,"px ").concat(n,`;
50
- }
51
-
52
- .`).concat(Er,` {
53
- margin-right: `).concat(s,"px ").concat(n,`;
54
- }
55
-
56
- .`).concat(kr," .").concat(kr,` {
57
- right: 0 `).concat(n,`;
58
- }
59
-
60
- .`).concat(Er," .").concat(Er,` {
61
- margin-right: 0 `).concat(n,`;
62
- }
63
-
64
- body[`).concat(Et,`] {
65
- `).concat(hd,": ").concat(s,`px;
66
- }
67
- `)},ri=function(){var e=parseInt(document.body.getAttribute(Et)||"0",10);return isFinite(e)?e:0},Od=function(){f.useEffect(function(){return document.body.setAttribute(Et,(ri()+1).toString()),function(){var e=ri()-1;e<=0?document.body.removeAttribute(Et):document.body.setAttribute(Et,e.toString())}},[])},Ad=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Od();var a=f.useMemo(function(){return jd(o)},[o]);return f.createElement(Dd,{styles:Rd(a,!t,o,r?"":"!important")})},_n=!1;if(typeof window<"u")try{var _r=Object.defineProperty({},"passive",{get:function(){return _n=!0,!0}});window.addEventListener("test",_r,_r),window.removeEventListener("test",_r,_r)}catch{_n=!1}var Nt=_n?{passive:!1}:!1,Td=function(e){return e.tagName==="TEXTAREA"},ni=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Td(e)&&r[t]==="visible")},Ld=function(e){return ni(e,"overflowY")},Wd=function(e){return ni(e,"overflowX")},oi=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=ai(e,n);if(o){var a=ii(e,n),i=a[1],s=a[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Id=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Fd=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ai=function(e,t){return e==="v"?Ld(t):Wd(t)},ii=function(e,t){return e==="v"?Id(t):Fd(t)},$d=function(e,t){return e==="h"&&t==="rtl"?-1:1},Bd=function(e,t,r,n,o){var a=$d(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,c=t.contains(s),l=!1,d=i>0,m=0,h=0;do{if(!s)break;var v=ii(e,s),b=v[0],g=v[1],y=v[2],w=g-y-a*b;(b||w)&&ai(e,s)&&(m+=w,h+=b);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(d&&Math.abs(m)<1||!d&&Math.abs(h)<1)&&(l=!0),l},jr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},si=function(e){return[e.deltaX,e.deltaY]},li=function(e){return e&&"current"in e?e.current:e},Yd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Hd=function(e){return`
68
- .block-interactivity-`.concat(e,` {pointer-events: none;}
69
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
70
- `)},zd=0,_t=[];function Vd(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(zd++)[0],a=f.useState(ti)[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 g=fd([e.lockRef.current],(e.shards||[]).map(li),!0).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(g,y){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var w=jr(g),x=r.current,C="deltaX"in g?g.deltaX:x[0]-w[0],k="deltaY"in g?g.deltaY:x[1]-w[1],E,_=g.target,N=Math.abs(C)>Math.abs(k)?"h":"v";if("touches"in g&&N==="h"&&_.type==="range")return!1;var z=window.getSelection(),L=z&&z.anchorNode,I=L?L===_||L.contains(_):!1;if(I)return!1;var V=oi(N,_);if(!V)return!0;if(V?E=N:(E=N==="v"?"h":"v",V=oi(N,_)),!V)return!1;if(!n.current&&"changedTouches"in g&&(C||k)&&(n.current=E),!E)return!0;var T=n.current||E;return Bd(T,y,g,T==="h"?C:k)},[]),c=f.useCallback(function(g){var y=g;if(!(!_t.length||_t[_t.length-1]!==a)){var w="deltaY"in y?si(y):jr(y),x=t.current.filter(function(E){return E.name===y.type&&(E.target===y.target||y.target===E.shadowParent)&&Yd(E.delta,w)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var C=(i.current.shards||[]).map(li).filter(Boolean).filter(function(E){return E.contains(y.target)}),k=C.length>0?s(y,C[0]):!i.current.noIsolation;k&&y.cancelable&&y.preventDefault()}}},[]),l=f.useCallback(function(g,y,w,x){var C={name:g,delta:y,target:w,should:x,shadowParent:Ud(w)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(k){return k!==C})},1)},[]),d=f.useCallback(function(g){r.current=jr(g),n.current=void 0},[]),m=f.useCallback(function(g){l(g.type,si(g),g.target,s(g,e.lockRef.current))},[]),h=f.useCallback(function(g){l(g.type,jr(g),g.target,s(g,e.lockRef.current))},[]);f.useEffect(function(){return _t.push(a),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Nt),document.addEventListener("touchmove",c,Nt),document.addEventListener("touchstart",d,Nt),function(){_t=_t.filter(function(g){return g!==a}),document.removeEventListener("wheel",c,Nt),document.removeEventListener("touchmove",c,Nt),document.removeEventListener("touchstart",d,Nt)}},[]);var v=e.removeScrollBar,b=e.inert;return f.createElement(f.Fragment,null,b?f.createElement(a,{styles:Hd(o)}):null,v?f.createElement(Ad,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ud(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qd=xd(ei,Vd);var jn=f.forwardRef(function(e,t){return f.createElement(Nr,He({},e,{ref:t,sideCar:qd}))});jn.classNames=Nr.classNames;var Dr="Popover",[ci]=lr(Dr,[Ia]),Xt=Ia(),[Xd,it]=ci(Dr),ui=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=Xt(t),c=f.useRef(null),[l,d]=f.useState(!1),[m,h]=Xa({prop:n,defaultProp:o??!1,onChange:a,caller:Dr});return u.jsx(rd,{...s,children:u.jsx(Xd,{scope:t,contentId:Ie(),triggerRef:c,open:m,onOpenChange:h,onOpenToggle:f.useCallback(()=>h(v=>!v),[h]),hasCustomAnchor:l,onCustomAnchorAdd:f.useCallback(()=>d(!0),[]),onCustomAnchorRemove:f.useCallback(()=>d(!1),[]),modal:i,children:r})})};ui.displayName=Dr;var di="PopoverAnchor",Gd=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=it(di,r),a=Xt(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return f.useEffect(()=>(i(),()=>s()),[i,s]),u.jsx(qa,{...a,...n,ref:t})});Gd.displayName=di;var fi="PopoverTrigger",mi=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=it(fi,r),a=Xt(r),i=pe(t,o.triggerRef),s=u.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bi(o.open),...n,ref:i,onClick:fe(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:u.jsx(qa,{asChild:!0,...a,children:s})});mi.displayName=fi;var Dn="PopoverPortal",[Kd,Qd]=ci(Dn,{forceMount:void 0}),hi=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=it(Dn,t);return u.jsx(Kd,{scope:t,forceMount:r,children:u.jsx(Le,{present:r||a.open,children:u.jsx(Mn,{asChild:!0,container:o,children:n})})})};hi.displayName=Dn;var jt="PopoverContent",vi=f.forwardRef((e,t)=>{const r=Qd(jt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=it(jt,e.__scopePopover);return u.jsx(Le,{present:n||a.open,children:a.modal?u.jsx(Zd,{...o,ref:t}):u.jsx(ef,{...o,ref:t})})});vi.displayName=jt;var Jd=Jr("PopoverContent.RemoveScroll"),Zd=f.forwardRef((e,t)=>{const r=it(jt,e.__scopePopover),n=f.useRef(null),o=pe(t,n),a=f.useRef(!1);return f.useEffect(()=>{const i=n.current;if(i)return Ka(i)},[]),u.jsx(jn,{as:Jd,allowPinchZoom:!0,children:u.jsx(pi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fe(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),a.current||(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:fe(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,l=s.button===2||c;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:fe(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),ef=f.forwardRef((e,t)=>{const r=it(jt,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return u.jsx(pi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(s=r.triggerRef.current)==null||s.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=r.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),pi=f.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:d,...m}=e,h=it(jt,r),v=Xt(r);return sa(),u.jsx(un,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(an,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:u.jsx(nd,{"data-state":bi(h.open),role:"dialog",id:h.contentId,...v,...m,ref:t,style:{...m.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)"}})})})}),gi="PopoverClose",tf=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=it(gi,r);return u.jsx(he.button,{type:"button",...n,ref:t,onClick:fe(e.onClick,()=>o.onOpenChange(!1))})});tf.displayName=gi;var rf="PopoverArrow",nf=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Xt(r);return u.jsx(od,{...o,...n,ref:t})});nf.displayName=rf;function bi(e){return e?"open":"closed"}var of=ui,af=mi,sf=hi,yi=vi;const Gt=of,Kt=af,Dt=f.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},o)=>u.jsx(sf,{children:u.jsx(yi,{ref:o,align:t,sideOffset:r,className:O("z-50 w-72 rounded-md border border-border_primary 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",e),...n})}));Dt.displayName=yi.displayName;var wi=1,lf=.9,cf=.8,uf=.17,Rn=.1,On=.999,df=.9999,ff=.99,mf=/[\\\/_+.#"@\[\(\{&]/,hf=/[\\\/_+.#"@\[\(\{&]/g,vf=/[\s-]/,xi=/[\s-]/g;function An(e,t,r,n,o,a,i){if(a===t.length)return o===e.length?wi:ff;var s=`${o},${a}`;if(i[s]!==void 0)return i[s];for(var c=n.charAt(a),l=r.indexOf(c,o),d=0,m,h,v,b;l>=0;)m=An(e,t,r,n,l+1,a+1,i),m>d&&(l===o?m*=wi:mf.test(e.charAt(l-1))?(m*=cf,v=e.slice(o,l-1).match(hf),v&&o>0&&(m*=Math.pow(On,v.length))):vf.test(e.charAt(l-1))?(m*=lf,b=e.slice(o,l-1).match(xi),b&&o>0&&(m*=Math.pow(On,b.length))):(m*=uf,o>0&&(m*=Math.pow(On,l-o))),e.charAt(l)!==t.charAt(a)&&(m*=df)),(m<Rn&&r.charAt(l-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(l-1)!==n.charAt(a))&&(h=An(e,t,r,n,l+1,a+2,i),h*Rn>m&&(m=h*Rn)),m>d&&(d=m),l=r.indexOf(c,l+1);return i[s]=d,d}function Ci(e){return e.toLowerCase().replace(xi," ")}function pf(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,An(e,t,Ci(e),Ci(t),0,0,{})}var Rr="Dialog",[Si]=lr(Rr),[gf,Oe]=Si(Rr),Mi=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=f.useRef(null),c=f.useRef(null),[l,d]=Xa({prop:n,defaultProp:o??!1,onChange:a,caller:Rr});return u.jsx(gf,{scope:t,triggerRef:s,contentRef:c,contentId:Ie(),titleId:Ie(),descriptionId:Ie(),open:l,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(m=>!m),[d]),modal:i,children:r})};Mi.displayName=Rr;var Pi="DialogTrigger",bf=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Pi,r),a=pe(t,o.triggerRef);return u.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Wn(o.open),...n,ref:a,onClick:fe(e.onClick,o.onOpenToggle)})});bf.displayName=Pi;var Tn="DialogPortal",[yf,ki]=Si(Tn,{forceMount:void 0}),Ei=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=Oe(Tn,t);return u.jsx(yf,{scope:t,forceMount:r,children:f.Children.map(n,i=>u.jsx(Le,{present:r||a.open,children:u.jsx(Mn,{asChild:!0,container:o,children:i})}))})};Ei.displayName=Tn;var Or="DialogOverlay",Ni=f.forwardRef((e,t)=>{const r=ki(Or,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Oe(Or,e.__scopeDialog);return a.modal?u.jsx(Le,{present:n||a.open,children:u.jsx(xf,{...o,ref:t})}):null});Ni.displayName=Or;var wf=Jr("DialogOverlay.RemoveScroll"),xf=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Or,r);return u.jsx(jn,{as:wf,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(he.div,{"data-state":Wn(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ft="DialogContent",_i=f.forwardRef((e,t)=>{const r=ki(ft,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Oe(ft,e.__scopeDialog);return u.jsx(Le,{present:n||a.open,children:a.modal?u.jsx(Cf,{...o,ref:t}):u.jsx(Sf,{...o,ref:t})})});_i.displayName=ft;var Cf=f.forwardRef((e,t)=>{const r=Oe(ft,e.__scopeDialog),n=f.useRef(null),o=pe(t,r.contentRef,n);return f.useEffect(()=>{const a=n.current;if(a)return Ka(a)},[]),u.jsx(ji,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:fe(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:fe(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:fe(e.onFocusOutside,a=>a.preventDefault())})}),Sf=f.forwardRef((e,t)=>{const r=Oe(ft,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return u.jsx(ji,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(s=r.triggerRef.current)==null||s.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=r.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),ji=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=Oe(ft,r),c=f.useRef(null),l=pe(t,c);return sa(),u.jsxs(u.Fragment,{children:[u.jsx(un,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(an,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Wn(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(Ef,{titleId:s.titleId}),u.jsx(_f,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Ln="DialogTitle",Mf=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Ln,r);return u.jsx(he.h2,{id:o.titleId,...n,ref:t})});Mf.displayName=Ln;var Di="DialogDescription",Pf=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Di,r);return u.jsx(he.p,{id:o.descriptionId,...n,ref:t})});Pf.displayName=Di;var Ri="DialogClose",kf=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Ri,r);return u.jsx(he.button,{type:"button",...n,ref:t,onClick:fe(e.onClick,()=>o.onOpenChange(!1))})});kf.displayName=Ri;function Wn(e){return e?"open":"closed"}var Oi="DialogTitleWarning",[cg,Ai]=tc(Oi,{contentName:ft,titleName:Ln,docsSlug:"dialog"}),Ef=({titleId:e})=>{const t=Ai(Oi),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
71
-
72
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
73
-
74
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Nf="DialogDescriptionWarning",_f=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ai(Nf).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(n))},[n,e,t]),null},jf=Mi,Df=Ei,Rf=Ni,Of=_i,Af=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],st=Af.reduce((e,t)=>{const r=To(`Primitive.${t}`),n=f.forwardRef((o,a)=>{const{asChild:i,...s}=o,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Qt='[cmdk-group=""]',In='[cmdk-group-items=""]',Tf='[cmdk-group-heading=""]',Ti='[cmdk-item=""]',Li=`${Ti}:not([aria-disabled="true"])`,Fn="cmdk-item-select",Rt="data-value",Lf=(e,t,r)=>pf(e,t,r),Wi=f.createContext(void 0),Jt=()=>f.useContext(Wi),Ii=f.createContext(void 0),$n=()=>f.useContext(Ii),Fi=f.createContext(void 0),$i=f.forwardRef((e,t)=>{let r=Ot(()=>{var P,F;return{search:"",value:(F=(P=e.value)!=null?P:e.defaultValue)!=null?F:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Ot(()=>new Set),o=Ot(()=>new Map),a=Ot(()=>new Map),i=Ot(()=>new Set),s=Bi(e),{label:c,children:l,value:d,onValueChange:m,filter:h,shouldFilter:v,loop:b,disablePointerSelection:g=!1,vimBindings:y=!0,...w}=e,x=Ie(),C=Ie(),k=Ie(),E=f.useRef(null),_=qf();mt(()=>{if(d!==void 0){let P=d.trim();r.current.value=P,N.emit()}},[d]),mt(()=>{_(6,U)},[]);let N=f.useMemo(()=>({subscribe:P=>(i.current.add(P),()=>i.current.delete(P)),snapshot:()=>r.current,setState:(P,F,q)=>{var A,Q,ee,ue;if(!Object.is(r.current[P],F)){if(r.current[P]=F,P==="search")T(),I(),_(1,V);else if(P==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ce=document.getElementById(k);ce?ce.focus():(A=document.getElementById(x))==null||A.focus()}if(_(7,()=>{var ce;r.current.selectedItemId=(ce=Y())==null?void 0:ce.id,N.emit()}),q||_(5,U),((Q=s.current)==null?void 0:Q.value)!==void 0){let ce=F??"";(ue=(ee=s.current).onValueChange)==null||ue.call(ee,ce);return}}N.emit()}},emit:()=>{i.current.forEach(P=>P())}}),[]),z=f.useMemo(()=>({value:(P,F,q)=>{var A;F!==((A=a.current.get(P))==null?void 0:A.value)&&(a.current.set(P,{value:F,keywords:q}),r.current.filtered.items.set(P,L(F,q)),_(2,()=>{I(),N.emit()}))},item:(P,F)=>(n.current.add(P),F&&(o.current.has(F)?o.current.get(F).add(P):o.current.set(F,new Set([P]))),_(3,()=>{T(),I(),r.current.value||V(),N.emit()}),()=>{a.current.delete(P),n.current.delete(P),r.current.filtered.items.delete(P);let q=Y();_(4,()=>{T(),(q==null?void 0:q.getAttribute("id"))===P&&V(),N.emit()})}),group:P=>(o.current.has(P)||o.current.set(P,new Set),()=>{a.current.delete(P),o.current.delete(P)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:x,inputId:k,labelId:C,listInnerRef:E}),[]);function L(P,F){var q,A;let Q=(A=(q=s.current)==null?void 0:q.filter)!=null?A:Lf;return P?Q(P,r.current.search,F):0}function I(){if(!r.current.search||s.current.shouldFilter===!1)return;let P=r.current.filtered.items,F=[];r.current.filtered.groups.forEach(A=>{let Q=o.current.get(A),ee=0;Q.forEach(ue=>{let ce=P.get(ue);ee=Math.max(ce,ee)}),F.push([A,ee])});let q=E.current;Z().sort((A,Q)=>{var ee,ue;let ce=A.getAttribute("id"),_e=Q.getAttribute("id");return((ee=P.get(_e))!=null?ee:0)-((ue=P.get(ce))!=null?ue:0)}).forEach(A=>{let Q=A.closest(In);Q?Q.appendChild(A.parentElement===Q?A:A.closest(`${In} > *`)):q.appendChild(A.parentElement===q?A:A.closest(`${In} > *`))}),F.sort((A,Q)=>Q[1]-A[1]).forEach(A=>{var Q;let ee=(Q=E.current)==null?void 0:Q.querySelector(`${Qt}[${Rt}="${encodeURIComponent(A[0])}"]`);ee==null||ee.parentElement.appendChild(ee)})}function V(){let P=Z().find(q=>q.getAttribute("aria-disabled")!=="true"),F=P==null?void 0:P.getAttribute(Rt);N.setState("value",F||void 0)}function T(){var P,F,q,A;if(!r.current.search||s.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let Q=0;for(let ee of n.current){let ue=(F=(P=a.current.get(ee))==null?void 0:P.value)!=null?F:"",ce=(A=(q=a.current.get(ee))==null?void 0:q.keywords)!=null?A:[],_e=L(ue,ce);r.current.filtered.items.set(ee,_e),_e>0&&Q++}for(let[ee,ue]of o.current)for(let ce of ue)if(r.current.filtered.items.get(ce)>0){r.current.filtered.groups.add(ee);break}r.current.filtered.count=Q}function U(){var P,F,q;let A=Y();A&&(((P=A.parentElement)==null?void 0:P.firstChild)===A&&((q=(F=A.closest(Qt))==null?void 0:F.querySelector(Tf))==null||q.scrollIntoView({block:"nearest"})),A.scrollIntoView({block:"nearest"}))}function Y(){var P;return(P=E.current)==null?void 0:P.querySelector(`${Ti}[aria-selected="true"]`)}function Z(){var P;return Array.from(((P=E.current)==null?void 0:P.querySelectorAll(Li))||[])}function K(P){let F=Z()[P];F&&N.setState("value",F.getAttribute(Rt))}function j(P){var F;let q=Y(),A=Z(),Q=A.findIndex(ue=>ue===q),ee=A[Q+P];(F=s.current)!=null&&F.loop&&(ee=Q+P<0?A[A.length-1]:Q+P===A.length?A[0]:A[Q+P]),ee&&N.setState("value",ee.getAttribute(Rt))}function S(P){let F=Y(),q=F==null?void 0:F.closest(Qt),A;for(;q&&!A;)q=P>0?Vf(q,Qt):Uf(q,Qt),A=q==null?void 0:q.querySelector(Li);A?N.setState("value",A.getAttribute(Rt)):j(P)}let J=()=>K(Z().length-1),le=P=>{P.preventDefault(),P.metaKey?J():P.altKey?S(1):j(1)},se=P=>{P.preventDefault(),P.metaKey?K(0):P.altKey?S(-1):j(-1)};return f.createElement(st.div,{ref:t,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:P=>{var F;(F=w.onKeyDown)==null||F.call(w,P);let q=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||q))switch(P.key){case"n":case"j":{y&&P.ctrlKey&&le(P);break}case"ArrowDown":{le(P);break}case"p":case"k":{y&&P.ctrlKey&&se(P);break}case"ArrowUp":{se(P);break}case"Home":{P.preventDefault(),K(0);break}case"End":{P.preventDefault(),J();break}case"Enter":{P.preventDefault();let A=Y();if(A){let Q=new Event(Fn);A.dispatchEvent(Q)}}}}},f.createElement("label",{"cmdk-label":"",htmlFor:z.inputId,id:z.labelId,style:Gf},c),Ar(e,P=>f.createElement(Ii.Provider,{value:N},f.createElement(Wi.Provider,{value:z},P))))}),Wf=f.forwardRef((e,t)=>{var r,n;let o=Ie(),a=f.useRef(null),i=f.useContext(Fi),s=Jt(),c=Bi(e),l=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:i==null?void 0:i.forceMount;mt(()=>{if(!l)return s.item(o,i==null?void 0:i.id)},[l]);let d=Yi(o,a,[e.value,e.children,a],e.keywords),m=$n(),h=lt(_=>_.value&&_.value===d.current),v=lt(_=>l||s.filter()===!1?!0:_.search?_.filtered.items.get(o)>0:!0);f.useEffect(()=>{let _=a.current;if(!(!_||e.disabled))return _.addEventListener(Fn,b),()=>_.removeEventListener(Fn,b)},[v,e.onSelect,e.disabled]);function b(){var _,N;g(),(N=(_=c.current).onSelect)==null||N.call(_,d.current)}function g(){m.setState("value",d.current,!0)}if(!v)return null;let{disabled:y,value:w,onSelect:x,forceMount:C,keywords:k,...E}=e;return f.createElement(st.div,{ref:rt(a,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!h,"data-disabled":!!y,"data-selected":!!h,onPointerMove:y||s.getDisablePointerSelection()?void 0:g,onClick:y?void 0:b},e.children)}),If=f.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,i=Ie(),s=f.useRef(null),c=f.useRef(null),l=Ie(),d=Jt(),m=lt(v=>o||d.filter()===!1?!0:v.search?v.filtered.groups.has(i):!0);mt(()=>d.group(i),[]),Yi(i,s,[e.value,e.heading,c]);let h=f.useMemo(()=>({id:i,forceMount:o}),[o]);return f.createElement(st.div,{ref:rt(s,t),...a,"cmdk-group":"",role:"presentation",hidden:m?void 0:!0},r&&f.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:l},r),Ar(e,v=>f.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?l:void 0},f.createElement(Fi.Provider,{value:h},v))))}),Ff=f.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=f.useRef(null),a=lt(i=>!i.search);return!r&&!a?null:f.createElement(st.div,{ref:rt(o,t),...n,"cmdk-separator":"",role:"separator"})}),$f=f.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=$n(),i=lt(l=>l.search),s=lt(l=>l.selectedItemId),c=Jt();return f.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),f.createElement(st.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:"text",value:o?e.value:i,onChange:l=>{o||a.setState("search",l.target.value),r==null||r(l.target.value)}})}),Bf=f.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=f.useRef(null),i=f.useRef(null),s=lt(l=>l.selectedItemId),c=Jt();return f.useEffect(()=>{if(i.current&&a.current){let l=i.current,d=a.current,m,h=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let v=l.offsetHeight;d.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return h.observe(l),()=>{cancelAnimationFrame(m),h.unobserve(l)}}},[]),f.createElement(st.div,{ref:rt(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":n,id:c.listId},Ar(e,l=>f.createElement("div",{ref:rt(i,c.listInnerRef),"cmdk-list-sizer":""},l)))}),Yf=f.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:i,...s}=e;return f.createElement(jf,{open:r,onOpenChange:n},f.createElement(Df,{container:i},f.createElement(Rf,{"cmdk-overlay":"",className:o}),f.createElement(Of,{"aria-label":e.label,"cmdk-dialog":"",className:a},f.createElement($i,{ref:t,...s}))))}),Hf=f.forwardRef((e,t)=>lt(r=>r.filtered.count===0)?f.createElement(st.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),zf=f.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return f.createElement(st.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Ar(e,i=>f.createElement("div",{"aria-hidden":!0},i)))}),we=Object.assign($i,{List:Bf,Item:Wf,Input:$f,Group:If,Separator:Ff,Dialog:Yf,Empty:Hf,Loading:zf});function Vf(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Uf(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Bi(e){let t=f.useRef(e);return mt(()=>{t.current=e}),t}var mt=typeof window>"u"?f.useEffect:f.useLayoutEffect;function Ot(e){let t=f.useRef();return t.current===void 0&&(t.current=e()),t}function lt(e){let t=$n(),r=()=>e(t.snapshot());return f.useSyncExternalStore(t.subscribe,r,r)}function Yi(e,t,r,n=[]){let o=f.useRef(),a=Jt();return mt(()=>{var i;let s=(()=>{var l;for(let d of r){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(l=d.current.textContent)==null?void 0:l.trim():o.current}})(),c=n.map(l=>l.trim());a.value(e,s,c),(i=t.current)==null||i.setAttribute(Rt,s),o.current=s}),o}var qf=()=>{let[e,t]=f.useState(),r=Ot(()=>new Map);return mt(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function Xf(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Ar({asChild:e,children:t},r){return e&&f.isValidElement(t)?f.cloneElement(Xf(t),{ref:t.ref},r(t.props.children)):r(t)}var Gf={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};/**
30
+ <%s key={someKey} {...props} />`,Ho,kt,kb,kt),Fl[kt+Ho]=!0}}return g===n?Cb(he):wb(he),he}}function Nb(g,j,T){return $l(g,j,T,!0)}function Sb(g,j,T){return $l(g,j,T,!1)}var jb=Sb,Mb=Nb;er.Fragment=n,er.jsx=jb,er.jsxs=Mb}()),er}process.env.NODE_ENV==="production"?cn.exports=Bl():cn.exports=Hl();var l=cn.exports;function Xo(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Xo(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Go(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Xo(e))&&(n&&(n+=" "),n+=t);return n}const Ko=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Qo=Go,Zo=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Qo(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(c=>{const d=r==null?void 0:r[c],f=a==null?void 0:a[c];if(d===null)return null;const h=Ko(d)||Ko(f);return o[c][h]}),i=r&&Object.entries(r).reduce((c,d)=>{let[f,h]=d;return h===void 0||(c[f]=h),c},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:f,className:h,...v}=d;return Object.entries(v).every(b=>{let[p,y]=b;return Array.isArray(y)?y.includes({...a,...i}[p]):{...a,...i}[p]===y})?[...c,f,h]:c},[]);return Qo(e,s,u,r==null?void 0:r.class,r==null?void 0:r.className)},Jo=Zo("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"}}),un="-",Yl=e=>{const t=Vl(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const i=s.split(un);return i[0]===""&&i.length!==1&&i.shift(),ea(i,t)||zl(s)},getConflictingClassGroupIds:(s,i)=>{const u=r[s]||[];return i&&n[s]?[...u,...n[s]]:u}}},ea=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?ea(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(un);return(s=t.validators.find(({validator:i})=>i(a)))==null?void 0:s.classGroupId},ta=/^\[(.+)\]$/,zl=e=>{if(ta.test(e)){const t=ta.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Vl=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return ql(Object.entries(e.classGroups),r).forEach(([a,s])=>{dn(s,n,a,t)}),n},dn=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:ra(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Ul(o)){dn(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,s])=>{dn(s,ra(t,a),r,n)})})},ra=(e,t)=>{let r=e;return t.split(un).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ul=e=>e.isThemeGetter,ql=(e,t)=>t?e.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,i])=>[t+s,i])):a);return[r,o]}):e,Xl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,s)=>{r.set(a,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return o(a,s),s},set(a,s){r.has(a)?r.set(a,s):o(a,s)}}},na="!",Gl=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],a=t.length,s=i=>{const u=[];let c=0,d=0,f;for(let y=0;y<i.length;y++){let x=i[y];if(c===0){if(x===o&&(n||i.slice(y,y+a)===t)){u.push(i.slice(d,y)),d=y+a;continue}if(x==="/"){f=y;continue}}x==="["?c++:x==="]"&&c--}const h=u.length===0?i:i.substring(d),v=h.startsWith(na),b=v?h.substring(1):h,p=f&&f>d?f-d:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:p}};return r?i=>r({className:i,parseClassName:s}):s},Kl=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Ql=e=>({cache:Xl(e.cacheSize),parseClassName:Gl(e),...Yl(e)}),Zl=/\s+/,Jl=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=[],s=e.trim().split(Zl);let i="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:v}=r(c);let b=!!v,p=n(b?h.substring(0,v):h);if(!p){if(!b){i=c+(i.length>0?" "+i:i);continue}if(p=n(h),!p){i=c+(i.length>0?" "+i:i);continue}b=!1}const y=Kl(d).join(":"),x=f?y+na:y,w=x+p;if(a.includes(w))continue;a.push(w);const C=o(p,b);for(let N=0;N<C.length;++N){const k=C[N];a.push(x+k)}i=c+(i.length>0?" "+i:i)}return i};function ec(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=oa(t))&&(n&&(n+=" "),n+=r);return n}const oa=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=oa(e[n]))&&(r&&(r+=" "),r+=t);return r};function tc(e,...t){let r,n,o,a=s;function s(u){const c=t.reduce((d,f)=>f(d),e());return r=Ql(c),n=r.cache.get,o=r.cache.set,a=i,i(u)}function i(u){const c=n(u);if(c)return c;const d=Jl(u,r);return o(u,d),d}return function(){return a(ec.apply(null,arguments))}}const se=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},aa=/^\[(?:([a-z-]+):)?(.+)\]$/i,rc=/^\d+\/\d+$/,nc=new Set(["px","full","screen"]),oc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ac=/\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$/,sc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ic=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ze=e=>Pt(e)||nc.has(e)||rc.test(e),at=e=>Et(e,"length",pc),Pt=e=>!!e&&!Number.isNaN(Number(e)),fn=e=>Et(e,"number",Pt),tr=e=>!!e&&Number.isInteger(Number(e)),cc=e=>e.endsWith("%")&&Pt(e.slice(0,-1)),Y=e=>aa.test(e),st=e=>oc.test(e),uc=new Set(["length","size","percentage"]),dc=e=>Et(e,uc,sa),fc=e=>Et(e,"position",sa),mc=new Set(["image","url"]),hc=e=>Et(e,mc,bc),vc=e=>Et(e,"",gc),rr=()=>!0,Et=(e,t,r)=>{const n=aa.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},pc=e=>ac.test(e)&&!sc.test(e),sa=()=>!1,gc=e=>ic.test(e),bc=e=>lc.test(e),yc=tc(()=>{const e=se("colors"),t=se("spacing"),r=se("blur"),n=se("brightness"),o=se("borderColor"),a=se("borderRadius"),s=se("borderSpacing"),i=se("borderWidth"),u=se("contrast"),c=se("grayscale"),d=se("hueRotate"),f=se("invert"),h=se("gap"),v=se("gradientColorStops"),b=se("gradientColorStopPositions"),p=se("inset"),y=se("margin"),x=se("opacity"),w=se("padding"),C=se("saturate"),N=se("scale"),k=se("sepia"),P=se("skew"),_=se("space"),z=se("translate"),W=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",Y,t],L=()=>[Y,t],U=()=>["",Ze,at],H=()=>["auto",Pt,Y],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],S=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",Y],le=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>[Pt,Y];return{cacheSize:500,separator:":",theme:{colors:[rr],spacing:[Ze,at],blur:["none","",st,Y],brightness:ie(),borderColor:[e],borderRadius:["none","","full",st,Y],borderSpacing:L(),borderWidth:U(),contrast:ie(),grayscale:Z(),hueRotate:ie(),invert:Z(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[cc,at],inset:V(),margin:V(),opacity:ie(),padding:L(),saturate:ie(),scale:ie(),sepia:Z(),skew:ie(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[st]}],"break-after":[{"break-after":le()}],"break-before":[{"break-before":le()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","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:[...J(),Y]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",tr,Y]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",tr,Y]}],"grid-cols":[{"grid-cols":[rr]}],"col-start-end":[{col:["auto",{span:["full",tr,Y]},Y]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[rr]}],"row-start-end":[{row:["auto",{span:[tr,Y]},Y]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...S()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...S(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...S(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[st]},st]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",st,at]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fn]}],"font-family":[{font:[rr]}],"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:["tighter","tight","normal","wide","wider","widest",Y]}],"line-clamp":[{"line-clamp":["none",Pt,fn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ze,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ze,at]}],"underline-offset":[{"underline-offset":["auto",Ze,Y]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],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",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),fc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dc]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},hc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:K()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[Ze,Y]}],"outline-w":[{outline:[Ze,at]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[Ze,at]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",st,vc]}],"shadow-color":[{shadow:[rr]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",st,Y]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[C]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:ie()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:ie()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[tr,Y]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ze,at,fn]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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"],"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"]}}});function R(...e){return yc(Go(e))}function xc({className:e,variant:t,...r}){return l.jsx("div",{className:R(Jo({variant:t}),e),...r})}function ia(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function it(...e){return t=>{let r=!1;const n=e.map(o=>{const a=ia(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():ia(e[o],null)}}}}function xe(...e){return m.useCallback(it(...e),e)}var wc=Symbol.for("react.lazy"),yr=m[" use ".trim().toString()];function Cc(e){return typeof e=="object"&&e!==null&&"then"in e}function la(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===wc&&"_payload"in e&&Cc(e._payload)}function ca(e){const t=Sc(e),r=m.forwardRef((n,o)=>{let{children:a,...s}=n;la(a)&&typeof yr=="function"&&(a=yr(a._payload));const i=m.Children.toArray(a),u=i.find(Mc);if(u){const c=u.props.children,d=i.map(f=>f===u?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return l.jsx(t,{...s,ref:o,children:m.isValidElement(c)?m.cloneElement(c,void 0,d):null})}return l.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var Nc=ca("Slot");function Sc(e){const t=m.forwardRef((r,n)=>{let{children:o,...a}=r;if(la(o)&&typeof yr=="function"&&(o=yr(o._payload)),m.isValidElement(o)){const s=Pc(o),i=kc(a,o.props);return o.type!==m.Fragment&&(i.ref=n?it(n,s):s),m.cloneElement(o,i)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jc=Symbol("radix.slottable");function Mc(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jc}function kc(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Pc(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const xr=Zo("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"}});/**
31
+ * @license lucide-react v0.344.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
+ */var Ec={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"};/**
36
+ * @license lucide-react v0.344.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
+ */const _c=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ve=(e,t)=>{const r=E.forwardRef(({color:n="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:i="",children:u,...c},d)=>E.createElement("svg",{ref:d,...Ec,width:o,height:o,stroke:n,strokeWidth:s?Number(a)*24/Number(o):a,className:["lucide",`lucide-${_c(e)}`,i].join(" "),...c},[...t.map(([f,h])=>E.createElement(f,h)),...Array.isArray(u)?u:[u]]));return r.displayName=`${e}`,r};/**
41
+ * @license lucide-react v0.344.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 Dc=ve("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
46
+ * @license lucide-react v0.344.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 nr=ve("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
51
+ * @license lucide-react v0.344.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 Oc=ve("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
75
56
  * @license lucide-react v0.344.0 - ISC
76
57
  *
77
58
  * This source code is licensed under the ISC license.
78
59
  * See the LICENSE file in the root directory of this source tree.
79
- */var Kf={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"};/**
60
+ */const ua=ve("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
80
61
  * @license lucide-react v0.344.0 - ISC
81
62
  *
82
63
  * This source code is licensed under the ISC license.
83
64
  * See the LICENSE file in the root directory of this source tree.
84
- */const Qf=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),xe=(e,t)=>{const r=B.forwardRef(({color:n="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:s="",children:c,...l},d)=>B.createElement("svg",{ref:d,...Kf,width:o,height:o,stroke:n,strokeWidth:i?Number(a)*24/Number(o):a,className:["lucide",`lucide-${Qf(e)}`,s].join(" "),...l},[...t.map(([m,h])=>B.createElement(m,h)),...Array.isArray(c)?c:[c]]));return r.displayName=`${e}`,r};/**
65
+ */const mn=ve("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
85
66
  * @license lucide-react v0.344.0 - ISC
86
67
  *
87
68
  * This source code is licensed under the ISC license.
88
69
  * See the LICENSE file in the root directory of this source tree.
89
- */const Jf=xe("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
70
+ */const hn=ve("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
90
71
  * @license lucide-react v0.344.0 - ISC
91
72
  *
92
73
  * This source code is licensed under the ISC license.
93
74
  * See the LICENSE file in the root directory of this source tree.
94
- */const Hi=xe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
75
+ */const Rc=ve("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
95
76
  * @license lucide-react v0.344.0 - ISC
96
77
  *
97
78
  * This source code is licensed under the ISC license.
98
79
  * See the LICENSE file in the root directory of this source tree.
99
- */const zi=xe("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
80
+ */const Tc=ve("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
100
81
  * @license lucide-react v0.344.0 - ISC
101
82
  *
102
83
  * This source code is licensed under the ISC license.
103
84
  * See the LICENSE file in the root directory of this source tree.
104
- */const Vi=xe("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
85
+ */const Ac=ve("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/**
105
86
  * @license lucide-react v0.344.0 - ISC
106
87
  *
107
88
  * This source code is licensed under the ISC license.
108
89
  * See the LICENSE file in the root directory of this source tree.
109
- */const Zf=xe("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
90
+ */const Lc=ve("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
110
91
  * @license lucide-react v0.344.0 - ISC
111
92
  *
112
93
  * This source code is licensed under the ISC license.
113
94
  * See the LICENSE file in the root directory of this source tree.
114
- */const em=xe("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
95
+ */const Wc=ve("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
115
96
  * @license lucide-react v0.344.0 - ISC
116
97
  *
117
98
  * This source code is licensed under the ISC license.
118
99
  * See the LICENSE file in the root directory of this source tree.
119
- */const tm=xe("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
100
+ */const Ic=ve("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
120
101
  * @license lucide-react v0.344.0 - ISC
121
102
  *
122
103
  * This source code is licensed under the ISC license.
123
104
  * See the LICENSE file in the root directory of this source tree.
124
- */const rm=xe("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/**
105
+ */const Fc=ve("MousePointerClick",[["path",{d:"m9 9 5 12 1.8-5.2L21 14Z",key:"1b76lo"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}]]);/**
125
106
  * @license lucide-react v0.344.0 - ISC
126
107
  *
127
108
  * This source code is licensed under the ISC license.
128
109
  * See the LICENSE file in the root directory of this source tree.
129
- */const nm=xe("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
110
+ */const wr=ve("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
130
111
  * @license lucide-react v0.344.0 - ISC
131
112
  *
132
113
  * This source code is licensed under the ISC license.
133
114
  * See the LICENSE file in the root directory of this source tree.
134
- */const om=xe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
115
+ */const vn=ve("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
135
116
  * @license lucide-react v0.344.0 - ISC
136
117
  *
137
118
  * This source code is licensed under the ISC license.
138
119
  * See the LICENSE file in the root directory of this source tree.
139
- */const am=xe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
120
+ */const da=ve("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
140
121
  * @license lucide-react v0.344.0 - ISC
141
122
  *
142
123
  * This source code is licensed under the ISC license.
143
124
  * See the LICENSE file in the root directory of this source tree.
144
- */const Bn=xe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
125
+ */const $c=ve("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
145
126
  * @license lucide-react v0.344.0 - ISC
146
127
  *
147
128
  * This source code is licensed under the ISC license.
148
129
  * See the LICENSE file in the root directory of this source tree.
149
- */const im=xe("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
130
+ */const fa=ve("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
150
131
  * @license lucide-react v0.344.0 - ISC
151
132
  *
152
133
  * This source code is licensed under the ISC license.
153
134
  * See the LICENSE file in the root directory of this source tree.
154
- */const sm=xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Tr=f.forwardRef(({className:e,...t},r)=>u.jsx(we,{ref:r,className:O("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Tr.displayName=we.displayName;const Lr=f.forwardRef(({className:e,...t},r)=>u.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[u.jsx(Bn,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),u.jsx(we.Input,{ref:r,className:O("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Lr.displayName=we.Input.displayName;const Ui=f.forwardRef(({className:e,...t},r)=>u.jsx(we.List,{ref:r,className:O("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Ui.displayName=we.List.displayName;const Wr=f.forwardRef((e,t)=>u.jsx(we.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Wr.displayName=we.Empty.displayName;const Ir=f.forwardRef(({className:e,...t},r)=>u.jsx(we.Group,{ref:r,className:O("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Ir.displayName=we.Group.displayName;const qi=f.forwardRef(({className:e,...t},r)=>u.jsx(we.Separator,{ref:r,className:O("-mx-1 h-px bg-border",e),...t}));qi.displayName=we.Separator.displayName;const Fr=f.forwardRef(({className:e,...t},r)=>u.jsx(we.Item,{ref:r,className:O("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",e),...t}));Fr.displayName=we.Item.displayName;const Xi=({className:e,...t})=>u.jsx("span",{className:O("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Xi.displayName="MriCommandShortcut";function lm({options:e,value:t,onChange:r,searchPlaceholder:n="Search...",emptyMessage:o="No results found.",className:a,disabled:i}){const[s,c]=B.useState(!1);return u.jsxs(Gt,{open:s,onOpenChange:c,children:[u.jsx(Kt,{asChild:!0,children:u.jsx(ye,{variant:"ghost",size:"icon",disabled:i,"aria-expanded":s,className:O("aspect-square !h-[42px] !w-[42px] p-0 border border-input rounded-md bg-background/50 backdrop-blur-sm hover:bg-accent/50 text-muted-foreground hover:text-foreground transition-all duration-300 shadow-sm",a),children:u.jsx(Bn,{className:"h-4 w-4"})})}),u.jsx(Dt,{className:"w-[200px] p-0 border-border bg-popover",align:"start",children:u.jsxs(Tr,{className:"bg-transparent",children:[u.jsx(Lr,{placeholder:n,className:"h-9"}),u.jsx(Wr,{children:o}),u.jsx(Ir,{className:"max-h-60 overflow-auto p-1",children:e.map(l=>u.jsxs(Fr,{value:l.label,onSelect:()=>{r(String(l.value)),c(!1)},className:"aria-selected:bg-accent aria-selected:text-accent-foreground rounded-md cursor-pointer",children:[u.jsx(Hi,{className:O("mr-2 h-4 w-4 text-primary",String(t)===String(l.value)?"opacity-100":"opacity-0")}),u.jsx("span",{className:"truncate",children:l.label})]},l.value))})]})})]})}function Gi({children:e,onClose:t,className:r}){return B.useEffect(()=>{function n(o){(o.key==="Escape"||o.key==="Esc")&&(t==null||t())}return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[t]),B.useEffect(()=>{try{document.body.dataset.psModalOpen="true"}catch{}return()=>{try{delete document.body.dataset.psModalOpen}catch{}}},[]),u.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[u.jsx("div",{className:"absolute inset-0 bg-background/80 backdrop-blur-sm transition-opacity",onClick:t}),u.jsx("div",{className:O("relative w-full max-w-sm transform rounded-xl bg-card border border-border p-6 shadow-2xl transition-all","animate-in fade-in zoom-in-95 duration-200",r),children:e})]})}function cm({title:e,children:t,onClose:r,className:n}){return u.jsxs(Gi,{onClose:r,className:n,children:[u.jsxs("div",{className:"flex items-center justify-between mb-6",children:[u.jsx("h3",{className:"text-xl font-bold tracking-tight text-foreground",children:e}),u.jsx("button",{onClick:r,className:"text-muted-foreground hover:text-foreground transition-colors",children:u.jsx(sm,{className:"w-5 h-5"})})]}),u.jsx("div",{children:t})]})}function um({options:e,value:t,onChange:r,placeholder:n="Select...",searchPlaceholder:o="Search...",emptyMessage:a="No results found.",className:i,disabled:s}){const[c,l]=B.useState(!1),d=e.find(m=>String(m.value)===String(t));return u.jsxs(Gt,{open:c,onOpenChange:l,children:[u.jsx(Kt,{asChild:!0,children:u.jsxs(ye,{variant:"outline",role:"combobox",disabled:s,"aria-expanded":c,className:O("w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground",i),children:[u.jsx("span",{className:"truncate",children:d?d.label:n}),u.jsx(Zf,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),u.jsx(Dt,{className:"w-[--radix-popover-trigger-width] p-0 border-border bg-popover",children:u.jsxs(Tr,{className:"bg-transparent",children:[u.jsx(Lr,{placeholder:o,className:"h-9"}),u.jsx(Wr,{children:a}),u.jsx(Ir,{className:"max-h-60 overflow-auto p-1",children:e.map(m=>u.jsxs(Fr,{value:m.label,onSelect:()=>{r(String(m.value)),l(!1)},className:"aria-selected:bg-accent aria-selected:text-accent-foreground rounded-md cursor-pointer",children:[u.jsx(Hi,{className:O("mr-2 h-4 w-4 text-primary",String(t)===String(m.value)?"opacity-100":"opacity-0")}),u.jsx("span",{className:"truncate",children:m.label})]},m.value))})]})})]})}var dm=(e,t,r,n,o,a,i,s)=>{let c=document.documentElement,l=["light","dark"];function d(v){(Array.isArray(e)?e:[e]).forEach(b=>{let g=b==="class",y=g&&a?o.map(w=>a[w]||w):o;g?(c.classList.remove(...y),c.classList.add(a&&a[v]?a[v]:v)):c.setAttribute(b,v)}),m(v)}function m(v){s&&l.includes(v)&&(c.style.colorScheme=v)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)d(n);else try{let v=localStorage.getItem(t)||r,b=i&&v==="system"?h():v;d(b)}catch{}},fm=f.createContext(void 0),mm={setTheme:e=>{},themes:[]},hm=()=>{var e;return(e=f.useContext(fm))!=null?e:mm};f.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:i,themes:s,nonce:c,scriptProps:l})=>{let d=JSON.stringify([r,t,a,e,s,i,n,o]).slice(1,-1);return f.createElement("script",{...l,suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(${dm.toString()})(${d})`}})});const vm=({themeLabel:e="Tema",themeIconLabel:t="Alterar tema",lightLabel:r="Claro",darkLabel:n="Escuro",systemLabel:o="Sistema"})=>{const{theme:a,setTheme:i}=hm(),[s,c]=B.useState(!1),l=B.useRef(null);B.useEffect(()=>{const m=h=>{l.current&&!l.current.contains(h.target)&&c(!1)};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[]);const d=[{value:"light",icon:im,label:r},{value:"dark",icon:om,label:n},{value:"system",icon:rm,label:o}];return u.jsx("div",{ref:l,className:O("flex items-center gap-1 p-1 border border-input rounded-md bg-background/50 backdrop-blur-sm transition-all duration-300 ease-in-out overflow-hidden shadow-sm",s?"w-[114px] bg-background":"w-[42px] cursor-pointer hover:bg-accent/50"),onClick:()=>{s||c(!0)},title:s?e:t,children:d.map(m=>{const h=a===m.value;return u.jsx(ye,{variant:"ghost",size:"icon",className:O("h-8 w-8 rounded-md transition-all duration-300 shrink-0",h?"bg-primary/10 text-primary hover:bg-primary/20":"text-muted-foreground hover:text-foreground"),style:{order:h?-1:0},onClick:v=>{v.stopPropagation(),s?(i(m.value),c(!1)):c(!0)},title:m.label,children:u.jsx(m.icon,{className:"h-4 w-4"})},m.value)})})},pm=Array.from({length:24},(e,t)=>t),gm=Array.from({length:60},(e,t)=>t),bm=e=>{if(!e)return[0,0];const t=e.split(":");if(t.length!==2)return[0,0];const[r,n]=t,o=Number(r),a=Number(n);return!Number.isFinite(o)||!Number.isFinite(a)||o<0||o>23||a<0||a>59?[0,0]:[o,a]};function ym({value:e,onChange:t,disabled:r,hourLabel:n="Hora",minuteLabel:o="Minuto"}){const[a,i]=f.useState(!1),[s,c]=bm(e),l=pm,d=gm,m=(h,v)=>{let b=s,g=c;h==="hour"&&(b=v),h==="minute"&&(g=v);const y=b.toString().padStart(2,"0"),w=g.toString().padStart(2,"0");t(`${y}:${w}`)};return u.jsxs(Gt,{open:a,onOpenChange:i,children:[u.jsx(Kt,{asChild:!0,children:u.jsx(ye,{variant:"outline",className:O("w-full min-w-[120px] justify-start pl-3 text-left font-normal",!e&&"text-muted-foreground"),disabled:r,children:u.jsxs("div",{className:"flex items-center w-full gap-2",children:[u.jsx("span",{children:e||"00:00"}),u.jsx(em,{className:"ml-auto h-4 w-4 opacity-50"})]})})}),u.jsx(Dt,{className:"w-auto p-0 bg-card border-border",align:"start",children:u.jsxs("div",{className:"flex h-[300px] divide-x divide-border",children:[u.jsxs("div",{className:"flex flex-col",children:[u.jsx("div",{className:"p-2 text-center font-medium bg-muted/50 text-xs",children:n}),u.jsx(mr,{className:"h-full w-[80px]",children:u.jsx("div",{className:"p-2 space-y-1",children:l.map(h=>u.jsx(ye,{variant:"ghost",size:"sm",className:O("w-full justify-center text-sm",s===h?"bg-primary text-primary-foreground hover:bg-primary/90":"text-muted-foreground hover:text-foreground"),onClick:()=>m("hour",h),children:h.toString().padStart(2,"0")},h))})})]}),u.jsxs("div",{className:"flex flex-col",children:[u.jsx("div",{className:"p-2 text-center font-medium bg-muted/50 text-xs",children:o}),u.jsx(mr,{className:"h-full w-[80px]",children:u.jsx("div",{className:"p-2 space-y-1",children:d.map(h=>u.jsx(ye,{variant:"ghost",size:"sm",className:O("w-full justify-center text-sm",c===h?"bg-primary text-primary-foreground hover:bg-primary/90":"text-muted-foreground hover:text-foreground"),onClick:()=>m("minute",h),children:h.toString().padStart(2,"0")},h))})})]})]})})]})}function wm({text:e,className:t,iconSize:r=4,variant:n="ghost"}){const o=a=>{a.stopPropagation(),navigator.clipboard.writeText(e)};return u.jsx(ye,{size:"sm",variant:n,className:O("p-0 text-muted-foreground hover:text-foreground",t),onClick:o,title:"Copy to clipboard",children:u.jsx(tm,{className:O(`w-${r} h-${r}`)})})}function xm({label:e,amount:t,amountColorClass:r="text-foreground",onAdd:n,onRemove:o}){return u.jsxs("div",{className:"bg-card border border-border p-4 rounded-lg flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-muted-foreground font-bold uppercase",children:e}),u.jsx("div",{className:O("text-xl font-bold font-mono",r),children:t})]}),u.jsxs("div",{className:"flex gap-1",children:[u.jsx(ye,{size:"icon",variant:"ghost",className:"h-7 w-7 rounded bg-muted hover:bg-muted/80",onClick:n,children:u.jsx(am,{className:"w-3.5 h-3.5"})}),u.jsx(ye,{size:"icon",variant:"ghost",className:"h-7 w-7 rounded bg-muted hover:bg-muted/80",onClick:o,children:u.jsx(nm,{className:"w-3.5 h-3.5"})})]})]})}function Cm({icon:e,label:t,onClick:r,variant:n="default",disabled:o=!1,className:a}){return u.jsxs(ye,{type:"button",variant:"secondary",className:O("h-12 flex items-center justify-start gap-3 px-4 bg-card hover:bg-muted border border-border text-foreground hover:text-foreground transition-all min-w-0 w-full",n==="destructive"&&"text-red-400 hover:text-red-300 hover:bg-red-900/20 hover:border-red-900/50",n==="warning"&&"text-yellow-400 hover:text-yellow-300 hover:bg-yellow-900/20 hover:border-yellow-900/50",o&&"opacity-50 pointer-events-none grayscale cursor-not-allowed",a),onClick:r,disabled:o,children:[u.jsx(e,{className:"w-4 h-4 shrink-0"}),u.jsx("span",{className:"font-medium text-sm truncate w-full text-left",title:t,children:t})]})}function Sm({value:e,onChange:t,placeholder:r,className:n,width:o="w-80"}){return u.jsxs("div",{className:O("relative",o,n),children:[u.jsx(Bn,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground pointer-events-none"}),u.jsx(Lo,{placeholder:r,value:e,onChange:a=>t(a.target.value),className:"pl-9 bg-card border-border focus:border-primary/50 h-10 w-full transition-colors"})]})}function Mm({icon:e,title:t,className:r}){return u.jsxs("h3",{className:O("text-muted-foreground text-xs font-bold uppercase tracking-widest mb-3 flex items-center gap-2",r),children:[u.jsx(e,{className:"w-3.5 h-3.5"})," ",t]})}const Yn=6048e5,Pm=864e5,Ki=Symbol.for("constructDateFrom");function ve(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ki in e?e[Ki](t):e instanceof Date?new e.constructor(t):new Date(t)}function re(e,t){return ve(t||e,e)}function ge(e,t,r){const n=re(e,r==null?void 0:r.in);return isNaN(t)?ve((r==null?void 0:r.in)||e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Ae(e,t,r){const n=re(e,r==null?void 0:r.in);if(isNaN(t))return ve((r==null?void 0:r.in)||e,NaN);if(!t)return n;const o=n.getDate(),a=ve((r==null?void 0:r.in)||e,n.getTime());a.setMonth(n.getMonth()+t+1,0);const i=a.getDate();return o>=i?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}let km={};function Zt(){return km}function ze(e,t){var s,c,l,d;const r=Zt(),n=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((d=(l=r.locale)==null?void 0:l.options)==null?void 0:d.weekStartsOn)??0,o=re(e,t==null?void 0:t.in),a=o.getDay(),i=(a<n?7:0)+a-n;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function ht(e,t){return ze(e,{...t,weekStartsOn:1})}function Qi(e,t){const r=re(e,t==null?void 0:t.in),n=r.getFullYear(),o=ve(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=ht(o),i=ve(r,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const s=ht(i);return r.getTime()>=a.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function $r(e){const t=re(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function At(e,...t){const r=ve.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function Tt(e,t){const r=re(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function Ve(e,t,r){const[n,o]=At(r==null?void 0:r.in,e,t),a=Tt(n),i=Tt(o),s=+a-$r(a),c=+i-$r(i);return Math.round((s-c)/Pm)}function Em(e,t){const r=Qi(e,t),n=ve(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),ht(n)}function Hn(e,t,r){return ge(e,t*7,r)}function Nm(e,t,r){return Ae(e,t*12,r)}function _m(e,t){let r,n=t==null?void 0:t.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=ve.bind(null,o));const a=re(o,n);(!r||r<a||isNaN(+a))&&(r=a)}),ve(n,r||NaN)}function jm(e,t){let r,n=t==null?void 0:t.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=ve.bind(null,o));const a=re(o,n);(!r||r>a||isNaN(+a))&&(r=a)}),ve(n,r||NaN)}function Ce(e,t,r){const[n,o]=At(r==null?void 0:r.in,e,t);return+Tt(n)==+Tt(o)}function zn(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Dm(e){return!(!zn(e)&&typeof e!="number"||isNaN(+re(e)))}function er(e,t,r){const[n,o]=At(r==null?void 0:r.in,e,t),a=n.getFullYear()-o.getFullYear(),i=n.getMonth()-o.getMonth();return a*12+i}function Rm(e,t,r){const[n,o]=At(r==null?void 0:r.in,e,t),a=ze(n,r),i=ze(o,r),s=+a-$r(a),c=+i-$r(i);return Math.round((s-c)/Yn)}function Vn(e,t){const r=re(e,t==null?void 0:t.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function Se(e,t){const r=re(e,t==null?void 0:t.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Ji(e,t){const r=re(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Un(e,t){var s,c,l,d;const r=Zt(),n=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((d=(l=r.locale)==null?void 0:l.options)==null?void 0:d.weekStartsOn)??0,o=re(e,t==null?void 0:t.in),a=o.getDay(),i=(a<n?-7:0)+6-(a-n);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function Zi(e,t){return Un(e,{...t,weekStartsOn:1})}const Om={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Am=(e,t,r)=>{let n;const o=Om[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Lt(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Tm={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lm={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Wm={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Im={date:Lt({formats:Tm,defaultWidth:"full"}),time:Lt({formats:Lm,defaultWidth:"full"}),dateTime:Lt({formats:Wm,defaultWidth:"full"})},Fm={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$m=(e,t,r,n)=>Fm[e];function Ue(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const i=e.defaultFormattingWidth||e.defaultWidth,s=r!=null&&r.width?String(r.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{const i=e.defaultWidth,s=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[s]||e.values[i]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const Bm={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ym={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Hm={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},zm={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Vm={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Um={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},qm={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Ue({values:Bm,defaultWidth:"wide"}),quarter:Ue({values:Ym,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ue({values:Hm,defaultWidth:"wide"}),day:Ue({values:zm,defaultWidth:"wide"}),dayPeriod:Ue({values:Vm,defaultWidth:"wide",formattingValues:Um,defaultFormattingWidth:"wide"})};function qe(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Gm(s,m=>m.test(i)):Xm(s,m=>m.test(i));let l;l=e.valueCallback?e.valueCallback(c):c,l=r.valueCallback?r.valueCallback(l):l;const d=t.slice(i.length);return{value:l,rest:d}}}function Xm(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Gm(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function es(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=r.valueCallback?r.valueCallback(i):i;const s=t.slice(o.length);return{value:i,rest:s}}}const Km=/^(\d+)(th|st|nd|rd)?/i,Qm=/\d+/i,Jm={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Zm={any:[/^b/i,/^(a|c)/i]},eh={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},th={any:[/1/i,/2/i,/3/i,/4/i]},rh={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},nh={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},oh={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ah={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ih={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},sh={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},lh={ordinalNumber:es({matchPattern:Km,parsePattern:Qm,valueCallback:e=>parseInt(e,10)}),era:qe({matchPatterns:Jm,defaultMatchWidth:"wide",parsePatterns:Zm,defaultParseWidth:"any"}),quarter:qe({matchPatterns:eh,defaultMatchWidth:"wide",parsePatterns:th,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qe({matchPatterns:rh,defaultMatchWidth:"wide",parsePatterns:nh,defaultParseWidth:"any"}),day:qe({matchPatterns:oh,defaultMatchWidth:"wide",parsePatterns:ah,defaultParseWidth:"any"}),dayPeriod:qe({matchPatterns:ih,defaultMatchWidth:"any",parsePatterns:sh,defaultParseWidth:"any"})},ts={code:"en-US",formatDistance:Am,formatLong:Im,formatRelative:$m,localize:qm,match:lh,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ch(e,t){const r=re(e,t==null?void 0:t.in);return Ve(r,Ji(r))+1}function rs(e,t){const r=re(e,t==null?void 0:t.in),n=+ht(r)-+Em(r);return Math.round(n/Yn)+1}function ns(e,t){var d,m,h,v;const r=re(e,t==null?void 0:t.in),n=r.getFullYear(),o=Zt(),a=(t==null?void 0:t.firstWeekContainsDate)??((m=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??o.firstWeekContainsDate??((v=(h=o.locale)==null?void 0:h.options)==null?void 0:v.firstWeekContainsDate)??1,i=ve((t==null?void 0:t.in)||e,0);i.setFullYear(n+1,0,a),i.setHours(0,0,0,0);const s=ze(i,t),c=ve((t==null?void 0:t.in)||e,0);c.setFullYear(n,0,a),c.setHours(0,0,0,0);const l=ze(c,t);return+r>=+s?n+1:+r>=+l?n:n-1}function uh(e,t){var s,c,l,d;const r=Zt(),n=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(l=r.locale)==null?void 0:l.options)==null?void 0:d.firstWeekContainsDate)??1,o=ns(e,t),a=ve((t==null?void 0:t.in)||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),ze(a,t)}function os(e,t){const r=re(e,t==null?void 0:t.in),n=+ze(r,t)-+uh(r,t);return Math.round(n/Yn)+1}function ne(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const ct={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ne(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ne(r+1,2)},d(e,t){return ne(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return ne(e.getHours()%12||12,t.length)},H(e,t){return ne(e.getHours(),t.length)},m(e,t){return ne(e.getMinutes(),t.length)},s(e,t){return ne(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return ne(o,t.length)}},Wt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},as={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return ct.y(e,t)},Y:function(e,t,r,n){const o=ns(e,n),a=o>0?o:1-o;if(t==="YY"){const i=a%100;return ne(i,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):ne(a,t.length)},R:function(e,t){const r=Qi(e);return ne(r,t.length)},u:function(e,t){const r=e.getFullYear();return ne(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ne(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ne(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return ct.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return ne(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=os(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ne(o,t.length)},I:function(e,t,r){const n=rs(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):ne(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):ct.d(e,t)},D:function(e,t,r){const n=ch(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):ne(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ne(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ne(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return ne(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=Wt.noon:n===0?o=Wt.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=Wt.evening:n>=12?o=Wt.afternoon:n>=4?o=Wt.morning:o=Wt.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return ct.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):ct.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):ne(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):ne(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):ct.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):ct.s(e,t)},S:function(e,t){return ct.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return ss(n);case"XXXX":case"XX":return vt(n);case"XXXXX":case"XXX":default:return vt(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return ss(n);case"xxxx":case"xx":return vt(n);case"xxxxx":case"xxx":default:return vt(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+is(n,":");case"OOOO":default:return"GMT"+vt(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+is(n,":");case"zzzz":default:return"GMT"+vt(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return ne(n,t.length)},T:function(e,t,r){return ne(+e,t.length)}};function is(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+ne(a,2)}function ss(e,t){return e%60===0?(e>0?"-":"+")+ne(Math.abs(e)/60,2):vt(e,t)}function vt(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=ne(Math.trunc(n/60),2),a=ne(n%60,2);return r+o+t+a}const ls=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},cs=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},dh={p:cs,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return ls(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",ls(n,t)).replace("{{time}}",cs(o,t))}},fh=/^D+$/,mh=/^Y+$/,hh=["D","DD","YY","YYYY"];function vh(e){return fh.test(e)}function ph(e){return mh.test(e)}function gh(e,t,r){const n=bh(e,t,r);if(console.warn(n),hh.includes(e))throw new RangeError(n)}function bh(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const yh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,xh=/^'([^]*?)'?$/,Ch=/''/g,Sh=/[a-zA-Z]/;function ut(e,t,r){var d,m,h,v,b,g,y,w;const n=Zt(),o=(r==null?void 0:r.locale)??n.locale??ts,a=(r==null?void 0:r.firstWeekContainsDate)??((m=(d=r==null?void 0:r.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??n.firstWeekContainsDate??((v=(h=n.locale)==null?void 0:h.options)==null?void 0:v.firstWeekContainsDate)??1,i=(r==null?void 0:r.weekStartsOn)??((g=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:g.weekStartsOn)??n.weekStartsOn??((w=(y=n.locale)==null?void 0:y.options)==null?void 0:w.weekStartsOn)??0,s=re(e,r==null?void 0:r.in);if(!Dm(s))throw new RangeError("Invalid time value");let c=t.match(wh).map(x=>{const C=x[0];if(C==="p"||C==="P"){const k=dh[C];return k(x,o.formatLong)}return x}).join("").match(yh).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const C=x[0];if(C==="'")return{isToken:!1,value:Mh(x)};if(as[C])return{isToken:!0,value:x};if(C.match(Sh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:x}});o.localize.preprocessor&&(c=o.localize.preprocessor(s,c));const l={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return c.map(x=>{if(!x.isToken)return x.value;const C=x.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&ph(C)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&vh(C))&&gh(C,t,String(e));const k=as[C[0]];return k(s,C,o.localize,l)}).join("")}function Mh(e){const t=e.match(xh);return t?t[1].replace(Ch,"'"):e}function Ph(e,t){const r=re(e,t==null?void 0:t.in),n=r.getFullYear(),o=r.getMonth(),a=ve(r,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}function kh(e){return Math.trunc(+re(e)/1e3)}function Eh(e,t){const r=re(e,t==null?void 0:t.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),re(r,t==null?void 0:t.in)}function Nh(e,t){const r=re(e,t==null?void 0:t.in);return Rm(Eh(r,t),Se(r,t),t)+1}function qn(e,t){return+re(e)>+re(t)}function us(e,t){return+re(e)<+re(t)}function Xn(e,t,r){const[n,o]=At(r==null?void 0:r.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function _h(e,t,r){const[n,o]=At(r==null?void 0:r.in,e,t);return n.getFullYear()===o.getFullYear()}function Gn(e,t,r){return ge(e,-t,r)}function Kn(e,t,r){const n=re(e,r==null?void 0:r.in),o=n.getFullYear(),a=n.getDate(),i=ve(e,0);i.setFullYear(o,t,15),i.setHours(0,0,0,0);const s=Ph(i);return n.setMonth(t,Math.min(a,s)),n}function ds(e,t,r){const n=re(e,r==null?void 0:r.in);return isNaN(+n)?ve(e,NaN):(n.setFullYear(t),n)}const jh={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Dh=(e,t,r)=>{let n;const o=jh[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"em "+n:"há "+n:n},Rh={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},Oh={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Ah={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Th={date:Lt({formats:Rh,defaultWidth:"full"}),time:Lt({formats:Oh,defaultWidth:"full"}),dateTime:Lt({formats:Ah,defaultWidth:"full"})},Lh={lastWeek:e=>{const t=e.getDay();return"'"+(t===0||t===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},Wh=(e,t,r,n)=>{const o=Lh[e];return typeof o=="function"?o(t):o},Ih={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},Fh={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},$h={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},Bh={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},Yh={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},Hh={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},zh={ordinalNumber:(e,t)=>{const r=Number(e);return(t==null?void 0:t.unit)==="week"?r+"ª":r+"º"},era:Ue({values:Ih,defaultWidth:"wide"}),quarter:Ue({values:Fh,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ue({values:$h,defaultWidth:"wide"}),day:Ue({values:Bh,defaultWidth:"wide"}),dayPeriod:Ue({values:Yh,defaultWidth:"wide",formattingValues:Hh,defaultFormattingWidth:"wide"})},Vh=/^(\d+)[ºªo]?/i,Uh=/\d+/i,qh={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},Xh={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},Gh={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Kh={any:[/1/i,/2/i,/3/i,/4/i]},Qh={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},Jh={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},Zh={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},ev={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},tv={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},rv={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},nv={ordinalNumber:es({matchPattern:Vh,parsePattern:Uh,valueCallback:e=>parseInt(e,10)}),era:qe({matchPatterns:qh,defaultMatchWidth:"wide",parsePatterns:Xh,defaultParseWidth:"any"}),quarter:qe({matchPatterns:Gh,defaultMatchWidth:"wide",parsePatterns:Kh,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qe({matchPatterns:Qh,defaultMatchWidth:"wide",parsePatterns:Jh,defaultParseWidth:"any"}),day:qe({matchPatterns:Zh,defaultMatchWidth:"wide",parsePatterns:ev,defaultParseWidth:"any"}),dayPeriod:qe({matchPatterns:tv,defaultMatchWidth:"any",parsePatterns:rv,defaultParseWidth:"any"})},ov={code:"pt-BR",formatDistance:Dh,formatLong:Th,formatRelative:Wh,localize:zh,match:nv,options:{weekStartsOn:0,firstWeekContainsDate:1}};var W=function(){return W=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},W.apply(this,arguments)};function av(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function fs(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function tr(e){return e.mode==="multiple"}function rr(e){return e.mode==="range"}function Br(e){return e.mode==="single"}var iv={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function sv(e,t){return ut(e,"LLLL y",t)}function lv(e,t){return ut(e,"d",t)}function cv(e,t){return ut(e,"LLLL",t)}function uv(e){return"".concat(e)}function dv(e,t){return ut(e,"cccccc",t)}function fv(e,t){return ut(e,"yyyy",t)}var mv=Object.freeze({__proto__:null,formatCaption:sv,formatDay:lv,formatMonthCaption:cv,formatWeekNumber:uv,formatWeekdayName:dv,formatYearCaption:fv}),hv=function(e,t,r){return ut(e,"do MMMM (EEEE)",r)},vv=function(){return"Month: "},pv=function(){return"Go to next month"},gv=function(){return"Go to previous month"},bv=function(e,t){return ut(e,"cccc",t)},yv=function(e){return"Week n. ".concat(e)},wv=function(){return"Year: "},xv=Object.freeze({__proto__:null,labelDay:hv,labelMonthDropdown:vv,labelNext:pv,labelPrevious:gv,labelWeekNumber:yv,labelWeekday:bv,labelYearDropdown:wv});function Cv(){var e="buttons",t=iv,r=ts,n={},o={},a=1,i={},s=new Date;return{captionLayout:e,classNames:t,formatters:mv,labels:xv,locale:r,modifiersClassNames:n,modifiers:o,numberOfMonths:a,styles:i,today:s,mode:"default"}}function Sv(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,o=e.toMonth,a=e.fromDate,i=e.toDate;return n?a=Se(n):t&&(a=new Date(t,0,1)),o?i=Vn(o):r&&(i=new Date(r,11,31)),{fromDate:a?Tt(a):void 0,toDate:i?Tt(i):void 0}}var ms=B.createContext(void 0);function Mv(e){var t,r=e.initialProps,n=Cv(),o=Sv(r),a=o.fromDate,i=o.toDate,s=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;s!=="buttons"&&(!a||!i)&&(s="buttons");var c;(Br(r)||tr(r)||rr(r))&&(c=r.onSelect);var l=W(W(W({},n),r),{captionLayout:s,classNames:W(W({},n.classNames),r.classNames),components:W({},r.components),formatters:W(W({},n.formatters),r.formatters),fromDate:a,labels:W(W({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:W(W({},n.modifiers),r.modifiers),modifiersClassNames:W(W({},n.modifiersClassNames),r.modifiersClassNames),onSelect:c,styles:W(W({},n.styles),r.styles),toDate:i});return u.jsx(ms.Provider,{value:l,children:e.children})}function ae(){var e=B.useContext(ms);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function hs(e){var t=ae(),r=t.locale,n=t.classNames,o=t.styles,a=t.formatters.formatCaption;return u.jsx("div",{className:n.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:r})})}function Pv(e){return u.jsx("svg",W({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:u.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function vs(e){var t,r,n=e.onChange,o=e.value,a=e.children,i=e.caption,s=e.className,c=e.style,l=ae(),d=(r=(t=l.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:Pv;return u.jsxs("div",{className:s,style:c,children:[u.jsx("span",{className:l.classNames.vhidden,children:e["aria-label"]}),u.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:l.classNames.dropdown,style:l.styles.dropdown,value:o,onChange:n,children:a}),u.jsxs("div",{className:l.classNames.caption_label,style:l.styles.caption_label,"aria-hidden":"true",children:[i,u.jsx(d,{className:l.classNames.dropdown_icon,style:l.styles.dropdown_icon})]})]})}function kv(e){var t,r=ae(),n=r.fromDate,o=r.toDate,a=r.styles,i=r.locale,s=r.formatters.formatMonthCaption,c=r.classNames,l=r.components,d=r.labels.labelMonthDropdown;if(!n)return u.jsx(u.Fragment,{});if(!o)return u.jsx(u.Fragment,{});var m=[];if(_h(n,o))for(var h=Se(n),v=n.getMonth();v<=o.getMonth();v++)m.push(Kn(h,v));else for(var h=Se(new Date),v=0;v<=11;v++)m.push(Kn(h,v));var b=function(y){var w=Number(y.target.value),x=Kn(Se(e.displayMonth),w);e.onChange(x)},g=(t=l==null?void 0:l.Dropdown)!==null&&t!==void 0?t:vs;return u.jsx(g,{name:"months","aria-label":d(),className:c.dropdown_month,style:a.dropdown_month,onChange:b,value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:i}),children:m.map(function(y){return u.jsx("option",{value:y.getMonth(),children:s(y,{locale:i})},y.getMonth())})})}function Ev(e){var t,r=e.displayMonth,n=ae(),o=n.fromDate,a=n.toDate,i=n.locale,s=n.styles,c=n.classNames,l=n.components,d=n.formatters.formatYearCaption,m=n.labels.labelYearDropdown,h=[];if(!o)return u.jsx(u.Fragment,{});if(!a)return u.jsx(u.Fragment,{});for(var v=o.getFullYear(),b=a.getFullYear(),g=v;g<=b;g++)h.push(ds(Ji(new Date),g));var y=function(x){var C=ds(Se(r),Number(x.target.value));e.onChange(C)},w=(t=l==null?void 0:l.Dropdown)!==null&&t!==void 0?t:vs;return u.jsx(w,{name:"years","aria-label":m(),className:c.dropdown_year,style:s.dropdown_year,onChange:y,value:r.getFullYear(),caption:d(r,{locale:i}),children:h.map(function(x){return u.jsx("option",{value:x.getFullYear(),children:d(x,{locale:i})},x.getFullYear())})})}function Nv(e,t){var r=B.useState(e),n=r[0],o=r[1],a=t===void 0?n:t;return[a,o]}function _v(e){var t=e.month,r=e.defaultMonth,n=e.today,o=t||r||n||new Date,a=e.toDate,i=e.fromDate,s=e.numberOfMonths,c=s===void 0?1:s;if(a&&er(a,o)<0){var l=-1*(c-1);o=Ae(a,l)}return i&&er(o,i)<0&&(o=i),Se(o)}function jv(){var e=ae(),t=_v(e),r=Nv(t,e.month),n=r[0],o=r[1],a=function(i){var s;if(!e.disableNavigation){var c=Se(i);o(c),(s=e.onMonthChange)===null||s===void 0||s.call(e,c)}};return[n,a]}function Dv(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,o=Se(e),a=Se(Ae(o,n)),i=er(a,o),s=[],c=0;c<i;c++){var l=Ae(o,c);s.push(l)}return r&&(s=s.reverse()),s}function Rv(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,i=n?a:1,s=Se(e);if(!r)return Ae(s,i);var c=er(r,e);if(!(c<a))return Ae(s,i)}}function Ov(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,i=n?a:1,s=Se(e);if(!r)return Ae(s,-i);var c=er(s,r);if(!(c<=0))return Ae(s,-i)}}var ps=B.createContext(void 0);function Av(e){var t=ae(),r=jv(),n=r[0],o=r[1],a=Dv(n,t),i=Rv(n,t),s=Ov(n,t),c=function(m){return a.some(function(h){return Xn(m,h)})},l=function(m,h){c(m)||(h&&us(m,h)?o(Ae(m,1+t.numberOfMonths*-1)):o(m))},d={currentMonth:n,displayMonths:a,goToMonth:o,goToDate:l,previousMonth:s,nextMonth:i,isDateDisplayed:c};return u.jsx(ps.Provider,{value:d,children:e.children})}function nr(){var e=B.useContext(ps);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function gs(e){var t,r=ae(),n=r.classNames,o=r.styles,a=r.components,i=nr().goToMonth,s=function(d){i(Ae(d,e.displayIndex?-e.displayIndex:0))},c=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:hs,l=u.jsx(c,{id:e.id,displayMonth:e.displayMonth});return u.jsxs("div",{className:n.caption_dropdowns,style:o.caption_dropdowns,children:[u.jsx("div",{className:n.vhidden,children:l}),u.jsx(kv,{onChange:s,displayMonth:e.displayMonth}),u.jsx(Ev,{onChange:s,displayMonth:e.displayMonth})]})}function Tv(e){return u.jsx("svg",W({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:u.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Lv(e){return u.jsx("svg",W({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:u.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Yr=B.forwardRef(function(e,t){var r=ae(),n=r.classNames,o=r.styles,a=[n.button_reset,n.button];e.className&&a.push(e.className);var i=a.join(" "),s=W(W({},o.button_reset),o.button);return e.style&&Object.assign(s,e.style),u.jsx("button",W({},e,{ref:t,type:"button",className:i,style:s}))});function Wv(e){var t,r,n=ae(),o=n.dir,a=n.locale,i=n.classNames,s=n.styles,c=n.labels,l=c.labelPrevious,d=c.labelNext,m=n.components;if(!e.nextMonth&&!e.previousMonth)return u.jsx(u.Fragment,{});var h=l(e.previousMonth,{locale:a}),v=[i.nav_button,i.nav_button_previous].join(" "),b=d(e.nextMonth,{locale:a}),g=[i.nav_button,i.nav_button_next].join(" "),y=(t=m==null?void 0:m.IconRight)!==null&&t!==void 0?t:Lv,w=(r=m==null?void 0:m.IconLeft)!==null&&r!==void 0?r:Tv;return u.jsxs("div",{className:i.nav,style:s.nav,children:[!e.hidePrevious&&u.jsx(Yr,{name:"previous-month","aria-label":h,className:v,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?u.jsx(y,{className:i.nav_icon,style:s.nav_icon}):u.jsx(w,{className:i.nav_icon,style:s.nav_icon})}),!e.hideNext&&u.jsx(Yr,{name:"next-month","aria-label":b,className:g,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?u.jsx(w,{className:i.nav_icon,style:s.nav_icon}):u.jsx(y,{className:i.nav_icon,style:s.nav_icon})})]})}function bs(e){var t=ae().numberOfMonths,r=nr(),n=r.previousMonth,o=r.nextMonth,a=r.goToMonth,i=r.displayMonths,s=i.findIndex(function(b){return Xn(e.displayMonth,b)}),c=s===0,l=s===i.length-1,d=t>1&&(c||!l),m=t>1&&(l||!c),h=function(){n&&a(n)},v=function(){o&&a(o)};return u.jsx(Wv,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:m,nextMonth:o,previousMonth:n,onPreviousClick:h,onNextClick:v})}function Iv(e){var t,r=ae(),n=r.classNames,o=r.disableNavigation,a=r.styles,i=r.captionLayout,s=r.components,c=(t=s==null?void 0:s.CaptionLabel)!==null&&t!==void 0?t:hs,l;return o?l=u.jsx(c,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?l=u.jsx(gs,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?l=u.jsxs(u.Fragment,{children:[u.jsx(gs,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),u.jsx(bs,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):l=u.jsxs(u.Fragment,{children:[u.jsx(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),u.jsx(bs,{displayMonth:e.displayMonth,id:e.id})]}),u.jsx("div",{className:n.caption,style:a.caption,children:l})}function Fv(e){var t=ae(),r=t.footer,n=t.styles,o=t.classNames.tfoot;return r?u.jsx("tfoot",{className:o,style:n.tfoot,children:u.jsx("tr",{children:u.jsx("td",{colSpan:8,children:r})})}):u.jsx(u.Fragment,{})}function $v(e,t,r){for(var n=r?ht(new Date):ze(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var i=ge(n,a);o.push(i)}return o}function Bv(){var e=ae(),t=e.classNames,r=e.styles,n=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,i=e.ISOWeek,s=e.formatters.formatWeekdayName,c=e.labels.labelWeekday,l=$v(o,a,i);return u.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&u.jsx("td",{style:r.head_cell,className:t.head_cell}),l.map(function(d,m){return u.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":c(d,{locale:o}),children:s(d,{locale:o})},m)})]})}function Yv(){var e,t=ae(),r=t.classNames,n=t.styles,o=t.components,a=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:Bv;return u.jsx("thead",{style:n.head,className:r.head,children:u.jsx(a,{})})}function Hv(e){var t=ae(),r=t.locale,n=t.formatters.formatDay;return u.jsx(u.Fragment,{children:n(e.date,{locale:r})})}var Qn=B.createContext(void 0);function zv(e){if(!tr(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return u.jsx(Qn.Provider,{value:t,children:e.children})}return u.jsx(Vv,{initialProps:e.initialProps,children:e.children})}function Vv(e){var t=e.initialProps,r=e.children,n=t.selected,o=t.min,a=t.max,i=function(l,d,m){var h,v;(h=t.onDayClick)===null||h===void 0||h.call(t,l,d,m);var b=!!(d.selected&&o&&(n==null?void 0:n.length)===o);if(!b){var g=!!(!d.selected&&a&&(n==null?void 0:n.length)===a);if(!g){var y=n?fs([],n):[];if(d.selected){var w=y.findIndex(function(x){return Ce(l,x)});y.splice(w,1)}else y.push(l);(v=t.onSelect)===null||v===void 0||v.call(t,y,l,d,m)}}},s={disabled:[]};n&&s.disabled.push(function(l){var d=a&&n.length>a-1,m=n.some(function(h){return Ce(h,l)});return!!(d&&!m)});var c={selected:n,onDayClick:i,modifiers:s};return u.jsx(Qn.Provider,{value:c,children:r})}function Jn(){var e=B.useContext(Qn);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function Uv(e,t){var r=t||{},n=r.from,o=r.to;return n&&o?Ce(o,e)&&Ce(n,e)?void 0:Ce(o,e)?{from:o,to:void 0}:Ce(n,e)?void 0:qn(n,e)?{from:e,to:o}:{from:n,to:e}:o?qn(e,o)?{from:o,to:e}:{from:e,to:o}:n?us(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var Zn=B.createContext(void 0);function qv(e){if(!rr(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return u.jsx(Zn.Provider,{value:t,children:e.children})}return u.jsx(Xv,{initialProps:e.initialProps,children:e.children})}function Xv(e){var t=e.initialProps,r=e.children,n=t.selected,o=n||{},a=o.from,i=o.to,s=t.min,c=t.max,l=function(v,b,g){var y,w;(y=t.onDayClick)===null||y===void 0||y.call(t,v,b,g);var x=Uv(v,n);(w=t.onSelect)===null||w===void 0||w.call(t,x,v,b,g)},d={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(d.range_start=[a],i?(d.range_end=[i],Ce(a,i)||(d.range_middle=[{after:a,before:i}])):d.range_end=[a]):i&&(d.range_start=[i],d.range_end=[i]),s&&(a&&!i&&d.disabled.push({after:Gn(a,s-1),before:ge(a,s-1)}),a&&i&&d.disabled.push({after:a,before:ge(a,s-1)}),!a&&i&&d.disabled.push({after:Gn(i,s-1),before:ge(i,s-1)})),c){if(a&&!i&&(d.disabled.push({before:ge(a,-c+1)}),d.disabled.push({after:ge(a,c-1)})),a&&i){var m=Ve(i,a)+1,h=c-m;d.disabled.push({before:Gn(a,h)}),d.disabled.push({after:ge(i,h)})}!a&&i&&(d.disabled.push({before:ge(i,-c+1)}),d.disabled.push({after:ge(i,c-1)}))}return u.jsx(Zn.Provider,{value:{selected:n,onDayClick:l,modifiers:d},children:r})}function eo(){var e=B.useContext(Zn);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Hr(e){return Array.isArray(e)?fs([],e):e!==void 0?[e]:[]}function Gv(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],o=r[1];t[n]=Hr(o)}),t}var Te;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Te||(Te={}));var Kv=Te.Selected,Je=Te.Disabled,Qv=Te.Hidden,Jv=Te.Today,to=Te.RangeEnd,ro=Te.RangeMiddle,no=Te.RangeStart,Zv=Te.Outside;function ep(e,t,r){var n,o=(n={},n[Kv]=Hr(e.selected),n[Je]=Hr(e.disabled),n[Qv]=Hr(e.hidden),n[Jv]=[e.today],n[to]=[],n[ro]=[],n[no]=[],n[Zv]=[],n);return e.fromDate&&o[Je].push({before:e.fromDate}),e.toDate&&o[Je].push({after:e.toDate}),tr(e)?o[Je]=o[Je].concat(t.modifiers[Je]):rr(e)&&(o[Je]=o[Je].concat(r.modifiers[Je]),o[no]=r.modifiers[no],o[ro]=r.modifiers[ro],o[to]=r.modifiers[to]),o}var ys=B.createContext(void 0);function tp(e){var t=ae(),r=Jn(),n=eo(),o=ep(t,r,n),a=Gv(t.modifiers),i=W(W({},o),a);return u.jsx(ys.Provider,{value:i,children:e.children})}function ws(){var e=B.useContext(ys);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function rp(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function np(e){return!!(e&&typeof e=="object"&&"from"in e)}function op(e){return!!(e&&typeof e=="object"&&"after"in e)}function ap(e){return!!(e&&typeof e=="object"&&"before"in e)}function ip(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function sp(e,t){var r,n=t.from,o=t.to;if(n&&o){var a=Ve(o,n)<0;a&&(r=[o,n],n=r[0],o=r[1]);var i=Ve(e,n)>=0&&Ve(o,e)>=0;return i}return o?Ce(o,e):n?Ce(n,e):!1}function lp(e){return zn(e)}function cp(e){return Array.isArray(e)&&e.every(zn)}function up(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(lp(r))return Ce(e,r);if(cp(r))return r.includes(e);if(np(r))return sp(e,r);if(ip(r))return r.dayOfWeek.includes(e.getDay());if(rp(r)){var n=Ve(r.before,e),o=Ve(r.after,e),a=n>0,i=o<0,s=qn(r.before,r.after);return s?i&&a:a||i}return op(r)?Ve(e,r.after)>0:ap(r)?Ve(r.before,e)>0:typeof r=="function"?r(e):!1})}function oo(e,t,r){var n=Object.keys(t).reduce(function(a,i){var s=t[i];return up(e,s)&&a.push(i),a},[]),o={};return n.forEach(function(a){return o[a]=!0}),r&&!Xn(e,r)&&(o.outside=!0),o}function dp(e,t){for(var r=Se(e[0]),n=Vn(e[e.length-1]),o,a,i=r;i<=n;){var s=oo(i,t),c=!s.disabled&&!s.hidden;if(!c){i=ge(i,1);continue}if(s.selected)return i;s.today&&!a&&(a=i),o||(o=i),i=ge(i,1)}return a||o}var fp=365;function xs(e,t){var r=t.moveBy,n=t.direction,o=t.context,a=t.modifiers,i=t.retry,s=i===void 0?{count:0,lastFocused:e}:i,c=o.weekStartsOn,l=o.fromDate,d=o.toDate,m=o.locale,h={day:ge,week:Hn,month:Ae,year:Nm,startOfWeek:function(y){return o.ISOWeek?ht(y):ze(y,{locale:m,weekStartsOn:c})},endOfWeek:function(y){return o.ISOWeek?Zi(y):Un(y,{locale:m,weekStartsOn:c})}},v=h[r](e,n==="after"?1:-1);n==="before"&&l?v=_m([l,v]):n==="after"&&d&&(v=jm([d,v]));var b=!0;if(a){var g=oo(v,a);b=!g.disabled&&!g.hidden}return b?v:s.count>fp?s.lastFocused:xs(v,{moveBy:r,direction:n,context:o,modifiers:a,retry:W(W({},s),{count:s.count+1})})}var Cs=B.createContext(void 0);function mp(e){var t=nr(),r=ws(),n=B.useState(),o=n[0],a=n[1],i=B.useState(),s=i[0],c=i[1],l=dp(t.displayMonths,r),d=o??(s&&t.isDateDisplayed(s))?s:l,m=function(){c(o),a(void 0)},h=function(y){a(y)},v=ae(),b=function(y,w){if(o){var x=xs(o,{moveBy:y,direction:w,context:v,modifiers:r});Ce(o,x)||(t.goToDate(x,o),h(x))}},g={focusedDay:o,focusTarget:d,blur:m,focus:h,focusDayAfter:function(){return b("day","after")},focusDayBefore:function(){return b("day","before")},focusWeekAfter:function(){return b("week","after")},focusWeekBefore:function(){return b("week","before")},focusMonthBefore:function(){return b("month","before")},focusMonthAfter:function(){return b("month","after")},focusYearBefore:function(){return b("year","before")},focusYearAfter:function(){return b("year","after")},focusStartOfWeek:function(){return b("startOfWeek","before")},focusEndOfWeek:function(){return b("endOfWeek","after")}};return u.jsx(Cs.Provider,{value:g,children:e.children})}function ao(){var e=B.useContext(Cs);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function hp(e,t){var r=ws(),n=oo(e,r,t);return n}var io=B.createContext(void 0);function vp(e){if(!Br(e.initialProps)){var t={selected:void 0};return u.jsx(io.Provider,{value:t,children:e.children})}return u.jsx(pp,{initialProps:e.initialProps,children:e.children})}function pp(e){var t=e.initialProps,r=e.children,n=function(a,i,s){var c,l,d;if((c=t.onDayClick)===null||c===void 0||c.call(t,a,i,s),i.selected&&!t.required){(l=t.onSelect)===null||l===void 0||l.call(t,void 0,a,i,s);return}(d=t.onSelect)===null||d===void 0||d.call(t,a,a,i,s)},o={selected:t.selected,onDayClick:n};return u.jsx(io.Provider,{value:o,children:r})}function Ss(){var e=B.useContext(io);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function gp(e,t){var r=ae(),n=Ss(),o=Jn(),a=eo(),i=ao(),s=i.focusDayAfter,c=i.focusDayBefore,l=i.focusWeekAfter,d=i.focusWeekBefore,m=i.blur,h=i.focus,v=i.focusMonthBefore,b=i.focusMonthAfter,g=i.focusYearBefore,y=i.focusYearAfter,w=i.focusStartOfWeek,x=i.focusEndOfWeek,C=function(j){var S,J,le,se;Br(r)?(S=n.onDayClick)===null||S===void 0||S.call(n,e,t,j):tr(r)?(J=o.onDayClick)===null||J===void 0||J.call(o,e,t,j):rr(r)?(le=a.onDayClick)===null||le===void 0||le.call(a,e,t,j):(se=r.onDayClick)===null||se===void 0||se.call(r,e,t,j)},k=function(j){var S;h(e),(S=r.onDayFocus)===null||S===void 0||S.call(r,e,t,j)},E=function(j){var S;m(),(S=r.onDayBlur)===null||S===void 0||S.call(r,e,t,j)},_=function(j){var S;(S=r.onDayMouseEnter)===null||S===void 0||S.call(r,e,t,j)},N=function(j){var S;(S=r.onDayMouseLeave)===null||S===void 0||S.call(r,e,t,j)},z=function(j){var S;(S=r.onDayPointerEnter)===null||S===void 0||S.call(r,e,t,j)},L=function(j){var S;(S=r.onDayPointerLeave)===null||S===void 0||S.call(r,e,t,j)},I=function(j){var S;(S=r.onDayTouchCancel)===null||S===void 0||S.call(r,e,t,j)},V=function(j){var S;(S=r.onDayTouchEnd)===null||S===void 0||S.call(r,e,t,j)},T=function(j){var S;(S=r.onDayTouchMove)===null||S===void 0||S.call(r,e,t,j)},U=function(j){var S;(S=r.onDayTouchStart)===null||S===void 0||S.call(r,e,t,j)},Y=function(j){var S;(S=r.onDayKeyUp)===null||S===void 0||S.call(r,e,t,j)},Z=function(j){var S;switch(j.key){case"ArrowLeft":j.preventDefault(),j.stopPropagation(),r.dir==="rtl"?s():c();break;case"ArrowRight":j.preventDefault(),j.stopPropagation(),r.dir==="rtl"?c():s();break;case"ArrowDown":j.preventDefault(),j.stopPropagation(),l();break;case"ArrowUp":j.preventDefault(),j.stopPropagation(),d();break;case"PageUp":j.preventDefault(),j.stopPropagation(),j.shiftKey?g():v();break;case"PageDown":j.preventDefault(),j.stopPropagation(),j.shiftKey?y():b();break;case"Home":j.preventDefault(),j.stopPropagation(),w();break;case"End":j.preventDefault(),j.stopPropagation(),x();break}(S=r.onDayKeyDown)===null||S===void 0||S.call(r,e,t,j)},K={onClick:C,onFocus:k,onBlur:E,onKeyDown:Z,onKeyUp:Y,onMouseEnter:_,onMouseLeave:N,onPointerEnter:z,onPointerLeave:L,onTouchCancel:I,onTouchEnd:V,onTouchMove:T,onTouchStart:U};return K}function bp(){var e=ae(),t=Ss(),r=Jn(),n=eo(),o=Br(e)?t.selected:tr(e)?r.selected:rr(e)?n.selected:void 0;return o}function yp(e){return Object.values(Te).includes(e)}function wp(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var o=e.modifiersClassNames[n];if(o)r.push(o);else if(yp(n)){var a=e.classNames["day_".concat(n)];a&&r.push(a)}}),r}function xp(e,t){var r=W({},e.styles.day);return Object.keys(t).forEach(function(n){var o;r=W(W({},r),(o=e.modifiersStyles)===null||o===void 0?void 0:o[n])}),r}function Cp(e,t,r){var n,o,a,i=ae(),s=ao(),c=hp(e,t),l=gp(e,c),d=bp(),m=!!(i.onDayClick||i.mode!=="default");B.useEffect(function(){var _;c.outside||s.focusedDay&&m&&Ce(s.focusedDay,e)&&((_=r.current)===null||_===void 0||_.focus())},[s.focusedDay,e,r,m,c.outside]);var h=wp(i,c).join(" "),v=xp(i,c),b=!!(c.outside&&!i.showOutsideDays||c.hidden),g=(a=(o=i.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:Hv,y=u.jsx(g,{date:e,displayMonth:t,activeModifiers:c}),w={style:v,className:h,children:y,role:"gridcell"},x=s.focusTarget&&Ce(s.focusTarget,e)&&!c.outside,C=s.focusedDay&&Ce(s.focusedDay,e),k=W(W(W({},w),(n={disabled:c.disabled,role:"gridcell"},n["aria-selected"]=c.selected,n.tabIndex=C||x?0:-1,n)),l),E={isButton:m,isHidden:b,activeModifiers:c,selectedDays:d,buttonProps:k,divProps:w};return E}function Sp(e){var t=B.useRef(null),r=Cp(e.date,e.displayMonth,t);return r.isHidden?u.jsx("div",{role:"gridcell"}):r.isButton?u.jsx(Yr,W({name:"day",ref:t},r.buttonProps)):u.jsx("div",W({},r.divProps))}function Mp(e){var t=e.number,r=e.dates,n=ae(),o=n.onWeekNumberClick,a=n.styles,i=n.classNames,s=n.locale,c=n.labels.labelWeekNumber,l=n.formatters.formatWeekNumber,d=l(Number(t),{locale:s});if(!o)return u.jsx("span",{className:i.weeknumber,style:a.weeknumber,children:d});var m=c(Number(t),{locale:s}),h=function(v){o(t,r,v)};return u.jsx(Yr,{name:"week-number","aria-label":m,className:i.weeknumber,style:a.weeknumber,onClick:h,children:d})}function Pp(e){var t,r,n=ae(),o=n.styles,a=n.classNames,i=n.showWeekNumber,s=n.components,c=(t=s==null?void 0:s.Day)!==null&&t!==void 0?t:Sp,l=(r=s==null?void 0:s.WeekNumber)!==null&&r!==void 0?r:Mp,d;return i&&(d=u.jsx("td",{className:a.cell,style:o.cell,children:u.jsx(l,{number:e.weekNumber,dates:e.dates})})),u.jsxs("tr",{className:a.row,style:o.row,children:[d,e.dates.map(function(m){return u.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:u.jsx(c,{displayMonth:e.displayMonth,date:m})},kh(m))})]})}function Ms(e,t,r){for(var n=r!=null&&r.ISOWeek?Zi(t):Un(t,r),o=r!=null&&r.ISOWeek?ht(e):ze(e,r),a=Ve(n,o),i=[],s=0;s<=a;s++)i.push(ge(o,s));var c=i.reduce(function(l,d){var m=r!=null&&r.ISOWeek?rs(d):os(d,r),h=l.find(function(v){return v.weekNumber===m});return h?(h.dates.push(d),l):(l.push({weekNumber:m,dates:[d]}),l)},[]);return c}function kp(e,t){var r=Ms(Se(e),Vn(e),t);if(t!=null&&t.useFixedWeeks){var n=Nh(e,t);if(n<6){var o=r[r.length-1],a=o.dates[o.dates.length-1],i=Hn(a,6-n),s=Ms(Hn(a,1),i,t);r.push.apply(r,s)}}return r}function Ep(e){var t,r,n,o=ae(),a=o.locale,i=o.classNames,s=o.styles,c=o.hideHead,l=o.fixedWeeks,d=o.components,m=o.weekStartsOn,h=o.firstWeekContainsDate,v=o.ISOWeek,b=kp(e.displayMonth,{useFixedWeeks:!!l,ISOWeek:v,locale:a,weekStartsOn:m,firstWeekContainsDate:h}),g=(t=d==null?void 0:d.Head)!==null&&t!==void 0?t:Yv,y=(r=d==null?void 0:d.Row)!==null&&r!==void 0?r:Pp,w=(n=d==null?void 0:d.Footer)!==null&&n!==void 0?n:Fv;return u.jsxs("table",{id:e.id,className:i.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!c&&u.jsx(g,{}),u.jsx("tbody",{className:i.tbody,style:s.tbody,children:b.map(function(x){return u.jsx(y,{displayMonth:e.displayMonth,dates:x.dates,weekNumber:x.weekNumber},x.weekNumber)})}),u.jsx(w,{displayMonth:e.displayMonth})]})}function Np(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var _p=Np()?B.useLayoutEffect:B.useEffect,so=!1,jp=0;function Ps(){return"react-day-picker-".concat(++jp)}function Dp(e){var t,r=e??(so?Ps():null),n=B.useState(r),o=n[0],a=n[1];return _p(function(){o===null&&a(Ps())},[]),B.useEffect(function(){so===!1&&(so=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function Rp(e){var t,r,n=ae(),o=n.dir,a=n.classNames,i=n.styles,s=n.components,c=nr().displayMonths,l=Dp(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),d=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,m=[a.month],h=i.month,v=e.displayIndex===0,b=e.displayIndex===c.length-1,g=!v&&!b;o==="rtl"&&(t=[v,b],b=t[0],v=t[1]),v&&(m.push(a.caption_start),h=W(W({},h),i.caption_start)),b&&(m.push(a.caption_end),h=W(W({},h),i.caption_end)),g&&(m.push(a.caption_between),h=W(W({},h),i.caption_between));var y=(r=s==null?void 0:s.Caption)!==null&&r!==void 0?r:Iv;return u.jsxs("div",{className:m.join(" "),style:h,children:[u.jsx(y,{id:l,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),u.jsx(Ep,{id:d,"aria-labelledby":l,displayMonth:e.displayMonth})]},e.displayIndex)}function Op(e){var t=ae(),r=t.classNames,n=t.styles;return u.jsx("div",{className:r.months,style:n.months,children:e.children})}function Ap(e){var t,r,n=e.initialProps,o=ae(),a=ao(),i=nr(),s=B.useState(!1),c=s[0],l=s[1];B.useEffect(function(){o.initialFocus&&a.focusTarget&&(c||(a.focus(a.focusTarget),l(!0)))},[o.initialFocus,c,a.focus,a.focusTarget,a]);var d=[o.classNames.root,o.className];o.numberOfMonths>1&&d.push(o.classNames.multiple_months),o.showWeekNumber&&d.push(o.classNames.with_weeknumber);var m=W(W({},o.styles.root),o.style),h=Object.keys(n).filter(function(b){return b.startsWith("data-")}).reduce(function(b,g){var y;return W(W({},b),(y={},y[g]=n[g],y))},{}),v=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:Op;return u.jsx("div",W({className:d.join(" "),style:m,dir:o.dir,id:o.id,nonce:n.nonce,title:n.title,lang:n.lang},h,{children:u.jsx(v,{children:i.displayMonths.map(function(b,g){return u.jsx(Rp,{displayIndex:g,displayMonth:b},g)})})}))}function Tp(e){var t=e.children,r=av(e,["children"]);return u.jsx(Mv,{initialProps:r,children:u.jsx(Av,{children:u.jsx(vp,{initialProps:r,children:u.jsx(zv,{initialProps:r,children:u.jsx(qv,{initialProps:r,children:u.jsx(tp,{children:u.jsx(mp,{children:t})})})})})})})}function Lp(e){return u.jsx(Tp,W({},e,{children:u.jsx(Ap,{initialProps:e})}))}function lo({className:e,classNames:t,showOutsideDays:r=!0,...n}){return u.jsx(Lp,{showOutsideDays:r,className:O("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:O(ir({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:O(ir({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:()=>u.jsx(zi,{className:"h-4 w-4"}),IconRight:()=>u.jsx(Vi,{className:"h-4 w-4"})},...n})}lo.displayName="MriCalendar";function Wp({value:e,onChange:t,placeholder:r="Selecione",disabled:n,locale:o=ov}){return u.jsxs(Gt,{children:[u.jsx(Kt,{asChild:!0,children:u.jsxs(ye,{variant:"outline",className:O("w-full justify-start pl-3 text-left font-normal",!e&&"text-muted-foreground"),disabled:n,children:[e?ut(e,"dd/MM/yyyy"):u.jsx("span",{children:r}),u.jsx(Jf,{className:"ml-auto h-4 w-4 opacity-50"})]})}),u.jsx(Dt,{className:"w-auto p-0",align:"start",children:u.jsx(lo,{mode:"single",selected:e||void 0,onSelect:t,initialFocus:!0,locale:o})})]})}function Ip({title:e,icon:t,count:r,countLabel:n,children:o,className:a,...i}){return u.jsxs("div",{className:O("w-full h-auto min-h-[5rem] border-b border-border flex items-center justify-between py-4 px-6 bg-card/30 shrink-0",a),...i,children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(t,{className:"w-6 h-6 text-primary"}),u.jsx("h1",{className:"text-xl font-bold tracking-tight text-foreground",children:e})]}),r!==void 0&&u.jsxs("div",{className:"bg-primary/20 text-primary text-xs font-bold px-2 py-0.5 rounded-full",children:[r," ",(n||"Records").toUpperCase()]})]}),u.jsx("div",{className:"flex items-center gap-3",children:o})]})}function Fp({items:e,activeRoute:t,onNavigate:r,collapsed:n=!1,onToggleCollapse:o,footer:a,children:i,className:s}){const c=({item:l})=>{if(l.divider)return u.jsx("div",{className:"my-2 border-b border-white/5 opacity-50"});const d=l.icon,m=l.route&&t===l.route;return u.jsxs(ye,{variant:"ghost",className:O("w-full justify-start gap-3 relative transition-all duration-200 border",n&&"justify-center px-0",m?"bg-primary/10 text-primary border-primary/50 shadow-[inset_3px_0_0_0_var(--primary)]":"border-transparent text-muted-foreground hover:text-foreground hover:bg-muted",s),onClick:()=>{l.onClick&&l.onClick(),l.route&&r&&r(l.route)},title:n?l.label:void 0,children:[u.jsx(d,{className:O("h-5 w-5 shrink-0",m?"text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]":"")}),!n&&u.jsx("span",{className:O("truncate font-medium",m?"text-foreground":"text-muted-foreground"),children:l.label}),n&&m&&u.jsx("div",{className:"absolute inset-0 bg-primary/10 rounded-md z-[-1]"})]})};return u.jsxs("div",{className:O("h-full flex flex-col items-center py-4 border-r border-border transition-all duration-300 bg-card",n?"w-16 px-2":"w-60 px-3",s),children:[u.jsxs("div",{className:"flex-1 flex flex-col gap-1 w-full overflow-y-auto pr-1 no-scrollbar",children:[e.map((l,d)=>u.jsx(c,{item:l},d)),i]}),u.jsxs("div",{className:"mt-auto w-full flex flex-col gap-2 pt-4 border-t border-border",children:[a,o&&u.jsx("button",{onClick:o,className:O("flex items-center justify-center p-2 rounded-lg hover:bg-muted transition-colors text-muted-foreground hover:text-foreground w-full mt-2"),children:n?u.jsx(Vi,{className:"h-5 w-5"}):u.jsx(zi,{className:"h-5 w-5"})})]})]})}const ks=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{className:"relative w-full overflow-auto",children:u.jsx("table",{ref:r,className:O("w-full caption-bottom text-sm",e),...t})}));ks.displayName="MriTable";const Es=f.forwardRef(({className:e,...t},r)=>u.jsx("thead",{ref:r,className:O("[&_tr]:border-b",e),...t}));Es.displayName="MriTableHeader";const Ns=f.forwardRef(({className:e,...t},r)=>u.jsx("tbody",{ref:r,className:O("[&_tr:last-child]:border-0",e),...t}));Ns.displayName="MriTableBody";const _s=f.forwardRef(({className:e,...t},r)=>u.jsx("tfoot",{ref:r,className:O("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));_s.displayName="MriTableFooter";const js=f.forwardRef(({className:e,...t},r)=>u.jsx("tr",{ref:r,className:O("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));js.displayName="MriTableRow";const Ds=f.forwardRef(({className:e,...t},r)=>u.jsx("th",{ref:r,className:O("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...t}));Ds.displayName="MriTableHead";const Rs=f.forwardRef(({className:e,...t},r)=>u.jsx("td",{ref:r,className:O("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...t}));Rs.displayName="MriTableCell";const Os=f.forwardRef(({className:e,...t},r)=>u.jsx("caption",{ref:r,className:O("mt-4 text-sm text-muted-foreground",e),...t}));Os.displayName="MriTableCaption",R.MriBadge=Pl,R.MriBanIcon=zl,R.MriBringIcon=Tl,R.MriButton=ye,R.MriCalendar=lo,R.MriCard=Qo,R.MriCardContent=ta,R.MriCardDescription=ea,R.MriCardFooter=ra,R.MriCardHeader=Jo,R.MriCardTitle=Zo,R.MriClothingIcon=$l,R.MriCommand=Tr,R.MriCommandEmpty=Wr,R.MriCommandGroup=Ir,R.MriCommandInput=Lr,R.MriCommandItem=Fr,R.MriCommandList=Ui,R.MriCommandSeparator=qi,R.MriCommandShortcut=Xi,R.MriCompactSearch=lm,R.MriCopyButton=wm,R.MriDatePicker=Wp,R.MriDialog=cm,R.MriEconomyCard=xm,R.MriEyeIcon=Bl,R.MriGridActionButton=Cm,R.MriInput=Lo,R.MriKickIcon=Hl,R.MriModal=Gi,R.MriMoneyIcon=Fl,R.MriPageHeader=Ip,R.MriPopover=Gt,R.MriPopoverContent=Dt,R.MriPopoverTrigger=Kt,R.MriReviveIcon=Wl,R.MriScrollArea=mr,R.MriScrollBar=nn,R.MriSearchInput=Sm,R.MriSectionHeader=Mm,R.MriSelectSearch=um,R.MriSendBackIcon=Ll,R.MriSidebar=Fp,R.MriStatusBadge=yc,R.MriTable=ks,R.MriTableBody=Ns,R.MriTableCaption=Os,R.MriTableCell=Rs,R.MriTableFooter=_s,R.MriTableHead=Ds,R.MriTableHeader=Es,R.MriTableRow=js,R.MriTeleportIcon=Al,R.MriThemeToggle=vm,R.MriTimePicker=ym,R.MriVerifyIcon=Il,R.MriWarnIcon=Yl,R.cn=O,R.mriBadgeVariants=Po,R.mriButtonVariants=ir,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
135
+ */const Bc=ve("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),pe=m.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,isLoading:o=!1,children:a,disabled:s,...i},u)=>{const c=n?Nc:"button",d=s||o;return l.jsx(c,{className:R(xr({variant:t,size:r,className:e})),ref:u,disabled:d,...i,children:o?l.jsxs(l.Fragment,{children:[l.jsx(Lc,{className:"mr-2 h-4 w-4 animate-spin"}),a]}):a})});pe.displayName="MriButton";const Hc=(e={})=>l.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{cx:"12",cy:"9",r:"2.5",fill:"currentColor"})]}),Yc=(e={})=>l.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M21 15v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M7 10l5-5 5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M12 5v12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),zc=(e={})=>l.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M21 12H7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M11 16l-4-4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Vc=(e={})=>l.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M21 12a9 9 0 11-3-6.6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M12 8v8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M8 12h8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Uc=(e={})=>l.jsx("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M20 6L9 17l-5-5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),qc=(e={})=>l.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("rect",{x:"2",y:"7",width:"20",height:"14",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M12 11v6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{cx:"12",cy:"10",r:"1.5",fill:"currentColor"})]}),Xc=(e={})=>l.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M16 3l3 3v11a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6l3-3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M9 8h6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Gc=(e={})=>l.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"1.5"})]}),Kc=(e={})=>l.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M12 9v4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{cx:"12",cy:"17",r:"0.8",fill:"currentColor"})]}),Qc=(e={})=>l.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("circle",{cx:"12",cy:"7",r:"4",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M15 10l-6-6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Zc=(e={})=>l.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"1.5"}),l.jsx("path",{d:"M4.93 4.93l14.14 14.14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),Cr=m.forwardRef(({className:e,size:t="default",leftIcon:r,rightIcon:n,error:o,...a},s)=>{const i=!!o,u=typeof o=="string"?o:null;return l.jsxs("div",{className:"w-full space-y-1",children:[l.jsxs("div",{className:"relative flex items-center",children:[r&&l.jsx("div",{className:"absolute left-3 flex items-center justify-center text-muted-foreground pointer-events-none [&>svg]:size-4",children:r}),l.jsx("input",{...a,ref:s,className:R("w-full rounded-lg border bg-background/50 text-foreground focus:border-ring focus:outline-none placeholder:text-muted-foreground transition-colors disabled:opacity-50",t==="default"?"h-9 text-sm":"h-8 text-xs",r?"pl-9":"px-3",n?"pr-9":"px-3",i?"border-destructive focus:border-destructive":"border-input",e)}),n&&l.jsx("div",{className:"absolute right-3 flex items-center justify-center text-muted-foreground pointer-events-none [&>svg]:size-4",children:n})]}),u&&l.jsx("p",{className:"text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1",children:u})]})});Cr.displayName="MriInput";function pn(e){const t=Jc(e),r=m.forwardRef((n,o)=>{const{children:a,...s}=n,i=m.Children.toArray(a),u=i.find(tu);if(u){const c=u.props.children,d=i.map(f=>f===u?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return l.jsx(t,{...s,ref:o,children:m.isValidElement(c)?m.cloneElement(c,void 0,d):null})}return l.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Jc(e){const t=m.forwardRef((r,n)=>{const{children:o,...a}=r;if(m.isValidElement(o)){const s=nu(o),i=ru(a,o.props);return o.type!==m.Fragment&&(i.ref=n?it(n,s):s),m.cloneElement(o,i)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var eu=Symbol("radix.slottable");function tu(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===eu}function ru(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const u=a(...i);return o(...i),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function nu(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ou=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ge=ou.reduce((e,t)=>{const r=pn(`Primitive.${t}`),n=m.forwardRef((o,a)=>{const{asChild:s,...i}=o,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function au(e,t){e&&Vo.flushSync(()=>e.dispatchEvent(t))}var Je=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function su(e,t){return m.useReducer((r,n)=>t[r][n]??r,e)}var $e=e=>{const{present:t,children:r}=e,n=iu(t),o=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),a=xe(n.ref,lu(o));return typeof r=="function"||n.isPresent?m.cloneElement(o,{ref:a}):null};$e.displayName="Presence";function iu(e){const[t,r]=m.useState(),n=m.useRef(null),o=m.useRef(e),a=m.useRef("none"),s=e?"mounted":"unmounted",[i,u]=su(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const c=Nr(n.current);a.current=i==="mounted"?c:"none"},[i]),Je(()=>{const c=n.current,d=o.current;if(d!==e){const h=a.current,v=Nr(c);e?u("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&h!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Je(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=v=>{const p=Nr(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&p&&(u("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=v=>{v.target===t&&(a.current=Nr(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:m.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Nr(e){return(e==null?void 0:e.animationName)||"none"}function lu(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function cu(e,t){const r=m.createContext(t),n=a=>{const{children:s,...i}=a,u=m.useMemo(()=>i,Object.values(i));return l.jsx(r.Provider,{value:u,children:s})};n.displayName=e+"Provider";function o(a){const s=m.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Sr(e,t=[]){let r=[];function n(a,s){const i=m.createContext(s),u=r.length;r=[...r,s];const c=f=>{var x;const{scope:h,children:v,...b}=f,p=((x=h==null?void 0:h[e])==null?void 0:x[u])||i,y=m.useMemo(()=>b,Object.values(b));return l.jsx(p.Provider,{value:y,children:v})};c.displayName=a+"Provider";function d(f,h){var p;const v=((p=h==null?void 0:h[e])==null?void 0:p[u])||i,b=m.useContext(v);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,d]}const o=()=>{const a=r.map(s=>m.createContext(s));return function(i){const u=(i==null?void 0:i[e])||a;return m.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return o.scopeName=e,[n,uu(o,...t)]}function uu(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:u,scopeName:c})=>{const f=u(a)[`__scope${c}`];return{...i,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function Pe(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var du=m.createContext(void 0);function fu(e){const t=m.useContext(du);return e||t||"ltr"}function mu(e,[t,r]){return Math.min(r,Math.max(t,e))}function me(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function hu(e,t){return m.useReducer((r,n)=>t[r][n]??r,e)}var gn="ScrollArea",[ma]=Sr(gn),[vu,De]=ma(gn),ha=m.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...s}=e,[i,u]=m.useState(null),[c,d]=m.useState(null),[f,h]=m.useState(null),[v,b]=m.useState(null),[p,y]=m.useState(null),[x,w]=m.useState(0),[C,N]=m.useState(0),[k,P]=m.useState(!1),[_,z]=m.useState(!1),W=xe(t,V=>u(V)),F=fu(o);return l.jsx(vu,{scope:r,type:n,dir:F,scrollHideDelay:a,scrollArea:i,viewport:c,onViewportChange:d,content:f,onContentChange:h,scrollbarX:v,onScrollbarXChange:b,scrollbarXEnabled:k,onScrollbarXEnabledChange:P,scrollbarY:p,onScrollbarYChange:y,scrollbarYEnabled:_,onScrollbarYEnabledChange:z,onCornerWidthChange:w,onCornerHeightChange:N,children:l.jsx(ge.div,{dir:F,...s,ref:W,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":C+"px",...e.style}})})});ha.displayName=gn;var va="ScrollAreaViewport",pa=m.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=e,s=De(va,r),i=m.useRef(null),u=xe(t,i,s.onViewportChange);return l.jsxs(l.Fragment,{children:[l.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}),l.jsx(ge.div,{"data-radix-scroll-area-viewport":"",...a,ref:u,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:l.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});pa.displayName=va;var Be="ScrollAreaScrollbar",bn=m.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=De(Be,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,i=e.orientation==="horizontal";return m.useEffect(()=>(i?a(!0):s(!0),()=>{i?a(!1):s(!1)}),[i,a,s]),o.type==="hover"?l.jsx(pu,{...n,ref:t,forceMount:r}):o.type==="scroll"?l.jsx(gu,{...n,ref:t,forceMount:r}):o.type==="auto"?l.jsx(ga,{...n,ref:t,forceMount:r}):o.type==="always"?l.jsx(yn,{...n,ref:t}):null});bn.displayName=Be;var pu=m.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=De(Be,e.__scopeScrollArea),[a,s]=m.useState(!1);return m.useEffect(()=>{const i=o.scrollArea;let u=0;if(i){const c=()=>{window.clearTimeout(u),s(!0)},d=()=>{u=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",c),i.addEventListener("pointerleave",d),()=>{window.clearTimeout(u),i.removeEventListener("pointerenter",c),i.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),l.jsx($e,{present:r||a,children:l.jsx(ga,{"data-state":a?"visible":"hidden",...n,ref:t})})}),gu=m.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=De(Be,e.__scopeScrollArea),a=e.orientation==="horizontal",s=Pr(()=>u("SCROLL_END"),100),[i,u]=hu("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 m.useEffect(()=>{if(i==="idle"){const c=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[i,o.scrollHideDelay,u]),m.useEffect(()=>{const c=o.viewport,d=a?"scrollLeft":"scrollTop";if(c){let f=c[d];const h=()=>{const v=c[d];f!==v&&(u("SCROLL"),s()),f=v};return c.addEventListener("scroll",h),()=>c.removeEventListener("scroll",h)}},[o.viewport,a,u,s]),l.jsx($e,{present:r||i!=="hidden",children:l.jsx(yn,{"data-state":i==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:me(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:me(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),ga=m.forwardRef((e,t)=>{const r=De(Be,e.__scopeScrollArea),{forceMount:n,...o}=e,[a,s]=m.useState(!1),i=e.orientation==="horizontal",u=Pr(()=>{if(r.viewport){const c=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;s(i?c:d)}},10);return _t(r.viewport,u),_t(r.content,u),l.jsx($e,{present:n||a,children:l.jsx(yn,{"data-state":a?"visible":"hidden",...o,ref:t})})}),yn=m.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,o=De(Be,e.__scopeScrollArea),a=m.useRef(null),s=m.useRef(0),[i,u]=m.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=Ca(i.viewport,i.content),d={...n,sizes:i,onSizesChange:u,hasThumb:c>0&&c<1,onThumbChange:h=>a.current=h,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:h=>s.current=h};function f(h,v){return Nu(h,s.current,i,v)}return r==="horizontal"?l.jsx(bu,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const h=o.viewport.scrollLeft,v=Na(h,i,o.dir);a.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollLeft=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollLeft=f(h,o.dir))}}):r==="vertical"?l.jsx(yu,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const h=o.viewport.scrollTop,v=Na(h,i);a.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollTop=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollTop=f(h))}}):null}),bu=m.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,a=De(Be,e.__scopeScrollArea),[s,i]=m.useState(),u=m.useRef(null),c=xe(t,u,a.onScrollbarXChange);return m.useEffect(()=>{u.current&&i(getComputedStyle(u.current))},[u]),l.jsx(ya,{"data-orientation":"horizontal",...o,ref:c,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":kr(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(a.viewport){const h=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(h),ja(h,f)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Mr(s.paddingLeft),paddingEnd:Mr(s.paddingRight)}})}})}),yu=m.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,a=De(Be,e.__scopeScrollArea),[s,i]=m.useState(),u=m.useRef(null),c=xe(t,u,a.onScrollbarYChange);return m.useEffect(()=>{u.current&&i(getComputedStyle(u.current))},[u]),l.jsx(ya,{"data-orientation":"vertical",...o,ref:c,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":kr(r)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(a.viewport){const h=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(h),ja(h,f)&&d.preventDefault()}},onResize:()=>{u.current&&a.viewport&&s&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Mr(s.paddingTop),paddingEnd:Mr(s.paddingBottom)}})}})}),[xu,ba]=ma(Be),ya=m.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:s,onThumbPointerDown:i,onThumbPositionChange:u,onDragScroll:c,onWheelScroll:d,onResize:f,...h}=e,v=De(Be,r),[b,p]=m.useState(null),y=xe(t,W=>p(W)),x=m.useRef(null),w=m.useRef(""),C=v.viewport,N=n.content-n.viewport,k=Pe(d),P=Pe(u),_=Pr(f,10);function z(W){if(x.current){const F=W.clientX-x.current.left,V=W.clientY-x.current.top;c({x:F,y:V})}}return m.useEffect(()=>{const W=F=>{const V=F.target;(b==null?void 0:b.contains(V))&&k(F,N)};return document.addEventListener("wheel",W,{passive:!1}),()=>document.removeEventListener("wheel",W,{passive:!1})},[C,b,N,k]),m.useEffect(P,[n,P]),_t(b,_),_t(v.content,_),l.jsx(xu,{scope:r,scrollbar:b,hasThumb:o,onThumbChange:Pe(a),onThumbPointerUp:Pe(s),onThumbPositionChange:P,onThumbPointerDown:Pe(i),children:l.jsx(ge.div,{...h,ref:y,style:{position:"absolute",...h.style},onPointerDown:me(e.onPointerDown,W=>{W.button===0&&(W.target.setPointerCapture(W.pointerId),x.current=b.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),z(W))}),onPointerMove:me(e.onPointerMove,z),onPointerUp:me(e.onPointerUp,W=>{const F=W.target;F.hasPointerCapture(W.pointerId)&&F.releasePointerCapture(W.pointerId),document.body.style.webkitUserSelect=w.current,v.viewport&&(v.viewport.style.scrollBehavior=""),x.current=null})})})}),jr="ScrollAreaThumb",xa=m.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=ba(jr,e.__scopeScrollArea);return l.jsx($e,{present:r||o.hasThumb,children:l.jsx(wu,{ref:t,...n})})}),wu=m.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,a=De(jr,r),s=ba(jr,r),{onThumbPositionChange:i}=s,u=xe(t,f=>s.onThumbChange(f)),c=m.useRef(void 0),d=Pr(()=>{c.current&&(c.current(),c.current=void 0)},100);return m.useEffect(()=>{const f=a.viewport;if(f){const h=()=>{if(d(),!c.current){const v=Su(f,i);c.current=v,i()}};return i(),f.addEventListener("scroll",h),()=>f.removeEventListener("scroll",h)}},[a.viewport,d,i]),l.jsx(ge.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:me(e.onPointerDownCapture,f=>{const v=f.target.getBoundingClientRect(),b=f.clientX-v.left,p=f.clientY-v.top;s.onThumbPointerDown({x:b,y:p})}),onPointerUp:me(e.onPointerUp,s.onThumbPointerUp)})});xa.displayName=jr;var xn="ScrollAreaCorner",wa=m.forwardRef((e,t)=>{const r=De(xn,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?l.jsx(Cu,{...e,ref:t}):null});wa.displayName=xn;var Cu=m.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=De(xn,r),[a,s]=m.useState(0),[i,u]=m.useState(0),c=!!(a&&i);return _t(o.scrollbarX,()=>{var f;const d=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(d),u(d)}),_t(o.scrollbarY,()=>{var f;const d=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(d),s(d)}),c?l.jsx(ge.div,{...n,ref:t,style:{width:a,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Mr(e){return e?parseInt(e,10):0}function Ca(e,t){const r=e/t;return isNaN(r)?0:r}function kr(e){const t=Ca(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Nu(e,t,r,n="ltr"){const o=kr(r),a=o/2,s=t||a,i=o-s,u=r.scrollbar.paddingStart+s,c=r.scrollbar.size-r.scrollbar.paddingEnd-i,d=r.content-r.viewport,f=n==="ltr"?[0,d]:[d*-1,0];return Sa([u,c],f)(e)}function Na(e,t,r="ltr"){const n=kr(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,s=t.content-t.viewport,i=a-n,u=r==="ltr"?[0,s]:[s*-1,0],c=mu(e,u);return Sa([0,s],[0,i])(c)}function Sa(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function ja(e,t){return e>0&&e<t}var Su=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const a={left:e.scrollLeft,top:e.scrollTop},s=r.left!==a.left,i=r.top!==a.top;(s||i)&&t(),r=a,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function Pr(e,t){const r=Pe(e),n=m.useRef(0);return m.useEffect(()=>()=>window.clearTimeout(n.current),[]),m.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function _t(e,t){const r=Pe(t);Je(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}var Ma=ha,ju=pa,Mu=wa;const Er=m.forwardRef(({className:e,children:t,...r},n)=>l.jsxs(Ma,{ref:n,className:R("relative overflow-hidden",e),...r,children:[l.jsx(ju,{className:"h-full w-full rounded-[inherit]",children:t}),l.jsx(wn,{}),l.jsx(Mu,{})]}));Er.displayName=Ma.displayName;const wn=m.forwardRef(({className:e,orientation:t="vertical",...r},n)=>l.jsx(bn,{ref:n,orientation:t,className:R("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 border-t border-t-transparent p-[1px]",e),...r,children:l.jsx(xa,{className:"relative flex-1 rounded-full bg-border"})}));wn.displayName=bn.displayName;function ku({label:e,variant:t="default",className:r,size:n="xs"}){return l.jsx("span",{className:R("font-medium rounded border flex items-center justify-center font-mono whitespace-nowrap",n==="xs"&&"px-1.5 py-0.5 text-[10px]",n==="sm"&&"px-2 py-1 text-xs",n==="md"&&"px-2.5 py-1 text-sm",t==="default"&&"bg-muted text-muted-foreground border-border",t==="outline"&&"bg-transparent text-foreground border-border",t==="ghost"&&"bg-black/40 text-zinc-300 border-white/5",t==="destructive"&&"bg-red-500/10 text-red-500 border-red-500/20",t==="warning"&&"bg-yellow-500/10 text-yellow-500 border-yellow-500/20",t==="success"&&"bg-green-500/10 text-green-500 border-green-500/20",r),children:e})}const Pu=({size:e="md"})=>{const t={sm:"w-4 h-4 border-2",md:"w-8 h-8 border-4",lg:"w-12 h-12 border-4"};return l.jsx("div",{className:"flex items-center justify-center",children:l.jsx("div",{className:`${t[e]} border-t-accent border-white rounded-full animate-spin`})})},ka=m.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:R("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ka.displayName="MriCard";const Pa=m.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:R("flex flex-col space-y-1.5 p-6",e),...t}));Pa.displayName="MriCardHeader";const Ea=m.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:R("font-semibold leading-none tracking-tight",e),...t}));Ea.displayName="MriCardTitle";const _a=m.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:R("text-sm text-muted-foreground",e),...t}));_a.displayName="MriCardDescription";const Da=m.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:R("p-6 pt-0",e),...t}));Da.displayName="MriCardContent";const Oa=m.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:R("flex items-center p-6 pt-0",e),...t}));Oa.displayName="MriCardFooter";function Eu(e,t=globalThis==null?void 0:globalThis.document){const r=Pe(e);m.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var _u="DismissableLayer",Cn="dismissableLayer.update",Du="dismissableLayer.pointerDownOutside",Ou="dismissableLayer.focusOutside",Ra,Ta=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nn=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...u}=e,c=m.useContext(Ta),[d,f]=m.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=m.useState({}),b=xe(t,_=>f(_)),p=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(y),w=d?p.indexOf(d):-1,C=c.layersWithOutsidePointerEventsDisabled.size>0,N=w>=x,k=Au(_=>{const z=_.target,W=[...c.branches].some(F=>F.contains(z));!N||W||(o==null||o(_),s==null||s(_),_.defaultPrevented||i==null||i())},h),P=Lu(_=>{const z=_.target;[...c.branches].some(F=>F.contains(z))||(a==null||a(_),s==null||s(_),_.defaultPrevented||i==null||i())},h);return Eu(_=>{w===c.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&i&&(_.preventDefault(),i()))},h),m.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Ra=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Aa(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Ra)}},[d,h,r,c]),m.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Aa())},[d,c]),m.useEffect(()=>{const _=()=>v({});return document.addEventListener(Cn,_),()=>document.removeEventListener(Cn,_)},[]),l.jsx(ge.div,{...u,ref:b,style:{pointerEvents:C?N?"auto":"none":void 0,...e.style},onFocusCapture:me(e.onFocusCapture,P.onFocusCapture),onBlurCapture:me(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:me(e.onPointerDownCapture,k.onPointerDownCapture)})});Nn.displayName=_u;var Ru="DismissableLayerBranch",Tu=m.forwardRef((e,t)=>{const r=m.useContext(Ta),n=m.useRef(null),o=xe(t,n);return m.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),l.jsx(ge.div,{...e,ref:o})});Tu.displayName=Ru;function Au(e,t=globalThis==null?void 0:globalThis.document){const r=Pe(e),n=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let u=function(){La(Du,r,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Lu(e,t=globalThis==null?void 0:globalThis.document){const r=Pe(e),n=m.useRef(!1);return m.useEffect(()=>{const o=a=>{a.target&&!n.current&&La(Ou,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Aa(){const e=new CustomEvent(Cn);document.dispatchEvent(e)}function La(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?au(o,a):o.dispatchEvent(a)}var Sn=0;function Wa(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ia()),document.body.insertAdjacentElement("beforeend",e[1]??Ia()),Sn++,()=>{Sn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Sn--}},[])}function Ia(){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 jn="focusScope.autoFocusOnMount",Mn="focusScope.autoFocusOnUnmount",Fa={bubbles:!1,cancelable:!0},Wu="FocusScope",kn=m.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,u]=m.useState(null),c=Pe(o),d=Pe(a),f=m.useRef(null),h=xe(t,p=>u(p)),v=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(n){let p=function(C){if(v.paused||!i)return;const N=C.target;i.contains(N)?f.current=N:lt(f.current,{select:!0})},y=function(C){if(v.paused||!i)return;const N=C.relatedTarget;N!==null&&(i.contains(N)||lt(f.current,{select:!0}))},x=function(C){if(document.activeElement===document.body)for(const k of C)k.removedNodes.length>0&&lt(i)};document.addEventListener("focusin",p),document.addEventListener("focusout",y);const w=new MutationObserver(x);return i&&w.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",y),w.disconnect()}}},[n,i,v.paused]),m.useEffect(()=>{if(i){Ha.add(v);const p=document.activeElement;if(!i.contains(p)){const x=new CustomEvent(jn,Fa);i.addEventListener(jn,c),i.dispatchEvent(x),x.defaultPrevented||(Iu(Yu($a(i)),{select:!0}),document.activeElement===p&&lt(i))}return()=>{i.removeEventListener(jn,c),setTimeout(()=>{const x=new CustomEvent(Mn,Fa);i.addEventListener(Mn,d),i.dispatchEvent(x),x.defaultPrevented||lt(p??document.body,{select:!0}),i.removeEventListener(Mn,d),Ha.remove(v)},0)}}},[i,c,d,v]);const b=m.useCallback(p=>{if(!r&&!n||v.paused)return;const y=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,x=document.activeElement;if(y&&x){const w=p.currentTarget,[C,N]=Fu(w);C&&N?!p.shiftKey&&x===N?(p.preventDefault(),r&&lt(C,{select:!0})):p.shiftKey&&x===C&&(p.preventDefault(),r&&lt(N,{select:!0})):x===w&&p.preventDefault()}},[r,n,v.paused]);return l.jsx(ge.div,{tabIndex:-1,...s,ref:h,onKeyDown:b})});kn.displayName=Wu;function Iu(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(lt(n,{select:t}),document.activeElement!==r)return}function Fu(e){const t=$a(e),r=Ba(t,e),n=Ba(t.reverse(),e);return[r,n]}function $a(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ba(e,t){for(const r of e)if(!$u(r,{upTo:t}))return r}function $u(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 Bu(e){return e instanceof HTMLInputElement&&"select"in e}function lt(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Bu(e)&&t&&e.select()}}var Ha=Hu();function Hu(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Ya(e,t),e.unshift(t)},remove(t){var r;e=Ya(e,t),(r=e[0])==null||r.resume()}}}function Ya(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Yu(e){return e.filter(t=>t.tagName!=="A")}var zu=m[" useId ".trim().toString()]||(()=>{}),Vu=0;function He(e){const[t,r]=m.useState(zu());return Je(()=>{r(n=>n??String(Vu++))},[e]),t?`radix-${t}`:""}const Uu=["top","right","bottom","left"],ct=Math.min,Ee=Math.max,_r=Math.round,Dr=Math.floor,Ye=e=>({x:e,y:e}),qu={left:"right",right:"left",bottom:"top",top:"bottom"},Xu={start:"end",end:"start"};function Pn(e,t,r){return Ee(e,ct(t,r))}function et(e,t){return typeof e=="function"?e(t):e}function tt(e){return e.split("-")[0]}function Dt(e){return e.split("-")[1]}function En(e){return e==="x"?"y":"x"}function _n(e){return e==="y"?"height":"width"}const Gu=new Set(["top","bottom"]);function ze(e){return Gu.has(tt(e))?"y":"x"}function Dn(e){return En(ze(e))}function Ku(e,t,r){r===void 0&&(r=!1);const n=Dt(e),o=Dn(e),a=_n(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Or(s)),[s,Or(s)]}function Qu(e){const t=Or(e);return[On(e),t,On(t)]}function On(e){return e.replace(/start|end/g,t=>Xu[t])}const za=["left","right"],Va=["right","left"],Zu=["top","bottom"],Ju=["bottom","top"];function ed(e,t,r){switch(e){case"top":case"bottom":return r?t?Va:za:t?za:Va;case"left":case"right":return t?Zu:Ju;default:return[]}}function td(e,t,r,n){const o=Dt(e);let a=ed(tt(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(On)))),a}function Or(e){return e.replace(/left|right|bottom|top/g,t=>qu[t])}function rd(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ua(e){return typeof e!="number"?rd(e):{top:e,right:e,bottom:e,left:e}}function Rr(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function qa(e,t,r){let{reference:n,floating:o}=e;const a=ze(t),s=Dn(t),i=_n(s),u=tt(t),c=a==="y",d=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,h=n[i]/2-o[i]/2;let v;switch(u){case"top":v={x:d,y:n.y-o.height};break;case"bottom":v={x:d,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:f};break;case"left":v={x:n.x-o.width,y:f};break;default:v={x:n.x,y:n.y}}switch(Dt(t)){case"start":v[s]-=h*(r&&c?-1:1);break;case"end":v[s]+=h*(r&&c?-1:1);break}return v}const nd=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=qa(c,n,u),h=n,v={},b=0;for(let p=0;p<i.length;p++){const{name:y,fn:x}=i[p],{x:w,y:C,data:N,reset:k}=await x({x:d,y:f,initialPlacement:n,placement:h,strategy:o,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});d=w??d,f=C??f,v={...v,[y]:{...v[y],...N}},k&&b<=50&&(b++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(c=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:d,y:f}=qa(c,h,u)),p=-1)}return{x:d,y:f,placement:h,strategy:o,middlewareData:v}};async function or(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:v=0}=et(t,e),b=Ua(v),y=i[h?f==="floating"?"reference":"floating":f],x=Rr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:u})),w=f==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),N=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},k=Rr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:C,strategy:u}):w);return{top:(x.top-k.top+b.top)/N.y,bottom:(k.bottom-x.bottom+b.bottom)/N.y,left:(x.left-k.left+b.left)/N.x,right:(k.right-x.right+b.right)/N.x}}const od=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:u}=t,{element:c,padding:d=0}=et(e,t)||{};if(c==null)return{};const f=Ua(d),h={x:r,y:n},v=Dn(o),b=_n(v),p=await s.getDimensions(c),y=v==="y",x=y?"top":"left",w=y?"bottom":"right",C=y?"clientHeight":"clientWidth",N=a.reference[b]+a.reference[v]-h[v]-a.floating[b],k=h[v]-a.reference[v],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=P?P[C]:0;(!_||!await(s.isElement==null?void 0:s.isElement(P)))&&(_=i.floating[C]||a.floating[b]);const z=N/2-k/2,W=_/2-p[b]/2-1,F=ct(f[x],W),V=ct(f[w],W),L=F,U=_-p[b]-V,H=_/2-p[b]/2+z,J=Pn(L,H,U),K=!u.arrow&&Dt(o)!=null&&H!==J&&a.reference[b]/2-(H<L?F:V)-p[b]/2<0,D=K?H<L?H-L:H-U:0;return{[v]:h[v]+D,data:{[v]:J,centerOffset:H-J-D,...K&&{alignmentOffset:D}},reset:K}}}),ad=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:p=!0,...y}=et(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=tt(o),w=ze(i),C=tt(i)===i,N=await(u.isRTL==null?void 0:u.isRTL(c.floating)),k=h||(C||!p?[Or(i)]:Qu(i)),P=b!=="none";!h&&P&&k.push(...td(i,p,b,N));const _=[i,...k],z=await or(t,y),W=[];let F=((n=a.flip)==null?void 0:n.overflows)||[];if(d&&W.push(z[x]),f){const H=Ku(o,s,N);W.push(z[H[0]],z[H[1]])}if(F=[...F,{placement:o,overflows:W}],!W.every(H=>H<=0)){var V,L;const H=(((V=a.flip)==null?void 0:V.index)||0)+1,J=_[H];if(J&&(!(f==="alignment"?w!==ze(J):!1)||F.every(S=>ze(S.placement)===w?S.overflows[0]>0:!0)))return{data:{index:H,overflows:F},reset:{placement:J}};let K=(L=F.filter(D=>D.overflows[0]<=0).sort((D,S)=>D.overflows[1]-S.overflows[1])[0])==null?void 0:L.placement;if(!K)switch(v){case"bestFit":{var U;const D=(U=F.filter(S=>{if(P){const Z=ze(S.placement);return Z===w||Z==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(Z=>Z>0).reduce((Z,le)=>Z+le,0)]).sort((S,Z)=>S[1]-Z[1])[0])==null?void 0:U[0];D&&(K=D);break}case"initialPlacement":K=i;break}if(o!==K)return{reset:{placement:K}}}return{}}}};function Xa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ga(e){return Uu.some(t=>e[t]>=0)}const sd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=et(e,t);switch(n){case"referenceHidden":{const a=await or(t,{...o,elementContext:"reference"}),s=Xa(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ga(s)}}}case"escaped":{const a=await or(t,{...o,altBoundary:!0}),s=Xa(a,r.floating);return{data:{escapedOffsets:s,escaped:Ga(s)}}}default:return{}}}}},Ka=new Set(["left","top"]);async function id(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=tt(r),i=Dt(r),u=ze(r)==="y",c=Ka.has(s)?-1:1,d=a&&u?-1:1,f=et(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof b=="number"&&(v=i==="end"?b*-1:b),u?{x:v*d,y:h*c}:{x:h*c,y:v*d}}const ld=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:i}=t,u=await id(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:s}}}}},cd=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:y=>{let{x,y:w}=y;return{x,y:w}}},...u}=et(e,t),c={x:r,y:n},d=await or(t,u),f=ze(tt(o)),h=En(f);let v=c[h],b=c[f];if(a){const y=h==="y"?"top":"left",x=h==="y"?"bottom":"right",w=v+d[y],C=v-d[x];v=Pn(w,v,C)}if(s){const y=f==="y"?"top":"left",x=f==="y"?"bottom":"right",w=b+d[y],C=b-d[x];b=Pn(w,b,C)}const p=i.fn({...t,[h]:v,[f]:b});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[h]:a,[f]:s}}}}}},ud=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:u=!0,crossAxis:c=!0}=et(e,t),d={x:r,y:n},f=ze(o),h=En(f);let v=d[h],b=d[f];const p=et(i,t),y=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(u){const C=h==="y"?"height":"width",N=a.reference[h]-a.floating[C]+y.mainAxis,k=a.reference[h]+a.reference[C]-y.mainAxis;v<N?v=N:v>k&&(v=k)}if(c){var x,w;const C=h==="y"?"width":"height",N=Ka.has(tt(o)),k=a.reference[f]-a.floating[C]+(N&&((x=s.offset)==null?void 0:x[f])||0)+(N?0:y.crossAxis),P=a.reference[f]+a.reference[C]+(N?0:((w=s.offset)==null?void 0:w[f])||0)-(N?y.crossAxis:0);b<k?b=k:b>P&&(b=P)}return{[h]:v,[f]:b}}}},dd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:u=()=>{},...c}=et(e,t),d=await or(t,c),f=tt(o),h=Dt(o),v=ze(o)==="y",{width:b,height:p}=a.floating;let y,x;f==="top"||f==="bottom"?(y=f,x=h===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(x=f,y=h==="end"?"top":"bottom");const w=p-d.top-d.bottom,C=b-d.left-d.right,N=ct(p-d[y],w),k=ct(b-d[x],C),P=!t.middlewareData.shift;let _=N,z=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(z=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(_=w),P&&!h){const F=Ee(d.left,0),V=Ee(d.right,0),L=Ee(d.top,0),U=Ee(d.bottom,0);v?z=b-2*(F!==0||V!==0?F+V:Ee(d.left,d.right)):_=p-2*(L!==0||U!==0?L+U:Ee(d.top,d.bottom))}await u({...t,availableWidth:z,availableHeight:_});const W=await s.getDimensions(i.floating);return b!==W.width||p!==W.height?{reset:{rects:!0}}:{}}}};function Tr(){return typeof window<"u"}function Ot(e){return Qa(e)?(e.nodeName||"").toLowerCase():"#document"}function _e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ve(e){var t;return(t=(Qa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qa(e){return Tr()?e instanceof Node||e instanceof _e(e).Node:!1}function Ae(e){return Tr()?e instanceof Element||e instanceof _e(e).Element:!1}function Ue(e){return Tr()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function Za(e){return!Tr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}const fd=new Set(["inline","contents"]);function ar(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Le(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!fd.has(o)}const md=new Set(["table","td","th"]);function hd(e){return md.has(Ot(e))}const vd=[":popover-open",":modal"];function Ar(e){return vd.some(t=>{try{return e.matches(t)}catch{return!1}})}const pd=["transform","translate","scale","rotate","perspective"],gd=["transform","translate","scale","rotate","perspective","filter"],bd=["paint","layout","strict","content"];function Rn(e){const t=Tn(),r=Ae(e)?Le(e):e;return pd.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||gd.some(n=>(r.willChange||"").includes(n))||bd.some(n=>(r.contain||"").includes(n))}function yd(e){let t=ut(e);for(;Ue(t)&&!Rt(t);){if(Rn(t))return t;if(Ar(t))return null;t=ut(t)}return null}function Tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xd=new Set(["html","body","#document"]);function Rt(e){return xd.has(Ot(e))}function Le(e){return _e(e).getComputedStyle(e)}function Lr(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ut(e){if(Ot(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Za(e)&&e.host||Ve(e);return Za(t)?t.host:t}function Ja(e){const t=ut(e);return Rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ue(t)&&ar(t)?t:Ja(t)}function sr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Ja(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=_e(o);if(a){const i=An(s);return t.concat(s,s.visualViewport||[],ar(o)?o:[],i&&r?sr(i):[])}return t.concat(o,sr(o,[],r))}function An(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function es(e){const t=Le(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ue(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=_r(r)!==a||_r(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function Ln(e){return Ae(e)?e:e.contextElement}function Tt(e){const t=Ln(e);if(!Ue(t))return Ye(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=es(t);let s=(a?_r(r.width):r.width)/n,i=(a?_r(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const wd=Ye(0);function ts(e){const t=_e(e);return!Tn()||!t.visualViewport?wd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Cd(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==_e(e)?!1:t}function gt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Ln(e);let s=Ye(1);t&&(n?Ae(n)&&(s=Tt(n)):s=Tt(e));const i=Cd(a,r,n)?ts(a):Ye(0);let u=(o.left+i.x)/s.x,c=(o.top+i.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){const h=_e(a),v=n&&Ae(n)?_e(n):n;let b=h,p=An(b);for(;p&&n&&v!==b;){const y=Tt(p),x=p.getBoundingClientRect(),w=Le(p),C=x.left+(p.clientLeft+parseFloat(w.paddingLeft))*y.x,N=x.top+(p.clientTop+parseFloat(w.paddingTop))*y.y;u*=y.x,c*=y.y,d*=y.x,f*=y.y,u+=C,c+=N,b=_e(p),p=An(b)}}return Rr({width:d,height:f,x:u,y:c})}function Wr(e,t){const r=Lr(e).scrollLeft;return t?t.left+r:gt(Ve(e)).left+r}function rs(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Wr(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Nd(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=Ve(n),i=t?Ar(t.floating):!1;if(n===s||i&&a)return r;let u={scrollLeft:0,scrollTop:0},c=Ye(1);const d=Ye(0),f=Ue(n);if((f||!f&&!a)&&((Ot(n)!=="body"||ar(s))&&(u=Lr(n)),Ue(n))){const v=gt(n);c=Tt(n),d.x=v.x+n.clientLeft,d.y=v.y+n.clientTop}const h=s&&!f&&!a?rs(s,u):Ye(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:r.y*c.y-u.scrollTop*c.y+d.y+h.y}}function Sd(e){return Array.from(e.getClientRects())}function jd(e){const t=Ve(e),r=Lr(e),n=e.ownerDocument.body,o=Ee(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Ee(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Wr(e);const i=-r.scrollTop;return Le(n).direction==="rtl"&&(s+=Ee(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}const ns=25;function Md(e,t){const r=_e(e),n=Ve(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,u=0;if(o){a=o.width,s=o.height;const d=Tn();(!d||d&&t==="fixed")&&(i=o.offsetLeft,u=o.offsetTop)}const c=Wr(n);if(c<=0){const d=n.ownerDocument,f=d.body,h=getComputedStyle(f),v=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,b=Math.abs(n.clientWidth-f.clientWidth-v);b<=ns&&(a-=b)}else c<=ns&&(a+=c);return{width:a,height:s,x:i,y:u}}const kd=new Set(["absolute","fixed"]);function Pd(e,t){const r=gt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ue(e)?Tt(e):Ye(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,u=o*a.x,c=n*a.y;return{width:s,height:i,x:u,y:c}}function os(e,t,r){let n;if(t==="viewport")n=Md(e,r);else if(t==="document")n=jd(Ve(e));else if(Ae(t))n=Pd(t,r);else{const o=ts(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rr(n)}function as(e,t){const r=ut(e);return r===t||!Ae(r)||Rt(r)?!1:Le(r).position==="fixed"||as(r,t)}function Ed(e,t){const r=t.get(e);if(r)return r;let n=sr(e,[],!1).filter(i=>Ae(i)&&Ot(i)!=="body"),o=null;const a=Le(e).position==="fixed";let s=a?ut(e):e;for(;Ae(s)&&!Rt(s);){const i=Le(s),u=Rn(s);!u&&i.position==="fixed"&&(o=null),(a?!u&&!o:!u&&i.position==="static"&&!!o&&kd.has(o.position)||ar(s)&&!u&&as(e,s))?n=n.filter(d=>d!==s):o=i,s=ut(s)}return t.set(e,n),n}function _d(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?Ar(t)?[]:Ed(t,this._c):[].concat(r),n],i=s[0],u=s.reduce((c,d)=>{const f=os(t,d,o);return c.top=Ee(f.top,c.top),c.right=ct(f.right,c.right),c.bottom=ct(f.bottom,c.bottom),c.left=Ee(f.left,c.left),c},os(t,i,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Dd(e){const{width:t,height:r}=es(e);return{width:t,height:r}}function Od(e,t,r){const n=Ue(t),o=Ve(t),a=r==="fixed",s=gt(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const u=Ye(0);function c(){u.x=Wr(o)}if(n||!n&&!a)if((Ot(t)!=="body"||ar(o))&&(i=Lr(t)),n){const v=gt(t,!0,a,t);u.x=v.x+t.clientLeft,u.y=v.y+t.clientTop}else o&&c();a&&!n&&o&&c();const d=o&&!n&&!a?rs(o,i):Ye(0),f=s.left+i.scrollLeft-u.x-d.x,h=s.top+i.scrollTop-u.y-d.y;return{x:f,y:h,width:s.width,height:s.height}}function Wn(e){return Le(e).position==="static"}function ss(e,t){if(!Ue(e)||Le(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ve(e)===r&&(r=r.ownerDocument.body),r}function is(e,t){const r=_e(e);if(Ar(e))return r;if(!Ue(e)){let o=ut(e);for(;o&&!Rt(o);){if(Ae(o)&&!Wn(o))return o;o=ut(o)}return r}let n=ss(e,t);for(;n&&hd(n)&&Wn(n);)n=ss(n,t);return n&&Rt(n)&&Wn(n)&&!Rn(n)?r:n||yd(e)||r}const Rd=async function(e){const t=this.getOffsetParent||is,r=this.getDimensions,n=await r(e.floating);return{reference:Od(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Td(e){return Le(e).direction==="rtl"}const Ad={convertOffsetParentRelativeRectToViewportRelativeRect:Nd,getDocumentElement:Ve,getClippingRect:_d,getOffsetParent:is,getElementRects:Rd,getClientRects:Sd,getDimensions:Dd,getScale:Tt,isElement:Ae,isRTL:Td};function ls(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ld(e,t){let r=null,n;const o=Ve(e);function a(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function s(i,u){i===void 0&&(i=!1),u===void 0&&(u=1),a();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:v}=c;if(i||t(),!h||!v)return;const b=Dr(f),p=Dr(o.clientWidth-(d+h)),y=Dr(o.clientHeight-(f+v)),x=Dr(d),C={rootMargin:-b+"px "+-p+"px "+-y+"px "+-x+"px",threshold:Ee(0,ct(1,u))||1};let N=!0;function k(P){const _=P[0].intersectionRatio;if(_!==u){if(!N)return s();_?s(!1,_):n=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!ls(c,e.getBoundingClientRect())&&s(),N=!1}try{r=new IntersectionObserver(k,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(k,C)}r.observe(e)}return s(!0),a}function Wd(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,c=Ln(e),d=o||a?[...c?sr(c):[],...sr(t)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const f=c&&i?Ld(c,r):null;let h=-1,v=null;s&&(v=new ResizeObserver(x=>{let[w]=x;w&&w.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=v)==null||C.observe(t)})),r()}),c&&!u&&v.observe(c),v.observe(t));let b,p=u?gt(e):null;u&&y();function y(){const x=gt(e);p&&!ls(p,x)&&r(),p=x,b=requestAnimationFrame(y)}return r(),()=>{var x;d.forEach(w=>{o&&w.removeEventListener("scroll",r),a&&w.removeEventListener("resize",r)}),f==null||f(),(x=v)==null||x.disconnect(),v=null,u&&cancelAnimationFrame(b)}}const Id=ld,Fd=cd,$d=ad,Bd=dd,Hd=sd,cs=od,Yd=ud,zd=(e,t,r)=>{const n=new Map,o={platform:Ad,...r},a={...o.platform,_c:n};return nd(e,t,{...o,platform:a})};var Vd=typeof document<"u",Ud=function(){},Ir=Vd?E.useLayoutEffect:Ud;function Fr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Fr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Fr(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function us(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ds(e,t){const r=us(e);return Math.round(t*r)/r}function In(e){const t=m.useRef(e);return Ir(()=>{t.current=e}),t}function qd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:u,open:c}=e,[d,f]=m.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,v]=m.useState(n);Fr(h,n)||v(n);const[b,p]=m.useState(null),[y,x]=m.useState(null),w=m.useCallback(S=>{S!==P.current&&(P.current=S,p(S))},[]),C=m.useCallback(S=>{S!==_.current&&(_.current=S,x(S))},[]),N=a||b,k=s||y,P=m.useRef(null),_=m.useRef(null),z=m.useRef(d),W=u!=null,F=In(u),V=In(o),L=In(c),U=m.useCallback(()=>{if(!P.current||!_.current)return;const S={placement:t,strategy:r,middleware:h};V.current&&(S.platform=V.current),zd(P.current,_.current,S).then(Z=>{const le={...Z,isPositioned:L.current!==!1};H.current&&!Fr(z.current,le)&&(z.current=le,Vo.flushSync(()=>{f(le)}))})},[h,t,r,V,L]);Ir(()=>{c===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,f(S=>({...S,isPositioned:!1})))},[c]);const H=m.useRef(!1);Ir(()=>(H.current=!0,()=>{H.current=!1}),[]),Ir(()=>{if(N&&(P.current=N),k&&(_.current=k),N&&k){if(F.current)return F.current(N,k,U);U()}},[N,k,U,F,W]);const J=m.useMemo(()=>({reference:P,floating:_,setReference:w,setFloating:C}),[w,C]),K=m.useMemo(()=>({reference:N,floating:k}),[N,k]),D=m.useMemo(()=>{const S={position:r,left:0,top:0};if(!K.floating)return S;const Z=ds(K.floating,d.x),le=ds(K.floating,d.y);return i?{...S,transform:"translate("+Z+"px, "+le+"px)",...us(K.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Z,top:le}},[r,i,K.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:U,refs:J,elements:K,floatingStyles:D}),[d,U,J,K,D])}const Xd=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?cs({element:n.current,padding:o}).fn(r):{}:n?cs({element:n,padding:o}).fn(r):{}}}},Gd=(e,t)=>({...Id(e),options:[e,t]}),Kd=(e,t)=>({...Fd(e),options:[e,t]}),Qd=(e,t)=>({...Yd(e),options:[e,t]}),Zd=(e,t)=>({...$d(e),options:[e,t]}),Jd=(e,t)=>({...Bd(e),options:[e,t]}),ef=(e,t)=>({...Hd(e),options:[e,t]}),tf=(e,t)=>({...Xd(e),options:[e,t]});var rf="Arrow",fs=m.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return l.jsx(ge.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});fs.displayName=rf;var nf=fs;function of(e){const[t,r]=m.useState(void 0);return Je(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const u=a.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,i=c.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Fn="Popper",[ms,hs]=Sr(Fn),[af,vs]=ms(Fn),ps=e=>{const{__scopePopper:t,children:r}=e,[n,o]=m.useState(null);return l.jsx(af,{scope:t,anchor:n,onAnchorChange:o,children:r})};ps.displayName=Fn;var gs="PopperAnchor",bs=m.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=vs(gs,r),s=m.useRef(null),i=xe(t,s),u=m.useRef(null);return m.useEffect(()=>{const c=u.current;u.current=(n==null?void 0:n.current)||s.current,c!==u.current&&a.onAnchorChange(u.current)}),n?null:l.jsx(ge.div,{...o,ref:i})});bs.displayName=gs;var $n="PopperContent",[sf,lf]=ms($n),ys=m.forwardRef((e,t)=>{var ee,de,ce,Re,on,br;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:b,...p}=e,y=vs($n,r),[x,w]=m.useState(null),C=xe(t,jt=>w(jt)),[N,k]=m.useState(null),P=of(N),_=(P==null?void 0:P.width)??0,z=(P==null?void 0:P.height)??0,W=n+(a!=="center"?"-"+a:""),F=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},V=Array.isArray(c)?c:[c],L=V.length>0,U={padding:F,boundary:V.filter(uf),altBoundary:L},{refs:H,floatingStyles:J,placement:K,isPositioned:D,middlewareData:S}=qd({strategy:"fixed",placement:W,whileElementsMounted:(...jt)=>Wd(...jt,{animationFrame:v==="always"}),elements:{reference:y.anchor},middleware:[Gd({mainAxis:o+z,alignmentAxis:s}),u&&Kd({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Qd():void 0,...U}),u&&Zd({...U}),Jd({...U,apply:({elements:jt,rects:an,availableWidth:Kt,availableHeight:Mt})=>{const{width:sn,height:ln}=an.reference,ot=jt.floating.style;ot.setProperty("--radix-popper-available-width",`${Kt}px`),ot.setProperty("--radix-popper-available-height",`${Mt}px`),ot.setProperty("--radix-popper-anchor-width",`${sn}px`),ot.setProperty("--radix-popper-anchor-height",`${ln}px`)}}),N&&tf({element:N,padding:i}),df({arrowWidth:_,arrowHeight:z}),h&&ef({strategy:"referenceHidden",...U})]}),[Z,le]=Cs(K),ie=Pe(b);Je(()=>{D&&(ie==null||ie())},[D,ie]);const M=(ee=S.arrow)==null?void 0:ee.x,$=(de=S.arrow)==null?void 0:de.y,q=((ce=S.arrow)==null?void 0:ce.centerOffset)!==0,[A,Q]=m.useState();return Je(()=>{x&&Q(window.getComputedStyle(x).zIndex)},[x]),l.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:D?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:A,"--radix-popper-transform-origin":[(Re=S.transformOrigin)==null?void 0:Re.x,(on=S.transformOrigin)==null?void 0:on.y].join(" "),...((br=S.hide)==null?void 0:br.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(sf,{scope:r,placedSide:Z,onArrowChange:k,arrowX:M,arrowY:$,shouldHideArrow:q,children:l.jsx(ge.div,{"data-side":Z,"data-align":le,...p,ref:C,style:{...p.style,animation:D?void 0:"none"}})})})});ys.displayName=$n;var xs="PopperArrow",cf={top:"bottom",right:"left",bottom:"top",left:"right"},ws=m.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=lf(xs,n),s=cf[a.placedSide];return l.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:l.jsx(nf,{...o,ref:r,style:{...o.style,display:"block"}})})});ws.displayName=xs;function uf(e){return e!==null}var df=e=>({name:"transformOrigin",options:e,fn(t){var y,x,w;const{placement:r,rects:n,middlewareData:o}=t,s=((y=o.arrow)==null?void 0:y.centerOffset)!==0,i=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,d]=Cs(r),f={start:"0%",center:"50%",end:"100%"}[d],h=(((x=o.arrow)==null?void 0:x.x)??0)+i/2,v=(((w=o.arrow)==null?void 0:w.y)??0)+u/2;let b="",p="";return c==="bottom"?(b=s?f:`${h}px`,p=`${-u}px`):c==="top"?(b=s?f:`${h}px`,p=`${n.floating.height+u}px`):c==="right"?(b=`${-u}px`,p=s?f:`${v}px`):c==="left"&&(b=`${n.floating.width+u}px`,p=s?f:`${v}px`),{data:{x:b,y:p}}}});function Cs(e){const[t,r="center"]=e.split("-");return[t,r]}var ff=ps,Ns=bs,mf=ys,hf=ws,vf="Portal",Bn=m.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,a]=m.useState(!1);Je(()=>a(!0),[]);const s=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Yo.createPortal(l.jsx(ge.div,{...n,ref:t}),s):null});Bn.displayName=vf;var pf=m[" useInsertionEffect ".trim().toString()]||Je;function Ss({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=gf({defaultProp:t,onChange:r}),i=e!==void 0,u=i?e:o;{const d=m.useRef(e!==void 0);m.useEffect(()=>{const f=d.current;f!==i&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,n])}const c=m.useCallback(d=>{var f;if(i){const h=bf(d)?d(e):d;h!==e&&((f=s.current)==null||f.call(s,h))}else a(d)},[i,e,a,s]);return[u,c]}function gf({defaultProp:e,onChange:t}){const[r,n]=m.useState(e),o=m.useRef(r),a=m.useRef(t);return pf(()=>{a.current=t},[t]),m.useEffect(()=>{var s;o.current!==r&&((s=a.current)==null||s.call(a,r),o.current=r)},[r,o]),[r,n,a]}function bf(e){return typeof e=="function"}var yf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},At=new WeakMap,$r=new WeakMap,Br={},Hn=0,js=function(e){return e&&(e.host||js(e.parentNode))},xf=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=js(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},wf=function(e,t,r,n){var o=xf(t,Array.isArray(e)?e:[e]);Br[r]||(Br[r]=new WeakMap);var a=Br[r],s=[],i=new Set,u=new Set(o),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};o.forEach(c);var d=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(h){if(i.has(h))d(h);else try{var v=h.getAttribute(n),b=v!==null&&v!=="false",p=(At.get(h)||0)+1,y=(a.get(h)||0)+1;At.set(h,p),a.set(h,y),s.push(h),p===1&&b&&$r.set(h,!0),y===1&&h.setAttribute(r,"true"),b||h.setAttribute(n,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return d(t),i.clear(),Hn++,function(){s.forEach(function(f){var h=At.get(f)-1,v=a.get(f)-1;At.set(f,h),a.set(f,v),h||($r.has(f)||f.removeAttribute(n),$r.delete(f)),v||f.removeAttribute(r)}),Hn--,Hn||(At=new WeakMap,At=new WeakMap,$r=new WeakMap,Br={})}},Ms=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=yf(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),wf(n,o,r,"aria-hidden")):function(){return null}},qe=function(){return qe=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},qe.apply(this,arguments)};function ks(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Cf(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Hr="right-scroll-bar-position",Yr="width-before-scroll-bar",Nf="with-scroll-bars-hidden",Sf="--removed-body-scroll-bar-size";function Yn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function jf(e,t){var r=E.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Mf=typeof window<"u"?m.useLayoutEffect:m.useEffect,Ps=new WeakMap;function kf(e,t){var r=jf(null,function(n){return e.forEach(function(o){return Yn(o,n)})});return Mf(function(){var n=Ps.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||Yn(i,null)}),a.forEach(function(i){o.has(i)||Yn(i,s)})}Ps.set(r,e)},[e]),r}function Pf(e){return e}function Ef(e,t){t===void 0&&(t=Pf);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var u=function(){var d=s;s=[],d.forEach(a)},c=function(){return Promise.resolve().then(u)};c(),r={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),r}}}};return o}function _f(e){e===void 0&&(e={});var t=Ef(null);return t.options=qe({async:!0,ssr:!1},e),t}var Es=function(e){var t=e.sideCar,r=ks(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return m.createElement(n,qe({},r))};Es.isSideCarExport=!0;function Df(e,t){return e.useMedium(t),Es}var _s=_f(),zn=function(){},zr=m.forwardRef(function(e,t){var r=m.useRef(null),n=m.useState({onScrollCapture:zn,onWheelCapture:zn,onTouchMoveCapture:zn}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,v=e.noRelative,b=e.noIsolation,p=e.inert,y=e.allowPinchZoom,x=e.as,w=x===void 0?"div":x,C=e.gapMode,N=ks(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=h,P=kf([r,t]),_=qe(qe({},N),o);return m.createElement(m.Fragment,null,d&&m.createElement(k,{sideCar:_s,removeScrollBar:c,shards:f,noRelative:v,noIsolation:b,inert:p,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:C}),s?m.cloneElement(m.Children.only(i),qe(qe({},_),{ref:P})):m.createElement(w,qe({},_,{className:u,ref:P}),i))});zr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zr.classNames={fullWidth:Yr,zeroRight:Hr};var Of=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Rf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Of();return t&&e.setAttribute("nonce",t),e}function Tf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Af(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Lf=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Rf())&&(Tf(t,r),Af(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Wf=function(){var e=Lf();return function(t,r){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ds=function(){var e=Wf(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},If={left:0,top:0,right:0,gap:0},Vn=function(e){return parseInt(e||"",10)||0},Ff=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Vn(r),Vn(n),Vn(o)]},$f=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return If;var t=Ff(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Bf=Ds(),Lt="data-scroll-locked",Hf=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
136
+ .`.concat(Nf,` {
137
+ overflow: hidden `).concat(n,`;
138
+ padding-right: `).concat(i,"px ").concat(n,`;
139
+ }
140
+ body[`).concat(Lt,`] {
141
+ overflow: hidden `).concat(n,`;
142
+ overscroll-behavior: contain;
143
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
144
+ padding-left: `.concat(o,`px;
145
+ padding-top: `).concat(a,`px;
146
+ padding-right: `).concat(s,`px;
147
+ margin-left:0;
148
+ margin-top:0;
149
+ margin-right: `).concat(i,"px ").concat(n,`;
150
+ `),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),`
151
+ }
152
+
153
+ .`).concat(Hr,` {
154
+ right: `).concat(i,"px ").concat(n,`;
155
+ }
156
+
157
+ .`).concat(Yr,` {
158
+ margin-right: `).concat(i,"px ").concat(n,`;
159
+ }
160
+
161
+ .`).concat(Hr," .").concat(Hr,` {
162
+ right: 0 `).concat(n,`;
163
+ }
164
+
165
+ .`).concat(Yr," .").concat(Yr,` {
166
+ margin-right: 0 `).concat(n,`;
167
+ }
168
+
169
+ body[`).concat(Lt,`] {
170
+ `).concat(Sf,": ").concat(i,`px;
171
+ }
172
+ `)},Os=function(){var e=parseInt(document.body.getAttribute(Lt)||"0",10);return isFinite(e)?e:0},Yf=function(){m.useEffect(function(){return document.body.setAttribute(Lt,(Os()+1).toString()),function(){var e=Os()-1;e<=0?document.body.removeAttribute(Lt):document.body.setAttribute(Lt,e.toString())}},[])},zf=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Yf();var a=m.useMemo(function(){return $f(o)},[o]);return m.createElement(Bf,{styles:Hf(a,!t,o,r?"":"!important")})},Un=!1;if(typeof window<"u")try{var Vr=Object.defineProperty({},"passive",{get:function(){return Un=!0,!0}});window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,Vr)}catch{Un=!1}var Wt=Un?{passive:!1}:!1,Vf=function(e){return e.tagName==="TEXTAREA"},Rs=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Vf(e)&&r[t]==="visible")},Uf=function(e){return Rs(e,"overflowY")},qf=function(e){return Rs(e,"overflowX")},Ts=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=As(e,n);if(o){var a=Ls(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Xf=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Gf=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},As=function(e,t){return e==="v"?Uf(t):qf(t)},Ls=function(e,t){return e==="v"?Xf(t):Gf(t)},Kf=function(e,t){return e==="h"&&t==="rtl"?-1:1},Qf=function(e,t,r,n,o){var a=Kf(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,u=t.contains(i),c=!1,d=s>0,f=0,h=0;do{if(!i)break;var v=Ls(e,i),b=v[0],p=v[1],y=v[2],x=p-y-a*b;(b||x)&&As(e,i)&&(f+=x,h+=b);var w=i.parentNode;i=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(d&&Math.abs(f)<1||!d&&Math.abs(h)<1)&&(c=!0),c},Ur=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ws=function(e){return[e.deltaX,e.deltaY]},Is=function(e){return e&&"current"in e?e.current:e},Zf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Jf=function(e){return`
173
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
174
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
175
+ `)},em=0,It=[];function tm(e){var t=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),o=m.useState(em++)[0],a=m.useState(Ds)[0],s=m.useRef(e);m.useEffect(function(){s.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Cf([e.lockRef.current],(e.shards||[]).map(Is),!0).filter(Boolean);return p.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=m.useCallback(function(p,y){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var x=Ur(p),w=r.current,C="deltaX"in p?p.deltaX:w[0]-x[0],N="deltaY"in p?p.deltaY:w[1]-x[1],k,P=p.target,_=Math.abs(C)>Math.abs(N)?"h":"v";if("touches"in p&&_==="h"&&P.type==="range")return!1;var z=window.getSelection(),W=z&&z.anchorNode,F=W?W===P||W.contains(P):!1;if(F)return!1;var V=Ts(_,P);if(!V)return!0;if(V?k=_:(k=_==="v"?"h":"v",V=Ts(_,P)),!V)return!1;if(!n.current&&"changedTouches"in p&&(C||N)&&(n.current=k),!k)return!0;var L=n.current||k;return Qf(L,y,p,L==="h"?C:N)},[]),u=m.useCallback(function(p){var y=p;if(!(!It.length||It[It.length-1]!==a)){var x="deltaY"in y?Ws(y):Ur(y),w=t.current.filter(function(k){return k.name===y.type&&(k.target===y.target||y.target===k.shadowParent)&&Zf(k.delta,x)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var C=(s.current.shards||[]).map(Is).filter(Boolean).filter(function(k){return k.contains(y.target)}),N=C.length>0?i(y,C[0]):!s.current.noIsolation;N&&y.cancelable&&y.preventDefault()}}},[]),c=m.useCallback(function(p,y,x,w){var C={name:p,delta:y,target:x,should:w,shadowParent:rm(x)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(N){return N!==C})},1)},[]),d=m.useCallback(function(p){r.current=Ur(p),n.current=void 0},[]),f=m.useCallback(function(p){c(p.type,Ws(p),p.target,i(p,e.lockRef.current))},[]),h=m.useCallback(function(p){c(p.type,Ur(p),p.target,i(p,e.lockRef.current))},[]);m.useEffect(function(){return It.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,Wt),document.addEventListener("touchmove",u,Wt),document.addEventListener("touchstart",d,Wt),function(){It=It.filter(function(p){return p!==a}),document.removeEventListener("wheel",u,Wt),document.removeEventListener("touchmove",u,Wt),document.removeEventListener("touchstart",d,Wt)}},[]);var v=e.removeScrollBar,b=e.inert;return m.createElement(m.Fragment,null,b?m.createElement(a,{styles:Jf(o)}):null,v?m.createElement(zf,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const nm=Df(_s,tm);var qn=m.forwardRef(function(e,t){return m.createElement(zr,qe({},e,{ref:t,sideCar:nm}))});qn.classNames=zr.classNames;var qr="Popover",[Fs]=Sr(qr,[hs]),ir=hs(),[om,dt]=Fs(qr),$s=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=ir(t),u=m.useRef(null),[c,d]=m.useState(!1),[f,h]=Ss({prop:n,defaultProp:o??!1,onChange:a,caller:qr});return l.jsx(ff,{...i,children:l.jsx(om,{scope:t,contentId:He(),triggerRef:u,open:f,onOpenChange:h,onOpenToggle:m.useCallback(()=>h(v=>!v),[h]),hasCustomAnchor:c,onCustomAnchorAdd:m.useCallback(()=>d(!0),[]),onCustomAnchorRemove:m.useCallback(()=>d(!1),[]),modal:s,children:r})})};$s.displayName=qr;var Bs="PopoverAnchor",am=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=dt(Bs,r),a=ir(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return m.useEffect(()=>(s(),()=>i()),[s,i]),l.jsx(Ns,{...a,...n,ref:t})});am.displayName=Bs;var Hs="PopoverTrigger",Ys=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=dt(Hs,r),a=ir(r),s=xe(t,o.triggerRef),i=l.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Xs(o.open),...n,ref:s,onClick:me(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:l.jsx(Ns,{asChild:!0,...a,children:i})});Ys.displayName=Hs;var Xn="PopoverPortal",[sm,im]=Fs(Xn,{forceMount:void 0}),zs=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=dt(Xn,t);return l.jsx(sm,{scope:t,forceMount:r,children:l.jsx($e,{present:r||a.open,children:l.jsx(Bn,{asChild:!0,container:o,children:n})})})};zs.displayName=Xn;var Ft="PopoverContent",Vs=m.forwardRef((e,t)=>{const r=im(Ft,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=dt(Ft,e.__scopePopover);return l.jsx($e,{present:n||a.open,children:a.modal?l.jsx(cm,{...o,ref:t}):l.jsx(um,{...o,ref:t})})});Vs.displayName=Ft;var lm=pn("PopoverContent.RemoveScroll"),cm=m.forwardRef((e,t)=>{const r=dt(Ft,e.__scopePopover),n=m.useRef(null),o=xe(t,n),a=m.useRef(!1);return m.useEffect(()=>{const s=n.current;if(s)return Ms(s)},[]),l.jsx(qn,{as:lm,allowPinchZoom:!0,children:l.jsx(Us,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,c=i.button===2||u;a.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),um=m.forwardRef((e,t)=>{const r=dt(Ft,e.__scopePopover),n=m.useRef(!1),o=m.useRef(!1);return l.jsx(Us,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((c=r.triggerRef.current)==null?void 0:c.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Us=m.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...f}=e,h=dt(Ft,r),v=ir(r);return Wa(),l.jsx(kn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:l.jsx(Nn,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:l.jsx(mf,{"data-state":Xs(h.open),role:"dialog",id:h.contentId,...v,...f,ref:t,style:{...f.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)"}})})})}),qs="PopoverClose",dm=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=dt(qs,r);return l.jsx(ge.button,{type:"button",...n,ref:t,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});dm.displayName=qs;var fm="PopoverArrow",mm=m.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ir(r);return l.jsx(hf,{...o,...n,ref:t})});mm.displayName=fm;function Xs(e){return e?"open":"closed"}var Gs=$s,Ks=Ys,Qs=zs,Gn=Vs;const bt=Gs,yt=Ks,ft=m.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},o)=>l.jsx(Qs,{children:l.jsx(Gn,{ref:o,align:t,sideOffset:r,className:R("z-50 w-72 rounded-md border border-border_primary 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",e),...n})}));ft.displayName=Gn.displayName;var Zs=1,hm=.9,vm=.8,pm=.17,Kn=.1,Qn=.999,gm=.9999,bm=.99,ym=/[\\\/_+.#"@\[\(\{&]/,xm=/[\\\/_+.#"@\[\(\{&]/g,wm=/[\s-]/,Js=/[\s-]/g;function Zn(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?Zs:bm;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var u=n.charAt(a),c=r.indexOf(u,o),d=0,f,h,v,b;c>=0;)f=Zn(e,t,r,n,c+1,a+1,s),f>d&&(c===o?f*=Zs:ym.test(e.charAt(c-1))?(f*=vm,v=e.slice(o,c-1).match(xm),v&&o>0&&(f*=Math.pow(Qn,v.length))):wm.test(e.charAt(c-1))?(f*=hm,b=e.slice(o,c-1).match(Js),b&&o>0&&(f*=Math.pow(Qn,b.length))):(f*=pm,o>0&&(f*=Math.pow(Qn,c-o))),e.charAt(c)!==t.charAt(a)&&(f*=gm)),(f<Kn&&r.charAt(c-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(c-1)!==n.charAt(a))&&(h=Zn(e,t,r,n,c+1,a+2,s),h*Kn>f&&(f=h*Kn)),f>d&&(d=f),c=r.indexOf(u,c+1);return s[i]=d,d}function ei(e){return e.toLowerCase().replace(Js," ")}function Cm(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Zn(e,t,ei(e),ei(t),0,0,{})}var Xr="Dialog",[ti]=Sr(Xr),[Nm,We]=ti(Xr),ri=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=m.useRef(null),u=m.useRef(null),[c,d]=Ss({prop:n,defaultProp:o??!1,onChange:a,caller:Xr});return l.jsx(Nm,{scope:t,triggerRef:i,contentRef:u,contentId:He(),titleId:He(),descriptionId:He(),open:c,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(f=>!f),[d]),modal:s,children:r})};ri.displayName=Xr;var ni="DialogTrigger",Sm=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(ni,r),a=xe(t,o.triggerRef);return l.jsx(ge.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":to(o.open),...n,ref:a,onClick:me(e.onClick,o.onOpenToggle)})});Sm.displayName=ni;var Jn="DialogPortal",[jm,oi]=ti(Jn,{forceMount:void 0}),ai=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=We(Jn,t);return l.jsx(jm,{scope:t,forceMount:r,children:m.Children.map(n,s=>l.jsx($e,{present:r||a.open,children:l.jsx(Bn,{asChild:!0,container:o,children:s})}))})};ai.displayName=Jn;var Gr="DialogOverlay",si=m.forwardRef((e,t)=>{const r=oi(Gr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=We(Gr,e.__scopeDialog);return a.modal?l.jsx($e,{present:n||a.open,children:l.jsx(km,{...o,ref:t})}):null});si.displayName=Gr;var Mm=pn("DialogOverlay.RemoveScroll"),km=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(Gr,r);return l.jsx(qn,{as:Mm,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(ge.div,{"data-state":to(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),xt="DialogContent",ii=m.forwardRef((e,t)=>{const r=oi(xt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=We(xt,e.__scopeDialog);return l.jsx($e,{present:n||a.open,children:a.modal?l.jsx(Pm,{...o,ref:t}):l.jsx(Em,{...o,ref:t})})});ii.displayName=xt;var Pm=m.forwardRef((e,t)=>{const r=We(xt,e.__scopeDialog),n=m.useRef(null),o=xe(t,r.contentRef,n);return m.useEffect(()=>{const a=n.current;if(a)return Ms(a)},[]),l.jsx(li,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:me(e.onFocusOutside,a=>a.preventDefault())})}),Em=m.forwardRef((e,t)=>{const r=We(xt,e.__scopeDialog),n=m.useRef(!1),o=m.useRef(!1);return l.jsx(li,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((c=r.triggerRef.current)==null?void 0:c.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),li=m.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=We(xt,r),u=m.useRef(null),c=xe(t,u);return Wa(),l.jsxs(l.Fragment,{children:[l.jsx(kn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:l.jsx(Nn,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":to(i.open),...s,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(Rm,{titleId:i.titleId}),l.jsx(Am,{contentRef:u,descriptionId:i.descriptionId})]})]})}),eo="DialogTitle",_m=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(eo,r);return l.jsx(ge.h2,{id:o.titleId,...n,ref:t})});_m.displayName=eo;var ci="DialogDescription",Dm=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(ci,r);return l.jsx(ge.p,{id:o.descriptionId,...n,ref:t})});Dm.displayName=ci;var ui="DialogClose",Om=m.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=We(ui,r);return l.jsx(ge.button,{type:"button",...n,ref:t,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});Om.displayName=ui;function to(e){return e?"open":"closed"}var di="DialogTitleWarning",[_b,fi]=cu(di,{contentName:xt,titleName:eo,docsSlug:"dialog"}),Rm=({titleId:e})=>{const t=fi(di),r=`\`${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 m.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Tm="DialogDescriptionWarning",Am=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fi(Tm).contentName}}.`;return m.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},mi=ri,hi=ai,vi=si,pi=ii,Lm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mt=Lm.reduce((e,t)=>{const r=ca(`Primitive.${t}`),n=m.forwardRef((o,a)=>{const{asChild:s,...i}=o,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(u,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),lr='[cmdk-group=""]',ro='[cmdk-group-items=""]',Wm='[cmdk-group-heading=""]',gi='[cmdk-item=""]',bi=`${gi}:not([aria-disabled="true"])`,no="cmdk-item-select",$t="data-value",Im=(e,t,r)=>Cm(e,t,r),yi=m.createContext(void 0),cr=()=>m.useContext(yi),xi=m.createContext(void 0),oo=()=>m.useContext(xi),wi=m.createContext(void 0),Ci=m.forwardRef((e,t)=>{let r=Bt(()=>{var M,$;return{search:"",value:($=(M=e.value)!=null?M:e.defaultValue)!=null?$:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Bt(()=>new Set),o=Bt(()=>new Map),a=Bt(()=>new Map),s=Bt(()=>new Set),i=Ni(e),{label:u,children:c,value:d,onValueChange:f,filter:h,shouldFilter:v,loop:b,disablePointerSelection:p=!1,vimBindings:y=!0,...x}=e,w=He(),C=He(),N=He(),k=m.useRef(null),P=Gm();wt(()=>{if(d!==void 0){let M=d.trim();r.current.value=M,_.emit()}},[d]),wt(()=>{P(6,U)},[]);let _=m.useMemo(()=>({subscribe:M=>(s.current.add(M),()=>s.current.delete(M)),snapshot:()=>r.current,setState:(M,$,q)=>{var A,Q,ee,de;if(!Object.is(r.current[M],$)){if(r.current[M]=$,M==="search")L(),F(),P(1,V);else if(M==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ce=document.getElementById(N);ce?ce.focus():(A=document.getElementById(w))==null||A.focus()}if(P(7,()=>{var ce;r.current.selectedItemId=(ce=H())==null?void 0:ce.id,_.emit()}),q||P(5,U),((Q=i.current)==null?void 0:Q.value)!==void 0){let ce=$??"";(de=(ee=i.current).onValueChange)==null||de.call(ee,ce);return}}_.emit()}},emit:()=>{s.current.forEach(M=>M())}}),[]),z=m.useMemo(()=>({value:(M,$,q)=>{var A;$!==((A=a.current.get(M))==null?void 0:A.value)&&(a.current.set(M,{value:$,keywords:q}),r.current.filtered.items.set(M,W($,q)),P(2,()=>{F(),_.emit()}))},item:(M,$)=>(n.current.add(M),$&&(o.current.has($)?o.current.get($).add(M):o.current.set($,new Set([M]))),P(3,()=>{L(),F(),r.current.value||V(),_.emit()}),()=>{a.current.delete(M),n.current.delete(M),r.current.filtered.items.delete(M);let q=H();P(4,()=>{L(),(q==null?void 0:q.getAttribute("id"))===M&&V(),_.emit()})}),group:M=>(o.current.has(M)||o.current.set(M,new Set),()=>{a.current.delete(M),o.current.delete(M)}),filter:()=>i.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:w,inputId:N,labelId:C,listInnerRef:k}),[]);function W(M,$){var q,A;let Q=(A=(q=i.current)==null?void 0:q.filter)!=null?A:Im;return M?Q(M,r.current.search,$):0}function F(){if(!r.current.search||i.current.shouldFilter===!1)return;let M=r.current.filtered.items,$=[];r.current.filtered.groups.forEach(A=>{let Q=o.current.get(A),ee=0;Q.forEach(de=>{let ce=M.get(de);ee=Math.max(ce,ee)}),$.push([A,ee])});let q=k.current;J().sort((A,Q)=>{var ee,de;let ce=A.getAttribute("id"),Re=Q.getAttribute("id");return((ee=M.get(Re))!=null?ee:0)-((de=M.get(ce))!=null?de:0)}).forEach(A=>{let Q=A.closest(ro);Q?Q.appendChild(A.parentElement===Q?A:A.closest(`${ro} > *`)):q.appendChild(A.parentElement===q?A:A.closest(`${ro} > *`))}),$.sort((A,Q)=>Q[1]-A[1]).forEach(A=>{var Q;let ee=(Q=k.current)==null?void 0:Q.querySelector(`${lr}[${$t}="${encodeURIComponent(A[0])}"]`);ee==null||ee.parentElement.appendChild(ee)})}function V(){let M=J().find(q=>q.getAttribute("aria-disabled")!=="true"),$=M==null?void 0:M.getAttribute($t);_.setState("value",$||void 0)}function L(){var M,$,q,A;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let Q=0;for(let ee of n.current){let de=($=(M=a.current.get(ee))==null?void 0:M.value)!=null?$:"",ce=(A=(q=a.current.get(ee))==null?void 0:q.keywords)!=null?A:[],Re=W(de,ce);r.current.filtered.items.set(ee,Re),Re>0&&Q++}for(let[ee,de]of o.current)for(let ce of de)if(r.current.filtered.items.get(ce)>0){r.current.filtered.groups.add(ee);break}r.current.filtered.count=Q}function U(){var M,$,q;let A=H();A&&(((M=A.parentElement)==null?void 0:M.firstChild)===A&&((q=($=A.closest(lr))==null?void 0:$.querySelector(Wm))==null||q.scrollIntoView({block:"nearest"})),A.scrollIntoView({block:"nearest"}))}function H(){var M;return(M=k.current)==null?void 0:M.querySelector(`${gi}[aria-selected="true"]`)}function J(){var M;return Array.from(((M=k.current)==null?void 0:M.querySelectorAll(bi))||[])}function K(M){let $=J()[M];$&&_.setState("value",$.getAttribute($t))}function D(M){var $;let q=H(),A=J(),Q=A.findIndex(de=>de===q),ee=A[Q+M];($=i.current)!=null&&$.loop&&(ee=Q+M<0?A[A.length-1]:Q+M===A.length?A[0]:A[Q+M]),ee&&_.setState("value",ee.getAttribute($t))}function S(M){let $=H(),q=$==null?void 0:$.closest(lr),A;for(;q&&!A;)q=M>0?qm(q,lr):Xm(q,lr),A=q==null?void 0:q.querySelector(bi);A?_.setState("value",A.getAttribute($t)):D(M)}let Z=()=>K(J().length-1),le=M=>{M.preventDefault(),M.metaKey?Z():M.altKey?S(1):D(1)},ie=M=>{M.preventDefault(),M.metaKey?K(0):M.altKey?S(-1):D(-1)};return m.createElement(mt.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:M=>{var $;($=x.onKeyDown)==null||$.call(x,M);let q=M.nativeEvent.isComposing||M.keyCode===229;if(!(M.defaultPrevented||q))switch(M.key){case"n":case"j":{y&&M.ctrlKey&&le(M);break}case"ArrowDown":{le(M);break}case"p":case"k":{y&&M.ctrlKey&&ie(M);break}case"ArrowUp":{ie(M);break}case"Home":{M.preventDefault(),K(0);break}case"End":{M.preventDefault(),Z();break}case"Enter":{M.preventDefault();let A=H();if(A){let Q=new Event(no);A.dispatchEvent(Q)}}}}},m.createElement("label",{"cmdk-label":"",htmlFor:z.inputId,id:z.labelId,style:Qm},u),Kr(e,M=>m.createElement(xi.Provider,{value:_},m.createElement(yi.Provider,{value:z},M))))}),Fm=m.forwardRef((e,t)=>{var r,n;let o=He(),a=m.useRef(null),s=m.useContext(wi),i=cr(),u=Ni(e),c=(n=(r=u.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;wt(()=>{if(!c)return i.item(o,s==null?void 0:s.id)},[c]);let d=Si(o,a,[e.value,e.children,a],e.keywords),f=oo(),h=ht(P=>P.value&&P.value===d.current),v=ht(P=>c||i.filter()===!1?!0:P.search?P.filtered.items.get(o)>0:!0);m.useEffect(()=>{let P=a.current;if(!(!P||e.disabled))return P.addEventListener(no,b),()=>P.removeEventListener(no,b)},[v,e.onSelect,e.disabled]);function b(){var P,_;p(),(_=(P=u.current).onSelect)==null||_.call(P,d.current)}function p(){f.setState("value",d.current,!0)}if(!v)return null;let{disabled:y,value:x,onSelect:w,forceMount:C,keywords:N,...k}=e;return m.createElement(mt.div,{ref:it(a,t),...k,id:o,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!h,"data-disabled":!!y,"data-selected":!!h,onPointerMove:y||i.getDisablePointerSelection()?void 0:p,onClick:y?void 0:b},e.children)}),$m=m.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=He(),i=m.useRef(null),u=m.useRef(null),c=He(),d=cr(),f=ht(v=>o||d.filter()===!1?!0:v.search?v.filtered.groups.has(s):!0);wt(()=>d.group(s),[]),Si(s,i,[e.value,e.heading,u]);let h=m.useMemo(()=>({id:s,forceMount:o}),[o]);return m.createElement(mt.div,{ref:it(i,t),...a,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},r&&m.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),Kr(e,v=>m.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},m.createElement(wi.Provider,{value:h},v))))}),Bm=m.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=m.useRef(null),a=ht(s=>!s.search);return!r&&!a?null:m.createElement(mt.div,{ref:it(o,t),...n,"cmdk-separator":"",role:"separator"})}),Hm=m.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=oo(),s=ht(c=>c.search),i=ht(c=>c.selectedItemId),u=cr();return m.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),m.createElement(mt.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":i,id:u.inputId,type:"text",value:o?e.value:s,onChange:c=>{o||a.setState("search",c.target.value),r==null||r(c.target.value)}})}),Ym=m.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=m.useRef(null),s=m.useRef(null),i=ht(c=>c.selectedItemId),u=cr();return m.useEffect(()=>{if(s.current&&a.current){let c=s.current,d=a.current,f,h=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let v=c.offsetHeight;d.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return h.observe(c),()=>{cancelAnimationFrame(f),h.unobserve(c)}}},[]),m.createElement(mt.div,{ref:it(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:u.listId},Kr(e,c=>m.createElement("div",{ref:it(s,u.listInnerRef),"cmdk-list-sizer":""},c)))}),zm=m.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...i}=e;return m.createElement(mi,{open:r,onOpenChange:n},m.createElement(hi,{container:s},m.createElement(vi,{"cmdk-overlay":"",className:o}),m.createElement(pi,{"aria-label":e.label,"cmdk-dialog":"",className:a},m.createElement(Ci,{ref:t,...i}))))}),Vm=m.forwardRef((e,t)=>ht(r=>r.filtered.count===0)?m.createElement(mt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Um=m.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return m.createElement(mt.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Kr(e,s=>m.createElement("div",{"aria-hidden":!0},s)))}),Se=Object.assign(Ci,{List:Ym,Item:Fm,Input:Hm,Group:$m,Separator:Bm,Dialog:zm,Empty:Vm,Loading:Um});function qm(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Xm(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Ni(e){let t=m.useRef(e);return wt(()=>{t.current=e}),t}var wt=typeof window>"u"?m.useEffect:m.useLayoutEffect;function Bt(e){let t=m.useRef();return t.current===void 0&&(t.current=e()),t}function ht(e){let t=oo(),r=()=>e(t.snapshot());return m.useSyncExternalStore(t.subscribe,r,r)}function Si(e,t,r,n=[]){let o=m.useRef(),a=cr();return wt(()=>{var s;let i=(()=>{var c;for(let d of r){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(c=d.current.textContent)==null?void 0:c.trim():o.current}})(),u=n.map(c=>c.trim());a.value(e,i,u),(s=t.current)==null||s.setAttribute($t,i),o.current=i}),o}var Gm=()=>{let[e,t]=m.useState(),r=Bt(()=>new Map);return wt(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function Km(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Kr({asChild:e,children:t},r){return e&&m.isValidElement(t)?m.cloneElement(Km(t),{ref:t.ref},r(t.props.children)):r(t)}var Qm={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Ht=m.forwardRef(({className:e,...t},r)=>l.jsx(Se,{ref:r,className:R("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Ht.displayName=Se.displayName;const Yt=m.forwardRef(({className:e,...t},r)=>l.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[l.jsx(vn,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),l.jsx(Se.Input,{ref:r,className:R("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Yt.displayName=Se.Input.displayName;const ji=m.forwardRef(({className:e,...t},r)=>l.jsx(Se.List,{ref:r,className:R("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));ji.displayName=Se.List.displayName;const zt=m.forwardRef((e,t)=>l.jsx(Se.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));zt.displayName=Se.Empty.displayName;const Vt=m.forwardRef(({className:e,...t},r)=>l.jsx(Se.Group,{ref:r,className:R("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Vt.displayName=Se.Group.displayName;const Mi=m.forwardRef(({className:e,...t},r)=>l.jsx(Se.Separator,{ref:r,className:R("-mx-1 h-px bg-border",e),...t}));Mi.displayName=Se.Separator.displayName;const Ct=m.forwardRef(({className:e,...t},r)=>l.jsx(Se.Item,{ref:r,className:R("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",e),...t}));Ct.displayName=Se.Item.displayName;const ki=({className:e,...t})=>l.jsx("span",{className:R("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});ki.displayName="MriCommandShortcut";function Zm({options:e,value:t,onChange:r,searchPlaceholder:n="Search...",emptyMessage:o="No results found.",className:a,disabled:s,size:i="default",error:u,clearable:c=!1}){const[d,f]=E.useState(!1);return l.jsxs(bt,{open:d,onOpenChange:f,children:[l.jsx(yt,{asChild:!0,children:l.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[l.jsx(pe,{variant:"ghost",size:i==="sm"?"sm":"icon",disabled:s,"aria-expanded":d,className:R("aspect-square p-0 border rounded-md bg-background/50 backdrop-blur-sm hover:bg-accent/50 text-muted-foreground hover:text-foreground transition-all duration-300 shadow-sm",u?"border-destructive text-destructive":"border-input",i==="default"&&"!h-[42px] !w-[42px]",i==="sm"&&"!h-8 !w-8",a),children:l.jsx(vn,{className:"h-4 w-4"})}),typeof u=="string"&&l.jsx("p",{className:"text-[10px] font-medium text-destructive animate-in fade-in slide-in-from-top-1 whitespace-nowrap",children:u})]})}),l.jsx(ft,{className:"w-[200px] p-0 border-border bg-popover",align:"start",children:l.jsxs(Ht,{className:"bg-transparent",children:[l.jsx(Yt,{placeholder:n,className:"h-9"}),l.jsx(zt,{children:o}),l.jsx(Vt,{className:"max-h-60 overflow-auto p-1",children:e.map(h=>l.jsxs(Ct,{value:h.label,onSelect:()=>{const v=String(h.value);c&&String(t)===v?r(""):r(v),f(!1)},className:"aria-selected:bg-accent aria-selected:text-accent-foreground rounded-md cursor-pointer",children:[l.jsx(nr,{className:R("mr-2 h-4 w-4 text-primary",String(t)===String(h.value)?"opacity-100":"opacity-0")}),l.jsx("span",{className:"truncate",children:h.label})]},h.value))})]})})]})}function ao({children:e,onClose:t,className:r}){return E.useEffect(()=>{try{document.body.dataset.psModalOpen="true"}catch{}return()=>{try{delete document.body.dataset.psModalOpen}catch{}}},[]),l.jsx(mi,{open:!0,onOpenChange:n=>{n||t==null||t()},children:l.jsxs(hi,{children:[l.jsx(vi,{className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),l.jsx(pi,{className:R("fixed left-[50%] top-[50%] z-50 grid w-full max-w-sm translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-card p-6 shadow-2xl 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%] rounded-xl outline-none",r),children:e})]})})}function Jm({title:e,children:t,onClose:r,className:n}){return l.jsxs(ao,{onClose:r,className:n,children:[l.jsxs("div",{className:"flex items-center justify-between mb-6",children:[l.jsx("h3",{className:"text-xl font-bold tracking-tight text-foreground",children:e}),l.jsx("button",{onClick:r,className:"text-muted-foreground hover:text-foreground transition-colors",children:l.jsx(fa,{className:"w-5 h-5"})})]}),l.jsx("div",{children:t})]})}function eh({options:e,value:t,onChange:r,placeholder:n="Select...",searchPlaceholder:o="Search...",emptyMessage:a="No results found.",className:s,disabled:i,size:u="default",isLoading:c=!1,error:d,clearable:f=!1}){const[h,v]=E.useState(!1),b=e.find(p=>String(p.value)===String(t));return l.jsxs(bt,{open:h,onOpenChange:v,children:[l.jsx(yt,{asChild:!0,children:l.jsxs("div",{className:"w-full space-y-1",children:[l.jsxs(pe,{variant:"outline",role:"combobox",disabled:i||c,isLoading:c,"aria-expanded":h,size:u,className:R("w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground",d&&"border-destructive focus:ring-destructive",s),children:[l.jsx("span",{className:"truncate",children:b?b.label:n}),l.jsx(hn,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]}),typeof d=="string"&&l.jsx("p",{className:"text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1",children:d})]})}),l.jsx(ft,{className:"w-[--radix-popover-trigger-width] p-0 border-border bg-popover z-50",children:l.jsxs(Ht,{className:"bg-transparent text-popover-foreground",children:[l.jsx(Yt,{placeholder:o,className:"h-9"}),l.jsx(zt,{children:a}),l.jsx(Vt,{className:"max-h-60 overflow-auto p-1",children:e.map(p=>l.jsxs(Ct,{value:p.label,onSelect:()=>{const y=String(p.value);f&&String(t)===y?r(""):r(y),v(!1)},className:"aria-selected:bg-accent aria-selected:text-accent-foreground rounded-md cursor-pointer",children:[l.jsx(nr,{className:R("mr-2 h-4 w-4 text-primary",String(t)===String(p.value)?"opacity-100":"opacity-0")}),l.jsx("span",{className:"truncate",children:p.label})]},p.value))})]})})]})}var th=(e,t,r,n,o,a,s,i)=>{let u=document.documentElement,c=["light","dark"];function d(v){(Array.isArray(e)?e:[e]).forEach(b=>{let p=b==="class",y=p&&a?o.map(x=>a[x]||x):o;p?(u.classList.remove(...y),u.classList.add(a&&a[v]?a[v]:v)):u.setAttribute(b,v)}),f(v)}function f(v){i&&c.includes(v)&&(u.style.colorScheme=v)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)d(n);else try{let v=localStorage.getItem(t)||r,b=s&&v==="system"?h():v;d(b)}catch{}},rh=m.createContext(void 0),nh={setTheme:e=>{},themes:[]},oh=()=>{var e;return(e=m.useContext(rh))!=null?e:nh};m.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:a,value:s,themes:i,nonce:u,scriptProps:c})=>{let d=JSON.stringify([r,t,a,e,i,s,n,o]).slice(1,-1);return m.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(${th.toString()})(${d})`}})});const ah=({themeLabel:e="Tema",themeIconLabel:t="Alterar tema",lightLabel:r="Claro",darkLabel:n="Escuro",systemLabel:o="Sistema"})=>{const{theme:a,setTheme:s}=oh(),[i,u]=E.useState(!1),c=E.useRef(null);E.useEffect(()=>{const f=h=>{c.current&&!c.current.contains(h.target)&&u(!1)};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[]);const d=[{value:"light",icon:$c,label:r},{value:"dark",icon:Ic,label:n},{value:"system",icon:Ac,label:o}];return l.jsx("div",{ref:c,className:R("flex items-center gap-1 p-1 border border-input rounded-md bg-background/50 backdrop-blur-sm transition-all duration-300 ease-in-out overflow-hidden shadow-sm",i?"w-[114px] bg-background":"w-[42px] cursor-pointer hover:bg-accent/50"),onClick:()=>{i||u(!0)},title:i?e:t,children:d.map(f=>{const h=a===f.value;return l.jsx(pe,{variant:"ghost",size:"icon",className:R("h-8 w-8 rounded-md transition-all duration-300 shrink-0",h?"bg-primary/10 text-primary hover:bg-primary/20":"text-muted-foreground hover:text-foreground"),style:{order:h?-1:0},onClick:v=>{v.stopPropagation(),i?(s(f.value),u(!1)):u(!0)},title:f.label,children:l.jsx(f.icon,{className:"h-4 w-4"})},f.value)})})},sh=Array.from({length:24},(e,t)=>t),ih=Array.from({length:60},(e,t)=>t),lh=e=>{if(!e)return[0,0];const t=e.split(":");if(t.length!==2)return[0,0];const[r,n]=t,o=Number(r),a=Number(n);return!Number.isFinite(o)||!Number.isFinite(a)||o<0||o>23||a<0||a>59?[0,0]:[o,a]};function ch({value:e,onChange:t,disabled:r,hourLabel:n="Hora",minuteLabel:o="Minuto",size:a="default",error:s}){const[i,u]=m.useState(!1),[c,d]=lh(e),f=sh,h=ih,v=(b,p)=>{let y=c,x=d;b==="hour"&&(y=p),b==="minute"&&(x=p);const w=y.toString().padStart(2,"0"),C=x.toString().padStart(2,"0");t(`${w}:${C}`)};return l.jsxs(bt,{open:i,onOpenChange:u,children:[l.jsx(yt,{asChild:!0,children:l.jsxs("div",{className:"w-full space-y-1",children:[l.jsx(pe,{variant:"outline",size:a,className:R("w-full min-w-[120px] justify-start pl-3 text-left font-normal",!e&&"text-muted-foreground",s&&"border-destructive focus:ring-destructive"),disabled:r,children:l.jsxs("div",{className:"flex items-center w-full gap-2",children:[l.jsx("span",{children:e||"00:00"}),l.jsx(Rc,{className:"ml-auto h-4 w-4 opacity-50"})]})}),typeof s=="string"&&l.jsx("p",{className:"text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1",children:s})]})}),l.jsx(ft,{className:"w-auto p-0 bg-card border-border",align:"start",children:l.jsxs("div",{className:"flex h-[300px] divide-x divide-border",children:[l.jsxs("div",{className:"flex flex-col",children:[l.jsx("div",{className:"p-2 text-center font-medium bg-muted/50 text-xs",children:n}),l.jsx(Er,{className:"h-full w-[80px]",children:l.jsx("div",{className:"p-2 space-y-1",children:f.map(b=>l.jsx(pe,{variant:"ghost",size:"sm",className:R("w-full justify-center text-sm",c===b?"bg-primary text-primary-foreground hover:bg-primary/90":"text-muted-foreground hover:text-foreground"),onClick:()=>v("hour",b),children:b.toString().padStart(2,"0")},b))})})]}),l.jsxs("div",{className:"flex flex-col",children:[l.jsx("div",{className:"p-2 text-center font-medium bg-muted/50 text-xs",children:o}),l.jsx(Er,{className:"h-full w-[80px]",children:l.jsx("div",{className:"p-2 space-y-1",children:h.map(b=>l.jsx(pe,{variant:"ghost",size:"sm",className:R("w-full justify-center text-sm",d===b?"bg-primary text-primary-foreground hover:bg-primary/90":"text-muted-foreground hover:text-foreground"),onClick:()=>v("minute",b),children:b.toString().padStart(2,"0")},b))})})]})]})})]})}function uh({text:e,className:t,iconSize:r=4,variant:n="ghost"}){const o=a=>{a.stopPropagation(),navigator.clipboard.writeText(e)};return l.jsx(pe,{size:"sm",variant:n,className:R("p-0 text-muted-foreground hover:text-foreground",t),onClick:o,title:"Copy to clipboard",children:l.jsx(Tc,{className:R(`w-${r} h-${r}`)})})}function dh({label:e,amount:t,amountColorClass:r="text-foreground",onAdd:n,onRemove:o}){return l.jsxs("div",{className:"bg-card border border-border p-4 rounded-lg flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-xs text-muted-foreground font-bold uppercase",children:e}),l.jsx("div",{className:R("text-xl font-bold font-mono",r),children:t})]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsx(pe,{size:"icon",variant:"ghost",className:"h-7 w-7 rounded bg-muted hover:bg-muted/80",onClick:n,children:l.jsx(wr,{className:"w-3.5 h-3.5"})}),l.jsx(pe,{size:"icon",variant:"ghost",className:"h-7 w-7 rounded bg-muted hover:bg-muted/80",onClick:o,children:l.jsx(Wc,{className:"w-3.5 h-3.5"})})]})]})}const fh=({id:e="",label:t,isFavorite:r=!1,isProcessing:n=!1,onClick:o,onToggleFavorite:a})=>l.jsxs("div",{className:R("group relative bg-card border border-border rounded-xl hover:border-primary/50 hover:bg-muted transition-all cursor-pointer overflow-hidden p-4 flex flex-col justify-between min-h-[100px]",n&&"opacity-50 pointer-events-none"),onClick:o,children:[l.jsxs("div",{className:"flex justify-between items-start mb-2",children:[l.jsx("div",{className:"p-2 rounded-lg bg-muted border border-border text-muted-foreground group-hover:text-primary group-hover:border-primary/20 transition-colors",children:l.jsx(Bc,{className:"w-5 h-5"})}),a&&l.jsx("div",{role:"button",tabIndex:0,className:"p-1 text-muted-foreground hover:text-yellow-400 cursor-pointer transition-colors z-10",onClick:s=>{s.stopPropagation(),a(e)},children:l.jsx(da,{className:R("h-4 w-4",r&&"fill-yellow-400 text-yellow-400")})})]}),l.jsx("span",{className:"font-bold text-foreground/90 group-hover:text-foreground transition-colors",children:t}),l.jsx("div",{className:"absolute inset-x-0 bottom-0 h-1 bg-gradient-to-r from-transparent via-primary/50 to-transparent opacity-0 group-hover:opacity-100 transition-opacity"})]}),mh=({id:e="",label:t,isFavorite:r=!1,dropdownItems:n=[],onToggleFavorite:o})=>{const[a,s]=E.useState(!1),[i,u]=E.useState({});return l.jsxs("div",{className:R("bg-card border border-border rounded-xl transition-all overflow-hidden group",a?"border-primary/50 ring-1 ring-primary/20":"hover:border-primary/50 hover:bg-muted"),children:[l.jsxs("div",{className:"w-full p-4 cursor-pointer flex flex-col gap-2 relative min-h-[100px]",onClick:()=>s(!a),children:[l.jsxs("div",{className:"flex justify-between items-start",children:[l.jsx("div",{className:R("p-2 rounded-lg border border-border transition-colors",a?"bg-muted border-primary/50 text-foreground":"bg-muted/50 text-muted-foreground group-hover:border-primary/30 group-hover:text-primary"),children:l.jsx(Fc,{className:"w-5 h-5"})}),l.jsxs("div",{className:"flex items-center gap-2",children:[o&&l.jsx("div",{role:"button",tabIndex:0,className:"p-1 text-muted-foreground hover:text-yellow-400 cursor-pointer transition-colors",onClick:c=>{c.stopPropagation(),o(e)},children:l.jsx(da,{className:R("h-4 w-4",r&&"fill-yellow-400 text-yellow-400")})}),l.jsx("div",{className:"text-muted-foreground",children:a?l.jsx(Oc,{className:"h-5 w-5"}):l.jsx(mn,{className:"h-5 w-5"})})]})]}),l.jsx("span",{className:"font-bold text-card-foreground mt-auto",children:t}),a&&l.jsx("div",{className:"absolute inset-x-0 bottom-0 h-[1px] bg-border"})]}),a&&l.jsx("div",{className:"p-4 space-y-4 bg-muted/30",children:n.map((c,d)=>{if(c.option==="text")return l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("label",{className:"text-xs font-medium text-muted-foreground ml-1",children:c.label}),l.jsx(Cr,{placeholder:c.placeholder||c.label,className:"bg-background border-border focus:border-ring h-10",onChange:f=>{c.onTextChange&&c.onTextChange(c.id,f.target.value)}})]},d);if(c.option==="dropdown"){const f=c.options||[],h=c.id;return l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("label",{className:"text-xs font-medium text-muted-foreground ml-1",children:c.label}),l.jsxs(bt,{open:!!i[h],onOpenChange:v=>u(b=>({...b,[h]:v})),children:[l.jsx(yt,{asChild:!0,children:l.jsxs(pe,{variant:"outline",role:"combobox",className:"w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground h-10",children:[l.jsx("span",{className:"truncate",children:c.selectedLabel||c.selectPlaceholder||"Select..."}),l.jsx(hn,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),l.jsx(ft,{className:"w-[300px] p-0 border-border bg-popover",children:l.jsxs(Ht,{className:"bg-transparent",children:[l.jsx(Yt,{placeholder:c.searchPlaceholder||"Search...",className:"h-9"}),l.jsx(zt,{children:c.noneFoundText||"No results found."}),l.jsx(Vt,{className:"max-h-64 overflow-auto p-1",children:f.map(v=>l.jsxs(Ct,{onSelect:()=>{c.onDropdownSelect&&c.onDropdownSelect(h,{value:v.value,label:v.label}),u(b=>({...b,[h]:!1}))},className:"aria-selected:bg-accent aria-selected:text-accent-foreground rounded-md",children:[l.jsx(nr,{className:R("mr-2 h-4 w-4 text-green-500",c.selectedValue===v.value?"opacity-100":"opacity-0")}),l.jsx("span",{className:"truncate",children:v.label})]},String(v.value)))})]})})]})]},d)}else if(c.option==="button")return l.jsx(pe,{variant:"secondary",className:"w-full bg-secondary hover:bg-primary/20 hover:text-primary transition-colors border border-border",onClick:()=>{c.onButtonClick&&c.onButtonClick(c)},children:c.label},d);return null})})]})},hh=({title:e,icon:t,variant:r="default",onClose:n,onConfirm:o,confirmLabel:a="Confirm",cancelLabel:s="Cancel",isConfirmDisabled:i=!1,maxWidth:u="max-w-sm",children:c})=>{const d={default:"bg-primary/10 text-primary",destructive:"bg-destructive/10 text-destructive",warning:"bg-yellow-500/10 text-yellow-500"},f=r==="destructive"?"destructive":"default";return l.jsxs(ao,{onClose:n,className:R("w-full",u),children:[l.jsxs("div",{className:"flex justify-between items-center mb-6",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:R("p-2 rounded-lg",d[r]),children:l.jsx(t,{className:"w-5 h-5"})}),l.jsx("p",{className:"font-bold text-lg text-foreground",children:e})]}),l.jsx("button",{onClick:n,className:"text-muted-foreground hover:text-foreground transition-colors",children:l.jsx(fa,{className:"w-5 h-5"})})]}),l.jsx("div",{className:"space-y-4",children:c}),l.jsxs("div",{className:"mt-6 flex gap-3",children:[l.jsx(pe,{onClick:n,variant:"ghost",className:"flex-1",children:s}),o&&l.jsx(pe,{className:R("flex-1",r==="destructive"&&"bg-destructive hover:bg-destructive/90 text-destructive-foreground"),onClick:o,disabled:i,variant:f,children:a})]})]})};function vh({icon:e,label:t,onClick:r,variant:n="default",disabled:o=!1,className:a}){return l.jsxs(pe,{type:"button",variant:"secondary",className:R("h-12 flex items-center justify-start gap-3 px-4 bg-card hover:bg-muted border border-border text-foreground hover:text-foreground transition-all min-w-0 w-full",n==="destructive"&&"text-red-400 hover:text-red-300 hover:bg-red-900/20 hover:border-red-900/50",n==="warning"&&"text-yellow-400 hover:text-yellow-300 hover:bg-yellow-900/20 hover:border-yellow-900/50",o&&"opacity-50 pointer-events-none grayscale cursor-not-allowed",a),onClick:r,disabled:o,children:[l.jsx(e,{className:"w-4 h-4 shrink-0"}),l.jsx("span",{className:"font-medium text-sm truncate w-full text-left",title:t,children:t})]})}function ph({value:e,onChange:t,placeholder:r,className:n,width:o="w-80",size:a="default",error:s}){return l.jsxs("div",{className:R("relative",o,n),children:[l.jsx(vn,{className:R("absolute left-3 top-2.5 w-4 h-4 text-muted-foreground pointer-events-none z-10",a==="sm"&&"top-2")}),l.jsx(Cr,{placeholder:r,value:e,onChange:i=>t(i.target.value),size:a,error:s,className:R("pl-9 bg-card border-border focus:border-primary/50 w-full transition-colors",a==="default"&&"h-10")})]})}function gh({icon:e,title:t,className:r}){return l.jsxs("h3",{className:R("text-muted-foreground text-xs font-bold uppercase tracking-widest mb-3 flex items-center gap-2",r),children:[l.jsx(e,{className:"w-3.5 h-3.5"})," ",t]})}const so=6048e5,bh=864e5,Pi=Symbol.for("constructDateFrom");function be(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Pi in e?e[Pi](t):e instanceof Date?new e.constructor(t):new Date(t)}function re(e,t){return be(t||e,e)}function Ce(e,t,r){const n=re(e,r==null?void 0:r.in);return isNaN(t)?be((r==null?void 0:r.in)||e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Ie(e,t,r){const n=re(e,r==null?void 0:r.in);if(isNaN(t))return be((r==null?void 0:r.in)||e,NaN);if(!t)return n;const o=n.getDate(),a=be((r==null?void 0:r.in)||e,n.getTime());a.setMonth(n.getMonth()+t+1,0);const s=a.getDate();return o>=s?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}let yh={};function ur(){return yh}function Xe(e,t){var i,u,c,d;const r=ur(),n=(t==null?void 0:t.weekStartsOn)??((u=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:u.weekStartsOn)??r.weekStartsOn??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,o=re(e,t==null?void 0:t.in),a=o.getDay(),s=(a<n?7:0)+a-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}function Nt(e,t){return Xe(e,{...t,weekStartsOn:1})}function Ei(e,t){const r=re(e,t==null?void 0:t.in),n=r.getFullYear(),o=be(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const a=Nt(o),s=be(r,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);const i=Nt(s);return r.getTime()>=a.getTime()?n+1:r.getTime()>=i.getTime()?n:n-1}function Qr(e){const t=re(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Ut(e,...t){const r=be.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function qt(e,t){const r=re(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function Ge(e,t,r){const[n,o]=Ut(r==null?void 0:r.in,e,t),a=qt(n),s=qt(o),i=+a-Qr(a),u=+s-Qr(s);return Math.round((i-u)/bh)}function xh(e,t){const r=Ei(e,t),n=be(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Nt(n)}function io(e,t,r){return Ce(e,t*7,r)}function wh(e,t,r){return Ie(e,t*12,r)}function Ch(e,t){let r,n=t==null?void 0:t.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=be.bind(null,o));const a=re(o,n);(!r||r<a||isNaN(+a))&&(r=a)}),be(n,r||NaN)}function Nh(e,t){let r,n=t==null?void 0:t.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=be.bind(null,o));const a=re(o,n);(!r||r>a||isNaN(+a))&&(r=a)}),be(n,r||NaN)}function je(e,t,r){const[n,o]=Ut(r==null?void 0:r.in,e,t);return+qt(n)==+qt(o)}function lo(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Sh(e){return!(!lo(e)&&typeof e!="number"||isNaN(+re(e)))}function dr(e,t,r){const[n,o]=Ut(r==null?void 0:r.in,e,t),a=n.getFullYear()-o.getFullYear(),s=n.getMonth()-o.getMonth();return a*12+s}function jh(e,t,r){const[n,o]=Ut(r==null?void 0:r.in,e,t),a=Xe(n,r),s=Xe(o,r),i=+a-Qr(a),u=+s-Qr(s);return Math.round((i-u)/so)}function co(e,t){const r=re(e,t==null?void 0:t.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function Me(e,t){const r=re(e,t==null?void 0:t.in);return r.setDate(1),r.setHours(0,0,0,0),r}function _i(e,t){const r=re(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function uo(e,t){var i,u,c,d;const r=ur(),n=(t==null?void 0:t.weekStartsOn)??((u=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:u.weekStartsOn)??r.weekStartsOn??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.weekStartsOn)??0,o=re(e,t==null?void 0:t.in),a=o.getDay(),s=(a<n?-7:0)+6-(a-n);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}function Di(e,t){return uo(e,{...t,weekStartsOn:1})}const Mh={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},kh=(e,t,r)=>{let n;const o=Mh[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Xt(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Ph={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Eh={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_h={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Dh={date:Xt({formats:Ph,defaultWidth:"full"}),time:Xt({formats:Eh,defaultWidth:"full"}),dateTime:Xt({formats:_h,defaultWidth:"full"})},Oh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Rh=(e,t,r,n)=>Oh[e];function Ke(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let o;if(n==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):s;o=e.formattingValues[i]||e.formattingValues[s]}else{const s=e.defaultWidth,i=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[i]||e.values[s]}const a=e.argumentCallback?e.argumentCallback(t):t;return o[a]}}const Th={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ah={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Lh={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Wh={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ih={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Fh={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$h={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Ke({values:Th,defaultWidth:"wide"}),quarter:Ke({values:Ah,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ke({values:Lh,defaultWidth:"wide"}),day:Ke({values:Wh,defaultWidth:"wide"}),dayPeriod:Ke({values:Ih,defaultWidth:"wide",formattingValues:Fh,defaultFormattingWidth:"wide"})};function Qe(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const s=a[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(i)?Hh(i,f=>f.test(s)):Bh(i,f=>f.test(s));let c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;const d=t.slice(s.length);return{value:c,rest:d}}}function Bh(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Hh(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Oi(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],a=t.match(e.parsePattern);if(!a)return null;let s=e.valueCallback?e.valueCallback(a[0]):a[0];s=r.valueCallback?r.valueCallback(s):s;const i=t.slice(o.length);return{value:s,rest:i}}}const Yh=/^(\d+)(th|st|nd|rd)?/i,zh=/\d+/i,Vh={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Uh={any:[/^b/i,/^(a|c)/i]},qh={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Xh={any:[/1/i,/2/i,/3/i,/4/i]},Gh={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Kh={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Qh={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Zh={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Jh={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ev={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},tv={ordinalNumber:Oi({matchPattern:Yh,parsePattern:zh,valueCallback:e=>parseInt(e,10)}),era:Qe({matchPatterns:Vh,defaultMatchWidth:"wide",parsePatterns:Uh,defaultParseWidth:"any"}),quarter:Qe({matchPatterns:qh,defaultMatchWidth:"wide",parsePatterns:Xh,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Qe({matchPatterns:Gh,defaultMatchWidth:"wide",parsePatterns:Kh,defaultParseWidth:"any"}),day:Qe({matchPatterns:Qh,defaultMatchWidth:"wide",parsePatterns:Zh,defaultParseWidth:"any"}),dayPeriod:Qe({matchPatterns:Jh,defaultMatchWidth:"any",parsePatterns:ev,defaultParseWidth:"any"})},Ri={code:"en-US",formatDistance:kh,formatLong:Dh,formatRelative:Rh,localize:$h,match:tv,options:{weekStartsOn:0,firstWeekContainsDate:1}};function rv(e,t){const r=re(e,t==null?void 0:t.in);return Ge(r,_i(r))+1}function Ti(e,t){const r=re(e,t==null?void 0:t.in),n=+Nt(r)-+xh(r);return Math.round(n/so)+1}function Ai(e,t){var d,f,h,v;const r=re(e,t==null?void 0:t.in),n=r.getFullYear(),o=ur(),a=(t==null?void 0:t.firstWeekContainsDate)??((f=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??o.firstWeekContainsDate??((v=(h=o.locale)==null?void 0:h.options)==null?void 0:v.firstWeekContainsDate)??1,s=be((t==null?void 0:t.in)||e,0);s.setFullYear(n+1,0,a),s.setHours(0,0,0,0);const i=Xe(s,t),u=be((t==null?void 0:t.in)||e,0);u.setFullYear(n,0,a),u.setHours(0,0,0,0);const c=Xe(u,t);return+r>=+i?n+1:+r>=+c?n:n-1}function nv(e,t){var i,u,c,d;const r=ur(),n=(t==null?void 0:t.firstWeekContainsDate)??((u=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:u.firstWeekContainsDate)??r.firstWeekContainsDate??((d=(c=r.locale)==null?void 0:c.options)==null?void 0:d.firstWeekContainsDate)??1,o=Ai(e,t),a=be((t==null?void 0:t.in)||e,0);return a.setFullYear(o,0,n),a.setHours(0,0,0,0),Xe(a,t)}function Li(e,t){const r=re(e,t==null?void 0:t.in),n=+Xe(r,t)-+nv(r,t);return Math.round(n/so)+1}function ne(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const vt={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ne(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ne(r+1,2)},d(e,t){return ne(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return ne(e.getHours()%12||12,t.length)},H(e,t){return ne(e.getHours(),t.length)},m(e,t){return ne(e.getMinutes(),t.length)},s(e,t){return ne(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return ne(o,t.length)}},Gt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Wi={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return vt.y(e,t)},Y:function(e,t,r,n){const o=Ai(e,n),a=o>0?o:1-o;if(t==="YY"){const s=a%100;return ne(s,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):ne(a,t.length)},R:function(e,t){const r=Ei(e);return ne(r,t.length)},u:function(e,t){const r=e.getFullYear();return ne(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ne(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ne(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return vt.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return ne(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=Li(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ne(o,t.length)},I:function(e,t,r){const n=Ti(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):ne(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):vt.d(e,t)},D:function(e,t,r){const n=rv(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):ne(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ne(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),a=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ne(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return ne(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(n===12?o=Gt.noon:n===0?o=Gt.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(n>=17?o=Gt.evening:n>=12?o=Gt.afternoon:n>=4?o=Gt.morning:o=Gt.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return vt.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):vt.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):ne(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):ne(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):vt.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):vt.s(e,t)},S:function(e,t){return vt.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Fi(n);case"XXXX":case"XX":return St(n);case"XXXXX":case"XXX":default:return St(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Fi(n);case"xxxx":case"xx":return St(n);case"xxxxx":case"xxx":default:return St(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ii(n,":");case"OOOO":default:return"GMT"+St(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ii(n,":");case"zzzz":default:return"GMT"+St(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return ne(n,t.length)},T:function(e,t,r){return ne(+e,t.length)}};function Ii(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),a=n%60;return a===0?r+String(o):r+String(o)+t+ne(a,2)}function Fi(e,t){return e%60===0?(e>0?"-":"+")+ne(Math.abs(e)/60,2):St(e,t)}function St(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=ne(Math.trunc(n/60),2),a=ne(n%60,2);return r+o+t+a}const $i=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Bi=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ov={p:Bi,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return $i(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",$i(n,t)).replace("{{time}}",Bi(o,t))}},av=/^D+$/,sv=/^Y+$/,iv=["D","DD","YY","YYYY"];function lv(e){return av.test(e)}function cv(e){return sv.test(e)}function uv(e,t,r){const n=dv(e,t,r);if(console.warn(n),iv.includes(e))throw new RangeError(n)}function dv(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const fv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hv=/^'([^]*?)'?$/,vv=/''/g,pv=/[a-zA-Z]/;function pt(e,t,r){var d,f,h,v,b,p,y,x;const n=ur(),o=(r==null?void 0:r.locale)??n.locale??Ri,a=(r==null?void 0:r.firstWeekContainsDate)??((f=(d=r==null?void 0:r.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((v=(h=n.locale)==null?void 0:h.options)==null?void 0:v.firstWeekContainsDate)??1,s=(r==null?void 0:r.weekStartsOn)??((p=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:p.weekStartsOn)??n.weekStartsOn??((x=(y=n.locale)==null?void 0:y.options)==null?void 0:x.weekStartsOn)??0,i=re(e,r==null?void 0:r.in);if(!Sh(i))throw new RangeError("Invalid time value");let u=t.match(mv).map(w=>{const C=w[0];if(C==="p"||C==="P"){const N=ov[C];return N(w,o.formatLong)}return w}).join("").match(fv).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const C=w[0];if(C==="'")return{isToken:!1,value:gv(w)};if(Wi[C])return{isToken:!0,value:w};if(C.match(pv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");return{isToken:!1,value:w}});o.localize.preprocessor&&(u=o.localize.preprocessor(i,u));const c={firstWeekContainsDate:a,weekStartsOn:s,locale:o};return u.map(w=>{if(!w.isToken)return w.value;const C=w.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&cv(C)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&lv(C))&&uv(C,t,String(e));const N=Wi[C[0]];return N(i,C,o.localize,c)}).join("")}function gv(e){const t=e.match(hv);return t?t[1].replace(vv,"'"):e}function bv(e,t){const r=re(e,t==null?void 0:t.in),n=r.getFullYear(),o=r.getMonth(),a=be(r,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}function yv(e){return Math.trunc(+re(e)/1e3)}function xv(e,t){const r=re(e,t==null?void 0:t.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),re(r,t==null?void 0:t.in)}function wv(e,t){const r=re(e,t==null?void 0:t.in);return jh(xv(r,t),Me(r,t),t)+1}function fo(e,t){return+re(e)>+re(t)}function Hi(e,t){return+re(e)<+re(t)}function mo(e,t,r){const[n,o]=Ut(r==null?void 0:r.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function Cv(e,t,r){const[n,o]=Ut(r==null?void 0:r.in,e,t);return n.getFullYear()===o.getFullYear()}function ho(e,t,r){return Ce(e,-t,r)}function vo(e,t,r){const n=re(e,r==null?void 0:r.in),o=n.getFullYear(),a=n.getDate(),s=be(e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);const i=bv(s);return n.setMonth(t,Math.min(a,i)),n}function Yi(e,t,r){const n=re(e,r==null?void 0:r.in);return isNaN(+n)?be(e,NaN):(n.setFullYear(t),n)}const Nv={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},Sv=(e,t,r)=>{let n;const o=Nv[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"em "+n:"há "+n:n},jv={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},Mv={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},kv={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Pv={date:Xt({formats:jv,defaultWidth:"full"}),time:Xt({formats:Mv,defaultWidth:"full"}),dateTime:Xt({formats:kv,defaultWidth:"full"})},Ev={lastWeek:e=>{const t=e.getDay();return"'"+(t===0||t===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},_v=(e,t,r,n)=>{const o=Ev[e];return typeof o=="function"?o(t):o},Dv={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},Ov={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Rv={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},Tv={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},Av={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},Lv={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},Wv={ordinalNumber:(e,t)=>{const r=Number(e);return(t==null?void 0:t.unit)==="week"?r+"ª":r+"º"},era:Ke({values:Dv,defaultWidth:"wide"}),quarter:Ke({values:Ov,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ke({values:Rv,defaultWidth:"wide"}),day:Ke({values:Tv,defaultWidth:"wide"}),dayPeriod:Ke({values:Av,defaultWidth:"wide",formattingValues:Lv,defaultFormattingWidth:"wide"})},Iv=/^(\d+)[ºªo]?/i,Fv=/\d+/i,$v={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},Bv={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},Hv={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Yv={any:[/1/i,/2/i,/3/i,/4/i]},zv={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},Vv={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},Uv={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},qv={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},Xv={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},Gv={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},Kv={ordinalNumber:Oi({matchPattern:Iv,parsePattern:Fv,valueCallback:e=>parseInt(e,10)}),era:Qe({matchPatterns:$v,defaultMatchWidth:"wide",parsePatterns:Bv,defaultParseWidth:"any"}),quarter:Qe({matchPatterns:Hv,defaultMatchWidth:"wide",parsePatterns:Yv,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Qe({matchPatterns:zv,defaultMatchWidth:"wide",parsePatterns:Vv,defaultParseWidth:"any"}),day:Qe({matchPatterns:Uv,defaultMatchWidth:"wide",parsePatterns:qv,defaultParseWidth:"any"}),dayPeriod:Qe({matchPatterns:Xv,defaultMatchWidth:"any",parsePatterns:Gv,defaultParseWidth:"any"})},Qv={code:"pt-BR",formatDistance:Sv,formatLong:Pv,formatRelative:_v,localize:Wv,match:Kv,options:{weekStartsOn:0,firstWeekContainsDate:1}};var I=function(){return I=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},I.apply(this,arguments)};function Zv(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function zi(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function fr(e){return e.mode==="multiple"}function mr(e){return e.mode==="range"}function Zr(e){return e.mode==="single"}var Jv={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function ep(e,t){return pt(e,"LLLL y",t)}function tp(e,t){return pt(e,"d",t)}function rp(e,t){return pt(e,"LLLL",t)}function np(e){return"".concat(e)}function op(e,t){return pt(e,"cccccc",t)}function ap(e,t){return pt(e,"yyyy",t)}var sp=Object.freeze({__proto__:null,formatCaption:ep,formatDay:tp,formatMonthCaption:rp,formatWeekNumber:np,formatWeekdayName:op,formatYearCaption:ap}),ip=function(e,t,r){return pt(e,"do MMMM (EEEE)",r)},lp=function(){return"Month: "},cp=function(){return"Go to next month"},up=function(){return"Go to previous month"},dp=function(e,t){return pt(e,"cccc",t)},fp=function(e){return"Week n. ".concat(e)},mp=function(){return"Year: "},hp=Object.freeze({__proto__:null,labelDay:ip,labelMonthDropdown:lp,labelNext:cp,labelPrevious:up,labelWeekNumber:fp,labelWeekday:dp,labelYearDropdown:mp});function vp(){var e="buttons",t=Jv,r=Ri,n={},o={},a=1,s={},i=new Date;return{captionLayout:e,classNames:t,formatters:sp,labels:hp,locale:r,modifiersClassNames:n,modifiers:o,numberOfMonths:a,styles:s,today:i,mode:"default"}}function pp(e){var t=e.fromYear,r=e.toYear,n=e.fromMonth,o=e.toMonth,a=e.fromDate,s=e.toDate;return n?a=Me(n):t&&(a=new Date(t,0,1)),o?s=co(o):r&&(s=new Date(r,11,31)),{fromDate:a?qt(a):void 0,toDate:s?qt(s):void 0}}var Vi=E.createContext(void 0);function gp(e){var t,r=e.initialProps,n=vp(),o=pp(r),a=o.fromDate,s=o.toDate,i=(t=r.captionLayout)!==null&&t!==void 0?t:n.captionLayout;i!=="buttons"&&(!a||!s)&&(i="buttons");var u;(Zr(r)||fr(r)||mr(r))&&(u=r.onSelect);var c=I(I(I({},n),r),{captionLayout:i,classNames:I(I({},n.classNames),r.classNames),components:I({},r.components),formatters:I(I({},n.formatters),r.formatters),fromDate:a,labels:I(I({},n.labels),r.labels),mode:r.mode||n.mode,modifiers:I(I({},n.modifiers),r.modifiers),modifiersClassNames:I(I({},n.modifiersClassNames),r.modifiersClassNames),onSelect:u,styles:I(I({},n.styles),r.styles),toDate:s});return l.jsx(Vi.Provider,{value:c,children:e.children})}function ae(){var e=E.useContext(Vi);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Ui(e){var t=ae(),r=t.locale,n=t.classNames,o=t.styles,a=t.formatters.formatCaption;return l.jsx("div",{className:n.caption_label,style:o.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:a(e.displayMonth,{locale:r})})}function bp(e){return l.jsx("svg",I({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:l.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function qi(e){var t,r,n=e.onChange,o=e.value,a=e.children,s=e.caption,i=e.className,u=e.style,c=ae(),d=(r=(t=c.components)===null||t===void 0?void 0:t.IconDropdown)!==null&&r!==void 0?r:bp;return l.jsxs("div",{className:i,style:u,children:[l.jsx("span",{className:c.classNames.vhidden,children:e["aria-label"]}),l.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:o,onChange:n,children:a}),l.jsxs("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[s,l.jsx(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function yp(e){var t,r=ae(),n=r.fromDate,o=r.toDate,a=r.styles,s=r.locale,i=r.formatters.formatMonthCaption,u=r.classNames,c=r.components,d=r.labels.labelMonthDropdown;if(!n)return l.jsx(l.Fragment,{});if(!o)return l.jsx(l.Fragment,{});var f=[];if(Cv(n,o))for(var h=Me(n),v=n.getMonth();v<=o.getMonth();v++)f.push(vo(h,v));else for(var h=Me(new Date),v=0;v<=11;v++)f.push(vo(h,v));var b=function(y){var x=Number(y.target.value),w=vo(Me(e.displayMonth),x);e.onChange(w)},p=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:qi;return l.jsx(p,{name:"months","aria-label":d(),className:u.dropdown_month,style:a.dropdown_month,onChange:b,value:e.displayMonth.getMonth(),caption:i(e.displayMonth,{locale:s}),children:f.map(function(y){return l.jsx("option",{value:y.getMonth(),children:i(y,{locale:s})},y.getMonth())})})}function xp(e){var t,r=e.displayMonth,n=ae(),o=n.fromDate,a=n.toDate,s=n.locale,i=n.styles,u=n.classNames,c=n.components,d=n.formatters.formatYearCaption,f=n.labels.labelYearDropdown,h=[];if(!o)return l.jsx(l.Fragment,{});if(!a)return l.jsx(l.Fragment,{});for(var v=o.getFullYear(),b=a.getFullYear(),p=v;p<=b;p++)h.push(Yi(_i(new Date),p));var y=function(w){var C=Yi(Me(r),Number(w.target.value));e.onChange(C)},x=(t=c==null?void 0:c.Dropdown)!==null&&t!==void 0?t:qi;return l.jsx(x,{name:"years","aria-label":f(),className:u.dropdown_year,style:i.dropdown_year,onChange:y,value:r.getFullYear(),caption:d(r,{locale:s}),children:h.map(function(w){return l.jsx("option",{value:w.getFullYear(),children:d(w,{locale:s})},w.getFullYear())})})}function wp(e,t){var r=E.useState(e),n=r[0],o=r[1],a=t===void 0?n:t;return[a,o]}function Cp(e){var t=e.month,r=e.defaultMonth,n=e.today,o=t||r||n||new Date,a=e.toDate,s=e.fromDate,i=e.numberOfMonths,u=i===void 0?1:i;if(a&&dr(a,o)<0){var c=-1*(u-1);o=Ie(a,c)}return s&&dr(o,s)<0&&(o=s),Me(o)}function Np(){var e=ae(),t=Cp(e),r=wp(t,e.month),n=r[0],o=r[1],a=function(s){var i;if(!e.disableNavigation){var u=Me(s);o(u),(i=e.onMonthChange)===null||i===void 0||i.call(e,u)}};return[n,a]}function Sp(e,t){for(var r=t.reverseMonths,n=t.numberOfMonths,o=Me(e),a=Me(Ie(o,n)),s=dr(a,o),i=[],u=0;u<s;u++){var c=Ie(o,u);i.push(c)}return r&&(i=i.reverse()),i}function jp(e,t){if(!t.disableNavigation){var r=t.toDate,n=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,s=n?a:1,i=Me(e);if(!r)return Ie(i,s);var u=dr(r,e);if(!(u<a))return Ie(i,s)}}function Mp(e,t){if(!t.disableNavigation){var r=t.fromDate,n=t.pagedNavigation,o=t.numberOfMonths,a=o===void 0?1:o,s=n?a:1,i=Me(e);if(!r)return Ie(i,-s);var u=dr(i,r);if(!(u<=0))return Ie(i,-s)}}var Xi=E.createContext(void 0);function kp(e){var t=ae(),r=Np(),n=r[0],o=r[1],a=Sp(n,t),s=jp(n,t),i=Mp(n,t),u=function(f){return a.some(function(h){return mo(f,h)})},c=function(f,h){u(f)||(h&&Hi(f,h)?o(Ie(f,1+t.numberOfMonths*-1)):o(f))},d={currentMonth:n,displayMonths:a,goToMonth:o,goToDate:c,previousMonth:i,nextMonth:s,isDateDisplayed:u};return l.jsx(Xi.Provider,{value:d,children:e.children})}function hr(){var e=E.useContext(Xi);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function Gi(e){var t,r=ae(),n=r.classNames,o=r.styles,a=r.components,s=hr().goToMonth,i=function(d){s(Ie(d,e.displayIndex?-e.displayIndex:0))},u=(t=a==null?void 0:a.CaptionLabel)!==null&&t!==void 0?t:Ui,c=l.jsx(u,{id:e.id,displayMonth:e.displayMonth});return l.jsxs("div",{className:n.caption_dropdowns,style:o.caption_dropdowns,children:[l.jsx("div",{className:n.vhidden,children:c}),l.jsx(yp,{onChange:i,displayMonth:e.displayMonth}),l.jsx(xp,{onChange:i,displayMonth:e.displayMonth})]})}function Pp(e){return l.jsx("svg",I({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:l.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function Ep(e){return l.jsx("svg",I({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:l.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Jr=E.forwardRef(function(e,t){var r=ae(),n=r.classNames,o=r.styles,a=[n.button_reset,n.button];e.className&&a.push(e.className);var s=a.join(" "),i=I(I({},o.button_reset),o.button);return e.style&&Object.assign(i,e.style),l.jsx("button",I({},e,{ref:t,type:"button",className:s,style:i}))});function _p(e){var t,r,n=ae(),o=n.dir,a=n.locale,s=n.classNames,i=n.styles,u=n.labels,c=u.labelPrevious,d=u.labelNext,f=n.components;if(!e.nextMonth&&!e.previousMonth)return l.jsx(l.Fragment,{});var h=c(e.previousMonth,{locale:a}),v=[s.nav_button,s.nav_button_previous].join(" "),b=d(e.nextMonth,{locale:a}),p=[s.nav_button,s.nav_button_next].join(" "),y=(t=f==null?void 0:f.IconRight)!==null&&t!==void 0?t:Ep,x=(r=f==null?void 0:f.IconLeft)!==null&&r!==void 0?r:Pp;return l.jsxs("div",{className:s.nav,style:i.nav,children:[!e.hidePrevious&&l.jsx(Jr,{name:"previous-month","aria-label":h,className:v,style:i.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:o==="rtl"?l.jsx(y,{className:s.nav_icon,style:i.nav_icon}):l.jsx(x,{className:s.nav_icon,style:i.nav_icon})}),!e.hideNext&&l.jsx(Jr,{name:"next-month","aria-label":b,className:p,style:i.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:o==="rtl"?l.jsx(x,{className:s.nav_icon,style:i.nav_icon}):l.jsx(y,{className:s.nav_icon,style:i.nav_icon})})]})}function Ki(e){var t=ae().numberOfMonths,r=hr(),n=r.previousMonth,o=r.nextMonth,a=r.goToMonth,s=r.displayMonths,i=s.findIndex(function(b){return mo(e.displayMonth,b)}),u=i===0,c=i===s.length-1,d=t>1&&(u||!c),f=t>1&&(c||!u),h=function(){n&&a(n)},v=function(){o&&a(o)};return l.jsx(_p,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:f,nextMonth:o,previousMonth:n,onPreviousClick:h,onNextClick:v})}function Dp(e){var t,r=ae(),n=r.classNames,o=r.disableNavigation,a=r.styles,s=r.captionLayout,i=r.components,u=(t=i==null?void 0:i.CaptionLabel)!==null&&t!==void 0?t:Ui,c;return o?c=l.jsx(u,{id:e.id,displayMonth:e.displayMonth}):s==="dropdown"?c=l.jsx(Gi,{displayMonth:e.displayMonth,id:e.id}):s==="dropdown-buttons"?c=l.jsxs(l.Fragment,{children:[l.jsx(Gi,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),l.jsx(Ki,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=l.jsxs(l.Fragment,{children:[l.jsx(u,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),l.jsx(Ki,{displayMonth:e.displayMonth,id:e.id})]}),l.jsx("div",{className:n.caption,style:a.caption,children:c})}function Op(e){var t=ae(),r=t.footer,n=t.styles,o=t.classNames.tfoot;return r?l.jsx("tfoot",{className:o,style:n.tfoot,children:l.jsx("tr",{children:l.jsx("td",{colSpan:8,children:r})})}):l.jsx(l.Fragment,{})}function Rp(e,t,r){for(var n=r?Nt(new Date):Xe(new Date,{locale:e,weekStartsOn:t}),o=[],a=0;a<7;a++){var s=Ce(n,a);o.push(s)}return o}function Tp(){var e=ae(),t=e.classNames,r=e.styles,n=e.showWeekNumber,o=e.locale,a=e.weekStartsOn,s=e.ISOWeek,i=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,c=Rp(o,a,s);return l.jsxs("tr",{style:r.head_row,className:t.head_row,children:[n&&l.jsx("td",{style:r.head_cell,className:t.head_cell}),c.map(function(d,f){return l.jsx("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":u(d,{locale:o}),children:i(d,{locale:o})},f)})]})}function Ap(){var e,t=ae(),r=t.classNames,n=t.styles,o=t.components,a=(e=o==null?void 0:o.HeadRow)!==null&&e!==void 0?e:Tp;return l.jsx("thead",{style:n.head,className:r.head,children:l.jsx(a,{})})}function Lp(e){var t=ae(),r=t.locale,n=t.formatters.formatDay;return l.jsx(l.Fragment,{children:n(e.date,{locale:r})})}var po=E.createContext(void 0);function Wp(e){if(!fr(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return l.jsx(po.Provider,{value:t,children:e.children})}return l.jsx(Ip,{initialProps:e.initialProps,children:e.children})}function Ip(e){var t=e.initialProps,r=e.children,n=t.selected,o=t.min,a=t.max,s=function(c,d,f){var h,v;(h=t.onDayClick)===null||h===void 0||h.call(t,c,d,f);var b=!!(d.selected&&o&&(n==null?void 0:n.length)===o);if(!b){var p=!!(!d.selected&&a&&(n==null?void 0:n.length)===a);if(!p){var y=n?zi([],n):[];if(d.selected){var x=y.findIndex(function(w){return je(c,w)});y.splice(x,1)}else y.push(c);(v=t.onSelect)===null||v===void 0||v.call(t,y,c,d,f)}}},i={disabled:[]};n&&i.disabled.push(function(c){var d=a&&n.length>a-1,f=n.some(function(h){return je(h,c)});return!!(d&&!f)});var u={selected:n,onDayClick:s,modifiers:i};return l.jsx(po.Provider,{value:u,children:r})}function go(){var e=E.useContext(po);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function Fp(e,t){var r=t||{},n=r.from,o=r.to;return n&&o?je(o,e)&&je(n,e)?void 0:je(o,e)?{from:o,to:void 0}:je(n,e)?void 0:fo(n,e)?{from:e,to:o}:{from:n,to:e}:o?fo(e,o)?{from:o,to:e}:{from:e,to:o}:n?Hi(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var bo=E.createContext(void 0);function $p(e){if(!mr(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return l.jsx(bo.Provider,{value:t,children:e.children})}return l.jsx(Bp,{initialProps:e.initialProps,children:e.children})}function Bp(e){var t=e.initialProps,r=e.children,n=t.selected,o=n||{},a=o.from,s=o.to,i=t.min,u=t.max,c=function(v,b,p){var y,x;(y=t.onDayClick)===null||y===void 0||y.call(t,v,b,p);var w=Fp(v,n);(x=t.onSelect)===null||x===void 0||x.call(t,w,v,b,p)},d={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(d.range_start=[a],s?(d.range_end=[s],je(a,s)||(d.range_middle=[{after:a,before:s}])):d.range_end=[a]):s&&(d.range_start=[s],d.range_end=[s]),i&&(a&&!s&&d.disabled.push({after:ho(a,i-1),before:Ce(a,i-1)}),a&&s&&d.disabled.push({after:a,before:Ce(a,i-1)}),!a&&s&&d.disabled.push({after:ho(s,i-1),before:Ce(s,i-1)})),u){if(a&&!s&&(d.disabled.push({before:Ce(a,-u+1)}),d.disabled.push({after:Ce(a,u-1)})),a&&s){var f=Ge(s,a)+1,h=u-f;d.disabled.push({before:ho(a,h)}),d.disabled.push({after:Ce(s,h)})}!a&&s&&(d.disabled.push({before:Ce(s,-u+1)}),d.disabled.push({after:Ce(s,u-1)}))}return l.jsx(bo.Provider,{value:{selected:n,onDayClick:c,modifiers:d},children:r})}function yo(){var e=E.useContext(bo);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function en(e){return Array.isArray(e)?zi([],e):e!==void 0?[e]:[]}function Hp(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],o=r[1];t[n]=en(o)}),t}var Fe;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(Fe||(Fe={}));var Yp=Fe.Selected,rt=Fe.Disabled,zp=Fe.Hidden,Vp=Fe.Today,xo=Fe.RangeEnd,wo=Fe.RangeMiddle,Co=Fe.RangeStart,Up=Fe.Outside;function qp(e,t,r){var n,o=(n={},n[Yp]=en(e.selected),n[rt]=en(e.disabled),n[zp]=en(e.hidden),n[Vp]=[e.today],n[xo]=[],n[wo]=[],n[Co]=[],n[Up]=[],n);return e.fromDate&&o[rt].push({before:e.fromDate}),e.toDate&&o[rt].push({after:e.toDate}),fr(e)?o[rt]=o[rt].concat(t.modifiers[rt]):mr(e)&&(o[rt]=o[rt].concat(r.modifiers[rt]),o[Co]=r.modifiers[Co],o[wo]=r.modifiers[wo],o[xo]=r.modifiers[xo]),o}var Qi=E.createContext(void 0);function Xp(e){var t=ae(),r=go(),n=yo(),o=qp(t,r,n),a=Hp(t.modifiers),s=I(I({},o),a);return l.jsx(Qi.Provider,{value:s,children:e.children})}function Zi(){var e=E.useContext(Qi);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Gp(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Kp(e){return!!(e&&typeof e=="object"&&"from"in e)}function Qp(e){return!!(e&&typeof e=="object"&&"after"in e)}function Zp(e){return!!(e&&typeof e=="object"&&"before"in e)}function Jp(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function eg(e,t){var r,n=t.from,o=t.to;if(n&&o){var a=Ge(o,n)<0;a&&(r=[o,n],n=r[0],o=r[1]);var s=Ge(e,n)>=0&&Ge(o,e)>=0;return s}return o?je(o,e):n?je(n,e):!1}function tg(e){return lo(e)}function rg(e){return Array.isArray(e)&&e.every(lo)}function ng(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(tg(r))return je(e,r);if(rg(r))return r.includes(e);if(Kp(r))return eg(e,r);if(Jp(r))return r.dayOfWeek.includes(e.getDay());if(Gp(r)){var n=Ge(r.before,e),o=Ge(r.after,e),a=n>0,s=o<0,i=fo(r.before,r.after);return i?s&&a:a||s}return Qp(r)?Ge(e,r.after)>0:Zp(r)?Ge(r.before,e)>0:typeof r=="function"?r(e):!1})}function No(e,t,r){var n=Object.keys(t).reduce(function(a,s){var i=t[s];return ng(e,i)&&a.push(s),a},[]),o={};return n.forEach(function(a){return o[a]=!0}),r&&!mo(e,r)&&(o.outside=!0),o}function og(e,t){for(var r=Me(e[0]),n=co(e[e.length-1]),o,a,s=r;s<=n;){var i=No(s,t),u=!i.disabled&&!i.hidden;if(!u){s=Ce(s,1);continue}if(i.selected)return s;i.today&&!a&&(a=s),o||(o=s),s=Ce(s,1)}return a||o}var ag=365;function Ji(e,t){var r=t.moveBy,n=t.direction,o=t.context,a=t.modifiers,s=t.retry,i=s===void 0?{count:0,lastFocused:e}:s,u=o.weekStartsOn,c=o.fromDate,d=o.toDate,f=o.locale,h={day:Ce,week:io,month:Ie,year:wh,startOfWeek:function(y){return o.ISOWeek?Nt(y):Xe(y,{locale:f,weekStartsOn:u})},endOfWeek:function(y){return o.ISOWeek?Di(y):uo(y,{locale:f,weekStartsOn:u})}},v=h[r](e,n==="after"?1:-1);n==="before"&&c?v=Ch([c,v]):n==="after"&&d&&(v=Nh([d,v]));var b=!0;if(a){var p=No(v,a);b=!p.disabled&&!p.hidden}return b?v:i.count>ag?i.lastFocused:Ji(v,{moveBy:r,direction:n,context:o,modifiers:a,retry:I(I({},i),{count:i.count+1})})}var el=E.createContext(void 0);function sg(e){var t=hr(),r=Zi(),n=E.useState(),o=n[0],a=n[1],s=E.useState(),i=s[0],u=s[1],c=og(t.displayMonths,r),d=o??(i&&t.isDateDisplayed(i))?i:c,f=function(){u(o),a(void 0)},h=function(y){a(y)},v=ae(),b=function(y,x){if(o){var w=Ji(o,{moveBy:y,direction:x,context:v,modifiers:r});je(o,w)||(t.goToDate(w,o),h(w))}},p={focusedDay:o,focusTarget:d,blur:f,focus:h,focusDayAfter:function(){return b("day","after")},focusDayBefore:function(){return b("day","before")},focusWeekAfter:function(){return b("week","after")},focusWeekBefore:function(){return b("week","before")},focusMonthBefore:function(){return b("month","before")},focusMonthAfter:function(){return b("month","after")},focusYearBefore:function(){return b("year","before")},focusYearAfter:function(){return b("year","after")},focusStartOfWeek:function(){return b("startOfWeek","before")},focusEndOfWeek:function(){return b("endOfWeek","after")}};return l.jsx(el.Provider,{value:p,children:e.children})}function So(){var e=E.useContext(el);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function ig(e,t){var r=Zi(),n=No(e,r,t);return n}var jo=E.createContext(void 0);function lg(e){if(!Zr(e.initialProps)){var t={selected:void 0};return l.jsx(jo.Provider,{value:t,children:e.children})}return l.jsx(cg,{initialProps:e.initialProps,children:e.children})}function cg(e){var t=e.initialProps,r=e.children,n=function(a,s,i){var u,c,d;if((u=t.onDayClick)===null||u===void 0||u.call(t,a,s,i),s.selected&&!t.required){(c=t.onSelect)===null||c===void 0||c.call(t,void 0,a,s,i);return}(d=t.onSelect)===null||d===void 0||d.call(t,a,a,s,i)},o={selected:t.selected,onDayClick:n};return l.jsx(jo.Provider,{value:o,children:r})}function tl(){var e=E.useContext(jo);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function ug(e,t){var r=ae(),n=tl(),o=go(),a=yo(),s=So(),i=s.focusDayAfter,u=s.focusDayBefore,c=s.focusWeekAfter,d=s.focusWeekBefore,f=s.blur,h=s.focus,v=s.focusMonthBefore,b=s.focusMonthAfter,p=s.focusYearBefore,y=s.focusYearAfter,x=s.focusStartOfWeek,w=s.focusEndOfWeek,C=function(D){var S,Z,le,ie;Zr(r)?(S=n.onDayClick)===null||S===void 0||S.call(n,e,t,D):fr(r)?(Z=o.onDayClick)===null||Z===void 0||Z.call(o,e,t,D):mr(r)?(le=a.onDayClick)===null||le===void 0||le.call(a,e,t,D):(ie=r.onDayClick)===null||ie===void 0||ie.call(r,e,t,D)},N=function(D){var S;h(e),(S=r.onDayFocus)===null||S===void 0||S.call(r,e,t,D)},k=function(D){var S;f(),(S=r.onDayBlur)===null||S===void 0||S.call(r,e,t,D)},P=function(D){var S;(S=r.onDayMouseEnter)===null||S===void 0||S.call(r,e,t,D)},_=function(D){var S;(S=r.onDayMouseLeave)===null||S===void 0||S.call(r,e,t,D)},z=function(D){var S;(S=r.onDayPointerEnter)===null||S===void 0||S.call(r,e,t,D)},W=function(D){var S;(S=r.onDayPointerLeave)===null||S===void 0||S.call(r,e,t,D)},F=function(D){var S;(S=r.onDayTouchCancel)===null||S===void 0||S.call(r,e,t,D)},V=function(D){var S;(S=r.onDayTouchEnd)===null||S===void 0||S.call(r,e,t,D)},L=function(D){var S;(S=r.onDayTouchMove)===null||S===void 0||S.call(r,e,t,D)},U=function(D){var S;(S=r.onDayTouchStart)===null||S===void 0||S.call(r,e,t,D)},H=function(D){var S;(S=r.onDayKeyUp)===null||S===void 0||S.call(r,e,t,D)},J=function(D){var S;switch(D.key){case"ArrowLeft":D.preventDefault(),D.stopPropagation(),r.dir==="rtl"?i():u();break;case"ArrowRight":D.preventDefault(),D.stopPropagation(),r.dir==="rtl"?u():i();break;case"ArrowDown":D.preventDefault(),D.stopPropagation(),c();break;case"ArrowUp":D.preventDefault(),D.stopPropagation(),d();break;case"PageUp":D.preventDefault(),D.stopPropagation(),D.shiftKey?p():v();break;case"PageDown":D.preventDefault(),D.stopPropagation(),D.shiftKey?y():b();break;case"Home":D.preventDefault(),D.stopPropagation(),x();break;case"End":D.preventDefault(),D.stopPropagation(),w();break}(S=r.onDayKeyDown)===null||S===void 0||S.call(r,e,t,D)},K={onClick:C,onFocus:N,onBlur:k,onKeyDown:J,onKeyUp:H,onMouseEnter:P,onMouseLeave:_,onPointerEnter:z,onPointerLeave:W,onTouchCancel:F,onTouchEnd:V,onTouchMove:L,onTouchStart:U};return K}function dg(){var e=ae(),t=tl(),r=go(),n=yo(),o=Zr(e)?t.selected:fr(e)?r.selected:mr(e)?n.selected:void 0;return o}function fg(e){return Object.values(Fe).includes(e)}function mg(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var o=e.modifiersClassNames[n];if(o)r.push(o);else if(fg(n)){var a=e.classNames["day_".concat(n)];a&&r.push(a)}}),r}function hg(e,t){var r=I({},e.styles.day);return Object.keys(t).forEach(function(n){var o;r=I(I({},r),(o=e.modifiersStyles)===null||o===void 0?void 0:o[n])}),r}function vg(e,t,r){var n,o,a,s=ae(),i=So(),u=ig(e,t),c=ug(e,u),d=dg(),f=!!(s.onDayClick||s.mode!=="default");E.useEffect(function(){var P;u.outside||i.focusedDay&&f&&je(i.focusedDay,e)&&((P=r.current)===null||P===void 0||P.focus())},[i.focusedDay,e,r,f,u.outside]);var h=mg(s,u).join(" "),v=hg(s,u),b=!!(u.outside&&!s.showOutsideDays||u.hidden),p=(a=(o=s.components)===null||o===void 0?void 0:o.DayContent)!==null&&a!==void 0?a:Lp,y=l.jsx(p,{date:e,displayMonth:t,activeModifiers:u}),x={style:v,className:h,children:y,role:"gridcell"},w=i.focusTarget&&je(i.focusTarget,e)&&!u.outside,C=i.focusedDay&&je(i.focusedDay,e),N=I(I(I({},x),(n={disabled:u.disabled,role:"gridcell"},n["aria-selected"]=u.selected,n.tabIndex=C||w?0:-1,n)),c),k={isButton:f,isHidden:b,activeModifiers:u,selectedDays:d,buttonProps:N,divProps:x};return k}function pg(e){var t=E.useRef(null),r=vg(e.date,e.displayMonth,t);return r.isHidden?l.jsx("div",{role:"gridcell"}):r.isButton?l.jsx(Jr,I({name:"day",ref:t},r.buttonProps)):l.jsx("div",I({},r.divProps))}function gg(e){var t=e.number,r=e.dates,n=ae(),o=n.onWeekNumberClick,a=n.styles,s=n.classNames,i=n.locale,u=n.labels.labelWeekNumber,c=n.formatters.formatWeekNumber,d=c(Number(t),{locale:i});if(!o)return l.jsx("span",{className:s.weeknumber,style:a.weeknumber,children:d});var f=u(Number(t),{locale:i}),h=function(v){o(t,r,v)};return l.jsx(Jr,{name:"week-number","aria-label":f,className:s.weeknumber,style:a.weeknumber,onClick:h,children:d})}function bg(e){var t,r,n=ae(),o=n.styles,a=n.classNames,s=n.showWeekNumber,i=n.components,u=(t=i==null?void 0:i.Day)!==null&&t!==void 0?t:pg,c=(r=i==null?void 0:i.WeekNumber)!==null&&r!==void 0?r:gg,d;return s&&(d=l.jsx("td",{className:a.cell,style:o.cell,children:l.jsx(c,{number:e.weekNumber,dates:e.dates})})),l.jsxs("tr",{className:a.row,style:o.row,children:[d,e.dates.map(function(f){return l.jsx("td",{className:a.cell,style:o.cell,role:"presentation",children:l.jsx(u,{displayMonth:e.displayMonth,date:f})},yv(f))})]})}function rl(e,t,r){for(var n=r!=null&&r.ISOWeek?Di(t):uo(t,r),o=r!=null&&r.ISOWeek?Nt(e):Xe(e,r),a=Ge(n,o),s=[],i=0;i<=a;i++)s.push(Ce(o,i));var u=s.reduce(function(c,d){var f=r!=null&&r.ISOWeek?Ti(d):Li(d,r),h=c.find(function(v){return v.weekNumber===f});return h?(h.dates.push(d),c):(c.push({weekNumber:f,dates:[d]}),c)},[]);return u}function yg(e,t){var r=rl(Me(e),co(e),t);if(t!=null&&t.useFixedWeeks){var n=wv(e,t);if(n<6){var o=r[r.length-1],a=o.dates[o.dates.length-1],s=io(a,6-n),i=rl(io(a,1),s,t);r.push.apply(r,i)}}return r}function xg(e){var t,r,n,o=ae(),a=o.locale,s=o.classNames,i=o.styles,u=o.hideHead,c=o.fixedWeeks,d=o.components,f=o.weekStartsOn,h=o.firstWeekContainsDate,v=o.ISOWeek,b=yg(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:v,locale:a,weekStartsOn:f,firstWeekContainsDate:h}),p=(t=d==null?void 0:d.Head)!==null&&t!==void 0?t:Ap,y=(r=d==null?void 0:d.Row)!==null&&r!==void 0?r:bg,x=(n=d==null?void 0:d.Footer)!==null&&n!==void 0?n:Op;return l.jsxs("table",{id:e.id,className:s.table,style:i.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!u&&l.jsx(p,{}),l.jsx("tbody",{className:s.tbody,style:i.tbody,children:b.map(function(w){return l.jsx(y,{displayMonth:e.displayMonth,dates:w.dates,weekNumber:w.weekNumber},w.weekNumber)})}),l.jsx(x,{displayMonth:e.displayMonth})]})}function wg(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var Cg=wg()?E.useLayoutEffect:E.useEffect,Mo=!1,Ng=0;function nl(){return"react-day-picker-".concat(++Ng)}function Sg(e){var t,r=e??(Mo?nl():null),n=E.useState(r),o=n[0],a=n[1];return Cg(function(){o===null&&a(nl())},[]),E.useEffect(function(){Mo===!1&&(Mo=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function jg(e){var t,r,n=ae(),o=n.dir,a=n.classNames,s=n.styles,i=n.components,u=hr().displayMonths,c=Sg(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),d=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,f=[a.month],h=s.month,v=e.displayIndex===0,b=e.displayIndex===u.length-1,p=!v&&!b;o==="rtl"&&(t=[v,b],b=t[0],v=t[1]),v&&(f.push(a.caption_start),h=I(I({},h),s.caption_start)),b&&(f.push(a.caption_end),h=I(I({},h),s.caption_end)),p&&(f.push(a.caption_between),h=I(I({},h),s.caption_between));var y=(r=i==null?void 0:i.Caption)!==null&&r!==void 0?r:Dp;return l.jsxs("div",{className:f.join(" "),style:h,children:[l.jsx(y,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),l.jsx(xg,{id:d,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function Mg(e){var t=ae(),r=t.classNames,n=t.styles;return l.jsx("div",{className:r.months,style:n.months,children:e.children})}function kg(e){var t,r,n=e.initialProps,o=ae(),a=So(),s=hr(),i=E.useState(!1),u=i[0],c=i[1];E.useEffect(function(){o.initialFocus&&a.focusTarget&&(u||(a.focus(a.focusTarget),c(!0)))},[o.initialFocus,u,a.focus,a.focusTarget,a]);var d=[o.classNames.root,o.className];o.numberOfMonths>1&&d.push(o.classNames.multiple_months),o.showWeekNumber&&d.push(o.classNames.with_weeknumber);var f=I(I({},o.styles.root),o.style),h=Object.keys(n).filter(function(b){return b.startsWith("data-")}).reduce(function(b,p){var y;return I(I({},b),(y={},y[p]=n[p],y))},{}),v=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:Mg;return l.jsx("div",I({className:d.join(" "),style:f,dir:o.dir,id:o.id,nonce:n.nonce,title:n.title,lang:n.lang},h,{children:l.jsx(v,{children:s.displayMonths.map(function(b,p){return l.jsx(jg,{displayIndex:p,displayMonth:b},p)})})}))}function Pg(e){var t=e.children,r=Zv(e,["children"]);return l.jsx(gp,{initialProps:r,children:l.jsx(kp,{children:l.jsx(lg,{initialProps:r,children:l.jsx(Wp,{initialProps:r,children:l.jsx($p,{initialProps:r,children:l.jsx(Xp,{children:l.jsx(sg,{children:t})})})})})})})}function Eg(e){return l.jsx(Pg,I({},e,{children:l.jsx(kg,{initialProps:e})}))}function ko({className:e,classNames:t,showOutsideDays:r=!0,...n}){return l.jsx(Eg,{showOutsideDays:r,className:R("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:R(xr({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:R(xr({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:()=>l.jsx(ua,{className:"h-4 w-4"}),IconRight:()=>l.jsx(mn,{className:"h-4 w-4"})},...n})}ko.displayName="MriCalendar";function _g({value:e,onChange:t,placeholder:r="Selecione",disabled:n,locale:o=Qv,size:a="default",error:s}){return l.jsxs(bt,{children:[l.jsx(yt,{asChild:!0,children:l.jsxs("div",{className:"w-full space-y-1",children:[l.jsxs(pe,{variant:"outline",size:a,className:R("w-full justify-start pl-3 text-left font-normal",!e&&"text-muted-foreground",s&&"border-destructive focus:ring-destructive"),disabled:n,children:[e?pt(e,"dd/MM/yyyy"):l.jsx("span",{children:r}),l.jsx(Dc,{className:"ml-auto h-4 w-4 opacity-50"})]}),typeof s=="string"&&l.jsx("p",{className:"text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1",children:s})]})}),l.jsx(ft,{className:"w-auto p-0",align:"start",children:l.jsx(ko,{mode:"single",selected:e||void 0,onSelect:t,initialFocus:!0,locale:o})})]})}function tn(){return(tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ol(e,t){if(e==null)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function Po(e){var t=E.useRef(e),r=E.useRef(function(n){t.current&&t.current(n)});return t.current=e,r.current}var vr=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e<t?t:e},pr=function(e){return"touches"in e},Eo=function(e){return e&&e.ownerDocument.defaultView||self},al=function(e,t,r){var n=e.getBoundingClientRect(),o=pr(t)?function(a,s){for(var i=0;i<a.length;i++)if(a[i].identifier===s)return a[i];return a[0]}(t.touches,r):t;return{left:vr((o.pageX-(n.left+Eo(e).pageXOffset))/n.width),top:vr((o.pageY-(n.top+Eo(e).pageYOffset))/n.height)}},sl=function(e){!pr(e)&&e.preventDefault()},il=E.memo(function(e){var t=e.onMove,r=e.onKey,n=ol(e,["onMove","onKey"]),o=E.useRef(null),a=Po(t),s=Po(r),i=E.useRef(null),u=E.useRef(!1),c=E.useMemo(function(){var v=function(y){sl(y),(pr(y)?y.touches.length>0:y.buttons>0)&&o.current?a(al(o.current,y,i.current)):p(!1)},b=function(){return p(!1)};function p(y){var x=u.current,w=Eo(o.current),C=y?w.addEventListener:w.removeEventListener;C(x?"touchmove":"mousemove",v),C(x?"touchend":"mouseup",b)}return[function(y){var x=y.nativeEvent,w=o.current;if(w&&(sl(x),!function(N,k){return k&&!pr(N)}(x,u.current)&&w)){if(pr(x)){u.current=!0;var C=x.changedTouches||[];C.length&&(i.current=C[0].identifier)}w.focus(),a(al(w,x,i.current)),p(!0)}},function(y){var x=y.which||y.keyCode;x<37||x>40||(y.preventDefault(),s({left:x===39?.05:x===37?-.05:0,top:x===40?.05:x===38?-.05:0}))},p]},[s,a]),d=c[0],f=c[1],h=c[2];return E.useEffect(function(){return h},[h]),E.createElement("div",tn({},n,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),_o=function(e){return e.filter(Boolean).join(" ")},ll=function(e){var t=e.color,r=e.left,n=e.top,o=n===void 0?.5:n,a=_o(["react-colorful__pointer",e.className]);return E.createElement("div",{className:a,style:{top:100*o+"%",left:100*r+"%"}},E.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},we=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r},Dg=function(e){return Lg(Do(e))},Do=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?we(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?we(parseInt(e.substring(6,8),16)/255,2):1}},Og=function(e){return Ag(Tg(e))},Rg=function(e){var t=e.s,r=e.v,n=e.a,o=(200-t)*r/100;return{h:we(e.h),s:we(o>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0),l:we(o/2),a:we(n,2)}},Oo=function(e){var t=Rg(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Tg=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),s=n*(1-r),i=n*(1-(t-a)*r),u=n*(1-(1-t+a)*r),c=a%6;return{r:we(255*[n,i,s,s,u,n][c]),g:we(255*[u,n,n,i,s,s][c]),b:we(255*[s,s,u,n,n,i][c]),a:we(o,2)}},rn=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Ag=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=o<1?rn(we(255*o)):"";return"#"+rn(t)+rn(r)+rn(n)+a},Lg=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=Math.max(t,r,n),s=a-Math.min(t,r,n),i=s?a===t?(r-n)/s:a===r?2+(n-t)/s:4+(t-r)/s:0;return{h:we(60*(i<0?i+6:i)),s:we(a?s/a*100:0),v:we(a/255*100),a:o}},Wg=E.memo(function(e){var t=e.hue,r=e.onChange,n=_o(["react-colorful__hue",e.className]);return E.createElement("div",{className:n},E.createElement(il,{onMove:function(o){r({h:360*o.left})},onKey:function(o){r({h:vr(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":we(t),"aria-valuemax":"360","aria-valuemin":"0"},E.createElement(ll,{className:"react-colorful__hue-pointer",left:t/360,color:Oo({h:t,s:100,v:100,a:1})})))}),Ig=E.memo(function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:Oo({h:t.h,s:100,v:100,a:1})};return E.createElement("div",{className:"react-colorful__saturation",style:n},E.createElement(il,{onMove:function(o){r({s:100*o.left,v:100-100*o.top})},onKey:function(o){r({s:vr(t.s+100*o.left,0,100),v:vr(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+we(t.s)+"%, Brightness "+we(t.v)+"%"},E.createElement(ll,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Oo(t)})))}),cl=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},Fg=function(e,t){return e.toLowerCase()===t.toLowerCase()||cl(Do(e),Do(t))};function $g(e,t,r){var n=Po(r),o=E.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],i=E.useRef({color:t,hsva:a});E.useEffect(function(){if(!e.equal(t,i.current.color)){var c=e.toHsva(t);i.current={hsva:c,color:t},s(c)}},[t,e]),E.useEffect(function(){var c;cl(a,i.current.hsva)||e.equal(c=e.fromHsva(a),i.current.color)||(i.current={hsva:a,color:c},n(c))},[a,e,n]);var u=E.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,u]}var Bg=typeof window<"u"?E.useLayoutEffect:E.useEffect,Hg=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},ul=new Map,Yg=function(e){Bg(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!ul.has(t)){var r=t.createElement("style");r.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,ul.set(t,r);var n=Hg();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}},[])},zg=function(e){var t=e.className,r=e.colorModel,n=e.color,o=n===void 0?r.defaultColor:n,a=e.onChange,s=ol(e,["className","colorModel","color","onChange"]),i=E.useRef(null);Yg(i);var u=$g(r,o,a),c=u[0],d=u[1],f=_o(["react-colorful",t]);return E.createElement("div",tn({},s,{ref:i,className:f}),E.createElement(Ig,{hsva:c,onChange:d}),E.createElement(Wg,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Vg={defaultColor:"000",toHsva:Dg,fromHsva:function(e){return Og({h:e.h,s:e.s,v:e.v,a:1})},equal:Fg},Ug=function(e){return E.createElement(zg,tn({},e,{colorModel:Vg}))},qg={grad:.9,turn:360,rad:360/(2*Math.PI)},nt=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},ye=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},Oe=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},dl=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},fl=function(e){return{r:Oe(e.r,0,255),g:Oe(e.g,0,255),b:Oe(e.b,0,255),a:Oe(e.a)}},Ro=function(e){return{r:ye(e.r),g:ye(e.g),b:ye(e.b),a:ye(e.a,3)}},Xg=/^#([0-9a-f]{3,8})$/i,nn=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ml=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=Math.max(t,r,n),s=a-Math.min(t,r,n),i=s?a===t?(r-n)/s:a===r?2+(n-t)/s:4+(t-r)/s:0;return{h:60*(i<0?i+6:i),s:a?s/a*100:0,v:a/255*100,a:o}},hl=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),s=n*(1-r),i=n*(1-(t-a)*r),u=n*(1-(1-t+a)*r),c=a%6;return{r:255*[n,i,s,s,u,n][c],g:255*[u,n,n,i,s,s][c],b:255*[s,s,u,n,n,i][c],a:o}},vl=function(e){return{h:dl(e.h),s:Oe(e.s,0,100),l:Oe(e.l,0,100),a:Oe(e.a)}},pl=function(e){return{h:ye(e.h),s:ye(e.s),l:ye(e.l),a:ye(e.a,3)}},gl=function(e){return hl((r=(t=e).s,{h:t.h,s:(r*=((n=t.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:t.a}));var t,r,n},gr=function(e){return{h:(t=ml(e)).h,s:(o=(200-(r=t.s))*(n=t.v)/100)>0&&o<200?r*n/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,r,n,o},Gg=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Kg=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Qg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Zg=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,To={string:[[function(e){var t=Xg.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?ye(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?ye(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Qg.exec(e)||Zg.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:fl({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Gg.exec(e)||Kg.exec(e);if(!t)return null;var r,n,o=vl({h:(r=t[1],n=t[2],n===void 0&&(n="deg"),Number(r)*(qg[n]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return gl(o)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=o===void 0?1:o;return nt(t)&&nt(r)&&nt(n)?fl({r:Number(t),g:Number(r),b:Number(n),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,r=e.s,n=e.l,o=e.a,a=o===void 0?1:o;if(!nt(t)||!nt(r)||!nt(n))return null;var s=vl({h:Number(t),s:Number(r),l:Number(n),a:Number(a)});return gl(s)},"hsl"],[function(e){var t=e.h,r=e.s,n=e.v,o=e.a,a=o===void 0?1:o;if(!nt(t)||!nt(r)||!nt(n))return null;var s=function(i){return{h:dl(i.h),s:Oe(i.s,0,100),v:Oe(i.v,0,100),a:Oe(i.a)}}({h:Number(t),s:Number(r),v:Number(n),a:Number(a)});return hl(s)},"hsv"]]},bl=function(e,t){for(var r=0;r<t.length;r++){var n=t[r][0](e);if(n)return[n,t[r][1]]}return[null,void 0]},Jg=function(e){return typeof e=="string"?bl(e.trim(),To.string):typeof e=="object"&&e!==null?bl(e,To.object):[null,void 0]},Ao=function(e,t){var r=gr(e);return{h:r.h,s:Oe(r.s+100*t,0,100),l:r.l,a:r.a}},Lo=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},yl=function(e,t){var r=gr(e);return{h:r.h,s:r.s,l:Oe(r.l+100*t,0,100),a:r.a}},Wo=function(){function e(t){this.parsed=Jg(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return ye(Lo(this.rgba),2)},e.prototype.isDark=function(){return Lo(this.rgba)<.5},e.prototype.isLight=function(){return Lo(this.rgba)>=.5},e.prototype.toHex=function(){return t=Ro(this.rgba),r=t.r,n=t.g,o=t.b,s=(a=t.a)<1?nn(ye(255*a)):"","#"+nn(r)+nn(n)+nn(o)+s;var t,r,n,o,a,s},e.prototype.toRgb=function(){return Ro(this.rgba)},e.prototype.toRgbString=function(){return t=Ro(this.rgba),r=t.r,n=t.g,o=t.b,(a=t.a)<1?"rgba("+r+", "+n+", "+o+", "+a+")":"rgb("+r+", "+n+", "+o+")";var t,r,n,o,a},e.prototype.toHsl=function(){return pl(gr(this.rgba))},e.prototype.toHslString=function(){return t=pl(gr(this.rgba)),r=t.h,n=t.s,o=t.l,(a=t.a)<1?"hsla("+r+", "+n+"%, "+o+"%, "+a+")":"hsl("+r+", "+n+"%, "+o+"%)";var t,r,n,o,a},e.prototype.toHsv=function(){return t=ml(this.rgba),{h:ye(t.h),s:ye(t.s),v:ye(t.v),a:ye(t.a,3)};var t},e.prototype.invert=function(){return ue({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),ue(Ao(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),ue(Ao(this.rgba,-t))},e.prototype.grayscale=function(){return ue(Ao(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),ue(yl(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),ue(yl(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?ue({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):ye(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=gr(this.rgba);return typeof t=="number"?ue({h:t,s:r.s,l:r.l,a:r.a}):ye(r.h)},e.prototype.isEqual=function(t){return this.toHex()===ue(t).toHex()},e}(),ue=function(e){return e instanceof Wo?e:new Wo(e)},xl=[],eb=function(e){e.forEach(function(t){xl.indexOf(t)<0&&(t(Wo,To),xl.push(t))})};function tb(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var o in r)n[r[o]]=o;var a={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var i,u,c=n[this.toHex()];if(c)return c;if(s!=null&&s.closest){var d=this.toRgb(),f=1/0,h="black";if(!a.length)for(var v in r)a[v]=new e(r[v]).toRgb();for(var b in r){var p=(i=d,u=a[b],Math.pow(i.r-u.r,2)+Math.pow(i.g-u.g,2)+Math.pow(i.b-u.b,2));p<f&&(f=p,h=b)}return h}},t.string.push([function(s){var i=s.toLowerCase(),u=i==="transparent"?"#0000":r[i];return u?new e(u).toRgb():null},"name"])}eb([tb]);const rb=({color:e,onChange:t,active:r,format:n="hsl-string"})=>{const o=p=>/^\d+(\.\d+)?\s+\d+(\.\d+)?%\s+\d+(\.\d+)?%$/.test(p)?ue(`hsl(${p})`).toHex():ue(p).toHex(),[a,s]=E.useState(o(e)),[i,u]=E.useState("hex"),c=ue(a),[d,f]=E.useState({hex:a,rgb:c.toRgb(),hsl:c.toHsl()});E.useEffect(()=>{const p=o(e);if(ue(p).toHex()!==ue(a).toHex()){s(p);const y=ue(p);f({hex:p,rgb:y.toRgb(),hsl:y.toHsl()})}},[e]);const h=p=>{s(p);const y=ue(p);f({hex:p,rgb:y.toRgb(),hsl:y.toHsl()})},v=()=>{if(n==="hex")t(a);else{const p=ue(a).toHsl(),y=`${Math.round(p.h)} ${Math.round(p.s)}% ${Math.round(p.l)}%`;t(y)}},b=(p,y,x)=>{const w={...d};p==="hex"?w.hex=y:p==="rgb"&&x?w.rgb={...w.rgb,[x]:y}:p==="hsl"&&x&&(w.hsl={...w.hsl,[x]:y}),f(w);let C;if(p==="hex")ue(y).isValid()&&(C=ue(y));else if(p==="rgb"&&x){const{r:N,g:k,b:P}=w.rgb;!isNaN(Number(N))&&!isNaN(Number(k))&&!isNaN(Number(P))&&(C=ue({r:Number(N),g:Number(k),b:Number(P)}))}else if(p==="hsl"&&x){const{h:N,s:k,l:P}=w.hsl;!isNaN(Number(N))&&!isNaN(Number(k))&&!isNaN(Number(P))&&(C=ue({h:Number(N),s:Number(k),l:Number(P)}))}C&&C.isValid()&&s(C.toHex())};return l.jsxs(Gs,{onOpenChange:p=>!p&&v(),children:[l.jsx(Ks,{asChild:!0,children:l.jsx("button",{className:R("w-10 h-10 rounded-full flex items-center justify-center transition-transform hover:scale-110 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-background focus:ring-ring relative overflow-hidden",r?"ring-2 ring-offset-2 ring-offset-background ring-ring":"border border-dashed border-muted-foreground/50 hover:border-solid hover:border-primary"),style:{backgroundColor:r?a:"transparent"},children:r?l.jsx(nr,{className:"w-5 h-5 text-white stroke-[3px]"}):l.jsx(wr,{className:"w-5 h-5 text-muted-foreground"})})}),l.jsx(Qs,{children:l.jsx(Gn,{sideOffset:5,className:"z-50 w-64 rounded-xl border bg-popover p-3 text-popover-foreground shadow-md outline-none 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",children:l.jsxs("div",{className:"space-y-3",children:[l.jsx(Ug,{color:a,onChange:h,className:"!w-full !h-[120px] !rounded-lg"}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("div",{className:"flex bg-muted/50 p-1 rounded-lg",children:["hex","rgb","hsl"].map(p=>l.jsx("button",{onClick:()=>u(p),className:R("flex-1 text-[10px] font-bold uppercase py-1 rounded-md transition-all",i===p?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"),children:p},p))}),i==="hex"&&l.jsx("input",{className:"w-full text-xs bg-muted/50 px-2 py-1.5 rounded-md border border-transparent focus:border-primary focus:bg-muted focus:outline-none font-mono text-center transition-all",value:d.hex,onChange:p=>b("hex",p.target.value),placeholder:"#000000"}),i==="rgb"&&l.jsx("div",{className:"grid grid-cols-3 gap-2",children:["r","g","b"].map(p=>l.jsxs("div",{className:"relative",children:[l.jsx("input",{className:"w-full text-xs bg-muted/50 pl-1 pr-1 py-1.5 rounded-md border border-transparent focus:border-primary focus:bg-muted focus:outline-none font-mono text-center transition-all",value:d.rgb[p],onChange:y=>b("rgb",y.target.value,p)}),l.jsx("span",{className:"absolute left-1.5 top-1/2 -translate-y-1/2 text-[9px] font-bold text-muted-foreground uppercase pointer-events-none opacity-50",children:p})]},p))}),i==="hsl"&&l.jsx("div",{className:"grid grid-cols-3 gap-2",children:["h","s","l"].map(p=>l.jsxs("div",{className:"relative",children:[l.jsx("input",{className:"w-full text-xs bg-muted/50 pl-1 pr-1 py-1.5 rounded-md border border-transparent focus:border-primary focus:bg-muted focus:outline-none font-mono text-center transition-all",value:Math.round(Number(d.hsl[p])),onChange:y=>b("hsl",y.target.value,p)}),l.jsx("span",{className:"absolute left-1.5 top-1/2 -translate-y-1/2 text-[9px] font-bold text-muted-foreground uppercase pointer-events-none opacity-50",children:p})]},p))})]})]})})})]})},nb=({options:e,value:t,onChange:r,placeholder:n="Select...",searchPlaceholder:o="Search...",className:a,allowCreate:s=!0,emptyMessage:i="No results found.",createLabelPrefix:u="Create"})=>{const[c,d]=E.useState(!1),[f,h]=E.useState(""),v=e.find(b=>b.value===t);return l.jsxs(bt,{open:c,onOpenChange:d,children:[l.jsx(yt,{asChild:!0,children:l.jsxs(pe,{variant:"outline",role:"combobox","aria-expanded":c,className:R("w-full justify-between bg-card hover:bg-muted font-normal",a),children:[t?(v==null?void 0:v.label)||t:l.jsx("span",{className:"text-muted-foreground",children:n}),l.jsx(hn,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),l.jsx(ft,{className:"w-[300px] p-0",align:"start",children:l.jsxs(Ht,{children:[l.jsx(Yt,{placeholder:o,value:f,onValueChange:h}),l.jsx(zt,{className:"py-2 px-4 text-sm text-muted-foreground text-center",children:s&&f?l.jsxs("div",{className:"flex items-center gap-2 cursor-pointer hover:text-primary transition-colors",onClick:()=>{r(f),d(!1),h("")},children:[l.jsx(wr,{className:"w-4 h-4"}),l.jsxs("span",{children:[u,' "',f,'"']})]}):l.jsx("span",{children:i})}),l.jsxs(Vt,{className:"max-h-[200px] overflow-y-auto overflow-x-hidden p-1",children:[e.map(b=>l.jsxs(Ct,{value:`${b.label} ${b.value}`,onSelect:()=>{r(b.value),d(!1),h("")},children:[l.jsx(nr,{className:R("mr-2 h-4 w-4",t===b.value?"opacity-100":"opacity-0")}),b.label]},b.value)),s&&f&&!e.some(b=>b.value===f)&&l.jsxs(Ct,{value:f,onSelect:()=>{r(f),d(!1),h("")},className:"text-primary font-medium",children:[l.jsx(wr,{className:"mr-2 h-4 w-4"}),u,' "',f,'"']})]})]})})]})};function ob({title:e,icon:t,count:r,countLabel:n,children:o,className:a,...s}){return l.jsxs("div",{className:R("w-full h-auto min-h-[5rem] border-b border-border flex items-center justify-between py-4 px-6 bg-card/30 shrink-0",a),...s,children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(t,{className:"w-6 h-6 text-primary"}),l.jsx("h1",{className:"text-xl font-bold tracking-tight text-foreground",children:e})]}),r!==void 0&&l.jsxs("div",{className:"bg-primary/20 text-primary text-xs font-bold px-2 py-0.5 rounded-full",children:[r," ",(n||"Records").toUpperCase()]})]}),l.jsx("div",{className:"flex items-center gap-3",children:o})]})}function ab({items:e,activeRoute:t,onNavigate:r,collapsed:n=!1,onToggleCollapse:o,footer:a,children:s,className:i}){const u=({item:c})=>{if(c.divider)return l.jsx("div",{className:"my-2 border-b border-white/5 opacity-50"});const d=c.icon,f=c.route&&t===c.route;return l.jsxs(pe,{variant:"ghost",className:R("w-full justify-start gap-3 relative transition-all duration-200 border",n&&"justify-center px-0",f?"bg-primary/10 text-primary border-primary/50 shadow-[inset_3px_0_0_0_var(--primary)]":"border-transparent text-muted-foreground hover:text-foreground hover:bg-muted",i),onClick:()=>{c.onClick&&c.onClick(),c.route&&r&&r(c.route)},title:n?c.label:void 0,children:[l.jsx(d,{className:R("h-5 w-5 shrink-0",f?"text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]":"")}),!n&&l.jsx("span",{className:R("truncate font-medium",f?"text-foreground":"text-muted-foreground"),children:c.label}),n&&f&&l.jsx("div",{className:"absolute inset-0 bg-primary/10 rounded-md z-[-1]"})]})};return l.jsxs("div",{className:R("h-full flex flex-col items-center py-4 border-r border-border transition-all duration-300 bg-card",n?"w-16 px-2":"w-60 px-3",i),children:[l.jsxs("div",{className:"flex-1 flex flex-col gap-1 w-full overflow-y-auto pr-1 no-scrollbar",children:[e.map((c,d)=>l.jsx(u,{item:c},d)),s]}),l.jsxs("div",{className:"mt-auto w-full flex flex-col gap-2 pt-4 border-t border-border",children:[a,o&&l.jsx("button",{onClick:o,className:R("flex items-center justify-center p-2 rounded-lg hover:bg-muted transition-colors text-muted-foreground hover:text-foreground w-full mt-2"),children:n?l.jsx(mn,{className:"h-5 w-5"}):l.jsx(ua,{className:"h-5 w-5"})})]})]})}const wl=m.forwardRef(({className:e,...t},r)=>l.jsx("div",{className:"relative w-full overflow-auto",children:l.jsx("table",{ref:r,className:R("w-full caption-bottom text-sm",e),...t})}));wl.displayName="MriTable";const Cl=m.forwardRef(({className:e,...t},r)=>l.jsx("thead",{ref:r,className:R("[&_tr]:border-b",e),...t}));Cl.displayName="MriTableHeader";const Nl=m.forwardRef(({className:e,...t},r)=>l.jsx("tbody",{ref:r,className:R("[&_tr:last-child]:border-0",e),...t}));Nl.displayName="MriTableBody";const Sl=m.forwardRef(({className:e,...t},r)=>l.jsx("tfoot",{ref:r,className:R("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Sl.displayName="MriTableFooter";const jl=m.forwardRef(({className:e,...t},r)=>l.jsx("tr",{ref:r,className:R("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));jl.displayName="MriTableRow";const Ml=m.forwardRef(({className:e,...t},r)=>l.jsx("th",{ref:r,className:R("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...t}));Ml.displayName="MriTableHead";const kl=m.forwardRef(({className:e,...t},r)=>l.jsx("td",{ref:r,className:R("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...t}));kl.displayName="MriTableCell";const Pl=m.forwardRef(({className:e,...t},r)=>l.jsx("caption",{ref:r,className:R("mt-4 text-sm text-muted-foreground",e),...t}));Pl.displayName="MriTableCaption";const sb=({pressedKeys:e,className:t})=>{const r=o=>e.includes(o.toUpperCase()),n=({label:o,code:a,className:s,style:i})=>{const u=r(a||o);return l.jsx("div",{style:i,className:R("h-8 flex items-center justify-center rounded-md border text-[10px] font-bold transition-all duration-100 select-none shrink-0 shadow-sm",u?"bg-primary text-primary-foreground border-primary shadow-[0_0_15px_rgba(var(--primary),0.5)] scale-90 z-10":"bg-black/40 text-white/70 border-white/20 backdrop-blur-md",s),children:o})};return l.jsxs("div",{className:R("p-4 bg-black/40 backdrop-blur-3xl rounded-3xl border border-white/10 flex gap-6 w-fit mx-auto shadow-2xl overflow-hidden",t),children:[l.jsxs("div",{className:"flex flex-col gap-1.5 w-[480px] shrink-0",children:[l.jsxs("div",{className:"flex gap-1.5 mb-1",children:[l.jsx(n,{label:"ESC",className:"w-10 mr-4"}),l.jsxs("div",{className:"flex gap-1",children:[l.jsx(n,{label:"F1",className:"w-9"}),l.jsx(n,{label:"F2",className:"w-9"}),l.jsx(n,{label:"F3",className:"w-9"}),l.jsx(n,{label:"F4",className:"w-9"})]}),l.jsx("div",{className:"w-2"}),l.jsxs("div",{className:"flex gap-1",children:[l.jsx(n,{label:"F5",className:"w-9"}),l.jsx(n,{label:"F6",className:"w-9"}),l.jsx(n,{label:"F7",className:"w-9"}),l.jsx(n,{label:"F8",className:"w-9"})]}),l.jsx("div",{className:"w-2"}),l.jsxs("div",{className:"flex gap-1",children:[l.jsx(n,{label:"F9",className:"w-9"}),l.jsx(n,{label:"F10",className:"w-9"}),l.jsx(n,{label:"F11",className:"w-9"}),l.jsx(n,{label:"F12",className:"w-9"})]})]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsx(n,{label:"~",className:"w-8"}),["1","2","3","4","5","6","7","8","9","0","-","="].map(o=>l.jsx(n,{label:o,className:"flex-1"},o)),l.jsx(n,{label:"BACK",className:"w-16"})]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsx(n,{label:"TAB",className:"w-14"}),["Q","W","E","R","T","Y","U","I","O","P","[","]","\\"].map(o=>l.jsx(n,{label:o,className:"flex-1"},o))]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsx(n,{label:"CAPS",className:"w-16"}),["A","S","D","F","G","H","J","K","L",";","'"].map(o=>l.jsx(n,{label:o,className:"flex-1"},o)),l.jsx(n,{label:"ENTER",className:"w-24"})]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsx(n,{label:"SHIFT",className:"w-24"}),["Z","X","C","V","B","N","M",",",".","/"].map(o=>l.jsx(n,{label:o,className:"flex-1"},o)),l.jsx(n,{label:"SHIFT",className:"w-28"})]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsx(n,{label:"CTRL",className:"w-14"}),l.jsx(n,{label:"WIN",className:"w-14"}),l.jsx(n,{label:"ALT",className:"w-14"}),l.jsx(n,{label:"SPACE",className:"flex-[6] h-8"}),l.jsx(n,{label:"ALT",className:"w-14"}),l.jsx(n,{label:"WIN",className:"w-14"}),l.jsx(n,{label:"CTRL",className:"w-14"})]})]}),l.jsxs("div",{className:"flex flex-col gap-6 shrink-0",children:[l.jsx("div",{className:"h-9 mb-1 invisible"})," ",l.jsxs("div",{className:"grid grid-cols-3 gap-1 w-[124px]",children:[["INS","HM","PU"].map(o=>l.jsx(n,{label:o,code:o==="HM"?"HOME":o==="PU"?"PGUP":o,className:"h-8"},o)),["DEL","END","PD"].map(o=>l.jsx(n,{label:o,code:o==="PD"?"PGDN":o,className:"h-8"},o))]}),l.jsxs("div",{className:"grid grid-cols-3 gap-1 w-[124px] mt-auto",children:[l.jsx("div",{}),l.jsx(n,{label:"UP",code:"UP",className:"h-8"}),l.jsx("div",{}),l.jsx(n,{label:"LFT",code:"LEFT",className:"h-8"}),l.jsx(n,{label:"DWN",code:"DOWN",className:"h-8"}),l.jsx(n,{label:"RGT",code:"RIGHT",className:"h-8"})]})]}),l.jsxs("div",{className:"flex flex-col gap-1 w-[130px] shrink-0",children:[l.jsx("div",{className:"h-9 mb-1 invisible"})," ",l.jsxs("div",{className:"flex gap-1",children:[l.jsx(n,{label:"NM",code:"NUM",className:"w-8"}),l.jsx(n,{label:"/",code:"NUM /",className:"w-8"}),l.jsx(n,{label:"*",code:"NUM *",className:"w-8"}),l.jsx(n,{label:"-",code:"NUM -",className:"w-8"})]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex gap-1",children:[l.jsx(n,{label:"7",code:"NUM 7",className:"w-8"}),l.jsx(n,{label:"8",code:"NUM 8",className:"w-8"}),l.jsx(n,{label:"9",code:"NUM 9",className:"w-8"})]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsx(n,{label:"4",code:"NUM 4",className:"w-8"}),l.jsx(n,{label:"5",code:"NUM 5",className:"w-8"}),l.jsx(n,{label:"6",code:"NUM 6",className:"w-8"})]})]}),l.jsx(n,{label:"+",code:"NUM +",className:"w-8 h-[68px]"})]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsxs("div",{className:"flex gap-1",children:[l.jsx(n,{label:"1",code:"NUM 1",className:"w-8"}),l.jsx(n,{label:"2",code:"NUM 2",className:"w-8"}),l.jsx(n,{label:"3",code:"NUM 3",className:"w-8"})]}),l.jsxs("div",{className:"flex gap-1",children:[l.jsx(n,{label:"0",code:"NUM 0",className:"w-[40px]"}),l.jsx(n,{label:".",code:"NUM .",className:"w-8"})]})]}),l.jsx(n,{label:"EN",code:"NUM ENTER",className:"w-8 h-[68px]"})]})]}),l.jsxs("div",{className:"flex flex-col gap-2 w-24",children:[l.jsxs("div",{className:"h-32 border border-white/10 rounded-t-[2.5rem] flex relative overflow-hidden bg-black/20",children:[l.jsx("div",{className:R("flex-1 border-r border-white/10 transition-all duration-100",r("LMB")?"bg-primary/80 shadow-[inset_0_0_20px_rgba(var(--primary),0.4)]":"bg-transparent")}),l.jsx("div",{className:R("flex-1 transition-all duration-100",r("RMB")?"bg-primary/80 shadow-[inset_0_0_20px_rgba(var(--primary),0.4)]":"bg-transparent")}),l.jsx("div",{className:"absolute top-8 left-1/2 -translate-x-1/2 w-4 h-12 rounded-full border border-white/10 bg-black/40 shadow-inner"})]}),l.jsx("div",{className:"h-20 border border-white/10 rounded-b-[2.5rem] bg-black/20"})]})]})};O.MriActionButton=fh,O.MriActionDropdown=mh,O.MriActionModal=hh,O.MriBadge=xc,O.MriBanIcon=Zc,O.MriBringIcon=Yc,O.MriButton=pe,O.MriCalendar=ko,O.MriCard=ka,O.MriCardContent=Da,O.MriCardDescription=_a,O.MriCardFooter=Oa,O.MriCardHeader=Pa,O.MriCardTitle=Ea,O.MriClothingIcon=Xc,O.MriColorPicker=rb,O.MriCommand=Ht,O.MriCommandEmpty=zt,O.MriCommandGroup=Vt,O.MriCommandInput=Yt,O.MriCommandItem=Ct,O.MriCommandList=ji,O.MriCommandSeparator=Mi,O.MriCommandShortcut=ki,O.MriCompactSearch=Zm,O.MriCopyButton=uh,O.MriCreatableCombobox=nb,O.MriDatePicker=_g,O.MriDialog=Jm,O.MriEconomyCard=dh,O.MriEyeIcon=Gc,O.MriGridActionButton=vh,O.MriInput=Cr,O.MriKeyboardVisualizer=sb,O.MriKickIcon=Qc,O.MriModal=ao,O.MriMoneyIcon=qc,O.MriPageHeader=ob,O.MriPopover=bt,O.MriPopoverContent=ft,O.MriPopoverTrigger=yt,O.MriReviveIcon=Vc,O.MriScrollArea=Er,O.MriScrollBar=wn,O.MriSearchInput=ph,O.MriSectionHeader=gh,O.MriSelectSearch=eh,O.MriSendBackIcon=zc,O.MriSidebar=ab,O.MriSpinner=Pu,O.MriStatusBadge=ku,O.MriTable=wl,O.MriTableBody=Nl,O.MriTableCaption=Pl,O.MriTableCell=kl,O.MriTableFooter=Sl,O.MriTableHead=Ml,O.MriTableHeader=Cl,O.MriTableRow=jl,O.MriTeleportIcon=Hc,O.MriThemeToggle=ah,O.MriTimePicker=ch,O.MriVerifyIcon=Uc,O.MriWarnIcon=Kc,O.cn=R,O.mriBadgeVariants=Jo,O.mriButtonVariants=xr,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});