@mriqbox/ui-kit 2.1.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/bin/cli.js +75 -28
  2. package/dist/components/{ui → atoms}/MriButton.d.ts +1 -0
  3. package/dist/components/{ui → atoms}/MriButton.stories.d.ts +1 -0
  4. package/dist/components/atoms/MriInput.d.ts +8 -0
  5. package/dist/components/{ui → 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/MriStatusBadge.d.ts +7 -0
  9. package/dist/components/atoms/MriStatusBadge.stories.d.ts +10 -0
  10. package/dist/components/{ui → atoms}/mri-badge-variants.d.ts +1 -1
  11. package/dist/components/{ui → atoms}/mri-button-variants.d.ts +1 -1
  12. package/dist/components/{ui → molecules}/MriCommand.d.ts +3 -3
  13. package/dist/components/{ui → molecules}/MriCompactSearch.d.ts +3 -1
  14. package/dist/components/{ui → molecules}/MriCompactSearch.stories.d.ts +2 -0
  15. package/dist/components/molecules/MriCopyButton.d.ts +7 -0
  16. package/dist/components/molecules/MriCopyButton.stories.d.ts +8 -0
  17. package/dist/components/{ui → molecules}/MriDatePicker.d.ts +3 -1
  18. package/dist/components/{ui → molecules}/MriDatePicker.stories.d.ts +2 -0
  19. package/dist/components/molecules/MriDrawer.d.ts +19 -0
  20. package/dist/components/molecules/MriDrawer.stories.d.ts +13 -0
  21. package/dist/components/molecules/MriEconomyCard.d.ts +8 -0
  22. package/dist/components/molecules/MriEconomyCard.stories.d.ts +8 -0
  23. package/dist/components/molecules/MriGridActionButton.d.ts +11 -0
  24. package/dist/components/molecules/MriGridActionButton.stories.d.ts +9 -0
  25. package/dist/components/{ui → molecules}/MriModal.stories.d.ts +1 -0
  26. package/dist/components/molecules/MriSearchInput.d.ts +10 -0
  27. package/dist/components/molecules/MriSearchInput.stories.d.ts +10 -0
  28. package/dist/components/molecules/MriSectionHeader.d.ts +8 -0
  29. package/dist/components/molecules/MriSectionHeader.stories.d.ts +8 -0
  30. package/dist/components/{ui → molecules}/MriSelectSearch.d.ts +4 -1
  31. package/dist/components/{ui → molecules}/MriSelectSearch.stories.d.ts +3 -0
  32. package/dist/components/{ui → molecules}/MriTimePicker.d.ts +3 -1
  33. package/dist/components/{ui → molecules}/MriTimePicker.stories.d.ts +2 -0
  34. package/dist/index.d.ts +28 -15
  35. package/dist/index.es.js +8239 -4453
  36. package/dist/index.umd.js +107 -62
  37. package/dist/style.css +1 -1
  38. package/package.json +3 -2
  39. package/dist/components/ui/MriInput.d.ts +0 -2
  40. package/dist/components/ui/index.d.ts +0 -22
  41. /package/dist/components/{ui → atoms}/MriBadge.d.ts +0 -0
  42. /package/dist/components/{ui → atoms}/MriBadge.stories.d.ts +0 -0
  43. /package/dist/components/{ui → atoms}/MriIcons.d.ts +0 -0
  44. /package/dist/components/{ui → atoms}/MriIcons.stories.d.ts +0 -0
  45. /package/dist/components/{ui → atoms}/MriScrollArea.d.ts +0 -0
  46. /package/dist/components/{ui → molecules}/MriButtonGroup.d.ts +0 -0
  47. /package/dist/components/{ui → molecules}/MriButtonGroup.stories.d.ts +0 -0
  48. /package/dist/components/{ui → molecules}/MriCard.d.ts +0 -0
  49. /package/dist/components/{ui → molecules}/MriCard.stories.d.ts +0 -0
  50. /package/dist/components/{ui → molecules}/MriCommand.stories.d.ts +0 -0
  51. /package/dist/components/{ui → molecules}/MriDialog.d.ts +0 -0
  52. /package/dist/components/{ui → molecules}/MriDialog.stories.d.ts +0 -0
  53. /package/dist/components/{ui → molecules}/MriModal.d.ts +0 -0
  54. /package/dist/components/{ui → molecules}/MriPopover.d.ts +0 -0
  55. /package/dist/components/{ui → molecules}/MriPopover.stories.d.ts +0 -0
  56. /package/dist/components/{ui → molecules}/MriThemeToggle.d.ts +0 -0
  57. /package/dist/components/{ui → molecules}/MriThemeToggle.stories.d.ts +0 -0
  58. /package/dist/components/{ui → organisms}/MriCalendar.d.ts +0 -0
  59. /package/dist/components/{ui → organisms}/MriPageHeader.d.ts +0 -0
  60. /package/dist/components/{ui → organisms}/MriPageHeader.stories.d.ts +0 -0
  61. /package/dist/components/{ui → organisms}/MriSidebar.d.ts +0 -0
  62. /package/dist/components/{ui → organisms}/MriSidebar.stories.d.ts +0 -0
  63. /package/dist/components/{ui → organisms}/MriTable.d.ts +0 -0
  64. /package/dist/components/{ui → organisms}/MriTable.stories.d.ts +0 -0
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(N,le){typeof exports=="object"&&typeof module<"u"?le(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],le):(N=typeof globalThis<"u"?globalThis:N||self,le(N.MriUiKit={},N.React,N.ReactDOM))})(this,function(N,le,Zr){"use strict";function Jr(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 l=Jr(le),Qr=Jr(Zr);var Jt={exports:{}},pt={};/**
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,po){"use strict";function go(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=go(B),bo=go(po);var Xr={exports:{}},Bt={};/**
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 en;function Wi(){if(en)return pt;en=1;var e=le,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,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,u,c){var d,p={},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)&&!i.hasOwnProperty(d)&&(p[d]=u[d]);if(a&&a.defaultProps)for(d in u=a.defaultProps,u)p[d]===void 0&&(p[d]=u[d]);return{$$typeof:t,type:a,key:h,ref:v,props:p,_owner:o.current}}return pt.Fragment=r,pt.jsx=s,pt.jsxs=s,pt}var mt={};/**
9
+ */var yo;function Ks(){if(yo)return Bt;yo=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={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,101 +14,146 @@
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 tn;function $i(){return tn||(tn=1,process.env.NODE_ENV!=="production"&&function(){var e=le,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),y=Symbol.iterator,g="@@iterator";function b(f){if(f===null||typeof f!="object")return null;var C=y&&f[y]||f[g];return typeof C=="function"?C:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(f){{for(var C=arguments.length,A=new Array(C>1?C-1:0),_=1;_<C;_++)A[_-1]=arguments[_];P("error",f,A)}}function P(f,C,A){{var _=w.ReactDebugCurrentFrame,q=_.getStackAddendum();q!==""&&(C+="%s",A=A.concat([q]));var ee=A.map(function(H){return String(H)});ee.unshift("Warning: "+C),Function.prototype.apply.call(console[f],console,ee)}}var R=!1,S=!1,M=!1,k=!1,B=!1,G;G=Symbol.for("react.module.reference");function z(f){return!!(typeof f=="string"||typeof f=="function"||f===n||f===i||B||f===o||f===c||f===d||k||f===v||R||S||M||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===p||f.$$typeof===s||f.$$typeof===a||f.$$typeof===u||f.$$typeof===G||f.getModuleId!==void 0))}function K(f,C,A){var _=f.displayName;if(_)return _;var q=C.displayName||C.name||"";return q!==""?A+"("+q+")":A}function j(f){return f.displayName||"Context"}function V(f){if(f==null)return null;if(typeof f.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case a:var C=f;return j(C)+".Consumer";case s:var A=f;return j(A._context)+".Provider";case u:return K(f,f.render,"ForwardRef");case p:var _=f.displayName||null;return _!==null?_:V(f.type)||"Memo";case h:{var q=f,ee=q._payload,H=q._init;try{return V(H(ee))}catch{return null}}}return null}var L=Object.assign,J=0,Y,Z,D,Q,se,ie,E;function T(){}T.__reactDisabledLog=!0;function F(){{if(J===0){Y=console.log,Z=console.info,D=console.warn,Q=console.error,se=console.group,ie=console.groupCollapsed,E=console.groupEnd;var f={configurable:!0,enumerable:!0,value:T,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}J++}}function O(){{if(J--,J===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},f,{value:Y}),info:L({},f,{value:Z}),warn:L({},f,{value:D}),error:L({},f,{value:Q}),group:L({},f,{value:se}),groupCollapsed:L({},f,{value:ie}),groupEnd:L({},f,{value:E})})}J<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=w.ReactCurrentDispatcher,X;function ne(f,C,A){{if(X===void 0)try{throw Error()}catch(q){var _=q.stack.trim().match(/\n( *(at )?)/);X=_&&_[1]||""}return`
18
- `+X+f}}var re=!1,ge;{var Kt=typeof WeakMap=="function"?WeakMap:Map;ge=new Kt}function Et(f,C){if(!f||re)return"";{var A=ge.get(f);if(A!==void 0)return A}var _;re=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ee;ee=U.current,U.current=null,F();try{if(C){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(fe){_=fe}Reflect.construct(f,[],H)}else{try{H.call()}catch(fe){_=fe}f.call(H.prototype)}}else{try{throw Error()}catch(fe){_=fe}f()}}catch(fe){if(fe&&_&&typeof fe.stack=="string"){for(var W=fe.stack.split(`
19
- `),ce=_.stack.split(`
20
- `),oe=W.length-1,ae=ce.length-1;oe>=1&&ae>=0&&W[oe]!==ce[ae];)ae--;for(;oe>=1&&ae>=0;oe--,ae--)if(W[oe]!==ce[ae]){if(oe!==1||ae!==1)do if(oe--,ae--,ae<0||W[oe]!==ce[ae]){var ve=`
21
- `+W[oe].replace(" at new "," at ");return f.displayName&&ve.includes("<anonymous>")&&(ve=ve.replace("<anonymous>",f.displayName)),typeof f=="function"&&ge.set(f,ve),ve}while(oe>=1&&ae>=0);break}}}finally{re=!1,U.current=ee,O(),Error.prepareStackTrace=q}var ft=f?f.displayName||f.name:"",Ye=ft?ne(ft):"";return typeof f=="function"&&ge.set(f,Ye),Ye}function Ue(f,C,A){return Et(f,!1)}function Xt(f){var C=f.prototype;return!!(C&&C.isReactComponent)}function ut(f,C,A){if(f==null)return"";if(typeof f=="function")return Et(f,Xt(f));if(typeof f=="string")return ne(f);switch(f){case c:return ne("Suspense");case d:return ne("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case u:return Ue(f.render);case p:return ut(f.type,C,A);case h:{var _=f,q=_._payload,ee=_._init;try{return ut(ee(q),C,A)}catch{}}}return""}var Ge=Object.prototype.hasOwnProperty,qt={},Zt=w.ReactDebugCurrentFrame;function Oe(f){if(f){var C=f._owner,A=ut(f.type,f._source,C?C.type:null);Zt.setExtraStackFrame(A)}else Zt.setExtraStackFrame(null)}function Fu(f,C,A,_,q){{var ee=Function.call.bind(Ge);for(var H in f)if(ee(f,H)){var W=void 0;try{if(typeof f[H]!="function"){var ce=Error((_||"React class")+": "+A+" type `"+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[H]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ce.name="Invariant Violation",ce}W=f[H](C,H,_,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){W=oe}W&&!(W instanceof Error)&&(Oe(q),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",A,H,typeof W),Oe(null)),W instanceof Error&&!(W.message in qt)&&(qt[W.message]=!0,Oe(q),x("Failed %s type: %s",A,W.message),Oe(null))}}}var Wu=Array.isArray;function Gr(f){return Wu(f)}function $u(f){{var C=typeof Symbol=="function"&&Symbol.toStringTag,A=C&&f[Symbol.toStringTag]||f.constructor.name||"Object";return A}}function Bu(f){try{return Pi(f),!1}catch{return!0}}function Pi(f){return""+f}function Ai(f){if(Bu(f))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",$u(f)),Pi(f)}var Mi=w.ReactCurrentOwner,zu={key:!0,ref:!0,__self:!0,__source:!0},Ni,Oi;function Vu(f){if(Ge.call(f,"ref")){var C=Object.getOwnPropertyDescriptor(f,"ref").get;if(C&&C.isReactWarning)return!1}return f.ref!==void 0}function Hu(f){if(Ge.call(f,"key")){var C=Object.getOwnPropertyDescriptor(f,"key").get;if(C&&C.isReactWarning)return!1}return f.key!==void 0}function Uu(f,C){typeof f.ref=="string"&&Mi.current}function Gu(f,C){{var A=function(){Ni||(Ni=!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)",C))};A.isReactWarning=!0,Object.defineProperty(f,"key",{get:A,configurable:!0})}}function Yu(f,C){{var A=function(){Oi||(Oi=!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)",C))};A.isReactWarning=!0,Object.defineProperty(f,"ref",{get:A,configurable:!0})}}var Ku=function(f,C,A,_,q,ee,H){var W={$$typeof:t,type:f,key:C,ref:A,props:H,_owner:ee};return W._store={},Object.defineProperty(W._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(W,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.defineProperty(W,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(W.props),Object.freeze(W)),W};function Xu(f,C,A,_,q){{var ee,H={},W=null,ce=null;A!==void 0&&(Ai(A),W=""+A),Hu(C)&&(Ai(C.key),W=""+C.key),Vu(C)&&(ce=C.ref,Uu(C,q));for(ee in C)Ge.call(C,ee)&&!zu.hasOwnProperty(ee)&&(H[ee]=C[ee]);if(f&&f.defaultProps){var oe=f.defaultProps;for(ee in oe)H[ee]===void 0&&(H[ee]=oe[ee])}if(W||ce){var ae=typeof f=="function"?f.displayName||f.name||"Unknown":f;W&&Gu(H,ae),ce&&Yu(H,ae)}return Ku(f,W,ce,q,_,Mi.current,H)}}var Yr=w.ReactCurrentOwner,ji=w.ReactDebugCurrentFrame;function dt(f){if(f){var C=f._owner,A=ut(f.type,f._source,C?C.type:null);ji.setExtraStackFrame(A)}else ji.setExtraStackFrame(null)}var Kr;Kr=!1;function Xr(f){return typeof f=="object"&&f!==null&&f.$$typeof===t}function Ti(){{if(Yr.current){var f=V(Yr.current.type);if(f)return`
17
+ */var wo;function Qs(){return wo||(wo=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,j=!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||j||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,_,S,J,le,se,P;function F(){}F.__reactDisabledLog=!0;function q(){{if(Z===0){K=console.log,_=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:_}),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,je;{var zr=typeof WeakMap=="function"?WeakMap:Map;je=new zr}function or(p,M){if(!p||ce)return"";{var D=je.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
+ `),ye=$.stack.split(`
20
+ `),de=X.length-1,me=ye.length-1;de>=1&&me>=0&&X[de]!==ye[me];)me--;for(;de>=1&&me>=0;de--,me--)if(X[de]!==ye[me]){if(de!==1||me!==1)do if(de--,me--,me<0||X[de]!==ye[me]){var _e=`
21
+ `+X[de].replace(" at new "," at ");return p.displayName&&_e.includes("<anonymous>")&&(_e=_e.replace("<anonymous>",p.displayName)),typeof p=="function"&&je.set(p,_e),_e}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"&&je.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 Bp(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 ye=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 ye.name="Invariant Violation",ye}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 Yp=Array.isArray;function uo(p){return Yp(p)}function Hp(p){{var M=typeof Symbol=="function"&&Symbol.toStringTag,D=M&&p[Symbol.toStringTag]||p.constructor.name||"Object";return D}}function zp(p){try{return Is(p),!1}catch{return!0}}function Is(p){return""+p}function Fs(p){if(zp(p))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Hp(p)),Is(p)}var $s=w.ReactCurrentOwner,Vp={key:!0,ref:!0,__self:!0,__source:!0},Bs,Ys;function Up(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 qp(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 Xp(p,M){typeof p.ref=="string"&&$s.current}function Gp(p,M){{var D=function(){Bs||(Bs=!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 Kp(p,M){{var D=function(){Ys||(Ys=!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 Qp=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 Jp(p,M,D,$,te){{var oe,G={},X=null,ye=null;D!==void 0&&(Fs(D),X=""+D),qp(M)&&(Fs(M.key),X=""+M.key),Up(M)&&(ye=M.ref,Xp(M,te));for(oe in M)gt.call(M,oe)&&!Vp.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||ye){var me=typeof p=="function"?p.displayName||p.name||"Unknown":p;X&&Gp(G,me),ye&&Kp(G,me)}return Qp(p,X,ye,te,$,$s.current,G)}}var fo=w.ReactCurrentOwner,Hs=w.ReactDebugCurrentFrame;function Ft(p){if(p){var M=p._owner,D=It(p.type,p._source,M?M.type:null);Hs.setExtraStackFrame(D)}else Hs.setExtraStackFrame(null)}var mo;mo=!1;function ho(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function zs(){{if(fo.current){var p=U(fo.current.type);if(p)return`
22
22
 
23
- Check the render method of \``+f+"`."}return""}}function qu(f){return""}var _i={};function Zu(f){{var C=Ti();if(!C){var A=typeof f=="string"?f:f.displayName||f.name;A&&(C=`
23
+ Check the render method of \``+p+"`."}return""}}function Zp(p){return""}var Vs={};function eg(p){{var M=zs();if(!M){var D=typeof p=="string"?p:p.displayName||p.name;D&&(M=`
24
24
 
25
- Check the top-level render call using <`+A+">.")}return C}}function Di(f,C){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var A=Zu(C);if(_i[A])return;_i[A]=!0;var _="";f&&f._owner&&f._owner!==Yr.current&&(_=" It was passed a child from "+V(f._owner.type)+"."),dt(f),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',A,_),dt(null)}}function Ii(f,C){{if(typeof f!="object")return;if(Gr(f))for(var A=0;A<f.length;A++){var _=f[A];Xr(_)&&Di(_,C)}else if(Xr(f))f._store&&(f._store.validated=!0);else if(f){var q=b(f);if(typeof q=="function"&&q!==f.entries)for(var ee=q.call(f),H;!(H=ee.next()).done;)Xr(H.value)&&Di(H.value,C)}}}function Ju(f){{var C=f.type;if(C==null||typeof C=="string")return;var A;if(typeof C=="function")A=C.propTypes;else if(typeof C=="object"&&(C.$$typeof===u||C.$$typeof===p))A=C.propTypes;else return;if(A){var _=V(C);Fu(A,f.props,"prop",_,f)}else if(C.PropTypes!==void 0&&!Kr){Kr=!0;var q=V(C);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof C.getDefaultProps=="function"&&!C.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qu(f){{for(var C=Object.keys(f.props),A=0;A<C.length;A++){var _=C[A];if(_!=="children"&&_!=="key"){dt(f),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_),dt(null);break}}f.ref!==null&&(dt(f),x("Invalid attribute `ref` supplied to `React.Fragment`."),dt(null))}}var Li={};function Fi(f,C,A,_,q,ee){{var H=z(f);if(!H){var W="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(W+=" 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 ce=qu();ce?W+=ce:W+=Ti();var oe;f===null?oe="null":Gr(f)?oe="array":f!==void 0&&f.$$typeof===t?(oe="<"+(V(f.type)||"Unknown")+" />",W=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof f,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,W)}var ae=Xu(f,C,A,q,ee);if(ae==null)return ae;if(H){var ve=C.children;if(ve!==void 0)if(_)if(Gr(ve)){for(var ft=0;ft<ve.length;ft++)Ii(ve[ft],f);Object.freeze&&Object.freeze(ve)}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 Ii(ve,f)}if(Ge.call(C,"key")){var Ye=V(f),fe=Object.keys(C).filter(function(id){return id!=="key"}),qr=fe.length>0?"{key: someKey, "+fe.join(": ..., ")+": ...}":"{key: someKey}";if(!Li[Ye+qr]){var od=fe.length>0?"{"+fe.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+D+">.")}return M}}function Us(p,M){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var D=eg(M);if(Vs[D])return;Vs[D]=!0;var $="";p&&p._owner&&p._owner!==fo.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 qs(p,M){{if(typeof p!="object")return;if(uo(p))for(var D=0;D<p.length;D++){var $=p[D];ho($)&&Us($,M)}else if(ho(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;)ho(G.value)&&Us(G.value,M)}}}function tg(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);Bp(D,p.props,"prop",$,p)}else if(M.PropTypes!==void 0&&!mo){mo=!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 rg(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 Xs={};function Gs(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 ye=Zp();ye?X+=ye:X+=zs();var de;p===null?de="null":uo(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=Jp(p,M,D,te,oe);if(me==null)return me;if(G){var _e=M.children;if(_e!==void 0)if($)if(uo(_e)){for(var $t=0;$t<_e.length;$t++)qs(_e[$t],p);Object.freeze&&Object.freeze(_e)}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 qs(_e,p)}if(gt.call(M,"key")){var bt=U(p),Me=Object.keys(M).filter(function(lg){return lg!=="key"}),vo=Me.length>0?"{key: someKey, "+Me.join(": ..., ")+": ...}":"{key: someKey}";if(!Xs[bt+vo]){var sg=Me.length>0?"{"+Me.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,qr,Ye,od,Ye),Li[Ye+qr]=!0}}return f===n?Qu(ae):Ju(ae),ae}}function ed(f,C,A){return Fi(f,C,A,!0)}function td(f,C,A){return Fi(f,C,A,!1)}var rd=td,nd=ed;mt.Fragment=n,mt.jsx=rd,mt.jsxs=nd}()),mt}process.env.NODE_ENV==="production"?Jt.exports=Wi():Jt.exports=$i();var m=Jt.exports;function rn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function je(...e){return t=>{let r=!1;const n=e.map(o=>{const i=rn(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():rn(e[o],null)}}}}function be(...e){return l.useCallback(je(...e),e)}var Bi=Symbol.for("react.lazy"),Rt=l[" use ".trim().toString()];function zi(e){return typeof e=="object"&&e!==null&&"then"in e}function nn(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Bi&&"_payload"in e&&zi(e._payload)}function on(e){const t=Hi(e),r=l.forwardRef((n,o)=>{let{children:i,...s}=n;nn(i)&&typeof Rt=="function"&&(i=Rt(i._payload));const a=l.Children.toArray(i),u=a.find(Gi);if(u){const c=u.props.children,d=a.map(p=>p===u?l.Children.count(c)>1?l.Children.only(null):l.isValidElement(c)?c.props.children:null:p);return m.jsx(t,{...s,ref:o,children:l.isValidElement(c)?l.cloneElement(c,void 0,d):null})}return m.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Vi=on("Slot");function Hi(e){const t=l.forwardRef((r,n)=>{let{children:o,...i}=r;if(nn(o)&&typeof Rt=="function"&&(o=Rt(o._payload)),l.isValidElement(o)){const s=Ki(o),a=Yi(i,o.props);return o.type!==l.Fragment&&(a.ref=n?je(n,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ui=Symbol("radix.slottable");function Gi(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ui}function Yi(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Ki(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 an(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=an(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function sn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=an(e))&&(n&&(n+=" "),n+=t);return n}const ln=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cn=sn,un=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return cn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const d=r==null?void 0:r[c],p=i==null?void 0:i[c];if(d===null)return null;const h=ln(d)||ln(p);return o[c][h]}),a=r&&Object.entries(r).reduce((c,d)=>{let[p,h]=d;return h===void 0||(c[p]=h),c},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,d)=>{let{class:p,className:h,...v}=d;return Object.entries(v).every(y=>{let[g,b]=y;return Array.isArray(b)?b.includes({...i,...a}[g]):{...i,...a}[g]===b})?[...c,p,h]:c},[]);return cn(e,s,u,r==null?void 0:r.class,r==null?void 0:r.className)},dn=un("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"}}),Qt="-",Xi=e=>{const t=Zi(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(Qt);return a[0]===""&&a.length!==1&&a.shift(),fn(a,t)||qi(s)},getConflictingClassGroupIds:(s,a)=>{const u=r[s]||[];return a&&n[s]?[...u,...n[s]]:u}}},fn=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?fn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Qt);return(s=t.validators.find(({validator:a})=>a(i)))==null?void 0:s.classGroupId},pn=/^\[(.+)\]$/,qi=e=>{if(pn.test(e)){const t=pn.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Zi=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Qi(Object.entries(e.classGroups),r).forEach(([i,s])=>{er(s,n,i,t)}),n},er=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:mn(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(Ji(o)){er(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{er(s,mn(t,i),r,n)})})},mn=(e,t)=>{let r=e;return t.split(Qt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Ji=e=>e.isThemeGetter,Qi=(e,t)=>t?e.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,a])=>[t+s,a])):i);return[r,o]}):e,ea=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},hn="!",ta=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,o=t[0],i=t.length,s=a=>{const u=[];let c=0,d=0,p;for(let b=0;b<a.length;b++){let w=a[b];if(c===0){if(w===o&&(n||a.slice(b,b+i)===t)){u.push(a.slice(d,b)),d=b+i;continue}if(w==="/"){p=b;continue}}w==="["?c++:w==="]"&&c--}const h=u.length===0?a:a.substring(d),v=h.startsWith(hn),y=v?h.substring(1):h,g=p&&p>d?p-d:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:g}};return r?a=>r({className:a,parseClassName:s}):s},ra=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},na=e=>({cache:ea(e.cacheSize),parseClassName:ta(e),...Xi(e)}),oa=/\s+/,ia=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(oa);let a="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{modifiers:d,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:v}=r(c);let y=!!v,g=n(y?h.substring(0,v):h);if(!g){if(!y){a=c+(a.length>0?" "+a:a);continue}if(g=n(h),!g){a=c+(a.length>0?" "+a:a);continue}y=!1}const b=ra(d).join(":"),w=p?b+hn:b,x=w+g;if(i.includes(x))continue;i.push(x);const P=o(g,y);for(let R=0;R<P.length;++R){const S=P[R];i.push(w+S)}a=c+(a.length>0?" "+a:a)}return a};function aa(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=gn(t))&&(n&&(n+=" "),n+=r);return n}const gn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=gn(e[n]))&&(r&&(r+=" "),r+=t);return r};function sa(e,...t){let r,n,o,i=s;function s(u){const c=t.reduce((d,p)=>p(d),e());return r=na(c),n=r.cache.get,o=r.cache.set,i=a,a(u)}function a(u){const c=n(u);if(c)return c;const d=ia(u,r);return o(u,d),d}return function(){return i(aa.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},vn=/^\[(?:([a-z-]+):)?(.+)\]$/i,la=/^\d+\/\d+$/,ca=new Set(["px","full","screen"]),ua=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,da=/\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$/,fa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pa=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ma=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ae=e=>Ke(e)||ca.has(e)||la.test(e),Te=e=>Xe(e,"length",Ca),Ke=e=>!!e&&!Number.isNaN(Number(e)),tr=e=>Xe(e,"number",Ke),ht=e=>!!e&&Number.isInteger(Number(e)),ha=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),I=e=>vn.test(e),_e=e=>ua.test(e),ga=new Set(["length","size","percentage"]),va=e=>Xe(e,ga,bn),ba=e=>Xe(e,"position",bn),ya=new Set(["image","url"]),wa=e=>Xe(e,ya,Ra),xa=e=>Xe(e,"",Ea),gt=()=>!0,Xe=(e,t,r)=>{const n=vn.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Ca=e=>da.test(e)&&!fa.test(e),bn=()=>!1,Ea=e=>pa.test(e),Ra=e=>ma.test(e),Sa=sa(()=>{const e=te("colors"),t=te("spacing"),r=te("blur"),n=te("brightness"),o=te("borderColor"),i=te("borderRadius"),s=te("borderSpacing"),a=te("borderWidth"),u=te("contrast"),c=te("grayscale"),d=te("hueRotate"),p=te("invert"),h=te("gap"),v=te("gradientColorStops"),y=te("gradientColorStopPositions"),g=te("inset"),b=te("margin"),w=te("opacity"),x=te("padding"),P=te("saturate"),R=te("scale"),S=te("sepia"),M=te("skew"),k=te("space"),B=te("translate"),G=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",I,t],j=()=>[I,t],V=()=>["",Ae,Te],L=()=>["auto",Ke,I],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",I],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>[Ke,I];return{cacheSize:500,separator:":",theme:{colors:[gt],spacing:[Ae,Te],blur:["none","",_e,I],brightness:ie(),borderColor:[e],borderRadius:["none","","full",_e,I],borderSpacing:j(),borderWidth:V(),contrast:ie(),grayscale:Q(),hueRotate:ie(),invert:Q(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[ha,Te],inset:K(),margin:K(),opacity:ie(),padding:j(),saturate:ie(),scale:ie(),sepia:Q(),skew:ie(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[_e]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"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(),I]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],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,I]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",ht,I]}],"grid-cols":[{"grid-cols":[gt]}],"col-start-end":[{col:["auto",{span:["full",ht,I]},I]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[gt]}],"row-start-end":[{row:["auto",{span:[ht,I]},I]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"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:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[_e]},_e]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",_e,Te]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tr]}],"font-family":[{font:[gt]}],"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",I]}],"line-clamp":[{"line-clamp":["none",Ke,tr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ae,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"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:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ae,Te]}],"underline-offset":[{"underline-offset":["auto",Ae,I]}],"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:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],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",I]}],"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:[...J(),ba]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",va]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},wa]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:Y()}],"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:["",...Y()]}],"outline-offset":[{"outline-offset":[Ae,I]}],"outline-w":[{outline:[Ae,Te]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Ae,Te]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_e,xa]}],"shadow-color":[{shadow:[gt]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",_e,I]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[P]}],sepia:[{sepia:[S]}],"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":[p]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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",I]}],duration:[{duration:ie()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:ie()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[ht,I]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],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",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ae,Te,tr]}],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 $(...e){return Sa(sn(e))}const St=l.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const s=n?Vi:"button";return m.jsx(s,{className:$(dn({variant:t,size:r,className:e})),ref:i,...o})});St.displayName="MriButton";function ka(e){return m.jsx("input",{...e,className:$("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)})}const yn=un("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Pa({className:e,variant:t,...r}){return m.jsx("div",{className:$(yn({variant:t}),e),...r})}const wn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("rounded-xl border bg-card text-card-foreground shadow",e),...t}));wn.displayName="MriCard";const xn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("flex flex-col space-y-1.5 p-6",e),...t}));xn.displayName="MriCardHeader";const Cn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("font-semibold leading-none tracking-tight",e),...t}));Cn.displayName="MriCardTitle";const En=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("text-sm text-muted-foreground",e),...t}));En.displayName="MriCardDescription";const Rn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("p-6 pt-0",e),...t}));Rn.displayName="MriCardContent";const Sn=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{ref:r,className:$("flex items-center p-6 pt-0",e),...t}));Sn.displayName="MriCardFooter";var kn=1,Aa=.9,Ma=.8,Na=.17,rr=.1,nr=.999,Oa=.9999,ja=.99,Ta=/[\\\/_+.#"@\[\(\{&]/,_a=/[\\\/_+.#"@\[\(\{&]/g,Da=/[\s-]/,Pn=/[\s-]/g;function or(e,t,r,n,o,i,s){if(i===t.length)return o===e.length?kn:ja;var a=`${o},${i}`;if(s[a]!==void 0)return s[a];for(var u=n.charAt(i),c=r.indexOf(u,o),d=0,p,h,v,y;c>=0;)p=or(e,t,r,n,c+1,i+1,s),p>d&&(c===o?p*=kn:Ta.test(e.charAt(c-1))?(p*=Ma,v=e.slice(o,c-1).match(_a),v&&o>0&&(p*=Math.pow(nr,v.length))):Da.test(e.charAt(c-1))?(p*=Aa,y=e.slice(o,c-1).match(Pn),y&&o>0&&(p*=Math.pow(nr,y.length))):(p*=Na,o>0&&(p*=Math.pow(nr,c-o))),e.charAt(c)!==t.charAt(i)&&(p*=Oa)),(p<rr&&r.charAt(c-1)===n.charAt(i+1)||n.charAt(i+1)===n.charAt(i)&&r.charAt(c-1)!==n.charAt(i))&&(h=or(e,t,r,n,c+1,i+2,s),h*rr>p&&(p=h*rr)),p>d&&(d=p),c=r.indexOf(u,c+1);return s[a]=d,d}function An(e){return e.toLowerCase().replace(Pn," ")}function Ia(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,or(e,t,An(e),An(t),0,0,{})}function pe(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 La(e,t){const r=l.createContext(t),n=i=>{const{children:s,...a}=i,u=l.useMemo(()=>a,Object.values(a));return m.jsx(r.Provider,{value:u,children:s})};n.displayName=e+"Provider";function o(i){const s=l.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function ir(e,t=[]){let r=[];function n(i,s){const a=l.createContext(s),u=r.length;r=[...r,s];const c=p=>{var w;const{scope:h,children:v,...y}=p,g=((w=h==null?void 0:h[e])==null?void 0:w[u])||a,b=l.useMemo(()=>y,Object.values(y));return m.jsx(g.Provider,{value:b,children:v})};c.displayName=i+"Provider";function d(p,h){var g;const v=((g=h==null?void 0:h[e])==null?void 0:g[u])||a,y=l.useContext(v);if(y)return y;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[c,d]}const o=()=>{const i=r.map(s=>l.createContext(s));return function(a){const u=(a==null?void 0:a[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...a,[e]:u}}),[a,u])}};return o.scopeName=e,[n,Fa(o,...t)]}function Fa(...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(i){const s=n.reduce((a,{useScope:u,scopeName:c})=>{const p=u(i)[`__scope${c}`];return{...a,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var De=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Wa=l[" useId ".trim().toString()]||(()=>{}),$a=0;function Ce(e){const[t,r]=l.useState(Wa());return De(()=>{r(n=>n??String($a++))},[e]),t?`radix-${t}`:""}var Ba=l[" useInsertionEffect ".trim().toString()]||De;function Mn({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,s]=za({defaultProp:t,onChange:r}),a=e!==void 0,u=a?e:o;{const d=l.useRef(e!==void 0);l.useEffect(()=>{const p=d.current;p!==a&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${a?"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=a},[a,n])}const c=l.useCallback(d=>{var p;if(a){const h=Va(d)?d(e):d;h!==e&&((p=s.current)==null||p.call(s,h))}else i(d)},[a,e,i,s]);return[u,c]}function za({defaultProp:e,onChange:t}){const[r,n]=l.useState(e),o=l.useRef(r),i=l.useRef(t);return Ba(()=>{i.current=t},[t]),l.useEffect(()=>{var s;o.current!==r&&((s=i.current)==null||s.call(i,r),o.current=r)},[r,o]),[r,n,i]}function Va(e){return typeof e=="function"}function ar(e){const t=Ha(e),r=l.forwardRef((n,o)=>{const{children:i,...s}=n,a=l.Children.toArray(i),u=a.find(Ga);if(u){const c=u.props.children,d=a.map(p=>p===u?l.Children.count(c)>1?l.Children.only(null):l.isValidElement(c)?c.props.children:null:p);return m.jsx(t,{...s,ref:o,children:l.isValidElement(c)?l.cloneElement(c,void 0,d):null})}return m.jsx(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function Ha(e){const t=l.forwardRef((r,n)=>{const{children:o,...i}=r;if(l.isValidElement(o)){const s=Ka(o),a=Ya(i,o.props);return o.type!==l.Fragment&&(a.ref=n?je(n,s):s),l.cloneElement(o,a)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ua=Symbol("radix.slottable");function Ga(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ua}function Ya(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{const u=i(...a);return o(...a),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Ka(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 Xa=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ue=Xa.reduce((e,t)=>{const r=ar(`Primitive.${t}`),n=l.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(u,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function qa(e,t){e&&Qr.flushSync(()=>e.dispatchEvent(t))}function qe(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Za(e,t=globalThis==null?void 0:globalThis.document){const r=qe(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Ja="DismissableLayer",sr="dismissableLayer.update",Qa="dismissableLayer.pointerDownOutside",es="dismissableLayer.focusOutside",Nn,On=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lr=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...u}=e,c=l.useContext(On),[d,p]=l.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=l.useState({}),y=be(t,k=>p(k)),g=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(b),x=d?g.indexOf(d):-1,P=c.layersWithOutsidePointerEventsDisabled.size>0,R=x>=w,S=ns(k=>{const B=k.target,G=[...c.branches].some(z=>z.contains(B));!R||G||(o==null||o(k),s==null||s(k),k.defaultPrevented||a==null||a())},h),M=os(k=>{const B=k.target;[...c.branches].some(z=>z.contains(B))||(i==null||i(k),s==null||s(k),k.defaultPrevented||a==null||a())},h);return Za(k=>{x===c.layers.size-1&&(n==null||n(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},h),l.useEffect(()=>{if(d)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Nn=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),jn(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Nn)}},[d,h,r,c]),l.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),jn())},[d,c]),l.useEffect(()=>{const k=()=>v({});return document.addEventListener(sr,k),()=>document.removeEventListener(sr,k)},[]),m.jsx(ue.div,{...u,ref:y,style:{pointerEvents:P?R?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,M.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,S.onPointerDownCapture)})});lr.displayName=Ja;var ts="DismissableLayerBranch",rs=l.forwardRef((e,t)=>{const r=l.useContext(On),n=l.useRef(null),o=be(t,n);return l.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),m.jsx(ue.div,{...e,ref:o})});rs.displayName=ts;function ns(e,t=globalThis==null?void 0:globalThis.document){const r=qe(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let u=function(){Tn(Qa,r,c,{discrete:!0})};const c={originalEvent:a};a.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",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function os(e,t=globalThis==null?void 0:globalThis.document){const r=qe(e),n=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!n.current&&Tn(es,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function jn(){const e=new CustomEvent(sr);document.dispatchEvent(e)}function Tn(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?qa(o,i):o.dispatchEvent(i)}var cr="focusScope.autoFocusOnMount",ur="focusScope.autoFocusOnUnmount",_n={bubbles:!1,cancelable:!0},is="FocusScope",dr=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,u]=l.useState(null),c=qe(o),d=qe(i),p=l.useRef(null),h=be(t,g=>u(g)),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let g=function(P){if(v.paused||!a)return;const R=P.target;a.contains(R)?p.current=R:Ie(p.current,{select:!0})},b=function(P){if(v.paused||!a)return;const R=P.relatedTarget;R!==null&&(a.contains(R)||Ie(p.current,{select:!0}))},w=function(P){if(document.activeElement===document.body)for(const S of P)S.removedNodes.length>0&&Ie(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const x=new MutationObserver(w);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),x.disconnect()}}},[n,a,v.paused]),l.useEffect(()=>{if(a){Ln.add(v);const g=document.activeElement;if(!a.contains(g)){const w=new CustomEvent(cr,_n);a.addEventListener(cr,c),a.dispatchEvent(w),w.defaultPrevented||(as(ds(Dn(a)),{select:!0}),document.activeElement===g&&Ie(a))}return()=>{a.removeEventListener(cr,c),setTimeout(()=>{const w=new CustomEvent(ur,_n);a.addEventListener(ur,d),a.dispatchEvent(w),w.defaultPrevented||Ie(g??document.body,{select:!0}),a.removeEventListener(ur,d),Ln.remove(v)},0)}}},[a,c,d,v]);const y=l.useCallback(g=>{if(!r&&!n||v.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(b&&w){const x=g.currentTarget,[P,R]=ss(x);P&&R?!g.shiftKey&&w===R?(g.preventDefault(),r&&Ie(P,{select:!0})):g.shiftKey&&w===P&&(g.preventDefault(),r&&Ie(R,{select:!0})):w===x&&g.preventDefault()}},[r,n,v.paused]);return m.jsx(ue.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})});dr.displayName=is;function as(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ie(n,{select:t}),document.activeElement!==r)return}function ss(e){const t=Dn(e),r=In(t,e),n=In(t.reverse(),e);return[r,n]}function Dn(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 In(e,t){for(const r of e)if(!ls(r,{upTo:t}))return r}function ls(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 cs(e){return e instanceof HTMLInputElement&&"select"in e}function Ie(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&cs(e)&&t&&e.select()}}var Ln=us();function us(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Fn(e,t),e.unshift(t)},remove(t){var r;e=Fn(e,t),(r=e[0])==null||r.resume()}}}function Fn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function ds(e){return e.filter(t=>t.tagName!=="A")}var fs="Portal",fr=l.forwardRef((e,t)=>{var a;const{container:r,...n}=e,[o,i]=l.useState(!1);De(()=>i(!0),[]);const s=r||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Zr.createPortal(m.jsx(ue.div,{...n,ref:t}),s):null});fr.displayName=fs;function ps(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var Ze=e=>{const{present:t,children:r}=e,n=ms(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),i=be(n.ref,hs(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:i}):null};Ze.displayName="Presence";function ms(e){const[t,r]=l.useState(),n=l.useRef(null),o=l.useRef(e),i=l.useRef("none"),s=e?"mounted":"unmounted",[a,u]=ps(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const c=kt(n.current);i.current=a==="mounted"?c:"none"},[a]),De(()=>{const c=n.current,d=o.current;if(d!==e){const h=i.current,v=kt(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]),De(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=v=>{const g=kt(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&g&&(u("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=v=>{v.target===t&&(i.current=kt(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:l.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function kt(e){return(e==null?void 0:e.animationName)||"none"}function hs(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 pr=0;function Wn(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??$n()),document.body.insertAdjacentElement("beforeend",e[1]??$n()),pr++,()=>{pr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),pr--}},[])}function $n(){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 Ee=function(){return Ee=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ee.apply(this,arguments)};function Bn(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 gs(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Pt="right-scroll-bar-position",At="width-before-scroll-bar",vs="with-scroll-bars-hidden",bs="--removed-body-scroll-bar-size";function mr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ys(e,t){var r=le.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 ws=typeof window<"u"?l.useLayoutEffect:l.useEffect,zn=new WeakMap;function xs(e,t){var r=ys(null,function(n){return e.forEach(function(o){return mr(o,n)})});return ws(function(){var n=zn.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(a){i.has(a)||mr(a,null)}),i.forEach(function(a){o.has(a)||mr(a,s)})}zn.set(r,e)},[e]),r}function Cs(e){return e}function Es(e,t){t===void 0&&(t=Cs);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(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var a=r;r=[],a.forEach(i),s=r}var u=function(){var d=s;s=[],d.forEach(i)},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 Rs(e){e===void 0&&(e={});var t=Es(null);return t.options=Ee({async:!0,ssr:!1},e),t}var Vn=function(e){var t=e.sideCar,r=Bn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,Ee({},r))};Vn.isSideCarExport=!0;function Ss(e,t){return e.useMedium(t),Vn}var Hn=Rs(),hr=function(){},Mt=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:hr,onWheelCapture:hr,onTouchMoveCapture:hr}),o=n[0],i=n[1],s=e.forwardProps,a=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,h=e.sideCar,v=e.noRelative,y=e.noIsolation,g=e.inert,b=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,P=e.gapMode,R=Bn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,M=xs([r,t]),k=Ee(Ee({},R),o);return l.createElement(l.Fragment,null,d&&l.createElement(S,{sideCar:Hn,removeScrollBar:c,shards:p,noRelative:v,noIsolation:y,inert:g,setCallbacks:i,allowPinchZoom:!!b,lockRef:r,gapMode:P}),s?l.cloneElement(l.Children.only(a),Ee(Ee({},k),{ref:M})):l.createElement(x,Ee({},k,{className:u,ref:M}),a))});Mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Mt.classNames={fullWidth:At,zeroRight:Pt};var ks=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ps(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ks();return t&&e.setAttribute("nonce",t),e}function As(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ms(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ns=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Ps())&&(As(t,r),Ms(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Os=function(){var e=Ns();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Un=function(){var e=Os(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},js={left:0,top:0,right:0,gap:0},gr=function(e){return parseInt(e||"",10)||0},Ts=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[gr(r),gr(n),gr(o)]},_s=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return js;var t=Ts(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])}},Ds=Un(),Je="data-scroll-locked",Is=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,a=e.gap;return r===void 0&&(r="margin"),`
31
- .`.concat(vs,` {
32
- overflow: hidden `).concat(n,`;
33
- padding-right: `).concat(a,"px ").concat(n,`;
34
- }
35
- body[`).concat(Je,`] {
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(i,`px;
41
- padding-right: `).concat(s,`px;
42
- margin-left:0;
43
- margin-top:0;
44
- margin-right: `).concat(a,"px ").concat(n,`;
45
- `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
46
- }
47
-
48
- .`).concat(Pt,` {
49
- right: `).concat(a,"px ").concat(n,`;
50
- }
51
-
52
- .`).concat(At,` {
53
- margin-right: `).concat(a,"px ").concat(n,`;
54
- }
55
-
56
- .`).concat(Pt," .").concat(Pt,` {
57
- right: 0 `).concat(n,`;
58
- }
59
-
60
- .`).concat(At," .").concat(At,` {
61
- margin-right: 0 `).concat(n,`;
62
- }
63
-
64
- body[`).concat(Je,`] {
65
- `).concat(bs,": ").concat(a,`px;
66
- }
67
- `)},Gn=function(){var e=parseInt(document.body.getAttribute(Je)||"0",10);return isFinite(e)?e:0},Ls=function(){l.useEffect(function(){return document.body.setAttribute(Je,(Gn()+1).toString()),function(){var e=Gn()-1;e<=0?document.body.removeAttribute(Je):document.body.setAttribute(Je,e.toString())}},[])},Fs=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Ls();var i=l.useMemo(function(){return _s(o)},[o]);return l.createElement(Ds,{styles:Is(i,!t,o,r?"":"!important")})},vr=!1;if(typeof window<"u")try{var Nt=Object.defineProperty({},"passive",{get:function(){return vr=!0,!0}});window.addEventListener("test",Nt,Nt),window.removeEventListener("test",Nt,Nt)}catch{vr=!1}var Qe=vr?{passive:!1}:!1,Ws=function(e){return e.tagName==="TEXTAREA"},Yn=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Ws(e)&&r[t]==="visible")},$s=function(e){return Yn(e,"overflowY")},Bs=function(e){return Yn(e,"overflowX")},Kn=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Xn(e,n);if(o){var i=qn(e,n),s=i[1],a=i[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},zs=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Vs=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Xn=function(e,t){return e==="v"?$s(t):Bs(t)},qn=function(e,t){return e==="v"?zs(t):Vs(t)},Hs=function(e,t){return e==="h"&&t==="rtl"?-1:1},Us=function(e,t,r,n,o){var i=Hs(e,window.getComputedStyle(t).direction),s=i*n,a=r.target,u=t.contains(a),c=!1,d=s>0,p=0,h=0;do{if(!a)break;var v=qn(e,a),y=v[0],g=v[1],b=v[2],w=g-b-i*y;(y||w)&&Xn(e,a)&&(p+=w,h+=y);var x=a.parentNode;a=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(d&&Math.abs(p)<1||!d&&Math.abs(h)<1)&&(c=!0),c},Ot=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Zn=function(e){return[e.deltaX,e.deltaY]},Jn=function(e){return e&&"current"in e?e.current:e},Gs=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ys=function(e){return`
68
- .block-interactivity-`.concat(e,` {pointer-events: none;}
69
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
70
- `)},Ks=0,et=[];function Xs(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(Ks++)[0],i=l.useState(Un)[0],s=l.useRef(e);l.useEffect(function(){s.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=gs([e.lockRef.current],(e.shards||[]).map(Jn),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=l.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!s.current.allowPinchZoom;var w=Ot(g),x=r.current,P="deltaX"in g?g.deltaX:x[0]-w[0],R="deltaY"in g?g.deltaY:x[1]-w[1],S,M=g.target,k=Math.abs(P)>Math.abs(R)?"h":"v";if("touches"in g&&k==="h"&&M.type==="range")return!1;var B=window.getSelection(),G=B&&B.anchorNode,z=G?G===M||G.contains(M):!1;if(z)return!1;var K=Kn(k,M);if(!K)return!0;if(K?S=k:(S=k==="v"?"h":"v",K=Kn(k,M)),!K)return!1;if(!n.current&&"changedTouches"in g&&(P||R)&&(n.current=S),!S)return!0;var j=n.current||S;return Us(j,b,g,j==="h"?P:R)},[]),u=l.useCallback(function(g){var b=g;if(!(!et.length||et[et.length-1]!==i)){var w="deltaY"in b?Zn(b):Ot(b),x=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&Gs(S.delta,w)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var P=(s.current.shards||[]).map(Jn).filter(Boolean).filter(function(S){return S.contains(b.target)}),R=P.length>0?a(b,P[0]):!s.current.noIsolation;R&&b.cancelable&&b.preventDefault()}}},[]),c=l.useCallback(function(g,b,w,x){var P={name:g,delta:b,target:w,should:x,shadowParent:qs(w)};t.current.push(P),setTimeout(function(){t.current=t.current.filter(function(R){return R!==P})},1)},[]),d=l.useCallback(function(g){r.current=Ot(g),n.current=void 0},[]),p=l.useCallback(function(g){c(g.type,Zn(g),g.target,a(g,e.lockRef.current))},[]),h=l.useCallback(function(g){c(g.type,Ot(g),g.target,a(g,e.lockRef.current))},[]);l.useEffect(function(){return et.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,Qe),document.addEventListener("touchmove",u,Qe),document.addEventListener("touchstart",d,Qe),function(){et=et.filter(function(g){return g!==i}),document.removeEventListener("wheel",u,Qe),document.removeEventListener("touchmove",u,Qe),document.removeEventListener("touchstart",d,Qe)}},[]);var v=e.removeScrollBar,y=e.inert;return l.createElement(l.Fragment,null,y?l.createElement(i,{styles:Ys(o)}):null,v?l.createElement(Fs,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function qs(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Zs=Ss(Hn,Xs);var br=l.forwardRef(function(e,t){return l.createElement(Mt,Ee({},e,{ref:t,sideCar:Zs}))});br.classNames=Mt.classNames;var Js=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},tt=new WeakMap,jt=new WeakMap,Tt={},yr=0,Qn=function(e){return e&&(e.host||Qn(e.parentNode))},Qs=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Qn(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})},el=function(e,t,r,n){var o=Qs(t,Array.isArray(e)?e:[e]);Tt[r]||(Tt[r]=new WeakMap);var i=Tt[r],s=[],a=new Set,u=new Set(o),c=function(p){!p||a.has(p)||(a.add(p),c(p.parentNode))};o.forEach(c);var d=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(h){if(a.has(h))d(h);else try{var v=h.getAttribute(n),y=v!==null&&v!=="false",g=(tt.get(h)||0)+1,b=(i.get(h)||0)+1;tt.set(h,g),i.set(h,b),s.push(h),g===1&&y&&jt.set(h,!0),b===1&&h.setAttribute(r,"true"),y||h.setAttribute(n,"true")}catch(w){console.error("aria-hidden: cannot operate on ",h,w)}})};return d(t),a.clear(),yr++,function(){s.forEach(function(p){var h=tt.get(p)-1,v=i.get(p)-1;tt.set(p,h),i.set(p,v),h||(jt.has(p)||p.removeAttribute(n),jt.delete(p)),v||p.removeAttribute(r)}),yr--,yr||(tt=new WeakMap,tt=new WeakMap,jt=new WeakMap,Tt={})}},eo=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Js(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),el(n,o,r,"aria-hidden")):function(){return null}},_t="Dialog",[to]=ir(_t),[tl,ye]=to(_t),ro=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=l.useRef(null),u=l.useRef(null),[c,d]=Mn({prop:n,defaultProp:o??!1,onChange:i,caller:_t});return m.jsx(tl,{scope:t,triggerRef:a,contentRef:u,contentId:Ce(),titleId:Ce(),descriptionId:Ce(),open:c,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(p=>!p),[d]),modal:s,children:r})};ro.displayName=_t;var no="DialogTrigger",rl=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ye(no,r),i=be(t,o.triggerRef);return m.jsx(ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Cr(o.open),...n,ref:i,onClick:pe(e.onClick,o.onOpenToggle)})});rl.displayName=no;var wr="DialogPortal",[nl,oo]=to(wr,{forceMount:void 0}),io=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=ye(wr,t);return m.jsx(nl,{scope:t,forceMount:r,children:l.Children.map(n,s=>m.jsx(Ze,{present:r||i.open,children:m.jsx(fr,{asChild:!0,container:o,children:s})}))})};io.displayName=wr;var Dt="DialogOverlay",ao=l.forwardRef((e,t)=>{const r=oo(Dt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=ye(Dt,e.__scopeDialog);return i.modal?m.jsx(Ze,{present:n||i.open,children:m.jsx(il,{...o,ref:t})}):null});ao.displayName=Dt;var ol=ar("DialogOverlay.RemoveScroll"),il=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ye(Dt,r);return m.jsx(br,{as:ol,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(ue.div,{"data-state":Cr(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ze="DialogContent",so=l.forwardRef((e,t)=>{const r=oo(ze,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=ye(ze,e.__scopeDialog);return m.jsx(Ze,{present:n||i.open,children:i.modal?m.jsx(al,{...o,ref:t}):m.jsx(sl,{...o,ref:t})})});so.displayName=ze;var al=l.forwardRef((e,t)=>{const r=ye(ze,e.__scopeDialog),n=l.useRef(null),o=be(t,r.contentRef,n);return l.useEffect(()=>{const i=n.current;if(i)return eo(i)},[]),m.jsx(lo,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,i=>i.preventDefault())})}),sl=l.forwardRef((e,t)=>{const r=ye(ze,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return m.jsx(lo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((c=r.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),lo=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=ye(ze,r),u=l.useRef(null),c=be(t,u);return Wn(),m.jsxs(m.Fragment,{children:[m.jsx(dr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:m.jsx(lr,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Cr(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(dl,{titleId:a.titleId}),m.jsx(pl,{contentRef:u,descriptionId:a.descriptionId})]})]})}),xr="DialogTitle",ll=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ye(xr,r);return m.jsx(ue.h2,{id:o.titleId,...n,ref:t})});ll.displayName=xr;var co="DialogDescription",cl=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ye(co,r);return m.jsx(ue.p,{id:o.descriptionId,...n,ref:t})});cl.displayName=co;var uo="DialogClose",ul=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ye(uo,r);return m.jsx(ue.button,{type:"button",...n,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});ul.displayName=uo;function Cr(e){return e?"open":"closed"}var fo="DialogTitleWarning",[sd,po]=La(fo,{contentName:ze,titleName:xr,docsSlug:"dialog"}),dl=({titleId:e})=>{const t=po(fo),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 l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},fl="DialogDescriptionWarning",pl=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${po(fl).contentName}}.`;return l.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},ml=ro,hl=io,gl=ao,vl=so,bl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Le=bl.reduce((e,t)=>{const r=on(`Primitive.${t}`),n=l.forwardRef((o,i)=>{const{asChild:s,...a}=o,u=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(u,{...a,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),vt='[cmdk-group=""]',Er='[cmdk-group-items=""]',yl='[cmdk-group-heading=""]',mo='[cmdk-item=""]',ho=`${mo}:not([aria-disabled="true"])`,Rr="cmdk-item-select",rt="data-value",wl=(e,t,r)=>Ia(e,t,r),go=l.createContext(void 0),bt=()=>l.useContext(go),vo=l.createContext(void 0),Sr=()=>l.useContext(vo),bo=l.createContext(void 0),yo=l.forwardRef((e,t)=>{let r=nt(()=>{var E,T;return{search:"",value:(T=(E=e.value)!=null?E:e.defaultValue)!=null?T:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=nt(()=>new Set),o=nt(()=>new Map),i=nt(()=>new Map),s=nt(()=>new Set),a=wo(e),{label:u,children:c,value:d,onValueChange:p,filter:h,shouldFilter:v,loop:y,disablePointerSelection:g=!1,vimBindings:b=!0,...w}=e,x=Ce(),P=Ce(),R=Ce(),S=l.useRef(null),M=Ol();Ve(()=>{if(d!==void 0){let E=d.trim();r.current.value=E,k.emit()}},[d]),Ve(()=>{M(6,V)},[]);let k=l.useMemo(()=>({subscribe:E=>(s.current.add(E),()=>s.current.delete(E)),snapshot:()=>r.current,setState:(E,T,F)=>{var O,U,X,ne;if(!Object.is(r.current[E],T)){if(r.current[E]=T,E==="search")j(),z(),M(1,K);else if(E==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let re=document.getElementById(R);re?re.focus():(O=document.getElementById(x))==null||O.focus()}if(M(7,()=>{var re;r.current.selectedItemId=(re=L())==null?void 0:re.id,k.emit()}),F||M(5,V),((U=a.current)==null?void 0:U.value)!==void 0){let re=T??"";(ne=(X=a.current).onValueChange)==null||ne.call(X,re);return}}k.emit()}},emit:()=>{s.current.forEach(E=>E())}}),[]),B=l.useMemo(()=>({value:(E,T,F)=>{var O;T!==((O=i.current.get(E))==null?void 0:O.value)&&(i.current.set(E,{value:T,keywords:F}),r.current.filtered.items.set(E,G(T,F)),M(2,()=>{z(),k.emit()}))},item:(E,T)=>(n.current.add(E),T&&(o.current.has(T)?o.current.get(T).add(E):o.current.set(T,new Set([E]))),M(3,()=>{j(),z(),r.current.value||K(),k.emit()}),()=>{i.current.delete(E),n.current.delete(E),r.current.filtered.items.delete(E);let F=L();M(4,()=>{j(),(F==null?void 0:F.getAttribute("id"))===E&&K(),k.emit()})}),group:E=>(o.current.has(E)||o.current.set(E,new Set),()=>{i.current.delete(E),o.current.delete(E)}),filter:()=>a.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:x,inputId:R,labelId:P,listInnerRef:S}),[]);function G(E,T){var F,O;let U=(O=(F=a.current)==null?void 0:F.filter)!=null?O:wl;return E?U(E,r.current.search,T):0}function z(){if(!r.current.search||a.current.shouldFilter===!1)return;let E=r.current.filtered.items,T=[];r.current.filtered.groups.forEach(O=>{let U=o.current.get(O),X=0;U.forEach(ne=>{let re=E.get(ne);X=Math.max(re,X)}),T.push([O,X])});let F=S.current;J().sort((O,U)=>{var X,ne;let re=O.getAttribute("id"),ge=U.getAttribute("id");return((X=E.get(ge))!=null?X:0)-((ne=E.get(re))!=null?ne:0)}).forEach(O=>{let U=O.closest(Er);U?U.appendChild(O.parentElement===U?O:O.closest(`${Er} > *`)):F.appendChild(O.parentElement===F?O:O.closest(`${Er} > *`))}),T.sort((O,U)=>U[1]-O[1]).forEach(O=>{var U;let X=(U=S.current)==null?void 0:U.querySelector(`${vt}[${rt}="${encodeURIComponent(O[0])}"]`);X==null||X.parentElement.appendChild(X)})}function K(){let E=J().find(F=>F.getAttribute("aria-disabled")!=="true"),T=E==null?void 0:E.getAttribute(rt);k.setState("value",T||void 0)}function j(){var E,T,F,O;if(!r.current.search||a.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let U=0;for(let X of n.current){let ne=(T=(E=i.current.get(X))==null?void 0:E.value)!=null?T:"",re=(O=(F=i.current.get(X))==null?void 0:F.keywords)!=null?O:[],ge=G(ne,re);r.current.filtered.items.set(X,ge),ge>0&&U++}for(let[X,ne]of o.current)for(let re of ne)if(r.current.filtered.items.get(re)>0){r.current.filtered.groups.add(X);break}r.current.filtered.count=U}function V(){var E,T,F;let O=L();O&&(((E=O.parentElement)==null?void 0:E.firstChild)===O&&((F=(T=O.closest(vt))==null?void 0:T.querySelector(yl))==null||F.scrollIntoView({block:"nearest"})),O.scrollIntoView({block:"nearest"}))}function L(){var E;return(E=S.current)==null?void 0:E.querySelector(`${mo}[aria-selected="true"]`)}function J(){var E;return Array.from(((E=S.current)==null?void 0:E.querySelectorAll(ho))||[])}function Y(E){let T=J()[E];T&&k.setState("value",T.getAttribute(rt))}function Z(E){var T;let F=L(),O=J(),U=O.findIndex(ne=>ne===F),X=O[U+E];(T=a.current)!=null&&T.loop&&(X=U+E<0?O[O.length-1]:U+E===O.length?O[0]:O[U+E]),X&&k.setState("value",X.getAttribute(rt))}function D(E){let T=L(),F=T==null?void 0:T.closest(vt),O;for(;F&&!O;)F=E>0?Ml(F,vt):Nl(F,vt),O=F==null?void 0:F.querySelector(ho);O?k.setState("value",O.getAttribute(rt)):Z(E)}let Q=()=>Y(J().length-1),se=E=>{E.preventDefault(),E.metaKey?Q():E.altKey?D(1):Z(1)},ie=E=>{E.preventDefault(),E.metaKey?Y(0):E.altKey?D(-1):Z(-1)};return l.createElement(Le.div,{ref:t,tabIndex:-1,...w,"cmdk-root":"",onKeyDown:E=>{var T;(T=w.onKeyDown)==null||T.call(w,E);let F=E.nativeEvent.isComposing||E.keyCode===229;if(!(E.defaultPrevented||F))switch(E.key){case"n":case"j":{b&&E.ctrlKey&&se(E);break}case"ArrowDown":{se(E);break}case"p":case"k":{b&&E.ctrlKey&&ie(E);break}case"ArrowUp":{ie(E);break}case"Home":{E.preventDefault(),Y(0);break}case"End":{E.preventDefault(),Q();break}case"Enter":{E.preventDefault();let O=L();if(O){let U=new Event(Rr);O.dispatchEvent(U)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:B.inputId,id:B.labelId,style:Tl},u),It(e,E=>l.createElement(vo.Provider,{value:k},l.createElement(go.Provider,{value:B},E))))}),xl=l.forwardRef((e,t)=>{var r,n;let o=Ce(),i=l.useRef(null),s=l.useContext(bo),a=bt(),u=wo(e),c=(n=(r=u.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Ve(()=>{if(!c)return a.item(o,s==null?void 0:s.id)},[c]);let d=xo(o,i,[e.value,e.children,i],e.keywords),p=Sr(),h=Fe(M=>M.value&&M.value===d.current),v=Fe(M=>c||a.filter()===!1?!0:M.search?M.filtered.items.get(o)>0:!0);l.useEffect(()=>{let M=i.current;if(!(!M||e.disabled))return M.addEventListener(Rr,y),()=>M.removeEventListener(Rr,y)},[v,e.onSelect,e.disabled]);function y(){var M,k;g(),(k=(M=u.current).onSelect)==null||k.call(M,d.current)}function g(){p.setState("value",d.current,!0)}if(!v)return null;let{disabled:b,value:w,onSelect:x,forceMount:P,keywords:R,...S}=e;return l.createElement(Le.div,{ref:je(i,t),...S,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!h,"data-disabled":!!b,"data-selected":!!h,onPointerMove:b||a.getDisablePointerSelection()?void 0:g,onClick:b?void 0:y},e.children)}),Cl=l.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...i}=e,s=Ce(),a=l.useRef(null),u=l.useRef(null),c=Ce(),d=bt(),p=Fe(v=>o||d.filter()===!1?!0:v.search?v.filtered.groups.has(s):!0);Ve(()=>d.group(s),[]),xo(s,a,[e.value,e.heading,u]);let h=l.useMemo(()=>({id:s,forceMount:o}),[o]);return l.createElement(Le.div,{ref:je(a,t),...i,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&l.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:c},r),It(e,v=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?c:void 0},l.createElement(bo.Provider,{value:h},v))))}),El=l.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=l.useRef(null),i=Fe(s=>!s.search);return!r&&!i?null:l.createElement(Le.div,{ref:je(o,t),...n,"cmdk-separator":"",role:"separator"})}),Rl=l.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,i=Sr(),s=Fe(c=>c.search),a=Fe(c=>c.selectedItemId),u=bt();return l.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),l.createElement(Le.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":a,id:u.inputId,type:"text",value:o?e.value:s,onChange:c=>{o||i.setState("search",c.target.value),r==null||r(c.target.value)}})}),Sl=l.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,i=l.useRef(null),s=l.useRef(null),a=Fe(c=>c.selectedItemId),u=bt();return l.useEffect(()=>{if(s.current&&i.current){let c=s.current,d=i.current,p,h=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let v=c.offsetHeight;d.style.setProperty("--cmdk-list-height",v.toFixed(1)+"px")})});return h.observe(c),()=>{cancelAnimationFrame(p),h.unobserve(c)}}},[]),l.createElement(Le.div,{ref:je(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":n,id:u.listId},It(e,c=>l.createElement("div",{ref:je(s,u.listInnerRef),"cmdk-list-sizer":""},c)))}),kl=l.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:i,container:s,...a}=e;return l.createElement(ml,{open:r,onOpenChange:n},l.createElement(hl,{container:s},l.createElement(gl,{"cmdk-overlay":"",className:o}),l.createElement(vl,{"aria-label":e.label,"cmdk-dialog":"",className:i},l.createElement(yo,{ref:t,...a}))))}),Pl=l.forwardRef((e,t)=>Fe(r=>r.filtered.count===0)?l.createElement(Le.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Al=l.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...i}=e;return l.createElement(Le.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},It(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),de=Object.assign(yo,{List:Sl,Item:xl,Input:Rl,Group:Cl,Separator:El,Dialog:kl,Empty:Pl,Loading:Al});function Ml(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Nl(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function wo(e){let t=l.useRef(e);return Ve(()=>{t.current=e}),t}var Ve=typeof window>"u"?l.useEffect:l.useLayoutEffect;function nt(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function Fe(e){let t=Sr(),r=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,r,r)}function xo(e,t,r,n=[]){let o=l.useRef(),i=bt();return Ve(()=>{var s;let a=(()=>{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());i.value(e,a,u),(s=t.current)==null||s.setAttribute(rt,a),o.current=a}),o}var Ol=()=>{let[e,t]=l.useState(),r=nt(()=>new Map);return Ve(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function jl(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function It({asChild:e,children:t},r){return e&&l.isValidElement(t)?l.cloneElement(jl(t),{ref:t.ref},r(t.props.children)):r(t)}var Tl={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} />`,vo,bt,sg,bt),Xs[bt+vo]=!0}}return p===n?rg(me):tg(me),me}}function ng(p,M,D){return Gs(p,M,D,!0)}function og(p,M,D){return Gs(p,M,D,!1)}var ag=og,ig=ng;Yt.Fragment=n,Yt.jsx=ag,Yt.jsxs=ig}()),Yt}process.env.NODE_ENV==="production"?Xr.exports=Ks():Xr.exports=Qs();var u=Xr.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 Co(){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 So=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Mo=Co,Po=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Mo(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=So(d)||So(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 Mo(e,i,c,r==null?void 0:r.class,r==null?void 0:r.className)},ko=Po("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="-",Js=e=>{const t=el(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(Gr);return s[0]===""&&s.length!==1&&s.shift(),Eo(s,t)||Zs(i)},getConflictingClassGroupIds:(i,s)=>{const c=r[i]||[];return s&&n[i]?[...c,...n[i]]:c}}},Eo=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Eo(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},No=/^\[(.+)\]$/,Zs=e=>{if(No.test(e)){const t=No.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},el=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return rl(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:jo(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(tl(o)){Kr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{Kr(i,jo(t,a),r,n)})})},jo=(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},tl=e=>e.isThemeGetter,rl=(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,nl=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="!",ol=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},al=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},il=e=>({cache:nl(e.cacheSize),parseClassName:ol(e),...Js(e)}),sl=/\s+/,ll=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(sl);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=al(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 cl(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Do(t))&&(n&&(n+=" "),n+=r);return n}const Do=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Do(e[n]))&&(r&&(r+=" "),r+=t);return r};function ul(e,...t){let r,n,o,a=i;function i(c){const l=t.reduce((d,m)=>m(d),e());return r=il(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=ll(c,r);return o(c,d),d}return function(){return a(cl.apply(null,arguments))}}const ie=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ro=/^\[(?:([a-z-]+):)?(.+)\]$/i,dl=/^\d+\/\d+$/,fl=new Set(["px","full","screen"]),ml=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hl=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xe=e=>yt(e)||fl.has(e)||dl.test(e),et=e=>wt(e,"length",Pl),yt=e=>!!e&&!Number.isNaN(Number(e)),Qr=e=>wt(e,"number",yt),Ht=e=>!!e&&Number.isInteger(Number(e)),bl=e=>e.endsWith("%")&&yt(e.slice(0,-1)),H=e=>Ro.test(e),tt=e=>ml.test(e),yl=new Set(["length","size","percentage"]),wl=e=>wt(e,yl,Oo),xl=e=>wt(e,"position",Oo),Cl=new Set(["image","url"]),Sl=e=>wt(e,Cl,El),Ml=e=>wt(e,"",kl),zt=()=>!0,wt=(e,t,r)=>{const n=Ro.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Pl=e=>hl.test(e)&&!vl.test(e),Oo=()=>!1,kl=e=>pl.test(e),El=e=>gl.test(e),Nl=ul(()=>{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"),j=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"],_=()=>["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:[bl,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(),xl]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wl]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Sl]}],"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,Ml]}],"shadow-color":[{shadow:[zt]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[..._(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":_()}],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":[j]}],"skew-y":[{"skew-y":[j]}],"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 Nl(Co(e))}function jl({className:e,variant:t,...r}){return u.jsx("div",{className:O(ko({variant:t}),e),...r})}function Ao(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=Ao(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():Ao(e[o],null)}}}}function pe(...e){return f.useCallback(rt(...e),e)}var _l=Symbol.for("react.lazy"),ar=f[" use ".trim().toString()];function Dl(e){return typeof e=="object"&&e!==null&&"then"in e}function To(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_l&&"_payload"in e&&Dl(e._payload)}function Lo(e){const t=Ol(e),r=f.forwardRef((n,o)=>{let{children:a,...i}=n;To(a)&&typeof ar=="function"&&(a=ar(a._payload));const s=f.Children.toArray(a),c=s.find(Tl);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 Rl=Lo("Slot");function Ol(e){const t=f.forwardRef((r,n)=>{let{children:o,...a}=r;if(To(o)&&typeof ar=="function"&&(o=ar(o._payload)),f.isValidElement(o)){const i=Wl(o),s=Ll(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 Al=Symbol("radix.slottable");function Tl(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Al}function Ll(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 Wl(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=Po("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 Il={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 Fl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ge=(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,...Il,width:o,height:o,stroke:n,strokeWidth:i?Number(a)*24/Number(o):a,className:["lucide",`lucide-${Fl(e)}`,s].join(" "),...l},[...t.map(([m,h])=>B.createElement(m,h)),...Array.isArray(c)?c:[c]]));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 $l=ge("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 Wo=ge("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 Io=ge("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
56
+ * @license lucide-react v0.344.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const Fo=ge("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
61
+ * @license lucide-react v0.344.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const Bl=ge("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
66
+ * @license lucide-react v0.344.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const Yl=ge("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
75
71
  * @license lucide-react v0.344.0 - ISC
76
72
  *
77
73
  * This source code is licensed under the ISC license.
78
74
  * See the LICENSE file in the root directory of this source tree.
79
- */var _l={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"};/**
75
+ */const Hl=ge("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"}]]);/**
80
76
  * @license lucide-react v0.344.0 - ISC
81
77
  *
82
78
  * This source code is licensed under the ISC license.
83
79
  * See the LICENSE file in the root directory of this source tree.
84
- */const Dl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ot=(e,t)=>{const r=le.forwardRef(({color:n="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:a="",children:u,...c},d)=>le.createElement("svg",{ref:d,..._l,width:o,height:o,stroke:n,strokeWidth:s?Number(i)*24/Number(o):i,className:["lucide",`lucide-${Dl(e)}`,a].join(" "),...c},[...t.map(([p,h])=>le.createElement(p,h)),...Array.isArray(u)?u:[u]]));return r.displayName=`${e}`,r};/**
80
+ */const zl=ge("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"}]]);/**
85
81
  * @license lucide-react v0.344.0 - ISC
86
82
  *
87
83
  * This source code is licensed under the ISC license.
88
84
  * See the LICENSE file in the root directory of this source tree.
89
- */const Il=ot("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
85
+ */const Vl=ge("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
90
86
  * @license lucide-react v0.344.0 - ISC
91
87
  *
92
88
  * This source code is licensed under the ISC license.
93
89
  * See the LICENSE file in the root directory of this source tree.
94
- */const Ll=ot("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
90
+ */const Ul=ge("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
95
91
  * @license lucide-react v0.344.0 - ISC
96
92
  *
97
93
  * This source code is licensed under the ISC license.
98
94
  * See the LICENSE file in the root directory of this source tree.
99
- */const Fl=ot("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
95
+ */const ql=ge("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
100
96
  * @license lucide-react v0.344.0 - ISC
101
97
  *
102
98
  * This source code is licensed under the ISC license.
103
99
  * See the LICENSE file in the root directory of this source tree.
104
- */const Wl=ot("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
100
+ */const Xl=ge("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
105
101
  * @license lucide-react v0.344.0 - ISC
106
102
  *
107
103
  * This source code is licensed under the ISC license.
108
104
  * See the LICENSE file in the root directory of this source tree.
109
- */const $l=ot("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
105
+ */const Jr=ge("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
110
106
  * @license lucide-react v0.344.0 - ISC
111
107
  *
112
108
  * This source code is licensed under the ISC license.
113
109
  * See the LICENSE file in the root directory of this source tree.
114
- */const Bl=ot("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),kr=l.forwardRef(({className:e,...t},r)=>m.jsx(de,{ref:r,className:$("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));kr.displayName=de.displayName;const Pr=l.forwardRef(({className:e,...t},r)=>m.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[m.jsx($l,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),m.jsx(de.Input,{ref:r,className:$("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})]}));Pr.displayName=de.Input.displayName;const Co=l.forwardRef(({className:e,...t},r)=>m.jsx(de.List,{ref:r,className:$("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Co.displayName=de.List.displayName;const Ar=l.forwardRef((e,t)=>m.jsx(de.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Ar.displayName=de.Empty.displayName;const Mr=l.forwardRef(({className:e,...t},r)=>m.jsx(de.Group,{ref:r,className:$("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}));Mr.displayName=de.Group.displayName;const Eo=l.forwardRef(({className:e,...t},r)=>m.jsx(de.Separator,{ref:r,className:$("-mx-1 h-px bg-border",e),...t}));Eo.displayName=de.Separator.displayName;const Nr=l.forwardRef(({className:e,...t},r)=>m.jsx(de.Item,{ref:r,className:$("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}));Nr.displayName=de.Item.displayName;const Ro=({className:e,...t})=>m.jsx("span",{className:$("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Ro.displayName="MriCommandShortcut";function So({children:e,onClose:t,className:r}){return le.useEffect(()=>{function n(o){(o.key==="Escape"||o.key==="Esc")&&(t==null||t())}return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[t]),le.useEffect(()=>{try{document.body.dataset.psModalOpen="true"}catch{}return()=>{try{delete document.body.dataset.psModalOpen}catch{}}},[]),m.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[m.jsx("div",{className:"absolute inset-0 bg-background/80 backdrop-blur-sm transition-opacity",onClick:t}),m.jsx("div",{className:$("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 zl({title:e,children:t,onClose:r,className:n}){return m.jsxs(So,{onClose:r,className:n,children:[m.jsxs("div",{className:"flex items-center justify-between mb-6",children:[m.jsx("h3",{className:"text-xl font-bold tracking-tight text-foreground",children:e}),m.jsx("button",{onClick:r,className:"text-muted-foreground hover:text-foreground transition-colors",children:m.jsx(Bl,{className:"w-5 h-5"})})]}),m.jsx("div",{children:t})]})}const Vl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.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"}),m.jsx("circle",{cx:"12",cy:"9",r:"2.5",fill:"currentColor"})]}),Hl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.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"}),m.jsx("path",{d:"M7 10l5-5 5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M12 5v12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ul=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M21 12H7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M11 16l-4-4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Gl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M21 12a9 9 0 11-3-6.6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M12 8v8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M8 12h8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Yl=(e={})=>m.jsx("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:m.jsx("path",{d:"M20 6L9 17l-5-5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})}),Kl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("rect",{x:"2",y:"7",width:"20",height:"14",rx:"2",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M12 11v6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"10",r:"1.5",fill:"currentColor"})]}),Xl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.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"}),m.jsx("path",{d:"M9 8h6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),ql=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.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"}),m.jsx("circle",{cx:"12",cy:"12",r:"3",stroke:"currentColor",strokeWidth:"1.5"})]}),Zl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.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"}),m.jsx("path",{d:"M12 9v4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("circle",{cx:"12",cy:"17",r:"0.8",fill:"currentColor"})]}),Jl=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.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"}),m.jsx("circle",{cx:"12",cy:"7",r:"4",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M15 10l-6-6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),Ql=(e={})=>m.jsxs("svg",{className:e.className,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M4.93 4.93l14.14 14.14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]});function ec({title:e,icon:t,count:r,countLabel:n,children:o,className:i,...s}){return m.jsxs("div",{className:$("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",i),...s,children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(t,{className:"w-6 h-6 text-primary"}),m.jsx("h1",{className:"text-xl font-bold tracking-tight text-foreground",children:e})]}),r!==void 0&&m.jsxs("div",{className:"bg-primary/20 text-primary text-xs font-bold px-2 py-0.5 rounded-full",children:[r," ",(n||"Records").toUpperCase()]})]}),m.jsx("div",{className:"flex items-center gap-3",children:o})]})}const tc=["top","right","bottom","left"],We=Math.min,me=Math.max,Lt=Math.round,Ft=Math.floor,Re=e=>({x:e,y:e}),rc={left:"right",right:"left",bottom:"top",top:"bottom"},nc={start:"end",end:"start"};function Or(e,t,r){return me(e,We(t,r))}function Me(e,t){return typeof e=="function"?e(t):e}function Ne(e){return e.split("-")[0]}function it(e){return e.split("-")[1]}function jr(e){return e==="x"?"y":"x"}function Tr(e){return e==="y"?"height":"width"}const oc=new Set(["top","bottom"]);function Se(e){return oc.has(Ne(e))?"y":"x"}function _r(e){return jr(Se(e))}function ic(e,t,r){r===void 0&&(r=!1);const n=it(e),o=_r(e),i=Tr(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Wt(s)),[s,Wt(s)]}function ac(e){const t=Wt(e);return[Dr(e),t,Dr(t)]}function Dr(e){return e.replace(/start|end/g,t=>nc[t])}const ko=["left","right"],Po=["right","left"],sc=["top","bottom"],lc=["bottom","top"];function cc(e,t,r){switch(e){case"top":case"bottom":return r?t?Po:ko:t?ko:Po;case"left":case"right":return t?sc:lc;default:return[]}}function uc(e,t,r,n){const o=it(e);let i=cc(Ne(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Dr)))),i}function Wt(e){return e.replace(/left|right|bottom|top/g,t=>rc[t])}function dc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ao(e){return typeof e!="number"?dc(e):{top:e,right:e,bottom:e,left:e}}function $t(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Mo(e,t,r){let{reference:n,floating:o}=e;const i=Se(t),s=_r(t),a=Tr(s),u=Ne(t),c=i==="y",d=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,h=n[a]/2-o[a]/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:p};break;case"left":v={x:n.x-o.width,y:p};break;default:v={x:n.x,y:n.y}}switch(it(t)){case"start":v[s]-=h*(r&&c?-1:1);break;case"end":v[s]+=h*(r&&c?-1:1);break}return v}const fc=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,a=i.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:p}=Mo(c,n,u),h=n,v={},y=0;for(let g=0;g<a.length;g++){const{name:b,fn:w}=a[g],{x,y:P,data:R,reset:S}=await w({x:d,y:p,initialPlacement:n,placement:h,strategy:o,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});d=x??d,p=P??p,v={...v,[b]:{...v[b],...R}},S&&y<=50&&(y++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:d,y:p}=Mo(c,h,u)),g=-1)}return{x:d,y:p,placement:h,strategy:o,middlewareData:v}};async function yt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:v=0}=Me(t,e),y=Ao(v),b=a[h?p==="floating"?"reference":"floating":p],w=$t(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:u})),x=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),R=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},S=$t(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:P,strategy:u}):x);return{top:(w.top-S.top+y.top)/R.y,bottom:(S.bottom-w.bottom+y.bottom)/R.y,left:(w.left-S.left+y.left)/R.x,right:(S.right-w.right+y.right)/R.x}}const pc=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:c,padding:d=0}=Me(e,t)||{};if(c==null)return{};const p=Ao(d),h={x:r,y:n},v=_r(o),y=Tr(v),g=await s.getDimensions(c),b=v==="y",w=b?"top":"left",x=b?"bottom":"right",P=b?"clientHeight":"clientWidth",R=i.reference[y]+i.reference[v]-h[v]-i.floating[y],S=h[v]-i.reference[v],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let k=M?M[P]:0;(!k||!await(s.isElement==null?void 0:s.isElement(M)))&&(k=a.floating[P]||i.floating[y]);const B=R/2-S/2,G=k/2-g[y]/2-1,z=We(p[w],G),K=We(p[x],G),j=z,V=k-g[y]-K,L=k/2-g[y]/2+B,J=Or(j,L,V),Y=!u.arrow&&it(o)!=null&&L!==J&&i.reference[y]/2-(L<j?z:K)-g[y]/2<0,Z=Y?L<j?L-j:L-V:0;return{[v]:h[v]+Z,data:{[v]:J,centerOffset:L-J-Z,...Y&&{alignmentOffset:Z}},reset:Y}}}),mc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...b}=Me(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const w=Ne(o),x=Se(a),P=Ne(a)===a,R=await(u.isRTL==null?void 0:u.isRTL(c.floating)),S=h||(P||!g?[Wt(a)]:ac(a)),M=y!=="none";!h&&M&&S.push(...uc(a,g,y,R));const k=[a,...S],B=await yt(t,b),G=[];let z=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&G.push(B[w]),p){const L=ic(o,s,R);G.push(B[L[0]],B[L[1]])}if(z=[...z,{placement:o,overflows:G}],!G.every(L=>L<=0)){var K,j;const L=(((K=i.flip)==null?void 0:K.index)||0)+1,J=k[L];if(J&&(!(p==="alignment"?x!==Se(J):!1)||z.every(D=>Se(D.placement)===x?D.overflows[0]>0:!0)))return{data:{index:L,overflows:z},reset:{placement:J}};let Y=(j=z.filter(Z=>Z.overflows[0]<=0).sort((Z,D)=>Z.overflows[1]-D.overflows[1])[0])==null?void 0:j.placement;if(!Y)switch(v){case"bestFit":{var V;const Z=(V=z.filter(D=>{if(M){const Q=Se(D.placement);return Q===x||Q==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(Q=>Q>0).reduce((Q,se)=>Q+se,0)]).sort((D,Q)=>D[1]-Q[1])[0])==null?void 0:V[0];Z&&(Y=Z);break}case"initialPlacement":Y=a;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}};function No(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Oo(e){return tc.some(t=>e[t]>=0)}const hc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Me(e,t);switch(n){case"referenceHidden":{const i=await yt(t,{...o,elementContext:"reference"}),s=No(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Oo(s)}}}case"escaped":{const i=await yt(t,{...o,altBoundary:!0}),s=No(i,r.floating);return{data:{escapedOffsets:s,escaped:Oo(s)}}}default:return{}}}}},jo=new Set(["left","top"]);async function gc(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Ne(r),a=it(r),u=Se(r)==="y",c=jo.has(s)?-1:1,d=i&&u?-1:1,p=Me(t,e);let{mainAxis:h,crossAxis:v,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof y=="number"&&(v=a==="end"?y*-1:y),u?{x:v*d,y:h*c}:{x:h*c,y:v*d}}const vc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await gc(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},bc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:w,y:x}=b;return{x:w,y:x}}},...u}=Me(e,t),c={x:r,y:n},d=await yt(t,u),p=Se(Ne(o)),h=jr(p);let v=c[h],y=c[p];if(i){const b=h==="y"?"top":"left",w=h==="y"?"bottom":"right",x=v+d[b],P=v-d[w];v=Or(x,v,P)}if(s){const b=p==="y"?"top":"left",w=p==="y"?"bottom":"right",x=y+d[b],P=y-d[w];y=Or(x,y,P)}const g=a.fn({...t,[h]:v,[p]:y});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[h]:i,[p]:s}}}}}},yc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=Me(e,t),d={x:r,y:n},p=Se(o),h=jr(p);let v=d[h],y=d[p];const g=Me(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const P=h==="y"?"height":"width",R=i.reference[h]-i.floating[P]+b.mainAxis,S=i.reference[h]+i.reference[P]-b.mainAxis;v<R?v=R:v>S&&(v=S)}if(c){var w,x;const P=h==="y"?"width":"height",R=jo.has(Ne(o)),S=i.reference[p]-i.floating[P]+(R&&((w=s.offset)==null?void 0:w[p])||0)+(R?0:b.crossAxis),M=i.reference[p]+i.reference[P]+(R?0:((x=s.offset)==null?void 0:x[p])||0)-(R?b.crossAxis:0);y<S?y=S:y>M&&(y=M)}return{[h]:v,[p]:y}}}},wc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:u=()=>{},...c}=Me(e,t),d=await yt(t,c),p=Ne(o),h=it(o),v=Se(o)==="y",{width:y,height:g}=i.floating;let b,w;p==="top"||p==="bottom"?(b=p,w=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(w=p,b=h==="end"?"top":"bottom");const x=g-d.top-d.bottom,P=y-d.left-d.right,R=We(g-d[b],x),S=We(y-d[w],P),M=!t.middlewareData.shift;let k=R,B=S;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(B=P),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(k=x),M&&!h){const z=me(d.left,0),K=me(d.right,0),j=me(d.top,0),V=me(d.bottom,0);v?B=y-2*(z!==0||K!==0?z+K:me(d.left,d.right)):k=g-2*(j!==0||V!==0?j+V:me(d.top,d.bottom))}await u({...t,availableWidth:B,availableHeight:k});const G=await s.getDimensions(a.floating);return y!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function Bt(){return typeof window<"u"}function at(e){return To(e)?(e.nodeName||"").toLowerCase():"#document"}function he(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ke(e){var t;return(t=(To(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function To(e){return Bt()?e instanceof Node||e instanceof he(e).Node:!1}function we(e){return Bt()?e instanceof Element||e instanceof he(e).Element:!1}function Pe(e){return Bt()?e instanceof HTMLElement||e instanceof he(e).HTMLElement:!1}function _o(e){return!Bt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof he(e).ShadowRoot}const xc=new Set(["inline","contents"]);function wt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=xe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!xc.has(o)}const Cc=new Set(["table","td","th"]);function Ec(e){return Cc.has(at(e))}const Rc=[":popover-open",":modal"];function zt(e){return Rc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Sc=["transform","translate","scale","rotate","perspective"],kc=["transform","translate","scale","rotate","perspective","filter"],Pc=["paint","layout","strict","content"];function Ir(e){const t=Lr(),r=we(e)?xe(e):e;return Sc.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)||kc.some(n=>(r.willChange||"").includes(n))||Pc.some(n=>(r.contain||"").includes(n))}function Ac(e){let t=$e(e);for(;Pe(t)&&!st(t);){if(Ir(t))return t;if(zt(t))return null;t=$e(t)}return null}function Lr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Mc=new Set(["html","body","#document"]);function st(e){return Mc.has(at(e))}function xe(e){return he(e).getComputedStyle(e)}function Vt(e){return we(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $e(e){if(at(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_o(e)&&e.host||ke(e);return _o(t)?t.host:t}function Do(e){const t=$e(e);return st(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pe(t)&&wt(t)?t:Do(t)}function xt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Do(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=he(o);if(i){const a=Fr(s);return t.concat(s,s.visualViewport||[],wt(o)?o:[],a&&r?xt(a):[])}return t.concat(o,xt(o,[],r))}function Fr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Io(e){const t=xe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Pe(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=Lt(r)!==i||Lt(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function Wr(e){return we(e)?e:e.contextElement}function lt(e){const t=Wr(e);if(!Pe(t))return Re(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Io(t);let s=(i?Lt(r.width):r.width)/n,a=(i?Lt(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Nc=Re(0);function Lo(e){const t=he(e);return!Lr()||!t.visualViewport?Nc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Oc(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==he(e)?!1:t}function He(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Wr(e);let s=Re(1);t&&(n?we(n)&&(s=lt(n)):s=lt(e));const a=Oc(i,r,n)?Lo(i):Re(0);let u=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(i){const h=he(i),v=n&&we(n)?he(n):n;let y=h,g=Fr(y);for(;g&&n&&v!==y;){const b=lt(g),w=g.getBoundingClientRect(),x=xe(g),P=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x,R=w.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;u*=b.x,c*=b.y,d*=b.x,p*=b.y,u+=P,c+=R,y=he(g),g=Fr(y)}}return $t({width:d,height:p,x:u,y:c})}function Ht(e,t){const r=Vt(e).scrollLeft;return t?t.left+r:He(ke(e)).left+r}function Fo(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Ht(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function jc(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=ke(n),a=t?zt(t.floating):!1;if(n===s||a&&i)return r;let u={scrollLeft:0,scrollTop:0},c=Re(1);const d=Re(0),p=Pe(n);if((p||!p&&!i)&&((at(n)!=="body"||wt(s))&&(u=Vt(n)),Pe(n))){const v=He(n);c=lt(n),d.x=v.x+n.clientLeft,d.y=v.y+n.clientTop}const h=s&&!p&&!i?Fo(s,u):Re(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 Tc(e){return Array.from(e.getClientRects())}function _c(e){const t=ke(e),r=Vt(e),n=e.ownerDocument.body,o=me(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=me(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Ht(e);const a=-r.scrollTop;return xe(n).direction==="rtl"&&(s+=me(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Wo=25;function Dc(e,t){const r=he(e),n=ke(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const d=Lr();(!d||d&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}const c=Ht(n);if(c<=0){const d=n.ownerDocument,p=d.body,h=getComputedStyle(p),v=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,y=Math.abs(n.clientWidth-p.clientWidth-v);y<=Wo&&(i-=y)}else c<=Wo&&(i+=c);return{width:i,height:s,x:a,y:u}}const Ic=new Set(["absolute","fixed"]);function Lc(e,t){const r=He(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Pe(e)?lt(e):Re(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,c=n*i.y;return{width:s,height:a,x:u,y:c}}function $o(e,t,r){let n;if(t==="viewport")n=Dc(e,r);else if(t==="document")n=_c(ke(e));else if(we(t))n=Lc(t,r);else{const o=Lo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $t(n)}function Bo(e,t){const r=$e(e);return r===t||!we(r)||st(r)?!1:xe(r).position==="fixed"||Bo(r,t)}function Fc(e,t){const r=t.get(e);if(r)return r;let n=xt(e,[],!1).filter(a=>we(a)&&at(a)!=="body"),o=null;const i=xe(e).position==="fixed";let s=i?$e(e):e;for(;we(s)&&!st(s);){const a=xe(s),u=Ir(s);!u&&a.position==="fixed"&&(o=null),(i?!u&&!o:!u&&a.position==="static"&&!!o&&Ic.has(o.position)||wt(s)&&!u&&Bo(e,s))?n=n.filter(d=>d!==s):o=a,s=$e(s)}return t.set(e,n),n}function Wc(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?zt(t)?[]:Fc(t,this._c):[].concat(r),n],a=s[0],u=s.reduce((c,d)=>{const p=$o(t,d,o);return c.top=me(p.top,c.top),c.right=We(p.right,c.right),c.bottom=We(p.bottom,c.bottom),c.left=me(p.left,c.left),c},$o(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function $c(e){const{width:t,height:r}=Io(e);return{width:t,height:r}}function Bc(e,t,r){const n=Pe(t),o=ke(t),i=r==="fixed",s=He(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=Re(0);function c(){u.x=Ht(o)}if(n||!n&&!i)if((at(t)!=="body"||wt(o))&&(a=Vt(t)),n){const v=He(t,!0,i,t);u.x=v.x+t.clientLeft,u.y=v.y+t.clientTop}else o&&c();i&&!n&&o&&c();const d=o&&!n&&!i?Fo(o,a):Re(0),p=s.left+a.scrollLeft-u.x-d.x,h=s.top+a.scrollTop-u.y-d.y;return{x:p,y:h,width:s.width,height:s.height}}function $r(e){return xe(e).position==="static"}function zo(e,t){if(!Pe(e)||xe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ke(e)===r&&(r=r.ownerDocument.body),r}function Vo(e,t){const r=he(e);if(zt(e))return r;if(!Pe(e)){let o=$e(e);for(;o&&!st(o);){if(we(o)&&!$r(o))return o;o=$e(o)}return r}let n=zo(e,t);for(;n&&Ec(n)&&$r(n);)n=zo(n,t);return n&&st(n)&&$r(n)&&!Ir(n)?r:n||Ac(e)||r}const zc=async function(e){const t=this.getOffsetParent||Vo,r=this.getDimensions,n=await r(e.floating);return{reference:Bc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Vc(e){return xe(e).direction==="rtl"}const Hc={convertOffsetParentRelativeRectToViewportRelativeRect:jc,getDocumentElement:ke,getClippingRect:Wc,getOffsetParent:Vo,getElementRects:zc,getClientRects:Tc,getDimensions:$c,getScale:lt,isElement:we,isRTL:Vc};function Ho(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uc(e,t){let r=null,n;const o=ke(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:d,top:p,width:h,height:v}=c;if(a||t(),!h||!v)return;const y=Ft(p),g=Ft(o.clientWidth-(d+h)),b=Ft(o.clientHeight-(p+v)),w=Ft(d),P={rootMargin:-y+"px "+-g+"px "+-b+"px "+-w+"px",threshold:me(0,We(1,u))||1};let R=!0;function S(M){const k=M[0].intersectionRatio;if(k!==u){if(!R)return s();k?s(!1,k):n=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!Ho(c,e.getBoundingClientRect())&&s(),R=!1}try{r=new IntersectionObserver(S,{...P,root:o.ownerDocument})}catch{r=new IntersectionObserver(S,P)}r.observe(e)}return s(!0),i}function Gc(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,c=Wr(e),d=o||i?[...c?xt(c):[],...xt(t)]:[];d.forEach(w=>{o&&w.addEventListener("scroll",r,{passive:!0}),i&&w.addEventListener("resize",r)});const p=c&&a?Uc(c,r):null;let h=-1,v=null;s&&(v=new ResizeObserver(w=>{let[x]=w;x&&x.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var P;(P=v)==null||P.observe(t)})),r()}),c&&!u&&v.observe(c),v.observe(t));let y,g=u?He(e):null;u&&b();function b(){const w=He(e);g&&!Ho(g,w)&&r(),g=w,y=requestAnimationFrame(b)}return r(),()=>{var w;d.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),p==null||p(),(w=v)==null||w.disconnect(),v=null,u&&cancelAnimationFrame(y)}}const Yc=vc,Kc=bc,Xc=mc,qc=wc,Zc=hc,Uo=pc,Jc=yc,Qc=(e,t,r)=>{const n=new Map,o={platform:Hc,...r},i={...o.platform,_c:n};return fc(e,t,{...o,platform:i})};var eu=typeof document<"u",tu=function(){},Ut=eu?le.useLayoutEffect:tu;function Gt(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(!Gt(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 i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Gt(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Go(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yo(e,t){const r=Go(e);return Math.round(t*r)/r}function Br(e){const t=l.useRef(e);return Ut(()=>{t.current=e}),t}function ru(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:u,open:c}=e,[d,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,v]=l.useState(n);Gt(h,n)||v(n);const[y,g]=l.useState(null),[b,w]=l.useState(null),x=l.useCallback(D=>{D!==M.current&&(M.current=D,g(D))},[]),P=l.useCallback(D=>{D!==k.current&&(k.current=D,w(D))},[]),R=i||y,S=s||b,M=l.useRef(null),k=l.useRef(null),B=l.useRef(d),G=u!=null,z=Br(u),K=Br(o),j=Br(c),V=l.useCallback(()=>{if(!M.current||!k.current)return;const D={placement:t,strategy:r,middleware:h};K.current&&(D.platform=K.current),Qc(M.current,k.current,D).then(Q=>{const se={...Q,isPositioned:j.current!==!1};L.current&&!Gt(B.current,se)&&(B.current=se,Qr.flushSync(()=>{p(se)}))})},[h,t,r,K,j]);Ut(()=>{c===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,p(D=>({...D,isPositioned:!1})))},[c]);const L=l.useRef(!1);Ut(()=>(L.current=!0,()=>{L.current=!1}),[]),Ut(()=>{if(R&&(M.current=R),S&&(k.current=S),R&&S){if(z.current)return z.current(R,S,V);V()}},[R,S,V,z,G]);const J=l.useMemo(()=>({reference:M,floating:k,setReference:x,setFloating:P}),[x,P]),Y=l.useMemo(()=>({reference:R,floating:S}),[R,S]),Z=l.useMemo(()=>{const D={position:r,left:0,top:0};if(!Y.floating)return D;const Q=Yo(Y.floating,d.x),se=Yo(Y.floating,d.y);return a?{...D,transform:"translate("+Q+"px, "+se+"px)",...Go(Y.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Q,top:se}},[r,a,Y.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:V,refs:J,elements:Y,floatingStyles:Z}),[d,V,J,Y,Z])}const nu=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Uo({element:n.current,padding:o}).fn(r):{}:n?Uo({element:n,padding:o}).fn(r):{}}}},ou=(e,t)=>({...Yc(e),options:[e,t]}),iu=(e,t)=>({...Kc(e),options:[e,t]}),au=(e,t)=>({...Jc(e),options:[e,t]}),su=(e,t)=>({...Xc(e),options:[e,t]}),lu=(e,t)=>({...qc(e),options:[e,t]}),cu=(e,t)=>({...Zc(e),options:[e,t]}),uu=(e,t)=>({...nu(e),options:[e,t]});var du="Arrow",Ko=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return m.jsx(ue.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ko.displayName=du;var fu=Ko;function pu(e){const[t,r]=l.useState(void 0);return De(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const u=i.borderBoxSize,c=Array.isArray(u)?u[0]:u;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;r({width:s,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var zr="Popper",[Xo,qo]=ir(zr),[mu,Zo]=Xo(zr),Jo=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return m.jsx(mu,{scope:t,anchor:n,onAnchorChange:o,children:r})};Jo.displayName=zr;var Qo="PopperAnchor",ei=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=Zo(Qo,r),s=l.useRef(null),a=be(t,s),u=l.useRef(null);return l.useEffect(()=>{const c=u.current;u.current=(n==null?void 0:n.current)||s.current,c!==u.current&&i.onAnchorChange(u.current)}),n?null:m.jsx(ue.div,{...o,ref:a})});ei.displayName=Qo;var Vr="PopperContent",[hu,gu]=Xo(Vr),ti=l.forwardRef((e,t)=>{var X,ne,re,ge,Kt,Et;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:u=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:y,...g}=e,b=Zo(Vr,r),[w,x]=l.useState(null),P=be(t,Ue=>x(Ue)),[R,S]=l.useState(null),M=pu(R),k=(M==null?void 0:M.width)??0,B=(M==null?void 0:M.height)??0,G=n+(i!=="center"?"-"+i:""),z=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},K=Array.isArray(c)?c:[c],j=K.length>0,V={padding:z,boundary:K.filter(bu),altBoundary:j},{refs:L,floatingStyles:J,placement:Y,isPositioned:Z,middlewareData:D}=ru({strategy:"fixed",placement:G,whileElementsMounted:(...Ue)=>Gc(...Ue,{animationFrame:v==="always"}),elements:{reference:b.anchor},middleware:[ou({mainAxis:o+B,alignmentAxis:s}),u&&iu({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?au():void 0,...V}),u&&su({...V}),lu({...V,apply:({elements:Ue,rects:Xt,availableWidth:ut,availableHeight:Ge})=>{const{width:qt,height:Zt}=Xt.reference,Oe=Ue.floating.style;Oe.setProperty("--radix-popper-available-width",`${ut}px`),Oe.setProperty("--radix-popper-available-height",`${Ge}px`),Oe.setProperty("--radix-popper-anchor-width",`${qt}px`),Oe.setProperty("--radix-popper-anchor-height",`${Zt}px`)}}),R&&uu({element:R,padding:a}),yu({arrowWidth:k,arrowHeight:B}),h&&cu({strategy:"referenceHidden",...V})]}),[Q,se]=oi(Y),ie=qe(y);De(()=>{Z&&(ie==null||ie())},[Z,ie]);const E=(X=D.arrow)==null?void 0:X.x,T=(ne=D.arrow)==null?void 0:ne.y,F=((re=D.arrow)==null?void 0:re.centerOffset)!==0,[O,U]=l.useState();return De(()=>{w&&U(window.getComputedStyle(w).zIndex)},[w]),m.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:Z?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:O,"--radix-popper-transform-origin":[(ge=D.transformOrigin)==null?void 0:ge.x,(Kt=D.transformOrigin)==null?void 0:Kt.y].join(" "),...((Et=D.hide)==null?void 0:Et.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(hu,{scope:r,placedSide:Q,onArrowChange:S,arrowX:E,arrowY:T,shouldHideArrow:F,children:m.jsx(ue.div,{"data-side":Q,"data-align":se,...g,ref:P,style:{...g.style,animation:Z?void 0:"none"}})})})});ti.displayName=Vr;var ri="PopperArrow",vu={top:"bottom",right:"left",bottom:"top",left:"right"},ni=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=gu(ri,n),s=vu[i.placedSide];return m.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:m.jsx(fu,{...o,ref:r,style:{...o.style,display:"block"}})})});ni.displayName=ri;function bu(e){return e!==null}var yu=e=>({name:"transformOrigin",options:e,fn(t){var b,w,x;const{placement:r,rects:n,middlewareData:o}=t,s=((b=o.arrow)==null?void 0:b.centerOffset)!==0,a=s?0:e.arrowWidth,u=s?0:e.arrowHeight,[c,d]=oi(r),p={start:"0%",center:"50%",end:"100%"}[d],h=(((w=o.arrow)==null?void 0:w.x)??0)+a/2,v=(((x=o.arrow)==null?void 0:x.y)??0)+u/2;let y="",g="";return c==="bottom"?(y=s?p:`${h}px`,g=`${-u}px`):c==="top"?(y=s?p:`${h}px`,g=`${n.floating.height+u}px`):c==="right"?(y=`${-u}px`,g=s?p:`${v}px`):c==="left"&&(y=`${n.floating.width+u}px`,g=s?p:`${v}px`),{data:{x:y,y:g}}}});function oi(e){const[t,r="center"]=e.split("-");return[t,r]}var wu=Jo,ii=ei,xu=ti,Cu=ni,Yt="Popover",[ai]=ir(Yt,[qo]),Ct=qo(),[Eu,Be]=ai(Yt),si=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=Ct(t),u=l.useRef(null),[c,d]=l.useState(!1),[p,h]=Mn({prop:n,defaultProp:o??!1,onChange:i,caller:Yt});return m.jsx(wu,{...a,children:m.jsx(Eu,{scope:t,contentId:Ce(),triggerRef:u,open:p,onOpenChange:h,onOpenToggle:l.useCallback(()=>h(v=>!v),[h]),hasCustomAnchor:c,onCustomAnchorAdd:l.useCallback(()=>d(!0),[]),onCustomAnchorRemove:l.useCallback(()=>d(!1),[]),modal:s,children:r})})};si.displayName=Yt;var li="PopoverAnchor",Ru=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Be(li,r),i=Ct(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return l.useEffect(()=>(s(),()=>a()),[s,a]),m.jsx(ii,{...i,...n,ref:t})});Ru.displayName=li;var ci="PopoverTrigger",ui=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Be(ci,r),i=Ct(r),s=be(t,o.triggerRef),a=m.jsx(ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":hi(o.open),...n,ref:s,onClick:pe(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:m.jsx(ii,{asChild:!0,...i,children:a})});ui.displayName=ci;var Hr="PopoverPortal",[Su,ku]=ai(Hr,{forceMount:void 0}),di=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=Be(Hr,t);return m.jsx(Su,{scope:t,forceMount:r,children:m.jsx(Ze,{present:r||i.open,children:m.jsx(fr,{asChild:!0,container:o,children:n})})})};di.displayName=Hr;var ct="PopoverContent",fi=l.forwardRef((e,t)=>{const r=ku(ct,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=Be(ct,e.__scopePopover);return m.jsx(Ze,{present:n||i.open,children:i.modal?m.jsx(Au,{...o,ref:t}):m.jsx(Mu,{...o,ref:t})})});fi.displayName=ct;var Pu=ar("PopoverContent.RemoveScroll"),Au=l.forwardRef((e,t)=>{const r=Be(ct,e.__scopePopover),n=l.useRef(null),o=be(t,n),i=l.useRef(!1);return l.useEffect(()=>{const s=n.current;if(s)return eo(s)},[]),m.jsx(br,{as:Pu,allowPinchZoom:!0,children:m.jsx(pi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=r.triggerRef.current)==null||a.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,u=a.button===0&&a.ctrlKey===!0,c=a.button===2||u;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:pe(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Mu=l.forwardRef((e,t)=>{const r=Be(ct,e.__scopePopover),n=l.useRef(!1),o=l.useRef(!1);return m.jsx(pi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((c=r.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),pi=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...p}=e,h=Be(ct,r),v=Ct(r);return Wn(),m.jsx(dr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:m.jsx(lr,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:m.jsx(xu,{"data-state":hi(h.open),role:"dialog",id:h.contentId,...v,...p,ref:t,style:{...p.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)"}})})})}),mi="PopoverClose",Nu=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Be(mi,r);return m.jsx(ue.button,{type:"button",...n,ref:t,onClick:pe(e.onClick,()=>o.onOpenChange(!1))})});Nu.displayName=mi;var Ou="PopoverArrow",ju=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ct(r);return m.jsx(Cu,{...o,...n,ref:t})});ju.displayName=Ou;function hi(e){return e?"open":"closed"}var Tu=si,_u=ui,Du=di,gi=fi;const vi=Tu,bi=_u,Ur=l.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},o)=>m.jsx(Du,{children:m.jsx(gi,{ref:o,align:t,sideOffset:r,className:$("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})}));Ur.displayName=gi.displayName;function Iu({options:e,value:t,onChange:r,placeholder:n="Select...",searchPlaceholder:o="Search...",emptyMessage:i="No results found.",className:s,disabled:a}){const[u,c]=le.useState(!1),d=e.find(p=>String(p.value)===String(t));return m.jsxs(vi,{open:u,onOpenChange:c,children:[m.jsx(bi,{asChild:!0,children:m.jsxs(St,{variant:"outline",role:"combobox",disabled:a,"aria-expanded":u,className:$("w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground",s),children:[m.jsx("span",{className:"truncate",children:d?d.label:n}),m.jsx(Wl,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),m.jsx(Ur,{className:"w-[--radix-popover-trigger-width] p-0 border-border bg-popover",children:m.jsxs(kr,{className:"bg-transparent",children:[m.jsx(Pr,{placeholder:o,className:"h-9"}),m.jsx(Ar,{children:i}),m.jsx(Mr,{className:"max-h-60 overflow-auto p-1",children:e.map(p=>m.jsxs(Nr,{value:p.label,onSelect:()=>{r(String(p.value)),c(!1)},className:"aria-selected:bg-accent aria-selected:text-accent-foreground rounded-md cursor-pointer",children:[m.jsx(Il,{className:$("mr-2 h-4 w-4 text-primary",String(t)===String(p.value)?"opacity-100":"opacity-0")}),m.jsx("span",{className:"truncate",children:p.label})]},p.value))})]})})]})}const yi=l.forwardRef(({className:e,...t},r)=>m.jsx("div",{className:"relative w-full overflow-auto",children:m.jsx("table",{ref:r,className:$("w-full caption-bottom text-sm",e),...t})}));yi.displayName="MriTable";const wi=l.forwardRef(({className:e,...t},r)=>m.jsx("thead",{ref:r,className:$("[&_tr]:border-b",e),...t}));wi.displayName="MriTableHeader";const xi=l.forwardRef(({className:e,...t},r)=>m.jsx("tbody",{ref:r,className:$("[&_tr:last-child]:border-0",e),...t}));xi.displayName="MriTableBody";const Ci=l.forwardRef(({className:e,...t},r)=>m.jsx("tfoot",{ref:r,className:$("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Ci.displayName="MriTableFooter";const Ei=l.forwardRef(({className:e,...t},r)=>m.jsx("tr",{ref:r,className:$("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Ei.displayName="MriTableRow";const Ri=l.forwardRef(({className:e,...t},r)=>m.jsx("th",{ref:r,className:$("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}));Ri.displayName="MriTableHead";const Si=l.forwardRef(({className:e,...t},r)=>m.jsx("td",{ref:r,className:$("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[0.5px]",e),...t}));Si.displayName="MriTableCell";const ki=l.forwardRef(({className:e,...t},r)=>m.jsx("caption",{ref:r,className:$("mt-4 text-sm text-muted-foreground",e),...t}));ki.displayName="MriTableCaption";function Lu({items:e,activeRoute:t,onNavigate:r,collapsed:n=!1,onToggleCollapse:o,footer:i,children:s,className:a}){const u=({item:c})=>{if(c.divider)return m.jsx("div",{className:"my-2 border-b border-white/5 opacity-50"});const d=c.icon,p=c.route&&t===c.route;return m.jsxs(St,{variant:"ghost",className:$("w-full justify-start gap-3 relative transition-all duration-200 border",n&&"justify-center px-0",p?"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",a),onClick:()=>{c.onClick&&c.onClick(),c.route&&r&&r(c.route)},title:n?c.label:void 0,children:[m.jsx(d,{className:$("h-5 w-5 shrink-0",p?"text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]":"")}),!n&&m.jsx("span",{className:$("truncate font-medium",p?"text-foreground":"text-muted-foreground"),children:c.label}),n&&p&&m.jsx("div",{className:"absolute inset-0 bg-primary/10 rounded-md z-[-1]"})]})};return m.jsxs("div",{className:$("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",a),children:[m.jsxs("div",{className:"flex-1 flex flex-col gap-1 w-full overflow-y-auto pr-1 no-scrollbar",children:[e.map((c,d)=>m.jsx(u,{item:c},d)),s]}),m.jsxs("div",{className:"mt-auto w-full flex flex-col gap-2 pt-4 border-t border-border",children:[i,o&&m.jsx("button",{onClick:o,className:$("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?m.jsx(Fl,{className:"h-5 w-5"}):m.jsx(Ll,{className:"h-5 w-5"})})]})]})}N.MriBadge=Pa,N.MriBanIcon=Ql,N.MriBringIcon=Hl,N.MriButton=St,N.MriCard=wn,N.MriCardContent=Rn,N.MriCardDescription=En,N.MriCardFooter=Sn,N.MriCardHeader=xn,N.MriCardTitle=Cn,N.MriClothingIcon=Xl,N.MriCommand=kr,N.MriCommandEmpty=Ar,N.MriCommandGroup=Mr,N.MriCommandInput=Pr,N.MriCommandItem=Nr,N.MriCommandList=Co,N.MriCommandSeparator=Eo,N.MriCommandShortcut=Ro,N.MriDialog=zl,N.MriEyeIcon=ql,N.MriInput=ka,N.MriKickIcon=Jl,N.MriModal=So,N.MriMoneyIcon=Kl,N.MriPageHeader=ec,N.MriPopover=vi,N.MriPopoverContent=Ur,N.MriPopoverTrigger=bi,N.MriReviveIcon=Gl,N.MriSelectSearch=Iu,N.MriSendBackIcon=Ul,N.MriSidebar=Lu,N.MriTable=yi,N.MriTableBody=xi,N.MriTableCaption=ki,N.MriTableCell=Si,N.MriTableFooter=Ci,N.MriTableHead=Ri,N.MriTableHeader=wi,N.MriTableRow=Ei,N.MriTeleportIcon=Vl,N.MriVerifyIcon=Yl,N.MriWarnIcon=Zl,N.cn=$,N.mriBadgeVariants=yn,N.mriButtonVariants=dn,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
110
+ */const Gl=ge("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"}]]);/**
111
+ * @license lucide-react v0.344.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const Kl=ge("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),we=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,isLoading:o=!1,children:a,disabled:i,...s},c)=>{const l=n?Rl:"button",d=i||o;return u.jsx(l,{className:O(ir({variant:t,size:r,className:e})),ref:c,disabled:d,...s,children:o?u.jsxs(u.Fragment,{children:[u.jsx(Vl,{className:"mr-2 h-4 w-4 animate-spin"}),a]}):a})});we.displayName="MriButton";const Ql=(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"})]}),Jl=(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"})]}),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("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"})]}),ec=(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"})]}),tc=(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"})}),rc=(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"})]}),nc=(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"})]}),oc=(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"})]}),ac=(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"})]}),ic=(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"})]}),sc=(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"})]}),Zr=f.forwardRef(({className:e,size:t="default",leftIcon:r,rightIcon:n,error:o,...a},i)=>{const s=!!o,c=typeof o=="string"?o:null;return u.jsxs("div",{className:"w-full space-y-1",children:[u.jsxs("div",{className:"relative flex items-center",children:[r&&u.jsx("div",{className:"absolute left-3 flex items-center justify-center text-muted-foreground pointer-events-none [&>svg]:size-4",children:r}),u.jsx("input",{...a,ref:i,className:O("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",s?"border-destructive focus:border-destructive":"border-input",e)}),n&&u.jsx("div",{className:"absolute right-3 flex items-center justify-center text-muted-foreground pointer-events-none [&>svg]:size-4",children:n})]}),c&&u.jsx("p",{className:"text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1",children:c})]})});Zr.displayName="MriInput";function en(e){const t=lc(e),r=f.forwardRef((n,o)=>{const{children:a,...i}=n,s=f.Children.toArray(a),c=s.find(uc);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 lc(e){const t=f.forwardRef((r,n)=>{const{children:o,...a}=r;if(f.isValidElement(o)){const i=fc(o),s=dc(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 cc=Symbol("radix.slottable");function uc(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cc}function dc(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 fc(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 mc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=mc.reduce((e,t)=>{const r=en(`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 hc(e,t){e&&bo.flushSync(()=>e.dispatchEvent(t))}var Ge=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{};function vc(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var Le=e=>{const{present:t,children:r}=e,n=pc(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),a=pe(n.ref,gc(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:a}):null};Le.displayName="Presence";function pc(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),i=e?"mounted":"unmounted",[s,c]=vc(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 gc(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 bc(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,yc(o,...t)]}function yc(...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 wc=f.createContext(void 0);function xc(e){const t=f.useContext(wc);return e||t||"ltr"}function Cc(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 Sc(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var tn="ScrollArea",[$o]=lr(tn),[Mc,Ne]=$o(tn),Bo=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,j]=f.useState(!1),[N,z]=f.useState(!1),L=pe(t,V=>c(V)),I=xc(o);return u.jsx(Mc,{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:j,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}})})});Bo.displayName=tn;var Yo="ScrollAreaViewport",Ho=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=e,i=Ne(Yo,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})})]})});Ho.displayName=Yo;var We="ScrollAreaScrollbar",rn=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(Pc,{...n,ref:t,forceMount:r}):o.type==="scroll"?u.jsx(kc,{...n,ref:t,forceMount:r}):o.type==="auto"?u.jsx(zo,{...n,ref:t,forceMount:r}):o.type==="always"?u.jsx(nn,{...n,ref:t}):null});rn.displayName=We;var Pc=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(zo,{"data-state":a?"visible":"hidden",...n,ref:t})})}),kc=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]=Sc("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(nn,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:fe(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:fe(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),zo=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(nn,{"data-state":a?"visible":"hidden",...o,ref:t})})}),nn=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=Go(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 Rc(h,i.current,s,v)}return r==="horizontal"?u.jsx(Ec,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const h=o.viewport.scrollLeft,v=Ko(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(Nc,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){const h=o.viewport.scrollTop,v=Ko(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}),Ec=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(Uo,{"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),Jo(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)}})}})}),Nc=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(Uo,{"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),Jo(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)}})}})}),[jc,Vo]=$o(We),Uo=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),j=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(j,[n,j]),xt(b,N),xt(v.content,N),u.jsx(jc,{scope:r,scrollbar:b,hasThumb:o,onThumbChange:Pe(a),onThumbPointerUp:Pe(i),onThumbPositionChange:j,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",qo=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Vo(cr,e.__scopeScrollArea);return u.jsx(Le,{present:r||o.hasThumb,children:u.jsx(_c,{ref:t,...n})})}),_c=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,a=Ne(cr,r),i=Vo(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=Oc(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)})});qo.displayName=cr;var on="ScrollAreaCorner",Xo=f.forwardRef((e,t)=>{const r=Ne(on,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?u.jsx(Dc,{...e,ref:t}):null});Xo.displayName=on;var Dc=f.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=Ne(on,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 Go(e,t){const r=e/t;return isNaN(r)?0:r}function dr(e){const t=Go(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Rc(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 Qo([c,l],m)(e)}function Ko(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=Cc(e,c);return Qo([0,i],[0,s])(l)}function Qo(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 Jo(e,t){return e>0&&e<t}var Oc=(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 Zo=Bo,Ac=Ho,Tc=Xo;const mr=f.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(Zo,{ref:n,className:O("relative overflow-hidden",e),...r,children:[u.jsx(Ac,{className:"h-full w-full rounded-[inherit]",children:t}),u.jsx(an,{}),u.jsx(Tc,{})]}));mr.displayName=Zo.displayName;const an=f.forwardRef(({className:e,orientation:t="vertical",...r},n)=>u.jsx(rn,{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(qo,{className:"relative flex-1 rounded-full bg-border"})}));an.displayName=rn.displayName;function Lc({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 ea=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:O("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ea.displayName="MriCard";const ta=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:O("flex flex-col space-y-1.5 p-6",e),...t}));ta.displayName="MriCardHeader";const ra=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:O("font-semibold leading-none tracking-tight",e),...t}));ra.displayName="MriCardTitle";const na=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:O("text-sm text-muted-foreground",e),...t}));na.displayName="MriCardDescription";const oa=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:O("p-6 pt-0",e),...t}));oa.displayName="MriCardContent";const aa=f.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:O("flex items-center p-6 pt-0",e),...t}));aa.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 Ic="DismissableLayer",sn="dismissableLayer.update",Fc="dismissableLayer.pointerDownOutside",$c="dismissableLayer.focusOutside",ia,sa=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ln=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,l=f.useContext(sa),[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=Hc(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),j=zc(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&&(ia=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),la(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ia)}},[d,h,r,l]),f.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),la())},[d,l]),f.useEffect(()=>{const N=()=>v({});return document.addEventListener(sn,N),()=>document.removeEventListener(sn,N)},[]),u.jsx(he.div,{...c,ref:b,style:{pointerEvents:C?k?"auto":"none":void 0,...e.style},onFocusCapture:fe(e.onFocusCapture,j.onFocusCapture),onBlurCapture:fe(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:fe(e.onPointerDownCapture,E.onPointerDownCapture)})});ln.displayName=Ic;var Bc="DismissableLayerBranch",Yc=f.forwardRef((e,t)=>{const r=f.useContext(sa),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})});Yc.displayName=Bc;function Hc(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(){ca(Fc,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 zc(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&&ca($c,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 la(){const e=new CustomEvent(sn);document.dispatchEvent(e)}function ca(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?hc(o,a):o.dispatchEvent(a)}var cn=0;function ua(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??da()),document.body.insertAdjacentElement("beforeend",e[1]??da()),cn++,()=>{cn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cn--}},[])}function da(){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 un="focusScope.autoFocusOnMount",dn="focusScope.autoFocusOnUnmount",fa={bubbles:!1,cancelable:!0},Vc="FocusScope",fn=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){va.add(v);const g=document.activeElement;if(!s.contains(g)){const w=new CustomEvent(un,fa);s.addEventListener(un,l),s.dispatchEvent(w),w.defaultPrevented||(Uc(Qc(ma(s)),{select:!0}),document.activeElement===g&&nt(s))}return()=>{s.removeEventListener(un,l),setTimeout(()=>{const w=new CustomEvent(dn,fa);s.addEventListener(dn,d),s.dispatchEvent(w),w.defaultPrevented||nt(g??document.body,{select:!0}),s.removeEventListener(dn,d),va.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]=qc(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})});fn.displayName=Vc;function Uc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(nt(n,{select:t}),document.activeElement!==r)return}function qc(e){const t=ma(e),r=ha(t,e),n=ha(t.reverse(),e);return[r,n]}function ma(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 ha(e,t){for(const r of e)if(!Xc(r,{upTo:t}))return r}function Xc(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 Gc(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&&Gc(e)&&t&&e.select()}}var va=Kc();function Kc(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=pa(e,t),e.unshift(t)},remove(t){var r;e=pa(e,t),(r=e[0])==null||r.resume()}}}function pa(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Qc(e){return e.filter(t=>t.tagName!=="A")}var Jc=f[" useId ".trim().toString()]||(()=>{}),Zc=0;function Ie(e){const[t,r]=f.useState(Jc());return Ge(()=>{r(n=>n??String(Zc++))},[e]),t?`radix-${t}`:""}const eu=["top","right","bottom","left"],ot=Math.min,ke=Math.max,hr=Math.round,vr=Math.floor,Fe=e=>({x:e,y:e}),tu={left:"right",right:"left",bottom:"top",top:"bottom"},ru={start:"end",end:"start"};function mn(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 hn(e){return e==="x"?"y":"x"}function vn(e){return e==="y"?"height":"width"}const nu=new Set(["top","bottom"]);function $e(e){return nu.has(Qe(e))?"y":"x"}function pn(e){return hn($e(e))}function ou(e,t,r){r===void 0&&(r=!1);const n=Ct(e),o=pn(e),a=vn(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 au(e){const t=pr(e);return[gn(e),t,gn(t)]}function gn(e){return e.replace(/start|end/g,t=>ru[t])}const ga=["left","right"],ba=["right","left"],iu=["top","bottom"],su=["bottom","top"];function lu(e,t,r){switch(e){case"top":case"bottom":return r?t?ba:ga:t?ga:ba;case"left":case"right":return t?iu:su;default:return[]}}function cu(e,t,r,n){const o=Ct(e);let a=lu(Qe(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(gn)))),a}function pr(e){return e.replace(/left|right|bottom|top/g,t=>tu[t])}function uu(e){return{top:0,right:0,bottom:0,left:0,...e}}function ya(e){return typeof e!="number"?uu(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 wa(e,t,r){let{reference:n,floating:o}=e;const a=$e(t),i=pn(t),s=vn(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 du=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}=wa(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}=wa(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=ya(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 fu=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=ya(d),h={x:r,y:n},v=pn(o),b=vn(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],j=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let N=j?j[C]:0;(!N||!await(i.isElement==null?void 0:i.isElement(j)))&&(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=mn(T,Y,U),K=!c.arrow&&Ct(o)!=null&&Y!==Z&&a.reference[b]/2-(Y<T?I:V)-g[b]/2<0,_=K?Y<T?Y-T:Y-U:0;return{[v]:h[v]+_,data:{[v]:Z,centerOffset:Y-Z-_,...K&&{alignmentOffset:_}},reset:K}}}),mu=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)]:au(s)),j=b!=="none";!h&&j&&E.push(...cu(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=ou(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(_=>_.overflows[0]<=0).sort((_,S)=>_.overflows[1]-S.overflows[1])[0])==null?void 0:T.placement;if(!K)switch(v){case"bestFit":{var U;const _=(U=I.filter(S=>{if(j){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];_&&(K=_);break}case"initialPlacement":K=s;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 Ca(e){return eu.some(t=>e[t]>=0)}const hu=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=xa(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ca(i)}}}case"escaped":{const a=await Vt(t,{...o,altBoundary:!0}),i=xa(a,r.floating);return{data:{escapedOffsets:i,escaped:Ca(i)}}}default:return{}}}}},Sa=new Set(["left","top"]);async function vu(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=Sa.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 pu=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 vu(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}}}}},gu=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=hn(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=mn(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=mn(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}}}}}},bu=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=hn(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=Sa.has(Qe(o)),E=a.reference[m]-a.floating[C]+(k&&((w=i.offset)==null?void 0:w[m])||0)+(k?0:y.crossAxis),j=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>j&&(b=j)}return{[h]:v,[m]:b}}}},yu=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),j=!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),j&&!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 Ma(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=(Ma(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ma(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 Pa(e){return!br()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ee(e).ShadowRoot}const wu=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)&&!wu.has(o)}const xu=new Set(["table","td","th"]);function Cu(e){return xu.has(St(e))}const Su=[":popover-open",":modal"];function yr(e){return Su.some(t=>{try{return e.matches(t)}catch{return!1}})}const Mu=["transform","translate","scale","rotate","perspective"],Pu=["transform","translate","scale","rotate","perspective","filter"],ku=["paint","layout","strict","content"];function bn(e){const t=yn(),r=De(e)?Re(e):e;return Mu.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)||Pu.some(n=>(r.willChange||"").includes(n))||ku.some(n=>(r.contain||"").includes(n))}function Eu(e){let t=at(e);for(;Ye(t)&&!Mt(t);){if(bn(t))return t;if(yr(t))return null;t=at(t)}return null}function yn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Nu=new Set(["html","body","#document"]);function Mt(e){return Nu.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||Pa(e)&&e.host||Be(e);return Pa(t)?t.host:t}function ka(e){const t=at(e);return Mt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&Ut(t)?t:ka(t)}function qt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=ka(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=Ee(o);if(a){const s=wn(i);return t.concat(i,i.visualViewport||[],Ut(o)?o:[],s&&r?qt(s):[])}return t.concat(o,qt(o,[],r))}function wn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ea(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 xn(e){return De(e)?e:e.contextElement}function Pt(e){const t=xn(e);if(!Ye(t))return Fe(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Ea(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 ju=Fe(0);function Na(e){const t=Ee(e);return!yn()||!t.visualViewport?ju:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _u(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=xn(e);let i=Fe(1);t&&(n?De(n)&&(i=Pt(n)):i=Pt(e));const s=_u(a,r,n)?Na(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=wn(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=wn(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 ja(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 Du(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?ja(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 Ru(e){return Array.from(e.getClientRects())}function Ou(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 _a=25;function Au(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=yn();(!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<=_a&&(a-=b)}else l<=_a&&(a+=l);return{width:a,height:i,x:s,y:c}}const Tu=new Set(["absolute","fixed"]);function Lu(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 Da(e,t,r){let n;if(t==="viewport")n=Au(e,r);else if(t==="document")n=Ou(Be(e));else if(De(t))n=Lu(t,r);else{const o=Na(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return gr(n)}function Ra(e,t){const r=at(e);return r===t||!De(r)||Mt(r)?!1:Re(r).position==="fixed"||Ra(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=bn(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&Tu.has(o.position)||Ut(i)&&!c&&Ra(e,i))?n=n.filter(d=>d!==i):o=s,i=at(i)}return t.set(e,n),n}function Iu(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=Da(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},Da(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Fu(e){const{width:t,height:r}=Ea(e);return{width:t,height:r}}function $u(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?ja(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 Cn(e){return Re(e).position==="static"}function Oa(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 Aa(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)&&!Cn(o))return o;o=at(o)}return r}let n=Oa(e,t);for(;n&&Cu(n)&&Cn(n);)n=Oa(n,t);return n&&Mt(n)&&Cn(n)&&!bn(n)?r:n||Eu(e)||r}const Bu=async function(e){const t=this.getOffsetParent||Aa,r=this.getDimensions,n=await r(e.floating);return{reference:$u(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Yu(e){return Re(e).direction==="rtl"}const Hu={convertOffsetParentRelativeRectToViewportRelativeRect:Du,getDocumentElement:Be,getClippingRect:Iu,getOffsetParent:Aa,getElementRects:Bu,getClientRects:Ru,getDimensions:Fu,getScale:Pt,isElement:De,isRTL:Yu};function Ta(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function zu(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(j){const N=j[0].intersectionRatio;if(N!==c){if(!k)return i();N?i(!1,N):n=setTimeout(()=>{i(!1,1e-7)},1e3)}N===1&&!Ta(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 Vu(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=xn(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?zu(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&&!Ta(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 Uu=pu,qu=gu,Xu=mu,Gu=yu,Ku=hu,La=fu,Qu=bu,Ju=(e,t,r)=>{const n=new Map,o={platform:Hu,...r},a={...o.platform,_c:n};return du(e,t,{...o,platform:a})};var Zu=typeof document<"u",ed=function(){},Cr=Zu?B.useLayoutEffect:ed;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 Wa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ia(e,t){const r=Wa(e);return Math.round(t*r)/r}function Sn(e){const t=f.useRef(e);return Cr(()=>{t.current=e}),t}function td(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!==j.current&&(j.current=S,g(S))},[]),C=f.useCallback(S=>{S!==N.current&&(N.current=S,w(S))},[]),k=a||b,E=i||y,j=f.useRef(null),N=f.useRef(null),z=f.useRef(d),L=c!=null,I=Sn(c),V=Sn(o),T=Sn(l),U=f.useCallback(()=>{if(!j.current||!N.current)return;const S={placement:t,strategy:r,middleware:h};V.current&&(S.platform=V.current),Ju(j.current,N.current,S).then(J=>{const le={...J,isPositioned:T.current!==!1};Y.current&&!Sr(z.current,le)&&(z.current=le,bo.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&&(j.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:j,floating:N,setReference:x,setFloating:C}),[x,C]),K=f.useMemo(()=>({reference:k,floating:E}),[k,E]),_=f.useMemo(()=>{const S={position:r,left:0,top:0};if(!K.floating)return S;const J=Ia(K.floating,d.x),le=Ia(K.floating,d.y);return s?{...S,transform:"translate("+J+"px, "+le+"px)",...Wa(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:_}),[d,U,Z,K,_])}const rd=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?La({element:n.current,padding:o}).fn(r):{}:n?La({element:n,padding:o}).fn(r):{}}}},nd=(e,t)=>({...Uu(e),options:[e,t]}),od=(e,t)=>({...qu(e),options:[e,t]}),ad=(e,t)=>({...Qu(e),options:[e,t]}),id=(e,t)=>({...Xu(e),options:[e,t]}),sd=(e,t)=>({...Gu(e),options:[e,t]}),ld=(e,t)=>({...Ku(e),options:[e,t]}),cd=(e,t)=>({...rd(e),options:[e,t]});var ud="Arrow",Fa=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"})})});Fa.displayName=ud;var dd=Fa;function fd(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 Mn="Popper",[$a,Ba]=lr(Mn),[md,Ya]=$a(Mn),Ha=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return u.jsx(md,{scope:t,anchor:n,onAnchorChange:o,children:r})};Ha.displayName=Mn;var za="PopperAnchor",Va=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Ya(za,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})});Va.displayName=za;var Pn="PopperContent",[hd,vd]=$a(Pn),Ua=f.forwardRef((e,t)=>{var ee,ue,ce,je,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=Ya(Pn,r),[w,x]=f.useState(null),C=pe(t,pt=>x(pt)),[k,E]=f.useState(null),j=fd(k),N=(j==null?void 0:j.width)??0,z=(j==null?void 0:j.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(gd),altBoundary:T},{refs:Y,floatingStyles:Z,placement:K,isPositioned:_,middlewareData:S}=td({strategy:"fixed",placement:L,whileElementsMounted:(...pt)=>Vu(...pt,{animationFrame:v==="always"}),elements:{reference:y.anchor},middleware:[nd({mainAxis:o+z,alignmentAxis:i}),c&&od({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?ad():void 0,...U}),c&&id({...U}),sd({...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&&cd({element:k,padding:s}),bd({arrowWidth:N,arrowHeight:z}),h&&ld({strategy:"referenceHidden",...U})]}),[J,le]=Ga(K),se=Pe(b);Ge(()=>{_&&(se==null||se())},[_,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:_?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:A,"--radix-popper-transform-origin":[(je=S.transformOrigin)==null?void 0:je.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(hd,{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:_?void 0:"none"}})})})});Ua.displayName=Pn;var qa="PopperArrow",pd={top:"bottom",right:"left",bottom:"top",left:"right"},Xa=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=vd(qa,n),i=pd[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(dd,{...o,ref:r,style:{...o.style,display:"block"}})})});Xa.displayName=qa;function gd(e){return e!==null}var bd=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]=Ga(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 Ga(e){const[t,r="center"]=e.split("-");return[t,r]}var yd=Ha,Ka=Va,wd=Ua,xd=Xa,Cd="Portal",kn=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?po.createPortal(u.jsx(he.div,{...n,ref:t}),i):null});kn.displayName=Cd;var Sd=f[" useInsertionEffect ".trim().toString()]||Ge;function Qa({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,i]=Md({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=Pd(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 Md({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),a=f.useRef(t);return Sd(()=>{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 Pd(e){return typeof e=="function"}var kd=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={},En=0,Ja=function(e){return e&&(e.host||Ja(e.parentNode))},Ed=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Ja(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})},Nd=function(e,t,r,n){var o=Ed(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(),En++,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)}),En--,En||(kt=new WeakMap,kt=new WeakMap,Mr=new WeakMap,Pr={})}},Za=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=kd(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Nd(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 ei(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 jd(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",_d="with-scroll-bars-hidden",Dd="--removed-body-scroll-bar-size";function Nn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Rd(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 Od=typeof window<"u"?f.useLayoutEffect:f.useEffect,ti=new WeakMap;function Ad(e,t){var r=Rd(null,function(n){return e.forEach(function(o){return Nn(o,n)})});return Od(function(){var n=ti.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||Nn(s,null)}),a.forEach(function(s){o.has(s)||Nn(s,i)})}ti.set(r,e)},[e]),r}function Td(e){return e}function Ld(e,t){t===void 0&&(t=Td);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=Ld(null);return t.options=He({async:!0,ssr:!1},e),t}var ri=function(e){var t=e.sideCar,r=ei(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))};ri.isSideCarExport=!0;function Id(e,t){return e.useMedium(t),ri}var ni=Wd(),jn=function(){},Nr=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:jn,onWheelCapture:jn,onTouchMoveCapture:jn}),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=ei(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,j=Ad([r,t]),N=He(He({},k),o);return f.createElement(f.Fragment,null,d&&f.createElement(E,{sideCar:ni,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:j})):f.createElement(x,He({},N,{className:c,ref:j}),s))});Nr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Nr.classNames={fullWidth:Er,zeroRight:kr};var Fd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $d(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fd();return t&&e.setAttribute("nonce",t),e}function Bd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Yd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Hd=function(){var e=0,t=null;return{add:function(r){e==0&&(t=$d())&&(Bd(t,r),Yd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},zd=function(){var e=Hd();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},oi=function(){var e=zd(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Vd={left:0,top:0,right:0,gap:0},_n=function(e){return parseInt(e||"",10)||0},Ud=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[_n(r),_n(n),_n(o)]},qd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Vd;var t=Ud(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])}},Xd=oi(),Et="data-scroll-locked",Gd=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
116
+ .`.concat(_d,` {
117
+ overflow: hidden `).concat(n,`;
118
+ padding-right: `).concat(s,"px ").concat(n,`;
119
+ }
120
+ body[`).concat(Et,`] {
121
+ overflow: hidden `).concat(n,`;
122
+ overscroll-behavior: contain;
123
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
124
+ padding-left: `.concat(o,`px;
125
+ padding-top: `).concat(a,`px;
126
+ padding-right: `).concat(i,`px;
127
+ margin-left:0;
128
+ margin-top:0;
129
+ margin-right: `).concat(s,"px ").concat(n,`;
130
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
131
+ }
132
+
133
+ .`).concat(kr,` {
134
+ right: `).concat(s,"px ").concat(n,`;
135
+ }
136
+
137
+ .`).concat(Er,` {
138
+ margin-right: `).concat(s,"px ").concat(n,`;
139
+ }
140
+
141
+ .`).concat(kr," .").concat(kr,` {
142
+ right: 0 `).concat(n,`;
143
+ }
144
+
145
+ .`).concat(Er," .").concat(Er,` {
146
+ margin-right: 0 `).concat(n,`;
147
+ }
148
+
149
+ body[`).concat(Et,`] {
150
+ `).concat(Dd,": ").concat(s,`px;
151
+ }
152
+ `)},ai=function(){var e=parseInt(document.body.getAttribute(Et)||"0",10);return isFinite(e)?e:0},Kd=function(){f.useEffect(function(){return document.body.setAttribute(Et,(ai()+1).toString()),function(){var e=ai()-1;e<=0?document.body.removeAttribute(Et):document.body.setAttribute(Et,e.toString())}},[])},Qd=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Kd();var a=f.useMemo(function(){return qd(o)},[o]);return f.createElement(Xd,{styles:Gd(a,!t,o,r?"":"!important")})},Dn=!1;if(typeof window<"u")try{var jr=Object.defineProperty({},"passive",{get:function(){return Dn=!0,!0}});window.addEventListener("test",jr,jr),window.removeEventListener("test",jr,jr)}catch{Dn=!1}var Nt=Dn?{passive:!1}:!1,Jd=function(e){return e.tagName==="TEXTAREA"},ii=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Jd(e)&&r[t]==="visible")},Zd=function(e){return ii(e,"overflowY")},ef=function(e){return ii(e,"overflowX")},si=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=li(e,n);if(o){var a=ci(e,n),i=a[1],s=a[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},tf=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},rf=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},li=function(e,t){return e==="v"?Zd(t):ef(t)},ci=function(e,t){return e==="v"?tf(t):rf(t)},nf=function(e,t){return e==="h"&&t==="rtl"?-1:1},of=function(e,t,r,n,o){var a=nf(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=ci(e,s),b=v[0],g=v[1],y=v[2],w=g-y-a*b;(b||w)&&li(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},_r=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ui=function(e){return[e.deltaX,e.deltaY]},di=function(e){return e&&"current"in e?e.current:e},af=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sf=function(e){return`
153
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
154
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
155
+ `)},lf=0,jt=[];function cf(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(lf++)[0],a=f.useState(oi)[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=jd([e.lockRef.current],(e.shards||[]).map(di),!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=_r(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,j=g.target,N=Math.abs(C)>Math.abs(k)?"h":"v";if("touches"in g&&N==="h"&&j.type==="range")return!1;var z=window.getSelection(),L=z&&z.anchorNode,I=L?L===j||L.contains(j):!1;if(I)return!1;var V=si(N,j);if(!V)return!0;if(V?E=N:(E=N==="v"?"h":"v",V=si(N,j)),!V)return!1;if(!n.current&&"changedTouches"in g&&(C||k)&&(n.current=E),!E)return!0;var T=n.current||E;return of(T,y,g,T==="h"?C:k)},[]),c=f.useCallback(function(g){var y=g;if(!(!jt.length||jt[jt.length-1]!==a)){var w="deltaY"in y?ui(y):_r(y),x=t.current.filter(function(E){return E.name===y.type&&(E.target===y.target||y.target===E.shadowParent)&&af(E.delta,w)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var C=(i.current.shards||[]).map(di).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:uf(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=_r(g),n.current=void 0},[]),m=f.useCallback(function(g){l(g.type,ui(g),g.target,s(g,e.lockRef.current))},[]),h=f.useCallback(function(g){l(g.type,_r(g),g.target,s(g,e.lockRef.current))},[]);f.useEffect(function(){return jt.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(){jt=jt.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:sf(o)}):null,v?f.createElement(Qd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function uf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const df=Id(ni,cf);var Rn=f.forwardRef(function(e,t){return f.createElement(Nr,He({},e,{ref:t,sideCar:df}))});Rn.classNames=Nr.classNames;var Dr="Popover",[fi]=lr(Dr,[Ba]),Xt=Ba(),[ff,it]=fi(Dr),mi=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]=Qa({prop:n,defaultProp:o??!1,onChange:a,caller:Dr});return u.jsx(yd,{...s,children:u.jsx(ff,{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})})};mi.displayName=Dr;var hi="PopoverAnchor",mf=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=it(hi,r),a=Xt(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return f.useEffect(()=>(i(),()=>s()),[i,s]),u.jsx(Ka,{...a,...n,ref:t})});mf.displayName=hi;var vi="PopoverTrigger",pi=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=it(vi,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":xi(o.open),...n,ref:i,onClick:fe(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:u.jsx(Ka,{asChild:!0,...a,children:s})});pi.displayName=vi;var On="PopoverPortal",[hf,vf]=fi(On,{forceMount:void 0}),gi=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=it(On,t);return u.jsx(hf,{scope:t,forceMount:r,children:u.jsx(Le,{present:r||a.open,children:u.jsx(kn,{asChild:!0,container:o,children:n})})})};gi.displayName=On;var _t="PopoverContent",bi=f.forwardRef((e,t)=>{const r=vf(_t,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=it(_t,e.__scopePopover);return u.jsx(Le,{present:n||a.open,children:a.modal?u.jsx(gf,{...o,ref:t}):u.jsx(bf,{...o,ref:t})})});bi.displayName=_t;var pf=en("PopoverContent.RemoveScroll"),gf=f.forwardRef((e,t)=>{const r=it(_t,e.__scopePopover),n=f.useRef(null),o=pe(t,n),a=f.useRef(!1);return f.useEffect(()=>{const i=n.current;if(i)return Za(i)},[]),u.jsx(Rn,{as:pf,allowPinchZoom:!0,children:u.jsx(yi,{...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})})})}),bf=f.forwardRef((e,t)=>{const r=it(_t,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return u.jsx(yi,{...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()}})}),yi=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(_t,r),v=Xt(r);return ua(),u.jsx(fn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(ln,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>h.onOpenChange(!1),children:u.jsx(wd,{"data-state":xi(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)"}})})})}),wi="PopoverClose",yf=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=it(wi,r);return u.jsx(he.button,{type:"button",...n,ref:t,onClick:fe(e.onClick,()=>o.onOpenChange(!1))})});yf.displayName=wi;var wf="PopoverArrow",xf=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Xt(r);return u.jsx(xd,{...o,...n,ref:t})});xf.displayName=wf;function xi(e){return e?"open":"closed"}var Cf=mi,Sf=pi,Mf=gi,Ci=bi;const Gt=Cf,Kt=Sf,Dt=f.forwardRef(({className:e,align:t="center",sideOffset:r=4,...n},o)=>u.jsx(Mf,{children:u.jsx(Ci,{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=Ci.displayName;var Si=1,Pf=.9,kf=.8,Ef=.17,An=.1,Tn=.999,Nf=.9999,jf=.99,_f=/[\\\/_+.#"@\[\(\{&]/,Df=/[\\\/_+.#"@\[\(\{&]/g,Rf=/[\s-]/,Mi=/[\s-]/g;function Ln(e,t,r,n,o,a,i){if(a===t.length)return o===e.length?Si:jf;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=Ln(e,t,r,n,l+1,a+1,i),m>d&&(l===o?m*=Si:_f.test(e.charAt(l-1))?(m*=kf,v=e.slice(o,l-1).match(Df),v&&o>0&&(m*=Math.pow(Tn,v.length))):Rf.test(e.charAt(l-1))?(m*=Pf,b=e.slice(o,l-1).match(Mi),b&&o>0&&(m*=Math.pow(Tn,b.length))):(m*=Ef,o>0&&(m*=Math.pow(Tn,l-o))),e.charAt(l)!==t.charAt(a)&&(m*=Nf)),(m<An&&r.charAt(l-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(l-1)!==n.charAt(a))&&(h=Ln(e,t,r,n,l+1,a+2,i),h*An>m&&(m=h*An)),m>d&&(d=m),l=r.indexOf(c,l+1);return i[s]=d,d}function Pi(e){return e.toLowerCase().replace(Mi," ")}function Of(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Ln(e,t,Pi(e),Pi(t),0,0,{})}var Rr="Dialog",[ki]=lr(Rr),[Af,Oe]=ki(Rr),Ei=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]=Qa({prop:n,defaultProp:o??!1,onChange:a,caller:Rr});return u.jsx(Af,{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})};Ei.displayName=Rr;var Ni="DialogTrigger",Tf=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Ni,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":Fn(o.open),...n,ref:a,onClick:fe(e.onClick,o.onOpenToggle)})});Tf.displayName=Ni;var Wn="DialogPortal",[Lf,ji]=ki(Wn,{forceMount:void 0}),_i=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=Oe(Wn,t);return u.jsx(Lf,{scope:t,forceMount:r,children:f.Children.map(n,i=>u.jsx(Le,{present:r||a.open,children:u.jsx(kn,{asChild:!0,container:o,children:i})}))})};_i.displayName=Wn;var Or="DialogOverlay",Di=f.forwardRef((e,t)=>{const r=ji(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(If,{...o,ref:t})}):null});Di.displayName=Or;var Wf=en("DialogOverlay.RemoveScroll"),If=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Or,r);return u.jsx(Rn,{as:Wf,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(he.div,{"data-state":Fn(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),ft="DialogContent",Ri=f.forwardRef((e,t)=>{const r=ji(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(Ff,{...o,ref:t}):u.jsx($f,{...o,ref:t})})});Ri.displayName=ft;var Ff=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 Za(a)},[]),u.jsx(Oi,{...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())})}),$f=f.forwardRef((e,t)=>{const r=Oe(ft,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return u.jsx(Oi,{...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()}})}),Oi=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 ua(),u.jsxs(u.Fragment,{children:[u.jsx(fn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:u.jsx(ln,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Fn(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(zf,{titleId:s.titleId}),u.jsx(Uf,{contentRef:c,descriptionId:s.descriptionId})]})]})}),In="DialogTitle",Bf=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(In,r);return u.jsx(he.h2,{id:o.titleId,...n,ref:t})});Bf.displayName=In;var Ai="DialogDescription",Yf=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Ai,r);return u.jsx(he.p,{id:o.descriptionId,...n,ref:t})});Yf.displayName=Ai;var Ti="DialogClose",Hf=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Oe(Ti,r);return u.jsx(he.button,{type:"button",...n,ref:t,onClick:fe(e.onClick,()=>o.onOpenChange(!1))})});Hf.displayName=Ti;function Fn(e){return e?"open":"closed"}var Li="DialogTitleWarning",[ug,Wi]=bc(Li,{contentName:ft,titleName:In,docsSlug:"dialog"}),zf=({titleId:e})=>{const t=Wi(Li),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
156
+
157
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
158
+
159
+ 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},Vf="DialogDescriptionWarning",Uf=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Wi(Vf).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},Ii=Ei,Fi=_i,$i=Di,Bi=Ri,qf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],st=qf.reduce((e,t)=>{const r=Lo(`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=""]',$n='[cmdk-group-items=""]',Xf='[cmdk-group-heading=""]',Yi='[cmdk-item=""]',Hi=`${Yi}:not([aria-disabled="true"])`,Bn="cmdk-item-select",Rt="data-value",Gf=(e,t,r)=>Of(e,t,r),zi=f.createContext(void 0),Jt=()=>f.useContext(zi),Vi=f.createContext(void 0),Yn=()=>f.useContext(Vi),Ui=f.createContext(void 0),qi=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=Xi(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),j=im();mt(()=>{if(d!==void 0){let P=d.trim();r.current.value=P,N.emit()}},[d]),mt(()=>{j(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(),j(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(j(7,()=>{var ce;r.current.selectedItemId=(ce=Y())==null?void 0:ce.id,N.emit()}),q||j(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)),j(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]))),j(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();j(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:Gf;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"),je=Q.getAttribute("id");return((ee=P.get(je))!=null?ee:0)-((ue=P.get(ce))!=null?ue:0)}).forEach(A=>{let Q=A.closest($n);Q?Q.appendChild(A.parentElement===Q?A:A.closest(`${$n} > *`)):q.appendChild(A.parentElement===q?A:A.closest(`${$n} > *`))}),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:[],je=L(ue,ce);r.current.filtered.items.set(ee,je),je>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(Xf))==null||q.scrollIntoView({block:"nearest"})),A.scrollIntoView({block:"nearest"}))}function Y(){var P;return(P=E.current)==null?void 0:P.querySelector(`${Yi}[aria-selected="true"]`)}function Z(){var P;return Array.from(((P=E.current)==null?void 0:P.querySelectorAll(Hi))||[])}function K(P){let F=Z()[P];F&&N.setState("value",F.getAttribute(Rt))}function _(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?om(q,Qt):am(q,Qt),A=q==null?void 0:q.querySelector(Hi);A?N.setState("value",A.getAttribute(Rt)):_(P)}let J=()=>K(Z().length-1),le=P=>{P.preventDefault(),P.metaKey?J():P.altKey?S(1):_(1)},se=P=>{P.preventDefault(),P.metaKey?K(0):P.altKey?S(-1):_(-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(Bn);A.dispatchEvent(Q)}}}}},f.createElement("label",{"cmdk-label":"",htmlFor:z.inputId,id:z.labelId,style:lm},c),Ar(e,P=>f.createElement(Vi.Provider,{value:N},f.createElement(zi.Provider,{value:z},P))))}),Kf=f.forwardRef((e,t)=>{var r,n;let o=Ie(),a=f.useRef(null),i=f.useContext(Ui),s=Jt(),c=Xi(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=Gi(o,a,[e.value,e.children,a],e.keywords),m=Yn(),h=lt(j=>j.value&&j.value===d.current),v=lt(j=>l||s.filter()===!1?!0:j.search?j.filtered.items.get(o)>0:!0);f.useEffect(()=>{let j=a.current;if(!(!j||e.disabled))return j.addEventListener(Bn,b),()=>j.removeEventListener(Bn,b)},[v,e.onSelect,e.disabled]);function b(){var j,N;g(),(N=(j=c.current).onSelect)==null||N.call(j,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)}),Qf=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),[]),Gi(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(Ui.Provider,{value:h},v))))}),Jf=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"})}),Zf=f.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=Yn(),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)}})}),em=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)))}),tm=f.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:i,...s}=e;return f.createElement(Ii,{open:r,onOpenChange:n},f.createElement(Fi,{container:i},f.createElement($i,{"cmdk-overlay":"",className:o}),f.createElement(Bi,{"aria-label":e.label,"cmdk-dialog":"",className:a},f.createElement(qi,{ref:t,...s}))))}),rm=f.forwardRef((e,t)=>lt(r=>r.filtered.count===0)?f.createElement(st.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),nm=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)))}),xe=Object.assign(qi,{List:em,Item:Kf,Input:Zf,Group:Qf,Separator:Jf,Dialog:tm,Empty:rm,Loading:nm});function om(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function am(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Xi(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=Yn(),r=()=>e(t.snapshot());return f.useSyncExternalStore(t.subscribe,r,r)}function Gi(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 im=()=>{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 sm(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(sm(t),{ref:t.ref},r(t.props.children)):r(t)}var lm={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Tr=f.forwardRef(({className:e,...t},r)=>u.jsx(xe,{ref:r,className:O("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Tr.displayName=xe.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(Jr,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),u.jsx(xe.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=xe.Input.displayName;const Ki=f.forwardRef(({className:e,...t},r)=>u.jsx(xe.List,{ref:r,className:O("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Ki.displayName=xe.List.displayName;const Wr=f.forwardRef((e,t)=>u.jsx(xe.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Wr.displayName=xe.Empty.displayName;const Ir=f.forwardRef(({className:e,...t},r)=>u.jsx(xe.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=xe.Group.displayName;const Qi=f.forwardRef(({className:e,...t},r)=>u.jsx(xe.Separator,{ref:r,className:O("-mx-1 h-px bg-border",e),...t}));Qi.displayName=xe.Separator.displayName;const Fr=f.forwardRef(({className:e,...t},r)=>u.jsx(xe.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=xe.Item.displayName;const Ji=({className:e,...t})=>u.jsx("span",{className:O("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Ji.displayName="MriCommandShortcut";function cm({options:e,value:t,onChange:r,searchPlaceholder:n="Search...",emptyMessage:o="No results found.",className:a,disabled:i,size:s="default",error:c}){const[l,d]=B.useState(!1);return u.jsxs(Gt,{open:l,onOpenChange:d,children:[u.jsx(Kt,{asChild:!0,children:u.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[u.jsx(we,{variant:"ghost",size:s==="sm"?"sm":"icon",disabled:i,"aria-expanded":l,className:O("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",c?"border-destructive text-destructive":"border-input",s==="default"&&"!h-[42px] !w-[42px]",s==="sm"&&"!h-8 !w-8",a),children:u.jsx(Jr,{className:"h-4 w-4"})}),typeof c=="string"&&u.jsx("p",{className:"text-[10px] font-medium text-destructive animate-in fade-in slide-in-from-top-1 whitespace-nowrap",children:c})]})}),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(m=>u.jsxs(Fr,{value:m.label,onSelect:()=>{r(String(m.value)),d(!1)},className:"aria-selected:bg-accent aria-selected:text-accent-foreground rounded-md cursor-pointer",children:[u.jsx(Wo,{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))})]})})]})}function Zi({children:e,onClose:t,className:r}){return B.useEffect(()=>{try{document.body.dataset.psModalOpen="true"}catch{}return()=>{try{delete document.body.dataset.psModalOpen}catch{}}},[]),u.jsx(Ii,{open:!0,onOpenChange:n=>{n||t==null||t()},children:u.jsxs(Fi,{children:[u.jsx($i,{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"}),u.jsx(Bi,{className:O("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 um({title:e,children:t,onClose:r,className:n}){return u.jsxs(Zi,{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(Kl,{className:"w-5 h-5"})})]}),u.jsx("div",{children:t})]})}function dm({options:e,value:t,onChange:r,placeholder:n="Select...",searchPlaceholder:o="Search...",emptyMessage:a="No results found.",className:i,disabled:s,size:c="default",isLoading:l=!1,error:d}){const[m,h]=B.useState(!1),v=e.find(b=>String(b.value)===String(t));return u.jsxs(Gt,{open:m,onOpenChange:h,children:[u.jsx(Kt,{asChild:!0,children:u.jsxs("div",{className:"w-full space-y-1",children:[u.jsxs(we,{variant:"outline",role:"combobox",disabled:s||l,isLoading:l,"aria-expanded":m,size:c,className:O("w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground",d&&"border-destructive focus:ring-destructive",i),children:[u.jsx("span",{className:"truncate",children:v?v.label:n}),u.jsx(Bl,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]}),typeof d=="string"&&u.jsx("p",{className:"text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1",children:d})]})}),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(b=>u.jsxs(Fr,{value:b.label,onSelect:()=>{r(String(b.value)),h(!1)},className:"aria-selected:bg-accent aria-selected:text-accent-foreground rounded-md cursor-pointer",children:[u.jsx(Wo,{className:O("mr-2 h-4 w-4 text-primary",String(t)===String(b.value)?"opacity-100":"opacity-0")}),u.jsx("span",{className:"truncate",children:b.label})]},b.value))})]})})]})}var fm=(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{}},mm=f.createContext(void 0),hm={setTheme:e=>{},themes:[]},vm=()=>{var e;return(e=f.useContext(mm))!=null?e:hm};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:`(${fm.toString()})(${d})`}})});const pm=({themeLabel:e="Tema",themeIconLabel:t="Alterar tema",lightLabel:r="Claro",darkLabel:n="Escuro",systemLabel:o="Sistema"})=>{const{theme:a,setTheme:i}=vm(),[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:Gl,label:r},{value:"dark",icon:ql,label:n},{value:"system",icon:zl,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(we,{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)})})},gm=Array.from({length:24},(e,t)=>t),bm=Array.from({length:60},(e,t)=>t),ym=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 wm({value:e,onChange:t,disabled:r,hourLabel:n="Hora",minuteLabel:o="Minuto",size:a="default",error:i}){const[s,c]=f.useState(!1),[l,d]=ym(e),m=gm,h=bm,v=(b,g)=>{let y=l,w=d;b==="hour"&&(y=g),b==="minute"&&(w=g);const x=y.toString().padStart(2,"0"),C=w.toString().padStart(2,"0");t(`${x}:${C}`)};return u.jsxs(Gt,{open:s,onOpenChange:c,children:[u.jsx(Kt,{asChild:!0,children:u.jsxs("div",{className:"w-full space-y-1",children:[u.jsx(we,{variant:"outline",size:a,className:O("w-full min-w-[120px] justify-start pl-3 text-left font-normal",!e&&"text-muted-foreground",i&&"border-destructive focus:ring-destructive"),disabled:r,children:u.jsxs("div",{className:"flex items-center w-full gap-2",children:[u.jsx("span",{children:e||"00:00"}),u.jsx(Yl,{className:"ml-auto h-4 w-4 opacity-50"})]})}),typeof i=="string"&&u.jsx("p",{className:"text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1",children:i})]})}),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:m.map(b=>u.jsx(we,{variant:"ghost",size:"sm",className:O("w-full justify-center text-sm",l===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))})})]}),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:h.map(b=>u.jsx(we,{variant:"ghost",size:"sm",className:O("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 xm({text:e,className:t,iconSize:r=4,variant:n="ghost"}){const o=a=>{a.stopPropagation(),navigator.clipboard.writeText(e)};return u.jsx(we,{size:"sm",variant:n,className:O("p-0 text-muted-foreground hover:text-foreground",t),onClick:o,title:"Copy to clipboard",children:u.jsx(Hl,{className:O(`w-${r} h-${r}`)})})}function Cm({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(we,{size:"icon",variant:"ghost",className:"h-7 w-7 rounded bg-muted hover:bg-muted/80",onClick:n,children:u.jsx(Xl,{className:"w-3.5 h-3.5"})}),u.jsx(we,{size:"icon",variant:"ghost",className:"h-7 w-7 rounded bg-muted hover:bg-muted/80",onClick:o,children:u.jsx(Ul,{className:"w-3.5 h-3.5"})})]})]})}function Sm({icon:e,label:t,onClick:r,variant:n="default",disabled:o=!1,className:a}){return u.jsxs(we,{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 Mm({value:e,onChange:t,placeholder:r,className:n,width:o="w-80",size:a="default",error:i}){return u.jsxs("div",{className:O("relative",o,n),children:[u.jsx(Jr,{className:O("absolute left-3 top-2.5 w-4 h-4 text-muted-foreground pointer-events-none z-10",a==="sm"&&"top-2")}),u.jsx(Zr,{placeholder:r,value:e,onChange:s=>t(s.target.value),size:a,error:i,className:O("pl-9 bg-card border-border focus:border-primary/50 w-full transition-colors",a==="default"&&"h-10")})]})}function Pm({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 Hn=6048e5,km=864e5,es=Symbol.for("constructDateFrom");function ve(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&es in e?e[es](t):e instanceof Date?new e.constructor(t):new Date(t)}function re(e,t){return ve(t||e,e)}function be(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 Em={};function Zt(){return Em}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 ts(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)/km)}function Nm(e,t){const r=ts(e,t),n=ve(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),ht(n)}function zn(e,t,r){return be(e,t*7,r)}function jm(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 Dm(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 Vn(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Rm(e){return!(!Vn(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 Om(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)/Hn)}function Un(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 rs(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 qn(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 ns(e,t){return qn(e,{...t,weekStartsOn:1})}const Am={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"}},Tm=(e,t,r)=>{let n;const o=Am[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 Lm={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Wm={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Im={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fm={date:Lt({formats:Lm,defaultWidth:"full"}),time:Lt({formats:Wm,defaultWidth:"full"}),dateTime:Lt({formats:Im,defaultWidth:"full"})},$m={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Bm=(e,t,r,n)=>$m[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 Ym={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Hm={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zm={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"]},Vm={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"]},Um={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"}},qm={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"}},Xm={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:Ym,defaultWidth:"wide"}),quarter:Ue({values:Hm,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ue({values:zm,defaultWidth:"wide"}),day:Ue({values:Vm,defaultWidth:"wide"}),dayPeriod:Ue({values:Um,defaultWidth:"wide",formattingValues:qm,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)?Km(s,m=>m.test(i)):Gm(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 Gm(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Km(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function os(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 Qm=/^(\d+)(th|st|nd|rd)?/i,Jm=/\d+/i,Zm={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},eh={any:[/^b/i,/^(a|c)/i]},th={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rh={any:[/1/i,/2/i,/3/i,/4/i]},nh={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},oh={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]},ah={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},ih={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]},sh={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},lh={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}},ch={ordinalNumber:os({matchPattern:Qm,parsePattern:Jm,valueCallback:e=>parseInt(e,10)}),era:qe({matchPatterns:Zm,defaultMatchWidth:"wide",parsePatterns:eh,defaultParseWidth:"any"}),quarter:qe({matchPatterns:th,defaultMatchWidth:"wide",parsePatterns:rh,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qe({matchPatterns:nh,defaultMatchWidth:"wide",parsePatterns:oh,defaultParseWidth:"any"}),day:qe({matchPatterns:ah,defaultMatchWidth:"wide",parsePatterns:ih,defaultParseWidth:"any"}),dayPeriod:qe({matchPatterns:sh,defaultMatchWidth:"any",parsePatterns:lh,defaultParseWidth:"any"})},as={code:"en-US",formatDistance:Tm,formatLong:Fm,formatRelative:Bm,localize:Xm,match:ch,options:{weekStartsOn:0,firstWeekContainsDate:1}};function uh(e,t){const r=re(e,t==null?void 0:t.in);return Ve(r,rs(r))+1}function is(e,t){const r=re(e,t==null?void 0:t.in),n=+ht(r)-+Nm(r);return Math.round(n/Hn)+1}function ss(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 dh(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=ss(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 ls(e,t){const r=re(e,t==null?void 0:t.in),n=+ze(r,t)-+dh(r,t);return Math.round(n/Hn)+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"},cs={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=ss(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=ts(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=ls(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):ne(o,t.length)},I:function(e,t,r){const n=is(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=uh(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 ds(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 ds(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"+us(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"+us(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 us(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 ds(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 fs=(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"})}},ms=(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"})}},fh={p:ms,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return fs(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}}",fs(n,t)).replace("{{time}}",ms(o,t))}},mh=/^D+$/,hh=/^Y+$/,vh=["D","DD","YY","YYYY"];function ph(e){return mh.test(e)}function gh(e){return hh.test(e)}function bh(e,t,r){const n=yh(e,t,r);if(console.warn(n),vh.includes(e))throw new RangeError(n)}function yh(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 wh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ch=/^'([^]*?)'?$/,Sh=/''/g,Mh=/[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??as,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(!Rm(s))throw new RangeError("Invalid time value");let c=t.match(xh).map(x=>{const C=x[0];if(C==="p"||C==="P"){const k=fh[C];return k(x,o.formatLong)}return x}).join("").match(wh).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const C=x[0];if(C==="'")return{isToken:!1,value:Ph(x)};if(cs[C])return{isToken:!0,value:x};if(C.match(Mh))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)&&gh(C)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&ph(C))&&bh(C,t,String(e));const k=cs[C[0]];return k(s,C,o.localize,l)}).join("")}function Ph(e){const t=e.match(Ch);return t?t[1].replace(Sh,"'"):e}function kh(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 Eh(e){return Math.trunc(+re(e)/1e3)}function Nh(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 jh(e,t){const r=re(e,t==null?void 0:t.in);return Om(Nh(r,t),Se(r,t),t)+1}function Xn(e,t){return+re(e)>+re(t)}function hs(e,t){return+re(e)<+re(t)}function Gn(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 Kn(e,t,r){return be(e,-t,r)}function Qn(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=kh(i);return n.setMonth(t,Math.min(a,s)),n}function vs(e,t,r){const n=re(e,r==null?void 0:r.in);return isNaN(+n)?ve(e,NaN):(n.setFullYear(t),n)}const Dh={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"}},Rh=(e,t,r)=>{let n;const o=Dh[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},Oh={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},Ah={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Th={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lh={date:Lt({formats:Oh,defaultWidth:"full"}),time:Lt({formats:Ah,defaultWidth:"full"}),dateTime:Lt({formats:Th,defaultWidth:"full"})},Wh={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"},Ih=(e,t,r,n)=>{const o=Wh[e];return typeof o=="function"?o(t):o},Fh={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},$h={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Bh={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"]},Yh={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"]},Hh={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"}},zh={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"}},Vh={ordinalNumber:(e,t)=>{const r=Number(e);return(t==null?void 0:t.unit)==="week"?r+"ª":r+"º"},era:Ue({values:Fh,defaultWidth:"wide"}),quarter:Ue({values:$h,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ue({values:Bh,defaultWidth:"wide"}),day:Ue({values:Yh,defaultWidth:"wide"}),dayPeriod:Ue({values:Hh,defaultWidth:"wide",formattingValues:zh,defaultFormattingWidth:"wide"})},Uh=/^(\d+)[ºªo]?/i,qh=/\d+/i,Xh={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},Gh={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},Kh={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},Qh={any:[/1/i,/2/i,/3/i,/4/i]},Jh={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},Zh={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]},ev={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},tv={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]},rv={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},nv={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}},ov={ordinalNumber:os({matchPattern:Uh,parsePattern:qh,valueCallback:e=>parseInt(e,10)}),era:qe({matchPatterns:Xh,defaultMatchWidth:"wide",parsePatterns:Gh,defaultParseWidth:"any"}),quarter:qe({matchPatterns:Kh,defaultMatchWidth:"wide",parsePatterns:Qh,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qe({matchPatterns:Jh,defaultMatchWidth:"wide",parsePatterns:Zh,defaultParseWidth:"any"}),day:qe({matchPatterns:ev,defaultMatchWidth:"wide",parsePatterns:tv,defaultParseWidth:"any"}),dayPeriod:qe({matchPatterns:rv,defaultMatchWidth:"any",parsePatterns:nv,defaultParseWidth:"any"})},av={code:"pt-BR",formatDistance:Rh,formatLong:Lh,formatRelative:Ih,localize:Vh,match:ov,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 iv(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 ps(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 sv={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 lv(e,t){return ut(e,"LLLL y",t)}function cv(e,t){return ut(e,"d",t)}function uv(e,t){return ut(e,"LLLL",t)}function dv(e){return"".concat(e)}function fv(e,t){return ut(e,"cccccc",t)}function mv(e,t){return ut(e,"yyyy",t)}var hv=Object.freeze({__proto__:null,formatCaption:lv,formatDay:cv,formatMonthCaption:uv,formatWeekNumber:dv,formatWeekdayName:fv,formatYearCaption:mv}),vv=function(e,t,r){return ut(e,"do MMMM (EEEE)",r)},pv=function(){return"Month: "},gv=function(){return"Go to next month"},bv=function(){return"Go to previous month"},yv=function(e,t){return ut(e,"cccc",t)},wv=function(e){return"Week n. ".concat(e)},xv=function(){return"Year: "},Cv=Object.freeze({__proto__:null,labelDay:vv,labelMonthDropdown:pv,labelNext:gv,labelPrevious:bv,labelWeekNumber:wv,labelWeekday:yv,labelYearDropdown:xv});function Sv(){var e="buttons",t=sv,r=as,n={},o={},a=1,i={},s=new Date;return{captionLayout:e,classNames:t,formatters:hv,labels:Cv,locale:r,modifiersClassNames:n,modifiers:o,numberOfMonths:a,styles:i,today:s,mode:"default"}}function Mv(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=Un(o):r&&(i=new Date(r,11,31)),{fromDate:a?Tt(a):void 0,toDate:i?Tt(i):void 0}}var gs=B.createContext(void 0);function Pv(e){var t,r=e.initialProps,n=Sv(),o=Mv(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(gs.Provider,{value:l,children:e.children})}function ae(){var e=B.useContext(gs);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function bs(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 kv(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 ys(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:kv;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 Ev(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(Qn(h,v));else for(var h=Se(new Date),v=0;v<=11;v++)m.push(Qn(h,v));var b=function(y){var w=Number(y.target.value),x=Qn(Se(e.displayMonth),w);e.onChange(x)},g=(t=l==null?void 0:l.Dropdown)!==null&&t!==void 0?t:ys;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 Nv(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(vs(rs(new Date),g));var y=function(x){var C=vs(Se(r),Number(x.target.value));e.onChange(C)},w=(t=l==null?void 0:l.Dropdown)!==null&&t!==void 0?t:ys;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 jv(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 Dv(){var e=ae(),t=_v(e),r=jv(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 Rv(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 Ov(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 Av(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 ws=B.createContext(void 0);function Tv(e){var t=ae(),r=Dv(),n=r[0],o=r[1],a=Rv(n,t),i=Ov(n,t),s=Av(n,t),c=function(m){return a.some(function(h){return Gn(m,h)})},l=function(m,h){c(m)||(h&&hs(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(ws.Provider,{value:d,children:e.children})}function nr(){var e=B.useContext(ws);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function xs(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:bs,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(Ev,{onChange:s,displayMonth:e.displayMonth}),u.jsx(Nv,{onChange:s,displayMonth:e.displayMonth})]})}function Lv(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 Wv(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 Iv(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:Wv,w=(r=m==null?void 0:m.IconLeft)!==null&&r!==void 0?r:Lv;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 Cs(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 Gn(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(Iv,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:m,nextMonth:o,previousMonth:n,onPreviousClick:h,onNextClick:v})}function Fv(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:bs,l;return o?l=u.jsx(c,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?l=u.jsx(xs,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?l=u.jsxs(u.Fragment,{children:[u.jsx(xs,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),u.jsx(Cs,{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(Cs,{displayMonth:e.displayMonth,id:e.id})]}),u.jsx("div",{className:n.caption,style:a.caption,children:l})}function $v(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 Bv(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=be(n,a);o.push(i)}return o}function Yv(){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=Bv(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 Hv(){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:Yv;return u.jsx("thead",{style:n.head,className:r.head,children:u.jsx(a,{})})}function zv(e){var t=ae(),r=t.locale,n=t.formatters.formatDay;return u.jsx(u.Fragment,{children:n(e.date,{locale:r})})}var Jn=B.createContext(void 0);function Vv(e){if(!tr(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return u.jsx(Jn.Provider,{value:t,children:e.children})}return u.jsx(Uv,{initialProps:e.initialProps,children:e.children})}function Uv(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?ps([],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(Jn.Provider,{value:c,children:r})}function Zn(){var e=B.useContext(Jn);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function qv(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:Xn(n,e)?{from:e,to:o}:{from:n,to:e}:o?Xn(e,o)?{from:o,to:e}:{from:e,to:o}:n?hs(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var eo=B.createContext(void 0);function Xv(e){if(!rr(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return u.jsx(eo.Provider,{value:t,children:e.children})}return u.jsx(Gv,{initialProps:e.initialProps,children:e.children})}function Gv(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=qv(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:Kn(a,s-1),before:be(a,s-1)}),a&&i&&d.disabled.push({after:a,before:be(a,s-1)}),!a&&i&&d.disabled.push({after:Kn(i,s-1),before:be(i,s-1)})),c){if(a&&!i&&(d.disabled.push({before:be(a,-c+1)}),d.disabled.push({after:be(a,c-1)})),a&&i){var m=Ve(i,a)+1,h=c-m;d.disabled.push({before:Kn(a,h)}),d.disabled.push({after:be(i,h)})}!a&&i&&(d.disabled.push({before:be(i,-c+1)}),d.disabled.push({after:be(i,c-1)}))}return u.jsx(eo.Provider,{value:{selected:n,onDayClick:l,modifiers:d},children:r})}function to(){var e=B.useContext(eo);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Hr(e){return Array.isArray(e)?ps([],e):e!==void 0?[e]:[]}function Kv(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 Qv=Te.Selected,Je=Te.Disabled,Jv=Te.Hidden,Zv=Te.Today,ro=Te.RangeEnd,no=Te.RangeMiddle,oo=Te.RangeStart,ep=Te.Outside;function tp(e,t,r){var n,o=(n={},n[Qv]=Hr(e.selected),n[Je]=Hr(e.disabled),n[Jv]=Hr(e.hidden),n[Zv]=[e.today],n[ro]=[],n[no]=[],n[oo]=[],n[ep]=[],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[oo]=r.modifiers[oo],o[no]=r.modifiers[no],o[ro]=r.modifiers[ro]),o}var Ss=B.createContext(void 0);function rp(e){var t=ae(),r=Zn(),n=to(),o=tp(t,r,n),a=Kv(t.modifiers),i=W(W({},o),a);return u.jsx(Ss.Provider,{value:i,children:e.children})}function Ms(){var e=B.useContext(Ss);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function np(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function op(e){return!!(e&&typeof e=="object"&&"from"in e)}function ap(e){return!!(e&&typeof e=="object"&&"after"in e)}function ip(e){return!!(e&&typeof e=="object"&&"before"in e)}function sp(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function lp(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 cp(e){return Vn(e)}function up(e){return Array.isArray(e)&&e.every(Vn)}function dp(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(cp(r))return Ce(e,r);if(up(r))return r.includes(e);if(op(r))return lp(e,r);if(sp(r))return r.dayOfWeek.includes(e.getDay());if(np(r)){var n=Ve(r.before,e),o=Ve(r.after,e),a=n>0,i=o<0,s=Xn(r.before,r.after);return s?i&&a:a||i}return ap(r)?Ve(e,r.after)>0:ip(r)?Ve(r.before,e)>0:typeof r=="function"?r(e):!1})}function ao(e,t,r){var n=Object.keys(t).reduce(function(a,i){var s=t[i];return dp(e,s)&&a.push(i),a},[]),o={};return n.forEach(function(a){return o[a]=!0}),r&&!Gn(e,r)&&(o.outside=!0),o}function fp(e,t){for(var r=Se(e[0]),n=Un(e[e.length-1]),o,a,i=r;i<=n;){var s=ao(i,t),c=!s.disabled&&!s.hidden;if(!c){i=be(i,1);continue}if(s.selected)return i;s.today&&!a&&(a=i),o||(o=i),i=be(i,1)}return a||o}var mp=365;function Ps(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:be,week:zn,month:Ae,year:jm,startOfWeek:function(y){return o.ISOWeek?ht(y):ze(y,{locale:m,weekStartsOn:c})},endOfWeek:function(y){return o.ISOWeek?ns(y):qn(y,{locale:m,weekStartsOn:c})}},v=h[r](e,n==="after"?1:-1);n==="before"&&l?v=_m([l,v]):n==="after"&&d&&(v=Dm([d,v]));var b=!0;if(a){var g=ao(v,a);b=!g.disabled&&!g.hidden}return b?v:s.count>mp?s.lastFocused:Ps(v,{moveBy:r,direction:n,context:o,modifiers:a,retry:W(W({},s),{count:s.count+1})})}var ks=B.createContext(void 0);function hp(e){var t=nr(),r=Ms(),n=B.useState(),o=n[0],a=n[1],i=B.useState(),s=i[0],c=i[1],l=fp(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=Ps(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(ks.Provider,{value:g,children:e.children})}function io(){var e=B.useContext(ks);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function vp(e,t){var r=Ms(),n=ao(e,r,t);return n}var so=B.createContext(void 0);function pp(e){if(!Br(e.initialProps)){var t={selected:void 0};return u.jsx(so.Provider,{value:t,children:e.children})}return u.jsx(gp,{initialProps:e.initialProps,children:e.children})}function gp(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(so.Provider,{value:o,children:r})}function Es(){var e=B.useContext(so);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function bp(e,t){var r=ae(),n=Es(),o=Zn(),a=to(),i=io(),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(_){var S,J,le,se;Br(r)?(S=n.onDayClick)===null||S===void 0||S.call(n,e,t,_):tr(r)?(J=o.onDayClick)===null||J===void 0||J.call(o,e,t,_):rr(r)?(le=a.onDayClick)===null||le===void 0||le.call(a,e,t,_):(se=r.onDayClick)===null||se===void 0||se.call(r,e,t,_)},k=function(_){var S;h(e),(S=r.onDayFocus)===null||S===void 0||S.call(r,e,t,_)},E=function(_){var S;m(),(S=r.onDayBlur)===null||S===void 0||S.call(r,e,t,_)},j=function(_){var S;(S=r.onDayMouseEnter)===null||S===void 0||S.call(r,e,t,_)},N=function(_){var S;(S=r.onDayMouseLeave)===null||S===void 0||S.call(r,e,t,_)},z=function(_){var S;(S=r.onDayPointerEnter)===null||S===void 0||S.call(r,e,t,_)},L=function(_){var S;(S=r.onDayPointerLeave)===null||S===void 0||S.call(r,e,t,_)},I=function(_){var S;(S=r.onDayTouchCancel)===null||S===void 0||S.call(r,e,t,_)},V=function(_){var S;(S=r.onDayTouchEnd)===null||S===void 0||S.call(r,e,t,_)},T=function(_){var S;(S=r.onDayTouchMove)===null||S===void 0||S.call(r,e,t,_)},U=function(_){var S;(S=r.onDayTouchStart)===null||S===void 0||S.call(r,e,t,_)},Y=function(_){var S;(S=r.onDayKeyUp)===null||S===void 0||S.call(r,e,t,_)},Z=function(_){var S;switch(_.key){case"ArrowLeft":_.preventDefault(),_.stopPropagation(),r.dir==="rtl"?s():c();break;case"ArrowRight":_.preventDefault(),_.stopPropagation(),r.dir==="rtl"?c():s();break;case"ArrowDown":_.preventDefault(),_.stopPropagation(),l();break;case"ArrowUp":_.preventDefault(),_.stopPropagation(),d();break;case"PageUp":_.preventDefault(),_.stopPropagation(),_.shiftKey?g():v();break;case"PageDown":_.preventDefault(),_.stopPropagation(),_.shiftKey?y():b();break;case"Home":_.preventDefault(),_.stopPropagation(),w();break;case"End":_.preventDefault(),_.stopPropagation(),x();break}(S=r.onDayKeyDown)===null||S===void 0||S.call(r,e,t,_)},K={onClick:C,onFocus:k,onBlur:E,onKeyDown:Z,onKeyUp:Y,onMouseEnter:j,onMouseLeave:N,onPointerEnter:z,onPointerLeave:L,onTouchCancel:I,onTouchEnd:V,onTouchMove:T,onTouchStart:U};return K}function yp(){var e=ae(),t=Es(),r=Zn(),n=to(),o=Br(e)?t.selected:tr(e)?r.selected:rr(e)?n.selected:void 0;return o}function wp(e){return Object.values(Te).includes(e)}function xp(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(wp(n)){var a=e.classNames["day_".concat(n)];a&&r.push(a)}}),r}function Cp(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 Sp(e,t,r){var n,o,a,i=ae(),s=io(),c=vp(e,t),l=bp(e,c),d=yp(),m=!!(i.onDayClick||i.mode!=="default");B.useEffect(function(){var j;c.outside||s.focusedDay&&m&&Ce(s.focusedDay,e)&&((j=r.current)===null||j===void 0||j.focus())},[s.focusedDay,e,r,m,c.outside]);var h=xp(i,c).join(" "),v=Cp(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:zv,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 Mp(e){var t=B.useRef(null),r=Sp(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 Pp(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 kp(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:Mp,l=(r=s==null?void 0:s.WeekNumber)!==null&&r!==void 0?r:Pp,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})},Eh(m))})]})}function Ns(e,t,r){for(var n=r!=null&&r.ISOWeek?ns(t):qn(t,r),o=r!=null&&r.ISOWeek?ht(e):ze(e,r),a=Ve(n,o),i=[],s=0;s<=a;s++)i.push(be(o,s));var c=i.reduce(function(l,d){var m=r!=null&&r.ISOWeek?is(d):ls(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 Ep(e,t){var r=Ns(Se(e),Un(e),t);if(t!=null&&t.useFixedWeeks){var n=jh(e,t);if(n<6){var o=r[r.length-1],a=o.dates[o.dates.length-1],i=zn(a,6-n),s=Ns(zn(a,1),i,t);r.push.apply(r,s)}}return r}function Np(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=Ep(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:Hv,y=(r=d==null?void 0:d.Row)!==null&&r!==void 0?r:kp,w=(n=d==null?void 0:d.Footer)!==null&&n!==void 0?n:$v;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 jp(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var _p=jp()?B.useLayoutEffect:B.useEffect,lo=!1,Dp=0;function js(){return"react-day-picker-".concat(++Dp)}function Rp(e){var t,r=e??(lo?js():null),n=B.useState(r),o=n[0],a=n[1];return _p(function(){o===null&&a(js())},[]),B.useEffect(function(){lo===!1&&(lo=!0)},[]),(t=e??o)!==null&&t!==void 0?t:void 0}function Op(e){var t,r,n=ae(),o=n.dir,a=n.classNames,i=n.styles,s=n.components,c=nr().displayMonths,l=Rp(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:Fv;return u.jsxs("div",{className:m.join(" "),style:h,children:[u.jsx(y,{id:l,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),u.jsx(Np,{id:d,"aria-labelledby":l,displayMonth:e.displayMonth})]},e.displayIndex)}function Ap(e){var t=ae(),r=t.classNames,n=t.styles;return u.jsx("div",{className:r.months,style:n.months,children:e.children})}function Tp(e){var t,r,n=e.initialProps,o=ae(),a=io(),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:Ap;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(Op,{displayIndex:g,displayMonth:b},g)})})}))}function Lp(e){var t=e.children,r=iv(e,["children"]);return u.jsx(Pv,{initialProps:r,children:u.jsx(Tv,{children:u.jsx(pp,{initialProps:r,children:u.jsx(Vv,{initialProps:r,children:u.jsx(Xv,{initialProps:r,children:u.jsx(rp,{children:u.jsx(hp,{children:t})})})})})})})}function Wp(e){return u.jsx(Lp,W({},e,{children:u.jsx(Tp,{initialProps:e})}))}function co({className:e,classNames:t,showOutsideDays:r=!0,...n}){return u.jsx(Wp,{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(Io,{className:"h-4 w-4"}),IconRight:()=>u.jsx(Fo,{className:"h-4 w-4"})},...n})}co.displayName="MriCalendar";function Ip({value:e,onChange:t,placeholder:r="Selecione",disabled:n,locale:o=av,size:a="default",error:i}){return u.jsxs(Gt,{children:[u.jsx(Kt,{asChild:!0,children:u.jsxs("div",{className:"w-full space-y-1",children:[u.jsxs(we,{variant:"outline",size:a,className:O("w-full justify-start pl-3 text-left font-normal",!e&&"text-muted-foreground",i&&"border-destructive focus:ring-destructive"),disabled:n,children:[e?ut(e,"dd/MM/yyyy"):u.jsx("span",{children:r}),u.jsx($l,{className:"ml-auto h-4 w-4 opacity-50"})]}),typeof i=="string"&&u.jsx("p",{className:"text-[10px] font-medium text-destructive px-1 animate-in fade-in slide-in-from-top-1",children:i})]})}),u.jsx(Dt,{className:"w-auto p-0",align:"start",children:u.jsx(co,{mode:"single",selected:e||void 0,onSelect:t,initialFocus:!0,locale:o})})]})}function Fp({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 $p({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(we,{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(Fo,{className:"h-5 w-5"}):u.jsx(Io,{className:"h-5 w-5"})})]})]})}const _s=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})}));_s.displayName="MriTable";const Ds=f.forwardRef(({className:e,...t},r)=>u.jsx("thead",{ref:r,className:O("[&_tr]:border-b",e),...t}));Ds.displayName="MriTableHeader";const Rs=f.forwardRef(({className:e,...t},r)=>u.jsx("tbody",{ref:r,className:O("[&_tr:last-child]:border-0",e),...t}));Rs.displayName="MriTableBody";const Os=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}));Os.displayName="MriTableFooter";const As=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}));As.displayName="MriTableRow";const Ts=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}));Ts.displayName="MriTableHead";const Ls=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}));Ls.displayName="MriTableCell";const Ws=f.forwardRef(({className:e,...t},r)=>u.jsx("caption",{ref:r,className:O("mt-4 text-sm text-muted-foreground",e),...t}));Ws.displayName="MriTableCaption",R.MriBadge=jl,R.MriBanIcon=sc,R.MriBringIcon=Jl,R.MriButton=we,R.MriCalendar=co,R.MriCard=ea,R.MriCardContent=oa,R.MriCardDescription=na,R.MriCardFooter=aa,R.MriCardHeader=ta,R.MriCardTitle=ra,R.MriClothingIcon=nc,R.MriCommand=Tr,R.MriCommandEmpty=Wr,R.MriCommandGroup=Ir,R.MriCommandInput=Lr,R.MriCommandItem=Fr,R.MriCommandList=Ki,R.MriCommandSeparator=Qi,R.MriCommandShortcut=Ji,R.MriCompactSearch=cm,R.MriCopyButton=xm,R.MriDatePicker=Ip,R.MriDialog=um,R.MriEconomyCard=Cm,R.MriEyeIcon=oc,R.MriGridActionButton=Sm,R.MriInput=Zr,R.MriKickIcon=ic,R.MriModal=Zi,R.MriMoneyIcon=rc,R.MriPageHeader=Fp,R.MriPopover=Gt,R.MriPopoverContent=Dt,R.MriPopoverTrigger=Kt,R.MriReviveIcon=ec,R.MriScrollArea=mr,R.MriScrollBar=an,R.MriSearchInput=Mm,R.MriSectionHeader=Pm,R.MriSelectSearch=dm,R.MriSendBackIcon=Zl,R.MriSidebar=$p,R.MriStatusBadge=Lc,R.MriTable=_s,R.MriTableBody=Rs,R.MriTableCaption=Ws,R.MriTableCell=Ls,R.MriTableFooter=Os,R.MriTableHead=Ts,R.MriTableHeader=Ds,R.MriTableRow=As,R.MriTeleportIcon=Ql,R.MriThemeToggle=pm,R.MriTimePicker=wm,R.MriVerifyIcon=tc,R.MriWarnIcon=ac,R.cn=O,R.mriBadgeVariants=ko,R.mriButtonVariants=ir,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});