buildgrid-ui 1.1.0-alpha.4 → 1.1.0-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/buildgrid-ui.es.js +6068 -866
  3. package/dist/buildgrid-ui.umd.js +116 -11
  4. package/dist/components/adaptive-input/adaptive-input.d.ts +9 -0
  5. package/dist/components/adaptive-input/index.d.ts +1 -0
  6. package/dist/components/alert-dialog/alert-dialog.d.ts +20 -0
  7. package/dist/components/alert-dialog/index.d.ts +1 -0
  8. package/dist/components/autocomplete/autocomplete.d.ts +14 -0
  9. package/dist/components/autocomplete/index.d.ts +1 -0
  10. package/dist/components/avatar/avatar.d.ts +6 -0
  11. package/dist/components/avatar/index.d.ts +1 -0
  12. package/dist/components/badge/{Badge.d.ts → badge.d.ts} +1 -1
  13. package/dist/components/badge/index.d.ts +1 -1
  14. package/dist/components/button/{Button.d.ts → button.d.ts} +4 -3
  15. package/dist/components/button/index.d.ts +1 -1
  16. package/dist/components/card/index.d.ts +1 -1
  17. package/dist/components/checkbox/checkbox.d.ts +4 -0
  18. package/dist/components/checkbox/index.d.ts +1 -0
  19. package/dist/components/currency-input/currency-input.d.ts +10 -0
  20. package/dist/components/currency-input/index.d.ts +1 -0
  21. package/dist/components/dropdown-menu/dropdown-menu.d.ts +27 -0
  22. package/dist/components/dropdown-menu/index.d.ts +1 -0
  23. package/dist/components/index.d.ts +12 -0
  24. package/dist/components/input/index.d.ts +1 -0
  25. package/dist/components/input/input.d.ts +9 -0
  26. package/dist/components/password-input/index.d.ts +1 -0
  27. package/dist/components/password-input/password-input.d.ts +16 -0
  28. package/dist/components/popover/index.d.ts +1 -0
  29. package/dist/components/popover/popover.d.ts +7 -0
  30. package/dist/components/progress/index.d.ts +1 -0
  31. package/dist/components/progress/progress.d.ts +4 -0
  32. package/dist/components/skeleton/index.d.ts +1 -1
  33. package/dist/components/switch/index.d.ts +1 -0
  34. package/dist/components/switch/switch.d.ts +4 -0
  35. package/dist/index.d.ts +2 -5
  36. package/dist/lib/index.d.ts +1 -0
  37. package/dist/lib/utils/formatters.d.ts +8 -0
  38. package/package.json +16 -2
  39. package/.editorconfig +0 -5
  40. package/.eslintrc.json +0 -3
  41. package/.github/workflows/release.yml +0 -25
  42. package/.husky/commit-msg +0 -1
  43. package/.prettierignore +0 -6
  44. package/.prettierrc +0 -6
  45. package/.releaserc.json +0 -40
  46. package/.storybook/main.ts +0 -27
  47. package/.storybook/preview.ts +0 -15
  48. package/commitlint.config.js +0 -3
  49. package/components.json +0 -21
  50. package/eslint.config.mjs +0 -13
  51. package/postcss.config.js +0 -6
  52. package/src/components/badge/Badge.stories.tsx +0 -30
  53. package/src/components/badge/Badge.tsx +0 -34
  54. package/src/components/badge/index.ts +0 -1
  55. package/src/components/button/Button.stories.tsx +0 -40
  56. package/src/components/button/Button.tsx +0 -57
  57. package/src/components/button/index.ts +0 -1
  58. package/src/components/card/Card.stories.tsx +0 -41
  59. package/src/components/card/Card.tsx +0 -61
  60. package/src/components/card/index.ts +0 -1
  61. package/src/components/index.ts +0 -4
  62. package/src/components/skeleton/Skeleton.stories.tsx +0 -24
  63. package/src/components/skeleton/Skeleton.tsx +0 -19
  64. package/src/components/skeleton/index.ts +0 -1
  65. package/src/index.ts +0 -5
  66. package/src/lib/index.ts +0 -1
  67. package/src/lib/utils/cn.ts +0 -6
  68. package/src/styles/tailwind.css +0 -66
  69. package/tailwind.config.js +0 -57
  70. package/tsconfig.app.json +0 -10
  71. package/tsconfig.json +0 -29
  72. package/vite.config.ts +0 -34
  73. /package/dist/components/card/{Card.d.ts → card.d.ts} +0 -0
  74. /package/dist/components/skeleton/{Skeleton.d.ts → skeleton.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- (function(j,H){typeof exports=="object"&&typeof module<"u"?H(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],H):(j=typeof globalThis<"u"?globalThis:j||self,H(j.BuildgridUI={},j.React))})(this,function(j,H){"use strict";function cr(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return o.default=r,Object.freeze(o)}const C=cr(H);var ge={exports:{}},ne={};/**
1
+ (function(R,G){typeof exports=="object"&&typeof module<"u"?G(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],G):(R=typeof globalThis<"u"?globalThis:R||self,G(R.BuildgridUI={},R.React,R.ReactDOM))})(this,function(R,G,wr){"use strict";function xr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=xr(G),Cr=xr(wr);var _t={exports:{}},pt={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.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 Re;function dr(){if(Re)return ne;Re=1;var r=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function t(n,s,a){var d=null;if(a!==void 0&&(d=""+a),s.key!==void 0&&(d=""+s.key),"key"in s){a={};for(var i in s)i!=="key"&&(a[i]=s[i])}else a=s;return s=a.ref,{$$typeof:r,type:n,key:d,ref:s!==void 0?s:null,props:a}}return ne.Fragment=o,ne.jsx=t,ne.jsxs=t,ne}var se={};/**
9
+ */var Er;function Xi(){if(Er)return pt;Er=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:a}}return pt.Fragment=t,pt.jsx=n,pt.jsxs=n,pt}var mt={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,18 +14,123 @@
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 je;function ur(){return je||(je=1,process.env.NODE_ENV!=="production"&&function(){function r(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case K:return"Fragment";case Z:return"Portal";case ce:return"Profiler";case le:return"StrictMode";case v:return"Suspense";case ee:return"SuspenseList"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case D:return(e.displayName||"Context")+".Provider";case Q:return(e._context.displayName||"Context")+".Consumer";case F:var l=e.render;return e=e.displayName,e||(e=l.displayName||l.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return l=e.displayName||null,l!==null?l:r(e.type)||"Memo";case re:l=e._payload,e=e._init;try{return r(e(l))}catch{}}return null}function o(e){return""+e}function t(e){try{o(e);var l=!1}catch{l=!0}if(l){l=console;var c=l.error,b=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return c.call(l,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",b),o(e)}}function n(){}function s(){if(pe===0){Ke=console.log,Qe=console.info,De=console.warn,er=console.error,rr=console.group,tr=console.groupCollapsed,or=console.groupEnd;var e={configurable:!0,enumerable:!0,value:n,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}pe++}function a(){if(pe--,pe===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:S({},e,{value:Ke}),info:S({},e,{value:Qe}),warn:S({},e,{value:De}),error:S({},e,{value:er}),group:S({},e,{value:rr}),groupCollapsed:S({},e,{value:tr}),groupEnd:S({},e,{value:or})})}0>pe&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function d(e){if(Ce===void 0)try{throw Error()}catch(c){var l=c.stack.trim().match(/\n( *(at )?)/);Ce=l&&l[1]||"",nr=-1<c.stack.indexOf(`
18
- at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
19
- `+Ce+e+nr}function i(e,l){if(!e||Ee)return"";var c=ke.get(e);if(c!==void 0)return c;Ee=!0,c=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var b=null;b=P.H,P.H=null,s();try{var N={DetermineComponentFrameRoot:function(){try{if(l){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch($){var me=$}Reflect.construct(e,[],B)}else{try{B.call()}catch($){me=$}e.call(B.prototype)}}else{try{throw Error()}catch($){me=$}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch($){if($&&me&&typeof $.stack=="string")return[$.stack,me.stack]}return[null,null]}};N.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var w=Object.getOwnPropertyDescriptor(N.DetermineComponentFrameRoot,"name");w&&w.configurable&&Object.defineProperty(N.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=N.DetermineComponentFrameRoot(),W=f[0],oe=f[1];if(W&&oe){var _=W.split(`
20
- `),q=oe.split(`
21
- `);for(f=w=0;w<_.length&&!_[w].includes("DetermineComponentFrameRoot");)w++;for(;f<q.length&&!q[f].includes("DetermineComponentFrameRoot");)f++;if(w===_.length||f===q.length)for(w=_.length-1,f=q.length-1;1<=w&&0<=f&&_[w]!==q[f];)f--;for(;1<=w&&0<=f;w--,f--)if(_[w]!==q[f]){if(w!==1||f!==1)do if(w--,f--,0>f||_[w]!==q[f]){var be=`
22
- `+_[w].replace(" at new "," at ");return e.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",e.displayName)),typeof e=="function"&&ke.set(e,be),be}while(1<=w&&0<=f);break}}}finally{Ee=!1,P.H=b,a(),Error.prepareStackTrace=c}return _=(_=e?e.displayName||e.name:"")?d(_):"",typeof e=="function"&&ke.set(e,_),_}function g(e){if(e==null)return"";if(typeof e=="function"){var l=e.prototype;return i(e,!(!l||!l.isReactComponent))}if(typeof e=="string")return d(e);switch(e){case v:return d("Suspense");case ee:return d("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case F:return e=i(e.render,!1),e;case U:return g(e.type);case re:l=e._payload,e=e._init;try{return g(e(l))}catch{}}return""}function p(){var e=P.A;return e===null?null:e.getOwner()}function y(e){if(fe.call(e,"key")){var l=Object.getOwnPropertyDescriptor(e,"key").get;if(l&&l.isReactWarning)return!1}return e.key!==void 0}function k(e,l){function c(){sr||(sr=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",l))}c.isReactWarning=!0,Object.defineProperty(e,"key",{get:c,configurable:!0})}function E(){var e=r(this.type);return ar[e]||(ar[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function z(e,l,c,b,N,w){return c=w.ref,e={$$typeof:M,type:e,key:l,props:w,_owner:N},(c!==void 0?c:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:E}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function T(e,l,c,b,N,w){if(typeof e=="string"||typeof e=="function"||e===K||e===ce||e===le||e===v||e===ee||e===te||typeof e=="object"&&e!==null&&(e.$$typeof===re||e.$$typeof===U||e.$$typeof===D||e.$$typeof===Q||e.$$typeof===F||e.$$typeof===Kr||e.getModuleId!==void 0)){var f=l.children;if(f!==void 0)if(b)if(we(f)){for(b=0;b<f.length;b++)x(f[b],e);Object.freeze&&Object.freeze(f)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(f,e)}else f="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?b="null":we(e)?b="array":e!==void 0&&e.$$typeof===M?(b="<"+(r(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,f);if(fe.call(l,"key")){f=r(e);var W=Object.keys(l).filter(function(_){return _!=="key"});b=0<W.length?"{key: someKey, "+W.join(": ..., ")+": ...}":"{key: someKey}",ir[f+b]||(W=0<W.length?"{"+W.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Ar;function qi(){return Ar||(Ar=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(g==null)return null;if(typeof g=="function")return g.$$typeof===T?null:g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case _:return"Fragment";case E:return"Portal";case O:return"Profiler";case P:return"StrictMode";case D:return"Suspense";case U:return"SuspenseList"}if(typeof g=="object")switch(typeof g.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),g.$$typeof){case L:return(g.displayName||"Context")+".Provider";case B:return(g._context.displayName||"Context")+".Consumer";case K:var N=g.render;return g=g.displayName,g||(g=N.displayName||N.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case W:return N=g.displayName||null,N!==null?N:e(g.type)||"Memo";case J:N=g._payload,g=g._init;try{return e(g(N))}catch{}}return null}function t(g){return""+g}function n(g){try{t(g);var N=!1}catch{N=!0}if(N){N=console;var M=N.error,H=typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object";return M.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H),t(g)}}function r(){}function o(){if(ge===0){Ye=console.log,we=console.info,ue=console.warn,We=console.error,ne=console.group,Be=console.groupCollapsed,Pt=console.groupEnd;var g={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}ge++}function a(){if(ge--,ge===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},g,{value:Ye}),info:z({},g,{value:we}),warn:z({},g,{value:ue}),error:z({},g,{value:We}),group:z({},g,{value:ne}),groupCollapsed:z({},g,{value:Be}),groupEnd:z({},g,{value:Pt})})}0>ge&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function i(g){if(ut===void 0)try{throw Error()}catch(M){var N=M.stack.trim().match(/\n( *(at )?)/);ut=N&&N[1]||"",ze=-1<M.stack.indexOf(`
18
+ at`)?" (<anonymous>)":-1<M.stack.indexOf("@")?"@unknown:0:0":""}return`
19
+ `+ut+g+ze}function s(g,N){if(!g||dt)return"";var M=Nt.get(g);if(M!==void 0)return M;dt=!0,M=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var H=null;H=S.H,S.H=null,o();try{var te={DetermineComponentFrameRoot:function(){try{if(N){var Ge=function(){throw Error()};if(Object.defineProperty(Ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ge,[])}catch(Me){var fn=Me}Reflect.construct(g,[],Ge)}else{try{Ge.call()}catch(Me){fn=Me}g.call(Ge.prototype)}}else{try{throw Error()}catch(Me){fn=Me}(Ge=g())&&typeof Ge.catch=="function"&&Ge.catch(function(){})}}catch(Me){if(Me&&fn&&typeof Me.stack=="string")return[Me.stack,fn.stack]}return[null,null]}};te.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Q=Object.getOwnPropertyDescriptor(te.DetermineComponentFrameRoot,"name");Q&&Q.configurable&&Object.defineProperty(te.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var j=te.DetermineComponentFrameRoot(),Ne=j[0],ft=j[1];if(Ne&&ft){var re=Ne.split(`
20
+ `),qe=ft.split(`
21
+ `);for(j=Q=0;Q<re.length&&!re[Q].includes("DetermineComponentFrameRoot");)Q++;for(;j<qe.length&&!qe[j].includes("DetermineComponentFrameRoot");)j++;if(Q===re.length||j===qe.length)for(Q=re.length-1,j=qe.length-1;1<=Q&&0<=j&&re[Q]!==qe[j];)j--;for(;1<=Q&&0<=j;Q--,j--)if(re[Q]!==qe[j]){if(Q!==1||j!==1)do if(Q--,j--,0>j||re[Q]!==qe[j]){var Mt=`
22
+ `+re[Q].replace(" at new "," at ");return g.displayName&&Mt.includes("<anonymous>")&&(Mt=Mt.replace("<anonymous>",g.displayName)),typeof g=="function"&&Nt.set(g,Mt),Mt}while(1<=Q&&0<=j);break}}}finally{dt=!1,S.H=H,a(),Error.prepareStackTrace=M}return re=(re=g?g.displayName||g.name:"")?i(re):"",typeof g=="function"&&Nt.set(g,re),re}function u(g){if(g==null)return"";if(typeof g=="function"){var N=g.prototype;return s(g,!(!N||!N.isReactComponent))}if(typeof g=="string")return i(g);switch(g){case D:return i("Suspense");case U:return i("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case K:return g=s(g.render,!1),g;case W:return u(g.type);case J:N=g._payload,g=g._init;try{return u(g(N))}catch{}}return""}function l(){var g=S.A;return g===null?null:g.getOwner()}function f(g){if(Y.call(g,"key")){var N=Object.getOwnPropertyDescriptor(g,"key").get;if(N&&N.isReactWarning)return!1}return g.key!==void 0}function p(g,N){function M(){un||(un=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",N))}M.isReactWarning=!0,Object.defineProperty(g,"key",{get:M,configurable:!0})}function m(){var g=e(this.type);return dn[g]||(dn[g]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),g=this.props.ref,g!==void 0?g:null}function v(g,N,M,H,te,Q){return M=Q.ref,g={$$typeof:C,type:g,key:N,props:Q,_owner:te},(M!==void 0?M:null)!==null?Object.defineProperty(g,"ref",{enumerable:!1,get:m}):Object.defineProperty(g,"ref",{enumerable:!1,value:null}),g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(g,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g}function b(g,N,M,H,te,Q){if(typeof g=="string"||typeof g=="function"||g===_||g===O||g===P||g===D||g===U||g===$||typeof g=="object"&&g!==null&&(g.$$typeof===J||g.$$typeof===W||g.$$typeof===L||g.$$typeof===B||g.$$typeof===K||g.$$typeof===le||g.getModuleId!==void 0)){var j=N.children;if(j!==void 0)if(H)if(Pe(j)){for(H=0;H<j.length;H++)h(j[H],g);Object.freeze&&Object.freeze(j)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(j,g)}else j="",(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(j+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),g===null?H="null":Pe(g)?H="array":g!==void 0&&g.$$typeof===C?(H="<"+(e(g.type)||"Unknown")+" />",j=" Did you accidentally export a JSX literal instead of a component?"):H=typeof g,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",H,j);if(Y.call(N,"key")){j=e(g);var Ne=Object.keys(N).filter(function(re){return re!=="key"});H=0<Ne.length?"{key: someKey, "+Ne.join(": ..., ")+": ...}":"{key: someKey}",Xe[j+H]||(Ne=0<Ne.length?"{"+Ne.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
23
23
  let props = %s;
24
24
  <%s {...props} />
25
25
  React keys must be passed directly to JSX without using spread:
26
26
  let props = %s;
27
- <%s key={someKey} {...props} />`,b,f,W,f),ir[f+b]=!0)}if(f=null,c!==void 0&&(t(c),f=""+c),y(l)&&(t(l.key),f=""+l.key),"key"in l){c={};for(var oe in l)oe!=="key"&&(c[oe]=l[oe])}else c=l;return f&&k(c,typeof e=="function"?e.displayName||e.name||"Unknown":e),z(e,f,w,N,p(),c)}function x(e,l){if(typeof e=="object"&&e&&e.$$typeof!==Qr){if(we(e))for(var c=0;c<e.length;c++){var b=e[c];m(b)&&R(b,l)}else if(m(e))e._store&&(e._store.validated=1);else if(e===null||typeof e!="object"?c=null:(c=de&&e[de]||e["@@iterator"],c=typeof c=="function"?c:null),typeof c=="function"&&c!==e.entries&&(c=c.call(e),c!==e))for(;!(e=c.next()).done;)m(e.value)&&R(e.value,l)}}function m(e){return typeof e=="object"&&e!==null&&e.$$typeof===M}function R(e,l){if(e._store&&!e._store.validated&&e.key==null&&(e._store.validated=1,l=O(l),!lr[l])){lr[l]=!0;var c="";e&&e._owner!=null&&e._owner!==p()&&(c=null,typeof e._owner.tag=="number"?c=r(e._owner.type):typeof e._owner.name=="string"&&(c=e._owner.name),c=" It was passed a child from "+c+".");var b=P.getCurrentStack;P.getCurrentStack=function(){var N=g(e.type);return b&&(N+=b()||""),N},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',l,c),P.getCurrentStack=b}}function O(e){var l="",c=p();return c&&(c=r(c.type))&&(l=`
27
+ <%s key={someKey} {...props} />`,H,j,Ne,j),Xe[j+H]=!0)}if(j=null,M!==void 0&&(n(M),j=""+M),f(N)&&(n(N.key),j=""+N.key),"key"in N){M={};for(var ft in N)ft!=="key"&&(M[ft]=N[ft])}else M=N;return j&&p(M,typeof g=="function"?g.displayName||g.name||"Unknown":g),v(g,j,Q,te,l(),M)}function h(g,N){if(typeof g=="object"&&g&&g.$$typeof!==yr){if(Pe(g))for(var M=0;M<g.length;M++){var H=g[M];w(H)&&y(H,N)}else if(w(g))g._store&&(g._store.validated=1);else if(g===null||typeof g!="object"?M=null:(M=X&&g[X]||g["@@iterator"],M=typeof M=="function"?M:null),typeof M=="function"&&M!==g.entries&&(M=M.call(g),M!==g))for(;!(g=M.next()).done;)w(g.value)&&y(g.value,N)}}function w(g){return typeof g=="object"&&g!==null&&g.$$typeof===C}function y(g,N){if(g._store&&!g._store.validated&&g.key==null&&(g._store.validated=1,N=x(N),!Yi[N])){Yi[N]=!0;var M="";g&&g._owner!=null&&g._owner!==l()&&(M=null,typeof g._owner.tag=="number"?M=e(g._owner.type):typeof g._owner.name=="string"&&(M=g._owner.name),M=" It was passed a child from "+M+".");var H=S.getCurrentStack;S.getCurrentStack=function(){var te=u(g.type);return H&&(te+=H()||""),te},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',N,M),S.getCurrentStack=H}}function x(g){var N="",M=l();return M&&(M=e(M.type))&&(N=`
28
28
 
29
- Check the render method of \``+c+"`."),l||(e=r(e))&&(l=`
29
+ Check the render method of \``+M+"`."),N||(g=e(g))&&(N=`
30
30
 
31
- Check the top-level render call using <`+e+">."),l}var L=H,M=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),le=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),D=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),de=Symbol.iterator,ue=Symbol.for("react.client.reference"),P=L.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe=Object.prototype.hasOwnProperty,S=Object.assign,Kr=Symbol.for("react.client.reference"),we=Array.isArray,pe=0,Ke,Qe,De,er,rr,tr,or;n.__reactDisabledLog=!0;var Ce,nr,Ee=!1,ke=new(typeof WeakMap=="function"?WeakMap:Map),Qr=Symbol.for("react.client.reference"),sr,ar={},ir={},lr={};se.Fragment=K,se.jsx=function(e,l,c,b,N){return T(e,l,c,!1,b,N)},se.jsxs=function(e,l,c,b,N){return T(e,l,c,!0,b,N)}}()),se}var Se;function fr(){return Se||(Se=1,process.env.NODE_ENV==="production"?ge.exports=dr():ge.exports=ur()),ge.exports}var A=fr();function Ne(r){var o,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var s=r.length;for(o=0;o<s;o++)r[o]&&(t=Ne(r[o]))&&(n&&(n+=" "),n+=t)}else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function Ae(){for(var r,o,t=0,n="",s=arguments.length;t<s;t++)(r=arguments[t])&&(o=Ne(r))&&(n&&(n+=" "),n+=o);return n}const Te=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,_e=Ae,Oe=(r,o)=>t=>{var n;if((o==null?void 0:o.variants)==null)return _e(r,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:s,defaultVariants:a}=o,d=Object.keys(s).map(p=>{const y=t==null?void 0:t[p],k=a==null?void 0:a[p];if(y===null)return null;const E=Te(y)||Te(k);return s[p][E]}),i=t&&Object.entries(t).reduce((p,y)=>{let[k,E]=y;return E===void 0||(p[k]=E),p},{}),g=o==null||(n=o.compoundVariants)===null||n===void 0?void 0:n.reduce((p,y)=>{let{class:k,className:E,...z}=y;return Object.entries(z).every(T=>{let[x,m]=T;return Array.isArray(m)?m.includes({...a,...i}[x]):{...a,...i}[x]===m})?[...p,k,E]:p},[]);return _e(r,d,g,t==null?void 0:t.class,t==null?void 0:t.className)},ve="-",pr=r=>{const o=gr(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=r;return{getClassGroupId:d=>{const i=d.split(ve);return i[0]===""&&i.length!==1&&i.shift(),ze(i,o)||br(d)},getConflictingClassGroupIds:(d,i)=>{const g=t[d]||[];return i&&n[d]?[...g,...n[d]]:g}}},ze=(r,o)=>{var d;if(r.length===0)return o.classGroupId;const t=r[0],n=o.nextPart.get(t),s=n?ze(r.slice(1),n):void 0;if(s)return s;if(o.validators.length===0)return;const a=r.join(ve);return(d=o.validators.find(({validator:i})=>i(a)))==null?void 0:d.classGroupId},Pe=/^\[(.+)\]$/,br=r=>{if(Pe.test(r)){const o=Pe.exec(r)[1],t=o==null?void 0:o.substring(0,o.indexOf(":"));if(t)return"arbitrary.."+t}},gr=r=>{const{theme:o,prefix:t}=r,n={nextPart:new Map,validators:[]};return vr(Object.entries(r.classGroups),t).forEach(([a,d])=>{he(d,n,a,o)}),n},he=(r,o,t,n)=>{r.forEach(s=>{if(typeof s=="string"){const a=s===""?o:Me(o,s);a.classGroupId=t;return}if(typeof s=="function"){if(mr(s)){he(s(n),o,t,n);return}o.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([a,d])=>{he(d,Me(o,a),t,n)})})},Me=(r,o)=>{let t=r;return o.split(ve).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},mr=r=>r.isThemeGetter,vr=(r,o)=>o?r.map(([t,n])=>{const s=n.map(a=>typeof a=="string"?o+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([d,i])=>[o+d,i])):a);return[t,s]}):r,hr=r=>{if(r<1)return{get:()=>{},set:()=>{}};let o=0,t=new Map,n=new Map;const s=(a,d)=>{t.set(a,d),o++,o>r&&(o=0,n=t,t=new Map)};return{get(a){let d=t.get(a);if(d!==void 0)return d;if((d=n.get(a))!==void 0)return s(a,d),d},set(a,d){t.has(a)?t.set(a,d):s(a,d)}}},Ve="!",yr=r=>{const{separator:o,experimentalParseClassName:t}=r,n=o.length===1,s=o[0],a=o.length,d=i=>{const g=[];let p=0,y=0,k;for(let m=0;m<i.length;m++){let R=i[m];if(p===0){if(R===s&&(n||i.slice(m,m+a)===o)){g.push(i.slice(y,m)),y=m+a;continue}if(R==="/"){k=m;continue}}R==="["?p++:R==="]"&&p--}const E=g.length===0?i:i.substring(y),z=E.startsWith(Ve),T=z?E.substring(1):E,x=k&&k>y?k-y:void 0;return{modifiers:g,hasImportantModifier:z,baseClassName:T,maybePostfixModifierPosition:x}};return t?i=>t({className:i,parseClassName:d}):d},xr=r=>{if(r.length<=1)return r;const o=[];let t=[];return r.forEach(n=>{n[0]==="["?(o.push(...t.sort(),n),t=[]):t.push(n)}),o.push(...t.sort()),o},wr=r=>({cache:hr(r.cacheSize),parseClassName:yr(r),...pr(r)}),Cr=/\s+/,Er=(r,o)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:s}=o,a=[],d=r.trim().split(Cr);let i="";for(let g=d.length-1;g>=0;g-=1){const p=d[g],{modifiers:y,hasImportantModifier:k,baseClassName:E,maybePostfixModifierPosition:z}=t(p);let T=!!z,x=n(T?E.substring(0,z):E);if(!x){if(!T){i=p+(i.length>0?" "+i:i);continue}if(x=n(E),!x){i=p+(i.length>0?" "+i:i);continue}T=!1}const m=xr(y).join(":"),R=k?m+Ve:m,O=R+x;if(a.includes(O))continue;a.push(O);const L=s(x,T);for(let M=0;M<L.length;++M){const Z=L[M];a.push(R+Z)}i=p+(i.length>0?" "+i:i)}return i};function kr(){let r=0,o,t,n="";for(;r<arguments.length;)(o=arguments[r++])&&(t=Ge(o))&&(n&&(n+=" "),n+=t);return n}const Ge=r=>{if(typeof r=="string")return r;let o,t="";for(let n=0;n<r.length;n++)r[n]&&(o=Ge(r[n]))&&(t&&(t+=" "),t+=o);return t};function Rr(r,...o){let t,n,s,a=d;function d(g){const p=o.reduce((y,k)=>k(y),r());return t=wr(p),n=t.cache.get,s=t.cache.set,a=i,i(g)}function i(g){const p=n(g);if(p)return p;const y=Er(g,t);return s(g,y),y}return function(){return a(kr.apply(null,arguments))}}const h=r=>{const o=t=>t[r]||[];return o.isThemeGetter=!0,o},We=/^\[(?:([a-z-]+):)?(.+)\]$/i,jr=/^\d+\/\d+$/,Sr=new Set(["px","full","screen"]),Nr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ar=/\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$/,Tr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_r=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Or=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,G=r=>J(r)||Sr.has(r)||jr.test(r),I=r=>X(r,"length",Ir),J=r=>!!r&&!Number.isNaN(Number(r)),ye=r=>X(r,"number",J),ae=r=>!!r&&Number.isInteger(Number(r)),zr=r=>r.endsWith("%")&&J(r.slice(0,-1)),u=r=>We.test(r),Y=r=>Nr.test(r),Pr=new Set(["length","size","percentage"]),Mr=r=>X(r,Pr,$e),Vr=r=>X(r,"position",$e),Gr=new Set(["image","url"]),Wr=r=>X(r,Gr,Ur),$r=r=>X(r,"",Yr),ie=()=>!0,X=(r,o,t)=>{const n=We.exec(r);return n?n[1]?typeof o=="string"?n[1]===o:o.has(n[1]):t(n[2]):!1},Ir=r=>Ar.test(r)&&!Tr.test(r),$e=()=>!1,Yr=r=>_r.test(r),Ur=r=>Or.test(r),Br=Rr(()=>{const r=h("colors"),o=h("spacing"),t=h("blur"),n=h("brightness"),s=h("borderColor"),a=h("borderRadius"),d=h("borderSpacing"),i=h("borderWidth"),g=h("contrast"),p=h("grayscale"),y=h("hueRotate"),k=h("invert"),E=h("gap"),z=h("gradientColorStops"),T=h("gradientColorStopPositions"),x=h("inset"),m=h("margin"),R=h("opacity"),O=h("padding"),L=h("saturate"),M=h("scale"),Z=h("sepia"),K=h("skew"),le=h("space"),ce=h("translate"),Q=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",u,o],v=()=>[u,o],ee=()=>["",G,I],U=()=>["auto",J,u],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],te=()=>["solid","dashed","dotted","double","none"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",u],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>[J,u];return{cacheSize:500,separator:":",theme:{colors:[ie],spacing:[G,I],blur:["none","",Y,u],brightness:S(),borderColor:[r],borderRadius:["none","","full",Y,u],borderSpacing:v(),borderWidth:ee(),contrast:S(),grayscale:P(),hueRotate:S(),invert:P(),gap:v(),gradientColorStops:[r],gradientColorStopPositions:[zr,I],inset:F(),margin:F(),opacity:S(),padding:v(),saturate:S(),scale:S(),sepia:P(),skew:S(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[Y]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"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:[...re(),u]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ae,u]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",ae,u]}],"grid-cols":[{"grid-cols":[ie]}],"col-start-end":[{col:["auto",{span:["full",ae,u]},u]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[ie]}],"row-start-end":[{row:["auto",{span:[ae,u]},u]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[E]}],"gap-x":[{"gap-x":[E]}],"gap-y":[{"gap-y":[E]}],"justify-content":[{justify:["normal",...ue()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ue(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ue(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[le]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,o]}],"min-w":[{"min-w":[u,o,"min","max","fit"]}],"max-w":[{"max-w":[u,o,"none","full","min","max","fit","prose",{screen:[Y]},Y]}],h:[{h:[u,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,o,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,o,"auto","min","max","fit"]}],"font-size":[{text:["base",Y,I]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ye]}],"font-family":[{font:[ie]}],"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",u]}],"line-clamp":[{"line-clamp":["none",J,ye]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",G,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",G,I]}],"underline-offset":[{"underline-offset":["auto",G,u]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],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",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),Vr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Mr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Wr]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[T]}],"gradient-via-pos":[{via:[T]}],"gradient-to-pos":[{to:[T]}],"gradient-from":[{from:[z]}],"gradient-via":[{via:[z]}],"gradient-to":[{to:[z]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...te(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:te()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...te()]}],"outline-offset":[{"outline-offset":[G,u]}],"outline-w":[{outline:[G,I]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[G,I]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",Y,$r]}],"shadow-color":[{shadow:[ie]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...de(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":de()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[n]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",Y,u]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[k]}],saturate:[{saturate:[L]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[ae,u]}],"translate-x":[{"translate-x":[ce]}],"translate-y":[{"translate-y":[ce]}],"skew-x":[{"skew-x":[K]}],"skew-y":[{"skew-y":[K]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",r]}],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",u]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-me":[{"scroll-me":v()}],"scroll-mt":[{"scroll-mt":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-ps":[{"scroll-ps":v()}],"scroll-pe":[{"scroll-pe":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"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",u]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[G,I,ye]}],stroke:[{stroke:[r,"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 V(...r){return Br(Ae(r))}const Ie=Oe("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 Lr({className:r,variant:o,...t}){return A.jsx("div",{className:V(Ie({variant:o}),r),...t})}function Ye(r,o){if(typeof r=="function")return r(o);r!=null&&(r.current=o)}function Fr(...r){return o=>{let t=!1;const n=r.map(s=>{const a=Ye(s,o);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let s=0;s<n.length;s++){const a=n[s];typeof a=="function"?a():Ye(r[s],null)}}}}var Ue=C.forwardRef((r,o)=>{const{children:t,...n}=r,s=C.Children.toArray(t),a=s.find(Hr);if(a){const d=a.props.children,i=s.map(g=>g===a?C.Children.count(d)>1?C.Children.only(null):C.isValidElement(d)?d.props.children:null:g);return A.jsx(xe,{...n,ref:o,children:C.isValidElement(d)?C.cloneElement(d,void 0,i):null})}return A.jsx(xe,{...n,ref:o,children:t})});Ue.displayName="Slot";var xe=C.forwardRef((r,o)=>{const{children:t,...n}=r;if(C.isValidElement(t)){const s=Xr(t);return C.cloneElement(t,{...Jr(n,t.props),ref:o?Fr(o,s):s})}return C.Children.count(t)>1?C.Children.only(null):null});xe.displayName="SlotClone";var qr=({children:r})=>A.jsx(A.Fragment,{children:r});function Hr(r){return C.isValidElement(r)&&r.type===qr}function Jr(r,o){const t={...o};for(const n in o){const s=r[n],a=o[n];/^on[A-Z]/.test(n)?s&&a?t[n]=(...i)=>{a(...i),s(...i)}:s&&(t[n]=s):n==="style"?t[n]={...s,...a}:n==="className"&&(t[n]=[s,a].filter(Boolean).join(" "))}return{...r,...t}}function Xr(r){var n,s;let o=(n=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:n.get,t=o&&"isReactWarning"in o&&o.isReactWarning;return t?r.ref:(o=(s=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:s.get,t=o&&"isReactWarning"in o&&o.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}const Be=Oe("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",xl:"h-12 rounded-md px-10 text-xl",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Le=C.forwardRef(({className:r,variant:o,size:t,asChild:n=!1,...s},a)=>{const d=n?Ue:"button";return A.jsx(d,{className:V(Be({variant:o,size:t,className:r})),ref:a,...s})});Le.displayName="Button";const Fe=C.forwardRef(({className:r,...o},t)=>A.jsx("div",{ref:t,className:V("rounded-xl border bg-card text-card-foreground shadow",r),...o}));Fe.displayName="Card";const qe=C.forwardRef(({className:r,...o},t)=>A.jsx("div",{ref:t,className:V("flex flex-col space-y-1.5 p-6",r),...o}));qe.displayName="CardHeader";const He=C.forwardRef(({className:r,...o},t)=>A.jsx("div",{ref:t,className:V("font-semibold leading-none tracking-tight pb-4",r),...o}));He.displayName="CardTitle";const Je=C.forwardRef(({className:r,...o},t)=>A.jsx("div",{ref:t,className:V("text-sm text-muted-foreground",r),...o}));Je.displayName="CardDescription";const Xe=C.forwardRef(({className:r,...o},t)=>A.jsx("div",{ref:t,className:V("p-6 py-0",r),...o}));Xe.displayName="CardContent";const Ze=C.forwardRef(({className:r,...o},t)=>A.jsx("div",{ref:t,className:V("flex items-center p-6 pt-6",r),...o}));Ze.displayName="CardFooter";const Zr=({className:r,repeat:o=1,...t})=>A.jsx(A.Fragment,{children:Array.from({length:o??1}).map((n,s)=>A.jsx("div",{className:V("animate-pulse rounded-md bg-gray-700/10",r),...t},s))});j.Badge=Lr,j.Button=Le,j.Card=Fe,j.CardContent=Xe,j.CardDescription=Je,j.CardFooter=Ze,j.CardHeader=qe,j.CardTitle=He,j.Skeleton=Zr,j.badgeVariants=Ie,j.buttonVariants=Be,j.cn=V,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
31
+ Check the top-level render call using <`+g+">."),N}var A=G,C=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),L=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),X=Symbol.iterator,T=Symbol.for("react.client.reference"),S=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=Object.prototype.hasOwnProperty,z=Object.assign,le=Symbol.for("react.client.reference"),Pe=Array.isArray,ge=0,Ye,we,ue,We,ne,Be,Pt;r.__reactDisabledLog=!0;var ut,ze,dt=!1,Nt=new(typeof WeakMap=="function"?WeakMap:Map),yr=Symbol.for("react.client.reference"),un,dn={},Xe={},Yi={};mt.Fragment=_,mt.jsx=function(g,N,M,H,te){return b(g,N,M,!1,H,te)},mt.jsxs=function(g,N,M,H,te){return b(g,N,M,!0,H,te)}}()),mt}var Sr;function Zi(){return Sr||(Sr=1,process.env.NODE_ENV==="production"?_t.exports=Xi():_t.exports=qi()),_t.exports}var d=Zi();function Rr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Rr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Rr(e))&&(r&&(r+=" "),r+=t);return r}const pn="-",Ji=e=>{const t=ec(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(pn);return s[0]===""&&s.length!==1&&s.shift(),Nr(s,t)||Qi(i)},getConflictingClassGroupIds:(i,s)=>{const u=n[i]||[];return s&&r[i]?[...u,...r[i]]:u}}},Nr=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Nr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(pn);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},Mr=/^\[(.+)\]$/,Qi=e=>{if(Mr.test(e)){const t=Mr.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ec=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return nc(Object.entries(e.classGroups),n).forEach(([a,i])=>{mn(i,r,a,t)}),r},mn=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:_r(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(tc(o)){mn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{mn(i,_r(t,a),n,r)})})},_r=(e,t)=>{let n=e;return t.split(pn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},tc=e=>e.isThemeGetter,nc=(e,t)=>t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[n,o]}):e,rc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},Dr="!",oc=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],a=t.length,i=s=>{const u=[];let l=0,f=0,p;for(let w=0;w<s.length;w++){let y=s[w];if(l===0){if(y===o&&(r||s.slice(w,w+a)===t)){u.push(s.slice(f,w)),f=w+a;continue}if(y==="/"){p=w;continue}}y==="["?l++:y==="]"&&l--}const m=u.length===0?s:s.substring(f),v=m.startsWith(Dr),b=v?m.substring(1):m,h=p&&p>f?p-f:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:h}};return n?s=>n({className:s,parseClassName:i}):i},ac=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},sc=e=>({cache:rc(e.cacheSize),parseClassName:oc(e),...Ji(e)}),ic=/\s+/,cc=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(ic);let s="";for(let u=i.length-1;u>=0;u-=1){const l=i[u],{modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:v}=n(l);let b=!!v,h=r(b?m.substring(0,v):m);if(!h){if(!b){s=l+(s.length>0?" "+s:s);continue}if(h=r(m),!h){s=l+(s.length>0?" "+s:s);continue}b=!1}const w=ac(f).join(":"),y=p?w+Dr:w,x=y+h;if(a.includes(x))continue;a.push(x);const A=o(h,b);for(let C=0;C<A.length;++C){const E=A[C];a.push(y+E)}s=l+(s.length>0?" "+s:s)}return s};function lc(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Or(t))&&(r&&(r+=" "),r+=n);return r}const Or=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Or(e[r]))&&(n&&(n+=" "),n+=t);return n};function uc(e,...t){let n,r,o,a=i;function i(u){const l=t.reduce((f,p)=>p(f),e());return n=sc(l),r=n.cache.get,o=n.cache.set,a=s,s(u)}function s(u){const l=r(u);if(l)return l;const f=cc(u,n);return o(u,f),f}return function(){return a(lc.apply(null,arguments))}}const q=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},kr=/^\[(?:([a-z-]+):)?(.+)\]$/i,dc=/^\d+\/\d+$/,fc=new Set(["px","full","screen"]),pc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mc=/\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$/,gc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xe=e=>Ze(e)||fc.has(e)||dc.test(e),_e=e=>Je(e,"length",Sc),Ze=e=>!!e&&!Number.isNaN(Number(e)),gn=e=>Je(e,"number",Ze),gt=e=>!!e&&Number.isInteger(Number(e)),bc=e=>e.endsWith("%")&&Ze(e.slice(0,-1)),I=e=>kr.test(e),De=e=>pc.test(e),yc=new Set(["length","size","percentage"]),wc=e=>Je(e,yc,Tr),xc=e=>Je(e,"position",Tr),Cc=new Set(["image","url"]),Ec=e=>Je(e,Cc,Pc),Ac=e=>Je(e,"",Rc),ht=()=>!0,Je=(e,t,n)=>{const r=kr.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Sc=e=>mc.test(e)&&!gc.test(e),Tr=()=>!1,Rc=e=>hc.test(e),Pc=e=>vc.test(e),Nc=uc(()=>{const e=q("colors"),t=q("spacing"),n=q("blur"),r=q("brightness"),o=q("borderColor"),a=q("borderRadius"),i=q("borderSpacing"),s=q("borderWidth"),u=q("contrast"),l=q("grayscale"),f=q("hueRotate"),p=q("invert"),m=q("gap"),v=q("gradientColorStops"),b=q("gradientColorStopPositions"),h=q("inset"),w=q("margin"),y=q("opacity"),x=q("padding"),A=q("saturate"),C=q("scale"),E=q("sepia"),_=q("skew"),P=q("space"),O=q("translate"),B=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",I,t],D=()=>[I,t],U=()=>["",xe,_e],W=()=>["auto",Ze,I],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],S=()=>["","0",I],Y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[Ze,I];return{cacheSize:500,separator:":",theme:{colors:[ht],spacing:[xe,_e],blur:["none","",De,I],brightness:z(),borderColor:[e],borderRadius:["none","","full",De,I],borderSpacing:D(),borderWidth:U(),contrast:z(),grayscale:S(),hueRotate:z(),invert:S(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[bc,_e],inset:K(),margin:K(),opacity:z(),padding:D(),saturate:z(),scale:z(),sepia:S(),skew:z(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[De]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"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:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",gt,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:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",gt,I]}],"grid-cols":[{"grid-cols":[ht]}],"col-start-end":[{col:["auto",{span:["full",gt,I]},I]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[ht]}],"row-start-end":[{row:["auto",{span:[gt,I]},I]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"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:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"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:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"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:[De]},De]}],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",De,_e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",gn]}],"font-family":[{font:[ht]}],"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",Ze,gn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xe,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":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xe,_e]}],"underline-offset":[{"underline-offset":["auto",xe,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:D()}],"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":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),xc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wc]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ec]}],"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":[y]}],"border-style":[{border:[...$(),"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":[y]}],"divide-style":[{divide:$()}],"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:["",...$()]}],"outline-offset":[{"outline-offset":[xe,I]}],"outline-w":[{outline:[xe,_e]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[xe,_e]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",De,Ac]}],"shadow-color":[{shadow:[ht]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",De,I]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[A]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"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",I]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[gt,I]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"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":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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:[xe,_e,gn]}],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 F(...e){return Nc(Pr(e))}const Mc=(e,t="pt-BR",n="BRL")=>new Intl.NumberFormat(t,{style:"currency",currency:n,minimumFractionDigits:2}).format(e),_c=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long"}).format(new Date(e)),Dc=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",weekday:"long",year:"numeric"}).format(new Date(e)),Oc=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{day:"2-digit",month:"long"}).format(new Date(e)),kc=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"long"}).format(typeof e=="string"?new Date(e):e),Tc=(e,t="pt-BR")=>new Intl.DateTimeFormat(t,{dateStyle:"short"}).format(e),Ic=e=>e.slice(0,7),jc=(e,t="pt-BR")=>e.toLocaleDateString(t,{weekday:"short",day:"2-digit",month:"2-digit"}),Ir=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,jr=Pr,hn=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return jr(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(l=>{const f=n==null?void 0:n[l],p=a==null?void 0:a[l];if(f===null)return null;const m=Ir(f)||Ir(p);return o[l][m]}),s=n&&Object.entries(n).reduce((l,f)=>{let[p,m]=f;return m===void 0||(l[p]=m),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,f)=>{let{class:p,className:m,...v}=f;return Object.entries(v).every(b=>{let[h,w]=b;return Array.isArray(w)?w.includes({...a,...s}[h]):{...a,...s}[h]===w})?[...l,p,m]:l},[]);return jr(e,i,u,n==null?void 0:n.class,n==null?void 0:n.className)},Fc=hn("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{sizing:{sm:"h-8 text-xs px-2",md:"h-10 text-sm px-3",lg:"h-12 text-base px-4",xl:"h-14 text-lg px-5","2xl":"h-16 text-xl px-6"}},defaultVariants:{sizing:"md"}}),Dt=c.forwardRef(({className:e,sizing:t,type:n,...r},o)=>d.jsx("input",{type:n,className:F(Fc({sizing:t,className:e})),ref:o,...r}));Dt.displayName="Input";const Lc=(e,t)=>{const n=e.replace(/\D/g,"");let r="",o=0,a=0;for(;o<t.length&&a<n.length;)t[o]==="0"?(r+=n[a],a++):r+=t[o],o++;return r},Ot=c.forwardRef(({className:e,leftIcon:t,rightIcon:n,mask:r,onChange:o,...a},i)=>{const s=u=>{const l=u.target;if(r){const f=Lc(l.value,r);l.value=f}o==null||o(u)};return d.jsxs("div",{className:"relative w-full",children:[t&&d.jsx("div",{className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:t}),d.jsx(Dt,{className:F(t&&"pl-8",n&&"pr-8",e),ref:i,onInput:s,...a}),n&&d.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground",children:n})]})});Ot.displayName="AdaptiveInput";function $c(e,t){const n=c.createContext(t),r=a=>{const{children:i,...s}=a,u=c.useMemo(()=>s,Object.values(s));return d.jsx(n.Provider,{value:u,children:i})};r.displayName=e+"Provider";function o(a){const i=c.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function ie(e,t=[]){let n=[];function r(a,i){const s=c.createContext(i),u=n.length;n=[...n,i];const l=p=>{var y;const{scope:m,children:v,...b}=p,h=((y=m==null?void 0:m[e])==null?void 0:y[u])||s,w=c.useMemo(()=>b,Object.values(b));return d.jsx(h.Provider,{value:w,children:v})};l.displayName=a+"Provider";function f(p,m){var h;const v=((h=m==null?void 0:m[e])==null?void 0:h[u])||s,b=c.useContext(v);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[l,f]}const o=()=>{const a=n.map(i=>c.createContext(i));return function(s){const u=(s==null?void 0:s[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return o.scopeName=e,[r,Wc(o,...t)]}function Wc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:u,scopeName:l})=>{const p=u(a)[`__scope${l}`];return{...s,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Fr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function kt(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Fr(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Fr(e[o],null)}}}}function Z(...e){return c.useCallback(kt(...e),e)}function k(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var Ce=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Bc=c.useId||(()=>{}),zc=0;function Ee(e){const[t,n]=c.useState(Bc());return Ce(()=>{e||n(r=>r??String(zc++))},[e]),e||(t?`radix-${t}`:"")}function oe(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ve({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Gc({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=oe(n),u=c.useCallback(l=>{if(a){const p=typeof l=="function"?l(e):l;p!==e&&s(p)}else o(l)},[a,e,o,s]);return[i,u]}function Gc({defaultProp:e,onChange:t}){const n=c.useState(e),[r]=n,o=c.useRef(r),a=oe(t);return c.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}var Oe=c.forwardRef((e,t)=>{const{children:n,...r}=e,o=c.Children.toArray(n),a=o.find(Vc);if(a){const i=a.props.children,s=o.map(u=>u===a?c.Children.count(i)>1?c.Children.only(null):c.isValidElement(i)?i.props.children:null:u);return d.jsx(vn,{...r,ref:t,children:c.isValidElement(i)?c.cloneElement(i,void 0,s):null})}return d.jsx(vn,{...r,ref:t,children:n})});Oe.displayName="Slot";var vn=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const o=Hc(n);return c.cloneElement(n,{...Uc(r,n.props),ref:t?kt(t,o):o})}return c.Children.count(n)>1?c.Children.only(null):null});vn.displayName="SlotClone";var Lr=({children:e})=>d.jsx(d.Fragment,{children:e});function Vc(e){return c.isValidElement(e)&&e.type===Lr}function Uc(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Hc(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Kc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],V=Kc.reduce((e,t)=>{const n=c.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?Oe:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(s,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function $r(e,t){e&&Cr.flushSync(()=>e.dispatchEvent(t))}function Yc(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Xc="DismissableLayer",bn="dismissableLayer.update",qc="dismissableLayer.pointerDownOutside",Zc="dismissableLayer.focusOutside",Wr,Br=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...u}=e,l=c.useContext(Br),[f,p]=c.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=c.useState({}),b=Z(t,P=>p(P)),h=Array.from(l.layers),[w]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(w),x=f?h.indexOf(f):-1,A=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,E=el(P=>{const O=P.target,B=[...l.branches].some(L=>L.contains(O));!C||B||(o==null||o(P),i==null||i(P),P.defaultPrevented||s==null||s())},m),_=tl(P=>{const O=P.target;[...l.branches].some(L=>L.contains(O))||(a==null||a(P),i==null||i(P),P.defaultPrevented||s==null||s())},m);return Yc(P=>{x===l.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&s&&(P.preventDefault(),s()))},m),c.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Wr=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),zr(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Wr)}},[f,m,n,l]),c.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),zr())},[f,l]),c.useEffect(()=>{const P=()=>v({});return document.addEventListener(bn,P),()=>document.removeEventListener(bn,P)},[]),d.jsx(V.div,{...u,ref:b,style:{pointerEvents:A?C?"auto":"none":void 0,...e.style},onFocusCapture:k(e.onFocusCapture,_.onFocusCapture),onBlurCapture:k(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:k(e.onPointerDownCapture,E.onPointerDownCapture)})});Tt.displayName=Xc;var Jc="DismissableLayerBranch",Qc=c.forwardRef((e,t)=>{const n=c.useContext(Br),r=c.useRef(null),o=Z(t,r);return c.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),d.jsx(V.div,{...e,ref:o})});Qc.displayName=Jc;function el(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let u=function(){Gr(qc,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tl(e,t=globalThis==null?void 0:globalThis.document){const n=oe(e),r=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!r.current&&Gr(Zc,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function zr(){const e=new CustomEvent(bn);document.dispatchEvent(e)}function Gr(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?$r(o,a):o.dispatchEvent(a)}var yn="focusScope.autoFocusOnMount",wn="focusScope.autoFocusOnUnmount",Vr={bubbles:!1,cancelable:!0},nl="FocusScope",It=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,u]=c.useState(null),l=oe(o),f=oe(a),p=c.useRef(null),m=Z(t,h=>u(h)),v=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let h=function(A){if(v.paused||!s)return;const C=A.target;s.contains(C)?p.current=C:ke(p.current,{select:!0})},w=function(A){if(v.paused||!s)return;const C=A.relatedTarget;C!==null&&(s.contains(C)||ke(p.current,{select:!0}))},y=function(A){if(document.activeElement===document.body)for(const E of A)E.removedNodes.length>0&&ke(s)};document.addEventListener("focusin",h),document.addEventListener("focusout",w);const x=new MutationObserver(y);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",w),x.disconnect()}}},[r,s,v.paused]),c.useEffect(()=>{if(s){Kr.add(v);const h=document.activeElement;if(!s.contains(h)){const y=new CustomEvent(yn,Vr);s.addEventListener(yn,l),s.dispatchEvent(y),y.defaultPrevented||(rl(cl(Ur(s)),{select:!0}),document.activeElement===h&&ke(s))}return()=>{s.removeEventListener(yn,l),setTimeout(()=>{const y=new CustomEvent(wn,Vr);s.addEventListener(wn,f),s.dispatchEvent(y),y.defaultPrevented||ke(h??document.body,{select:!0}),s.removeEventListener(wn,f),Kr.remove(v)},0)}}},[s,l,f,v]);const b=c.useCallback(h=>{if(!n&&!r||v.paused)return;const w=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(w&&y){const x=h.currentTarget,[A,C]=ol(x);A&&C?!h.shiftKey&&y===C?(h.preventDefault(),n&&ke(A,{select:!0})):h.shiftKey&&y===A&&(h.preventDefault(),n&&ke(C,{select:!0})):y===x&&h.preventDefault()}},[n,r,v.paused]);return d.jsx(V.div,{tabIndex:-1,...i,ref:m,onKeyDown:b})});It.displayName=nl;function rl(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ke(r,{select:t}),document.activeElement!==n)return}function ol(e){const t=Ur(e),n=Hr(t,e),r=Hr(t.reverse(),e);return[n,r]}function Ur(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Hr(e,t){for(const n of e)if(!al(n,{upTo:t}))return n}function al(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 sl(e){return e instanceof HTMLInputElement&&"select"in e}function ke(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&sl(e)&&t&&e.select()}}var Kr=il();function il(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Yr(e,t),e.unshift(t)},remove(t){var n;e=Yr(e,t),(n=e[0])==null||n.resume()}}}function Yr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function cl(e){return e.filter(t=>t.tagName!=="A")}var ll="Portal",jt=c.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=c.useState(!1);Ce(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?wr.createPortal(d.jsx(V.div,{...r,ref:t}),i):null});jt.displayName=ll;function ul(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var de=e=>{const{present:t,children:n}=e,r=dl(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),a=Z(r.ref,fl(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:a}):null};de.displayName="Presence";function dl(e){const[t,n]=c.useState(),r=c.useRef({}),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,u]=ul(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const l=Ft(r.current);a.current=s==="mounted"?l:"none"},[s]),Ce(()=>{const l=r.current,f=o.current;if(f!==e){const m=a.current,v=Ft(l);e?u("MOUNT"):v==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Ce(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,p=v=>{const h=Ft(r.current).includes(v.animationName);if(v.target===t&&h&&(u("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},m=v=>{v.target===t&&(a.current=Ft(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function Ft(e){return(e==null?void 0:e.animationName)||"none"}function fl(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var xn=0;function Cn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Xr()),document.body.insertAdjacentElement("beforeend",e[1]??Xr()),xn++,()=>{xn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),xn--}},[])}function Xr(){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 he=function(){return he=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},he.apply(this,arguments)};function qr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function pl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Lt="right-scroll-bar-position",$t="width-before-scroll-bar",ml="with-scroll-bars-hidden",gl="--removed-body-scroll-bar-size";function En(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function hl(e,t){var n=G.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var vl=typeof window<"u"?c.useLayoutEffect:c.useEffect,Zr=new WeakMap;function bl(e,t){var n=hl(null,function(r){return e.forEach(function(o){return En(o,r)})});return vl(function(){var r=Zr.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||En(s,null)}),a.forEach(function(s){o.has(s)||En(s,i)})}Zr.set(n,e)},[e]),n}function yl(e){return e}function wl(e,t){t===void 0&&(t=yl);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var u=function(){var f=i;i=[],f.forEach(a)},l=function(){return Promise.resolve().then(u)};l(),n={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),n}}}};return o}function xl(e){e===void 0&&(e={});var t=wl(null);return t.options=he({async:!0,ssr:!1},e),t}var Jr=function(e){var t=e.sideCar,n=qr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,he({},n))};Jr.isSideCarExport=!0;function Cl(e,t){return e.useMedium(t),Jr}var Qr=xl(),An=function(){},Wt=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:An,onWheelCapture:An,onTouchMoveCapture:An}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,v=e.noIsolation,b=e.inert,h=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,x=e.gapMode,A=qr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,E=bl([n,t]),_=he(he({},A),o);return c.createElement(c.Fragment,null,f&&c.createElement(C,{sideCar:Qr,removeScrollBar:l,shards:p,noIsolation:v,inert:b,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:x}),i?c.cloneElement(c.Children.only(s),he(he({},_),{ref:E})):c.createElement(y,he({},_,{className:u,ref:E}),s))});Wt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Wt.classNames={fullWidth:$t,zeroRight:Lt};var El=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Al(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=El();return t&&e.setAttribute("nonce",t),e}function Sl(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Rl(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Pl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Al())&&(Sl(t,n),Rl(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Nl=function(){var e=Pl();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eo=function(){var e=Nl(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ml={left:0,top:0,right:0,gap:0},Sn=function(e){return parseInt(e||"",10)||0},_l=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Sn(n),Sn(r),Sn(o)]},Dl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ml;var t=_l(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ol=eo(),Qe="data-scroll-locked",kl=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
32
+ .`.concat(ml,` {
33
+ overflow: hidden `).concat(r,`;
34
+ padding-right: `).concat(s,"px ").concat(r,`;
35
+ }
36
+ body[`).concat(Qe,`] {
37
+ overflow: hidden `).concat(r,`;
38
+ overscroll-behavior: contain;
39
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
40
+ padding-left: `.concat(o,`px;
41
+ padding-top: `).concat(a,`px;
42
+ padding-right: `).concat(i,`px;
43
+ margin-left:0;
44
+ margin-top:0;
45
+ margin-right: `).concat(s,"px ").concat(r,`;
46
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
47
+ }
48
+
49
+ .`).concat(Lt,` {
50
+ right: `).concat(s,"px ").concat(r,`;
51
+ }
52
+
53
+ .`).concat($t,` {
54
+ margin-right: `).concat(s,"px ").concat(r,`;
55
+ }
56
+
57
+ .`).concat(Lt," .").concat(Lt,` {
58
+ right: 0 `).concat(r,`;
59
+ }
60
+
61
+ .`).concat($t," .").concat($t,` {
62
+ margin-right: 0 `).concat(r,`;
63
+ }
64
+
65
+ body[`).concat(Qe,`] {
66
+ `).concat(gl,": ").concat(s,`px;
67
+ }
68
+ `)},to=function(){var e=parseInt(document.body.getAttribute(Qe)||"0",10);return isFinite(e)?e:0},Tl=function(){c.useEffect(function(){return document.body.setAttribute(Qe,(to()+1).toString()),function(){var e=to()-1;e<=0?document.body.removeAttribute(Qe):document.body.setAttribute(Qe,e.toString())}},[])},Il=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Tl();var a=c.useMemo(function(){return Dl(o)},[o]);return c.createElement(Ol,{styles:kl(a,!t,o,n?"":"!important")})},Rn=!1;if(typeof window<"u")try{var Bt=Object.defineProperty({},"passive",{get:function(){return Rn=!0,!0}});window.addEventListener("test",Bt,Bt),window.removeEventListener("test",Bt,Bt)}catch{Rn=!1}var et=Rn?{passive:!1}:!1,jl=function(e){return e.tagName==="TEXTAREA"},no=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!jl(e)&&n[t]==="visible")},Fl=function(e){return no(e,"overflowY")},Ll=function(e){return no(e,"overflowX")},ro=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=oo(e,r);if(o){var a=ao(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$l=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Wl=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},oo=function(e,t){return e==="v"?Fl(t):Ll(t)},ao=function(e,t){return e==="v"?$l(t):Wl(t)},Bl=function(e,t){return e==="h"&&t==="rtl"?-1:1},zl=function(e,t,n,r,o){var a=Bl(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,u=t.contains(s),l=!1,f=i>0,p=0,m=0;do{var v=ao(e,s),b=v[0],h=v[1],w=v[2],y=h-w-a*b;(b||y)&&oo(e,s)&&(p+=y,m+=b),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(f&&(Math.abs(p)<1||!o)||!f&&(Math.abs(m)<1||!o))&&(l=!0),l},zt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},so=function(e){return[e.deltaX,e.deltaY]},io=function(e){return e&&"current"in e?e.current:e},Gl=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vl=function(e){return`
69
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
70
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
71
+ `)},Ul=0,tt=[];function Hl(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Ul++)[0],a=c.useState(eo)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=pl([e.lockRef.current],(e.shards||[]).map(io),!0).filter(Boolean);return h.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(h,w){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var y=zt(h),x=n.current,A="deltaX"in h?h.deltaX:x[0]-y[0],C="deltaY"in h?h.deltaY:x[1]-y[1],E,_=h.target,P=Math.abs(A)>Math.abs(C)?"h":"v";if("touches"in h&&P==="h"&&_.type==="range")return!1;var O=ro(P,_);if(!O)return!0;if(O?E=P:(E=P==="v"?"h":"v",O=ro(P,_)),!O)return!1;if(!r.current&&"changedTouches"in h&&(A||C)&&(r.current=E),!E)return!0;var B=r.current||E;return zl(B,w,h,B==="h"?A:C,!0)},[]),u=c.useCallback(function(h){var w=h;if(!(!tt.length||tt[tt.length-1]!==a)){var y="deltaY"in w?so(w):zt(w),x=t.current.filter(function(E){return E.name===w.type&&(E.target===w.target||w.target===E.shadowParent)&&Gl(E.delta,y)})[0];if(x&&x.should){w.cancelable&&w.preventDefault();return}if(!x){var A=(i.current.shards||[]).map(io).filter(Boolean).filter(function(E){return E.contains(w.target)}),C=A.length>0?s(w,A[0]):!i.current.noIsolation;C&&w.cancelable&&w.preventDefault()}}},[]),l=c.useCallback(function(h,w,y,x){var A={name:h,delta:w,target:y,should:x,shadowParent:Kl(y)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(C){return C!==A})},1)},[]),f=c.useCallback(function(h){n.current=zt(h),r.current=void 0},[]),p=c.useCallback(function(h){l(h.type,so(h),h.target,s(h,e.lockRef.current))},[]),m=c.useCallback(function(h){l(h.type,zt(h),h.target,s(h,e.lockRef.current))},[]);c.useEffect(function(){return tt.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",u,et),document.addEventListener("touchmove",u,et),document.addEventListener("touchstart",f,et),function(){tt=tt.filter(function(h){return h!==a}),document.removeEventListener("wheel",u,et),document.removeEventListener("touchmove",u,et),document.removeEventListener("touchstart",f,et)}},[]);var v=e.removeScrollBar,b=e.inert;return c.createElement(c.Fragment,null,b?c.createElement(a,{styles:Vl(o)}):null,v?c.createElement(Il,{gapMode:e.gapMode}):null)}function Kl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Yl=Cl(Qr,Hl);var Gt=c.forwardRef(function(e,t){return c.createElement(Wt,he({},e,{ref:t,sideCar:Yl}))});Gt.classNames=Wt.classNames;var Xl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},nt=new WeakMap,Vt=new WeakMap,Ut={},Pn=0,co=function(e){return e&&(e.host||co(e.parentNode))},ql=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=co(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Zl=function(e,t,n,r){var o=ql(t,Array.isArray(e)?e:[e]);Ut[n]||(Ut[n]=new WeakMap);var a=Ut[n],i=[],s=new Set,u=new Set(o),l=function(p){!p||s.has(p)||(s.add(p),l(p.parentNode))};o.forEach(l);var f=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(m){if(s.has(m))f(m);else try{var v=m.getAttribute(r),b=v!==null&&v!=="false",h=(nt.get(m)||0)+1,w=(a.get(m)||0)+1;nt.set(m,h),a.set(m,w),i.push(m),h===1&&b&&Vt.set(m,!0),w===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),s.clear(),Pn++,function(){i.forEach(function(p){var m=nt.get(p)-1,v=a.get(p)-1;nt.set(p,m),a.set(p,v),m||(Vt.has(p)||p.removeAttribute(r),Vt.delete(p)),v||p.removeAttribute(n)}),Pn--,Pn||(nt=new WeakMap,nt=new WeakMap,Vt=new WeakMap,Ut={})}},Nn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Xl(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Zl(r,o,n,"aria-hidden")):function(){return null}},Mn="Dialog",[lo,uo]=ie(Mn),[Jl,fe]=lo(Mn),fo=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=c.useRef(null),u=c.useRef(null),[l=!1,f]=Ve({prop:r,defaultProp:o,onChange:a});return d.jsx(Jl,{scope:t,triggerRef:s,contentRef:u,contentId:Ee(),titleId:Ee(),descriptionId:Ee(),open:l,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(p=>!p),[f]),modal:i,children:n})};fo.displayName=Mn;var po="DialogTrigger",mo=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(po,n),a=Z(t,o.triggerRef);return d.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":On(o.open),...r,ref:a,onClick:k(e.onClick,o.onOpenToggle)})});mo.displayName=po;var _n="DialogPortal",[Ql,go]=lo(_n,{forceMount:void 0}),ho=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=fe(_n,t);return d.jsx(Ql,{scope:t,forceMount:n,children:c.Children.map(r,i=>d.jsx(de,{present:n||a.open,children:d.jsx(jt,{asChild:!0,container:o,children:i})}))})};ho.displayName=_n;var Ht="DialogOverlay",vo=c.forwardRef((e,t)=>{const n=go(Ht,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=fe(Ht,e.__scopeDialog);return a.modal?d.jsx(de,{present:r||a.open,children:d.jsx(eu,{...o,ref:t})}):null});vo.displayName=Ht;var eu=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(Ht,n);return d.jsx(Gt,{as:Oe,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(V.div,{"data-state":On(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ue="DialogContent",bo=c.forwardRef((e,t)=>{const n=go(Ue,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=fe(Ue,e.__scopeDialog);return d.jsx(de,{present:r||a.open,children:a.modal?d.jsx(tu,{...o,ref:t}):d.jsx(nu,{...o,ref:t})})});bo.displayName=Ue;var tu=c.forwardRef((e,t)=>{const n=fe(Ue,e.__scopeDialog),r=c.useRef(null),o=Z(t,n.contentRef,r);return c.useEffect(()=>{const a=r.current;if(a)return Nn(a)},[]),d.jsx(yo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:k(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:k(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:k(e.onFocusOutside,a=>a.preventDefault())})}),nu=c.forwardRef((e,t)=>{const n=fe(Ue,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return d.jsx(yo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),yo=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=fe(Ue,n),u=c.useRef(null),l=Z(t,u);return Cn(),d.jsxs(d.Fragment,{children:[d.jsx(It,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(Tt,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":On(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(ou,{titleId:s.titleId}),d.jsx(su,{contentRef:u,descriptionId:s.descriptionId})]})]})}),Dn="DialogTitle",wo=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(Dn,n);return d.jsx(V.h2,{id:o.titleId,...r,ref:t})});wo.displayName=Dn;var xo="DialogDescription",Co=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(xo,n);return d.jsx(V.p,{id:o.descriptionId,...r,ref:t})});Co.displayName=xo;var Eo="DialogClose",Ao=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=fe(Eo,n);return d.jsx(V.button,{type:"button",...r,ref:t,onClick:k(e.onClick,()=>o.onOpenChange(!1))})});Ao.displayName=Eo;function On(e){return e?"open":"closed"}var So="DialogTitleWarning",[ru,Ro]=$c(So,{contentName:Ue,titleName:Dn,docsSlug:"dialog"}),ou=({titleId:e})=>{const t=Ro(So),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
72
+
73
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
74
+
75
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},au="DialogDescriptionWarning",su=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ro(au).contentName}}.`;return c.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},iu=fo,cu=mo,lu=ho,uu=vo,du=bo,fu=wo,pu=Co,Po=Ao,No="AlertDialog",[mu,Qp]=ie(No,[uo]),Ae=uo(),Mo=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ae(t);return d.jsx(iu,{...r,...n,modal:!0})};Mo.displayName=No;var gu="AlertDialogTrigger",_o=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ae(n);return d.jsx(cu,{...o,...r,ref:t})});_o.displayName=gu;var hu="AlertDialogPortal",Do=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ae(t);return d.jsx(lu,{...r,...n})};Do.displayName=hu;var vu="AlertDialogOverlay",Oo=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ae(n);return d.jsx(uu,{...o,...r,ref:t})});Oo.displayName=vu;var rt="AlertDialogContent",[bu,yu]=mu(rt),ko=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,a=Ae(n),i=c.useRef(null),s=Z(t,i),u=c.useRef(null);return d.jsx(ru,{contentName:rt,titleName:To,docsSlug:"alert-dialog",children:d.jsx(bu,{scope:n,cancelRef:u,children:d.jsxs(du,{role:"alertdialog",...a,...o,ref:s,onOpenAutoFocus:k(o.onOpenAutoFocus,l=>{var f;l.preventDefault(),(f=u.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:l=>l.preventDefault(),onInteractOutside:l=>l.preventDefault(),children:[d.jsx(Lr,{children:r}),d.jsx(xu,{contentRef:i})]})})})});ko.displayName=rt;var To="AlertDialogTitle",Io=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ae(n);return d.jsx(fu,{...o,...r,ref:t})});Io.displayName=To;var jo="AlertDialogDescription",Fo=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ae(n);return d.jsx(pu,{...o,...r,ref:t})});Fo.displayName=jo;var wu="AlertDialogAction",Lo=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Ae(n);return d.jsx(Po,{...o,...r,ref:t})});Lo.displayName=wu;var $o="AlertDialogCancel",Wo=c.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=yu($o,n),a=Ae(n),i=Z(t,o);return d.jsx(Po,{...a,...r,ref:i})});Wo.displayName=$o;var xu=({contentRef:e})=>{const t=`\`${rt}\` requires a description for the component to be accessible for screen reader users.
76
+
77
+ You can add a description to the \`${rt}\` by passing a \`${jo}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
78
+
79
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${rt}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
80
+
81
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return c.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Cu=Mo,Eu=_o,Au=Do,Bo=Oo,zo=ko,Go=Lo,Vo=Wo,Uo=Io,Ho=Fo;const Kt=hn("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",xl:"h-12 rounded-md px-10 text-xl",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),kn=c.forwardRef(({className:e,variant:t,size:n,isLoading:r=!1,asChild:o=!1,...a},i)=>{const s=o?Oe:"button";return d.jsxs(s,{className:F(Kt({variant:t,size:n,className:e})),ref:i,...a,disabled:r||a.disabled,children:[r&&d.jsxs("svg",{className:"animate-spin -ml-1 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[d.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),d.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),a.children]})});kn.displayName="Button";const Su=Cu,Ru=Eu,Ko=Au,Tn=c.forwardRef(({className:e,...t},n)=>d.jsx(Bo,{className:F("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Tn.displayName=Bo.displayName;const Yo=c.forwardRef(({className:e,...t},n)=>d.jsxs(Ko,{children:[d.jsx(Tn,{}),d.jsx(zo,{ref:n,className:F("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));Yo.displayName=zo.displayName;const Xo=({className:e,...t})=>d.jsx("div",{className:F("flex flex-col space-y-2 text-center sm:text-left",e),...t});Xo.displayName="AlertDialogHeader";const qo=({className:e,...t})=>d.jsx("div",{className:F("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});qo.displayName="AlertDialogFooter";const Zo=c.forwardRef(({className:e,...t},n)=>d.jsx(Uo,{ref:n,className:F("text-lg font-semibold",e),...t}));Zo.displayName=Uo.displayName;const Jo=c.forwardRef(({className:e,...t},n)=>d.jsx(Ho,{ref:n,className:F("text-sm text-muted-foreground",e),...t}));Jo.displayName=Ho.displayName;const Qo=c.forwardRef(({className:e,...t},n)=>d.jsx(Go,{ref:n,className:F(Kt(),e),...t}));Qo.displayName=Go.displayName;const ea=c.forwardRef(({className:e,...t},n)=>d.jsx(Vo,{ref:n,className:F(Kt({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));ea.displayName=Vo.displayName;/**
82
+ * @license lucide-react v0.469.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const Pu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ta=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
87
+ * @license lucide-react v0.469.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */var Nu={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"};/**
92
+ * @license lucide-react v0.469.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const Mu=G.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},u)=>G.createElement("svg",{ref:u,...Nu,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ta("lucide",o),...s},[...i.map(([l,f])=>G.createElement(l,f)),...Array.isArray(a)?a:[a]]));/**
97
+ * @license lucide-react v0.469.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const ot=(e,t)=>{const n=G.forwardRef(({className:r,...o},a)=>G.createElement(Mu,{ref:a,iconNode:t,className:ta(`lucide-${Pu(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
102
+ * @license lucide-react v0.469.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const na=ot("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
107
+ * @license lucide-react v0.469.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const _u=ot("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
112
+ * @license lucide-react v0.469.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const Du=ot("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
117
+ * @license lucide-react v0.469.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const Ou=ot("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
122
+ * @license lucide-react v0.469.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const ku=ot("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
127
+ * @license lucide-react v0.469.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const Tu=ot("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Iu=["top","right","bottom","left"],Te=Math.min,ae=Math.max,Yt=Math.round,Xt=Math.floor,ve=e=>({x:e,y:e}),ju={left:"right",right:"left",bottom:"top",top:"bottom"},Fu={start:"end",end:"start"};function In(e,t,n){return ae(e,Te(t,n))}function Se(e,t){return typeof e=="function"?e(t):e}function Re(e){return e.split("-")[0]}function at(e){return e.split("-")[1]}function jn(e){return e==="x"?"y":"x"}function Fn(e){return e==="y"?"height":"width"}function Ie(e){return["top","bottom"].includes(Re(e))?"y":"x"}function Ln(e){return jn(Ie(e))}function Lu(e,t,n){n===void 0&&(n=!1);const r=at(e),o=Ln(e),a=Fn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=qt(i)),[i,qt(i)]}function $u(e){const t=qt(e);return[$n(e),t,$n(t)]}function $n(e){return e.replace(/start|end/g,t=>Fu[t])}function Wu(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function Bu(e,t,n,r){const o=at(e);let a=Wu(Re(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map($n)))),a}function qt(e){return e.replace(/left|right|bottom|top/g,t=>ju[t])}function zu(e){return{top:0,right:0,bottom:0,left:0,...e}}function ra(e){return typeof e!="number"?zu(e):{top:e,right:e,bottom:e,left:e}}function Zt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function oa(e,t,n){let{reference:r,floating:o}=e;const a=Ie(t),i=Ln(t),s=Fn(i),u=Re(t),l=a==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let v;switch(u){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:p};break;case"left":v={x:r.x-o.width,y:p};break;default:v={x:r.x,y:r.y}}switch(at(t)){case"start":v[i]-=m*(n&&l?-1:1);break;case"end":v[i]+=m*(n&&l?-1:1);break}return v}const Gu=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=oa(l,r,u),m=r,v={},b=0;for(let h=0;h<s.length;h++){const{name:w,fn:y}=s[h],{x,y:A,data:C,reset:E}=await y({x:f,y:p,initialPlacement:r,placement:m,strategy:o,middlewareData:v,rects:l,platform:i,elements:{reference:e,floating:t}});f=x??f,p=A??p,v={...v,[w]:{...v[w],...C}},E&&b<=50&&(b++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(l=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:p}=oa(l,m,u)),h=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:v}};async function vt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:v=0}=Se(t,e),b=ra(v),w=s[m?p==="floating"?"reference":"floating":p],y=Zt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(w)))==null||n?w:w.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:u})),x=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(A))?await(a.getScale==null?void 0:a.getScale(A))||{x:1,y:1}:{x:1,y:1},E=Zt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:A,strategy:u}):x);return{top:(y.top-E.top+b.top)/C.y,bottom:(E.bottom-y.bottom+b.bottom)/C.y,left:(y.left-E.left+b.left)/C.x,right:(E.right-y.right+b.right)/C.x}}const Vu=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:u}=t,{element:l,padding:f=0}=Se(e,t)||{};if(l==null)return{};const p=ra(f),m={x:n,y:r},v=Ln(o),b=Fn(v),h=await i.getDimensions(l),w=v==="y",y=w?"top":"left",x=w?"bottom":"right",A=w?"clientHeight":"clientWidth",C=a.reference[b]+a.reference[v]-m[v]-a.floating[b],E=m[v]-a.reference[v],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let P=_?_[A]:0;(!P||!await(i.isElement==null?void 0:i.isElement(_)))&&(P=s.floating[A]||a.floating[b]);const O=C/2-E/2,B=P/2-h[b]/2-1,L=Te(p[y],B),K=Te(p[x],B),D=L,U=P-h[b]-K,W=P/2-h[b]/2+O,J=In(D,W,U),$=!u.arrow&&at(o)!=null&&W!==J&&a.reference[b]/2-(W<D?L:K)-h[b]/2<0,X=$?W<D?W-D:W-U:0;return{[v]:m[v]+X,data:{[v]:J,centerOffset:W-J-X,...$&&{alignmentOffset:X}},reset:$}}}),Uu=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:u,elements:l}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,...w}=Se(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const y=Re(o),x=Ie(s),A=Re(s)===s,C=await(u.isRTL==null?void 0:u.isRTL(l.floating)),E=m||(A||!h?[qt(s)]:$u(s)),_=b!=="none";!m&&_&&E.push(...Bu(s,h,b,C));const P=[s,...E],O=await vt(t,w),B=[];let L=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&B.push(O[y]),p){const W=Lu(o,i,C);B.push(O[W[0]],O[W[1]])}if(L=[...L,{placement:o,overflows:B}],!B.every(W=>W<=0)){var K,D;const W=(((K=a.flip)==null?void 0:K.index)||0)+1,J=P[W];if(J)return{data:{index:W,overflows:L},reset:{placement:J}};let $=(D=L.filter(X=>X.overflows[0]<=0).sort((X,T)=>X.overflows[1]-T.overflows[1])[0])==null?void 0:D.placement;if(!$)switch(v){case"bestFit":{var U;const X=(U=L.filter(T=>{if(_){const S=Ie(T.placement);return S===x||S==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(S=>S>0).reduce((S,Y)=>S+Y,0)]).sort((T,S)=>T[1]-S[1])[0])==null?void 0:U[0];X&&($=X);break}case"initialPlacement":$=s;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function aa(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sa(e){return Iu.some(t=>e[t]>=0)}const Hu=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Se(e,t);switch(r){case"referenceHidden":{const a=await vt(t,{...o,elementContext:"reference"}),i=aa(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:sa(i)}}}case"escaped":{const a=await vt(t,{...o,altBoundary:!0}),i=aa(a,n.floating);return{data:{escapedOffsets:i,escaped:sa(i)}}}default:return{}}}}};async function Ku(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Re(n),s=at(n),u=Ie(n)==="y",l=["left","top"].includes(i)?-1:1,f=a&&u?-1:1,p=Se(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(v=s==="end"?b*-1:b),u?{x:v*f,y:m*l}:{x:m*l,y:v*f}}const Yu=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,u=await Ku(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}},Xu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:w=>{let{x:y,y:x}=w;return{x:y,y:x}}},...u}=Se(e,t),l={x:n,y:r},f=await vt(t,u),p=Ie(Re(o)),m=jn(p);let v=l[m],b=l[p];if(a){const w=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=v+f[w],A=v-f[y];v=In(x,v,A)}if(i){const w=p==="y"?"top":"left",y=p==="y"?"bottom":"right",x=b+f[w],A=b-f[y];b=In(x,b,A)}const h=s.fn({...t,[m]:v,[p]:b});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[m]:a,[p]:i}}}}}},qu=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=Se(e,t),f={x:n,y:r},p=Ie(o),m=jn(p);let v=f[m],b=f[p];const h=Se(s,t),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const A=m==="y"?"height":"width",C=a.reference[m]-a.floating[A]+w.mainAxis,E=a.reference[m]+a.reference[A]-w.mainAxis;v<C?v=C:v>E&&(v=E)}if(l){var y,x;const A=m==="y"?"width":"height",C=["top","left"].includes(Re(o)),E=a.reference[p]-a.floating[A]+(C&&((y=i.offset)==null?void 0:y[p])||0)+(C?0:w.crossAxis),_=a.reference[p]+a.reference[A]+(C?0:((x=i.offset)==null?void 0:x[p])||0)-(C?w.crossAxis:0);b<E?b=E:b>_&&(b=_)}return{[m]:v,[p]:b}}}},Zu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:u=()=>{},...l}=Se(e,t),f=await vt(t,l),p=Re(o),m=at(o),v=Ie(o)==="y",{width:b,height:h}=a.floating;let w,y;p==="top"||p==="bottom"?(w=p,y=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=p,w=m==="end"?"top":"bottom");const x=h-f.top-f.bottom,A=b-f.left-f.right,C=Te(h-f[w],x),E=Te(b-f[y],A),_=!t.middlewareData.shift;let P=C,O=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=x),_&&!m){const L=ae(f.left,0),K=ae(f.right,0),D=ae(f.top,0),U=ae(f.bottom,0);v?O=b-2*(L!==0||K!==0?L+K:ae(f.left,f.right)):P=h-2*(D!==0||U!==0?D+U:ae(f.top,f.bottom))}await u({...t,availableWidth:O,availableHeight:P});const B=await i.getDimensions(s.floating);return b!==B.width||h!==B.height?{reset:{rects:!0}}:{}}}};function Jt(){return typeof window<"u"}function st(e){return ia(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function be(e){var t;return(t=(ia(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ia(e){return Jt()?e instanceof Node||e instanceof se(e).Node:!1}function pe(e){return Jt()?e instanceof Element||e instanceof se(e).Element:!1}function ye(e){return Jt()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function ca(e){return!Jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function bt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ju(e){return["table","td","th"].includes(st(e))}function Qt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Wn(e){const t=Bn(),n=pe(e)?me(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Qu(e){let t=je(e);for(;ye(t)&&!it(t);){if(Wn(t))return t;if(Qt(t))return null;t=je(t)}return null}function Bn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function it(e){return["html","body","#document"].includes(st(e))}function me(e){return se(e).getComputedStyle(e)}function en(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function je(e){if(st(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ca(e)&&e.host||be(e);return ca(t)?t.host:t}function la(e){const t=je(e);return it(t)?e.ownerDocument?e.ownerDocument.body:e.body:ye(t)&&bt(t)?t:la(t)}function yt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=la(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=se(o);if(a){const s=zn(i);return t.concat(i,i.visualViewport||[],bt(o)?o:[],s&&n?yt(s):[])}return t.concat(o,yt(o,[],n))}function zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ua(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ye(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=Yt(n)!==a||Yt(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Gn(e){return pe(e)?e:e.contextElement}function ct(e){const t=Gn(e);if(!ye(t))return ve(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ua(t);let i=(a?Yt(n.width):n.width)/r,s=(a?Yt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const ed=ve(0);function da(e){const t=se(e);return!Bn()||!t.visualViewport?ed:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function td(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==se(e)?!1:t}function He(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Gn(e);let i=ve(1);t&&(r?pe(r)&&(i=ct(r)):i=ct(e));const s=td(a,n,r)?da(a):ve(0);let u=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(a){const m=se(a),v=r&&pe(r)?se(r):r;let b=m,h=zn(b);for(;h&&r&&v!==b;){const w=ct(h),y=h.getBoundingClientRect(),x=me(h),A=y.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,C=y.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;u*=w.x,l*=w.y,f*=w.x,p*=w.y,u+=A,l+=C,b=se(h),h=zn(b)}}return Zt({width:f,height:p,x:u,y:l})}function Vn(e,t){const n=en(e).scrollLeft;return t?t.left+n:He(be(e)).left+n}function fa(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Vn(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function nd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=be(r),s=t?Qt(t.floating):!1;if(r===i||s&&a)return n;let u={scrollLeft:0,scrollTop:0},l=ve(1);const f=ve(0),p=ye(r);if((p||!p&&!a)&&((st(r)!=="body"||bt(i))&&(u=en(r)),ye(r))){const v=He(r);l=ct(r),f.x=v.x+r.clientLeft,f.y=v.y+r.clientTop}const m=i&&!p&&!a?fa(i,u,!0):ve(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+f.x+m.x,y:n.y*l.y-u.scrollTop*l.y+f.y+m.y}}function rd(e){return Array.from(e.getClientRects())}function od(e){const t=be(e),n=en(e),r=e.ownerDocument.body,o=ae(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ae(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Vn(e);const s=-n.scrollTop;return me(r).direction==="rtl"&&(i+=ae(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function ad(e,t){const n=se(e),r=be(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;const l=Bn();(!l||l&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:a,height:i,x:s,y:u}}function sd(e,t){const n=He(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ye(e)?ct(e):ve(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,u=o*a.x,l=r*a.y;return{width:i,height:s,x:u,y:l}}function pa(e,t,n){let r;if(t==="viewport")r=ad(e,n);else if(t==="document")r=od(be(e));else if(pe(t))r=sd(t,n);else{const o=da(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Zt(r)}function ma(e,t){const n=je(e);return n===t||!pe(n)||it(n)?!1:me(n).position==="fixed"||ma(n,t)}function id(e,t){const n=t.get(e);if(n)return n;let r=yt(e,[],!1).filter(s=>pe(s)&&st(s)!=="body"),o=null;const a=me(e).position==="fixed";let i=a?je(e):e;for(;pe(i)&&!it(i);){const s=me(i),u=Wn(i);!u&&s.position==="fixed"&&(o=null),(a?!u&&!o:!u&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||bt(i)&&!u&&ma(e,i))?r=r.filter(f=>f!==i):o=s,i=je(i)}return t.set(e,r),r}function cd(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Qt(t)?[]:id(t,this._c):[].concat(n),r],s=i[0],u=i.reduce((l,f)=>{const p=pa(t,f,o);return l.top=ae(p.top,l.top),l.right=Te(p.right,l.right),l.bottom=Te(p.bottom,l.bottom),l.left=ae(p.left,l.left),l},pa(t,s,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function ld(e){const{width:t,height:n}=ua(e);return{width:t,height:n}}function ud(e,t,n){const r=ye(t),o=be(t),a=n==="fixed",i=He(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=ve(0);if(r||!r&&!a)if((st(t)!=="body"||bt(o))&&(s=en(t)),r){const m=He(t,!0,a,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else o&&(u.x=Vn(o));const l=o&&!r&&!a?fa(o,s):ve(0),f=i.left+s.scrollLeft-u.x-l.x,p=i.top+s.scrollTop-u.y-l.y;return{x:f,y:p,width:i.width,height:i.height}}function Un(e){return me(e).position==="static"}function ga(e,t){if(!ye(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return be(e)===n&&(n=n.ownerDocument.body),n}function ha(e,t){const n=se(e);if(Qt(e))return n;if(!ye(e)){let o=je(e);for(;o&&!it(o);){if(pe(o)&&!Un(o))return o;o=je(o)}return n}let r=ga(e,t);for(;r&&Ju(r)&&Un(r);)r=ga(r,t);return r&&it(r)&&Un(r)&&!Wn(r)?n:r||Qu(e)||n}const dd=async function(e){const t=this.getOffsetParent||ha,n=this.getDimensions,r=await n(e.floating);return{reference:ud(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function fd(e){return me(e).direction==="rtl"}const pd={convertOffsetParentRelativeRectToViewportRelativeRect:nd,getDocumentElement:be,getClippingRect:cd,getOffsetParent:ha,getElementRects:dd,getClientRects:rd,getDimensions:ld,getScale:ct,isElement:pe,isRTL:fd};function md(e,t){let n=null,r;const o=be(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const{left:l,top:f,width:p,height:m}=e.getBoundingClientRect();if(s||t(),!p||!m)return;const v=Xt(f),b=Xt(o.clientWidth-(l+p)),h=Xt(o.clientHeight-(f+m)),w=Xt(l),x={rootMargin:-v+"px "+-b+"px "+-h+"px "+-w+"px",threshold:ae(0,Te(1,u))||1};let A=!0;function C(E){const _=E[0].intersectionRatio;if(_!==u){if(!A)return i();_?i(!1,_):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return i(!0),a}function gd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=Gn(e),f=o||a?[...l?yt(l):[],...yt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),a&&y.addEventListener("resize",n)});const p=l&&s?md(l,n):null;let m=-1,v=null;i&&(v=new ResizeObserver(y=>{let[x]=y;x&&x.target===l&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var A;(A=v)==null||A.observe(t)})),n()}),l&&!u&&v.observe(l),v.observe(t));let b,h=u?He(e):null;u&&w();function w(){const y=He(e);h&&(y.x!==h.x||y.y!==h.y||y.width!==h.width||y.height!==h.height)&&n(),h=y,b=requestAnimationFrame(w)}return n(),()=>{var y;f.forEach(x=>{o&&x.removeEventListener("scroll",n),a&&x.removeEventListener("resize",n)}),p==null||p(),(y=v)==null||y.disconnect(),v=null,u&&cancelAnimationFrame(b)}}const hd=Yu,vd=Xu,bd=Uu,yd=Zu,wd=Hu,va=Vu,xd=qu,Cd=(e,t,n)=>{const r=new Map,o={platform:pd,...n},a={...o.platform,_c:r};return Gu(e,t,{...o,platform:a})};var tn=typeof document<"u"?G.useLayoutEffect:G.useEffect;function nn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!nn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!nn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ba(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ya(e,t){const n=ba(e);return Math.round(t*n)/n}function Hn(e){const t=c.useRef(e);return tn(()=>{t.current=e}),t}function Ed(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:u,open:l}=e,[f,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=c.useState(r);nn(m,r)||v(r);const[b,h]=c.useState(null),[w,y]=c.useState(null),x=c.useCallback(T=>{T!==_.current&&(_.current=T,h(T))},[]),A=c.useCallback(T=>{T!==P.current&&(P.current=T,y(T))},[]),C=a||b,E=i||w,_=c.useRef(null),P=c.useRef(null),O=c.useRef(f),B=u!=null,L=Hn(u),K=Hn(o),D=Hn(l),U=c.useCallback(()=>{if(!_.current||!P.current)return;const T={placement:t,strategy:n,middleware:m};K.current&&(T.platform=K.current),Cd(_.current,P.current,T).then(S=>{const Y={...S,isPositioned:D.current!==!1};W.current&&!nn(O.current,Y)&&(O.current=Y,Cr.flushSync(()=>{p(Y)}))})},[m,t,n,K,D]);tn(()=>{l===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,p(T=>({...T,isPositioned:!1})))},[l]);const W=c.useRef(!1);tn(()=>(W.current=!0,()=>{W.current=!1}),[]),tn(()=>{if(C&&(_.current=C),E&&(P.current=E),C&&E){if(L.current)return L.current(C,E,U);U()}},[C,E,U,L,B]);const J=c.useMemo(()=>({reference:_,floating:P,setReference:x,setFloating:A}),[x,A]),$=c.useMemo(()=>({reference:C,floating:E}),[C,E]),X=c.useMemo(()=>{const T={position:n,left:0,top:0};if(!$.floating)return T;const S=ya($.floating,f.x),Y=ya($.floating,f.y);return s?{...T,transform:"translate("+S+"px, "+Y+"px)",...ba($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:S,top:Y}},[n,s,$.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:U,refs:J,elements:$,floatingStyles:X}),[f,U,J,$,X])}const Ad=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?va({element:r.current,padding:o}).fn(n):{}:r?va({element:r,padding:o}).fn(n):{}}}},Sd=(e,t)=>({...hd(e),options:[e,t]}),Rd=(e,t)=>({...vd(e),options:[e,t]}),Pd=(e,t)=>({...xd(e),options:[e,t]}),Nd=(e,t)=>({...bd(e),options:[e,t]}),Md=(e,t)=>({...yd(e),options:[e,t]}),_d=(e,t)=>({...wd(e),options:[e,t]}),Dd=(e,t)=>({...Ad(e),options:[e,t]});var Od="Arrow",wa=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return d.jsx(V.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});wa.displayName=Od;var kd=wa;function Kn(e){const[t,n]=c.useState(void 0);return Ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Yn="Popper",[xa,rn]=ie(Yn),[Td,Ca]=xa(Yn),Ea=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return d.jsx(Td,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ea.displayName=Yn;var Aa="PopperAnchor",Sa=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Ca(Aa,n),i=c.useRef(null),s=Z(t,i);return c.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:d.jsx(V.div,{...o,ref:s})});Sa.displayName=Aa;var Xn="PopperContent",[Id,jd]=xa(Xn),Ra=c.forwardRef((e,t)=>{var ue,We,ne,Be,Pt,ut;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:b,...h}=e,w=Ca(Xn,n),[y,x]=c.useState(null),A=Z(t,ze=>x(ze)),[C,E]=c.useState(null),_=Kn(C),P=(_==null?void 0:_.width)??0,O=(_==null?void 0:_.height)??0,B=r+(a!=="center"?"-"+a:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},K=Array.isArray(l)?l:[l],D=K.length>0,U={padding:L,boundary:K.filter(Ld),altBoundary:D},{refs:W,floatingStyles:J,placement:$,isPositioned:X,middlewareData:T}=Ed({strategy:"fixed",placement:B,whileElementsMounted:(...ze)=>gd(...ze,{animationFrame:v==="always"}),elements:{reference:w.anchor},middleware:[Sd({mainAxis:o+O,alignmentAxis:i}),u&&Rd({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Pd():void 0,...U}),u&&Nd({...U}),Md({...U,apply:({elements:ze,rects:dt,availableWidth:Nt,availableHeight:yr})=>{const{width:un,height:dn}=dt.reference,Xe=ze.floating.style;Xe.setProperty("--radix-popper-available-width",`${Nt}px`),Xe.setProperty("--radix-popper-available-height",`${yr}px`),Xe.setProperty("--radix-popper-anchor-width",`${un}px`),Xe.setProperty("--radix-popper-anchor-height",`${dn}px`)}}),C&&Dd({element:C,padding:s}),$d({arrowWidth:P,arrowHeight:O}),m&&_d({strategy:"referenceHidden",...U})]}),[S,Y]=Ma($),z=oe(b);Ce(()=>{X&&(z==null||z())},[X,z]);const le=(ue=T.arrow)==null?void 0:ue.x,Pe=(We=T.arrow)==null?void 0:We.y,ge=((ne=T.arrow)==null?void 0:ne.centerOffset)!==0,[Ye,we]=c.useState();return Ce(()=>{y&&we(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:X?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ye,"--radix-popper-transform-origin":[(Be=T.transformOrigin)==null?void 0:Be.x,(Pt=T.transformOrigin)==null?void 0:Pt.y].join(" "),...((ut=T.hide)==null?void 0:ut.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Id,{scope:n,placedSide:S,onArrowChange:E,arrowX:le,arrowY:Pe,shouldHideArrow:ge,children:d.jsx(V.div,{"data-side":S,"data-align":Y,...h,ref:A,style:{...h.style,animation:X?void 0:"none"}})})})});Ra.displayName=Xn;var Pa="PopperArrow",Fd={top:"bottom",right:"left",bottom:"top",left:"right"},Na=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=jd(Pa,r),i=Fd[a.placedSide];return d.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:d.jsx(kd,{...o,ref:n,style:{...o.style,display:"block"}})})});Na.displayName=Pa;function Ld(e){return e!==null}var $d=e=>({name:"transformOrigin",options:e,fn(t){var w,y,x;const{placement:n,rects:r,middlewareData:o}=t,i=((w=o.arrow)==null?void 0:w.centerOffset)!==0,s=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[l,f]=Ma(n),p={start:"0%",center:"50%",end:"100%"}[f],m=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,v=(((x=o.arrow)==null?void 0:x.y)??0)+u/2;let b="",h="";return l==="bottom"?(b=i?p:`${m}px`,h=`${-u}px`):l==="top"?(b=i?p:`${m}px`,h=`${r.floating.height+u}px`):l==="right"?(b=`${-u}px`,h=i?p:`${v}px`):l==="left"&&(b=`${r.floating.width+u}px`,h=i?p:`${v}px`),{data:{x:b,y:h}}}});function Ma(e){const[t,n="center"]=e.split("-");return[t,n]}var qn=Ea,Zn=Sa,_a=Ra,Da=Na,Jn="Popover",[Oa,em]=ie(Jn,[rn]),wt=rn(),[Wd,Fe]=Oa(Jn),ka=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,s=wt(t),u=c.useRef(null),[l,f]=c.useState(!1),[p=!1,m]=Ve({prop:r,defaultProp:o,onChange:a});return d.jsx(qn,{...s,children:d.jsx(Wd,{scope:t,contentId:Ee(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:c.useCallback(()=>m(v=>!v),[m]),hasCustomAnchor:l,onCustomAnchorAdd:c.useCallback(()=>f(!0),[]),onCustomAnchorRemove:c.useCallback(()=>f(!1),[]),modal:i,children:n})})};ka.displayName=Jn;var Ta="PopoverAnchor",Ia=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Fe(Ta,n),a=wt(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=o;return c.useEffect(()=>(i(),()=>s()),[i,s]),d.jsx(Zn,{...a,...r,ref:t})});Ia.displayName=Ta;var ja="PopoverTrigger",Fa=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Fe(ja,n),a=wt(n),i=Z(t,o.triggerRef),s=d.jsx(V.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":za(o.open),...r,ref:i,onClick:k(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:d.jsx(Zn,{asChild:!0,...a,children:s})});Fa.displayName=ja;var Qn="PopoverPortal",[Bd,zd]=Oa(Qn,{forceMount:void 0}),La=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=Fe(Qn,t);return d.jsx(Bd,{scope:t,forceMount:n,children:d.jsx(de,{present:n||a.open,children:d.jsx(jt,{asChild:!0,container:o,children:r})})})};La.displayName=Qn;var lt="PopoverContent",$a=c.forwardRef((e,t)=>{const n=zd(lt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=Fe(lt,e.__scopePopover);return d.jsx(de,{present:r||a.open,children:a.modal?d.jsx(Gd,{...o,ref:t}):d.jsx(Vd,{...o,ref:t})})});$a.displayName=lt;var Gd=c.forwardRef((e,t)=>{const n=Fe(lt,e.__scopePopover),r=c.useRef(null),o=Z(t,r),a=c.useRef(!1);return c.useEffect(()=>{const i=r.current;if(i)return Nn(i)},[]),d.jsx(Gt,{as:Oe,allowPinchZoom:!0,children:d.jsx(Wa,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:k(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),a.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:k(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,u=s.button===0&&s.ctrlKey===!0,l=s.button===2||u;a.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:k(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Vd=c.forwardRef((e,t)=>{const n=Fe(lt,e.__scopePopover),r=c.useRef(!1),o=c.useRef(!1);return d.jsx(Wa,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var u,l;(u=e.onInteractOutside)==null||u.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((l=n.triggerRef.current)==null?void 0:l.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Wa=c.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:f,...p}=e,m=Fe(lt,n),v=wt(n);return Cn(),d.jsx(It,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:d.jsx(Tt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:l,onDismiss:()=>m.onOpenChange(!1),children:d.jsx(_a,{"data-state":za(m.open),role:"dialog",id:m.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)"}})})})}),Ba="PopoverClose",Ud=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Fe(Ba,n);return d.jsx(V.button,{type:"button",...r,ref:t,onClick:k(e.onClick,()=>o.onOpenChange(!1))})});Ud.displayName=Ba;var Hd="PopoverArrow",Kd=c.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=wt(n);return d.jsx(Da,{...o,...r,ref:t})});Kd.displayName=Hd;function za(e){return e?"open":"closed"}var Yd=ka,Xd=Ia,qd=Fa,Zd=La,Ga=$a;const Va=Yd,Ua=qd,Jd=Xd,er=c.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>d.jsx(Zd,{children:d.jsx(Ga,{ref:o,align:t,sideOffset:n,className:F("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));er.displayName=Ga.displayName;function Qd(e){const{value:t="",onChange:n,options:r,className:o,placeholder:a="Search...",emptyMessage:i="Nothing found"}=e,[s,u]=G.useState(t),[l,f]=G.useState(r),[p,m]=G.useState(-1),[v,b]=G.useState(!1),h=C=>{const E=C.target.value;u(E),n==null||n(E),m(-1),b(!0),E.trim()===""?f(r):f(r.filter(_=>_.label.toLowerCase().includes(E.toLowerCase())))},w=C=>{if(C.key==="ArrowDown")C.preventDefault(),m(E=>E<l.length-1?E+1:E);else if(C.key==="ArrowUp")C.preventDefault(),m(E=>E>0?E-1:-1);else if(C.key==="Enter"&&p>=0){const E=l[p];u(E.label),n==null||n(E.value),f([]),m(-1),b(!1)}else C.key==="Escape"&&(f([]),m(-1))},y=C=>{b(!1),u(C.label),n==null||n(C.value),f(r),m(-1)},x=()=>{b(!0)},A=()=>{b(!1)};return d.jsxs(Va,{open:v,children:[d.jsx(Ua,{asChild:!0,children:d.jsx("div",{className:"relative w-full",children:d.jsx(Ot,{type:"text",placeholder:a,value:s,onChange:h,onKeyDown:w,onClick:x,onFocus:x,onBlur:A,className:F("pr-10",o),"aria-label":"Search field","aria-autocomplete":"list","aria-controls":"suggestions-list","aria-expanded":l.length>0,leftIcon:d.jsx(Tu,{className:"w-4 h-4"})})})}),d.jsx(er,{className:"p-0 w-[var(--radix-popover-trigger-width)] max-h-96 overflow-y-auto",children:l.length>0?d.jsx("ul",{id:"suggestions-list",role:"listbox",children:l.map((C,E)=>d.jsx("li",{className:`px-4 py-2 cursor-pointer hover:bg-muted ${E===p?"bg-muted":""}`,onClick:()=>y(C),role:"option","aria-selected":E===p,children:C.label},C.value))}):d.jsx("span",{className:"px-4 py-2 block",children:i})})]})}var tr="Avatar",[ef,tm]=ie(tr),[tf,Ha]=ef(tr),Ka=c.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,a]=c.useState("idle");return d.jsx(tf,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:d.jsx(V.span,{...r,ref:t})})});Ka.displayName=tr;var Ya="AvatarImage",Xa=c.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=Ha(Ya,n),s=nf(r,a.referrerPolicy),u=oe(l=>{o(l),i.onImageLoadingStatusChange(l)});return Ce(()=>{s!=="idle"&&u(s)},[s,u]),s==="loaded"?d.jsx(V.img,{...a,ref:t,src:r}):null});Xa.displayName=Ya;var qa="AvatarFallback",Za=c.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,a=Ha(qa,n),[i,s]=c.useState(r===void 0);return c.useEffect(()=>{if(r!==void 0){const u=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(u)}},[r]),i&&a.imageLoadingStatus!=="loaded"?d.jsx(V.span,{...o,ref:t}):null});Za.displayName=qa;function nf(e,t){const[n,r]=c.useState("idle");return Ce(()=>{if(!e){r("error");return}let o=!0;const a=new window.Image,i=s=>()=>{o&&r(s)};return r("loading"),a.onload=i("loaded"),a.onerror=i("error"),a.src=e,t&&(a.referrerPolicy=t),()=>{o=!1}},[e,t]),n}var Ja=Ka,Qa=Xa,es=Za;const ts=c.forwardRef(({className:e,...t},n)=>d.jsx(Ja,{ref:n,className:F("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));ts.displayName=Ja.displayName;const ns=c.forwardRef(({className:e,...t},n)=>d.jsx(Qa,{ref:n,className:F("aspect-square h-full w-full",e),...t}));ns.displayName=Qa.displayName;const rs=c.forwardRef(({className:e,...t},n)=>d.jsx(es,{ref:n,className:F("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));rs.displayName=es.displayName;const os=hn("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 rf({className:e,variant:t,...n}){return d.jsx("div",{className:F(os({variant:t}),e),...n})}const as=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:F("rounded-xl border bg-card text-card-foreground shadow",e),...t}));as.displayName="Card";const ss=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:F("flex flex-col space-y-1.5 p-6",e),...t}));ss.displayName="CardHeader";const is=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:F("font-semibold leading-none tracking-tight pb-4",e),...t}));is.displayName="CardTitle";const cs=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:F("text-sm text-muted-foreground",e),...t}));cs.displayName="CardDescription";const ls=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:F("p-6 py-0",e),...t}));ls.displayName="CardContent";const us=c.forwardRef(({className:e,...t},n)=>d.jsx("div",{ref:n,className:F("flex items-center p-6 pt-6",e),...t}));us.displayName="CardFooter";function ds(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var nr="Checkbox",[of,nm]=ie(nr),[af,sf]=of(nr),fs=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:u="on",onCheckedChange:l,form:f,...p}=e,[m,v]=c.useState(null),b=Z(t,C=>v(C)),h=c.useRef(!1),w=m?f||!!m.closest("form"):!0,[y=!1,x]=Ve({prop:o,defaultProp:a,onChange:l}),A=c.useRef(y);return c.useEffect(()=>{const C=m==null?void 0:m.form;if(C){const E=()=>x(A.current);return C.addEventListener("reset",E),()=>C.removeEventListener("reset",E)}},[m,x]),d.jsxs(af,{scope:n,state:y,disabled:s,children:[d.jsx(V.button,{type:"button",role:"checkbox","aria-checked":Le(y)?"mixed":y,"aria-required":i,"data-state":gs(y),"data-disabled":s?"":void 0,disabled:s,value:u,...p,ref:b,onKeyDown:k(e.onKeyDown,C=>{C.key==="Enter"&&C.preventDefault()}),onClick:k(e.onClick,C=>{x(E=>Le(E)?!0:!E),w&&(h.current=C.isPropagationStopped(),h.current||C.stopPropagation())})}),w&&d.jsx(cf,{control:m,bubbles:!h.current,name:r,value:u,checked:y,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"},defaultChecked:Le(a)?!1:a})]})});fs.displayName=nr;var ps="CheckboxIndicator",ms=c.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,a=sf(ps,n);return d.jsx(de,{present:r||Le(a.state)||a.state===!0,children:d.jsx(V.span,{"data-state":gs(a.state),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});ms.displayName=ps;var cf=e=>{const{control:t,checked:n,bubbles:r=!0,defaultChecked:o,...a}=e,i=c.useRef(null),s=ds(n),u=Kn(t);c.useEffect(()=>{const f=i.current,p=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(p,"checked").set;if(s!==n&&v){const b=new Event("click",{bubbles:r});f.indeterminate=Le(n),v.call(f,Le(n)?!1:n),f.dispatchEvent(b)}},[s,n,r]);const l=c.useRef(Le(n)?!1:n);return d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o??l.current,...a,tabIndex:-1,ref:i,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Le(e){return e==="indeterminate"}function gs(e){return Le(e)?"indeterminate":e?"checked":"unchecked"}var hs=fs,lf=ms;const vs=c.forwardRef(({className:e,...t},n)=>d.jsx(hs,{ref:n,className:F("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:d.jsx(lf,{className:F("flex items-center justify-center text-current"),children:d.jsx(na,{className:"h-4 w-4"})})}));vs.displayName=hs.displayName;const bs=G.forwardRef((e,t)=>{const{currencySymbol:n="$",decimalSeparator:r=".",thousandSeparator:o=",",onValueChange:a,className:i,value:s=0,...u}=e,l=G.useRef(null);G.useImperativeHandle(t,()=>l.current);const[f,p]=G.useState(""),m=h=>{const w=h.toFixed(2).split("."),y=w[0].replace(/\B(?=(\d{3})+(?!\d))/g,o);return`${n} ${y}${r}${w[1]}`},v=h=>{const w=h.target.value,y=parseFloat(w.replace(/\D/g,""))/100;p(m(y)),a(y),l.current&&window.requestAnimationFrame(()=>{var x;(x=l.current)==null||x.setSelectionRange(l.current.value.length,l.current.value.length)})},b=()=>{l.current&&l.current.setSelectionRange(l.current.value.length,l.current.value.length)};return G.useEffect(()=>{p(m(+s))},[s]),d.jsx(Ot,{type:"text",inputMode:"numeric",value:f,ref:l,onChange:v,onFocus:b,onClick:b,placeholder:`${n} 0${r}00`,className:i,...u})});bs.displayName="CurrencyInput";function ys(e){const t=e+"CollectionProvider",[n,r]=ie(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:b,children:h}=v,w=G.useRef(null),y=G.useRef(new Map).current;return d.jsx(o,{scope:b,itemMap:y,collectionRef:w,children:h})};i.displayName=t;const s=e+"CollectionSlot",u=G.forwardRef((v,b)=>{const{scope:h,children:w}=v,y=a(s,h),x=Z(b,y.collectionRef);return d.jsx(Oe,{ref:x,children:w})});u.displayName=s;const l=e+"CollectionItemSlot",f="data-radix-collection-item",p=G.forwardRef((v,b)=>{const{scope:h,children:w,...y}=v,x=G.useRef(null),A=Z(b,x),C=a(l,h);return G.useEffect(()=>(C.itemMap.set(x,{ref:x,...y}),()=>void C.itemMap.delete(x))),d.jsx(Oe,{[f]:"",ref:A,children:w})});p.displayName=l;function m(v){const b=a(e+"CollectionConsumer",v);return G.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(b.itemMap.values()).sort((C,E)=>y.indexOf(C.ref.current)-y.indexOf(E.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:u,ItemSlot:p},m,r]}var uf=c.createContext(void 0);function ws(e){const t=c.useContext(uf);return e||t||"ltr"}var rr="rovingFocusGroup.onEntryFocus",df={bubbles:!1,cancelable:!0},on="RovingFocusGroup",[or,xs,ff]=ys(on),[pf,Cs]=ie(on,[ff]),[mf,gf]=pf(on),Es=c.forwardRef((e,t)=>d.jsx(or.Provider,{scope:e.__scopeRovingFocusGroup,children:d.jsx(or.Slot,{scope:e.__scopeRovingFocusGroup,children:d.jsx(hf,{...e,ref:t})})}));Es.displayName=on;var hf=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...p}=e,m=c.useRef(null),v=Z(t,m),b=ws(a),[h=null,w]=Ve({prop:i,defaultProp:s,onChange:u}),[y,x]=c.useState(!1),A=oe(l),C=xs(n),E=c.useRef(!1),[_,P]=c.useState(0);return c.useEffect(()=>{const O=m.current;if(O)return O.addEventListener(rr,A),()=>O.removeEventListener(rr,A)},[A]),d.jsx(mf,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:h,onItemFocus:c.useCallback(O=>w(O),[w]),onItemShiftTab:c.useCallback(()=>x(!0),[]),onFocusableItemAdd:c.useCallback(()=>P(O=>O+1),[]),onFocusableItemRemove:c.useCallback(()=>P(O=>O-1),[]),children:d.jsx(V.div,{tabIndex:y||_===0?-1:0,"data-orientation":r,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:k(e.onMouseDown,()=>{E.current=!0}),onFocus:k(e.onFocus,O=>{const B=!E.current;if(O.target===O.currentTarget&&B&&!y){const L=new CustomEvent(rr,df);if(O.currentTarget.dispatchEvent(L),!L.defaultPrevented){const K=C().filter($=>$.focusable),D=K.find($=>$.active),U=K.find($=>$.id===h),J=[D,U,...K].filter(Boolean).map($=>$.ref.current);Rs(J,f)}}E.current=!1}),onBlur:k(e.onBlur,()=>x(!1))})})}),As="RovingFocusGroupItem",Ss=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...i}=e,s=Ee(),u=a||s,l=gf(As,n),f=l.currentTabStopId===u,p=xs(n),{onFocusableItemAdd:m,onFocusableItemRemove:v}=l;return c.useEffect(()=>{if(r)return m(),()=>v()},[r,m,v]),d.jsx(or.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:d.jsx(V.span,{tabIndex:f?0:-1,"data-orientation":l.orientation,...i,ref:t,onMouseDown:k(e.onMouseDown,b=>{r?l.onItemFocus(u):b.preventDefault()}),onFocus:k(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:k(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){l.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const h=yf(b,l.orientation,l.dir);if(h!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let y=p().filter(x=>x.focusable).map(x=>x.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();const x=y.indexOf(b.currentTarget);y=l.loop?wf(y,x+1):y.slice(x+1)}setTimeout(()=>Rs(y))}})})})});Ss.displayName=As;var vf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yf(e,t,n){const r=bf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return vf[r]}function Rs(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function wf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var xf=Es,Cf=Ss,ar=["Enter"," "],Ef=["ArrowDown","PageUp","Home"],Ps=["ArrowUp","PageDown","End"],Af=[...Ef,...Ps],Sf={ltr:[...ar,"ArrowRight"],rtl:[...ar,"ArrowLeft"]},Rf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},xt="Menu",[Ct,Pf,Nf]=ys(xt),[Ke,Ns]=ie(xt,[Nf,rn,Cs]),Et=rn(),Ms=Cs(),[_s,$e]=Ke(xt),[Mf,At]=Ke(xt),Ds=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,s=Et(t),[u,l]=c.useState(null),f=c.useRef(!1),p=oe(a),m=ws(o);return c.useEffect(()=>{const v=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),d.jsx(qn,{...s,children:d.jsx(_s,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:l,children:d.jsx(Mf,{scope:t,onClose:c.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:i,children:r})})})};Ds.displayName=xt;var _f="MenuAnchor",sr=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Et(n);return d.jsx(Zn,{...o,...r,ref:t})});sr.displayName=_f;var ir="MenuPortal",[Df,Os]=Ke(ir,{forceMount:void 0}),ks=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=$e(ir,t);return d.jsx(Df,{scope:t,forceMount:n,children:d.jsx(de,{present:n||a.open,children:d.jsx(jt,{asChild:!0,container:o,children:r})})})};ks.displayName=ir;var ce="MenuContent",[Of,cr]=Ke(ce),Ts=c.forwardRef((e,t)=>{const n=Os(ce,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=$e(ce,e.__scopeMenu),i=At(ce,e.__scopeMenu);return d.jsx(Ct.Provider,{scope:e.__scopeMenu,children:d.jsx(de,{present:r||a.open,children:d.jsx(Ct.Slot,{scope:e.__scopeMenu,children:i.modal?d.jsx(kf,{...o,ref:t}):d.jsx(Tf,{...o,ref:t})})})})}),kf=c.forwardRef((e,t)=>{const n=$e(ce,e.__scopeMenu),r=c.useRef(null),o=Z(t,r);return c.useEffect(()=>{const a=r.current;if(a)return Nn(a)},[]),d.jsx(lr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:k(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Tf=c.forwardRef((e,t)=>{const n=$e(ce,e.__scopeMenu);return d.jsx(lr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),lr=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:v,disableOutsideScroll:b,...h}=e,w=$e(ce,n),y=At(ce,n),x=Et(n),A=Ms(n),C=Pf(n),[E,_]=c.useState(null),P=c.useRef(null),O=Z(t,P,w.onContentChange),B=c.useRef(0),L=c.useRef(""),K=c.useRef(0),D=c.useRef(null),U=c.useRef("right"),W=c.useRef(0),J=b?Gt:c.Fragment,$=b?{as:Oe,allowPinchZoom:!0}:void 0,X=S=>{var ue,We;const Y=L.current+S,z=C().filter(ne=>!ne.disabled),le=document.activeElement,Pe=(ue=z.find(ne=>ne.ref.current===le))==null?void 0:ue.textValue,ge=z.map(ne=>ne.textValue),Ye=Hf(ge,Y,Pe),we=(We=z.find(ne=>ne.textValue===Ye))==null?void 0:We.ref.current;(function ne(Be){L.current=Be,window.clearTimeout(B.current),Be!==""&&(B.current=window.setTimeout(()=>ne(""),1e3))})(Y),we&&setTimeout(()=>we.focus())};c.useEffect(()=>()=>window.clearTimeout(B.current),[]),Cn();const T=c.useCallback(S=>{var z,le;return U.current===((z=D.current)==null?void 0:z.side)&&Yf(S,(le=D.current)==null?void 0:le.area)},[]);return d.jsx(Of,{scope:n,searchRef:L,onItemEnter:c.useCallback(S=>{T(S)&&S.preventDefault()},[T]),onItemLeave:c.useCallback(S=>{var Y;T(S)||((Y=P.current)==null||Y.focus(),_(null))},[T]),onTriggerLeave:c.useCallback(S=>{T(S)&&S.preventDefault()},[T]),pointerGraceTimerRef:K,onPointerGraceIntentChange:c.useCallback(S=>{D.current=S},[]),children:d.jsx(J,{...$,children:d.jsx(It,{asChild:!0,trapped:o,onMountAutoFocus:k(a,S=>{var Y;S.preventDefault(),(Y=P.current)==null||Y.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:d.jsx(Tt,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:v,children:d.jsx(xf,{asChild:!0,...A,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:_,onEntryFocus:k(u,S=>{y.isUsingKeyboardRef.current||S.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(_a,{role:"menu","aria-orientation":"vertical","data-state":Js(w.open),"data-radix-menu-content":"",dir:y.dir,...x,...h,ref:O,style:{outline:"none",...h.style},onKeyDown:k(h.onKeyDown,S=>{const z=S.target.closest("[data-radix-menu-content]")===S.currentTarget,le=S.ctrlKey||S.altKey||S.metaKey,Pe=S.key.length===1;z&&(S.key==="Tab"&&S.preventDefault(),!le&&Pe&&X(S.key));const ge=P.current;if(S.target!==ge||!Af.includes(S.key))return;S.preventDefault();const we=C().filter(ue=>!ue.disabled).map(ue=>ue.ref.current);Ps.includes(S.key)&&we.reverse(),Vf(we)}),onBlur:k(e.onBlur,S=>{S.currentTarget.contains(S.target)||(window.clearTimeout(B.current),L.current="")}),onPointerMove:k(e.onPointerMove,Rt(S=>{const Y=S.target,z=W.current!==S.clientX;if(S.currentTarget.contains(Y)&&z){const le=S.clientX>W.current?"right":"left";U.current=le,W.current=S.clientX}}))})})})})})})});Ts.displayName=ce;var If="MenuGroup",ur=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(V.div,{role:"group",...r,ref:t})});ur.displayName=If;var jf="MenuLabel",Is=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(V.div,{...r,ref:t})});Is.displayName=jf;var an="MenuItem",js="menu.itemSelect",sn=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=c.useRef(null),i=At(an,e.__scopeMenu),s=cr(an,e.__scopeMenu),u=Z(t,a),l=c.useRef(!1),f=()=>{const p=a.current;if(!n&&p){const m=new CustomEvent(js,{bubbles:!0,cancelable:!0});p.addEventListener(js,v=>r==null?void 0:r(v),{once:!0}),$r(p,m),m.defaultPrevented?l.current=!1:i.onClose()}};return d.jsx(Fs,{...o,ref:u,disabled:n,onClick:k(e.onClick,f),onPointerDown:p=>{var m;(m=e.onPointerDown)==null||m.call(e,p),l.current=!0},onPointerUp:k(e.onPointerUp,p=>{var m;l.current||(m=p.currentTarget)==null||m.click()}),onKeyDown:k(e.onKeyDown,p=>{const m=s.searchRef.current!=="";n||m&&p.key===" "||ar.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});sn.displayName=an;var Fs=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=cr(an,n),s=Ms(n),u=c.useRef(null),l=Z(t,u),[f,p]=c.useState(!1),[m,v]=c.useState("");return c.useEffect(()=>{const b=u.current;b&&v((b.textContent??"").trim())},[a.children]),d.jsx(Ct.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:d.jsx(Cf,{asChild:!0,...s,focusable:!r,children:d.jsx(V.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:l,onPointerMove:k(e.onPointerMove,Rt(b=>{r?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:k(e.onPointerLeave,Rt(b=>i.onItemLeave(b))),onFocus:k(e.onFocus,()=>p(!0)),onBlur:k(e.onBlur,()=>p(!1))})})})}),Ff="MenuCheckboxItem",Ls=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return d.jsx(Gs,{scope:e.__scopeMenu,checked:n,children:d.jsx(sn,{role:"menuitemcheckbox","aria-checked":cn(n)?"mixed":n,...o,ref:t,"data-state":pr(n),onSelect:k(o.onSelect,()=>r==null?void 0:r(cn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Ls.displayName=Ff;var $s="MenuRadioGroup",[Lf,$f]=Ke($s,{value:void 0,onValueChange:()=>{}}),Ws=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,a=oe(r);return d.jsx(Lf,{scope:e.__scopeMenu,value:n,onValueChange:a,children:d.jsx(ur,{...o,ref:t})})});Ws.displayName=$s;var Bs="MenuRadioItem",zs=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=$f(Bs,e.__scopeMenu),a=n===o.value;return d.jsx(Gs,{scope:e.__scopeMenu,checked:a,children:d.jsx(sn,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":pr(a),onSelect:k(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});zs.displayName=Bs;var dr="MenuItemIndicator",[Gs,Wf]=Ke(dr,{checked:!1}),Vs=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Wf(dr,n);return d.jsx(de,{present:r||cn(a.checked)||a.checked===!0,children:d.jsx(V.span,{...o,ref:t,"data-state":pr(a.checked)})})});Vs.displayName=dr;var Bf="MenuSeparator",Us=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return d.jsx(V.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Us.displayName=Bf;var zf="MenuArrow",Hs=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Et(n);return d.jsx(Da,{...o,...r,ref:t})});Hs.displayName=zf;var fr="MenuSub",[Gf,Ks]=Ke(fr),Ys=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,a=$e(fr,t),i=Et(t),[s,u]=c.useState(null),[l,f]=c.useState(null),p=oe(o);return c.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),d.jsx(qn,{...i,children:d.jsx(_s,{scope:t,open:r,onOpenChange:p,content:l,onContentChange:f,children:d.jsx(Gf,{scope:t,contentId:Ee(),triggerId:Ee(),trigger:s,onTriggerChange:u,children:n})})})};Ys.displayName=fr;var St="MenuSubTrigger",Xs=c.forwardRef((e,t)=>{const n=$e(St,e.__scopeMenu),r=At(St,e.__scopeMenu),o=Ks(St,e.__scopeMenu),a=cr(St,e.__scopeMenu),i=c.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:u}=a,l={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const p=s.current;return()=>{window.clearTimeout(p),u(null)}},[s,u]),d.jsx(sr,{asChild:!0,...l,children:d.jsx(Fs,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Js(n.open),...e,ref:kt(t,o.onTriggerChange),onClick:p=>{var m;(m=e.onClick)==null||m.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:k(e.onPointerMove,Rt(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:k(e.onPointerLeave,Rt(p=>{var v,b;f();const m=(v=n.content)==null?void 0:v.getBoundingClientRect();if(m){const h=(b=n.content)==null?void 0:b.dataset.side,w=h==="right",y=w?-5:5,x=m[w?"left":"right"],A=m[w?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+y,y:p.clientY},{x,y:m.top},{x:A,y:m.top},{x:A,y:m.bottom},{x,y:m.bottom}],side:h}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:k(e.onKeyDown,p=>{var v;const m=a.searchRef.current!=="";e.disabled||m&&p.key===" "||Sf[r.dir].includes(p.key)&&(n.onOpenChange(!0),(v=n.content)==null||v.focus(),p.preventDefault())})})})});Xs.displayName=St;var qs="MenuSubContent",Zs=c.forwardRef((e,t)=>{const n=Os(ce,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=$e(ce,e.__scopeMenu),i=At(ce,e.__scopeMenu),s=Ks(qs,e.__scopeMenu),u=c.useRef(null),l=Z(t,u);return d.jsx(Ct.Provider,{scope:e.__scopeMenu,children:d.jsx(de,{present:r||a.open,children:d.jsx(Ct.Slot,{scope:e.__scopeMenu,children:d.jsx(lr,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;i.isUsingKeyboardRef.current&&((p=u.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:k(e.onFocusOutside,f=>{f.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:k(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:k(e.onKeyDown,f=>{var v;const p=f.currentTarget.contains(f.target),m=Rf[i.dir].includes(f.key);p&&m&&(a.onOpenChange(!1),(v=s.trigger)==null||v.focus(),f.preventDefault())})})})})})});Zs.displayName=qs;function Js(e){return e?"open":"closed"}function cn(e){return e==="indeterminate"}function pr(e){return cn(e)?"indeterminate":e?"checked":"unchecked"}function Vf(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Uf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Hf(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=Uf(e,Math.max(a,0));o.length===1&&(i=i.filter(l=>l!==n));const u=i.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return u!==n?u:void 0}function Kf(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,u=t[a].y,l=t[i].x,f=t[i].y;u>r!=f>r&&n<(l-s)*(r-u)/(f-u)+s&&(o=!o)}return o}function Yf(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Kf(n,t)}function Rt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Xf=Ds,qf=sr,Zf=ks,Jf=Ts,Qf=ur,ep=Is,tp=sn,np=Ls,rp=Ws,op=zs,ap=Vs,sp=Us,ip=Hs,cp=Ys,lp=Xs,up=Zs,mr="DropdownMenu",[dp,rm]=ie(mr,[Ns]),ee=Ns(),[fp,Qs]=dp(mr),ei=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,u=ee(t),l=c.useRef(null),[f=!1,p]=Ve({prop:o,defaultProp:a,onChange:i});return d.jsx(fp,{scope:t,triggerId:Ee(),triggerRef:l,contentId:Ee(),open:f,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(m=>!m),[p]),modal:s,children:d.jsx(Xf,{...u,open:f,onOpenChange:p,dir:r,modal:s,children:n})})};ei.displayName=mr;var ti="DropdownMenuTrigger",ni=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=Qs(ti,n),i=ee(n);return d.jsx(qf,{asChild:!0,...i,children:d.jsx(V.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:kt(t,a.triggerRef),onPointerDown:k(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:k(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});ni.displayName=ti;var pp="DropdownMenuPortal",ri=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ee(t);return d.jsx(Zf,{...r,...n})};ri.displayName=pp;var oi="DropdownMenuContent",ai=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Qs(oi,n),a=ee(n),i=c.useRef(!1);return d.jsx(Jf,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:k(e.onCloseAutoFocus,s=>{var u;i.current||(u=o.triggerRef.current)==null||u.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:k(e.onInteractOutside,s=>{const u=s.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0,f=u.button===2||l;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ai.displayName=oi;var mp="DropdownMenuGroup",si=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return d.jsx(Qf,{...o,...r,ref:t})});si.displayName=mp;var gp="DropdownMenuLabel",ii=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return d.jsx(ep,{...o,...r,ref:t})});ii.displayName=gp;var hp="DropdownMenuItem",ci=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return d.jsx(tp,{...o,...r,ref:t})});ci.displayName=hp;var vp="DropdownMenuCheckboxItem",li=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return d.jsx(np,{...o,...r,ref:t})});li.displayName=vp;var bp="DropdownMenuRadioGroup",ui=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return d.jsx(rp,{...o,...r,ref:t})});ui.displayName=bp;var yp="DropdownMenuRadioItem",di=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return d.jsx(op,{...o,...r,ref:t})});di.displayName=yp;var wp="DropdownMenuItemIndicator",fi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return d.jsx(ap,{...o,...r,ref:t})});fi.displayName=wp;var xp="DropdownMenuSeparator",pi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return d.jsx(sp,{...o,...r,ref:t})});pi.displayName=xp;var Cp="DropdownMenuArrow",Ep=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return d.jsx(ip,{...o,...r,ref:t})});Ep.displayName=Cp;var Ap=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=ee(t),[s=!1,u]=Ve({prop:r,defaultProp:a,onChange:o});return d.jsx(cp,{...i,open:s,onOpenChange:u,children:n})},Sp="DropdownMenuSubTrigger",mi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return d.jsx(lp,{...o,...r,ref:t})});mi.displayName=Sp;var Rp="DropdownMenuSubContent",gi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ee(n);return d.jsx(up,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});gi.displayName=Rp;var Pp=ei,Np=ni,hi=ri,vi=ai,Mp=si,bi=ii,yi=ci,wi=li,_p=ui,xi=di,Ci=fi,Ei=pi,Dp=Ap,Ai=mi,Si=gi;const Op=Pp,kp=Np,Tp=Mp,Ip=hi,jp=Dp,Fp=_p,Ri=c.forwardRef(({className:e,inset:t,children:n,...r},o)=>d.jsxs(Ai,{ref:o,className:F("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,d.jsx(_u,{className:"ml-auto"})]}));Ri.displayName=Ai.displayName;const Pi=c.forwardRef(({className:e,...t},n)=>d.jsx(Si,{ref:n,className:F("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Pi.displayName=Si.displayName;const Ni=c.forwardRef(({className:e,sideOffset:t=4,...n},r)=>d.jsx(hi,{children:d.jsx(vi,{ref:r,sideOffset:t,className:F("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Ni.displayName=vi.displayName;const Mi=c.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(yi,{ref:r,className:F("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));Mi.displayName=yi.displayName;const _i=c.forwardRef(({className:e,children:t,checked:n,...r},o)=>d.jsxs(wi,{ref:o,className:F("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Ci,{children:d.jsx(na,{className:"h-4 w-4"})})}),t]}));_i.displayName=wi.displayName;const Di=c.forwardRef(({className:e,children:t,...n},r)=>d.jsxs(xi,{ref:r,className:F("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(Ci,{children:d.jsx(Du,{className:"h-2 w-2 fill-current"})})}),t]}));Di.displayName=xi.displayName;const Oi=c.forwardRef(({className:e,inset:t,...n},r)=>d.jsx(bi,{ref:r,className:F("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Oi.displayName=bi.displayName;const ki=c.forwardRef(({className:e,...t},n)=>d.jsx(Ei,{ref:n,className:F("-mx-1 my-1 h-px bg-muted",e),...t}));ki.displayName=Ei.displayName;const Ti=({className:e,...t})=>d.jsx("span",{className:F("ml-auto text-xs tracking-widest opacity-60",e),...t});Ti.displayName="DropdownMenuShortcut";var gr="Progress",hr=100,[Lp,om]=ie(gr),[$p,Wp]=Lp(gr),Ii=c.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:a=Bp,...i}=e;(o||o===0)&&!$i(o)&&console.error(zp(`${o}`,"Progress"));const s=$i(o)?o:hr;r!==null&&!Wi(r,s)&&console.error(Gp(`${r}`,"Progress"));const u=Wi(r,s)?r:null,l=ln(u)?a(u,s):void 0;return d.jsx($p,{scope:n,value:u,max:s,children:d.jsx(V.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":ln(u)?u:void 0,"aria-valuetext":l,role:"progressbar","data-state":Li(u,s),"data-value":u??void 0,"data-max":s,...i,ref:t})})});Ii.displayName=gr;var ji="ProgressIndicator",Fi=c.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=Wp(ji,n);return d.jsx(V.div,{"data-state":Li(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});Fi.displayName=ji;function Bp(e,t){return`${Math.round(e/t*100)}%`}function Li(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function ln(e){return typeof e=="number"}function $i(e){return ln(e)&&!isNaN(e)&&e>0}function Wi(e,t){return ln(e)&&!isNaN(e)&&e<=t&&e>=0}function zp(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${hr}\`.`}function Gp(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
132
+ - a positive number
133
+ - less than the value passed to \`max\` (or ${hr} if no \`max\` prop is set)
134
+ - \`null\` or \`undefined\` if the progress is indeterminate.
135
+
136
+ Defaulting to \`null\`.`}var Bi=Ii,Vp=Fi;const vr=c.forwardRef(({className:e,value:t,...n},r)=>d.jsx(Bi,{ref:r,className:F("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:d.jsx(Vp,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));vr.displayName=Bi.displayName;function Up(e){const{showStrengthMeter:t=!0,className:n,strengthLabels:r={veryWeak:"Very weak",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very strong"},showPasswordLabel:o="Show password",hidePasswordLabel:a="Hide password",strengthTitle:i="Password strength",...s}=e,[u,l]=G.useState(""),[f,p]=G.useState(!1),m=y=>{let x=0;return y.length>=8&&(x+=25),y.match(/[a-z]/)&&(x+=25),y.match(/[A-Z]/)&&(x+=25),y.match(/[0-9]/)&&(x+=25),x},v=y=>y===0?r.veryWeak:y<=25?r.weak:y<=50?r.medium:y<=75?r.strong:r.veryStrong,b=m(u),h=v(b),w=y=>{var x;l(y.target.value),(x=e.onChange)==null||x.call(e,y)};return d.jsxs("div",{className:"w-full space-y-4",children:[d.jsxs("div",{className:"relative",children:[d.jsx(Dt,{...s,type:f?"text":"password",value:u,onChange:w,className:`pr-10 ${n||""}`}),d.jsx(kn,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full",onClick:()=>p(!f),"aria-label":f?a:o,children:f?d.jsx(Ou,{className:"h-4 w-4"}):d.jsx(ku,{className:"h-4 w-4"})})]}),t&&d.jsxs("div",{className:"space-y-2",children:[d.jsxs("div",{className:"flex justify-between text-sm",children:[d.jsxs("span",{children:[i,":"]}),d.jsx("span",{children:h})]}),d.jsx(vr,{value:b,className:"h-2"})]})]})}const Hp=({className:e,repeat:t=1,...n})=>d.jsx(d.Fragment,{children:Array.from({length:t??1}).map((r,o)=>d.jsx("div",{className:F("animate-pulse rounded-md bg-gray-700/10",e),...n},o))});var br="Switch",[Kp,am]=ie(br),[Yp,Xp]=Kp(br),zi=c.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:a,required:i,disabled:s,value:u="on",onCheckedChange:l,form:f,...p}=e,[m,v]=c.useState(null),b=Z(t,A=>v(A)),h=c.useRef(!1),w=m?f||!!m.closest("form"):!0,[y=!1,x]=Ve({prop:o,defaultProp:a,onChange:l});return d.jsxs(Yp,{scope:n,checked:y,disabled:s,children:[d.jsx(V.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":Ui(y),"data-disabled":s?"":void 0,disabled:s,value:u,...p,ref:b,onClick:k(e.onClick,A=>{x(C=>!C),w&&(h.current=A.isPropagationStopped(),h.current||A.stopPropagation())})}),w&&d.jsx(qp,{control:m,bubbles:!h.current,name:r,value:u,checked:y,required:i,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});zi.displayName=br;var Gi="SwitchThumb",Vi=c.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Xp(Gi,n);return d.jsx(V.span,{"data-state":Ui(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Vi.displayName=Gi;var qp=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,a=c.useRef(null),i=ds(n),s=Kn(t);return c.useEffect(()=>{const u=a.current,l=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(l,"checked").set;if(i!==n&&p){const m=new Event("click",{bubbles:r});p.call(u,n),u.dispatchEvent(m)}},[i,n,r]),d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Ui(e){return e?"checked":"unchecked"}var Hi=zi,Zp=Vi;const Ki=c.forwardRef(({className:e,...t},n)=>d.jsx(Hi,{className:F("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:d.jsx(Zp,{className:F("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Ki.displayName=Hi.displayName,R.AdaptiveInput=Ot,R.AlertDialog=Su,R.AlertDialogAction=Qo,R.AlertDialogCancel=ea,R.AlertDialogContent=Yo,R.AlertDialogDescription=Jo,R.AlertDialogFooter=qo,R.AlertDialogHeader=Xo,R.AlertDialogOverlay=Tn,R.AlertDialogPortal=Ko,R.AlertDialogTitle=Zo,R.AlertDialogTrigger=Ru,R.Autocomplete=Qd,R.Avatar=ts,R.AvatarFallback=rs,R.AvatarImage=ns,R.Badge=rf,R.Button=kn,R.Card=as,R.CardContent=ls,R.CardDescription=cs,R.CardFooter=us,R.CardHeader=ss,R.CardTitle=is,R.Checkbox=vs,R.CurrencyInput=bs,R.DropdownMenu=Op,R.DropdownMenuCheckboxItem=_i,R.DropdownMenuContent=Ni,R.DropdownMenuGroup=Tp,R.DropdownMenuItem=Mi,R.DropdownMenuLabel=Oi,R.DropdownMenuPortal=Ip,R.DropdownMenuRadioGroup=Fp,R.DropdownMenuRadioItem=Di,R.DropdownMenuSeparator=ki,R.DropdownMenuShortcut=Ti,R.DropdownMenuSub=jp,R.DropdownMenuSubContent=Pi,R.DropdownMenuSubTrigger=Ri,R.DropdownMenuTrigger=kp,R.Input=Dt,R.PasswordInput=Up,R.Popover=Va,R.PopoverAnchor=Jd,R.PopoverContent=er,R.PopoverTrigger=Ua,R.Progress=vr,R.Skeleton=Hp,R.Switch=Ki,R.badgeVariants=os,R.buttonVariants=Kt,R.cn=F,R.formatCurrency=Mc,R.formatDateAndMonth=Oc,R.formatDateAndWeekday=_c,R.formatDateAndWeekdayAndYear=Dc,R.formatLongDate=kc,R.formatShortDate=Tc,R.formatWeekDayAndShortDate=jc,R.getMonthYearFromISODate=Ic,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});