@qodo/design-system 0.20.6 → 0.20.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),kr=require("react-dom");function Qi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=Qi(S),Rn=Qi(kr),tg={primary:{50:"#eff6ff",100:"#dbeafe",500:"#3b82f6",600:"#2563eb",900:"#1e3a8a"},secondary:{50:"#f8fafc",100:"#f1f5f9",500:"#64748b",600:"#475569",900:"#0f172a"},success:{50:"#f0fdf4",500:"#22c55e",600:"#16a34a"},error:{50:"#fef2f2",500:"#ef4444",600:"#dc2626"}},rg={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem"},ng={sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem"},og={fontFamily:{sans:["Inter","system-ui","sans-serif"],mono:["JetBrains Mono","monospace"]},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"}};var qr={exports:{}},cr={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react"),Zr=require("react-dom");function Ll(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const d=Ll(E),no=Ll(Zr),Tg={primary:{50:"#eff6ff",100:"#dbeafe",500:"#3b82f6",600:"#2563eb",900:"#1e3a8a"},secondary:{50:"#f8fafc",100:"#f1f5f9",500:"#64748b",600:"#475569",900:"#0f172a"},success:{50:"#f0fdf4",500:"#22c55e",600:"#16a34a"},error:{50:"#fef2f2",500:"#ef4444",600:"#dc2626"}},Ig={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem"},Ag={sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem"},_g={fontFamily:{sans:["Inter","system-ui","sans-serif"],mono:["JetBrains Mono","monospace"]},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"}};var Sn={exports:{}},jr={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var _s;function ag(){if(_s)return cr;_s=1;var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(l,d,u){var f,p={},m=null,g=null;u!==void 0&&(m=""+u),d.key!==void 0&&(m=""+d.key),d.ref!==void 0&&(g=d.ref);for(f in d)n.call(d,f)&&!a.hasOwnProperty(f)&&(p[f]=d[f]);if(l&&l.defaultProps)for(f in d=l.defaultProps,d)p[f]===void 0&&(p[f]=d[f]);return{$$typeof:t,type:l,key:m,ref:g,props:p,_owner:o.current}}return cr.Fragment=r,cr.jsx=s,cr.jsxs=s,cr}var dr={};/**
9
+ */var fi;function Og(){if(fi)return jr;fi=1;var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(i,c,u){var f,p={},m=null,g=null;u!==void 0&&(m=""+u),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(g=c.ref);for(f in c)n.call(c,f)&&!a.hasOwnProperty(f)&&(p[f]=c[f]);if(i&&i.defaultProps)for(f in c=i.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:i,key:m,ref:g,props:p,_owner:o.current}}return jr.Fragment=r,jr.jsx=s,jr.jsxs=s,jr}var Tr={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,155 +14,145 @@
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 As;function sg(){return As||(As=1,process.env.NODE_ENV!=="production"&&(function(){var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),x=Symbol.iterator,v="@@iterator";function h(w){if(w===null||typeof w!="object")return null;var L=x&&w[x]||w[v];return typeof L=="function"?L:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(w){{for(var L=arguments.length,U=new Array(L>1?L-1:0),oe=1;oe<L;oe++)U[oe-1]=arguments[oe];C("error",w,U)}}function C(w,L,U){{var oe=y.ReactDebugCurrentFrame,ue=oe.getStackAddendum();ue!==""&&(L+="%s",U=U.concat([ue]));var fe=U.map(function(de){return String(de)});fe.unshift("Warning: "+L),Function.prototype.apply.call(console[w],console,fe)}}var E=!1,R=!1,T=!1,P=!1,j=!1,F;F=Symbol.for("react.module.reference");function q(w){return!!(typeof w=="string"||typeof w=="function"||w===n||w===a||j||w===o||w===u||w===f||P||w===g||E||R||T||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===p||w.$$typeof===s||w.$$typeof===l||w.$$typeof===d||w.$$typeof===F||w.getModuleId!==void 0))}function re(w,L,U){var oe=w.displayName;if(oe)return oe;var ue=L.displayName||L.name||"";return ue!==""?U+"("+ue+")":U}function te(w){return w.displayName||"Context"}function ee(w){if(w==null)return null;if(typeof w.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case l:var L=w;return te(L)+".Consumer";case s:var U=w;return te(U._context)+".Provider";case d:return re(w,w.render,"ForwardRef");case p:var oe=w.displayName||null;return oe!==null?oe:ee(w.type)||"Memo";case m:{var ue=w,fe=ue._payload,de=ue._init;try{return ee(de(fe))}catch{return null}}}return null}var W=Object.assign,D=0,I,$,N,M,G,Q,A;function z(){}z.__reactDisabledLog=!0;function Y(){{if(D===0){I=console.log,$=console.info,N=console.warn,M=console.error,G=console.group,Q=console.groupCollapsed,A=console.groupEnd;var w={configurable:!0,enumerable:!0,value:z,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}D++}}function B(){{if(D--,D===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},w,{value:I}),info:W({},w,{value:$}),warn:W({},w,{value:N}),error:W({},w,{value:M}),group:W({},w,{value:G}),groupCollapsed:W({},w,{value:Q}),groupEnd:W({},w,{value:A})})}D<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var O=y.ReactCurrentDispatcher,_;function H(w,L,U){{if(_===void 0)try{throw Error()}catch(ue){var oe=ue.stack.trim().match(/\n( *(at )?)/);_=oe&&oe[1]||""}return`
18
- `+_+w}}var X=!1,ne;{var le=typeof WeakMap=="function"?WeakMap:Map;ne=new le}function se(w,L){if(!w||X)return"";{var U=ne.get(w);if(U!==void 0)return U}var oe;X=!0;var ue=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var fe;fe=O.current,O.current=null,Y();try{if(L){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(Ne){oe=Ne}Reflect.construct(w,[],de)}else{try{de.call()}catch(Ne){oe=Ne}w.call(de.prototype)}}else{try{throw Error()}catch(Ne){oe=Ne}w()}}catch(Ne){if(Ne&&oe&&typeof Ne.stack=="string"){for(var ce=Ne.stack.split(`
19
- `),Re=oe.stack.split(`
20
- `),ve=ce.length-1,he=Re.length-1;ve>=1&&he>=0&&ce[ve]!==Re[he];)he--;for(;ve>=1&&he>=0;ve--,he--)if(ce[ve]!==Re[he]){if(ve!==1||he!==1)do if(ve--,he--,he<0||ce[ve]!==Re[he]){var Ie=`
21
- `+ce[ve].replace(" at new "," at ");return w.displayName&&Ie.includes("<anonymous>")&&(Ie=Ie.replace("<anonymous>",w.displayName)),typeof w=="function"&&ne.set(w,Ie),Ie}while(ve>=1&&he>=0);break}}}finally{X=!1,O.current=fe,B(),Error.prepareStackTrace=ue}var Lt=w?w.displayName||w.name:"",Ct=Lt?H(Lt):"";return typeof w=="function"&&ne.set(w,Ct),Ct}function Ee(w,L,U){return se(w,!1)}function Ae(w){var L=w.prototype;return!!(L&&L.isReactComponent)}function Ge(w,L,U){if(w==null)return"";if(typeof w=="function")return se(w,Ae(w));if(typeof w=="string")return H(w);switch(w){case u:return H("Suspense");case f:return H("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case d:return Ee(w.render);case p:return Ge(w.type,L,U);case m:{var oe=w,ue=oe._payload,fe=oe._init;try{return Ge(fe(ue),L,U)}catch{}}}return""}var Me=Object.prototype.hasOwnProperty,at={},zr=y.ReactDebugCurrentFrame;function Je(w){if(w){var L=w._owner,U=Ge(w.type,w._source,L?L.type:null);zr.setExtraStackFrame(U)}else zr.setExtraStackFrame(null)}function Im(w,L,U,oe,ue){{var fe=Function.call.bind(Me);for(var de in w)if(fe(w,de)){var ce=void 0;try{if(typeof w[de]!="function"){var Re=Error((oe||"React class")+": "+U+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Re.name="Invariant Violation",Re}ce=w[de](L,de,oe,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ve){ce=ve}ce&&!(ce instanceof Error)&&(Je(ue),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",oe||"React class",U,de,typeof ce),Je(null)),ce instanceof Error&&!(ce.message in at)&&(at[ce.message]=!0,Je(ue),b("Failed %s type: %s",U,ce.message),Je(null))}}}var Om=Array.isArray;function io(w){return Om(w)}function Mm(w){{var L=typeof Symbol=="function"&&Symbol.toStringTag,U=L&&w[Symbol.toStringTag]||w.constructor.name||"Object";return U}}function Dm(w){try{return bs(w),!1}catch{return!0}}function bs(w){return""+w}function ys(w){if(Dm(w))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mm(w)),bs(w)}var ws=y.ReactCurrentOwner,$m={key:!0,ref:!0,__self:!0,__source:!0},Cs,Ss;function Lm(w){if(Me.call(w,"ref")){var L=Object.getOwnPropertyDescriptor(w,"ref").get;if(L&&L.isReactWarning)return!1}return w.ref!==void 0}function Fm(w){if(Me.call(w,"key")){var L=Object.getOwnPropertyDescriptor(w,"key").get;if(L&&L.isReactWarning)return!1}return w.key!==void 0}function Vm(w,L){typeof w.ref=="string"&&ws.current}function Bm(w,L){{var U=function(){Cs||(Cs=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",L))};U.isReactWarning=!0,Object.defineProperty(w,"key",{get:U,configurable:!0})}}function Wm(w,L){{var U=function(){Ss||(Ss=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",L))};U.isReactWarning=!0,Object.defineProperty(w,"ref",{get:U,configurable:!0})}}var Gm=function(w,L,U,oe,ue,fe,de){var ce={$$typeof:t,type:w,key:L,ref:U,props:de,_owner:fe};return ce._store={},Object.defineProperty(ce._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ce,"_self",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.defineProperty(ce,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.freeze&&(Object.freeze(ce.props),Object.freeze(ce)),ce};function zm(w,L,U,oe,ue){{var fe,de={},ce=null,Re=null;U!==void 0&&(ys(U),ce=""+U),Fm(L)&&(ys(L.key),ce=""+L.key),Lm(L)&&(Re=L.ref,Vm(L,ue));for(fe in L)Me.call(L,fe)&&!$m.hasOwnProperty(fe)&&(de[fe]=L[fe]);if(w&&w.defaultProps){var ve=w.defaultProps;for(fe in ve)de[fe]===void 0&&(de[fe]=ve[fe])}if(ce||Re){var he=typeof w=="function"?w.displayName||w.name||"Unknown":w;ce&&Bm(de,he),Re&&Wm(de,he)}return Gm(w,ce,Re,ue,oe,ws.current,de)}}var lo=y.ReactCurrentOwner,Es=y.ReactDebugCurrentFrame;function $t(w){if(w){var L=w._owner,U=Ge(w.type,w._source,L?L.type:null);Es.setExtraStackFrame(U)}else Es.setExtraStackFrame(null)}var co;co=!1;function uo(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function Rs(){{if(lo.current){var w=ee(lo.current.type);if(w)return`
17
+ */var pi;function Mg(){return pi||(pi=1,process.env.NODE_ENV!=="production"&&(function(){var e=E,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h=Symbol.iterator,v="@@iterator";function x(C){if(C===null||typeof C!="object")return null;var V=h&&C[h]||C[v];return typeof V=="function"?V:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(C){{for(var V=arguments.length,ee=new Array(V>1?V-1:0),se=1;se<V;se++)ee[se-1]=arguments[se];w("error",C,ee)}}function w(C,V,ee){{var se=b.ReactDebugCurrentFrame,pe=se.getStackAddendum();pe!==""&&(V+="%s",ee=ee.concat([pe]));var me=ee.map(function(de){return String(de)});me.unshift("Warning: "+V),Function.prototype.apply.call(console[C],console,me)}}var S=!1,R=!1,P=!1,k=!1,N=!1,D;D=Symbol.for("react.module.reference");function B(C){return!!(typeof C=="string"||typeof C=="function"||C===n||C===a||N||C===o||C===u||C===f||k||C===g||S||R||P||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===p||C.$$typeof===s||C.$$typeof===i||C.$$typeof===c||C.$$typeof===D||C.getModuleId!==void 0))}function W(C,V,ee){var se=C.displayName;if(se)return se;var pe=V.displayName||V.name||"";return pe!==""?ee+"("+pe+")":ee}function Z(C){return C.displayName||"Context"}function J(C){if(C==null)return null;if(typeof C.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof C=="object")switch(C.$$typeof){case i:var V=C;return Z(V)+".Consumer";case s:var ee=C;return Z(ee._context)+".Provider";case c:return W(C,C.render,"ForwardRef");case p:var se=C.displayName||null;return se!==null?se:J(C.type)||"Memo";case m:{var pe=C,me=pe._payload,de=pe._init;try{return J(de(me))}catch{return null}}}return null}var z=Object.assign,M=0,_,$,I,O,H,Q,A;function q(){}q.__reactDisabledLog=!0;function X(){{if(M===0){_=console.log,$=console.info,I=console.warn,O=console.error,H=console.group,Q=console.groupCollapsed,A=console.groupEnd;var C={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:C,log:C,warn:C,error:C,group:C,groupCollapsed:C,groupEnd:C})}M++}}function Y(){{if(M--,M===0){var C={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},C,{value:_}),info:z({},C,{value:$}),warn:z({},C,{value:I}),error:z({},C,{value:O}),group:z({},C,{value:H}),groupCollapsed:z({},C,{value:Q}),groupEnd:z({},C,{value:A})})}M<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var L=b.ReactCurrentDispatcher,j;function G(C,V,ee){{if(j===void 0)try{throw Error()}catch(pe){var se=pe.stack.trim().match(/\n( *(at )?)/);j=se&&se[1]||""}return`
18
+ `+j+C}}var U=!1,ne;{var te=typeof WeakMap=="function"?WeakMap:Map;ne=new te}function F(C,V){if(!C||U)return"";{var ee=ne.get(C);if(ee!==void 0)return ee}var se;U=!0;var pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var me;me=L.current,L.current=null,X();try{if(V){var de=function(){throw Error()};if(Object.defineProperty(de.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(de,[])}catch(_e){se=_e}Reflect.construct(C,[],de)}else{try{de.call()}catch(_e){se=_e}C.call(de.prototype)}}else{try{throw Error()}catch(_e){se=_e}C()}}catch(_e){if(_e&&se&&typeof _e.stack=="string"){for(var ue=_e.stack.split(`
19
+ `),Ie=se.stack.split(`
20
+ `),ye=ue.length-1,we=Ie.length-1;ye>=1&&we>=0&&ue[ye]!==Ie[we];)we--;for(;ye>=1&&we>=0;ye--,we--)if(ue[ye]!==Ie[we]){if(ye!==1||we!==1)do if(ye--,we--,we<0||ue[ye]!==Ie[we]){var Fe=`
21
+ `+ue[ye].replace(" at new "," at ");return C.displayName&&Fe.includes("<anonymous>")&&(Fe=Fe.replace("<anonymous>",C.displayName)),typeof C=="function"&&ne.set(C,Fe),Fe}while(ye>=1&&we>=0);break}}}finally{U=!1,L.current=me,Y(),Error.prepareStackTrace=pe}var Zt=C?C.displayName||C.name:"",Tt=Zt?G(Zt):"";return typeof C=="function"&&ne.set(C,Tt),Tt}function ie(C,V,ee){return F(C,!1)}function fe(C){var V=C.prototype;return!!(V&&V.isReactComponent)}function ge(C,V,ee){if(C==null)return"";if(typeof C=="function")return F(C,fe(C));if(typeof C=="string")return G(C);switch(C){case u:return G("Suspense");case f:return G("SuspenseList")}if(typeof C=="object")switch(C.$$typeof){case c:return ie(C.render);case p:return ge(C.type,V,ee);case m:{var se=C,pe=se._payload,me=se._init;try{return ge(me(pe),V,ee)}catch{}}}return""}var xe=Object.prototype.hasOwnProperty,Ee={},Le=b.ReactDebugCurrentFrame;function Re(C){if(C){var V=C._owner,ee=ge(C.type,C._source,V?V.type:null);Le.setExtraStackFrame(ee)}else Le.setExtraStackFrame(null)}function ot(C,V,ee,se,pe){{var me=Function.call.bind(xe);for(var de in C)if(me(C,de)){var ue=void 0;try{if(typeof C[de]!="function"){var Ie=Error((se||"React class")+": "+ee+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof C[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}ue=C[de](V,de,se,ee,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ye){ue=ye}ue&&!(ue instanceof Error)&&(Re(pe),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",se||"React class",ee,de,typeof ue),Re(null)),ue instanceof Error&&!(ue.message in Ee)&&(Ee[ue.message]=!0,Re(pe),y("Failed %s type: %s",ee,ue.message),Re(null))}}}var Pt=Array.isArray;function jt(C){return Pt(C)}function yr(C){{var V=typeof Symbol=="function"&&Symbol.toStringTag,ee=V&&C[Symbol.toStringTag]||C.constructor.name||"Object";return ee}}function bn(C){try{return wr(C),!1}catch{return!0}}function wr(C){return""+C}function yn(C){if(bn(C))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yr(C)),wr(C)}var Cr=b.ReactCurrentOwner,Vo={key:!0,ref:!0,__self:!0,__source:!0},Ut,at;function Sr(C){if(xe.call(C,"ref")){var V=Object.getOwnPropertyDescriptor(C,"ref").get;if(V&&V.isReactWarning)return!1}return C.ref!==void 0}function Er(C){if(xe.call(C,"key")){var V=Object.getOwnPropertyDescriptor(C,"key").get;if(V&&V.isReactWarning)return!1}return C.key!==void 0}function Kt(C,V){typeof C.ref=="string"&&Cr.current}function Bo(C,V){{var ee=function(){Ut||(Ut=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};ee.isReactWarning=!0,Object.defineProperty(C,"key",{get:ee,configurable:!0})}}function Go(C,V){{var ee=function(){at||(at=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};ee.isReactWarning=!0,Object.defineProperty(C,"ref",{get:ee,configurable:!0})}}var Wo=function(C,V,ee,se,pe,me,de){var ue={$$typeof:t,type:C,key:V,ref:ee,props:de,_owner:me};return ue._store={},Object.defineProperty(ue._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ue,"_self",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.defineProperty(ue,"_source",{configurable:!1,enumerable:!1,writable:!1,value:pe}),Object.freeze&&(Object.freeze(ue.props),Object.freeze(ue)),ue};function zo(C,V,ee,se,pe){{var me,de={},ue=null,Ie=null;ee!==void 0&&(yn(ee),ue=""+ee),Er(V)&&(yn(V.key),ue=""+V.key),Sr(V)&&(Ie=V.ref,Kt(V,pe));for(me in V)xe.call(V,me)&&!Vo.hasOwnProperty(me)&&(de[me]=V[me]);if(C&&C.defaultProps){var ye=C.defaultProps;for(me in ye)de[me]===void 0&&(de[me]=ye[me])}if(ue||Ie){var we=typeof C=="function"?C.displayName||C.name||"Unknown":C;ue&&Bo(de,we),Ie&&Go(de,we)}return Wo(C,ue,Ie,pe,se,Cr.current,de)}}var Rr=b.ReactCurrentOwner,kr=b.ReactDebugCurrentFrame;function dt(C){if(C){var V=C._owner,ee=ge(C.type,C._source,V?V.type:null);kr.setExtraStackFrame(ee)}else kr.setExtraStackFrame(null)}var Yt;Yt=!1;function Xt(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function Nr(){{if(Rr.current){var C=J(Rr.current.type);if(C)return`
22
22
 
23
- Check the render method of \``+w+"`."}return""}}function qm(w){return""}var ks={};function Hm(w){{var L=Rs();if(!L){var U=typeof w=="string"?w:w.displayName||w.name;U&&(L=`
23
+ Check the render method of \``+C+"`."}return""}}function qo(C){return""}var Pr={};function wn(C){{var V=Nr();if(!V){var ee=typeof C=="string"?C:C.displayName||C.name;ee&&(V=`
24
24
 
25
- Check the top-level render call using <`+U+">.")}return L}}function Ns(w,L){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var U=Hm(L);if(ks[U])return;ks[U]=!0;var oe="";w&&w._owner&&w._owner!==lo.current&&(oe=" It was passed a child from "+ee(w._owner.type)+"."),$t(w),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,oe),$t(null)}}function js(w,L){{if(typeof w!="object")return;if(io(w))for(var U=0;U<w.length;U++){var oe=w[U];uo(oe)&&Ns(oe,L)}else if(uo(w))w._store&&(w._store.validated=!0);else if(w){var ue=h(w);if(typeof ue=="function"&&ue!==w.entries)for(var fe=ue.call(w),de;!(de=fe.next()).done;)uo(de.value)&&Ns(de.value,L)}}}function Um(w){{var L=w.type;if(L==null||typeof L=="string")return;var U;if(typeof L=="function")U=L.propTypes;else if(typeof L=="object"&&(L.$$typeof===d||L.$$typeof===p))U=L.propTypes;else return;if(U){var oe=ee(L);Im(U,w.props,"prop",oe,w)}else if(L.PropTypes!==void 0&&!co){co=!0;var ue=ee(L);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")}typeof L.getDefaultProps=="function"&&!L.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Km(w){{for(var L=Object.keys(w.props),U=0;U<L.length;U++){var oe=L[U];if(oe!=="children"&&oe!=="key"){$t(w),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",oe),$t(null);break}}w.ref!==null&&($t(w),b("Invalid attribute `ref` supplied to `React.Fragment`."),$t(null))}}var Ps={};function Ts(w,L,U,oe,ue,fe){{var de=q(w);if(!de){var ce="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(ce+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Re=qm();Re?ce+=Re:ce+=Rs();var ve;w===null?ve="null":io(w)?ve="array":w!==void 0&&w.$$typeof===t?(ve="<"+(ee(w.type)||"Unknown")+" />",ce=" Did you accidentally export a JSX literal instead of a component?"):ve=typeof w,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ve,ce)}var he=zm(w,L,U,ue,fe);if(he==null)return he;if(de){var Ie=L.children;if(Ie!==void 0)if(oe)if(io(Ie)){for(var Lt=0;Lt<Ie.length;Lt++)js(Ie[Lt],w);Object.freeze&&Object.freeze(Ie)}else b("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 js(Ie,w)}if(Me.call(L,"key")){var Ct=ee(w),Ne=Object.keys(L).filter(function(eg){return eg!=="key"}),fo=Ne.length>0?"{key: someKey, "+Ne.join(": ..., ")+": ...}":"{key: someKey}";if(!Ps[Ct+fo]){var Qm=Ne.length>0?"{"+Ne.join(": ..., ")+": ...}":"{}";b(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+ee+">.")}return V}}function Cn(C,V){{if(!C._store||C._store.validated||C.key!=null)return;C._store.validated=!0;var ee=wn(V);if(Pr[ee])return;Pr[ee]=!0;var se="";C&&C._owner&&C._owner!==Rr.current&&(se=" It was passed a child from "+J(C._owner.type)+"."),dt(C),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ee,se),dt(null)}}function ci(C,V){{if(typeof C!="object")return;if(jt(C))for(var ee=0;ee<C.length;ee++){var se=C[ee];Xt(se)&&Cn(se,V)}else if(Xt(C))C._store&&(C._store.validated=!0);else if(C){var pe=x(C);if(typeof pe=="function"&&pe!==C.entries)for(var me=pe.call(C),de;!(de=me.next()).done;)Xt(de.value)&&Cn(de.value,V)}}}function Cg(C){{var V=C.type;if(V==null||typeof V=="string")return;var ee;if(typeof V=="function")ee=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===c||V.$$typeof===p))ee=V.propTypes;else return;if(ee){var se=J(V);ot(ee,C.props,"prop",se,C)}else if(V.PropTypes!==void 0&&!Yt){Yt=!0;var pe=J(V);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",pe||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Sg(C){{for(var V=Object.keys(C.props),ee=0;ee<V.length;ee++){var se=V[ee];if(se!=="children"&&se!=="key"){dt(C),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",se),dt(null);break}}C.ref!==null&&(dt(C),y("Invalid attribute `ref` supplied to `React.Fragment`."),dt(null))}}var ui={};function di(C,V,ee,se,pe,me){{var de=B(C);if(!de){var ue="";(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(ue+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=qo();Ie?ue+=Ie:ue+=Nr();var ye;C===null?ye="null":jt(C)?ye="array":C!==void 0&&C.$$typeof===t?(ye="<"+(J(C.type)||"Unknown")+" />",ue=" Did you accidentally export a JSX literal instead of a component?"):ye=typeof C,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ye,ue)}var we=zo(C,V,ee,pe,me);if(we==null)return we;if(de){var Fe=V.children;if(Fe!==void 0)if(se)if(jt(Fe)){for(var Zt=0;Zt<Fe.length;Zt++)ci(Fe[Zt],C);Object.freeze&&Object.freeze(Fe)}else y("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 ci(Fe,C)}if(xe.call(V,"key")){var Tt=J(C),_e=Object.keys(V).filter(function(jg){return jg!=="key"}),Ho=_e.length>0?"{key: someKey, "+_e.join(": ..., ")+": ...}":"{key: someKey}";if(!ui[Tt+Ho]){var Pg=_e.length>0?"{"+_e.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,fo,Ct,Qm,Ct),Ps[Ct+fo]=!0}}return w===n?Km(he):Um(he),he}}function Ym(w,L,U){return Ts(w,L,U,!0)}function Xm(w,L,U){return Ts(w,L,U,!1)}var Zm=Xm,Jm=Ym;dr.Fragment=n,dr.jsx=Zm,dr.jsxs=Jm})()),dr}var Is;function ig(){return Is||(Is=1,process.env.NODE_ENV==="production"?qr.exports=ag():qr.exports=sg()),qr.exports}var i=ig();function el(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=el(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function tl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=el(e))&&(n&&(n+=" "),n+=t);return n}const Os=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ms=tl,_t=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Ms(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const f=r==null?void 0:r[u],p=a==null?void 0:a[u];if(f===null)return null;const m=Os(f)||Os(p);return o[u][m]}),l=r&&Object.entries(r).reduce((u,f)=>{let[p,m]=f;return m===void 0||(u[p]=m),u},{}),d=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:m,...g}=f;return Object.entries(g).every(x=>{let[v,h]=x;return Array.isArray(h)?h.includes({...a,...l}[v]):{...a,...l}[v]===h})?[...u,p,m]:u},[]);return Ms(e,s,d,r==null?void 0:r.class,r==null?void 0:r.className)},lg=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},cg=(e,t)=>({classGroupId:e,validator:t}),rl=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),ln="-",Ds=[],dg="arbitrary..",ug=e=>{const t=pg(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return fg(s);const l=s.split(ln),d=l[0]===""&&l.length>1?1:0;return nl(l,d,t)},getConflictingClassGroupIds:(s,l)=>{if(l){const d=n[s],u=r[s];return d?u?lg(u,d):d:u||Ds}return r[s]||Ds}}},nl=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],a=r.nextPart.get(o);if(a){const u=nl(e,t+1,a);if(u)return u}const s=r.validators;if(s===null)return;const l=t===0?e.join(ln):e.slice(t).join(ln),d=s.length;for(let u=0;u<d;u++){const f=s[u];if(f.validator(l))return f.classGroupId}},fg=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?dg+n:void 0})(),pg=e=>{const{theme:t,classGroups:r}=e;return mg(r,t)},mg=(e,t)=>{const r=rl();for(const n in e){const o=e[n];aa(o,r,n,t)}return r},aa=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const s=e[a];gg(s,t,r,n)}},gg=(e,t,r,n)=>{if(typeof e=="string"){vg(e,t,r);return}if(typeof e=="function"){hg(e,t,r,n);return}xg(e,t,r,n)},vg=(e,t,r)=>{const n=e===""?t:ol(t,e);n.classGroupId=r},hg=(e,t,r,n)=>{if(bg(e)){aa(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(cg(r,e))},xg=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let s=0;s<a;s++){const[l,d]=o[s];aa(d,ol(t,l),r,n)}},ol=(e,t)=>{let r=e;const n=t.split(ln),o=n.length;for(let a=0;a<o;a++){const s=n[a];let l=r.nextPart.get(s);l||(l=rl(),r.nextPart.set(s,l)),r=l}return r},bg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,yg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(a,s)=>{r[a]=s,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let s=r[a];if(s!==void 0)return s;if((s=n[a])!==void 0)return o(a,s),s},set(a,s){a in r?r[a]=s:o(a,s)}}},Oo="!",$s=":",wg=[],Ls=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Cg=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,l=0,d=0,u;const f=o.length;for(let v=0;v<f;v++){const h=o[v];if(s===0&&l===0){if(h===$s){a.push(o.slice(d,v)),d=v+1;continue}if(h==="/"){u=v;continue}}h==="["?s++:h==="]"?s--:h==="("?l++:h===")"&&l--}const p=a.length===0?o:o.slice(d);let m=p,g=!1;p.endsWith(Oo)?(m=p.slice(0,-1),g=!0):p.startsWith(Oo)&&(m=p.slice(1),g=!0);const x=u&&u>d?u-d:void 0;return Ls(a,g,m,x)};if(t){const o=t+$s,a=n;n=s=>s.startsWith(o)?a(s.slice(o.length)):Ls(wg,!1,s,void 0,!0)}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},Sg=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let a=0;a<r.length;a++){const s=r[a],l=s[0]==="[",d=t.has(s);l||d?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(s)):o.push(s)}return o.length>0&&(o.sort(),n.push(...o)),n}},Eg=e=>({cache:yg(e.cacheSize),parseClassName:Cg(e),sortModifiers:Sg(e),...ug(e)}),Rg=/\s+/,kg=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],l=e.trim().split(Rg);let d="";for(let u=l.length-1;u>=0;u-=1){const f=l[u],{isExternal:p,modifiers:m,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:v}=r(f);if(p){d=f+(d.length>0?" "+d:d);continue}let h=!!v,y=n(h?x.substring(0,v):x);if(!y){if(!h){d=f+(d.length>0?" "+d:d);continue}if(y=n(x),!y){d=f+(d.length>0?" "+d:d);continue}h=!1}const b=m.length===0?"":m.length===1?m[0]:a(m).join(":"),C=g?b+Oo:b,E=C+y;if(s.indexOf(E)>-1)continue;s.push(E);const R=o(y,h);for(let T=0;T<R.length;++T){const P=R[T];s.push(C+P)}d=f+(d.length>0?" "+d:d)}return d},Ng=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=al(r))&&(o&&(o+=" "),o+=n);return o},al=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=al(e[n]))&&(r&&(r+=" "),r+=t);return r},jg=(e,...t)=>{let r,n,o,a;const s=d=>{const u=t.reduce((f,p)=>p(f),e());return r=Eg(u),n=r.cache.get,o=r.cache.set,a=l,l(d)},l=d=>{const u=n(d);if(u)return u;const f=kg(d,r);return o(d,f),f};return a=s,(...d)=>a(Ng(...d))},Pg=[],xe=e=>{const t=r=>r[e]||Pg;return t.isThemeGetter=!0,t},sl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,il=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Tg=/^\d+\/\d+$/,_g=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ag=/\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$/,Ig=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Og=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Mg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ft=e=>Tg.test(e),ie=e=>!!e&&!Number.isNaN(Number(e)),st=e=>!!e&&Number.isInteger(Number(e)),po=e=>e.endsWith("%")&&ie(e.slice(0,-1)),Qe=e=>_g.test(e),Dg=()=>!0,$g=e=>Ag.test(e)&&!Ig.test(e),ll=()=>!1,Lg=e=>Og.test(e),Fg=e=>Mg.test(e),Vg=e=>!Z(e)&&!J(e),Bg=e=>er(e,ul,ll),Z=e=>sl.test(e),St=e=>er(e,fl,$g),mo=e=>er(e,Hg,ie),Fs=e=>er(e,cl,ll),Wg=e=>er(e,dl,Fg),Hr=e=>er(e,pl,Lg),J=e=>il.test(e),ur=e=>tr(e,fl),Gg=e=>tr(e,Ug),Vs=e=>tr(e,cl),zg=e=>tr(e,ul),qg=e=>tr(e,dl),Ur=e=>tr(e,pl,!0),er=(e,t,r)=>{const n=sl.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},tr=(e,t,r=!1)=>{const n=il.exec(e);return n?n[1]?t(n[1]):r:!1},cl=e=>e==="position"||e==="percentage",dl=e=>e==="image"||e==="url",ul=e=>e==="length"||e==="size"||e==="bg-size",fl=e=>e==="length",Hg=e=>e==="number",Ug=e=>e==="family-name",pl=e=>e==="shadow",Kg=()=>{const e=xe("color"),t=xe("font"),r=xe("text"),n=xe("font-weight"),o=xe("tracking"),a=xe("leading"),s=xe("breakpoint"),l=xe("container"),d=xe("spacing"),u=xe("radius"),f=xe("shadow"),p=xe("inset-shadow"),m=xe("text-shadow"),g=xe("drop-shadow"),x=xe("blur"),v=xe("perspective"),h=xe("aspect"),y=xe("ease"),b=xe("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...E(),J,Z],T=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],j=()=>[J,Z,d],F=()=>[Ft,"full","auto",...j()],q=()=>[st,"none","subgrid",J,Z],re=()=>["auto",{span:["full",st,J,Z]},st,J,Z],te=()=>[st,"auto",J,Z],ee=()=>["auto","min","max","fr",J,Z],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...j()],$=()=>[Ft,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],N=()=>[e,J,Z],M=()=>[...E(),Vs,Fs,{position:[J,Z]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",zg,Bg,{size:[J,Z]}],A=()=>[po,ur,St],z=()=>["","none","full",u,J,Z],Y=()=>["",ie,ur,St],B=()=>["solid","dashed","dotted","double"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>[ie,po,Vs,Fs],H=()=>["","none",x,J,Z],X=()=>["none",ie,J,Z],ne=()=>["none",ie,J,Z],le=()=>[ie,J,Z],se=()=>[Ft,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qe],breakpoint:[Qe],color:[Dg],container:[Qe],"drop-shadow":[Qe],ease:["in","out","in-out"],font:[Vg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qe],shadow:[Qe],spacing:["px",ie],text:[Qe],"text-shadow":[Qe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ft,Z,J,h]}],container:["container"],columns:[{columns:[ie,Z,J,l]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[st,"auto",J,Z]}],basis:[{basis:[Ft,"full","auto",l,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ie,Ft,"auto","initial","none",Z]}],grow:[{grow:["",ie,J,Z]}],shrink:[{shrink:["",ie,J,Z]}],order:[{order:[st,"first","last","none",J,Z]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[l,"screen",...$()]}],"min-w":[{"min-w":[l,"screen","none",...$()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,ur,St]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,J,mo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",po,Z]}],"font-family":[{font:[Gg,Z,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,J,Z]}],"line-clamp":[{"line-clamp":[ie,"none",J,mo]}],leading:[{leading:[a,...j()]}],"list-image":[{"list-image":["none",J,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",J,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:[ie,"from-font","auto",J,St]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[ie,"auto",J,Z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J,Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},st,J,Z],radial:["",J,Z],conic:[st,J,Z]},qg,Wg]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...B(),"hidden","none"]}],"divide-style":[{divide:[...B(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...B(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ie,J,Z]}],"outline-w":[{outline:["",ie,ur,St]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",f,Ur,Hr]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",p,Ur,Hr]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[ie,St]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",m,Ur,Hr]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[ie,J,Z]}],"mix-blend":[{"mix-blend":[...O(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":O()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[J,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",J,Z]}],filter:[{filter:["","none",J,Z]}],blur:[{blur:H()}],brightness:[{brightness:[ie,J,Z]}],contrast:[{contrast:[ie,J,Z]}],"drop-shadow":[{"drop-shadow":["","none",g,Ur,Hr]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",ie,J,Z]}],"hue-rotate":[{"hue-rotate":[ie,J,Z]}],invert:[{invert:["",ie,J,Z]}],saturate:[{saturate:[ie,J,Z]}],sepia:[{sepia:["",ie,J,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",J,Z]}],"backdrop-blur":[{"backdrop-blur":H()}],"backdrop-brightness":[{"backdrop-brightness":[ie,J,Z]}],"backdrop-contrast":[{"backdrop-contrast":[ie,J,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ie,J,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ie,J,Z]}],"backdrop-invert":[{"backdrop-invert":["",ie,J,Z]}],"backdrop-opacity":[{"backdrop-opacity":[ie,J,Z]}],"backdrop-saturate":[{"backdrop-saturate":[ie,J,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",ie,J,Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",J,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ie,"initial",J,Z]}],ease:[{ease:["linear","initial",y,J,Z]}],delay:[{delay:[ie,J,Z]}],animate:[{animate:["none",b,J,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,J,Z]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[J,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J,Z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J,Z]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[ie,ur,St,mo]}],stroke:[{stroke:["none",...N()]}],"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-x","border-w-y","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-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Yg=jg(Kg);function k(...e){return Yg(tl(e))}function ml(e,t,r){let n="";return typeof e=="object"&&(e.base&&(n+=e.base),Object.keys(t).length&&Object.keys(t).forEach(o=>{o==="className"&&t[o]?(n=n.trim(),n+=` ${t[o]}`):t[o]&&e.hasOwnProperty(o)&&(r&&console.log("styles",o,t[o],e[o]),n=n.trim(),n+=` ${e[o]}`)})),r&&console.log("final.class",n.trim()),n.trim()}/**
30
+ <%s key={someKey} {...props} />`,Ho,Tt,Pg,Tt),ui[Tt+Ho]=!0}}return C===n?Sg(we):Cg(we),we}}function Eg(C,V,ee){return di(C,V,ee,!0)}function Rg(C,V,ee){return di(C,V,ee,!1)}var kg=Rg,Ng=Eg;Tr.Fragment=n,Tr.jsx=kg,Tr.jsxs=Ng})()),Tr}var mi;function Dg(){return mi||(mi=1,process.env.NODE_ENV==="production"?Sn.exports=Og():Sn.exports=Mg()),Sn.exports}var l=Dg();function Fl(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Fl(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Vl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Fl(e))&&(n&&(n+=" "),n+=t);return n}const gi=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,vi=Vl,Bt=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return vi(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(u=>{const f=r==null?void 0:r[u],p=a==null?void 0:a[u];if(f===null)return null;const m=gi(f)||gi(p);return o[u][m]}),i=r&&Object.entries(r).reduce((u,f)=>{let[p,m]=f;return m===void 0||(u[p]=m),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:m,...g}=f;return Object.entries(g).every(h=>{let[v,x]=h;return Array.isArray(x)?x.includes({...a,...i}[v]):{...a,...i}[v]===x})?[...u,p,m]:u},[]);return vi(e,s,c,r==null?void 0:r.class,r==null?void 0:r.className)},$g=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},Lg=(e,t)=>({classGroupId:e,validator:t}),Bl=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Fn="-",hi=[],Fg="arbitrary..",Vg=e=>{const t=Gg(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Bg(s);const i=s.split(Fn),c=i[0]===""&&i.length>1?1:0;return Gl(i,c,t)},getConflictingClassGroupIds:(s,i)=>{if(i){const c=n[s],u=r[s];return c?u?$g(u,c):c:u||hi}return r[s]||hi}}},Gl=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],a=r.nextPart.get(o);if(a){const u=Gl(e,t+1,a);if(u)return u}const s=r.validators;if(s===null)return;const i=t===0?e.join(Fn):e.slice(t).join(Fn),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(f.validator(i))return f.classGroupId}},Bg=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Fg+n:void 0})(),Gg=e=>{const{theme:t,classGroups:r}=e;return Wg(r,t)},Wg=(e,t)=>{const r=Bl();for(const n in e){const o=e[n];Ba(o,r,n,t)}return r},Ba=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const s=e[a];zg(s,t,r,n)}},zg=(e,t,r,n)=>{if(typeof e=="string"){qg(e,t,r);return}if(typeof e=="function"){Hg(e,t,r,n);return}Ug(e,t,r,n)},qg=(e,t,r)=>{const n=e===""?t:Wl(t,e);n.classGroupId=r},Hg=(e,t,r,n)=>{if(Kg(e)){Ba(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Lg(r,e))},Ug=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let s=0;s<a;s++){const[i,c]=o[s];Ba(c,Wl(t,i),r,n)}},Wl=(e,t)=>{let r=e;const n=t.split(Fn),o=n.length;for(let a=0;a<o;a++){const s=n[a];let i=r.nextPart.get(s);i||(i=Bl(),r.nextPart.set(s,i)),r=i}return r},Kg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Yg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(a,s)=>{r[a]=s,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let s=r[a];if(s!==void 0)return s;if((s=n[a])!==void 0)return o(a,s),s},set(a,s){a in r?r[a]=s:o(a,s)}}},ma="!",xi=":",Xg=[],bi=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Zg=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let s=0,i=0,c=0,u;const f=o.length;for(let v=0;v<f;v++){const x=o[v];if(s===0&&i===0){if(x===xi){a.push(o.slice(c,v)),c=v+1;continue}if(x==="/"){u=v;continue}}x==="["?s++:x==="]"?s--:x==="("?i++:x===")"&&i--}const p=a.length===0?o:o.slice(c);let m=p,g=!1;p.endsWith(ma)?(m=p.slice(0,-1),g=!0):p.startsWith(ma)&&(m=p.slice(1),g=!0);const h=u&&u>c?u-c:void 0;return bi(a,g,m,h)};if(t){const o=t+xi,a=n;n=s=>s.startsWith(o)?a(s.slice(o.length)):bi(Xg,!1,s,void 0,!0)}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},Jg=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let a=0;a<r.length;a++){const s=r[a],i=s[0]==="[",c=t.has(s);i||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(s)):o.push(s)}return o.length>0&&(o.sort(),n.push(...o)),n}},Qg=e=>({cache:Yg(e.cacheSize),parseClassName:Zg(e),sortModifiers:Jg(e),...Vg(e)}),ev=/\s+/,tv=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,s=[],i=e.trim().split(ev);let c="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:p,modifiers:m,hasImportantModifier:g,baseClassName:h,maybePostfixModifierPosition:v}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let x=!!v,b=n(x?h.substring(0,v):h);if(!b){if(!x){c=f+(c.length>0?" "+c:c);continue}if(b=n(h),!b){c=f+(c.length>0?" "+c:c);continue}x=!1}const y=m.length===0?"":m.length===1?m[0]:a(m).join(":"),w=g?y+ma:y,S=w+b;if(s.indexOf(S)>-1)continue;s.push(S);const R=o(b,x);for(let P=0;P<R.length;++P){const k=R[P];s.push(w+k)}c=f+(c.length>0?" "+c:c)}return c},rv=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=zl(r))&&(o&&(o+=" "),o+=n);return o},zl=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=zl(e[n]))&&(r&&(r+=" "),r+=t);return r},nv=(e,...t)=>{let r,n,o,a;const s=c=>{const u=t.reduce((f,p)=>p(f),e());return r=Qg(u),n=r.cache.get,o=r.cache.set,a=i,i(c)},i=c=>{const u=n(c);if(u)return u;const f=tv(c,r);return o(c,f),f};return a=s,(...c)=>a(rv(...c))},ov=[],Se=e=>{const t=r=>r[e]||ov;return t.isThemeGetter=!0,t},ql=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,av=/^\d+\/\d+$/,sv=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iv=/\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$/,lv=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,cv=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Jt=e=>av.test(e),ce=e=>!!e&&!Number.isNaN(Number(e)),ft=e=>!!e&&Number.isInteger(Number(e)),Uo=e=>e.endsWith("%")&&ce(e.slice(0,-1)),st=e=>sv.test(e),dv=()=>!0,fv=e=>iv.test(e)&&!lv.test(e),Ul=()=>!1,pv=e=>cv.test(e),mv=e=>uv.test(e),gv=e=>!oe(e)&&!ae(e),vv=e=>fr(e,Xl,Ul),oe=e=>ql.test(e),It=e=>fr(e,Zl,fv),Ko=e=>fr(e,wv,ce),yi=e=>fr(e,Kl,Ul),hv=e=>fr(e,Yl,mv),En=e=>fr(e,Jl,pv),ae=e=>Hl.test(e),Ir=e=>pr(e,Zl),xv=e=>pr(e,Cv),wi=e=>pr(e,Kl),bv=e=>pr(e,Xl),yv=e=>pr(e,Yl),Rn=e=>pr(e,Jl,!0),fr=(e,t,r)=>{const n=ql.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},pr=(e,t,r=!1)=>{const n=Hl.exec(e);return n?n[1]?t(n[1]):r:!1},Kl=e=>e==="position"||e==="percentage",Yl=e=>e==="image"||e==="url",Xl=e=>e==="length"||e==="size"||e==="bg-size",Zl=e=>e==="length",wv=e=>e==="number",Cv=e=>e==="family-name",Jl=e=>e==="shadow",Sv=()=>{const e=Se("color"),t=Se("font"),r=Se("text"),n=Se("font-weight"),o=Se("tracking"),a=Se("leading"),s=Se("breakpoint"),i=Se("container"),c=Se("spacing"),u=Se("radius"),f=Se("shadow"),p=Se("inset-shadow"),m=Se("text-shadow"),g=Se("drop-shadow"),h=Se("blur"),v=Se("perspective"),x=Se("aspect"),b=Se("ease"),y=Se("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...S(),ae,oe],P=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],N=()=>[ae,oe,c],D=()=>[Jt,"full","auto",...N()],B=()=>[ft,"none","subgrid",ae,oe],W=()=>["auto",{span:["full",ft,ae,oe]},ft,ae,oe],Z=()=>[ft,"auto",ae,oe],J=()=>["auto","min","max","fr",ae,oe],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...N()],$=()=>[Jt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],I=()=>[e,ae,oe],O=()=>[...S(),wi,yi,{position:[ae,oe]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",bv,vv,{size:[ae,oe]}],A=()=>[Uo,Ir,It],q=()=>["","none","full",u,ae,oe],X=()=>["",ce,Ir,It],Y=()=>["solid","dashed","dotted","double"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>[ce,Uo,wi,yi],G=()=>["","none",h,ae,oe],U=()=>["none",ce,ae,oe],ne=()=>["none",ce,ae,oe],te=()=>[ce,ae,oe],F=()=>[Jt,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[st],breakpoint:[st],color:[dv],container:[st],"drop-shadow":[st],ease:["in","out","in-out"],font:[gv],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[st],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[st],shadow:[st],spacing:["px",ce],text:[st],"text-shadow":[st],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Jt,oe,ae,x]}],container:["container"],columns:[{columns:[ce,oe,ae,i]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[ft,"auto",ae,oe]}],basis:[{basis:[Jt,"full","auto",i,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ce,Jt,"auto","initial","none",oe]}],grow:[{grow:["",ce,ae,oe]}],shrink:[{shrink:["",ce,ae,oe]}],order:[{order:[ft,"first","last","none",ae,oe]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],w:[{w:[i,"screen",...$()]}],"min-w":[{"min-w":[i,"screen","none",...$()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,Ir,It]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ae,Ko]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Uo,oe]}],"font-family":[{font:[xv,oe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ae,oe]}],"line-clamp":[{"line-clamp":[ce,"none",ae,Ko]}],leading:[{leading:[a,...N()]}],"list-image":[{"list-image":["none",ae,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[ce,"from-font","auto",ae,It]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[ce,"auto",ae,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ae,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ft,ae,oe],radial:["",ae,oe],conic:[ft,ae,oe]},yv,hv]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ce,ae,oe]}],"outline-w":[{outline:["",ce,Ir,It]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",f,Rn,En]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",p,Rn,En]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[ce,It]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",m,Rn,En]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[ce,ae,oe]}],"mix-blend":[{"mix-blend":[...L(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":L()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[ae,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,oe]}],filter:[{filter:["","none",ae,oe]}],blur:[{blur:G()}],brightness:[{brightness:[ce,ae,oe]}],contrast:[{contrast:[ce,ae,oe]}],"drop-shadow":[{"drop-shadow":["","none",g,Rn,En]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",ce,ae,oe]}],"hue-rotate":[{"hue-rotate":[ce,ae,oe]}],invert:[{invert:["",ce,ae,oe]}],saturate:[{saturate:[ce,ae,oe]}],sepia:[{sepia:["",ce,ae,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,oe]}],"backdrop-blur":[{"backdrop-blur":G()}],"backdrop-brightness":[{"backdrop-brightness":[ce,ae,oe]}],"backdrop-contrast":[{"backdrop-contrast":[ce,ae,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ce,ae,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ce,ae,oe]}],"backdrop-invert":[{"backdrop-invert":["",ce,ae,oe]}],"backdrop-opacity":[{"backdrop-opacity":[ce,ae,oe]}],"backdrop-saturate":[{"backdrop-saturate":[ce,ae,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",ce,ae,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ce,"initial",ae,oe]}],ease:[{ease:["linear","initial",b,ae,oe]}],delay:[{delay:[ce,ae,oe]}],animate:[{animate:["none",y,ae,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,ae,oe]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:U()}],"rotate-x":[{"rotate-x":U()}],"rotate-y":[{"rotate-y":U()}],"rotate-z":[{"rotate-z":U()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[ae,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ae,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",ae,oe]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[ce,Ir,It,Ko]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","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-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ev=nv(Sv);function T(...e){return Ev(Vl(e))}function Ql(e,t,r){let n="";return typeof e=="object"&&(e.base&&(n+=e.base),Object.keys(t).length&&Object.keys(t).forEach(o=>{o==="className"&&t[o]?(n=n.trim(),n+=` ${t[o]}`):t[o]&&e.hasOwnProperty(o)&&(r&&console.log("styles",o,t[o],e[o]),n=n.trim(),n+=` ${e[o]}`)})),r&&console.log("final.class",n.trim()),n.trim()}/**
31
31
  * @license lucide-react v0.525.0 - ISC
32
32
  *
33
33
  * This source code is licensed under the ISC license.
34
34
  * See the LICENSE file in the root directory of this source tree.
35
- */const Xg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Zg=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Bs=e=>{const t=Zg(e);return t.charAt(0).toUpperCase()+t.slice(1)},gl=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Jg=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
35
+ */const Rv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kv=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Ci=e=>{const t=kv(e);return t.charAt(0).toUpperCase()+t.slice(1)},ec=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Nv=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
36
36
  * @license lucide-react v0.525.0 - ISC
37
37
  *
38
38
  * This source code is licensed under the ISC license.
39
39
  * See the LICENSE file in the root directory of this source tree.
40
- */var Qg={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"};/**
40
+ */var Pv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
41
41
  * @license lucide-react v0.525.0 - ISC
42
42
  *
43
43
  * This source code is licensed under the ISC license.
44
44
  * See the LICENSE file in the root directory of this source tree.
45
- */const ev=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...l},d)=>S.createElement("svg",{ref:d,...Qg,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:gl("lucide",o),...!a&&!Jg(l)&&{"aria-hidden":"true"},...l},[...s.map(([u,f])=>S.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
45
+ */const jv=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:s,...i},c)=>E.createElement("svg",{ref:c,...Pv,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:ec("lucide",o),...!a&&!Nv(i)&&{"aria-hidden":"true"},...i},[...s.map(([u,f])=>E.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
46
46
  * @license lucide-react v0.525.0 - ISC
47
47
  *
48
48
  * This source code is licensed under the ISC license.
49
49
  * See the LICENSE file in the root directory of this source tree.
50
- */const ge=(e,t)=>{const r=S.forwardRef(({className:n,...o},a)=>S.createElement(ev,{ref:a,iconNode:t,className:gl(`lucide-${Xg(Bs(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Bs(e),r};/**
50
+ */const Ce=(e,t)=>{const r=E.forwardRef(({className:n,...o},a)=>E.createElement(jv,{ref:a,iconNode:t,className:ec(`lucide-${Rv(Ci(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Ci(e),r};/**
51
51
  * @license lucide-react v0.525.0 - ISC
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const tv=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],rv=ge("arrow-up-down",tv);/**
55
+ */const Tv=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Iv=Ce("arrow-up-down",Tv);/**
56
56
  * @license lucide-react v0.525.0 - ISC
57
57
  *
58
58
  * This source code is licensed under the ISC license.
59
59
  * See the LICENSE file in the root directory of this source tree.
60
- */const nv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],rr=ge("check",nv);/**
60
+ */const Av=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],mr=Ce("check",Av);/**
61
61
  * @license lucide-react v0.525.0 - ISC
62
62
  *
63
63
  * This source code is licensed under the ISC license.
64
64
  * See the LICENSE file in the root directory of this source tree.
65
- */const ov=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],kn=ge("chevron-down",ov);/**
65
+ */const _v=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],oo=Ce("chevron-down",_v);/**
66
66
  * @license lucide-react v0.525.0 - ISC
67
67
  *
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
- */const av=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],sv=ge("chevron-left",av);/**
70
+ */const Ov=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],tc=Ce("chevron-left",Ov);/**
71
71
  * @license lucide-react v0.525.0 - ISC
72
72
  *
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
- */const iv=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vl=ge("chevron-right",iv);/**
75
+ */const Mv=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ga=Ce("chevron-right",Mv);/**
76
76
  * @license lucide-react v0.525.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
79
79
  * See the LICENSE file in the root directory of this source tree.
80
- */const lv=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],cv=ge("chevron-up",lv);/**
80
+ */const Dv=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],$v=Ce("chevron-up",Dv);/**
81
81
  * @license lucide-react v0.525.0 - ISC
82
82
  *
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
- */const dv=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],uv=ge("chevrons-up-down",dv);/**
85
+ */const Lv=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Fv=Ce("chevrons-up-down",Lv);/**
86
86
  * @license lucide-react v0.525.0 - ISC
87
87
  *
88
88
  * This source code is licensed under the ISC license.
89
89
  * See the LICENSE file in the root directory of this source tree.
90
- */const fv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],pv=ge("circle",fv);/**
90
+ */const Vv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Bv=Ce("circle",Vv);/**
91
91
  * @license lucide-react v0.525.0 - ISC
92
92
  *
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
- */const mv=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],gv=ge("corner-down-right",mv);/**
95
+ */const Gv=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],rc=Ce("ellipsis",Gv);/**
96
96
  * @license lucide-react v0.525.0 - ISC
97
97
  *
98
98
  * This source code is licensed under the ISC license.
99
99
  * See the LICENSE file in the root directory of this source tree.
100
- */const vv=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],hv=ge("dot",vv);/**
100
+ */const Wv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],zv=Ce("info",Wv);/**
101
101
  * @license lucide-react v0.525.0 - ISC
102
102
  *
103
103
  * This source code is licensed under the ISC license.
104
104
  * See the LICENSE file in the root directory of this source tree.
105
- */const xv=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],hl=ge("ellipsis",xv);/**
105
+ */const qv=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Hv=Ce("list-filter",qv);/**
106
106
  * @license lucide-react v0.525.0 - ISC
107
107
  *
108
108
  * This source code is licensed under the ISC license.
109
109
  * See the LICENSE file in the root directory of this source tree.
110
- */const bv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],yv=ge("info",bv);/**
110
+ */const Uv=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],nc=Ce("loader-circle",Uv);/**
111
111
  * @license lucide-react v0.525.0 - ISC
112
112
  *
113
113
  * This source code is licensed under the ISC license.
114
114
  * See the LICENSE file in the root directory of this source tree.
115
- */const wv=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Cv=ge("list-filter",wv);/**
115
+ */const Kv=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Yv=Ce("mail",Kv);/**
116
116
  * @license lucide-react v0.525.0 - ISC
117
117
  *
118
118
  * This source code is licensed under the ISC license.
119
119
  * See the LICENSE file in the root directory of this source tree.
120
- */const Sv=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],xl=ge("loader-circle",Sv);/**
120
+ */const Xv=[["path",{d:"M5 12h14",key:"1ays0h"}]],Zv=Ce("minus",Xv);/**
121
121
  * @license lucide-react v0.525.0 - ISC
122
122
  *
123
123
  * This source code is licensed under the ISC license.
124
124
  * See the LICENSE file in the root directory of this source tree.
125
- */const Ev=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Rv=ge("mail",Ev);/**
125
+ */const Jv=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],oc=Ce("search",Jv);/**
126
126
  * @license lucide-react v0.525.0 - ISC
127
127
  *
128
128
  * This source code is licensed under the ISC license.
129
129
  * See the LICENSE file in the root directory of this source tree.
130
- */const kv=[["path",{d:"M5 12h14",key:"1ays0h"}]],Nv=ge("minus",kv);/**
130
+ */const Qv=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],eh=Ce("tag",Qv);/**
131
131
  * @license lucide-react v0.525.0 - ISC
132
132
  *
133
133
  * This source code is licensed under the ISC license.
134
134
  * See the LICENSE file in the root directory of this source tree.
135
- */const jv=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],bl=ge("search",jv);/**
135
+ */const th=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],rh=Ce("trash-2",th);/**
136
136
  * @license lucide-react v0.525.0 - ISC
137
137
  *
138
138
  * This source code is licensed under the ISC license.
139
139
  * See the LICENSE file in the root directory of this source tree.
140
- */const Pv=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Tv=ge("tag",Pv);/**
140
+ */const nh=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],oh=Ce("trash",nh);/**
141
141
  * @license lucide-react v0.525.0 - ISC
142
142
  *
143
143
  * This source code is licensed under the ISC license.
144
144
  * See the LICENSE file in the root directory of this source tree.
145
- */const _v=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Av=ge("trash-2",_v);/**
145
+ */const ah=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],sh=Ce("triangle-alert",ah);/**
146
146
  * @license lucide-react v0.525.0 - ISC
147
147
  *
148
148
  * This source code is licensed under the ISC license.
149
149
  * See the LICENSE file in the root directory of this source tree.
150
- */const Iv=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],Ov=ge("trash",Iv);/**
151
- * @license lucide-react v0.525.0 - ISC
152
- *
153
- * This source code is licensed under the ISC license.
154
- * See the LICENSE file in the root directory of this source tree.
155
- */const Mv=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Dv=ge("triangle-alert",Mv);/**
156
- * @license lucide-react v0.525.0 - ISC
157
- *
158
- * This source code is licensed under the ISC license.
159
- * See the LICENSE file in the root directory of this source tree.
160
- */const $v=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Nn=ge("x",$v),yl=_t("qodo qodo-button inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none cursor-pointer",{variants:{variant:{default:"bg-[var(--fill-action-emphasis-idle)] text-[var(--text-action-on-emphasis-idle)] hover:bg-[var(--fill-action-emphasis-hover)] active:bg-[var(--fill-action-emphasis-active)] disabled:bg-[var(--fill-action-emphasis-disabled)]",secondary:"bg-[var(--fill-action-neutral-idle)] text-[var(--text-action-neutral-idle)] hover:bg-[var(--fill-action-neutral-hover)] active:bg-[var(--fill-action-neutral-active)] disabled:bg-[var(--fill-action-neutral-disabled)] disabled:text-[var(--text-action-neutral-disabled)]",outline:"border border-[var(--border-action-neutral-idle)] text-[var(--text-action-neutral-idle)] hover:bg-[var(--fill-action-neutral-hover)] active:bg-[var(--fill-action-neutral-active)] disabled:bg-none disabled:text-[var(--text-action-neutral-disabled)]",ghost:"text-[var(--text-action-neutral-idle)] hover:text-[var(--text-action-neutral-hover)] active:bg-[var(--fill-action-neutral-active)] disabled:bg-none disabled:text-[var(--text-action-neutral-disabled)]",link:"text-[var(--text-action-emphasis-idle)] hover:text-[var(--text-action-emphasis-hover)] active:bg-[var(--fill-action-emphasis-active)] disabled:bg-none disabled:text-[var(--text-action-emphasis-disabled)]",danger:"border border-[var(--border-action-negative-idle)] text-[var(--icon-action-negative-idle)] hover:bg-[var(--fill-action-negative-hover)] active:bg-[var(--fill-action-negative-active)] disabled:border-[var(--border-action-negative-disabled)] disabled:text-[var(--icon-action-negative-disabled)]"},size:{default:"h-10 px-4 py-2",xs:"h-fit rounded-md text-xs px-2 py-1.5",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10","icon-sm":"h-7 w-7 p-1.5 rounded-md","icon-md":"h-8 w-8 p-1.5 rounded-md","icon-lg":"h-[45px] w-[45px] p-3 rounded-md"}},defaultVariants:{variant:"default",size:"default"}}),tt=c.forwardRef(({className:e,variant:t,size:r,loading:n,children:o,disabled:a,...s},l)=>i.jsxs("button",{className:k(yl({variant:t,size:r,className:e})),ref:l,disabled:a||n,...s,children:[o,n&&i.jsx(xl,{className:"ml-2 w-4 h-4 animate-spin"})]}));tt.displayName="Button";const Lv=_t("qodo qodo-input file:text-foreground placeholder:text-purple-muted-400 selection:bg-primary selection:text-primary-foreground border-input-neutral-idle flex h-9 w-full min-w-0 rounded-md border bg-purple-muted-900 px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-none focus-visible:ring-none aria-invalid:border-red-600 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 disabled:cursor-not-allowed disabled:opacity-50 dark:disabled:bg-[var(--fill-input-neutral-idle)] disabled:border-purple-muted-500 disabled:text-purple-muted-400 read-only:cursor-default md:text-sm dark:border-input-neutral-idle dark:bg-purple-muted-900 dark:text-foreground dark:placeholder:text-[var(--color-purple-muted-400)] [:not(:placeholder-shown)]:bg-purple-muted-700 [&[readonly]]:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:border-0 [&[readonly]]:text-[var(--text-input-neutral-idle)] [&[readonly]]:hover:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:hover:border-[var(--border-input-neutral-idle)] [&[readonly]]:focus:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:focus:border-[var(--border-input-neutral-idle)] [&[readonly]]:focus-visible:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:focus-visible:border-[var(--border-input-neutral-idle)] [&[readonly][disabled]]:opacity-100 [&[readonly][disabled]]:cursor-default [&[readonly][disabled]]:bg-[var(--fill-input-neutral-idle)] [&[readonly][disabled]]:border-0 [&[readonly][disabled]]:text-[var(--text-input-neutral-idle)] [&[readonly][disabled]]:hover:bg-[var(--fill-input-neutral-idle)] [&[readonly][disabled]]:hover:border-0 [&[readonly][disabled]]:focus:bg-[var(--fill-input-neutral-idle)] [&[readonly][disabled]]:focus:border-0 [&[readonly][disabled]]:focus-visible:bg-[var(--fill-input-neutral-idle)] [&[readonly][disabled]]:focus-visible:border-0",{variants:{variant:{default:"dark:focus-visible:bg-fill-input-neutral-idle dark:hover:bg-purple-muted-700 border-purple-muted-600 hover:bg-fill-input-neutral-hover focus:bg-purple-muted-700 focus:border-purple-muted-600 focus-visible:ring-none focus-visible:ring-none [&[readonly]]:hover:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:hover:border-0 [&[readonly]]:focus:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:focus:border-0 [&[readonly]]:focus-visible:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:focus-visible:border-0",secondary:"bg-secondary border-secondary text-secondary-foreground placeholder:text-color-purple-muted-400 dark:bg-secondary dark:border-secondary dark:text-secondary-foreground dark:placeholder:text-purple-muted-400",accent:"bg-accent border-accent text-accent-foreground placeholder:text-color-purple-muted-400 dark:bg-accent dark:border-accent dark:text-accent-foreground dark:placeholder:text-purple-muted-400",success:"bg-success border-success text-success-foreground placeholder:text-success-foreground/70 dark:bg-success dark:border-success dark:text-success-foreground dark:placeholder:text-success-foreground/70",warning:"bg-warning border-warning text-warning-foreground placeholder:text-warning-foreground/70 dark:bg-warning dark:border-warning dark:text-warning-foreground dark:placeholder:text-warning-foreground/70",destructive:"border-destructive bg-purple-muted-700 text-[--var(text-input-neutral-idle)] placeholder:text-destructive-foreground/70 dark:border-destructive dark:placeholder:text-destructive-foreground/70",ghost:"bg-transparent border-purple-muted-600 focus:border-purple-muted-600 focus-visible:ring-none focus-visible:ring-none [:not(:placeholder-shown)]:bg-transparent"}},defaultVariants:{variant:"default"}}),Nr=c.forwardRef(({className:e,variant:t,type:r,error:n,...o},a)=>i.jsx("input",{ref:a,type:r,"data-slot":"input","aria-invalid":n||void 0,className:k(Lv({variant:t,className:e})),...o}));Nr.displayName="Input";function Ws(e,[t,r]){return Math.min(r,Math.max(t,e))}function V(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Fv(e,t){const r=c.createContext(t),n=a=>{const{children:s,...l}=a,d=c.useMemo(()=>l,Object.values(l));return i.jsx(r.Provider,{value:d,children:s})};n.displayName=e+"Provider";function o(a){const s=c.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function we(e,t=[]){let r=[];function n(a,s){const l=c.createContext(s),d=r.length;r=[...r,s];const u=p=>{var y;const{scope:m,children:g,...x}=p,v=((y=m==null?void 0:m[e])==null?void 0:y[d])||l,h=c.useMemo(()=>x,Object.values(x));return i.jsx(v.Provider,{value:h,children:g})};u.displayName=a+"Provider";function f(p,m){var v;const g=((v=m==null?void 0:m[e])==null?void 0:v[d])||l,x=c.useContext(g);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=r.map(s=>c.createContext(s));return function(l){const d=(l==null?void 0:l[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...l,[e]:d}}),[l,d])}};return o.scopeName=e,[n,Vv(o,...t)]}function Vv(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((l,{useScope:d,scopeName:u})=>{const p=d(a)[`__scope${u}`];return{...l,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function Gs(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ke(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Gs(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Gs(e[o],null)}}}}function ae(...e){return c.useCallback(ke(...e),e)}function zs(e){const t=Bv(e),r=c.forwardRef((n,o)=>{const{children:a,...s}=n,l=c.Children.toArray(a),d=l.find(Gv);if(d){const u=d.props.children,f=l.map(p=>p===d?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return i.jsx(t,{...s,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return i.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Bv(e){const t=c.forwardRef((r,n)=>{const{children:o,...a}=r;if(c.isValidElement(o)){const s=qv(o),l=zv(a,o.props);return o.type!==c.Fragment&&(l.ref=n?ke(n,s):s),c.cloneElement(o,l)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wv=Symbol("radix.slottable");function Gv(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Wv}function zv(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{const d=a(...l);return o(...l),d}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function qv(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function jn(e){const t=e+"CollectionProvider",[r,n]=we(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:h,children:y}=v,b=S.useRef(null),C=S.useRef(new Map).current;return i.jsx(o,{scope:h,itemMap:C,collectionRef:b,children:y})};s.displayName=t;const l=e+"CollectionSlot",d=zs(l),u=S.forwardRef((v,h)=>{const{scope:y,children:b}=v,C=a(l,y),E=ae(h,C.collectionRef);return i.jsx(d,{ref:E,children:b})});u.displayName=l;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=zs(f),g=S.forwardRef((v,h)=>{const{scope:y,children:b,...C}=v,E=S.useRef(null),R=ae(h,E),T=a(f,y);return S.useEffect(()=>(T.itemMap.set(E,{ref:E,...C}),()=>void T.itemMap.delete(E))),i.jsx(m,{[p]:"",ref:R,children:b})});g.displayName=f;function x(v){const h=a(e+"CollectionConsumer",v);return S.useCallback(()=>{const b=h.collectionRef.current;if(!b)return[];const C=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((T,P)=>C.indexOf(T.ref.current)-C.indexOf(P.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:s,Slot:u,ItemSlot:g},x,n]}var Hv=c.createContext(void 0);function At(e){const t=c.useContext(Hv);return e||t||"ltr"}function Uv(e){const t=Kv(e),r=c.forwardRef((n,o)=>{const{children:a,...s}=n,l=c.Children.toArray(a),d=l.find(Xv);if(d){const u=d.props.children,f=l.map(p=>p===d?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return i.jsx(t,{...s,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return i.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Kv(e){const t=c.forwardRef((r,n)=>{const{children:o,...a}=r;if(c.isValidElement(o)){const s=Jv(o),l=Zv(a,o.props);return o.type!==c.Fragment&&(l.ref=n?ke(n,s):s),c.cloneElement(o,l)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Yv=Symbol("radix.slottable");function Xv(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Yv}function Zv(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{const d=a(...l);return o(...l),d}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Jv(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Qv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=Qv.reduce((e,t)=>{const r=Uv(`Primitive.${t}`),n=c.forwardRef((o,a)=>{const{asChild:s,...l}=o,d=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(d,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function wl(e,t){e&&Rn.flushSync(()=>e.dispatchEvent(t))}function $e(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function eh(e,t=globalThis==null?void 0:globalThis.document){const r=$e(e);c.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var th="DismissableLayer",Mo="dismissableLayer.update",rh="dismissableLayer.pointerDownOutside",nh="dismissableLayer.focusOutside",qs,Cl=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nr=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...d}=e,u=c.useContext(Cl),[f,p]=c.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=c.useState({}),x=ae(t,P=>p(P)),v=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(h),b=f?v.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,R=sh(P=>{const j=P.target,F=[...u.branches].some(q=>q.contains(j));!E||F||(o==null||o(P),s==null||s(P),P.defaultPrevented||l==null||l())},m),T=ih(P=>{const j=P.target;[...u.branches].some(q=>q.contains(j))||(a==null||a(P),s==null||s(P),P.defaultPrevented||l==null||l())},m);return eh(P=>{b===u.layers.size-1&&(n==null||n(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},m),c.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(qs=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Hs(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=qs)}},[f,m,r,u]),c.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Hs())},[f,u]),c.useEffect(()=>{const P=()=>g({});return document.addEventListener(Mo,P),()=>document.removeEventListener(Mo,P)},[]),i.jsx(K.div,{...d,ref:x,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,T.onFocusCapture),onBlurCapture:V(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,R.onPointerDownCapture)})});nr.displayName=th;var oh="DismissableLayerBranch",ah=c.forwardRef((e,t)=>{const r=c.useContext(Cl),n=c.useRef(null),o=ae(t,n);return c.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),i.jsx(K.div,{...e,ref:o})});ah.displayName=oh;function sh(e,t=globalThis==null?void 0:globalThis.document){const r=$e(e),n=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const a=l=>{if(l.target&&!n.current){let d=function(){Sl(rh,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function ih(e,t=globalThis==null?void 0:globalThis.document){const r=$e(e),n=c.useRef(!1);return c.useEffect(()=>{const o=a=>{a.target&&!n.current&&Sl(nh,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Hs(){const e=new CustomEvent(Mo);document.dispatchEvent(e)}function Sl(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?wl(o,a):o.dispatchEvent(a)}var go=0;function Pn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Us()),document.body.insertAdjacentElement("beforeend",e[1]??Us()),go++,()=>{go===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),go--}},[])}function Us(){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 vo="focusScope.autoFocusOnMount",ho="focusScope.autoFocusOnUnmount",Ks={bubbles:!1,cancelable:!0},lh="FocusScope",jr=c.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[l,d]=c.useState(null),u=$e(o),f=$e(a),p=c.useRef(null),m=ae(t,v=>d(v)),g=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(n){let v=function(C){if(g.paused||!l)return;const E=C.target;l.contains(E)?p.current=E:it(p.current,{select:!0})},h=function(C){if(g.paused||!l)return;const E=C.relatedTarget;E!==null&&(l.contains(E)||it(p.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const R of C)R.removedNodes.length>0&&it(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",h);const b=new MutationObserver(y);return l&&b.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",h),b.disconnect()}}},[n,l,g.paused]),c.useEffect(()=>{if(l){Xs.add(g);const v=document.activeElement;if(!l.contains(v)){const y=new CustomEvent(vo,Ks);l.addEventListener(vo,u),l.dispatchEvent(y),y.defaultPrevented||(ch(mh(El(l)),{select:!0}),document.activeElement===v&&it(l))}return()=>{l.removeEventListener(vo,u),setTimeout(()=>{const y=new CustomEvent(ho,Ks);l.addEventListener(ho,f),l.dispatchEvent(y),y.defaultPrevented||it(v??document.body,{select:!0}),l.removeEventListener(ho,f),Xs.remove(g)},0)}}},[l,u,f,g]);const x=c.useCallback(v=>{if(!r&&!n||g.paused)return;const h=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(h&&y){const b=v.currentTarget,[C,E]=dh(b);C&&E?!v.shiftKey&&y===E?(v.preventDefault(),r&&it(C,{select:!0})):v.shiftKey&&y===C&&(v.preventDefault(),r&&it(E,{select:!0})):y===b&&v.preventDefault()}},[r,n,g.paused]);return i.jsx(K.div,{tabIndex:-1,...s,ref:m,onKeyDown:x})});jr.displayName=lh;function ch(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(it(n,{select:t}),document.activeElement!==r)return}function dh(e){const t=El(e),r=Ys(t,e),n=Ys(t.reverse(),e);return[r,n]}function El(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ys(e,t){for(const r of e)if(!uh(r,{upTo:t}))return r}function uh(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 fh(e){return e instanceof HTMLInputElement&&"select"in e}function it(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&fh(e)&&t&&e.select()}}var Xs=ph();function ph(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Zs(e,t),e.unshift(t)},remove(t){var r;e=Zs(e,t),(r=e[0])==null||r.resume()}}}function Zs(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function mh(e){return e.filter(t=>t.tagName!=="A")}var ye=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},gh=c[" useId ".trim().toString()]||(()=>{}),vh=0;function me(e){const[t,r]=c.useState(gh());return ye(()=>{r(n=>n??String(vh++))},[e]),t?`radix-${t}`:""}const hh=["top","right","bottom","left"],dt=Math.min,Te=Math.max,cn=Math.round,Kr=Math.floor,Ke=e=>({x:e,y:e}),xh={left:"right",right:"left",bottom:"top",top:"bottom"},bh={start:"end",end:"start"};function Do(e,t,r){return Te(e,dt(t,r))}function rt(e,t){return typeof e=="function"?e(t):e}function nt(e){return e.split("-")[0]}function or(e){return e.split("-")[1]}function sa(e){return e==="x"?"y":"x"}function ia(e){return e==="y"?"height":"width"}const yh=new Set(["top","bottom"]);function Ue(e){return yh.has(nt(e))?"y":"x"}function la(e){return sa(Ue(e))}function wh(e,t,r){r===void 0&&(r=!1);const n=or(e),o=la(e),a=ia(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=dn(s)),[s,dn(s)]}function Ch(e){const t=dn(e);return[$o(e),t,$o(t)]}function $o(e){return e.replace(/start|end/g,t=>bh[t])}const Js=["left","right"],Qs=["right","left"],Sh=["top","bottom"],Eh=["bottom","top"];function Rh(e,t,r){switch(e){case"top":case"bottom":return r?t?Qs:Js:t?Js:Qs;case"left":case"right":return t?Sh:Eh;default:return[]}}function kh(e,t,r,n){const o=or(e);let a=Rh(nt(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map($o)))),a}function dn(e){return e.replace(/left|right|bottom|top/g,t=>xh[t])}function Nh(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rl(e){return typeof e!="number"?Nh(e):{top:e,right:e,bottom:e,left:e}}function un(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function ei(e,t,r){let{reference:n,floating:o}=e;const a=Ue(t),s=la(t),l=ia(s),d=nt(t),u=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,m=n[l]/2-o[l]/2;let g;switch(d){case"top":g={x:f,y:n.y-o.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-o.width,y:p};break;default:g={x:n.x,y:n.y}}switch(or(t)){case"start":g[s]-=m*(r&&u?-1:1);break;case"end":g[s]+=m*(r&&u?-1:1);break}return g}const jh=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=ei(u,n,d),m=n,g={},x=0;for(let v=0;v<l.length;v++){const{name:h,fn:y}=l[v],{x:b,y:C,data:E,reset:R}=await y({x:f,y:p,initialPlacement:n,placement:m,strategy:o,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});f=b??f,p=C??p,g={...g,[h]:{...g[h],...E}},R&&x<=50&&(x++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(u=R.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:f,y:p}=ei(u,m,d)),v=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:g}};async function wr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:l,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=rt(t,e),x=Rl(g),h=l[m?p==="floating"?"reference":"floating":p],y=un(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(h)))==null||r?h:h.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:d})),b=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),E=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},R=un(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:C,strategy:d}):b);return{top:(y.top-R.top+x.top)/E.y,bottom:(R.bottom-y.bottom+x.bottom)/E.y,left:(y.left-R.left+x.left)/E.x,right:(R.right-y.right+x.right)/E.x}}const Ph=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:l,middlewareData:d}=t,{element:u,padding:f=0}=rt(e,t)||{};if(u==null)return{};const p=Rl(f),m={x:r,y:n},g=la(o),x=ia(g),v=await s.getDimensions(u),h=g==="y",y=h?"top":"left",b=h?"bottom":"right",C=h?"clientHeight":"clientWidth",E=a.reference[x]+a.reference[g]-m[g]-a.floating[x],R=m[g]-a.reference[g],T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let P=T?T[C]:0;(!P||!await(s.isElement==null?void 0:s.isElement(T)))&&(P=l.floating[C]||a.floating[x]);const j=E/2-R/2,F=P/2-v[x]/2-1,q=dt(p[y],F),re=dt(p[b],F),te=q,ee=P-v[x]-re,W=P/2-v[x]/2+j,D=Do(te,W,ee),I=!d.arrow&&or(o)!=null&&W!==D&&a.reference[x]/2-(W<te?q:re)-v[x]/2<0,$=I?W<te?W-te:W-ee:0;return{[g]:m[g]+$,data:{[g]:D,centerOffset:W-D-$,...I&&{alignmentOffset:$}},reset:I}}}),Th=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:v=!0,...h}=rt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=nt(o),b=Ue(l),C=nt(l)===l,E=await(d.isRTL==null?void 0:d.isRTL(u.floating)),R=m||(C||!v?[dn(l)]:Ch(l)),T=x!=="none";!m&&T&&R.push(...kh(l,v,x,E));const P=[l,...R],j=await wr(t,h),F=[];let q=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&F.push(j[y]),p){const W=wh(o,s,E);F.push(j[W[0]],j[W[1]])}if(q=[...q,{placement:o,overflows:F}],!F.every(W=>W<=0)){var re,te;const W=(((re=a.flip)==null?void 0:re.index)||0)+1,D=P[W];if(D&&(!(p==="alignment"?b!==Ue(D):!1)||q.every(N=>Ue(N.placement)===b?N.overflows[0]>0:!0)))return{data:{index:W,overflows:q},reset:{placement:D}};let I=(te=q.filter($=>$.overflows[0]<=0).sort(($,N)=>$.overflows[1]-N.overflows[1])[0])==null?void 0:te.placement;if(!I)switch(g){case"bestFit":{var ee;const $=(ee=q.filter(N=>{if(T){const M=Ue(N.placement);return M===b||M==="y"}return!0}).map(N=>[N.placement,N.overflows.filter(M=>M>0).reduce((M,G)=>M+G,0)]).sort((N,M)=>N[1]-M[1])[0])==null?void 0:ee[0];$&&(I=$);break}case"initialPlacement":I=l;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function ti(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ri(e){return hh.some(t=>e[t]>=0)}const _h=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=rt(e,t);switch(n){case"referenceHidden":{const a=await wr(t,{...o,elementContext:"reference"}),s=ti(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ri(s)}}}case"escaped":{const a=await wr(t,{...o,altBoundary:!0}),s=ti(a,r.floating);return{data:{escapedOffsets:s,escaped:ri(s)}}}default:return{}}}}},kl=new Set(["left","top"]);async function Ah(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=nt(r),l=or(r),d=Ue(r)==="y",u=kl.has(s)?-1:1,f=a&&d?-1:1,p=rt(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:x}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof x=="number"&&(g=l==="end"?x*-1:x),d?{x:g*f,y:m*u}:{x:m*u,y:g*f}}const Ih=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:l}=t,d=await Ah(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:s}}}}},Oh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:h=>{let{x:y,y:b}=h;return{x:y,y:b}}},...d}=rt(e,t),u={x:r,y:n},f=await wr(t,d),p=Ue(nt(o)),m=sa(p);let g=u[m],x=u[p];if(a){const h=m==="y"?"top":"left",y=m==="y"?"bottom":"right",b=g+f[h],C=g-f[y];g=Do(b,g,C)}if(s){const h=p==="y"?"top":"left",y=p==="y"?"bottom":"right",b=x+f[h],C=x-f[y];x=Do(b,x,C)}const v=l.fn({...t,[m]:g,[p]:x});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[m]:a,[p]:s}}}}}},Mh=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:d=!0,crossAxis:u=!0}=rt(e,t),f={x:r,y:n},p=Ue(o),m=sa(p);let g=f[m],x=f[p];const v=rt(l,t),h=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(d){const C=m==="y"?"height":"width",E=a.reference[m]-a.floating[C]+h.mainAxis,R=a.reference[m]+a.reference[C]-h.mainAxis;g<E?g=E:g>R&&(g=R)}if(u){var y,b;const C=m==="y"?"width":"height",E=kl.has(nt(o)),R=a.reference[p]-a.floating[C]+(E&&((y=s.offset)==null?void 0:y[p])||0)+(E?0:h.crossAxis),T=a.reference[p]+a.reference[C]+(E?0:((b=s.offset)==null?void 0:b[p])||0)-(E?h.crossAxis:0);x<R?x=R:x>T&&(x=T)}return{[m]:g,[p]:x}}}},Dh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:l}=t,{apply:d=()=>{},...u}=rt(e,t),f=await wr(t,u),p=nt(o),m=or(o),g=Ue(o)==="y",{width:x,height:v}=a.floating;let h,y;p==="top"||p==="bottom"?(h=p,y=m===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(y=p,h=m==="end"?"top":"bottom");const b=v-f.top-f.bottom,C=x-f.left-f.right,E=dt(v-f[h],b),R=dt(x-f[y],C),T=!t.middlewareData.shift;let P=E,j=R;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(j=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=b),T&&!m){const q=Te(f.left,0),re=Te(f.right,0),te=Te(f.top,0),ee=Te(f.bottom,0);g?j=x-2*(q!==0||re!==0?q+re:Te(f.left,f.right)):P=v-2*(te!==0||ee!==0?te+ee:Te(f.top,f.bottom))}await d({...t,availableWidth:j,availableHeight:P});const F=await s.getDimensions(l.floating);return x!==F.width||v!==F.height?{reset:{rects:!0}}:{}}}};function Tn(){return typeof window<"u"}function ar(e){return Nl(e)?(e.nodeName||"").toLowerCase():"#document"}function _e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xe(e){var t;return(t=(Nl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Nl(e){return Tn()?e instanceof Node||e instanceof _e(e).Node:!1}function Le(e){return Tn()?e instanceof Element||e instanceof _e(e).Element:!1}function Ye(e){return Tn()?e instanceof HTMLElement||e instanceof _e(e).HTMLElement:!1}function ni(e){return!Tn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _e(e).ShadowRoot}const $h=new Set(["inline","contents"]);function Pr(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!$h.has(o)}const Lh=new Set(["table","td","th"]);function Fh(e){return Lh.has(ar(e))}const Vh=[":popover-open",":modal"];function _n(e){return Vh.some(t=>{try{return e.matches(t)}catch{return!1}})}const Bh=["transform","translate","scale","rotate","perspective"],Wh=["transform","translate","scale","rotate","perspective","filter"],Gh=["paint","layout","strict","content"];function ca(e){const t=da(),r=Le(e)?Fe(e):e;return Bh.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Wh.some(n=>(r.willChange||"").includes(n))||Gh.some(n=>(r.contain||"").includes(n))}function zh(e){let t=ut(e);for(;Ye(t)&&!Xt(t);){if(ca(t))return t;if(_n(t))return null;t=ut(t)}return null}function da(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const qh=new Set(["html","body","#document"]);function Xt(e){return qh.has(ar(e))}function Fe(e){return _e(e).getComputedStyle(e)}function An(e){return Le(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ut(e){if(ar(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ni(e)&&e.host||Xe(e);return ni(t)?t.host:t}function jl(e){const t=ut(e);return Xt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ye(t)&&Pr(t)?t:jl(t)}function Cr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=jl(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=_e(o);if(a){const l=Lo(s);return t.concat(s,s.visualViewport||[],Pr(o)?o:[],l&&r?Cr(l):[])}return t.concat(o,Cr(o,[],r))}function Lo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Pl(e){const t=Fe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ye(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,l=cn(r)!==a||cn(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function ua(e){return Le(e)?e:e.contextElement}function Kt(e){const t=ua(e);if(!Ye(t))return Ke(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Pl(t);let s=(a?cn(r.width):r.width)/n,l=(a?cn(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Hh=Ke(0);function Tl(e){const t=_e(e);return!da()||!t.visualViewport?Hh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uh(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==_e(e)?!1:t}function Rt(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=ua(e);let s=Ke(1);t&&(n?Le(n)&&(s=Kt(n)):s=Kt(e));const l=Uh(a,r,n)?Tl(a):Ke(0);let d=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const m=_e(a),g=n&&Le(n)?_e(n):n;let x=m,v=Lo(x);for(;v&&n&&g!==x;){const h=Kt(v),y=v.getBoundingClientRect(),b=Fe(v),C=y.left+(v.clientLeft+parseFloat(b.paddingLeft))*h.x,E=y.top+(v.clientTop+parseFloat(b.paddingTop))*h.y;d*=h.x,u*=h.y,f*=h.x,p*=h.y,d+=C,u+=E,x=_e(v),v=Lo(x)}}return un({width:f,height:p,x:d,y:u})}function In(e,t){const r=An(e).scrollLeft;return t?t.left+r:Rt(Xe(e)).left+r}function _l(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-In(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Kh(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=Xe(n),l=t?_n(t.floating):!1;if(n===s||l&&a)return r;let d={scrollLeft:0,scrollTop:0},u=Ke(1);const f=Ke(0),p=Ye(n);if((p||!p&&!a)&&((ar(n)!=="body"||Pr(s))&&(d=An(n)),Ye(n))){const g=Rt(n);u=Kt(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const m=s&&!p&&!a?_l(s,d):Ke(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-d.scrollLeft*u.x+f.x+m.x,y:r.y*u.y-d.scrollTop*u.y+f.y+m.y}}function Yh(e){return Array.from(e.getClientRects())}function Xh(e){const t=Xe(e),r=An(e),n=e.ownerDocument.body,o=Te(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Te(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+In(e);const l=-r.scrollTop;return Fe(n).direction==="rtl"&&(s+=Te(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:l}}const oi=25;function Zh(e,t){const r=_e(e),n=Xe(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,l=0,d=0;if(o){a=o.width,s=o.height;const f=da();(!f||f&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}const u=In(n);if(u<=0){const f=n.ownerDocument,p=f.body,m=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(n.clientWidth-p.clientWidth-g);x<=oi&&(a-=x)}else u<=oi&&(a+=u);return{width:a,height:s,x:l,y:d}}const Jh=new Set(["absolute","fixed"]);function Qh(e,t){const r=Rt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ye(e)?Kt(e):Ke(1),s=e.clientWidth*a.x,l=e.clientHeight*a.y,d=o*a.x,u=n*a.y;return{width:s,height:l,x:d,y:u}}function ai(e,t,r){let n;if(t==="viewport")n=Zh(e,r);else if(t==="document")n=Xh(Xe(e));else if(Le(t))n=Qh(t,r);else{const o=Tl(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return un(n)}function Al(e,t){const r=ut(e);return r===t||!Le(r)||Xt(r)?!1:Fe(r).position==="fixed"||Al(r,t)}function ex(e,t){const r=t.get(e);if(r)return r;let n=Cr(e,[],!1).filter(l=>Le(l)&&ar(l)!=="body"),o=null;const a=Fe(e).position==="fixed";let s=a?ut(e):e;for(;Le(s)&&!Xt(s);){const l=Fe(s),d=ca(s);!d&&l.position==="fixed"&&(o=null),(a?!d&&!o:!d&&l.position==="static"&&!!o&&Jh.has(o.position)||Pr(s)&&!d&&Al(e,s))?n=n.filter(f=>f!==s):o=l,s=ut(s)}return t.set(e,n),n}function tx(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?_n(t)?[]:ex(t,this._c):[].concat(r),n],l=s[0],d=s.reduce((u,f)=>{const p=ai(t,f,o);return u.top=Te(p.top,u.top),u.right=dt(p.right,u.right),u.bottom=dt(p.bottom,u.bottom),u.left=Te(p.left,u.left),u},ai(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function rx(e){const{width:t,height:r}=Pl(e);return{width:t,height:r}}function nx(e,t,r){const n=Ye(t),o=Xe(t),a=r==="fixed",s=Rt(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const d=Ke(0);function u(){d.x=In(o)}if(n||!n&&!a)if((ar(t)!=="body"||Pr(o))&&(l=An(t)),n){const g=Rt(t,!0,a,t);d.x=g.x+t.clientLeft,d.y=g.y+t.clientTop}else o&&u();a&&!n&&o&&u();const f=o&&!n&&!a?_l(o,l):Ke(0),p=s.left+l.scrollLeft-d.x-f.x,m=s.top+l.scrollTop-d.y-f.y;return{x:p,y:m,width:s.width,height:s.height}}function xo(e){return Fe(e).position==="static"}function si(e,t){if(!Ye(e)||Fe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Xe(e)===r&&(r=r.ownerDocument.body),r}function Il(e,t){const r=_e(e);if(_n(e))return r;if(!Ye(e)){let o=ut(e);for(;o&&!Xt(o);){if(Le(o)&&!xo(o))return o;o=ut(o)}return r}let n=si(e,t);for(;n&&Fh(n)&&xo(n);)n=si(n,t);return n&&Xt(n)&&xo(n)&&!ca(n)?r:n||zh(e)||r}const ox=async function(e){const t=this.getOffsetParent||Il,r=this.getDimensions,n=await r(e.floating);return{reference:nx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ax(e){return Fe(e).direction==="rtl"}const sx={convertOffsetParentRelativeRectToViewportRelativeRect:Kh,getDocumentElement:Xe,getClippingRect:tx,getOffsetParent:Il,getElementRects:ox,getClientRects:Yh,getDimensions:rx,getScale:Kt,isElement:Le,isRTL:ax};function Ol(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ix(e,t){let r=null,n;const o=Xe(e);function a(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function s(l,d){l===void 0&&(l=!1),d===void 0&&(d=1),a();const u=e.getBoundingClientRect(),{left:f,top:p,width:m,height:g}=u;if(l||t(),!m||!g)return;const x=Kr(p),v=Kr(o.clientWidth-(f+m)),h=Kr(o.clientHeight-(p+g)),y=Kr(f),C={rootMargin:-x+"px "+-v+"px "+-h+"px "+-y+"px",threshold:Te(0,dt(1,d))||1};let E=!0;function R(T){const P=T[0].intersectionRatio;if(P!==d){if(!E)return s();P?s(!1,P):n=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Ol(u,e.getBoundingClientRect())&&s(),E=!1}try{r=new IntersectionObserver(R,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(R,C)}r.observe(e)}return s(!0),a}function lx(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,u=ua(e),f=o||a?[...u?Cr(u):[],...Cr(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const p=u&&l?ix(u,r):null;let m=-1,g=null;s&&(g=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),r()}),u&&!d&&g.observe(u),g.observe(t));let x,v=d?Rt(e):null;d&&h();function h(){const y=Rt(e);v&&!Ol(v,y)&&r(),v=y,x=requestAnimationFrame(h)}return r(),()=>{var y;f.forEach(b=>{o&&b.removeEventListener("scroll",r),a&&b.removeEventListener("resize",r)}),p==null||p(),(y=g)==null||y.disconnect(),g=null,d&&cancelAnimationFrame(x)}}const cx=Ih,dx=Oh,ux=Th,fx=Dh,px=_h,ii=Ph,mx=Mh,gx=(e,t,r)=>{const n=new Map,o={platform:sx,...r},a={...o.platform,_c:n};return jh(e,t,{...o,platform:a})};var vx=typeof document<"u",hx=function(){},rn=vx?S.useLayoutEffect:hx;function fn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!fn(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!fn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Ml(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function li(e,t){const r=Ml(e);return Math.round(t*r)/r}function bo(e){const t=c.useRef(e);return rn(()=>{t.current=e}),t}function xx(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:d,open:u}=e,[f,p]=c.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=c.useState(n);fn(m,n)||g(n);const[x,v]=c.useState(null),[h,y]=c.useState(null),b=c.useCallback(N=>{N!==T.current&&(T.current=N,v(N))},[]),C=c.useCallback(N=>{N!==P.current&&(P.current=N,y(N))},[]),E=a||x,R=s||h,T=c.useRef(null),P=c.useRef(null),j=c.useRef(f),F=d!=null,q=bo(d),re=bo(o),te=bo(u),ee=c.useCallback(()=>{if(!T.current||!P.current)return;const N={placement:t,strategy:r,middleware:m};re.current&&(N.platform=re.current),gx(T.current,P.current,N).then(M=>{const G={...M,isPositioned:te.current!==!1};W.current&&!fn(j.current,G)&&(j.current=G,Rn.flushSync(()=>{p(G)}))})},[m,t,r,re,te]);rn(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,p(N=>({...N,isPositioned:!1})))},[u]);const W=c.useRef(!1);rn(()=>(W.current=!0,()=>{W.current=!1}),[]),rn(()=>{if(E&&(T.current=E),R&&(P.current=R),E&&R){if(q.current)return q.current(E,R,ee);ee()}},[E,R,ee,q,F]);const D=c.useMemo(()=>({reference:T,floating:P,setReference:b,setFloating:C}),[b,C]),I=c.useMemo(()=>({reference:E,floating:R}),[E,R]),$=c.useMemo(()=>{const N={position:r,left:0,top:0};if(!I.floating)return N;const M=li(I.floating,f.x),G=li(I.floating,f.y);return l?{...N,transform:"translate("+M+"px, "+G+"px)",...Ml(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:G}},[r,l,I.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:ee,refs:D,elements:I,floatingStyles:$}),[f,ee,D,I,$])}const bx=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?ii({element:n.current,padding:o}).fn(r):{}:n?ii({element:n,padding:o}).fn(r):{}}}},yx=(e,t)=>({...cx(e),options:[e,t]}),wx=(e,t)=>({...dx(e),options:[e,t]}),Cx=(e,t)=>({...mx(e),options:[e,t]}),Sx=(e,t)=>({...ux(e),options:[e,t]}),Ex=(e,t)=>({...fx(e),options:[e,t]}),Rx=(e,t)=>({...px(e),options:[e,t]}),kx=(e,t)=>({...bx(e),options:[e,t]});var Nx="Arrow",Dl=c.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return i.jsx(K.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});Dl.displayName=Nx;var jx=Dl;function On(e){const[t,r]=c.useState(void 0);return ye(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,l;if("borderBoxSize"in a){const d=a.borderBoxSize,u=Array.isArray(d)?d[0]:d;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;r({width:s,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var fa="Popper",[$l,pt]=we(fa),[Px,Ll]=$l(fa),Fl=e=>{const{__scopePopper:t,children:r}=e,[n,o]=c.useState(null);return i.jsx(Px,{scope:t,anchor:n,onAnchorChange:o,children:r})};Fl.displayName=fa;var Vl="PopperAnchor",Bl=c.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Ll(Vl,r),s=c.useRef(null),l=ae(t,s),d=c.useRef(null);return c.useEffect(()=>{const u=d.current;d.current=(n==null?void 0:n.current)||s.current,u!==d.current&&a.onAnchorChange(d.current)}),n?null:i.jsx(K.div,{...o,ref:l})});Bl.displayName=Vl;var pa="PopperContent",[Tx,_x]=$l(pa),Wl=c.forwardRef((e,t)=>{var _,H,X,ne,le,se;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:x,...v}=e,h=Ll(pa,r),[y,b]=c.useState(null),C=ae(t,Ee=>b(Ee)),[E,R]=c.useState(null),T=On(E),P=(T==null?void 0:T.width)??0,j=(T==null?void 0:T.height)??0,F=n+(a!=="center"?"-"+a:""),q=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},re=Array.isArray(u)?u:[u],te=re.length>0,ee={padding:q,boundary:re.filter(Ix),altBoundary:te},{refs:W,floatingStyles:D,placement:I,isPositioned:$,middlewareData:N}=xx({strategy:"fixed",placement:F,whileElementsMounted:(...Ee)=>lx(...Ee,{animationFrame:g==="always"}),elements:{reference:h.anchor},middleware:[yx({mainAxis:o+j,alignmentAxis:s}),d&&wx({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Cx():void 0,...ee}),d&&Sx({...ee}),Ex({...ee,apply:({elements:Ee,rects:Ae,availableWidth:Ge,availableHeight:Me})=>{const{width:at,height:zr}=Ae.reference,Je=Ee.floating.style;Je.setProperty("--radix-popper-available-width",`${Ge}px`),Je.setProperty("--radix-popper-available-height",`${Me}px`),Je.setProperty("--radix-popper-anchor-width",`${at}px`),Je.setProperty("--radix-popper-anchor-height",`${zr}px`)}}),E&&kx({element:E,padding:l}),Ox({arrowWidth:P,arrowHeight:j}),m&&Rx({strategy:"referenceHidden",...ee})]}),[M,G]=ql(I),Q=$e(x);ye(()=>{$&&(Q==null||Q())},[$,Q]);const A=(_=N.arrow)==null?void 0:_.x,z=(H=N.arrow)==null?void 0:H.y,Y=((X=N.arrow)==null?void 0:X.centerOffset)!==0,[B,O]=c.useState();return ye(()=>{y&&O(window.getComputedStyle(y).zIndex)},[y]),i.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:$?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:B,"--radix-popper-transform-origin":[(ne=N.transformOrigin)==null?void 0:ne.x,(le=N.transformOrigin)==null?void 0:le.y].join(" "),...((se=N.hide)==null?void 0:se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:i.jsx(Tx,{scope:r,placedSide:M,onArrowChange:R,arrowX:A,arrowY:z,shouldHideArrow:Y,children:i.jsx(K.div,{"data-side":M,"data-align":G,...v,ref:C,style:{...v.style,animation:$?void 0:"none"}})})})});Wl.displayName=pa;var Gl="PopperArrow",Ax={top:"bottom",right:"left",bottom:"top",left:"right"},zl=c.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=_x(Gl,n),s=Ax[a.placedSide];return i.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:i.jsx(jx,{...o,ref:r,style:{...o.style,display:"block"}})})});zl.displayName=Gl;function Ix(e){return e!==null}var Ox=e=>({name:"transformOrigin",options:e,fn(t){var h,y,b;const{placement:r,rects:n,middlewareData:o}=t,s=((h=o.arrow)==null?void 0:h.centerOffset)!==0,l=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[u,f]=ql(r),p={start:"0%",center:"50%",end:"100%"}[f],m=(((y=o.arrow)==null?void 0:y.x)??0)+l/2,g=(((b=o.arrow)==null?void 0:b.y)??0)+d/2;let x="",v="";return u==="bottom"?(x=s?p:`${m}px`,v=`${-d}px`):u==="top"?(x=s?p:`${m}px`,v=`${n.floating.height+d}px`):u==="right"?(x=`${-d}px`,v=s?p:`${g}px`):u==="left"&&(x=`${n.floating.width+d}px`,v=s?p:`${g}px`),{data:{x,y:v}}}});function ql(e){const[t,r="center"]=e.split("-");return[t,r]}var Tr=Fl,_r=Bl,Mn=Wl,Dn=zl,Mx="Portal",sr=c.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[o,a]=c.useState(!1);ye(()=>a(!0),[]);const s=r||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?kr.createPortal(i.jsx(K.div,{...n,ref:t}),s):null});sr.displayName=Mx;function Dx(e){const t=$x(e),r=c.forwardRef((n,o)=>{const{children:a,...s}=n,l=c.Children.toArray(a),d=l.find(Fx);if(d){const u=d.props.children,f=l.map(p=>p===d?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return i.jsx(t,{...s,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return i.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function $x(e){const t=c.forwardRef((r,n)=>{const{children:o,...a}=r;if(c.isValidElement(o)){const s=Bx(o),l=Vx(a,o.props);return o.type!==c.Fragment&&(l.ref=n?ke(n,s):s),c.cloneElement(o,l)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lx=Symbol("radix.slottable");function Fx(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lx}function Vx(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{const d=a(...l);return o(...l),d}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Bx(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Wx=c[" useInsertionEffect ".trim().toString()]||ye;function be({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=Gx({defaultProp:t,onChange:r}),l=e!==void 0,d=l?e:o;{const f=c.useRef(e!==void 0);c.useEffect(()=>{const p=f.current;p!==l&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,n])}const u=c.useCallback(f=>{var p;if(l){const m=zx(f)?f(e):f;m!==e&&((p=s.current)==null||p.call(s,m))}else a(f)},[l,e,a,s]);return[d,u]}function Gx({defaultProp:e,onChange:t}){const[r,n]=c.useState(e),o=c.useRef(r),a=c.useRef(t);return Wx(()=>{a.current=t},[t]),c.useEffect(()=>{var s;o.current!==r&&((s=a.current)==null||s.call(a,r),o.current=r)},[r,o]),[r,n,a]}function zx(e){return typeof e=="function"}function $n(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 Hl=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),qx="VisuallyHidden",Ul=c.forwardRef((e,t)=>i.jsx(K.span,{...e,ref:t,style:{...Hl,...e.style}}));Ul.displayName=qx;var Hx=Ul,Ux=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Vt=new WeakMap,Yr=new WeakMap,Xr={},yo=0,Kl=function(e){return e&&(e.host||Kl(e.parentNode))},Kx=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Kl(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Yx=function(e,t,r,n){var o=Kx(t,Array.isArray(e)?e:[e]);Xr[r]||(Xr[r]=new WeakMap);var a=Xr[r],s=[],l=new Set,d=new Set(o),u=function(p){!p||l.has(p)||(l.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(m){if(l.has(m))f(m);else try{var g=m.getAttribute(n),x=g!==null&&g!=="false",v=(Vt.get(m)||0)+1,h=(a.get(m)||0)+1;Vt.set(m,v),a.set(m,h),s.push(m),v===1&&x&&Yr.set(m,!0),h===1&&m.setAttribute(r,"true"),x||m.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return f(t),l.clear(),yo++,function(){s.forEach(function(p){var m=Vt.get(p)-1,g=a.get(p)-1;Vt.set(p,m),a.set(p,g),m||(Yr.has(p)||p.removeAttribute(n),Yr.delete(p)),g||p.removeAttribute(r)}),yo--,yo||(Vt=new WeakMap,Vt=new WeakMap,Yr=new WeakMap,Xr={})}},Ln=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Ux(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Yx(n,o,r,"aria-hidden")):function(){return null}},He=function(){return He=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},He.apply(this,arguments)};function Yl(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Xx(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var nn="right-scroll-bar-position",on="width-before-scroll-bar",Zx="with-scroll-bars-hidden",Jx="--removed-body-scroll-bar-size";function wo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Qx(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var eb=typeof window<"u"?c.useLayoutEffect:c.useEffect,ci=new WeakMap;function tb(e,t){var r=Qx(null,function(n){return e.forEach(function(o){return wo(o,n)})});return eb(function(){var n=ci.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(l){a.has(l)||wo(l,null)}),a.forEach(function(l){o.has(l)||wo(l,s)})}ci.set(r,e)},[e]),r}function rb(e){return e}function nb(e,t){t===void 0&&(t=rb);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(l){return l!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(l){return a(l)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var l=r;r=[],l.forEach(a),s=r}var d=function(){var f=s;s=[],f.forEach(a)},u=function(){return Promise.resolve().then(d)};u(),r={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),r}}}};return o}function ob(e){e===void 0&&(e={});var t=nb(null);return t.options=He({async:!0,ssr:!1},e),t}var Xl=function(e){var t=e.sideCar,r=Yl(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return c.createElement(n,He({},r))};Xl.isSideCarExport=!0;function ab(e,t){return e.useMedium(t),Xl}var Zl=ob(),Co=function(){},Fn=c.forwardRef(function(e,t){var r=c.useRef(null),n=c.useState({onScrollCapture:Co,onWheelCapture:Co,onTouchMoveCapture:Co}),o=n[0],a=n[1],s=e.forwardProps,l=e.children,d=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,g=e.noRelative,x=e.noIsolation,v=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,C=e.gapMode,E=Yl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=m,T=tb([r,t]),P=He(He({},E),o);return c.createElement(c.Fragment,null,f&&c.createElement(R,{sideCar:Zl,removeScrollBar:u,shards:p,noRelative:g,noIsolation:x,inert:v,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:C}),s?c.cloneElement(c.Children.only(l),He(He({},P),{ref:T})):c.createElement(b,He({},P,{className:d,ref:T}),l))});Fn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fn.classNames={fullWidth:on,zeroRight:nn};var sb=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ib(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sb();return t&&e.setAttribute("nonce",t),e}function lb(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cb(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var db=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ib())&&(lb(t,r),cb(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ub=function(){var e=db();return function(t,r){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Jl=function(){var e=ub(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},fb={left:0,top:0,right:0,gap:0},So=function(e){return parseInt(e||"",10)||0},pb=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[So(r),So(n),So(o)]},mb=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return fb;var t=pb(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},gb=Jl(),Yt="data-scroll-locked",vb=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,l=e.gap;return r===void 0&&(r="margin"),`
161
- .`.concat(Zx,` {
150
+ */const ih=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ao=Ce("x",ih),ac=Bt("qodo qodo-button inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none cursor-pointer",{variants:{variant:{default:"bg-[var(--fill-action-emphasis-idle)] text-[var(--text-action-on-emphasis-idle)] hover:bg-[var(--fill-action-emphasis-hover)] active:bg-[var(--fill-action-emphasis-active)] disabled:bg-[var(--fill-action-emphasis-disabled)]",secondary:"bg-[var(--fill-action-neutral-idle)] text-[var(--text-action-neutral-idle)] hover:bg-[var(--fill-action-neutral-hover)] active:bg-[var(--fill-action-neutral-active)] disabled:bg-[var(--fill-action-neutral-disabled)] disabled:text-[var(--text-action-neutral-disabled)]",outline:"border border-[var(--border-action-neutral-idle)] text-[var(--text-action-neutral-idle)] hover:bg-[var(--fill-action-neutral-hover)] active:bg-[var(--fill-action-neutral-active)] disabled:bg-none disabled:text-[var(--text-action-neutral-disabled)]",ghost:"text-[var(--text-action-neutral-idle)] hover:text-[var(--text-action-neutral-hover)] active:bg-[var(--fill-action-neutral-active)] disabled:bg-none disabled:text-[var(--text-action-neutral-disabled)]",link:"text-[var(--text-action-emphasis-idle)] hover:text-[var(--text-action-emphasis-hover)] active:bg-[var(--fill-action-emphasis-active)] disabled:bg-none disabled:text-[var(--text-action-emphasis-disabled)]",danger:"border border-[var(--border-action-negative-idle)] text-[var(--icon-action-negative-idle)] hover:bg-[var(--fill-action-negative-hover)] active:bg-[var(--fill-action-negative-active)] disabled:border-[var(--border-action-negative-disabled)] disabled:text-[var(--icon-action-negative-disabled)]"},size:{default:"h-10 px-4 py-2",xs:"h-fit rounded-md text-xs px-2 py-1.5",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10","icon-sm":"h-7 w-7 p-1.5 rounded-md","icon-md":"h-8 w-8 p-1.5 rounded-md","icon-lg":"h-[45px] w-[45px] p-3 rounded-md"}},defaultVariants:{variant:"default",size:"default"}}),Be=d.forwardRef(({className:e,variant:t,size:r,loading:n,children:o,disabled:a,...s},i)=>l.jsxs("button",{className:T(ac({variant:t,size:r,className:e})),ref:i,disabled:a||n,...s,children:[o,n&&l.jsx(nc,{className:"ml-2 w-4 h-4 animate-spin"})]}));Be.displayName="Button";const lh=Bt("qodo qodo-input file:text-foreground placeholder:text-purple-muted-400 selection:bg-primary selection:text-primary-foreground border-input-neutral-idle flex h-9 w-full min-w-0 rounded-md border bg-purple-muted-900 px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-none focus-visible:ring-none aria-invalid:border-red-600 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 disabled:cursor-not-allowed disabled:opacity-50 dark:disabled:bg-[var(--fill-input-neutral-idle)] disabled:border-purple-muted-500 disabled:text-purple-muted-400 read-only:cursor-default md:text-sm dark:border-input-neutral-idle dark:bg-purple-muted-900 dark:text-foreground dark:placeholder:text-[var(--color-purple-muted-400)] [:not(:placeholder-shown)]:bg-purple-muted-700 [&[readonly]]:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:border-0 [&[readonly]]:text-[var(--text-input-neutral-idle)] [&[readonly]]:hover:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:hover:border-[var(--border-input-neutral-idle)] [&[readonly]]:focus:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:focus:border-[var(--border-input-neutral-idle)] [&[readonly]]:focus-visible:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:focus-visible:border-[var(--border-input-neutral-idle)] [&[readonly][disabled]]:opacity-100 [&[readonly][disabled]]:cursor-default [&[readonly][disabled]]:bg-[var(--fill-input-neutral-idle)] [&[readonly][disabled]]:border-0 [&[readonly][disabled]]:text-[var(--text-input-neutral-idle)] [&[readonly][disabled]]:hover:bg-[var(--fill-input-neutral-idle)] [&[readonly][disabled]]:hover:border-0 [&[readonly][disabled]]:focus:bg-[var(--fill-input-neutral-idle)] [&[readonly][disabled]]:focus:border-0 [&[readonly][disabled]]:focus-visible:bg-[var(--fill-input-neutral-idle)] [&[readonly][disabled]]:focus-visible:border-0",{variants:{variant:{default:"dark:focus-visible:bg-fill-input-neutral-idle dark:hover:bg-purple-muted-700 border-purple-muted-600 hover:bg-fill-input-neutral-hover focus:bg-purple-muted-700 focus:border-purple-muted-600 focus-visible:ring-none focus-visible:ring-none [&[readonly]]:hover:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:hover:border-0 [&[readonly]]:focus:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:focus:border-0 [&[readonly]]:focus-visible:bg-[var(--fill-input-neutral-idle)] [&[readonly]]:focus-visible:border-0",secondary:"bg-secondary border-secondary text-secondary-foreground placeholder:text-color-purple-muted-400 dark:bg-secondary dark:border-secondary dark:text-secondary-foreground dark:placeholder:text-purple-muted-400",accent:"bg-accent border-accent text-accent-foreground placeholder:text-color-purple-muted-400 dark:bg-accent dark:border-accent dark:text-accent-foreground dark:placeholder:text-purple-muted-400",success:"bg-success border-success text-success-foreground placeholder:text-success-foreground/70 dark:bg-success dark:border-success dark:text-success-foreground dark:placeholder:text-success-foreground/70",warning:"bg-warning border-warning text-warning-foreground placeholder:text-warning-foreground/70 dark:bg-warning dark:border-warning dark:text-warning-foreground dark:placeholder:text-warning-foreground/70",destructive:"border-destructive bg-purple-muted-700 text-[--var(text-input-neutral-idle)] placeholder:text-destructive-foreground/70 dark:border-destructive dark:placeholder:text-destructive-foreground/70",ghost:"bg-transparent border-purple-muted-600 focus:border-purple-muted-600 focus-visible:ring-none focus-visible:ring-none [:not(:placeholder-shown)]:bg-transparent"}},defaultVariants:{variant:"default"}}),Jr=d.forwardRef(({className:e,variant:t,type:r,error:n,...o},a)=>l.jsx("input",{ref:a,type:r,"data-slot":"input","aria-invalid":n||void 0,className:T(lh({variant:t,className:e})),...o}));Jr.displayName="Input";function Si(e,[t,r]){return Math.min(r,Math.max(t,e))}function K(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function ch(e,t){const r=d.createContext(t),n=a=>{const{children:s,...i}=a,c=d.useMemo(()=>i,Object.values(i));return l.jsx(r.Provider,{value:c,children:s})};n.displayName=e+"Provider";function o(a){const s=d.useContext(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Pe(e,t=[]){let r=[];function n(a,s){const i=d.createContext(s),c=r.length;r=[...r,s];const u=p=>{var b;const{scope:m,children:g,...h}=p,v=((b=m==null?void 0:m[e])==null?void 0:b[c])||i,x=d.useMemo(()=>h,Object.values(h));return l.jsx(v.Provider,{value:x,children:g})};u.displayName=a+"Provider";function f(p,m){var v;const g=((v=m==null?void 0:m[e])==null?void 0:v[c])||i,h=d.useContext(g);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=r.map(s=>d.createContext(s));return function(i){const c=(i==null?void 0:i[e])||a;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,uh(o,...t)]}function uh(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:c,scopeName:u})=>{const p=c(a)[`__scope${u}`];return{...i,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function Ei(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ae(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Ei(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Ei(e[o],null)}}}}function le(...e){return d.useCallback(Ae(...e),e)}function Ri(e){const t=dh(e),r=d.forwardRef((n,o)=>{const{children:a,...s}=n,i=d.Children.toArray(a),c=i.find(ph);if(c){const u=c.props.children,f=i.map(p=>p===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function dh(e){const t=d.forwardRef((r,n)=>{const{children:o,...a}=r;if(d.isValidElement(o)){const s=gh(o),i=mh(a,o.props);return o.type!==d.Fragment&&(i.ref=n?Ae(n,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fh=Symbol("radix.slottable");function ph(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fh}function mh(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function gh(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function so(e){const t=e+"CollectionProvider",[r,n]=Pe(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:x,children:b}=v,y=E.useRef(null),w=E.useRef(new Map).current;return l.jsx(o,{scope:x,itemMap:w,collectionRef:y,children:b})};s.displayName=t;const i=e+"CollectionSlot",c=Ri(i),u=E.forwardRef((v,x)=>{const{scope:b,children:y}=v,w=a(i,b),S=le(x,w.collectionRef);return l.jsx(c,{ref:S,children:y})});u.displayName=i;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=Ri(f),g=E.forwardRef((v,x)=>{const{scope:b,children:y,...w}=v,S=E.useRef(null),R=le(x,S),P=a(f,b);return E.useEffect(()=>(P.itemMap.set(S,{ref:S,...w}),()=>void P.itemMap.delete(S))),l.jsx(m,{[p]:"",ref:R,children:y})});g.displayName=f;function h(v){const x=a(e+"CollectionConsumer",v);return E.useCallback(()=>{const y=x.collectionRef.current;if(!y)return[];const w=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((P,k)=>w.indexOf(P.ref.current)-w.indexOf(k.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:g},h,n]}var vh=d.createContext(void 0);function Gt(e){const t=d.useContext(vh);return e||t||"ltr"}function hh(e){const t=xh(e),r=d.forwardRef((n,o)=>{const{children:a,...s}=n,i=d.Children.toArray(a),c=i.find(yh);if(c){const u=c.props.children,f=i.map(p=>p===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function xh(e){const t=d.forwardRef((r,n)=>{const{children:o,...a}=r;if(d.isValidElement(o)){const s=Ch(o),i=wh(a,o.props);return o.type!==d.Fragment&&(i.ref=n?Ae(n,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bh=Symbol("radix.slottable");function yh(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bh}function wh(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Ch(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Sh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],re=Sh.reduce((e,t)=>{const r=hh(`Primitive.${t}`),n=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function sc(e,t){e&&no.flushSync(()=>e.dispatchEvent(t))}function ze(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Eh(e,t=globalThis==null?void 0:globalThis.document){const r=ze(e);d.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Rh="DismissableLayer",ga="dismissableLayer.update",kh="dismissableLayer.pointerDownOutside",Nh="dismissableLayer.focusOutside",ki,ic=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:i,...c}=e,u=d.useContext(ic),[f,p]=d.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=d.useState({}),h=le(t,k=>p(k)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(x),y=f?v.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=b,R=Th(k=>{const N=k.target,D=[...u.branches].some(B=>B.contains(N));!S||D||(o==null||o(k),s==null||s(k),k.defaultPrevented||i==null||i())},m),P=Ih(k=>{const N=k.target;[...u.branches].some(B=>B.contains(N))||(a==null||a(k),s==null||s(k),k.defaultPrevented||i==null||i())},m);return Eh(k=>{y===u.layers.size-1&&(n==null||n(k),!k.defaultPrevented&&i&&(k.preventDefault(),i()))},m),d.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ki=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Ni(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=ki)}},[f,m,r,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Ni())},[f,u]),d.useEffect(()=>{const k=()=>g({});return document.addEventListener(ga,k),()=>document.removeEventListener(ga,k)},[]),l.jsx(re.div,{...c,ref:h,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:K(e.onFocusCapture,P.onFocusCapture),onBlurCapture:K(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:K(e.onPointerDownCapture,R.onPointerDownCapture)})});gr.displayName=Rh;var Ph="DismissableLayerBranch",jh=d.forwardRef((e,t)=>{const r=d.useContext(ic),n=d.useRef(null),o=le(t,n);return d.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),l.jsx(re.div,{...e,ref:o})});jh.displayName=Ph;function Th(e,t=globalThis==null?void 0:globalThis.document){const r=ze(e),n=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=i=>{if(i.target&&!n.current){let c=function(){lc(kh,r,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Ih(e,t=globalThis==null?void 0:globalThis.document){const r=ze(e),n=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!n.current&&lc(Nh,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Ni(){const e=new CustomEvent(ga);document.dispatchEvent(e)}function lc(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?sc(o,a):o.dispatchEvent(a)}var Yo=0;function io(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pi()),document.body.insertAdjacentElement("beforeend",e[1]??Pi()),Yo++,()=>{Yo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Yo--}},[])}function Pi(){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 Xo="focusScope.autoFocusOnMount",Zo="focusScope.autoFocusOnUnmount",ji={bubbles:!1,cancelable:!0},Ah="FocusScope",Qr=d.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[i,c]=d.useState(null),u=ze(o),f=ze(a),p=d.useRef(null),m=le(t,v=>c(v)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(n){let v=function(w){if(g.paused||!i)return;const S=w.target;i.contains(S)?p.current=S:pt(p.current,{select:!0})},x=function(w){if(g.paused||!i)return;const S=w.relatedTarget;S!==null&&(i.contains(S)||pt(p.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const R of w)R.removedNodes.length>0&&pt(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",x);const y=new MutationObserver(b);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),y.disconnect()}}},[n,i,g.paused]),d.useEffect(()=>{if(i){Ii.add(g);const v=document.activeElement;if(!i.contains(v)){const b=new CustomEvent(Xo,ji);i.addEventListener(Xo,u),i.dispatchEvent(b),b.defaultPrevented||(_h(Lh(cc(i)),{select:!0}),document.activeElement===v&&pt(i))}return()=>{i.removeEventListener(Xo,u),setTimeout(()=>{const b=new CustomEvent(Zo,ji);i.addEventListener(Zo,f),i.dispatchEvent(b),b.defaultPrevented||pt(v??document.body,{select:!0}),i.removeEventListener(Zo,f),Ii.remove(g)},0)}}},[i,u,f,g]);const h=d.useCallback(v=>{if(!r&&!n||g.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,b=document.activeElement;if(x&&b){const y=v.currentTarget,[w,S]=Oh(y);w&&S?!v.shiftKey&&b===S?(v.preventDefault(),r&&pt(w,{select:!0})):v.shiftKey&&b===w&&(v.preventDefault(),r&&pt(S,{select:!0})):b===y&&v.preventDefault()}},[r,n,g.paused]);return l.jsx(re.div,{tabIndex:-1,...s,ref:m,onKeyDown:h})});Qr.displayName=Ah;function _h(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(pt(n,{select:t}),document.activeElement!==r)return}function Oh(e){const t=cc(e),r=Ti(t,e),n=Ti(t.reverse(),e);return[r,n]}function cc(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ti(e,t){for(const r of e)if(!Mh(r,{upTo:t}))return r}function Mh(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 Dh(e){return e instanceof HTMLInputElement&&"select"in e}function pt(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Dh(e)&&t&&e.select()}}var Ii=$h();function $h(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Ai(e,t),e.unshift(t)},remove(t){var r;e=Ai(e,t),(r=e[0])==null||r.resume()}}}function Ai(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Lh(e){return e.filter(t=>t.tagName!=="A")}var Ne=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},Fh=d[" useId ".trim().toString()]||(()=>{}),Vh=0;function be(e){const[t,r]=d.useState(Fh());return Ne(()=>{r(n=>n??String(Vh++))},[e]),t?`radix-${t}`:""}const Bh=["top","right","bottom","left"],vt=Math.min,De=Math.max,Vn=Math.round,kn=Math.floor,et=e=>({x:e,y:e}),Gh={left:"right",right:"left",bottom:"top",top:"bottom"},Wh={start:"end",end:"start"};function va(e,t,r){return De(e,vt(t,r))}function lt(e,t){return typeof e=="function"?e(t):e}function ct(e){return e.split("-")[0]}function vr(e){return e.split("-")[1]}function Wa(e){return e==="x"?"y":"x"}function za(e){return e==="y"?"height":"width"}const zh=new Set(["top","bottom"]);function Qe(e){return zh.has(ct(e))?"y":"x"}function qa(e){return Wa(Qe(e))}function qh(e,t,r){r===void 0&&(r=!1);const n=vr(e),o=qa(e),a=za(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Bn(s)),[s,Bn(s)]}function Hh(e){const t=Bn(e);return[ha(e),t,ha(t)]}function ha(e){return e.replace(/start|end/g,t=>Wh[t])}const _i=["left","right"],Oi=["right","left"],Uh=["top","bottom"],Kh=["bottom","top"];function Yh(e,t,r){switch(e){case"top":case"bottom":return r?t?Oi:_i:t?_i:Oi;case"left":case"right":return t?Uh:Kh;default:return[]}}function Xh(e,t,r,n){const o=vr(e);let a=Yh(ct(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(ha)))),a}function Bn(e){return e.replace(/left|right|bottom|top/g,t=>Gh[t])}function Zh(e){return{top:0,right:0,bottom:0,left:0,...e}}function uc(e){return typeof e!="number"?Zh(e):{top:e,right:e,bottom:e,left:e}}function Gn(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Mi(e,t,r){let{reference:n,floating:o}=e;const a=Qe(t),s=qa(t),i=za(s),c=ct(t),u=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,m=n[i]/2-o[i]/2;let g;switch(c){case"top":g={x:f,y:n.y-o.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-o.width,y:p};break;default:g={x:n.x,y:n.y}}switch(vr(t)){case"start":g[s]-=m*(r&&u?-1:1);break;case"end":g[s]+=m*(r&&u?-1:1);break}return g}const Jh=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,i=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Mi(u,n,c),m=n,g={},h=0;for(let v=0;v<i.length;v++){const{name:x,fn:b}=i[v],{x:y,y:w,data:S,reset:R}=await b({x:f,y:p,initialPlacement:n,placement:m,strategy:o,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});f=y??f,p=w??p,g={...g,[x]:{...g[x],...S}},R&&h<=50&&(h++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(u=R.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:f,y:p}=Mi(u,m,c)),v=-1)}return{x:f,y:p,placement:m,strategy:o,middlewareData:g}};async function Wr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:s,elements:i,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:m=!1,padding:g=0}=lt(t,e),h=uc(g),x=i[m?p==="floating"?"reference":"floating":p],b=Gn(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(x)))==null||r?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:c})),y=p==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),S=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},R=Gn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:w,strategy:c}):y);return{top:(b.top-R.top+h.top)/S.y,bottom:(R.bottom-b.bottom+h.bottom)/S.y,left:(b.left-R.left+h.left)/S.x,right:(R.right-b.right+h.right)/S.x}}const Qh=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:s,elements:i,middlewareData:c}=t,{element:u,padding:f=0}=lt(e,t)||{};if(u==null)return{};const p=uc(f),m={x:r,y:n},g=qa(o),h=za(g),v=await s.getDimensions(u),x=g==="y",b=x?"top":"left",y=x?"bottom":"right",w=x?"clientHeight":"clientWidth",S=a.reference[h]+a.reference[g]-m[g]-a.floating[h],R=m[g]-a.reference[g],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=P?P[w]:0;(!k||!await(s.isElement==null?void 0:s.isElement(P)))&&(k=i.floating[w]||a.floating[h]);const N=S/2-R/2,D=k/2-v[h]/2-1,B=vt(p[b],D),W=vt(p[y],D),Z=B,J=k-v[h]-W,z=k/2-v[h]/2+N,M=va(Z,z,J),_=!c.arrow&&vr(o)!=null&&z!==M&&a.reference[h]/2-(z<Z?B:W)-v[h]/2<0,$=_?z<Z?z-Z:z-J:0;return{[g]:m[g]+$,data:{[g]:M,centerOffset:z-M-$,..._&&{alignmentOffset:$}},reset:_}}}),ex=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:s,initialPlacement:i,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...x}=lt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const b=ct(o),y=Qe(i),w=ct(i)===i,S=await(c.isRTL==null?void 0:c.isRTL(u.floating)),R=m||(w||!v?[Bn(i)]:Hh(i)),P=h!=="none";!m&&P&&R.push(...Xh(i,v,h,S));const k=[i,...R],N=await Wr(t,x),D=[];let B=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&D.push(N[b]),p){const z=qh(o,s,S);D.push(N[z[0]],N[z[1]])}if(B=[...B,{placement:o,overflows:D}],!D.every(z=>z<=0)){var W,Z;const z=(((W=a.flip)==null?void 0:W.index)||0)+1,M=k[z];if(M&&(!(p==="alignment"?y!==Qe(M):!1)||B.every(I=>Qe(I.placement)===y?I.overflows[0]>0:!0)))return{data:{index:z,overflows:B},reset:{placement:M}};let _=(Z=B.filter($=>$.overflows[0]<=0).sort(($,I)=>$.overflows[1]-I.overflows[1])[0])==null?void 0:Z.placement;if(!_)switch(g){case"bestFit":{var J;const $=(J=B.filter(I=>{if(P){const O=Qe(I.placement);return O===y||O==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(O=>O>0).reduce((O,H)=>O+H,0)]).sort((I,O)=>I[1]-O[1])[0])==null?void 0:J[0];$&&(_=$);break}case"initialPlacement":_=i;break}if(o!==_)return{reset:{placement:_}}}return{}}}};function Di(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $i(e){return Bh.some(t=>e[t]>=0)}const tx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=lt(e,t);switch(n){case"referenceHidden":{const a=await Wr(t,{...o,elementContext:"reference"}),s=Di(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:$i(s)}}}case"escaped":{const a=await Wr(t,{...o,altBoundary:!0}),s=Di(a,r.floating);return{data:{escapedOffsets:s,escaped:$i(s)}}}default:return{}}}}},dc=new Set(["left","top"]);async function rx(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=ct(r),i=vr(r),c=Qe(r)==="y",u=dc.has(s)?-1:1,f=a&&c?-1:1,p=lt(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:h}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return i&&typeof h=="number"&&(g=i==="end"?h*-1:h),c?{x:g*f,y:m*u}:{x:m*u,y:g*f}}const nx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:s,middlewareData:i}=t,c=await rx(t,e);return s===((r=i.offset)==null?void 0:r.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:s}}}}},ox=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:i={fn:x=>{let{x:b,y}=x;return{x:b,y}}},...c}=lt(e,t),u={x:r,y:n},f=await Wr(t,c),p=Qe(ct(o)),m=Wa(p);let g=u[m],h=u[p];if(a){const x=m==="y"?"top":"left",b=m==="y"?"bottom":"right",y=g+f[x],w=g-f[b];g=va(y,g,w)}if(s){const x=p==="y"?"top":"left",b=p==="y"?"bottom":"right",y=h+f[x],w=h-f[b];h=va(y,h,w)}const v=i.fn({...t,[m]:g,[p]:h});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[m]:a,[p]:s}}}}}},ax=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:i=0,mainAxis:c=!0,crossAxis:u=!0}=lt(e,t),f={x:r,y:n},p=Qe(o),m=Wa(p);let g=f[m],h=f[p];const v=lt(i,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const w=m==="y"?"height":"width",S=a.reference[m]-a.floating[w]+x.mainAxis,R=a.reference[m]+a.reference[w]-x.mainAxis;g<S?g=S:g>R&&(g=R)}if(u){var b,y;const w=m==="y"?"width":"height",S=dc.has(ct(o)),R=a.reference[p]-a.floating[w]+(S&&((b=s.offset)==null?void 0:b[p])||0)+(S?0:x.crossAxis),P=a.reference[p]+a.reference[w]+(S?0:((y=s.offset)==null?void 0:y[p])||0)-(S?x.crossAxis:0);h<R?h=R:h>P&&(h=P)}return{[m]:g,[p]:h}}}},sx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:s,elements:i}=t,{apply:c=()=>{},...u}=lt(e,t),f=await Wr(t,u),p=ct(o),m=vr(o),g=Qe(o)==="y",{width:h,height:v}=a.floating;let x,b;p==="top"||p==="bottom"?(x=p,b=m===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(b=p,x=m==="end"?"top":"bottom");const y=v-f.top-f.bottom,w=h-f.left-f.right,S=vt(v-f[x],y),R=vt(h-f[b],w),P=!t.middlewareData.shift;let k=S,N=R;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(k=y),P&&!m){const B=De(f.left,0),W=De(f.right,0),Z=De(f.top,0),J=De(f.bottom,0);g?N=h-2*(B!==0||W!==0?B+W:De(f.left,f.right)):k=v-2*(Z!==0||J!==0?Z+J:De(f.top,f.bottom))}await c({...t,availableWidth:N,availableHeight:k});const D=await s.getDimensions(i.floating);return h!==D.width||v!==D.height?{reset:{rects:!0}}:{}}}};function lo(){return typeof window<"u"}function hr(e){return fc(e)?(e.nodeName||"").toLowerCase():"#document"}function $e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rt(e){var t;return(t=(fc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fc(e){return lo()?e instanceof Node||e instanceof $e(e).Node:!1}function qe(e){return lo()?e instanceof Element||e instanceof $e(e).Element:!1}function tt(e){return lo()?e instanceof HTMLElement||e instanceof $e(e).HTMLElement:!1}function Li(e){return!lo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $e(e).ShadowRoot}const ix=new Set(["inline","contents"]);function en(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=He(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!ix.has(o)}const lx=new Set(["table","td","th"]);function cx(e){return lx.has(hr(e))}const ux=[":popover-open",":modal"];function co(e){return ux.some(t=>{try{return e.matches(t)}catch{return!1}})}const dx=["transform","translate","scale","rotate","perspective"],fx=["transform","translate","scale","rotate","perspective","filter"],px=["paint","layout","strict","content"];function Ha(e){const t=Ua(),r=qe(e)?He(e):e;return dx.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||fx.some(n=>(r.willChange||"").includes(n))||px.some(n=>(r.contain||"").includes(n))}function mx(e){let t=ht(e);for(;tt(t)&&!cr(t);){if(Ha(t))return t;if(co(t))return null;t=ht(t)}return null}function Ua(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const gx=new Set(["html","body","#document"]);function cr(e){return gx.has(hr(e))}function He(e){return $e(e).getComputedStyle(e)}function uo(e){return qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ht(e){if(hr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Li(e)&&e.host||rt(e);return Li(t)?t.host:t}function pc(e){const t=ht(e);return cr(t)?e.ownerDocument?e.ownerDocument.body:e.body:tt(t)&&en(t)?t:pc(t)}function zr(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=pc(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=$e(o);if(a){const i=xa(s);return t.concat(s,s.visualViewport||[],en(o)?o:[],i&&r?zr(i):[])}return t.concat(o,zr(o,[],r))}function xa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mc(e){const t=He(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=tt(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,i=Vn(r)!==a||Vn(n)!==s;return i&&(r=a,n=s),{width:r,height:n,$:i}}function Ka(e){return qe(e)?e:e.contextElement}function ir(e){const t=Ka(e);if(!tt(t))return et(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=mc(t);let s=(a?Vn(r.width):r.width)/n,i=(a?Vn(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!i||!Number.isFinite(i))&&(i=1),{x:s,y:i}}const vx=et(0);function gc(e){const t=$e(e);return!Ua()||!t.visualViewport?vx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hx(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==$e(e)?!1:t}function _t(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Ka(e);let s=et(1);t&&(n?qe(n)&&(s=ir(n)):s=ir(e));const i=hx(a,r,n)?gc(a):et(0);let c=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,f=o.width/s.x,p=o.height/s.y;if(a){const m=$e(a),g=n&&qe(n)?$e(n):n;let h=m,v=xa(h);for(;v&&n&&g!==h;){const x=ir(v),b=v.getBoundingClientRect(),y=He(v),w=b.left+(v.clientLeft+parseFloat(y.paddingLeft))*x.x,S=b.top+(v.clientTop+parseFloat(y.paddingTop))*x.y;c*=x.x,u*=x.y,f*=x.x,p*=x.y,c+=w,u+=S,h=$e(v),v=xa(h)}}return Gn({width:f,height:p,x:c,y:u})}function fo(e,t){const r=uo(e).scrollLeft;return t?t.left+r:_t(rt(e)).left+r}function vc(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-fo(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function xx(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",s=rt(n),i=t?co(t.floating):!1;if(n===s||i&&a)return r;let c={scrollLeft:0,scrollTop:0},u=et(1);const f=et(0),p=tt(n);if((p||!p&&!a)&&((hr(n)!=="body"||en(s))&&(c=uo(n)),tt(n))){const g=_t(n);u=ir(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const m=s&&!p&&!a?vc(s,c):et(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+m.x,y:r.y*u.y-c.scrollTop*u.y+f.y+m.y}}function bx(e){return Array.from(e.getClientRects())}function yx(e){const t=rt(e),r=uo(e),n=e.ownerDocument.body,o=De(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=De(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+fo(e);const i=-r.scrollTop;return He(n).direction==="rtl"&&(s+=De(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:i}}const Fi=25;function wx(e,t){const r=$e(e),n=rt(e),o=r.visualViewport;let a=n.clientWidth,s=n.clientHeight,i=0,c=0;if(o){a=o.width,s=o.height;const f=Ua();(!f||f&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}const u=fo(n);if(u<=0){const f=n.ownerDocument,p=f.body,m=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(n.clientWidth-p.clientWidth-g);h<=Fi&&(a-=h)}else u<=Fi&&(a+=u);return{width:a,height:s,x:i,y:c}}const Cx=new Set(["absolute","fixed"]);function Sx(e,t){const r=_t(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=tt(e)?ir(e):et(1),s=e.clientWidth*a.x,i=e.clientHeight*a.y,c=o*a.x,u=n*a.y;return{width:s,height:i,x:c,y:u}}function Vi(e,t,r){let n;if(t==="viewport")n=wx(e,r);else if(t==="document")n=yx(rt(e));else if(qe(t))n=Sx(t,r);else{const o=gc(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Gn(n)}function hc(e,t){const r=ht(e);return r===t||!qe(r)||cr(r)?!1:He(r).position==="fixed"||hc(r,t)}function Ex(e,t){const r=t.get(e);if(r)return r;let n=zr(e,[],!1).filter(i=>qe(i)&&hr(i)!=="body"),o=null;const a=He(e).position==="fixed";let s=a?ht(e):e;for(;qe(s)&&!cr(s);){const i=He(s),c=Ha(s);!c&&i.position==="fixed"&&(o=null),(a?!c&&!o:!c&&i.position==="static"&&!!o&&Cx.has(o.position)||en(s)&&!c&&hc(e,s))?n=n.filter(f=>f!==s):o=i,s=ht(s)}return t.set(e,n),n}function Rx(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?co(t)?[]:Ex(t,this._c):[].concat(r),n],i=s[0],c=s.reduce((u,f)=>{const p=Vi(t,f,o);return u.top=De(p.top,u.top),u.right=vt(p.right,u.right),u.bottom=vt(p.bottom,u.bottom),u.left=De(p.left,u.left),u},Vi(t,i,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function kx(e){const{width:t,height:r}=mc(e);return{width:t,height:r}}function Nx(e,t,r){const n=tt(t),o=rt(t),a=r==="fixed",s=_t(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const c=et(0);function u(){c.x=fo(o)}if(n||!n&&!a)if((hr(t)!=="body"||en(o))&&(i=uo(t)),n){const g=_t(t,!0,a,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&u();a&&!n&&o&&u();const f=o&&!n&&!a?vc(o,i):et(0),p=s.left+i.scrollLeft-c.x-f.x,m=s.top+i.scrollTop-c.y-f.y;return{x:p,y:m,width:s.width,height:s.height}}function Jo(e){return He(e).position==="static"}function Bi(e,t){if(!tt(e)||He(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return rt(e)===r&&(r=r.ownerDocument.body),r}function xc(e,t){const r=$e(e);if(co(e))return r;if(!tt(e)){let o=ht(e);for(;o&&!cr(o);){if(qe(o)&&!Jo(o))return o;o=ht(o)}return r}let n=Bi(e,t);for(;n&&cx(n)&&Jo(n);)n=Bi(n,t);return n&&cr(n)&&Jo(n)&&!Ha(n)?r:n||mx(e)||r}const Px=async function(e){const t=this.getOffsetParent||xc,r=this.getDimensions,n=await r(e.floating);return{reference:Nx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function jx(e){return He(e).direction==="rtl"}const Tx={convertOffsetParentRelativeRectToViewportRelativeRect:xx,getDocumentElement:rt,getClippingRect:Rx,getOffsetParent:xc,getElementRects:Px,getClientRects:bx,getDimensions:kx,getScale:ir,isElement:qe,isRTL:jx};function bc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ix(e,t){let r=null,n;const o=rt(e);function a(){var i;clearTimeout(n),(i=r)==null||i.disconnect(),r=null}function s(i,c){i===void 0&&(i=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:f,top:p,width:m,height:g}=u;if(i||t(),!m||!g)return;const h=kn(p),v=kn(o.clientWidth-(f+m)),x=kn(o.clientHeight-(p+g)),b=kn(f),w={rootMargin:-h+"px "+-v+"px "+-x+"px "+-b+"px",threshold:De(0,vt(1,c))||1};let S=!0;function R(P){const k=P[0].intersectionRatio;if(k!==c){if(!S)return s();k?s(!1,k):n=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!bc(u,e.getBoundingClientRect())&&s(),S=!1}try{r=new IntersectionObserver(R,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(R,w)}r.observe(e)}return s(!0),a}function Ax(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Ka(e),f=o||a?[...u?zr(u):[],...zr(t)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});const p=u&&i?Ix(u,r):null;let m=-1,g=null;s&&(g=new ResizeObserver(b=>{let[y]=b;y&&y.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),u&&!c&&g.observe(u),g.observe(t));let h,v=c?_t(e):null;c&&x();function x(){const b=_t(e);v&&!bc(v,b)&&r(),v=b,h=requestAnimationFrame(x)}return r(),()=>{var b;f.forEach(y=>{o&&y.removeEventListener("scroll",r),a&&y.removeEventListener("resize",r)}),p==null||p(),(b=g)==null||b.disconnect(),g=null,c&&cancelAnimationFrame(h)}}const _x=nx,Ox=ox,Mx=ex,Dx=sx,$x=tx,Gi=Qh,Lx=ax,Fx=(e,t,r)=>{const n=new Map,o={platform:Tx,...r},a={...o.platform,_c:n};return Jh(e,t,{...o,platform:a})};var Vx=typeof document<"u",Bx=function(){},On=Vx?E.useLayoutEffect:Bx;function Wn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Wn(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Wn(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function yc(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Wi(e,t){const r=yc(e);return Math.round(t*r)/r}function Qo(e){const t=d.useRef(e);return On(()=>{t.current=e}),t}function Gx(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:i=!0,whileElementsMounted:c,open:u}=e,[f,p]=d.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=d.useState(n);Wn(m,n)||g(n);const[h,v]=d.useState(null),[x,b]=d.useState(null),y=d.useCallback(I=>{I!==P.current&&(P.current=I,v(I))},[]),w=d.useCallback(I=>{I!==k.current&&(k.current=I,b(I))},[]),S=a||h,R=s||x,P=d.useRef(null),k=d.useRef(null),N=d.useRef(f),D=c!=null,B=Qo(c),W=Qo(o),Z=Qo(u),J=d.useCallback(()=>{if(!P.current||!k.current)return;const I={placement:t,strategy:r,middleware:m};W.current&&(I.platform=W.current),Fx(P.current,k.current,I).then(O=>{const H={...O,isPositioned:Z.current!==!1};z.current&&!Wn(N.current,H)&&(N.current=H,no.flushSync(()=>{p(H)}))})},[m,t,r,W,Z]);On(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[u]);const z=d.useRef(!1);On(()=>(z.current=!0,()=>{z.current=!1}),[]),On(()=>{if(S&&(P.current=S),R&&(k.current=R),S&&R){if(B.current)return B.current(S,R,J);J()}},[S,R,J,B,D]);const M=d.useMemo(()=>({reference:P,floating:k,setReference:y,setFloating:w}),[y,w]),_=d.useMemo(()=>({reference:S,floating:R}),[S,R]),$=d.useMemo(()=>{const I={position:r,left:0,top:0};if(!_.floating)return I;const O=Wi(_.floating,f.x),H=Wi(_.floating,f.y);return i?{...I,transform:"translate("+O+"px, "+H+"px)",...yc(_.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:O,top:H}},[r,i,_.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:J,refs:M,elements:_,floatingStyles:$}),[f,J,M,_,$])}const Wx=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Gi({element:n.current,padding:o}).fn(r):{}:n?Gi({element:n,padding:o}).fn(r):{}}}},zx=(e,t)=>({..._x(e),options:[e,t]}),qx=(e,t)=>({...Ox(e),options:[e,t]}),Hx=(e,t)=>({...Lx(e),options:[e,t]}),Ux=(e,t)=>({...Mx(e),options:[e,t]}),Kx=(e,t)=>({...Dx(e),options:[e,t]}),Yx=(e,t)=>({...$x(e),options:[e,t]}),Xx=(e,t)=>({...Wx(e),options:[e,t]});var Zx="Arrow",wc=d.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return l.jsx(re.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});wc.displayName=Zx;var Jx=wc;function po(e){const[t,r]=d.useState(void 0);return Ne(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,i;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,i=u.blockSize}else s=e.offsetWidth,i=e.offsetHeight;r({width:s,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Ya="Popper",[Cc,bt]=Pe(Ya),[Qx,Sc]=Cc(Ya),Ec=e=>{const{__scopePopper:t,children:r}=e,[n,o]=d.useState(null);return l.jsx(Qx,{scope:t,anchor:n,onAnchorChange:o,children:r})};Ec.displayName=Ya;var Rc="PopperAnchor",kc=d.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Sc(Rc,r),s=d.useRef(null),i=le(t,s),c=d.useRef(null);return d.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||s.current,u!==c.current&&a.onAnchorChange(c.current)}),n?null:l.jsx(re.div,{...o,ref:i})});kc.displayName=Rc;var Xa="PopperContent",[eb,tb]=Cc(Xa),Nc=d.forwardRef((e,t)=>{var j,G,U,ne,te,F;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:i=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:h,...v}=e,x=Sc(Xa,r),[b,y]=d.useState(null),w=le(t,ie=>y(ie)),[S,R]=d.useState(null),P=po(S),k=(P==null?void 0:P.width)??0,N=(P==null?void 0:P.height)??0,D=n+(a!=="center"?"-"+a:""),B=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},W=Array.isArray(u)?u:[u],Z=W.length>0,J={padding:B,boundary:W.filter(nb),altBoundary:Z},{refs:z,floatingStyles:M,placement:_,isPositioned:$,middlewareData:I}=Gx({strategy:"fixed",placement:D,whileElementsMounted:(...ie)=>Ax(...ie,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[zx({mainAxis:o+N,alignmentAxis:s}),c&&qx({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Hx():void 0,...J}),c&&Ux({...J}),Kx({...J,apply:({elements:ie,rects:fe,availableWidth:ge,availableHeight:xe})=>{const{width:Ee,height:Le}=fe.reference,Re=ie.floating.style;Re.setProperty("--radix-popper-available-width",`${ge}px`),Re.setProperty("--radix-popper-available-height",`${xe}px`),Re.setProperty("--radix-popper-anchor-width",`${Ee}px`),Re.setProperty("--radix-popper-anchor-height",`${Le}px`)}}),S&&Xx({element:S,padding:i}),ob({arrowWidth:k,arrowHeight:N}),m&&Yx({strategy:"referenceHidden",...J})]}),[O,H]=Tc(_),Q=ze(h);Ne(()=>{$&&(Q==null||Q())},[$,Q]);const A=(j=I.arrow)==null?void 0:j.x,q=(G=I.arrow)==null?void 0:G.y,X=((U=I.arrow)==null?void 0:U.centerOffset)!==0,[Y,L]=d.useState();return Ne(()=>{b&&L(window.getComputedStyle(b).zIndex)},[b]),l.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:$?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[(ne=I.transformOrigin)==null?void 0:ne.x,(te=I.transformOrigin)==null?void 0:te.y].join(" "),...((F=I.hide)==null?void 0:F.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(eb,{scope:r,placedSide:O,onArrowChange:R,arrowX:A,arrowY:q,shouldHideArrow:X,children:l.jsx(re.div,{"data-side":O,"data-align":H,...v,ref:w,style:{...v.style,animation:$?void 0:"none"}})})})});Nc.displayName=Xa;var Pc="PopperArrow",rb={top:"bottom",right:"left",bottom:"top",left:"right"},jc=d.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=tb(Pc,n),s=rb[a.placedSide];return l.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:l.jsx(Jx,{...o,ref:r,style:{...o.style,display:"block"}})})});jc.displayName=Pc;function nb(e){return e!==null}var ob=e=>({name:"transformOrigin",options:e,fn(t){var x,b,y;const{placement:r,rects:n,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,i=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,f]=Tc(r),p={start:"0%",center:"50%",end:"100%"}[f],m=(((b=o.arrow)==null?void 0:b.x)??0)+i/2,g=(((y=o.arrow)==null?void 0:y.y)??0)+c/2;let h="",v="";return u==="bottom"?(h=s?p:`${m}px`,v=`${-c}px`):u==="top"?(h=s?p:`${m}px`,v=`${n.floating.height+c}px`):u==="right"?(h=`${-c}px`,v=s?p:`${g}px`):u==="left"&&(h=`${n.floating.width+c}px`,v=s?p:`${g}px`),{data:{x:h,y:v}}}});function Tc(e){const[t,r="center"]=e.split("-");return[t,r]}var tn=Ec,rn=kc,mo=Nc,go=jc,ab="Portal",xr=d.forwardRef((e,t)=>{var i;const{container:r,...n}=e,[o,a]=d.useState(!1);Ne(()=>a(!0),[]);const s=r||o&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return s?Zr.createPortal(l.jsx(re.div,{...n,ref:t}),s):null});xr.displayName=ab;function sb(e){const t=ib(e),r=d.forwardRef((n,o)=>{const{children:a,...s}=n,i=d.Children.toArray(a),c=i.find(cb);if(c){const u=c.props.children,f=i.map(p=>p===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function ib(e){const t=d.forwardRef((r,n)=>{const{children:o,...a}=r;if(d.isValidElement(o)){const s=db(o),i=ub(a,o.props);return o.type!==d.Fragment&&(i.ref=n?Ae(n,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lb=Symbol("radix.slottable");function cb(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lb}function ub(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function db(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var fb=d[" useInsertionEffect ".trim().toString()]||Ne;function ke({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,s]=pb({defaultProp:t,onChange:r}),i=e!==void 0,c=i?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const p=f.current;p!==i&&console.warn(`${n} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,n])}const u=d.useCallback(f=>{var p;if(i){const m=mb(f)?f(e):f;m!==e&&((p=s.current)==null||p.call(s,m))}else a(f)},[i,e,a,s]);return[c,u]}function pb({defaultProp:e,onChange:t}){const[r,n]=d.useState(e),o=d.useRef(r),a=d.useRef(t);return fb(()=>{a.current=t},[t]),d.useEffect(()=>{var s;o.current!==r&&((s=a.current)==null||s.call(a,r),o.current=r)},[r,o]),[r,n,a]}function mb(e){return typeof e=="function"}function vo(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ic=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),gb="VisuallyHidden",Ac=d.forwardRef((e,t)=>l.jsx(re.span,{...e,ref:t,style:{...Ic,...e.style}}));Ac.displayName=gb;var vb=Ac,hb=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Qt=new WeakMap,Nn=new WeakMap,Pn={},ea=0,_c=function(e){return e&&(e.host||_c(e.parentNode))},xb=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=_c(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},bb=function(e,t,r,n){var o=xb(t,Array.isArray(e)?e:[e]);Pn[r]||(Pn[r]=new WeakMap);var a=Pn[r],s=[],i=new Set,c=new Set(o),u=function(p){!p||i.has(p)||(i.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(m){if(i.has(m))f(m);else try{var g=m.getAttribute(n),h=g!==null&&g!=="false",v=(Qt.get(m)||0)+1,x=(a.get(m)||0)+1;Qt.set(m,v),a.set(m,x),s.push(m),v===1&&h&&Nn.set(m,!0),x===1&&m.setAttribute(r,"true"),h||m.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",m,b)}})};return f(t),i.clear(),ea++,function(){s.forEach(function(p){var m=Qt.get(p)-1,g=a.get(p)-1;Qt.set(p,m),a.set(p,g),m||(Nn.has(p)||p.removeAttribute(n),Nn.delete(p)),g||p.removeAttribute(r)}),ea--,ea||(Qt=new WeakMap,Qt=new WeakMap,Nn=new WeakMap,Pn={})}},ho=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=hb(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),bb(n,o,r,"aria-hidden")):function(){return null}},Je=function(){return Je=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Je.apply(this,arguments)};function Oc(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function yb(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Mn="right-scroll-bar-position",Dn="width-before-scroll-bar",wb="with-scroll-bars-hidden",Cb="--removed-body-scroll-bar-size";function ta(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Sb(e,t){var r=E.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Eb=typeof window<"u"?d.useLayoutEffect:d.useEffect,zi=new WeakMap;function Rb(e,t){var r=Sb(null,function(n){return e.forEach(function(o){return ta(o,n)})});return Eb(function(){var n=zi.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(i){a.has(i)||ta(i,null)}),a.forEach(function(i){o.has(i)||ta(i,s)})}zi.set(r,e)},[e]),r}function kb(e){return e}function Nb(e,t){t===void 0&&(t=kb);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(i){return i!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(i){return a(i)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var i=r;r=[],i.forEach(a),s=r}var c=function(){var f=s;s=[],f.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),r}}}};return o}function Pb(e){e===void 0&&(e={});var t=Nb(null);return t.options=Je({async:!0,ssr:!1},e),t}var Mc=function(e){var t=e.sideCar,r=Oc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return d.createElement(n,Je({},r))};Mc.isSideCarExport=!0;function jb(e,t){return e.useMedium(t),Mc}var Dc=Pb(),ra=function(){},xo=d.forwardRef(function(e,t){var r=d.useRef(null),n=d.useState({onScrollCapture:ra,onWheelCapture:ra,onTouchMoveCapture:ra}),o=n[0],a=n[1],s=e.forwardProps,i=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,m=e.sideCar,g=e.noRelative,h=e.noIsolation,v=e.inert,x=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,w=e.gapMode,S=Oc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=m,P=Rb([r,t]),k=Je(Je({},S),o);return d.createElement(d.Fragment,null,f&&d.createElement(R,{sideCar:Dc,removeScrollBar:u,shards:p,noRelative:g,noIsolation:h,inert:v,setCallbacks:a,allowPinchZoom:!!x,lockRef:r,gapMode:w}),s?d.cloneElement(d.Children.only(i),Je(Je({},k),{ref:P})):d.createElement(y,Je({},k,{className:c,ref:P}),i))});xo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xo.classNames={fullWidth:Dn,zeroRight:Mn};var Tb=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ib(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Tb();return t&&e.setAttribute("nonce",t),e}function Ab(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _b(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ob=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Ib())&&(Ab(t,r),_b(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Mb=function(){var e=Ob();return function(t,r){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},$c=function(){var e=Mb(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Db={left:0,top:0,right:0,gap:0},na=function(e){return parseInt(e||"",10)||0},$b=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[na(r),na(n),na(o)]},Lb=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Db;var t=$b(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Fb=$c(),lr="data-scroll-locked",Vb=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,i=e.gap;return r===void 0&&(r="margin"),`
151
+ .`.concat(wb,` {
162
152
  overflow: hidden `).concat(n,`;
163
- padding-right: `).concat(l,"px ").concat(n,`;
153
+ padding-right: `).concat(i,"px ").concat(n,`;
164
154
  }
165
- body[`).concat(Yt,`] {
155
+ body[`).concat(lr,`] {
166
156
  overflow: hidden `).concat(n,`;
167
157
  overscroll-behavior: contain;
168
158
  `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
@@ -171,42 +161,42 @@ React keys must be passed directly to JSX without using spread:
171
161
  padding-right: `).concat(s,`px;
172
162
  margin-left:0;
173
163
  margin-top:0;
174
- margin-right: `).concat(l,"px ").concat(n,`;
175
- `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),`
164
+ margin-right: `).concat(i,"px ").concat(n,`;
165
+ `),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),`
176
166
  }
177
167
 
178
- .`).concat(nn,` {
179
- right: `).concat(l,"px ").concat(n,`;
168
+ .`).concat(Mn,` {
169
+ right: `).concat(i,"px ").concat(n,`;
180
170
  }
181
171
 
182
- .`).concat(on,` {
183
- margin-right: `).concat(l,"px ").concat(n,`;
172
+ .`).concat(Dn,` {
173
+ margin-right: `).concat(i,"px ").concat(n,`;
184
174
  }
185
175
 
186
- .`).concat(nn," .").concat(nn,` {
176
+ .`).concat(Mn," .").concat(Mn,` {
187
177
  right: 0 `).concat(n,`;
188
178
  }
189
179
 
190
- .`).concat(on," .").concat(on,` {
180
+ .`).concat(Dn," .").concat(Dn,` {
191
181
  margin-right: 0 `).concat(n,`;
192
182
  }
193
183
 
194
- body[`).concat(Yt,`] {
195
- `).concat(Jx,": ").concat(l,`px;
184
+ body[`).concat(lr,`] {
185
+ `).concat(Cb,": ").concat(i,`px;
196
186
  }
197
- `)},di=function(){var e=parseInt(document.body.getAttribute(Yt)||"0",10);return isFinite(e)?e:0},hb=function(){c.useEffect(function(){return document.body.setAttribute(Yt,(di()+1).toString()),function(){var e=di()-1;e<=0?document.body.removeAttribute(Yt):document.body.setAttribute(Yt,e.toString())}},[])},xb=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;hb();var a=c.useMemo(function(){return mb(o)},[o]);return c.createElement(gb,{styles:vb(a,!t,o,r?"":"!important")})},Fo=!1;if(typeof window<"u")try{var Zr=Object.defineProperty({},"passive",{get:function(){return Fo=!0,!0}});window.addEventListener("test",Zr,Zr),window.removeEventListener("test",Zr,Zr)}catch{Fo=!1}var Bt=Fo?{passive:!1}:!1,bb=function(e){return e.tagName==="TEXTAREA"},Ql=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!bb(e)&&r[t]==="visible")},yb=function(e){return Ql(e,"overflowY")},wb=function(e){return Ql(e,"overflowX")},ui=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=ec(e,n);if(o){var a=tc(e,n),s=a[1],l=a[2];if(s>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Cb=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Sb=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},ec=function(e,t){return e==="v"?yb(t):wb(t)},tc=function(e,t){return e==="v"?Cb(t):Sb(t)},Eb=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rb=function(e,t,r,n,o){var a=Eb(e,window.getComputedStyle(t).direction),s=a*n,l=r.target,d=t.contains(l),u=!1,f=s>0,p=0,m=0;do{if(!l)break;var g=tc(e,l),x=g[0],v=g[1],h=g[2],y=v-h-a*x;(x||y)&&ec(e,l)&&(p+=y,m+=x);var b=l.parentNode;l=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!d&&l!==document.body||d&&(t.contains(l)||t===l));return(f&&Math.abs(p)<1||!f&&Math.abs(m)<1)&&(u=!0),u},Jr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fi=function(e){return[e.deltaX,e.deltaY]},pi=function(e){return e&&"current"in e?e.current:e},kb=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Nb=function(e){return`
187
+ `)},qi=function(){var e=parseInt(document.body.getAttribute(lr)||"0",10);return isFinite(e)?e:0},Bb=function(){d.useEffect(function(){return document.body.setAttribute(lr,(qi()+1).toString()),function(){var e=qi()-1;e<=0?document.body.removeAttribute(lr):document.body.setAttribute(lr,e.toString())}},[])},Gb=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Bb();var a=d.useMemo(function(){return Lb(o)},[o]);return d.createElement(Fb,{styles:Vb(a,!t,o,r?"":"!important")})},ba=!1;if(typeof window<"u")try{var jn=Object.defineProperty({},"passive",{get:function(){return ba=!0,!0}});window.addEventListener("test",jn,jn),window.removeEventListener("test",jn,jn)}catch{ba=!1}var er=ba?{passive:!1}:!1,Wb=function(e){return e.tagName==="TEXTAREA"},Lc=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Wb(e)&&r[t]==="visible")},zb=function(e){return Lc(e,"overflowY")},qb=function(e){return Lc(e,"overflowX")},Hi=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Fc(e,n);if(o){var a=Vc(e,n),s=a[1],i=a[2];if(s>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Hb=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Ub=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Fc=function(e,t){return e==="v"?zb(t):qb(t)},Vc=function(e,t){return e==="v"?Hb(t):Ub(t)},Kb=function(e,t){return e==="h"&&t==="rtl"?-1:1},Yb=function(e,t,r,n,o){var a=Kb(e,window.getComputedStyle(t).direction),s=a*n,i=r.target,c=t.contains(i),u=!1,f=s>0,p=0,m=0;do{if(!i)break;var g=Vc(e,i),h=g[0],v=g[1],x=g[2],b=v-x-a*h;(h||b)&&Fc(e,i)&&(p+=b,m+=h);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(f&&Math.abs(p)<1||!f&&Math.abs(m)<1)&&(u=!0),u},Tn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ui=function(e){return[e.deltaX,e.deltaY]},Ki=function(e){return e&&"current"in e?e.current:e},Xb=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Zb=function(e){return`
198
188
  .block-interactivity-`.concat(e,` {pointer-events: none;}
199
189
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
200
- `)},jb=0,Wt=[];function Pb(e){var t=c.useRef([]),r=c.useRef([0,0]),n=c.useRef(),o=c.useState(jb++)[0],a=c.useState(Jl)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Xx([e.lockRef.current],(e.shards||[]).map(pi),!0).filter(Boolean);return v.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=c.useCallback(function(v,h){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var y=Jr(v),b=r.current,C="deltaX"in v?v.deltaX:b[0]-y[0],E="deltaY"in v?v.deltaY:b[1]-y[1],R,T=v.target,P=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in v&&P==="h"&&T.type==="range")return!1;var j=window.getSelection(),F=j&&j.anchorNode,q=F?F===T||F.contains(T):!1;if(q)return!1;var re=ui(P,T);if(!re)return!0;if(re?R=P:(R=P==="v"?"h":"v",re=ui(P,T)),!re)return!1;if(!n.current&&"changedTouches"in v&&(C||E)&&(n.current=R),!R)return!0;var te=n.current||R;return Rb(te,h,v,te==="h"?C:E)},[]),d=c.useCallback(function(v){var h=v;if(!(!Wt.length||Wt[Wt.length-1]!==a)){var y="deltaY"in h?fi(h):Jr(h),b=t.current.filter(function(R){return R.name===h.type&&(R.target===h.target||h.target===R.shadowParent)&&kb(R.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var C=(s.current.shards||[]).map(pi).filter(Boolean).filter(function(R){return R.contains(h.target)}),E=C.length>0?l(h,C[0]):!s.current.noIsolation;E&&h.cancelable&&h.preventDefault()}}},[]),u=c.useCallback(function(v,h,y,b){var C={name:v,delta:h,target:y,should:b,shadowParent:Tb(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),f=c.useCallback(function(v){r.current=Jr(v),n.current=void 0},[]),p=c.useCallback(function(v){u(v.type,fi(v),v.target,l(v,e.lockRef.current))},[]),m=c.useCallback(function(v){u(v.type,Jr(v),v.target,l(v,e.lockRef.current))},[]);c.useEffect(function(){return Wt.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",d,Bt),document.addEventListener("touchmove",d,Bt),document.addEventListener("touchstart",f,Bt),function(){Wt=Wt.filter(function(v){return v!==a}),document.removeEventListener("wheel",d,Bt),document.removeEventListener("touchmove",d,Bt),document.removeEventListener("touchstart",f,Bt)}},[]);var g=e.removeScrollBar,x=e.inert;return c.createElement(c.Fragment,null,x?c.createElement(a,{styles:Nb(o)}):null,g?c.createElement(xb,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Tb(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _b=ab(Zl,Pb);var Ar=c.forwardRef(function(e,t){return c.createElement(Fn,He({},e,{ref:t,sideCar:_b}))});Ar.classNames=Fn.classNames;var Ab=[" ","Enter","ArrowUp","ArrowDown"],Ib=[" ","Enter"],kt="Select",[Vn,Bn,Ob]=jn(kt),[ir]=we(kt,[Ob,pt]),Wn=pt(),[Mb,mt]=ir(kt),[Db,$b]=ir(kt),rc=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:l,onValueChange:d,dir:u,name:f,autoComplete:p,disabled:m,required:g,form:x}=e,v=Wn(t),[h,y]=c.useState(null),[b,C]=c.useState(null),[E,R]=c.useState(!1),T=At(u),[P,j]=be({prop:n,defaultProp:o??!1,onChange:a,caller:kt}),[F,q]=be({prop:s,defaultProp:l,onChange:d,caller:kt}),re=c.useRef(null),te=h?x||!!h.closest("form"):!0,[ee,W]=c.useState(new Set),D=Array.from(ee).map(I=>I.props.value).join(";");return i.jsx(Tr,{...v,children:i.jsxs(Mb,{required:g,scope:t,trigger:h,onTriggerChange:y,valueNode:b,onValueNodeChange:C,valueNodeHasChildren:E,onValueNodeHasChildrenChange:R,contentId:me(),value:F,onValueChange:q,open:P,onOpenChange:j,dir:T,triggerPointerDownPosRef:re,disabled:m,children:[i.jsx(Vn.Provider,{scope:t,children:i.jsx(Db,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(I=>{W($=>new Set($).add(I))},[]),onNativeOptionRemove:c.useCallback(I=>{W($=>{const N=new Set($);return N.delete(I),N})},[]),children:r})}),te?i.jsxs(Nc,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:F,onChange:I=>q(I.target.value),disabled:m,form:x,children:[F===void 0?i.jsx("option",{value:""}):null,Array.from(ee)]},D):null]})})};rc.displayName=kt;var nc="SelectTrigger",oc=c.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=Wn(r),s=mt(nc,r),l=s.disabled||n,d=ae(t,s.onTriggerChange),u=Bn(r),f=c.useRef("touch"),[p,m,g]=Pc(v=>{const h=u().filter(C=>!C.disabled),y=h.find(C=>C.value===s.value),b=Tc(h,v,y);b!==void 0&&s.onValueChange(b.value)}),x=v=>{l||(s.onOpenChange(!0),g()),v&&(s.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return i.jsx(_r,{asChild:!0,...a,children:i.jsx(K.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":jc(s.value)?"":void 0,...o,ref:d,onClick:V(o.onClick,v=>{v.currentTarget.focus(),f.current!=="mouse"&&x(v)}),onPointerDown:V(o.onPointerDown,v=>{f.current=v.pointerType;const h=v.target;h.hasPointerCapture(v.pointerId)&&h.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(x(v),v.preventDefault())}),onKeyDown:V(o.onKeyDown,v=>{const h=p.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&m(v.key),!(h&&v.key===" ")&&Ab.includes(v.key)&&(x(),v.preventDefault())})})})});oc.displayName=nc;var ac="SelectValue",sc=c.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...l}=e,d=mt(ac,r),{onValueNodeHasChildrenChange:u}=d,f=a!==void 0,p=ae(t,d.onValueNodeChange);return ye(()=>{u(f)},[u,f]),i.jsx(K.span,{...l,ref:p,style:{pointerEvents:"none"},children:jc(d.value)?i.jsx(i.Fragment,{children:s}):a})});sc.displayName=ac;var Lb="SelectIcon",ic=c.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return i.jsx(K.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});ic.displayName=Lb;var Fb="SelectPortal",lc=e=>i.jsx(sr,{asChild:!0,...e});lc.displayName=Fb;var Nt="SelectContent",cc=c.forwardRef((e,t)=>{const r=mt(Nt,e.__scopeSelect),[n,o]=c.useState();if(ye(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?Rn.createPortal(i.jsx(dc,{scope:e.__scopeSelect,children:i.jsx(Vn.Slot,{scope:e.__scopeSelect,children:i.jsx("div",{children:e.children})})}),a):null}return i.jsx(uc,{...e,ref:t})});cc.displayName=Nt;var De=10,[dc,gt]=ir(Nt),Vb="SelectContentImpl",Bb=Dx("SelectContent.RemoveScroll"),uc=c.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:l,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:g,sticky:x,hideWhenDetached:v,avoidCollisions:h,...y}=e,b=mt(Nt,r),[C,E]=c.useState(null),[R,T]=c.useState(null),P=ae(t,_=>E(_)),[j,F]=c.useState(null),[q,re]=c.useState(null),te=Bn(r),[ee,W]=c.useState(!1),D=c.useRef(!1);c.useEffect(()=>{if(C)return Ln(C)},[C]),Pn();const I=c.useCallback(_=>{const[H,...X]=te().map(se=>se.ref.current),[ne]=X.slice(-1),le=document.activeElement;for(const se of _)if(se===le||(se==null||se.scrollIntoView({block:"nearest"}),se===H&&R&&(R.scrollTop=0),se===ne&&R&&(R.scrollTop=R.scrollHeight),se==null||se.focus(),document.activeElement!==le))return},[te,R]),$=c.useCallback(()=>I([j,C]),[I,j,C]);c.useEffect(()=>{ee&&$()},[ee,$]);const{onOpenChange:N,triggerPointerDownPosRef:M}=b;c.useEffect(()=>{if(C){let _={x:0,y:0};const H=ne=>{var le,se;_={x:Math.abs(Math.round(ne.pageX)-(((le=M.current)==null?void 0:le.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((se=M.current)==null?void 0:se.y)??0))}},X=ne=>{_.x<=10&&_.y<=10?ne.preventDefault():C.contains(ne.target)||N(!1),document.removeEventListener("pointermove",H),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",H),document.addEventListener("pointerup",X,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",X,{capture:!0})}}},[C,N,M]),c.useEffect(()=>{const _=()=>N(!1);return window.addEventListener("blur",_),window.addEventListener("resize",_),()=>{window.removeEventListener("blur",_),window.removeEventListener("resize",_)}},[N]);const[G,Q]=Pc(_=>{const H=te().filter(le=>!le.disabled),X=H.find(le=>le.ref.current===document.activeElement),ne=Tc(H,_,X);ne&&setTimeout(()=>ne.ref.current.focus())}),A=c.useCallback((_,H,X)=>{const ne=!D.current&&!X;(b.value!==void 0&&b.value===H||ne)&&(F(_),ne&&(D.current=!0))},[b.value]),z=c.useCallback(()=>C==null?void 0:C.focus(),[C]),Y=c.useCallback((_,H,X)=>{const ne=!D.current&&!X;(b.value!==void 0&&b.value===H||ne)&&re(_)},[b.value]),B=n==="popper"?Vo:fc,O=B===Vo?{side:l,sideOffset:d,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:g,sticky:x,hideWhenDetached:v,avoidCollisions:h}:{};return i.jsx(dc,{scope:r,content:C,viewport:R,onViewportChange:T,itemRefCallback:A,selectedItem:j,onItemLeave:z,itemTextRefCallback:Y,focusSelectedItem:$,selectedItemText:q,position:n,isPositioned:ee,searchRef:G,children:i.jsx(Ar,{as:Bb,allowPinchZoom:!0,children:i.jsx(jr,{asChild:!0,trapped:b.open,onMountAutoFocus:_=>{_.preventDefault()},onUnmountAutoFocus:V(o,_=>{var H;(H=b.trigger)==null||H.focus({preventScroll:!0}),_.preventDefault()}),children:i.jsx(nr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:_=>_.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:i.jsx(B,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:_=>_.preventDefault(),...y,...O,onPlaced:()=>W(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:V(y.onKeyDown,_=>{const H=_.ctrlKey||_.altKey||_.metaKey;if(_.key==="Tab"&&_.preventDefault(),!H&&_.key.length===1&&Q(_.key),["ArrowUp","ArrowDown","Home","End"].includes(_.key)){let ne=te().filter(le=>!le.disabled).map(le=>le.ref.current);if(["ArrowUp","End"].includes(_.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(_.key)){const le=_.target,se=ne.indexOf(le);ne=ne.slice(se+1)}setTimeout(()=>I(ne)),_.preventDefault()}})})})})})})});uc.displayName=Vb;var Wb="SelectItemAlignedPosition",fc=c.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=mt(Nt,r),s=gt(Nt,r),[l,d]=c.useState(null),[u,f]=c.useState(null),p=ae(t,P=>f(P)),m=Bn(r),g=c.useRef(!1),x=c.useRef(!0),{viewport:v,selectedItem:h,selectedItemText:y,focusSelectedItem:b}=s,C=c.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&u&&v&&h&&y){const P=a.trigger.getBoundingClientRect(),j=u.getBoundingClientRect(),F=a.valueNode.getBoundingClientRect(),q=y.getBoundingClientRect();if(a.dir!=="rtl"){const le=q.left-j.left,se=F.left-le,Ee=P.left-se,Ae=P.width+Ee,Ge=Math.max(Ae,j.width),Me=window.innerWidth-De,at=Ws(se,[De,Math.max(De,Me-Ge)]);l.style.minWidth=Ae+"px",l.style.left=at+"px"}else{const le=j.right-q.right,se=window.innerWidth-F.right-le,Ee=window.innerWidth-P.right-se,Ae=P.width+Ee,Ge=Math.max(Ae,j.width),Me=window.innerWidth-De,at=Ws(se,[De,Math.max(De,Me-Ge)]);l.style.minWidth=Ae+"px",l.style.right=at+"px"}const re=m(),te=window.innerHeight-De*2,ee=v.scrollHeight,W=window.getComputedStyle(u),D=parseInt(W.borderTopWidth,10),I=parseInt(W.paddingTop,10),$=parseInt(W.borderBottomWidth,10),N=parseInt(W.paddingBottom,10),M=D+I+ee+N+$,G=Math.min(h.offsetHeight*5,M),Q=window.getComputedStyle(v),A=parseInt(Q.paddingTop,10),z=parseInt(Q.paddingBottom,10),Y=P.top+P.height/2-De,B=te-Y,O=h.offsetHeight/2,_=h.offsetTop+O,H=D+I+_,X=M-H;if(H<=Y){const le=re.length>0&&h===re[re.length-1].ref.current;l.style.bottom="0px";const se=u.clientHeight-v.offsetTop-v.offsetHeight,Ee=Math.max(B,O+(le?z:0)+se+$),Ae=H+Ee;l.style.height=Ae+"px"}else{const le=re.length>0&&h===re[0].ref.current;l.style.top="0px";const Ee=Math.max(Y,D+v.offsetTop+(le?A:0)+O)+X;l.style.height=Ee+"px",v.scrollTop=H-Y+v.offsetTop}l.style.margin=`${De}px 0`,l.style.minHeight=G+"px",l.style.maxHeight=te+"px",n==null||n(),requestAnimationFrame(()=>g.current=!0)}},[m,a.trigger,a.valueNode,l,u,v,h,y,a.dir,n]);ye(()=>C(),[C]);const[E,R]=c.useState();ye(()=>{u&&R(window.getComputedStyle(u).zIndex)},[u]);const T=c.useCallback(P=>{P&&x.current===!0&&(C(),b==null||b(),x.current=!1)},[C,b]);return i.jsx(zb,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:g,onScrollButtonChange:T,children:i.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:i.jsx(K.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});fc.displayName=Wb;var Gb="SelectPopperPosition",Vo=c.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=De,...a}=e,s=Wn(r);return i.jsx(Mn,{...s,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Vo.displayName=Gb;var[zb,ma]=ir(Nt,{}),Bo="SelectViewport",pc=c.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=gt(Bo,r),s=ma(Bo,r),l=ae(t,a.onViewportChange),d=c.useRef(0);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),i.jsx(Vn.Slot,{scope:r,children:i.jsx(K.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:V(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=s;if(m!=null&&m.current&&p){const g=Math.abs(d.current-f.scrollTop);if(g>0){const x=window.innerHeight-De*2,v=parseFloat(p.style.minHeight),h=parseFloat(p.style.height),y=Math.max(v,h);if(y<x){const b=y+g,C=Math.min(x,b),E=b-C;p.style.height=C+"px",p.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}d.current=f.scrollTop})})})]})});pc.displayName=Bo;var mc="SelectGroup",[qb,Hb]=ir(mc),gc=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=me();return i.jsx(qb,{scope:r,id:o,children:i.jsx(K.div,{role:"group","aria-labelledby":o,...n,ref:t})})});gc.displayName=mc;var vc="SelectLabel",hc=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Hb(vc,r);return i.jsx(K.div,{id:o.id,...n,ref:t})});hc.displayName=vc;var pn="SelectItem",[Ub,xc]=ir(pn),bc=c.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,l=mt(pn,r),d=gt(pn,r),u=l.value===n,[f,p]=c.useState(a??""),[m,g]=c.useState(!1),x=ae(t,b=>{var C;return(C=d.itemRefCallback)==null?void 0:C.call(d,b,n,o)}),v=me(),h=c.useRef("touch"),y=()=>{o||(l.onValueChange(n),l.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.jsx(Ub,{scope:r,value:n,disabled:o,textId:v,isSelected:u,onItemTextChange:c.useCallback(b=>{p(C=>C||((b==null?void 0:b.textContent)??"").trim())},[]),children:i.jsx(Vn.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:i.jsx(K.div,{role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:x,onFocus:V(s.onFocus,()=>g(!0)),onBlur:V(s.onBlur,()=>g(!1)),onClick:V(s.onClick,()=>{h.current!=="mouse"&&y()}),onPointerUp:V(s.onPointerUp,()=>{h.current==="mouse"&&y()}),onPointerDown:V(s.onPointerDown,b=>{h.current=b.pointerType}),onPointerMove:V(s.onPointerMove,b=>{var C;h.current=b.pointerType,o?(C=d.onItemLeave)==null||C.call(d):h.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:V(s.onPointerLeave,b=>{var C;b.currentTarget===document.activeElement&&((C=d.onItemLeave)==null||C.call(d))}),onKeyDown:V(s.onKeyDown,b=>{var E;((E=d.searchRef)==null?void 0:E.current)!==""&&b.key===" "||(Ib.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});bc.displayName=pn;var mr="SelectItemText",yc=c.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=mt(mr,r),l=gt(mr,r),d=xc(mr,r),u=$b(mr,r),[f,p]=c.useState(null),m=ae(t,y=>p(y),d.onItemTextChange,y=>{var b;return(b=l.itemTextRefCallback)==null?void 0:b.call(l,y,d.value,d.disabled)}),g=f==null?void 0:f.textContent,x=c.useMemo(()=>i.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:h}=u;return ye(()=>(v(x),()=>h(x)),[v,h,x]),i.jsxs(i.Fragment,{children:[i.jsx(K.span,{id:d.textId,...a,ref:m}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Rn.createPortal(a.children,s.valueNode):null]})});yc.displayName=mr;var wc="SelectItemIndicator",Cc=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return xc(wc,r).isSelected?i.jsx(K.span,{"aria-hidden":!0,...n,ref:t}):null});Cc.displayName=wc;var Wo="SelectScrollUpButton",Sc=c.forwardRef((e,t)=>{const r=gt(Wo,e.__scopeSelect),n=ma(Wo,e.__scopeSelect),[o,a]=c.useState(!1),s=ae(t,n.onScrollButtonChange);return ye(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=d.scrollTop>0;a(u)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?i.jsx(Rc,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop-d.offsetHeight)}}):null});Sc.displayName=Wo;var Go="SelectScrollDownButton",Ec=c.forwardRef((e,t)=>{const r=gt(Go,e.__scopeSelect),n=ma(Go,e.__scopeSelect),[o,a]=c.useState(!1),s=ae(t,n.onScrollButtonChange);return ye(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=d.scrollHeight-d.clientHeight,f=Math.ceil(d.scrollTop)<u;a(f)};const d=r.viewport;return l(),d.addEventListener("scroll",l),()=>d.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?i.jsx(Rc,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:d}=r;l&&d&&(l.scrollTop=l.scrollTop+d.offsetHeight)}}):null});Ec.displayName=Go;var Rc=c.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=gt("SelectScrollButton",r),s=c.useRef(null),l=Bn(r),d=c.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return c.useEffect(()=>()=>d(),[d]),ye(()=>{var f;const u=l().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[l]),i.jsx(K.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:V(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:V(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:V(o.onPointerLeave,()=>{d()})})}),Kb="SelectSeparator",kc=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return i.jsx(K.div,{"aria-hidden":!0,...n,ref:t})});kc.displayName=Kb;var zo="SelectArrow",Yb=c.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Wn(r),a=mt(zo,r),s=gt(zo,r);return a.open&&s.position==="popper"?i.jsx(Dn,{...o,...n,ref:t}):null});Yb.displayName=zo;var Xb="SelectBubbleInput",Nc=c.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=c.useRef(null),a=ae(n,o),s=$n(t);return c.useEffect(()=>{const l=o.current;if(!l)return;const d=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(d,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(l,t),l.dispatchEvent(p)}},[s,t]),i.jsx(K.select,{...r,style:{...Hl,...r.style},ref:a,defaultValue:t})});Nc.displayName=Xb;function jc(e){return e===""||e===void 0}function Pc(e){const t=$e(e),r=c.useRef(""),n=c.useRef(0),o=c.useCallback(s=>{const l=r.current+s;t(l),(function d(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>d(""),1e3))})(l)},[t]),a=c.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function Tc(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=Zb(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==r));const d=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==r?d:void 0}function Zb(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Jb=rc,_c=oc,Qb=sc,ey=ic,ty=lc,Ac=cc,ry=pc,ny=gc,Ic=hc,Oc=bc,oy=yc,ay=Cc,Mc=Sc,Dc=Ec,$c=kc;const sy=Jb,iy=ny,ly=Qb,Lc=c.forwardRef(({className:e,children:t,readOnly:r,...n},o)=>{const a=s=>{r&&s.preventDefault()};return i.jsxs(_c,{ref:o,"data-readonly":r||void 0,disabled:n.disabled,onPointerDown:n.disabled?n.onPointerDown:a,tabIndex:r?0:void 0,className:k(k("qodo qodo-select-trigger flex h-9 w-full min-w-0 items-center justify-between","rounded-md border bg-purple-muted-700 border-purple-muted-500","text-sm data-[placeholder]:text-muted-foreground [&:not([data-placeholder])]:text-purple-muted-300 md:text-sm selection:bg-primary selection:text-primary-foreground","px-3 py-1","shadow-xs transition-[color,box-shadow] outline-none focus-visible:!ring-ring/50 focus-visible:!ring-[3px]","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40","disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-purple-muted-700 disabled:border-purple-muted-500 disabled:text-purple-muted-400","data-[readonly]:opacity-100 data-[readonly]:bg-purple-muted-700 data-[readonly]:border-purple-muted-400 data-[readonly]:cursor-default data-[readonly]:text-purple-muted-200",e)),...n,children:[i.jsx("div",{className:"overflow-hidden whitespace-nowrap text-ellipsis",children:t}),i.jsx(ey,{asChild:!0,children:i.jsx(kn,{className:"h-4 w-4 text-purple-muted-300"})})]})});Lc.displayName=_c.displayName;const ga=c.forwardRef(({className:e,...t},r)=>i.jsx(Mc,{ref:r,className:k("qodo qodo-select-scroll-up-button flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(cv,{className:"h-4 w-4"})}));ga.displayName=Mc.displayName;const va=c.forwardRef(({className:e,...t},r)=>i.jsx(Dc,{ref:r,className:k("qodo qodo-select-scroll-down-button flex cursor-default items-center justify-center py-1",e),...t,children:i.jsx(kn,{className:"h-4 w-4"})}));va.displayName=Dc.displayName;const Fc=c.forwardRef(({className:e,children:t,position:r="popper",container:n=null,...o},a)=>i.jsx(ty,{container:n,children:i.jsxs(Ac,{ref:a,className:k("qodo qodo-select-content relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-purple-muted-600 border-purple-muted-500 text-purple-muted-300 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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[i.jsx(ga,{}),i.jsx(ry,{className:k("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-[var(--radix-select-trigger-width)]"),children:t}),i.jsx(va,{})]})}));Fc.displayName=Ac.displayName;const Vc=c.forwardRef(({className:e,...t},r)=>i.jsx(Ic,{ref:r,className:k("qodo qodo-select-label py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Vc.displayName=Ic.displayName;const Bc=c.forwardRef(({className:e,children:t,...r},n)=>i.jsxs(Oc,{ref:n,title:r.value,className:k(k("qodo qodo-select-item relative w-full cursor-default select-none rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-purple-muted-500 focus:text-purple-100 text-purple-100","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","block overflow-hidden whitespace-nowrap text-ellipsis"),e),...r,children:[i.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 mt-0.5",children:i.jsx(ay,{children:i.jsx(rr,{className:"h-4 w-4"})})}),i.jsx(oy,{children:t})]}));Bc.displayName=Oc.displayName;const Wc=c.forwardRef(({className:e,...t},r)=>i.jsx($c,{ref:r,className:k("qodo qodo-select-separator -mx-1 my-1 h-px bg-muted",e),...t}));Wc.displayName=$c.displayName;var mi=1,cy=.9,dy=.8,uy=.17,Eo=.1,Ro=.999,fy=.9999,py=.99,my=/[\\\/_+.#"@\[\(\{&]/,gy=/[\\\/_+.#"@\[\(\{&]/g,vy=/[\s-]/,Gc=/[\s-]/g;function qo(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?mi:py;var l=`${o},${a}`;if(s[l]!==void 0)return s[l];for(var d=n.charAt(a),u=r.indexOf(d,o),f=0,p,m,g,x;u>=0;)p=qo(e,t,r,n,u+1,a+1,s),p>f&&(u===o?p*=mi:my.test(e.charAt(u-1))?(p*=dy,g=e.slice(o,u-1).match(gy),g&&o>0&&(p*=Math.pow(Ro,g.length))):vy.test(e.charAt(u-1))?(p*=cy,x=e.slice(o,u-1).match(Gc),x&&o>0&&(p*=Math.pow(Ro,x.length))):(p*=uy,o>0&&(p*=Math.pow(Ro,u-o))),e.charAt(u)!==t.charAt(a)&&(p*=fy)),(p<Eo&&r.charAt(u-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(u-1)!==n.charAt(a))&&(m=qo(e,t,r,n,u+1,a+2,s),m*Eo>p&&(p=m*Eo)),p>f&&(f=p),u=r.indexOf(d,u+1);return s[l]=f,f}function gi(e){return e.toLowerCase().replace(Gc," ")}function hy(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,qo(e,t,gi(e),gi(t),0,0,{})}function xy(e,t){return c.useReducer((r,n)=>t[r][n]??r,e)}var Ce=e=>{const{present:t,children:r}=e,n=by(t),o=typeof r=="function"?r({present:n.isPresent}):c.Children.only(r),a=ae(n.ref,yy(o));return typeof r=="function"||n.isPresent?c.cloneElement(o,{ref:a}):null};Ce.displayName="Presence";function by(e){const[t,r]=c.useState(),n=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),s=e?"mounted":"unmounted",[l,d]=xy(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=Qr(n.current);a.current=l==="mounted"?u:"none"},[l]),ye(()=>{const u=n.current,f=o.current;if(f!==e){const m=a.current,g=Qr(u);e?d("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(f&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),ye(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=g=>{const v=Qr(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&v&&(d("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},m=g=>{g.target===t&&(a.current=Qr(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function Qr(e){return(e==null?void 0:e.animationName)||"none"}function yy(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function wy(e){const t=Cy(e),r=c.forwardRef((n,o)=>{const{children:a,...s}=n,l=c.Children.toArray(a),d=l.find(Ey);if(d){const u=d.props.children,f=l.map(p=>p===d?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return i.jsx(t,{...s,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return i.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Cy(e){const t=c.forwardRef((r,n)=>{const{children:o,...a}=r;if(c.isValidElement(o)){const s=ky(o),l=Ry(a,o.props);return o.type!==c.Fragment&&(l.ref=n?ke(n,s):s),c.cloneElement(o,l)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sy=Symbol("radix.slottable");function Ey(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sy}function Ry(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{const d=a(...l);return o(...l),d}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ky(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Gn="Dialog",[zc]=we(Gn),[Ny,Ve]=zc(Gn),qc=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=c.useRef(null),d=c.useRef(null),[u,f]=be({prop:n,defaultProp:o??!1,onChange:a,caller:Gn});return i.jsx(Ny,{scope:t,triggerRef:l,contentRef:d,contentId:me(),titleId:me(),descriptionId:me(),open:u,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(p=>!p),[f]),modal:s,children:r})};qc.displayName=Gn;var Hc="DialogTrigger",Uc=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ve(Hc,r),a=ae(t,o.triggerRef);return i.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ba(o.open),...n,ref:a,onClick:V(e.onClick,o.onOpenToggle)})});Uc.displayName=Hc;var ha="DialogPortal",[jy,Kc]=zc(ha,{forceMount:void 0}),Yc=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=Ve(ha,t);return i.jsx(jy,{scope:t,forceMount:r,children:c.Children.map(n,s=>i.jsx(Ce,{present:r||a.open,children:i.jsx(sr,{asChild:!0,container:o,children:s})}))})};Yc.displayName=ha;var mn="DialogOverlay",Xc=c.forwardRef((e,t)=>{const r=Kc(mn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ve(mn,e.__scopeDialog);return a.modal?i.jsx(Ce,{present:n||a.open,children:i.jsx(Ty,{...o,ref:t})}):null});Xc.displayName=mn;var Py=wy("DialogOverlay.RemoveScroll"),Ty=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ve(mn,r);return i.jsx(Ar,{as:Py,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(K.div,{"data-state":ba(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),jt="DialogContent",Zc=c.forwardRef((e,t)=>{const r=Kc(jt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ve(jt,e.__scopeDialog);return i.jsx(Ce,{present:n||a.open,children:a.modal?i.jsx(_y,{...o,ref:t}):i.jsx(Ay,{...o,ref:t})})});Zc.displayName=jt;var _y=c.forwardRef((e,t)=>{const r=Ve(jt,e.__scopeDialog),n=c.useRef(null),o=ae(t,r.contentRef,n);return c.useEffect(()=>{const a=n.current;if(a)return Ln(a)},[]),i.jsx(Jc,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&a.preventDefault()}),onFocusOutside:V(e.onFocusOutside,a=>a.preventDefault())})}),Ay=c.forwardRef((e,t)=>{const r=Ve(jt,e.__scopeDialog),n=c.useRef(!1),o=c.useRef(!1);return i.jsx(Jc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Jc=c.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,l=Ve(jt,r),d=c.useRef(null),u=ae(t,d);return Pn(),i.jsxs(i.Fragment,{children:[i.jsx(jr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:i.jsx(nr,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":ba(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(Iy,{titleId:l.titleId}),i.jsx(My,{contentRef:d,descriptionId:l.descriptionId})]})]})}),xa="DialogTitle",Qc=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ve(xa,r);return i.jsx(K.h2,{id:o.titleId,...n,ref:t})});Qc.displayName=xa;var ed="DialogDescription",td=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ve(ed,r);return i.jsx(K.p,{id:o.descriptionId,...n,ref:t})});td.displayName=ed;var rd="DialogClose",nd=c.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ve(rd,r);return i.jsx(K.button,{type:"button",...n,ref:t,onClick:V(e.onClick,()=>o.onOpenChange(!1))})});nd.displayName=rd;function ba(e){return e?"open":"closed"}var od="DialogTitleWarning",[UN,ad]=Fv(od,{contentName:jt,titleName:xa,docsSlug:"dialog"}),Iy=({titleId:e})=>{const t=ad(od),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
190
+ `)},Jb=0,tr=[];function Qb(e){var t=d.useRef([]),r=d.useRef([0,0]),n=d.useRef(),o=d.useState(Jb++)[0],a=d.useState($c)[0],s=d.useRef(e);d.useEffect(function(){s.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=yb([e.lockRef.current],(e.shards||[]).map(Ki),!0).filter(Boolean);return v.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(v,x){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var b=Tn(v),y=r.current,w="deltaX"in v?v.deltaX:y[0]-b[0],S="deltaY"in v?v.deltaY:y[1]-b[1],R,P=v.target,k=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in v&&k==="h"&&P.type==="range")return!1;var N=window.getSelection(),D=N&&N.anchorNode,B=D?D===P||D.contains(P):!1;if(B)return!1;var W=Hi(k,P);if(!W)return!0;if(W?R=k:(R=k==="v"?"h":"v",W=Hi(k,P)),!W)return!1;if(!n.current&&"changedTouches"in v&&(w||S)&&(n.current=R),!R)return!0;var Z=n.current||R;return Yb(Z,x,v,Z==="h"?w:S)},[]),c=d.useCallback(function(v){var x=v;if(!(!tr.length||tr[tr.length-1]!==a)){var b="deltaY"in x?Ui(x):Tn(x),y=t.current.filter(function(R){return R.name===x.type&&(R.target===x.target||x.target===R.shadowParent)&&Xb(R.delta,b)})[0];if(y&&y.should){x.cancelable&&x.preventDefault();return}if(!y){var w=(s.current.shards||[]).map(Ki).filter(Boolean).filter(function(R){return R.contains(x.target)}),S=w.length>0?i(x,w[0]):!s.current.noIsolation;S&&x.cancelable&&x.preventDefault()}}},[]),u=d.useCallback(function(v,x,b,y){var w={name:v,delta:x,target:b,should:y,shadowParent:ey(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),f=d.useCallback(function(v){r.current=Tn(v),n.current=void 0},[]),p=d.useCallback(function(v){u(v.type,Ui(v),v.target,i(v,e.lockRef.current))},[]),m=d.useCallback(function(v){u(v.type,Tn(v),v.target,i(v,e.lockRef.current))},[]);d.useEffect(function(){return tr.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",c,er),document.addEventListener("touchmove",c,er),document.addEventListener("touchstart",f,er),function(){tr=tr.filter(function(v){return v!==a}),document.removeEventListener("wheel",c,er),document.removeEventListener("touchmove",c,er),document.removeEventListener("touchstart",f,er)}},[]);var g=e.removeScrollBar,h=e.inert;return d.createElement(d.Fragment,null,h?d.createElement(a,{styles:Zb(o)}):null,g?d.createElement(Gb,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ey(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ty=jb(Dc,Qb);var nn=d.forwardRef(function(e,t){return d.createElement(xo,Je({},e,{ref:t,sideCar:ty}))});nn.classNames=xo.classNames;var ry=[" ","Enter","ArrowUp","ArrowDown"],ny=[" ","Enter"],Ot="Select",[bo,yo,oy]=so(Ot),[br]=Pe(Ot,[oy,bt]),wo=bt(),[ay,yt]=br(Ot),[sy,iy]=br(Ot),Bc=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:s,defaultValue:i,onValueChange:c,dir:u,name:f,autoComplete:p,disabled:m,required:g,form:h}=e,v=wo(t),[x,b]=d.useState(null),[y,w]=d.useState(null),[S,R]=d.useState(!1),P=Gt(u),[k,N]=ke({prop:n,defaultProp:o??!1,onChange:a,caller:Ot}),[D,B]=ke({prop:s,defaultProp:i,onChange:c,caller:Ot}),W=d.useRef(null),Z=x?h||!!x.closest("form"):!0,[J,z]=d.useState(new Set),M=Array.from(J).map(_=>_.props.value).join(";");return l.jsx(tn,{...v,children:l.jsxs(ay,{required:g,scope:t,trigger:x,onTriggerChange:b,valueNode:y,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:R,contentId:be(),value:D,onValueChange:B,open:k,onOpenChange:N,dir:P,triggerPointerDownPosRef:W,disabled:m,children:[l.jsx(bo.Provider,{scope:t,children:l.jsx(sy,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(_=>{z($=>new Set($).add(_))},[]),onNativeOptionRemove:d.useCallback(_=>{z($=>{const I=new Set($);return I.delete(_),I})},[]),children:r})}),Z?l.jsxs(fu,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:D,onChange:_=>B(_.target.value),disabled:m,form:h,children:[D===void 0?l.jsx("option",{value:""}):null,Array.from(J)]},M):null]})})};Bc.displayName=Ot;var Gc="SelectTrigger",Wc=d.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=wo(r),s=yt(Gc,r),i=s.disabled||n,c=le(t,s.onTriggerChange),u=yo(r),f=d.useRef("touch"),[p,m,g]=mu(v=>{const x=u().filter(w=>!w.disabled),b=x.find(w=>w.value===s.value),y=gu(x,v,b);y!==void 0&&s.onValueChange(y.value)}),h=v=>{i||(s.onOpenChange(!0),g()),v&&(s.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return l.jsx(rn,{asChild:!0,...a,children:l.jsx(re.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":pu(s.value)?"":void 0,...o,ref:c,onClick:K(o.onClick,v=>{v.currentTarget.focus(),f.current!=="mouse"&&h(v)}),onPointerDown:K(o.onPointerDown,v=>{f.current=v.pointerType;const x=v.target;x.hasPointerCapture(v.pointerId)&&x.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(h(v),v.preventDefault())}),onKeyDown:K(o.onKeyDown,v=>{const x=p.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&m(v.key),!(x&&v.key===" ")&&ry.includes(v.key)&&(h(),v.preventDefault())})})})});Wc.displayName=Gc;var zc="SelectValue",qc=d.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:s="",...i}=e,c=yt(zc,r),{onValueNodeHasChildrenChange:u}=c,f=a!==void 0,p=le(t,c.onValueNodeChange);return Ne(()=>{u(f)},[u,f]),l.jsx(re.span,{...i,ref:p,style:{pointerEvents:"none"},children:pu(c.value)?l.jsx(l.Fragment,{children:s}):a})});qc.displayName=zc;var ly="SelectIcon",Hc=d.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return l.jsx(re.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Hc.displayName=ly;var cy="SelectPortal",Uc=e=>l.jsx(xr,{asChild:!0,...e});Uc.displayName=cy;var Mt="SelectContent",Kc=d.forwardRef((e,t)=>{const r=yt(Mt,e.__scopeSelect),[n,o]=d.useState();if(Ne(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?no.createPortal(l.jsx(Yc,{scope:e.__scopeSelect,children:l.jsx(bo.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),a):null}return l.jsx(Xc,{...e,ref:t})});Kc.displayName=Mt;var Ge=10,[Yc,wt]=br(Mt),uy="SelectContentImpl",dy=sb("SelectContent.RemoveScroll"),Xc=d.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:g,sticky:h,hideWhenDetached:v,avoidCollisions:x,...b}=e,y=yt(Mt,r),[w,S]=d.useState(null),[R,P]=d.useState(null),k=le(t,j=>S(j)),[N,D]=d.useState(null),[B,W]=d.useState(null),Z=yo(r),[J,z]=d.useState(!1),M=d.useRef(!1);d.useEffect(()=>{if(w)return ho(w)},[w]),io();const _=d.useCallback(j=>{const[G,...U]=Z().map(F=>F.ref.current),[ne]=U.slice(-1),te=document.activeElement;for(const F of j)if(F===te||(F==null||F.scrollIntoView({block:"nearest"}),F===G&&R&&(R.scrollTop=0),F===ne&&R&&(R.scrollTop=R.scrollHeight),F==null||F.focus(),document.activeElement!==te))return},[Z,R]),$=d.useCallback(()=>_([N,w]),[_,N,w]);d.useEffect(()=>{J&&$()},[J,$]);const{onOpenChange:I,triggerPointerDownPosRef:O}=y;d.useEffect(()=>{if(w){let j={x:0,y:0};const G=ne=>{var te,F;j={x:Math.abs(Math.round(ne.pageX)-(((te=O.current)==null?void 0:te.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((F=O.current)==null?void 0:F.y)??0))}},U=ne=>{j.x<=10&&j.y<=10?ne.preventDefault():w.contains(ne.target)||I(!1),document.removeEventListener("pointermove",G),O.current=null};return O.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",U,{capture:!0})}}},[w,I,O]),d.useEffect(()=>{const j=()=>I(!1);return window.addEventListener("blur",j),window.addEventListener("resize",j),()=>{window.removeEventListener("blur",j),window.removeEventListener("resize",j)}},[I]);const[H,Q]=mu(j=>{const G=Z().filter(te=>!te.disabled),U=G.find(te=>te.ref.current===document.activeElement),ne=gu(G,j,U);ne&&setTimeout(()=>ne.ref.current.focus())}),A=d.useCallback((j,G,U)=>{const ne=!M.current&&!U;(y.value!==void 0&&y.value===G||ne)&&(D(j),ne&&(M.current=!0))},[y.value]),q=d.useCallback(()=>w==null?void 0:w.focus(),[w]),X=d.useCallback((j,G,U)=>{const ne=!M.current&&!U;(y.value!==void 0&&y.value===G||ne)&&W(j)},[y.value]),Y=n==="popper"?ya:Zc,L=Y===ya?{side:i,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:g,sticky:h,hideWhenDetached:v,avoidCollisions:x}:{};return l.jsx(Yc,{scope:r,content:w,viewport:R,onViewportChange:P,itemRefCallback:A,selectedItem:N,onItemLeave:q,itemTextRefCallback:X,focusSelectedItem:$,selectedItemText:B,position:n,isPositioned:J,searchRef:H,children:l.jsx(nn,{as:dy,allowPinchZoom:!0,children:l.jsx(Qr,{asChild:!0,trapped:y.open,onMountAutoFocus:j=>{j.preventDefault()},onUnmountAutoFocus:K(o,j=>{var G;(G=y.trigger)==null||G.focus({preventScroll:!0}),j.preventDefault()}),children:l.jsx(gr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:j=>j.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:l.jsx(Y,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:j=>j.preventDefault(),...b,...L,onPlaced:()=>z(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:K(b.onKeyDown,j=>{const G=j.ctrlKey||j.altKey||j.metaKey;if(j.key==="Tab"&&j.preventDefault(),!G&&j.key.length===1&&Q(j.key),["ArrowUp","ArrowDown","Home","End"].includes(j.key)){let ne=Z().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(j.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(j.key)){const te=j.target,F=ne.indexOf(te);ne=ne.slice(F+1)}setTimeout(()=>_(ne)),j.preventDefault()}})})})})})})});Xc.displayName=uy;var fy="SelectItemAlignedPosition",Zc=d.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=yt(Mt,r),s=wt(Mt,r),[i,c]=d.useState(null),[u,f]=d.useState(null),p=le(t,k=>f(k)),m=yo(r),g=d.useRef(!1),h=d.useRef(!0),{viewport:v,selectedItem:x,selectedItemText:b,focusSelectedItem:y}=s,w=d.useCallback(()=>{if(a.trigger&&a.valueNode&&i&&u&&v&&x&&b){const k=a.trigger.getBoundingClientRect(),N=u.getBoundingClientRect(),D=a.valueNode.getBoundingClientRect(),B=b.getBoundingClientRect();if(a.dir!=="rtl"){const te=B.left-N.left,F=D.left-te,ie=k.left-F,fe=k.width+ie,ge=Math.max(fe,N.width),xe=window.innerWidth-Ge,Ee=Si(F,[Ge,Math.max(Ge,xe-ge)]);i.style.minWidth=fe+"px",i.style.left=Ee+"px"}else{const te=N.right-B.right,F=window.innerWidth-D.right-te,ie=window.innerWidth-k.right-F,fe=k.width+ie,ge=Math.max(fe,N.width),xe=window.innerWidth-Ge,Ee=Si(F,[Ge,Math.max(Ge,xe-ge)]);i.style.minWidth=fe+"px",i.style.right=Ee+"px"}const W=m(),Z=window.innerHeight-Ge*2,J=v.scrollHeight,z=window.getComputedStyle(u),M=parseInt(z.borderTopWidth,10),_=parseInt(z.paddingTop,10),$=parseInt(z.borderBottomWidth,10),I=parseInt(z.paddingBottom,10),O=M+_+J+I+$,H=Math.min(x.offsetHeight*5,O),Q=window.getComputedStyle(v),A=parseInt(Q.paddingTop,10),q=parseInt(Q.paddingBottom,10),X=k.top+k.height/2-Ge,Y=Z-X,L=x.offsetHeight/2,j=x.offsetTop+L,G=M+_+j,U=O-G;if(G<=X){const te=W.length>0&&x===W[W.length-1].ref.current;i.style.bottom="0px";const F=u.clientHeight-v.offsetTop-v.offsetHeight,ie=Math.max(Y,L+(te?q:0)+F+$),fe=G+ie;i.style.height=fe+"px"}else{const te=W.length>0&&x===W[0].ref.current;i.style.top="0px";const ie=Math.max(X,M+v.offsetTop+(te?A:0)+L)+U;i.style.height=ie+"px",v.scrollTop=G-X+v.offsetTop}i.style.margin=`${Ge}px 0`,i.style.minHeight=H+"px",i.style.maxHeight=Z+"px",n==null||n(),requestAnimationFrame(()=>g.current=!0)}},[m,a.trigger,a.valueNode,i,u,v,x,b,a.dir,n]);Ne(()=>w(),[w]);const[S,R]=d.useState();Ne(()=>{u&&R(window.getComputedStyle(u).zIndex)},[u]);const P=d.useCallback(k=>{k&&h.current===!0&&(w(),y==null||y(),h.current=!1)},[w,y]);return l.jsx(my,{scope:r,contentWrapper:i,shouldExpandOnScrollRef:g,onScrollButtonChange:P,children:l.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:l.jsx(re.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Zc.displayName=fy;var py="SelectPopperPosition",ya=d.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Ge,...a}=e,s=wo(r);return l.jsx(mo,{...s,...a,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ya.displayName=py;var[my,Za]=br(Mt,{}),wa="SelectViewport",Jc=d.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=wt(wa,r),s=Za(wa,r),i=le(t,a.onViewportChange),c=d.useRef(0);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),l.jsx(bo.Slot,{scope:r,children:l.jsx(re.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:K(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:m}=s;if(m!=null&&m.current&&p){const g=Math.abs(c.current-f.scrollTop);if(g>0){const h=window.innerHeight-Ge*2,v=parseFloat(p.style.minHeight),x=parseFloat(p.style.height),b=Math.max(v,x);if(b<h){const y=b+g,w=Math.min(h,y),S=y-w;p.style.height=w+"px",p.style.bottom==="0px"&&(f.scrollTop=S>0?S:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Jc.displayName=wa;var Qc="SelectGroup",[gy,vy]=br(Qc),eu=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=be();return l.jsx(gy,{scope:r,id:o,children:l.jsx(re.div,{role:"group","aria-labelledby":o,...n,ref:t})})});eu.displayName=Qc;var tu="SelectLabel",ru=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=vy(tu,r);return l.jsx(re.div,{id:o.id,...n,ref:t})});ru.displayName=tu;var zn="SelectItem",[hy,nu]=br(zn),ou=d.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...s}=e,i=yt(zn,r),c=wt(zn,r),u=i.value===n,[f,p]=d.useState(a??""),[m,g]=d.useState(!1),h=le(t,y=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,y,n,o)}),v=be(),x=d.useRef("touch"),b=()=>{o||(i.onValueChange(n),i.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return l.jsx(hy,{scope:r,value:n,disabled:o,textId:v,isSelected:u,onItemTextChange:d.useCallback(y=>{p(w=>w||((y==null?void 0:y.textContent)??"").trim())},[]),children:l.jsx(bo.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:l.jsx(re.div,{role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":u&&m,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:h,onFocus:K(s.onFocus,()=>g(!0)),onBlur:K(s.onBlur,()=>g(!1)),onClick:K(s.onClick,()=>{x.current!=="mouse"&&b()}),onPointerUp:K(s.onPointerUp,()=>{x.current==="mouse"&&b()}),onPointerDown:K(s.onPointerDown,y=>{x.current=y.pointerType}),onPointerMove:K(s.onPointerMove,y=>{var w;x.current=y.pointerType,o?(w=c.onItemLeave)==null||w.call(c):x.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:K(s.onPointerLeave,y=>{var w;y.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:K(s.onKeyDown,y=>{var S;((S=c.searchRef)==null?void 0:S.current)!==""&&y.key===" "||(ny.includes(y.key)&&b(),y.key===" "&&y.preventDefault())})})})})});ou.displayName=zn;var Or="SelectItemText",au=d.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,s=yt(Or,r),i=wt(Or,r),c=nu(Or,r),u=iy(Or,r),[f,p]=d.useState(null),m=le(t,b=>p(b),c.onItemTextChange,b=>{var y;return(y=i.itemTextRefCallback)==null?void 0:y.call(i,b,c.value,c.disabled)}),g=f==null?void 0:f.textContent,h=d.useMemo(()=>l.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:x}=u;return Ne(()=>(v(h),()=>x(h)),[v,x,h]),l.jsxs(l.Fragment,{children:[l.jsx(re.span,{id:c.textId,...a,ref:m}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?no.createPortal(a.children,s.valueNode):null]})});au.displayName=Or;var su="SelectItemIndicator",iu=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return nu(su,r).isSelected?l.jsx(re.span,{"aria-hidden":!0,...n,ref:t}):null});iu.displayName=su;var Ca="SelectScrollUpButton",lu=d.forwardRef((e,t)=>{const r=wt(Ca,e.__scopeSelect),n=Za(Ca,e.__scopeSelect),[o,a]=d.useState(!1),s=le(t,n.onScrollButtonChange);return Ne(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=c.scrollTop>0;a(u)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?l.jsx(uu,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop-c.offsetHeight)}}):null});lu.displayName=Ca;var Sa="SelectScrollDownButton",cu=d.forwardRef((e,t)=>{const r=wt(Sa,e.__scopeSelect),n=Za(Sa,e.__scopeSelect),[o,a]=d.useState(!1),s=le(t,n.onScrollButtonChange);return Ne(()=>{if(r.viewport&&r.isPositioned){let i=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;a(f)};const c=r.viewport;return i(),c.addEventListener("scroll",i),()=>c.removeEventListener("scroll",i)}},[r.viewport,r.isPositioned]),o?l.jsx(uu,{...e,ref:s,onAutoScroll:()=>{const{viewport:i,selectedItem:c}=r;i&&c&&(i.scrollTop=i.scrollTop+c.offsetHeight)}}):null});cu.displayName=Sa;var uu=d.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=wt("SelectScrollButton",r),s=d.useRef(null),i=yo(r),c=d.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return d.useEffect(()=>()=>c(),[c]),Ne(()=>{var f;const u=i().find(p=>p.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[i]),l.jsx(re.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:K(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(n,50))}),onPointerMove:K(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),s.current===null&&(s.current=window.setInterval(n,50))}),onPointerLeave:K(o.onPointerLeave,()=>{c()})})}),xy="SelectSeparator",du=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return l.jsx(re.div,{"aria-hidden":!0,...n,ref:t})});du.displayName=xy;var Ea="SelectArrow",by=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=wo(r),a=yt(Ea,r),s=wt(Ea,r);return a.open&&s.position==="popper"?l.jsx(go,{...o,...n,ref:t}):null});by.displayName=Ea;var yy="SelectBubbleInput",fu=d.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=d.useRef(null),a=le(n,o),s=vo(t);return d.useEffect(()=>{const i=o.current;if(!i)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&f){const p=new Event("change",{bubbles:!0});f.call(i,t),i.dispatchEvent(p)}},[s,t]),l.jsx(re.select,{...r,style:{...Ic,...r.style},ref:a,defaultValue:t})});fu.displayName=yy;function pu(e){return e===""||e===void 0}function mu(e){const t=ze(e),r=d.useRef(""),n=d.useRef(0),o=d.useCallback(s=>{const i=r.current+s;t(i),(function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(i)},[t]),a=d.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function gu(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=wy(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==r));const c=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function wy(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Cy=Bc,vu=Wc,Sy=qc,Ey=Hc,Ry=Uc,hu=Kc,ky=Jc,Ny=eu,xu=ru,bu=ou,Py=au,jy=iu,yu=lu,wu=cu,Cu=du;const Ty=Cy,Iy=Ny,Ay=Sy,Su=d.forwardRef(({className:e,children:t,readOnly:r,...n},o)=>{const a=s=>{r&&s.preventDefault()};return l.jsxs(vu,{ref:o,"data-readonly":r||void 0,disabled:n.disabled,onPointerDown:n.disabled?n.onPointerDown:a,tabIndex:r?0:void 0,className:T(T("qodo qodo-select-trigger flex h-9 w-full min-w-0 items-center justify-between","rounded-md border bg-purple-muted-700 border-purple-muted-500","text-sm data-[placeholder]:text-muted-foreground [&:not([data-placeholder])]:text-purple-muted-300 md:text-sm selection:bg-primary selection:text-primary-foreground","px-3 py-1","shadow-xs transition-[color,box-shadow] outline-none focus-visible:!ring-ring/50 focus-visible:!ring-[3px]","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40","disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-purple-muted-700 disabled:border-purple-muted-500 disabled:text-purple-muted-400","data-[readonly]:opacity-100 data-[readonly]:bg-purple-muted-700 data-[readonly]:border-purple-muted-400 data-[readonly]:cursor-default data-[readonly]:text-purple-muted-200",e)),...n,children:[l.jsx("div",{className:"overflow-hidden whitespace-nowrap text-ellipsis",children:t}),l.jsx(Ey,{asChild:!0,children:l.jsx(oo,{className:"h-4 w-4 text-purple-muted-300"})})]})});Su.displayName=vu.displayName;const Ja=d.forwardRef(({className:e,...t},r)=>l.jsx(yu,{ref:r,className:T("qodo qodo-select-scroll-up-button flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx($v,{className:"h-4 w-4"})}));Ja.displayName=yu.displayName;const Qa=d.forwardRef(({className:e,...t},r)=>l.jsx(wu,{ref:r,className:T("qodo qodo-select-scroll-down-button flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(oo,{className:"h-4 w-4"})}));Qa.displayName=wu.displayName;const Eu=d.forwardRef(({className:e,children:t,position:r="popper",container:n=null,...o},a)=>l.jsx(Ry,{container:n,children:l.jsxs(hu,{ref:a,className:T("qodo qodo-select-content relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-purple-muted-600 border-purple-muted-500 text-purple-muted-300 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",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...o,children:[l.jsx(Ja,{}),l.jsx(ky,{className:T("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-[var(--radix-select-trigger-width)]"),children:t}),l.jsx(Qa,{})]})}));Eu.displayName=hu.displayName;const Ru=d.forwardRef(({className:e,...t},r)=>l.jsx(xu,{ref:r,className:T("qodo qodo-select-label py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Ru.displayName=xu.displayName;const ku=d.forwardRef(({className:e,children:t,...r},n)=>l.jsxs(bu,{ref:n,title:r.value,className:T(T("qodo qodo-select-item relative w-full cursor-default select-none rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-purple-muted-500 focus:text-purple-100 text-purple-100","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","block overflow-hidden whitespace-nowrap text-ellipsis"),e),...r,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 mt-0.5",children:l.jsx(jy,{children:l.jsx(mr,{className:"h-4 w-4"})})}),l.jsx(Py,{children:t})]}));ku.displayName=bu.displayName;const Nu=d.forwardRef(({className:e,...t},r)=>l.jsx(Cu,{ref:r,className:T("qodo qodo-select-separator -mx-1 my-1 h-px bg-muted",e),...t}));Nu.displayName=Cu.displayName;var Yi=1,_y=.9,Oy=.8,My=.17,oa=.1,aa=.999,Dy=.9999,$y=.99,Ly=/[\\\/_+.#"@\[\(\{&]/,Fy=/[\\\/_+.#"@\[\(\{&]/g,Vy=/[\s-]/,Pu=/[\s-]/g;function Ra(e,t,r,n,o,a,s){if(a===t.length)return o===e.length?Yi:$y;var i=`${o},${a}`;if(s[i]!==void 0)return s[i];for(var c=n.charAt(a),u=r.indexOf(c,o),f=0,p,m,g,h;u>=0;)p=Ra(e,t,r,n,u+1,a+1,s),p>f&&(u===o?p*=Yi:Ly.test(e.charAt(u-1))?(p*=Oy,g=e.slice(o,u-1).match(Fy),g&&o>0&&(p*=Math.pow(aa,g.length))):Vy.test(e.charAt(u-1))?(p*=_y,h=e.slice(o,u-1).match(Pu),h&&o>0&&(p*=Math.pow(aa,h.length))):(p*=My,o>0&&(p*=Math.pow(aa,u-o))),e.charAt(u)!==t.charAt(a)&&(p*=Dy)),(p<oa&&r.charAt(u-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(u-1)!==n.charAt(a))&&(m=Ra(e,t,r,n,u+1,a+2,s),m*oa>p&&(p=m*oa)),p>f&&(f=p),u=r.indexOf(c,u+1);return s[i]=f,f}function Xi(e){return e.toLowerCase().replace(Pu," ")}function By(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,Ra(e,t,Xi(e),Xi(t),0,0,{})}function Gy(e,t){return d.useReducer((r,n)=>t[r][n]??r,e)}var je=e=>{const{present:t,children:r}=e,n=Wy(t),o=typeof r=="function"?r({present:n.isPresent}):d.Children.only(r),a=le(n.ref,zy(o));return typeof r=="function"||n.isPresent?d.cloneElement(o,{ref:a}):null};je.displayName="Presence";function Wy(e){const[t,r]=d.useState(),n=d.useRef(null),o=d.useRef(e),a=d.useRef("none"),s=e?"mounted":"unmounted",[i,c]=Gy(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=In(n.current);a.current=i==="mounted"?u:"none"},[i]),Ne(()=>{const u=n.current,f=o.current;if(f!==e){const m=a.current,g=In(u);e?c("MOUNT"):g==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ne(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=g=>{const v=In(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&v&&(c("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=g=>{g.target===t&&(a.current=In(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function In(e){return(e==null?void 0:e.animationName)||"none"}function zy(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function qy(e){const t=Hy(e),r=d.forwardRef((n,o)=>{const{children:a,...s}=n,i=d.Children.toArray(a),c=i.find(Ky);if(c){const u=c.props.children,f=i.map(p=>p===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Hy(e){const t=d.forwardRef((r,n)=>{const{children:o,...a}=r;if(d.isValidElement(o)){const s=Xy(o),i=Yy(a,o.props);return o.type!==d.Fragment&&(i.ref=n?Ae(n,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Uy=Symbol("radix.slottable");function Ky(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Uy}function Yy(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Xy(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Co="Dialog",[ju]=Pe(Co),[Zy,Ue]=ju(Co),Tu=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,i=d.useRef(null),c=d.useRef(null),[u,f]=ke({prop:n,defaultProp:o??!1,onChange:a,caller:Co});return l.jsx(Zy,{scope:t,triggerRef:i,contentRef:c,contentId:be(),titleId:be(),descriptionId:be(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(p=>!p),[f]),modal:s,children:r})};Tu.displayName=Co;var Iu="DialogTrigger",Au=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ue(Iu,r),a=le(t,o.triggerRef);return l.jsx(re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":rs(o.open),...n,ref:a,onClick:K(e.onClick,o.onOpenToggle)})});Au.displayName=Iu;var es="DialogPortal",[Jy,_u]=ju(es,{forceMount:void 0}),Ou=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=Ue(es,t);return l.jsx(Jy,{scope:t,forceMount:r,children:d.Children.map(n,s=>l.jsx(je,{present:r||a.open,children:l.jsx(xr,{asChild:!0,container:o,children:s})}))})};Ou.displayName=es;var qn="DialogOverlay",Mu=d.forwardRef((e,t)=>{const r=_u(qn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ue(qn,e.__scopeDialog);return a.modal?l.jsx(je,{present:n||a.open,children:l.jsx(ew,{...o,ref:t})}):null});Mu.displayName=qn;var Qy=qy("DialogOverlay.RemoveScroll"),ew=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ue(qn,r);return l.jsx(nn,{as:Qy,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(re.div,{"data-state":rs(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Dt="DialogContent",Du=d.forwardRef((e,t)=>{const r=_u(Dt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Ue(Dt,e.__scopeDialog);return l.jsx(je,{present:n||a.open,children:a.modal?l.jsx(tw,{...o,ref:t}):l.jsx(rw,{...o,ref:t})})});Du.displayName=Dt;var tw=d.forwardRef((e,t)=>{const r=Ue(Dt,e.__scopeDialog),n=d.useRef(null),o=le(t,r.contentRef,n);return d.useEffect(()=>{const a=n.current;if(a)return ho(a)},[]),l.jsx($u,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:K(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),(s=r.triggerRef.current)==null||s.focus()}),onPointerDownOutside:K(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,i=s.button===0&&s.ctrlKey===!0;(s.button===2||i)&&a.preventDefault()}),onFocusOutside:K(e.onFocusOutside,a=>a.preventDefault())})}),rw=d.forwardRef((e,t)=>{const r=Ue(Dt,e.__scopeDialog),n=d.useRef(!1),o=d.useRef(!1);return l.jsx($u,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),$u=d.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...s}=e,i=Ue(Dt,r),c=d.useRef(null),u=le(t,c);return io(),l.jsxs(l.Fragment,{children:[l.jsx(Qr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:l.jsx(gr,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":rs(i.open),...s,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(nw,{titleId:i.titleId}),l.jsx(aw,{contentRef:c,descriptionId:i.descriptionId})]})]})}),ts="DialogTitle",Lu=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ue(ts,r);return l.jsx(re.h2,{id:o.titleId,...n,ref:t})});Lu.displayName=ts;var Fu="DialogDescription",Vu=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ue(Fu,r);return l.jsx(re.p,{id:o.descriptionId,...n,ref:t})});Vu.displayName=Fu;var Bu="DialogClose",Gu=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ue(Bu,r);return l.jsx(re.button,{type:"button",...n,ref:t,onClick:K(e.onClick,()=>o.onOpenChange(!1))})});Gu.displayName=Bu;function rs(e){return e?"open":"closed"}var Wu="DialogTitleWarning",[nj,zu]=ch(Wu,{contentName:Dt,titleName:ts,docsSlug:"dialog"}),nw=({titleId:e})=>{const t=zu(Wu),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
201
191
 
202
192
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
203
193
 
204
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Oy="DialogDescriptionWarning",My=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ad(Oy).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(n))},[n,e,t]),null},sd=qc,Dy=Uc,id=Yc,ld=Xc,cd=Zc,$y=Qc,Ly=td,dd=nd,fr='[cmdk-group=""]',ko='[cmdk-group-items=""]',Fy='[cmdk-group-heading=""]',ud='[cmdk-item=""]',vi=`${ud}:not([aria-disabled="true"])`,Ho="cmdk-item-select",zt="data-value",Vy=(e,t,r)=>hy(e,t,r),fd=c.createContext(void 0),Ir=()=>c.useContext(fd),pd=c.createContext(void 0),ya=()=>c.useContext(pd),md=c.createContext(void 0),gd=c.forwardRef((e,t)=>{let r=qt(()=>{var A,z;return{search:"",value:(z=(A=e.value)!=null?A:e.defaultValue)!=null?z:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=qt(()=>new Set),o=qt(()=>new Map),a=qt(()=>new Map),s=qt(()=>new Set),l=vd(e),{label:d,children:u,value:f,onValueChange:p,filter:m,shouldFilter:g,loop:x,disablePointerSelection:v=!1,vimBindings:h=!0,...y}=e,b=me(),C=me(),E=me(),R=c.useRef(null),T=Zy();Pt(()=>{if(f!==void 0){let A=f.trim();r.current.value=A,P.emit()}},[f]),Pt(()=>{T(6,ee)},[]);let P=c.useMemo(()=>({subscribe:A=>(s.current.add(A),()=>s.current.delete(A)),snapshot:()=>r.current,setState:(A,z,Y)=>{var B,O,_,H;if(!Object.is(r.current[A],z)){if(r.current[A]=z,A==="search")te(),q(),T(1,re);else if(A==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let X=document.getElementById(E);X?X.focus():(B=document.getElementById(b))==null||B.focus()}if(T(7,()=>{var X;r.current.selectedItemId=(X=W())==null?void 0:X.id,P.emit()}),Y||T(5,ee),((O=l.current)==null?void 0:O.value)!==void 0){let X=z??"";(H=(_=l.current).onValueChange)==null||H.call(_,X);return}}P.emit()}},emit:()=>{s.current.forEach(A=>A())}}),[]),j=c.useMemo(()=>({value:(A,z,Y)=>{var B;z!==((B=a.current.get(A))==null?void 0:B.value)&&(a.current.set(A,{value:z,keywords:Y}),r.current.filtered.items.set(A,F(z,Y)),T(2,()=>{q(),P.emit()}))},item:(A,z)=>(n.current.add(A),z&&(o.current.has(z)?o.current.get(z).add(A):o.current.set(z,new Set([A]))),T(3,()=>{te(),q(),r.current.value||re(),P.emit()}),()=>{a.current.delete(A),n.current.delete(A),r.current.filtered.items.delete(A);let Y=W();T(4,()=>{te(),(Y==null?void 0:Y.getAttribute("id"))===A&&re(),P.emit()})}),group:A=>(o.current.has(A)||o.current.set(A,new Set),()=>{a.current.delete(A),o.current.delete(A)}),filter:()=>l.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:E,labelId:C,listInnerRef:R}),[]);function F(A,z){var Y,B;let O=(B=(Y=l.current)==null?void 0:Y.filter)!=null?B:Vy;return A?O(A,r.current.search,z):0}function q(){if(!r.current.search||l.current.shouldFilter===!1)return;let A=r.current.filtered.items,z=[];r.current.filtered.groups.forEach(B=>{let O=o.current.get(B),_=0;O.forEach(H=>{let X=A.get(H);_=Math.max(X,_)}),z.push([B,_])});let Y=R.current;D().sort((B,O)=>{var _,H;let X=B.getAttribute("id"),ne=O.getAttribute("id");return((_=A.get(ne))!=null?_:0)-((H=A.get(X))!=null?H:0)}).forEach(B=>{let O=B.closest(ko);O?O.appendChild(B.parentElement===O?B:B.closest(`${ko} > *`)):Y.appendChild(B.parentElement===Y?B:B.closest(`${ko} > *`))}),z.sort((B,O)=>O[1]-B[1]).forEach(B=>{var O;let _=(O=R.current)==null?void 0:O.querySelector(`${fr}[${zt}="${encodeURIComponent(B[0])}"]`);_==null||_.parentElement.appendChild(_)})}function re(){let A=D().find(Y=>Y.getAttribute("aria-disabled")!=="true"),z=A==null?void 0:A.getAttribute(zt);P.setState("value",z||void 0)}function te(){var A,z,Y,B;if(!r.current.search||l.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let O=0;for(let _ of n.current){let H=(z=(A=a.current.get(_))==null?void 0:A.value)!=null?z:"",X=(B=(Y=a.current.get(_))==null?void 0:Y.keywords)!=null?B:[],ne=F(H,X);r.current.filtered.items.set(_,ne),ne>0&&O++}for(let[_,H]of o.current)for(let X of H)if(r.current.filtered.items.get(X)>0){r.current.filtered.groups.add(_);break}r.current.filtered.count=O}function ee(){var A,z,Y;let B=W();B&&(((A=B.parentElement)==null?void 0:A.firstChild)===B&&((Y=(z=B.closest(fr))==null?void 0:z.querySelector(Fy))==null||Y.scrollIntoView({block:"nearest"})),B.scrollIntoView({block:"nearest"}))}function W(){var A;return(A=R.current)==null?void 0:A.querySelector(`${ud}[aria-selected="true"]`)}function D(){var A;return Array.from(((A=R.current)==null?void 0:A.querySelectorAll(vi))||[])}function I(A){let z=D()[A];z&&P.setState("value",z.getAttribute(zt))}function $(A){var z;let Y=W(),B=D(),O=B.findIndex(H=>H===Y),_=B[O+A];(z=l.current)!=null&&z.loop&&(_=O+A<0?B[B.length-1]:O+A===B.length?B[0]:B[O+A]),_&&P.setState("value",_.getAttribute(zt))}function N(A){let z=W(),Y=z==null?void 0:z.closest(fr),B;for(;Y&&!B;)Y=A>0?Yy(Y,fr):Xy(Y,fr),B=Y==null?void 0:Y.querySelector(vi);B?P.setState("value",B.getAttribute(zt)):$(A)}let M=()=>I(D().length-1),G=A=>{A.preventDefault(),A.metaKey?M():A.altKey?N(1):$(1)},Q=A=>{A.preventDefault(),A.metaKey?I(0):A.altKey?N(-1):$(-1)};return c.createElement(K.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:A=>{var z;(z=y.onKeyDown)==null||z.call(y,A);let Y=A.nativeEvent.isComposing||A.keyCode===229;if(!(A.defaultPrevented||Y))switch(A.key){case"n":case"j":{h&&A.ctrlKey&&G(A);break}case"ArrowDown":{G(A);break}case"p":case"k":{h&&A.ctrlKey&&Q(A);break}case"ArrowUp":{Q(A);break}case"Home":{A.preventDefault(),I(0);break}case"End":{A.preventDefault(),M();break}case"Enter":{A.preventDefault();let B=W();if(B){let O=new Event(Ho);B.dispatchEvent(O)}}}}},c.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:Qy},d),zn(e,A=>c.createElement(pd.Provider,{value:P},c.createElement(fd.Provider,{value:j},A))))}),By=c.forwardRef((e,t)=>{var r,n;let o=me(),a=c.useRef(null),s=c.useContext(md),l=Ir(),d=vd(e),u=(n=(r=d.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;Pt(()=>{if(!u)return l.item(o,s==null?void 0:s.id)},[u]);let f=hd(o,a,[e.value,e.children,a],e.keywords),p=ya(),m=ft(T=>T.value&&T.value===f.current),g=ft(T=>u||l.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);c.useEffect(()=>{let T=a.current;if(!(!T||e.disabled))return T.addEventListener(Ho,x),()=>T.removeEventListener(Ho,x)},[g,e.onSelect,e.disabled]);function x(){var T,P;v(),(P=(T=d.current).onSelect)==null||P.call(T,f.current)}function v(){p.setState("value",f.current,!0)}if(!g)return null;let{disabled:h,value:y,onSelect:b,forceMount:C,keywords:E,...R}=e;return c.createElement(K.div,{ref:ke(a,t),...R,id:o,"cmdk-item":"",role:"option","aria-disabled":!!h,"aria-selected":!!m,"data-disabled":!!h,"data-selected":!!m,onPointerMove:h||l.getDisablePointerSelection()?void 0:v,onClick:h?void 0:x},e.children)}),Wy=c.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=me(),l=c.useRef(null),d=c.useRef(null),u=me(),f=Ir(),p=ft(g=>o||f.filter()===!1?!0:g.search?g.filtered.groups.has(s):!0);Pt(()=>f.group(s),[]),hd(s,l,[e.value,e.heading,d]);let m=c.useMemo(()=>({id:s,forceMount:o}),[o]);return c.createElement(K.div,{ref:ke(l,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&c.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),zn(e,g=>c.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},c.createElement(md.Provider,{value:m},g))))}),Gy=c.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=c.useRef(null),a=ft(s=>!s.search);return!r&&!a?null:c.createElement(K.div,{ref:ke(o,t),...n,"cmdk-separator":"",role:"separator"})}),zy=c.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=ya(),s=ft(u=>u.search),l=ft(u=>u.selectedItemId),d=Ir();return c.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),c.createElement(K.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":l,id:d.inputId,type:"text",value:o?e.value:s,onChange:u=>{o||a.setState("search",u.target.value),r==null||r(u.target.value)}})}),qy=c.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=c.useRef(null),s=c.useRef(null),l=ft(u=>u.selectedItemId),d=Ir();return c.useEffect(()=>{if(s.current&&a.current){let u=s.current,f=a.current,p,m=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let g=u.offsetHeight;f.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return m.observe(u),()=>{cancelAnimationFrame(p),m.unobserve(u)}}},[]),c.createElement(K.div,{ref:ke(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:d.listId},zn(e,u=>c.createElement("div",{ref:ke(s,d.listInnerRef),"cmdk-list-sizer":""},u)))}),Hy=c.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...l}=e;return c.createElement(sd,{open:r,onOpenChange:n},c.createElement(id,{container:s},c.createElement(ld,{"cmdk-overlay":"",className:o}),c.createElement(cd,{"aria-label":e.label,"cmdk-dialog":"",className:a},c.createElement(gd,{ref:t,...l}))))}),Uy=c.forwardRef((e,t)=>ft(r=>r.filtered.count===0)?c.createElement(K.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Ky=c.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return c.createElement(K.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},zn(e,s=>c.createElement("div",{"aria-hidden":!0},s)))}),It=Object.assign(gd,{List:qy,Item:By,Input:zy,Group:Wy,Separator:Gy,Dialog:Hy,Empty:Uy,Loading:Ky});function Yy(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function Xy(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function vd(e){let t=c.useRef(e);return Pt(()=>{t.current=e}),t}var Pt=typeof window>"u"?c.useEffect:c.useLayoutEffect;function qt(e){let t=c.useRef();return t.current===void 0&&(t.current=e()),t}function ft(e){let t=ya(),r=()=>e(t.snapshot());return c.useSyncExternalStore(t.subscribe,r,r)}function hd(e,t,r,n=[]){let o=c.useRef(),a=Ir();return Pt(()=>{var s;let l=(()=>{var u;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),d=n.map(u=>u.trim());a.value(e,l,d),(s=t.current)==null||s.setAttribute(zt,l),o.current=l}),o}var Zy=()=>{let[e,t]=c.useState(),r=qt(()=>new Map);return Pt(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function Jy(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function zn({asChild:e,children:t},r){return e&&c.isValidElement(t)?c.cloneElement(Jy(t),{ref:t.ref},r(t.props.children)):r(t)}var Qy={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function ew({...e}){return i.jsx(sd,{"data-slot":"dialog",...e})}function tw({...e}){return i.jsx(Dy,{"data-slot":"dialog-trigger",...e})}function xd({...e}){return i.jsx(id,{"data-slot":"dialog-portal",...e})}function rw({...e}){return i.jsx(dd,{"data-slot":"dialog-close",...e})}function bd({className:e,...t}){return i.jsx(ld,{"data-slot":"dialog-overlay",className:k("qodo qodo-dialog-overlay,","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t})}function nw({className:e,children:t,showCloseButton:r=!0,...n}){return i.jsxs(xd,{"data-slot":"dialog-portal",children:[i.jsx(bd,{}),i.jsxs(cd,{"data-slot":"dialog-content",className:k("qodo qodo-dialog-content bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-background dark:border-border",e),...n,children:[t,r&&i.jsxs(dd,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[i.jsx(Nn,{}),i.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function ow({className:e,...t}){return i.jsx("div",{"data-slot":"dialog-header",className:k("qodo qodo-dialog-header flex flex-col gap-2 text-center sm:text-left",e),...t})}function aw({className:e,...t}){return i.jsx("div",{"data-slot":"dialog-footer",className:k("qodo qodo-dialog-footer flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function sw({className:e,...t}){return i.jsx($y,{"data-slot":"dialog-title",className:k("qodo qodo-dialog-title text-lg leading-none font-semibold",e),...t})}function iw({className:e,...t}){return i.jsx(Ly,{"data-slot":"dialog-description",className:k("qodo qodo-dialog-description text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function yd({className:e,...t}){return i.jsx(It,{"data-slot":"command",className:k("qodo qodo-command bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function wd({className:e,...t}){return i.jsxs("div",{"data-slot":"command-input-wrapper",className:k("qodo qodo-command-input-wrapper","flex h-9 items-center gap-2 border-b border-[var(--border-panel-neutral)] px-3 text-purple-muted-300"),children:[i.jsx(bl,{className:"size-4 shrink-0 text-purple-muted-300"}),i.jsx(It.Input,{"data-slot":"command-input",className:k("qodo qodo-command-input","placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function Cd({className:e,...t}){return i.jsx(It.List,{"data-slot":"command-list",className:k("qodo qodo-command-list max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function Sd({...e}){return i.jsx(It.Empty,{"data-slot":"command-empty",className:k("qodo qodo-command-empty","py-6 text-center text-sm text-purple-muted-300"),...e})}function lw({className:e,...t}){return i.jsx(It.Loading,{"data-slot":"command-loading",className:k("qodo qodo-command-loading","py-6 text-center text-sm text-purple-muted-300",e),...t})}function Ed({className:e,...t}){return i.jsx(It.Group,{"data-slot":"command-group",className:k("qodo qodo-command-group","text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function Rd({className:e,...t}){return i.jsx(It.Item,{"data-slot":"command-item",className:k("qodo qodo-command-item","data-[selected=true]:bg-purple-muted-500 data-[selected=true]:text-purple-100 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function cw(e){const t=dw(e),r=c.forwardRef((n,o)=>{const{children:a,...s}=n,l=c.Children.toArray(a),d=l.find(fw);if(d){const u=d.props.children,f=l.map(p=>p===d?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return i.jsx(t,{...s,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return i.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function dw(e){const t=c.forwardRef((r,n)=>{const{children:o,...a}=r;if(c.isValidElement(o)){const s=mw(o),l=pw(a,o.props);return o.type!==c.Fragment&&(l.ref=n?ke(n,s):s),c.cloneElement(o,l)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uw=Symbol("radix.slottable");function fw(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uw}function pw(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{const d=a(...l);return o(...l),d}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function mw(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var qn="Popover",[kd]=we(qn,[pt]),Or=pt(),[gw,vt]=kd(qn),Nd=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,l=Or(t),d=c.useRef(null),[u,f]=c.useState(!1),[p,m]=be({prop:n,defaultProp:o??!1,onChange:a,caller:qn});return i.jsx(Tr,{...l,children:i.jsx(gw,{scope:t,contentId:me(),triggerRef:d,open:p,onOpenChange:m,onOpenToggle:c.useCallback(()=>m(g=>!g),[m]),hasCustomAnchor:u,onCustomAnchorAdd:c.useCallback(()=>f(!0),[]),onCustomAnchorRemove:c.useCallback(()=>f(!1),[]),modal:s,children:r})})};Nd.displayName=qn;var jd="PopoverAnchor",vw=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=vt(jd,r),a=Or(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return c.useEffect(()=>(s(),()=>l()),[s,l]),i.jsx(_r,{...a,...n,ref:t})});vw.displayName=jd;var Pd="PopoverTrigger",Td=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=vt(Pd,r),a=Or(r),s=ae(t,o.triggerRef),l=i.jsx(K.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Md(o.open),...n,ref:s,onClick:V(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:i.jsx(_r,{asChild:!0,...a,children:l})});Td.displayName=Pd;var wa="PopoverPortal",[hw,xw]=kd(wa,{forceMount:void 0}),_d=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=vt(wa,t);return i.jsx(hw,{scope:t,forceMount:r,children:i.jsx(Ce,{present:r||a.open,children:i.jsx(sr,{asChild:!0,container:o,children:n})})})};_d.displayName=wa;var Zt="PopoverContent",Ad=c.forwardRef((e,t)=>{const r=xw(Zt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=vt(Zt,e.__scopePopover);return i.jsx(Ce,{present:n||a.open,children:a.modal?i.jsx(yw,{...o,ref:t}):i.jsx(ww,{...o,ref:t})})});Ad.displayName=Zt;var bw=cw("PopoverContent.RemoveScroll"),yw=c.forwardRef((e,t)=>{const r=vt(Zt,e.__scopePopover),n=c.useRef(null),o=ae(t,n),a=c.useRef(!1);return c.useEffect(()=>{const s=n.current;if(s)return Ln(s)},[]),i.jsx(Ar,{as:bw,allowPinchZoom:!0,children:i.jsx(Id,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:V(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),a.current||(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:V(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,u=l.button===2||d;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:V(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),ww=c.forwardRef((e,t)=>{const r=vt(Zt,e.__scopePopover),n=c.useRef(!1),o=c.useRef(!1);return i.jsx(Id,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Id=c.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:f,...p}=e,m=vt(Zt,r),g=Or(r);return Pn(),i.jsx(jr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:i.jsx(nr,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:i.jsx(Mn,{"data-state":Md(m.open),role:"dialog",id:m.contentId,...g,...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)"}})})})}),Od="PopoverClose",Cw=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=vt(Od,r);return i.jsx(K.button,{type:"button",...n,ref:t,onClick:V(e.onClick,()=>o.onOpenChange(!1))})});Cw.displayName=Od;var Sw="PopoverArrow",Ew=c.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Or(r);return i.jsx(Dn,{...o,...n,ref:t})});Ew.displayName=Sw;function Md(e){return e?"open":"closed"}var Rw=Nd,kw=Td,Nw=_d,jw=Ad;function Ca({...e}){return i.jsx(Rw,{"data-slot":"popover",...e})}function Sa({...e}){return i.jsx(kw,{"data-slot":"popover-trigger",...e})}function Ea({className:e,align:t="center",sideOffset:r=4,...n}){return i.jsx(Nw,{children:i.jsx(jw,{"data-slot":"popover-content",align:t,sideOffset:r,className:k("qodo qodo-popover-content bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}const Ra=c.forwardRef(({options:e,value:t,onValueChange:r,placeholder:n="Select option...",searchPlaceholder:o="Search...",emptyText:a="No option found.",disabled:s=!1,readOnly:l=!1,error:d=!1,className:u,onSearchChange:f,isLoading:p=!1,loadingText:m="Loading...",...g},x)=>{const[v,h]=c.useState(!1),[y,b]=c.useState(""),[C,E]=c.useState(0),R=c.useRef(null),T=e.find(j=>j.value===t),P=j=>{b(j),f==null||f(j)};return c.useEffect(()=>{R.current&&E(R.current.offsetWidth)},[]),i.jsxs(Ca,{open:l?!1:v,onOpenChange:h,children:[i.jsx(Sa,{asChild:!0,children:i.jsxs(tt,{ref:j=>{typeof x=="function"?x(j):x&&(x.current=j),R.current=j},variant:"outline",role:"combobox","aria-expanded":v,"aria-invalid":d||void 0,"data-readonly":l||void 0,className:k("qodo qodo-combobox w-full h-9 px-3 py-1 justify-between rounded-md","border border-purple-muted-500 bg-purple-muted-700 hover:bg-purple-muted-700","text-sm md:text-sm text-purple-muted-300 hover:text-purple-muted-300 focus:text-purple-muted-300 active:text-purple-muted-300 selection:bg-primary selection:text-primary-foreground","font-normal shadow-xs transition-[color,box-shadow] outline-none focus-visible:!ring-ring/50 focus-visible:!ring-[3px] focus-visible:!ring-offset-0","aria-invalid:!border-destructive aria-invalid:!ring-destructive/20 dark:aria-invalid:!ring-destructive/40","disabled:!cursor-not-allowed disabled:!pointer-events-auto disabled:opacity-50 disabled:!bg-purple-muted-700 disabled:!border-purple-muted-500 disabled:!text-purple-muted-300 disabled:hover:!bg-purple-muted-700 disabled:hover:!text-purple-muted-300","data-[readonly]:opacity-100 data-[readonly]:bg-purple-muted-700 data-[readonly]:border-purple-muted-400 data-[readonly]:cursor-default data-[readonly]:text-purple-muted-200 data-[readonly]:hover:bg-purple-muted-700 data-[readonly]:hover:text-purple-muted-200",{"text-muted-foreground":!T},u),disabled:s,...g,children:[T?T.label:n,i.jsx(uv,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),i.jsx(Ea,{className:"p-0 border bg-[var(--fill-interactive-neutral-idle)] border-purple-muted-500 text-purple-muted-300",style:{width:C>0?`${C}px`:"auto"},children:i.jsxs(yd,{className:"w-full bg-[var(--fill-interactive-neutral-idle)]",shouldFilter:!f,children:[i.jsx(wd,{placeholder:o,...!!f&&{value:y,onValueChange:P}}),i.jsx(Cd,{children:p?i.jsx(lw,{children:m}):i.jsxs(i.Fragment,{children:[i.jsx(Sd,{className:"flex justify-center items-center p-6 text-center text-sm text-purple-muted-300",children:a}),i.jsx(Ed,{children:e.map(j=>{const F=t===j.value;return i.jsxs(Rd,{value:j.value,keywords:[j.label],disabled:j.disabled,className:k("text-purple-100 hover:bg-purple-muted-500","focus:bg-purple-muted-500 focus:text-purple-100",{"bg-purple-muted-500":F}),onSelect:q=>{q!==t&&(r==null||r(q===t?"":q)),h(!1)},children:[i.jsx(rr,{className:k("mr-2 h-4 w-4",{"opacity-100":F,"opacity-0":!F})}),j.label]},j.value)})})]})})]})})]})});Ra.displayName="Combobox";const Pw=_t("qodo qodo-badge inline-flex items-center dark:font-normal border transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-light gap-1",{variants:{variant:{default:"border-[var(--border-tag-emphasis-idle)] bg-[var(--fill-tag-emphasis-idle)] text-[var(--text-tag-emphasis-idle)] hover:text-[var(--text-tag-emphasis-hover)] hover:bg-[var(--fill-tag-emphasis-hover)] hover:border-[var(--border-tag-emphasis-hover)] aria-active:text-[var(--text-tag-emphasis-active)] aria-active:bg-[var(--fill-tag-emphasis-active)] aria-active:border-[var(--border-tag-emphasis-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-emphasis-disabled)] aria-disabled:bg-[var(--fill-tag-emphasis-disabled)] aria-disabled:border-[var(--border-tag-emphasis-disabled)] ",primary:"border-[var(--border-tag-emphasis-idle)] bg-[var(--fill-tag-emphasis-idle)] text-[var(--text-tag-emphasis-idle)] hover:text-[var(--text-tag-emphasis-hover)] hover:bg-[var(--fill-tag-emphasis-hover)] hover:border-[var(--border-tag-emphasis-hover)] aria-active:text-[var(--text-tag-emphasis-active)] aria-active:bg-[var(--fill-tag-emphasis-active)] aria-active:border-[var(--border-tag-emphasis-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-emphasis-disabled)] aria-disabled:bg-[var(--fill-tag-emphasis-disabled)] aria-disabled:border-[var(--border-tag-emphasis-disabled)] ",secondary:"border-purple-muted-600 text-purple-300",destructive:"border-[var(--border-tag-negative-idle)] bg-[var(--fill-tag-negative-idle)] text-[var(--text-tag-negative-idle)] hover:text-[var(--text-tag-negative-hover)] hover:bg-[var(--fill-tag-negative-hover)] hover:border-[var(--border-tag-negative-hover)] aria-active:text-[var(--text-tag-negative-active)] aria-active:bg-[var(--fill-tag-negative-active)] aria-active:border-[var(--border-tag-negative-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-negative-disabled)] aria-disabled:bg-[var(--fill-tag-negative-disabled)] aria-disabled:border-[var(--border-tag-negative-disabled)] ",outline:"border-[var(--border-tag-neutral-idle)] bg-[var(--fill-tag-neutral-idle)] text-[var(--text-tag-neutral-idle)] hover:text-[var(--text-tag-neutral-hover)] hover:bg-[var(--fill-tag-neutral-hover)] hover:border-[var(--border-tag-neutral-hover)] aria-active:text-[var(--text-tag-neutral-active)] aria-active:bg-[var(--fill-tag-neutral-active)] aria-active:border-[var(--border-tag-neutral-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-neutral-disabled)] aria-disabled:bg-[var(--fill-tag-neutral-disabled)] aria-disabled:border-[var(--border-tag-neutral-disabled)] ",success:"text-[var(--text-tag-positive-idle)] bg-[var(--fill-tag-positive-idle)] border-[var(--border-tag-positive-idle)] hover:text-[var(--text-tag-positive-hover)] hover:bg-[var(--fill-tag-positive-hover)] hover:border-[var(--border-tag-positive-hover)] aria-active:text-[var(--text-tag-positive-active)] aria-active:bg-[var(--fill-tag-positive-active)] aria-active:border-[var(--border-tag-positive-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-positive-disabled)] aria-disabled:bg-[var(--fill-tag-positive-disabled)] aria-disabled:border-[var(--border-tag-positive-disabled)] ",error:"border-[var(--border-tag-negative-idle)] bg-[var(--fill-tag-negative-idle)] text-[var(--text-tag-negative-idle)] hover:text-[var(--text-tag-negative-hover)] hover:bg-[var(--fill-tag-negative-hover)] hover:border-[var(--border-tag-negative-hover)] aria-active:text-[var(--text-tag-negative-active)] aria-active:bg-[var(--fill-tag-negative-active)] aria-active:border-[var(--border-tag-negative-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-negative-disabled)] aria-disabled:bg-[var(--fill-tag-negative-disabled)] aria-disabled:border-[var(--border-tag-negative-disabled)] ",pending:"border-[var(--border-tag-emphasis-idle)] bg-[var(--fill-tag-emphasis-idle)] text-[var(--text-tag-emphasis-idle)] hover:text-[var(--text-tag-emphasis-hover)] hover:bg-[var(--fill-tag-emphasis-hover)] hover:border-[var(--border-tag-emphasis-hover)] aria-active:text-[var(--text-tag-emphasis-active)] aria-active:bg-[var(--fill-tag-emphasis-active)] aria-active:border-[var(--border-tag-emphasis-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-emphasis-disabled)] aria-disabled:bg-[var(--fill-tag-emphasis-disabled)] aria-disabled:border-[var(--border-tag-emphasis-disabled)] ",warning:"border-[var(--border-tag-warning-idle)] bg-[var(--fill-tag-warning-idle)] text-[var(--text-tag-warning-idle)] hover:text-[var(--text-tag-warning-hover)] hover:bg-[var(--fill-tag-warning-hover)] hover:border-[var(--border-tag-warning-hover)] aria-active:text-[var(--text-tag-warning-active)] aria-active:bg-[var(--fill-tag-warning-active)] aria-active:border-[var(--border-tag-warning-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-warning-disabled)] aria-disabled:bg-[var(--fill-tag-warning-disabled)] aria-disabled:border-[var(--border-tag-warning-disabled)] ",text:"bg-transparent border-transparent text-primary-foreground !p-0"},size:{xs:"text-[10px] px-1.5 py-0.5 rounded-sm bg-transparent hover:bg-transparent aria-disabled:bg-transparent aria-active:bg-transparent",sm:"text-xs px-2.5 py-0.5 rounded-full",md:"text-sm px-2.5 py-0.5 rounded-full",lg:"text-base px-2.5 py-2 rounded-full"}},defaultVariants:{variant:"default",size:"sm"}});function Jt({className:e,variant:t,size:r,disabled:n=!1,active:o=!1,...a}){return i.jsx("div",{"aria-disabled":n,"aria-active":o,className:k(Pw({variant:t,size:r}),e),...a})}function Dd({className:e,...t}){return i.jsx("div",{"data-slot":"card",className:k("qodo qodo-card bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm dark:bg-card dark:text-card-foreground dark:border-border",e),...t})}function $d({className:e,...t}){return i.jsx("div",{"data-slot":"card-header",className:k("qodo qodo-card-header @container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Ld({className:e,...t}){return i.jsx("div",{"data-slot":"card-title",className:k("qodo qodo-card-title leading-none font-semibold",e),...t})}function Fd({className:e,...t}){return i.jsx("div",{"data-slot":"card-description",className:k("qodo qodo-card-description text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function Tw({className:e,...t}){return i.jsx("div",{"data-slot":"card-action",className:k("qodo qodo-card-action col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function Vd({className:e,...t}){return i.jsx("div",{"data-slot":"card-content",className:k("qodo qodo-card-content px-6",e),...t})}function _w({className:e,...t}){return i.jsx("div",{"data-slot":"card-footer",className:k("qodo qodo-card-footer flex items-center px-6 [.border-t]:pt-6",e),...t})}function Aw(e,t=[]){let r=[];function n(a,s){const l=c.createContext(s);l.displayName=a+"Context";const d=r.length;r=[...r,s];const u=p=>{var y;const{scope:m,children:g,...x}=p,v=((y=m==null?void 0:m[e])==null?void 0:y[d])||l,h=c.useMemo(()=>x,Object.values(x));return i.jsx(v.Provider,{value:h,children:g})};u.displayName=a+"Provider";function f(p,m){var v;const g=((v=m==null?void 0:m[e])==null?void 0:v[d])||l,x=c.useContext(g);if(x)return x;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=r.map(s=>c.createContext(s));return function(l){const d=(l==null?void 0:l[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...l,[e]:d}}),[l,d])}};return o.scopeName=e,[n,Iw(o,...t)]}function Iw(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((l,{useScope:d,scopeName:u})=>{const p=d(a)[`__scope${u}`];return{...l,...p}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var Ow=Symbol.for("react.lazy"),gn=c[" use ".trim().toString()];function Mw(e){return typeof e=="object"&&e!==null&&"then"in e}function Bd(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Ow&&"_payload"in e&&Mw(e._payload)}function ka(e){const t=$w(e),r=c.forwardRef((n,o)=>{let{children:a,...s}=n;Bd(a)&&typeof gn=="function"&&(a=gn(a._payload));const l=c.Children.toArray(a),d=l.find(Fw);if(d){const u=d.props.children,f=l.map(p=>p===d?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return i.jsx(t,{...s,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return i.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var Dw=ka("Slot");function $w(e){const t=c.forwardRef((r,n)=>{let{children:o,...a}=r;if(Bd(o)&&typeof gn=="function"&&(o=gn(o._payload)),c.isValidElement(o)){const s=Bw(o),l=Vw(a,o.props);return o.type!==c.Fragment&&(l.ref=n?ke(n,s):s),c.cloneElement(o,l)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lw=Symbol("radix.slottable");function Fw(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lw}function Vw(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{const d=a(...l);return o(...l),d}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Bw(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ww=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Wd=Ww.reduce((e,t)=>{const r=ka(`Primitive.${t}`),n=c.forwardRef((o,a)=>{const{asChild:s,...l}=o,d=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(d,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Na="Progress",ja=100,[Gw]=Aw(Na),[zw,qw]=Gw(Na),Gd=c.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:a=Hw,...s}=e;(o||o===0)&&!hi(o)&&console.error(Uw(`${o}`,"Progress"));const l=hi(o)?o:ja;n!==null&&!xi(n,l)&&console.error(Kw(`${n}`,"Progress"));const d=xi(n,l)?n:null,u=vn(d)?a(d,l):void 0;return i.jsx(zw,{scope:r,value:d,max:l,children:i.jsx(Wd.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":vn(d)?d:void 0,"aria-valuetext":u,role:"progressbar","data-state":Hd(d,l),"data-value":d??void 0,"data-max":l,...s,ref:t})})});Gd.displayName=Na;var zd="ProgressIndicator",qd=c.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=qw(zd,r);return i.jsx(Wd.div,{"data-state":Hd(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});qd.displayName=zd;function Hw(e,t){return`${Math.round(e/t*100)}%`}function Hd(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function vn(e){return typeof e=="number"}function hi(e){return vn(e)&&!isNaN(e)&&e>0}function xi(e,t){return vn(e)&&!isNaN(e)&&e<=t&&e>=0}function Uw(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ja}\`.`}function Kw(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
194
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},ow="DialogDescriptionWarning",aw=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zu(ow).contentName}}.`;return d.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},qu=Tu,sw=Au,Hu=Ou,Uu=Mu,Ku=Du,iw=Lu,lw=Vu,Yu=Gu,Ar='[cmdk-group=""]',sa='[cmdk-group-items=""]',cw='[cmdk-group-heading=""]',Xu='[cmdk-item=""]',Zi=`${Xu}:not([aria-disabled="true"])`,ka="cmdk-item-select",nr="data-value",uw=(e,t,r)=>By(e,t,r),Zu=d.createContext(void 0),on=()=>d.useContext(Zu),Ju=d.createContext(void 0),ns=()=>d.useContext(Ju),Qu=d.createContext(void 0),ed=d.forwardRef((e,t)=>{let r=or(()=>{var A,q;return{search:"",value:(q=(A=e.value)!=null?A:e.defaultValue)!=null?q:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=or(()=>new Set),o=or(()=>new Map),a=or(()=>new Map),s=or(()=>new Set),i=td(e),{label:c,children:u,value:f,onValueChange:p,filter:m,shouldFilter:g,loop:h,disablePointerSelection:v=!1,vimBindings:x=!0,...b}=e,y=be(),w=be(),S=be(),R=d.useRef(null),P=ww();$t(()=>{if(f!==void 0){let A=f.trim();r.current.value=A,k.emit()}},[f]),$t(()=>{P(6,J)},[]);let k=d.useMemo(()=>({subscribe:A=>(s.current.add(A),()=>s.current.delete(A)),snapshot:()=>r.current,setState:(A,q,X)=>{var Y,L,j,G;if(!Object.is(r.current[A],q)){if(r.current[A]=q,A==="search")Z(),B(),P(1,W);else if(A==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let U=document.getElementById(S);U?U.focus():(Y=document.getElementById(y))==null||Y.focus()}if(P(7,()=>{var U;r.current.selectedItemId=(U=z())==null?void 0:U.id,k.emit()}),X||P(5,J),((L=i.current)==null?void 0:L.value)!==void 0){let U=q??"";(G=(j=i.current).onValueChange)==null||G.call(j,U);return}}k.emit()}},emit:()=>{s.current.forEach(A=>A())}}),[]),N=d.useMemo(()=>({value:(A,q,X)=>{var Y;q!==((Y=a.current.get(A))==null?void 0:Y.value)&&(a.current.set(A,{value:q,keywords:X}),r.current.filtered.items.set(A,D(q,X)),P(2,()=>{B(),k.emit()}))},item:(A,q)=>(n.current.add(A),q&&(o.current.has(q)?o.current.get(q).add(A):o.current.set(q,new Set([A]))),P(3,()=>{Z(),B(),r.current.value||W(),k.emit()}),()=>{a.current.delete(A),n.current.delete(A),r.current.filtered.items.delete(A);let X=z();P(4,()=>{Z(),(X==null?void 0:X.getAttribute("id"))===A&&W(),k.emit()})}),group:A=>(o.current.has(A)||o.current.set(A,new Set),()=>{a.current.delete(A),o.current.delete(A)}),filter:()=>i.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:y,inputId:S,labelId:w,listInnerRef:R}),[]);function D(A,q){var X,Y;let L=(Y=(X=i.current)==null?void 0:X.filter)!=null?Y:uw;return A?L(A,r.current.search,q):0}function B(){if(!r.current.search||i.current.shouldFilter===!1)return;let A=r.current.filtered.items,q=[];r.current.filtered.groups.forEach(Y=>{let L=o.current.get(Y),j=0;L.forEach(G=>{let U=A.get(G);j=Math.max(U,j)}),q.push([Y,j])});let X=R.current;M().sort((Y,L)=>{var j,G;let U=Y.getAttribute("id"),ne=L.getAttribute("id");return((j=A.get(ne))!=null?j:0)-((G=A.get(U))!=null?G:0)}).forEach(Y=>{let L=Y.closest(sa);L?L.appendChild(Y.parentElement===L?Y:Y.closest(`${sa} > *`)):X.appendChild(Y.parentElement===X?Y:Y.closest(`${sa} > *`))}),q.sort((Y,L)=>L[1]-Y[1]).forEach(Y=>{var L;let j=(L=R.current)==null?void 0:L.querySelector(`${Ar}[${nr}="${encodeURIComponent(Y[0])}"]`);j==null||j.parentElement.appendChild(j)})}function W(){let A=M().find(X=>X.getAttribute("aria-disabled")!=="true"),q=A==null?void 0:A.getAttribute(nr);k.setState("value",q||void 0)}function Z(){var A,q,X,Y;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let L=0;for(let j of n.current){let G=(q=(A=a.current.get(j))==null?void 0:A.value)!=null?q:"",U=(Y=(X=a.current.get(j))==null?void 0:X.keywords)!=null?Y:[],ne=D(G,U);r.current.filtered.items.set(j,ne),ne>0&&L++}for(let[j,G]of o.current)for(let U of G)if(r.current.filtered.items.get(U)>0){r.current.filtered.groups.add(j);break}r.current.filtered.count=L}function J(){var A,q,X;let Y=z();Y&&(((A=Y.parentElement)==null?void 0:A.firstChild)===Y&&((X=(q=Y.closest(Ar))==null?void 0:q.querySelector(cw))==null||X.scrollIntoView({block:"nearest"})),Y.scrollIntoView({block:"nearest"}))}function z(){var A;return(A=R.current)==null?void 0:A.querySelector(`${Xu}[aria-selected="true"]`)}function M(){var A;return Array.from(((A=R.current)==null?void 0:A.querySelectorAll(Zi))||[])}function _(A){let q=M()[A];q&&k.setState("value",q.getAttribute(nr))}function $(A){var q;let X=z(),Y=M(),L=Y.findIndex(G=>G===X),j=Y[L+A];(q=i.current)!=null&&q.loop&&(j=L+A<0?Y[Y.length-1]:L+A===Y.length?Y[0]:Y[L+A]),j&&k.setState("value",j.getAttribute(nr))}function I(A){let q=z(),X=q==null?void 0:q.closest(Ar),Y;for(;X&&!Y;)X=A>0?bw(X,Ar):yw(X,Ar),Y=X==null?void 0:X.querySelector(Zi);Y?k.setState("value",Y.getAttribute(nr)):$(A)}let O=()=>_(M().length-1),H=A=>{A.preventDefault(),A.metaKey?O():A.altKey?I(1):$(1)},Q=A=>{A.preventDefault(),A.metaKey?_(0):A.altKey?I(-1):$(-1)};return d.createElement(re.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:A=>{var q;(q=b.onKeyDown)==null||q.call(b,A);let X=A.nativeEvent.isComposing||A.keyCode===229;if(!(A.defaultPrevented||X))switch(A.key){case"n":case"j":{x&&A.ctrlKey&&H(A);break}case"ArrowDown":{H(A);break}case"p":case"k":{x&&A.ctrlKey&&Q(A);break}case"ArrowUp":{Q(A);break}case"Home":{A.preventDefault(),_(0);break}case"End":{A.preventDefault(),O();break}case"Enter":{A.preventDefault();let Y=z();if(Y){let L=new Event(ka);Y.dispatchEvent(L)}}}}},d.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:Sw},c),So(e,A=>d.createElement(Ju.Provider,{value:k},d.createElement(Zu.Provider,{value:N},A))))}),dw=d.forwardRef((e,t)=>{var r,n;let o=be(),a=d.useRef(null),s=d.useContext(Qu),i=on(),c=td(e),u=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:s==null?void 0:s.forceMount;$t(()=>{if(!u)return i.item(o,s==null?void 0:s.id)},[u]);let f=rd(o,a,[e.value,e.children,a],e.keywords),p=ns(),m=xt(P=>P.value&&P.value===f.current),g=xt(P=>u||i.filter()===!1?!0:P.search?P.filtered.items.get(o)>0:!0);d.useEffect(()=>{let P=a.current;if(!(!P||e.disabled))return P.addEventListener(ka,h),()=>P.removeEventListener(ka,h)},[g,e.onSelect,e.disabled]);function h(){var P,k;v(),(k=(P=c.current).onSelect)==null||k.call(P,f.current)}function v(){p.setState("value",f.current,!0)}if(!g)return null;let{disabled:x,value:b,onSelect:y,forceMount:w,keywords:S,...R}=e;return d.createElement(re.div,{ref:Ae(a,t),...R,id:o,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!m,"data-disabled":!!x,"data-selected":!!m,onPointerMove:x||i.getDisablePointerSelection()?void 0:v,onClick:x?void 0:h},e.children)}),fw=d.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,s=be(),i=d.useRef(null),c=d.useRef(null),u=be(),f=on(),p=xt(g=>o||f.filter()===!1?!0:g.search?g.filtered.groups.has(s):!0);$t(()=>f.group(s),[]),rd(s,i,[e.value,e.heading,c]);let m=d.useMemo(()=>({id:s,forceMount:o}),[o]);return d.createElement(re.div,{ref:Ae(i,t),...a,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},r&&d.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},r),So(e,g=>d.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},d.createElement(Qu.Provider,{value:m},g))))}),pw=d.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=d.useRef(null),a=xt(s=>!s.search);return!r&&!a?null:d.createElement(re.div,{ref:Ae(o,t),...n,"cmdk-separator":"",role:"separator"})}),mw=d.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=ns(),s=xt(u=>u.search),i=xt(u=>u.selectedItemId),c=on();return d.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),d.createElement(re.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":i,id:c.inputId,type:"text",value:o?e.value:s,onChange:u=>{o||a.setState("search",u.target.value),r==null||r(u.target.value)}})}),gw=d.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=d.useRef(null),s=d.useRef(null),i=xt(u=>u.selectedItemId),c=on();return d.useEffect(()=>{if(s.current&&a.current){let u=s.current,f=a.current,p,m=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let g=u.offsetHeight;f.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return m.observe(u),()=>{cancelAnimationFrame(p),m.unobserve(u)}}},[]),d.createElement(re.div,{ref:Ae(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":n,id:c.listId},So(e,u=>d.createElement("div",{ref:Ae(s,c.listInnerRef),"cmdk-list-sizer":""},u)))}),vw=d.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:s,...i}=e;return d.createElement(qu,{open:r,onOpenChange:n},d.createElement(Hu,{container:s},d.createElement(Uu,{"cmdk-overlay":"",className:o}),d.createElement(Ku,{"aria-label":e.label,"cmdk-dialog":"",className:a},d.createElement(ed,{ref:t,...i}))))}),hw=d.forwardRef((e,t)=>xt(r=>r.filtered.count===0)?d.createElement(re.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),xw=d.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return d.createElement(re.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},So(e,s=>d.createElement("div",{"aria-hidden":!0},s)))}),Wt=Object.assign(ed,{List:gw,Item:dw,Input:mw,Group:fw,Separator:pw,Dialog:vw,Empty:hw,Loading:xw});function bw(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function yw(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function td(e){let t=d.useRef(e);return $t(()=>{t.current=e}),t}var $t=typeof window>"u"?d.useEffect:d.useLayoutEffect;function or(e){let t=d.useRef();return t.current===void 0&&(t.current=e()),t}function xt(e){let t=ns(),r=()=>e(t.snapshot());return d.useSyncExternalStore(t.subscribe,r,r)}function rd(e,t,r,n=[]){let o=d.useRef(),a=on();return $t(()=>{var s;let i=(()=>{var u;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():o.current}})(),c=n.map(u=>u.trim());a.value(e,i,c),(s=t.current)==null||s.setAttribute(nr,i),o.current=i}),o}var ww=()=>{let[e,t]=d.useState(),r=or(()=>new Map);return $t(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function Cw(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function So({asChild:e,children:t},r){return e&&d.isValidElement(t)?d.cloneElement(Cw(t),{ref:t.ref},r(t.props.children)):r(t)}var Sw={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Ew({...e}){return l.jsx(qu,{"data-slot":"dialog",...e})}function Rw({...e}){return l.jsx(sw,{"data-slot":"dialog-trigger",...e})}function nd({...e}){return l.jsx(Hu,{"data-slot":"dialog-portal",...e})}function kw({...e}){return l.jsx(Yu,{"data-slot":"dialog-close",...e})}function od({className:e,...t}){return l.jsx(Uu,{"data-slot":"dialog-overlay",className:T("qodo qodo-dialog-overlay,","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t})}function Nw({className:e,children:t,showCloseButton:r=!0,...n}){return l.jsxs(nd,{"data-slot":"dialog-portal",children:[l.jsx(od,{}),l.jsxs(Ku,{"data-slot":"dialog-content",className:T("qodo qodo-dialog-content bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-background dark:border-border",e),...n,children:[t,r&&l.jsxs(Yu,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[l.jsx(ao,{}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Pw({className:e,...t}){return l.jsx("div",{"data-slot":"dialog-header",className:T("qodo qodo-dialog-header flex flex-col gap-2 text-center sm:text-left",e),...t})}function jw({className:e,...t}){return l.jsx("div",{"data-slot":"dialog-footer",className:T("qodo qodo-dialog-footer flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Tw({className:e,...t}){return l.jsx(iw,{"data-slot":"dialog-title",className:T("qodo qodo-dialog-title text-lg leading-none font-semibold",e),...t})}function Iw({className:e,...t}){return l.jsx(lw,{"data-slot":"dialog-description",className:T("qodo qodo-dialog-description text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function ad({className:e,...t}){return l.jsx(Wt,{"data-slot":"command",className:T("qodo qodo-command bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function sd({className:e,...t}){return l.jsxs("div",{"data-slot":"command-input-wrapper",className:T("qodo qodo-command-input-wrapper","flex h-9 items-center gap-2 border-b border-[var(--border-panel-neutral)] px-3 text-purple-muted-300"),children:[l.jsx(oc,{className:"size-4 shrink-0 text-purple-muted-300"}),l.jsx(Wt.Input,{"data-slot":"command-input",className:T("qodo qodo-command-input","placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function id({className:e,...t}){return l.jsx(Wt.List,{"data-slot":"command-list",className:T("qodo qodo-command-list max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function ld({...e}){return l.jsx(Wt.Empty,{"data-slot":"command-empty",className:T("qodo qodo-command-empty","py-6 text-center text-sm text-purple-muted-300"),...e})}function Aw({className:e,...t}){return l.jsx(Wt.Loading,{"data-slot":"command-loading",className:T("qodo qodo-command-loading","py-6 text-center text-sm text-purple-muted-300",e),...t})}function cd({className:e,...t}){return l.jsx(Wt.Group,{"data-slot":"command-group",className:T("qodo qodo-command-group","text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function ud({className:e,...t}){return l.jsx(Wt.Item,{"data-slot":"command-item",className:T("qodo qodo-command-item","data-[selected=true]:bg-purple-muted-500 data-[selected=true]:text-purple-100 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function _w(e){const t=Ow(e),r=d.forwardRef((n,o)=>{const{children:a,...s}=n,i=d.Children.toArray(a),c=i.find(Dw);if(c){const u=c.props.children,f=i.map(p=>p===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function Ow(e){const t=d.forwardRef((r,n)=>{const{children:o,...a}=r;if(d.isValidElement(o)){const s=Lw(o),i=$w(a,o.props);return o.type!==d.Fragment&&(i.ref=n?Ae(n,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Mw=Symbol("radix.slottable");function Dw(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Mw}function $w(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Lw(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Eo="Popover",[dd]=Pe(Eo,[bt]),an=bt(),[Fw,Ct]=dd(Eo),fd=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,i=an(t),c=d.useRef(null),[u,f]=d.useState(!1),[p,m]=ke({prop:n,defaultProp:o??!1,onChange:a,caller:Eo});return l.jsx(tn,{...i,children:l.jsx(Fw,{scope:t,contentId:be(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:d.useCallback(()=>m(g=>!g),[m]),hasCustomAnchor:u,onCustomAnchorAdd:d.useCallback(()=>f(!0),[]),onCustomAnchorRemove:d.useCallback(()=>f(!1),[]),modal:s,children:r})})};fd.displayName=Eo;var pd="PopoverAnchor",Vw=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ct(pd,r),a=an(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:i}=o;return d.useEffect(()=>(s(),()=>i()),[s,i]),l.jsx(rn,{...a,...n,ref:t})});Vw.displayName=pd;var md="PopoverTrigger",gd=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ct(md,r),a=an(r),s=le(t,o.triggerRef),i=l.jsx(re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":yd(o.open),...n,ref:s,onClick:K(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:l.jsx(rn,{asChild:!0,...a,children:i})});gd.displayName=md;var os="PopoverPortal",[Bw,Gw]=dd(os,{forceMount:void 0}),vd=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=Ct(os,t);return l.jsx(Bw,{scope:t,forceMount:r,children:l.jsx(je,{present:r||a.open,children:l.jsx(xr,{asChild:!0,container:o,children:n})})})};vd.displayName=os;var ur="PopoverContent",hd=d.forwardRef((e,t)=>{const r=Gw(ur,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=Ct(ur,e.__scopePopover);return l.jsx(je,{present:n||a.open,children:a.modal?l.jsx(zw,{...o,ref:t}):l.jsx(qw,{...o,ref:t})})});hd.displayName=ur;var Ww=_w("PopoverContent.RemoveScroll"),zw=d.forwardRef((e,t)=>{const r=Ct(ur,e.__scopePopover),n=d.useRef(null),o=le(t,n),a=d.useRef(!1);return d.useEffect(()=>{const s=n.current;if(s)return ho(s)},[]),l.jsx(nn,{as:Ww,allowPinchZoom:!0,children:l.jsx(xd,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:K(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),a.current||(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:K(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0,u=i.button===2||c;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:K(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),qw=d.forwardRef((e,t)=>{const r=Ct(ur,e.__scopePopover),n=d.useRef(!1),o=d.useRef(!1);return l.jsx(xd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var s,i;(s=e.onCloseAutoFocus)==null||s.call(e,a),a.defaultPrevented||(n.current||(i=r.triggerRef.current)==null||i.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(s))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),xd=d.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...p}=e,m=Ct(ur,r),g=an(r);return io(),l.jsx(Qr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:l.jsx(gr,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>m.onOpenChange(!1),children:l.jsx(mo,{"data-state":yd(m.open),role:"dialog",id:m.contentId,...g,...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)"}})})})}),bd="PopoverClose",Hw=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Ct(bd,r);return l.jsx(re.button,{type:"button",...n,ref:t,onClick:K(e.onClick,()=>o.onOpenChange(!1))})});Hw.displayName=bd;var Uw="PopoverArrow",Kw=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=an(r);return l.jsx(go,{...o,...n,ref:t})});Kw.displayName=Uw;function yd(e){return e?"open":"closed"}var Yw=fd,Xw=gd,Zw=vd,Jw=hd;function as({...e}){return l.jsx(Yw,{"data-slot":"popover",...e})}function ss({...e}){return l.jsx(Xw,{"data-slot":"popover-trigger",...e})}function is({className:e,align:t="center",sideOffset:r=4,...n}){return l.jsx(Zw,{children:l.jsx(Jw,{"data-slot":"popover-content",align:t,sideOffset:r,className:T("qodo qodo-popover-content bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})}const ls=d.forwardRef(({options:e,value:t,onValueChange:r,placeholder:n="Select option...",searchPlaceholder:o="Search...",emptyText:a="No option found.",disabled:s=!1,readOnly:i=!1,error:c=!1,className:u,onSearchChange:f,isLoading:p=!1,loadingText:m="Loading...",...g},h)=>{const[v,x]=d.useState(!1),[b,y]=d.useState(""),[w,S]=d.useState(0),R=d.useRef(null),P=e.find(N=>N.value===t),k=N=>{y(N),f==null||f(N)};return d.useEffect(()=>{R.current&&S(R.current.offsetWidth)},[]),l.jsxs(as,{open:i?!1:v,onOpenChange:x,children:[l.jsx(ss,{asChild:!0,children:l.jsxs(Be,{ref:N=>{typeof h=="function"?h(N):h&&(h.current=N),R.current=N},variant:"outline",role:"combobox","aria-expanded":v,"aria-invalid":c||void 0,"data-readonly":i||void 0,className:T("qodo qodo-combobox w-full h-9 px-3 py-1 justify-between rounded-md","border border-purple-muted-500 bg-purple-muted-700 hover:bg-purple-muted-700","text-sm md:text-sm text-purple-muted-300 hover:text-purple-muted-300 focus:text-purple-muted-300 active:text-purple-muted-300 selection:bg-primary selection:text-primary-foreground","font-normal shadow-xs transition-[color,box-shadow] outline-none focus-visible:!ring-ring/50 focus-visible:!ring-[3px] focus-visible:!ring-offset-0","aria-invalid:!border-destructive aria-invalid:!ring-destructive/20 dark:aria-invalid:!ring-destructive/40","disabled:!cursor-not-allowed disabled:!pointer-events-auto disabled:opacity-50 disabled:!bg-purple-muted-700 disabled:!border-purple-muted-500 disabled:!text-purple-muted-300 disabled:hover:!bg-purple-muted-700 disabled:hover:!text-purple-muted-300","data-[readonly]:opacity-100 data-[readonly]:bg-purple-muted-700 data-[readonly]:border-purple-muted-400 data-[readonly]:cursor-default data-[readonly]:text-purple-muted-200 data-[readonly]:hover:bg-purple-muted-700 data-[readonly]:hover:text-purple-muted-200",{"text-muted-foreground":!P},u),disabled:s,...g,children:[P?P.label:n,l.jsx(Fv,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),l.jsx(is,{className:"p-0 border bg-[var(--fill-interactive-neutral-idle)] border-purple-muted-500 text-purple-muted-300",style:{width:w>0?`${w}px`:"auto"},children:l.jsxs(ad,{className:"w-full bg-[var(--fill-interactive-neutral-idle)]",shouldFilter:!f,children:[l.jsx(sd,{placeholder:o,...!!f&&{value:b,onValueChange:k}}),l.jsx(id,{children:p?l.jsx(Aw,{children:m}):l.jsxs(l.Fragment,{children:[l.jsx(ld,{className:"flex justify-center items-center p-6 text-center text-sm text-purple-muted-300",children:a}),l.jsx(cd,{children:e.map(N=>{const D=t===N.value;return l.jsxs(ud,{value:N.value,keywords:[N.label],disabled:N.disabled,className:T("text-purple-100 hover:bg-purple-muted-500","focus:bg-purple-muted-500 focus:text-purple-100",{"bg-purple-muted-500":D}),onSelect:B=>{B!==t&&(r==null||r(B===t?"":B)),x(!1)},children:[l.jsx(mr,{className:T("mr-2 h-4 w-4",{"opacity-100":D,"opacity-0":!D})}),N.label]},N.value)})})]})})]})})]})});ls.displayName="Combobox";const Qw=Bt("qodo qodo-badge inline-flex items-center dark:font-normal border transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-light gap-1",{variants:{variant:{default:"border-[var(--border-tag-emphasis-idle)] bg-[var(--fill-tag-emphasis-idle)] text-[var(--text-tag-emphasis-idle)] hover:text-[var(--text-tag-emphasis-hover)] hover:bg-[var(--fill-tag-emphasis-hover)] hover:border-[var(--border-tag-emphasis-hover)] aria-active:text-[var(--text-tag-emphasis-active)] aria-active:bg-[var(--fill-tag-emphasis-active)] aria-active:border-[var(--border-tag-emphasis-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-emphasis-disabled)] aria-disabled:bg-[var(--fill-tag-emphasis-disabled)] aria-disabled:border-[var(--border-tag-emphasis-disabled)] ",primary:"border-[var(--border-tag-emphasis-idle)] bg-[var(--fill-tag-emphasis-idle)] text-[var(--text-tag-emphasis-idle)] hover:text-[var(--text-tag-emphasis-hover)] hover:bg-[var(--fill-tag-emphasis-hover)] hover:border-[var(--border-tag-emphasis-hover)] aria-active:text-[var(--text-tag-emphasis-active)] aria-active:bg-[var(--fill-tag-emphasis-active)] aria-active:border-[var(--border-tag-emphasis-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-emphasis-disabled)] aria-disabled:bg-[var(--fill-tag-emphasis-disabled)] aria-disabled:border-[var(--border-tag-emphasis-disabled)] ",secondary:"border-purple-muted-600 text-purple-300",destructive:"border-[var(--border-tag-negative-idle)] bg-[var(--fill-tag-negative-idle)] text-[var(--text-tag-negative-idle)] hover:text-[var(--text-tag-negative-hover)] hover:bg-[var(--fill-tag-negative-hover)] hover:border-[var(--border-tag-negative-hover)] aria-active:text-[var(--text-tag-negative-active)] aria-active:bg-[var(--fill-tag-negative-active)] aria-active:border-[var(--border-tag-negative-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-negative-disabled)] aria-disabled:bg-[var(--fill-tag-negative-disabled)] aria-disabled:border-[var(--border-tag-negative-disabled)] ",outline:"border-[var(--border-tag-neutral-idle)] bg-[var(--fill-tag-neutral-idle)] text-[var(--text-tag-neutral-idle)] hover:text-[var(--text-tag-neutral-hover)] hover:bg-[var(--fill-tag-neutral-hover)] hover:border-[var(--border-tag-neutral-hover)] aria-active:text-[var(--text-tag-neutral-active)] aria-active:bg-[var(--fill-tag-neutral-active)] aria-active:border-[var(--border-tag-neutral-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-neutral-disabled)] aria-disabled:bg-[var(--fill-tag-neutral-disabled)] aria-disabled:border-[var(--border-tag-neutral-disabled)] ",success:"text-[var(--text-tag-positive-idle)] bg-[var(--fill-tag-positive-idle)] border-[var(--border-tag-positive-idle)] hover:text-[var(--text-tag-positive-hover)] hover:bg-[var(--fill-tag-positive-hover)] hover:border-[var(--border-tag-positive-hover)] aria-active:text-[var(--text-tag-positive-active)] aria-active:bg-[var(--fill-tag-positive-active)] aria-active:border-[var(--border-tag-positive-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-positive-disabled)] aria-disabled:bg-[var(--fill-tag-positive-disabled)] aria-disabled:border-[var(--border-tag-positive-disabled)] ",error:"border-[var(--border-tag-negative-idle)] bg-[var(--fill-tag-negative-idle)] text-[var(--text-tag-negative-idle)] hover:text-[var(--text-tag-negative-hover)] hover:bg-[var(--fill-tag-negative-hover)] hover:border-[var(--border-tag-negative-hover)] aria-active:text-[var(--text-tag-negative-active)] aria-active:bg-[var(--fill-tag-negative-active)] aria-active:border-[var(--border-tag-negative-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-negative-disabled)] aria-disabled:bg-[var(--fill-tag-negative-disabled)] aria-disabled:border-[var(--border-tag-negative-disabled)] ",pending:"border-[var(--border-tag-emphasis-idle)] bg-[var(--fill-tag-emphasis-idle)] text-[var(--text-tag-emphasis-idle)] hover:text-[var(--text-tag-emphasis-hover)] hover:bg-[var(--fill-tag-emphasis-hover)] hover:border-[var(--border-tag-emphasis-hover)] aria-active:text-[var(--text-tag-emphasis-active)] aria-active:bg-[var(--fill-tag-emphasis-active)] aria-active:border-[var(--border-tag-emphasis-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-emphasis-disabled)] aria-disabled:bg-[var(--fill-tag-emphasis-disabled)] aria-disabled:border-[var(--border-tag-emphasis-disabled)] ",warning:"border-[var(--border-tag-warning-idle)] bg-[var(--fill-tag-warning-idle)] text-[var(--text-tag-warning-idle)] hover:text-[var(--text-tag-warning-hover)] hover:bg-[var(--fill-tag-warning-hover)] hover:border-[var(--border-tag-warning-hover)] aria-active:text-[var(--text-tag-warning-active)] aria-active:bg-[var(--fill-tag-warning-active)] aria-active:border-[var(--border-tag-warning-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-warning-disabled)] aria-disabled:bg-[var(--fill-tag-warning-disabled)] aria-disabled:border-[var(--border-tag-warning-disabled)] ",text:"bg-transparent border-transparent text-primary-foreground !p-0"},size:{xs:"text-[10px] px-1.5 py-0.5 rounded-sm bg-transparent hover:bg-transparent aria-disabled:bg-transparent aria-active:bg-transparent",sm:"text-xs px-2.5 py-0.5 rounded-full",md:"text-sm px-2.5 py-0.5 rounded-full",lg:"text-base px-2.5 py-2 rounded-full"}},defaultVariants:{variant:"default",size:"sm"}});function Lt({className:e,variant:t,size:r,disabled:n=!1,active:o=!1,...a}){return l.jsx("div",{"aria-disabled":n,"aria-active":o,className:T(Qw({variant:t,size:r}),e),...a})}function wd({className:e,...t}){return l.jsx("div",{"data-slot":"card",className:T("qodo qodo-card bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm dark:bg-card dark:text-card-foreground dark:border-border",e),...t})}function Cd({className:e,...t}){return l.jsx("div",{"data-slot":"card-header",className:T("qodo qodo-card-header @container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Sd({className:e,...t}){return l.jsx("div",{"data-slot":"card-title",className:T("qodo qodo-card-title leading-none font-semibold",e),...t})}function Ed({className:e,...t}){return l.jsx("div",{"data-slot":"card-description",className:T("qodo qodo-card-description text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function e0({className:e,...t}){return l.jsx("div",{"data-slot":"card-action",className:T("qodo qodo-card-action col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function Rd({className:e,...t}){return l.jsx("div",{"data-slot":"card-content",className:T("qodo qodo-card-content px-6",e),...t})}function t0({className:e,...t}){return l.jsx("div",{"data-slot":"card-footer",className:T("qodo qodo-card-footer flex items-center px-6 [.border-t]:pt-6",e),...t})}function r0(e,t=[]){let r=[];function n(a,s){const i=d.createContext(s);i.displayName=a+"Context";const c=r.length;r=[...r,s];const u=p=>{var b;const{scope:m,children:g,...h}=p,v=((b=m==null?void 0:m[e])==null?void 0:b[c])||i,x=d.useMemo(()=>h,Object.values(h));return l.jsx(v.Provider,{value:x,children:g})};u.displayName=a+"Provider";function f(p,m){var v;const g=((v=m==null?void 0:m[e])==null?void 0:v[c])||i,h=d.useContext(g);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=r.map(s=>d.createContext(s));return function(i){const c=(i==null?void 0:i[e])||a;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:c}}),[i,c])}};return o.scopeName=e,[n,n0(o,...t)]}function n0(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=n.reduce((i,{useScope:c,scopeName:u})=>{const p=c(a)[`__scope${u}`];return{...i,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}var o0=Symbol.for("react.lazy"),Hn=d[" use ".trim().toString()];function a0(e){return typeof e=="object"&&e!==null&&"then"in e}function kd(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===o0&&"_payload"in e&&a0(e._payload)}function cs(e){const t=i0(e),r=d.forwardRef((n,o)=>{let{children:a,...s}=n;kd(a)&&typeof Hn=="function"&&(a=Hn(a._payload));const i=d.Children.toArray(a),c=i.find(c0);if(c){const u=c.props.children,f=i.map(p=>p===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var s0=cs("Slot");function i0(e){const t=d.forwardRef((r,n)=>{let{children:o,...a}=r;if(kd(o)&&typeof Hn=="function"&&(o=Hn(o._payload)),d.isValidElement(o)){const s=d0(o),i=u0(a,o.props);return o.type!==d.Fragment&&(i.ref=n?Ae(n,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var l0=Symbol("radix.slottable");function c0(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===l0}function u0(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function d0(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var f0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nd=f0.reduce((e,t)=>{const r=cs(`Primitive.${t}`),n=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),us="Progress",ds=100,[p0]=r0(us),[m0,g0]=p0(us),Pd=d.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:a=v0,...s}=e;(o||o===0)&&!Ji(o)&&console.error(h0(`${o}`,"Progress"));const i=Ji(o)?o:ds;n!==null&&!Qi(n,i)&&console.error(x0(`${n}`,"Progress"));const c=Qi(n,i)?n:null,u=Un(c)?a(c,i):void 0;return l.jsx(m0,{scope:r,value:c,max:i,children:l.jsx(Nd.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":Un(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":Id(c,i),"data-value":c??void 0,"data-max":i,...s,ref:t})})});Pd.displayName=us;var jd="ProgressIndicator",Td=d.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=g0(jd,r);return l.jsx(Nd.div,{"data-state":Id(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});Td.displayName=jd;function v0(e,t){return`${Math.round(e/t*100)}%`}function Id(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Un(e){return typeof e=="number"}function Ji(e){return Un(e)&&!isNaN(e)&&e>0}function Qi(e,t){return Un(e)&&!isNaN(e)&&e<=t&&e>=0}function h0(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ds}\`.`}function x0(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
205
195
  - a positive number
206
- - less than the value passed to \`max\` (or ${ja} if no \`max\` prop is set)
196
+ - less than the value passed to \`max\` (or ${ds} if no \`max\` prop is set)
207
197
  - \`null\` or \`undefined\` if the progress is indeterminate.
208
198
 
209
- Defaulting to \`null\`.`}var Yw=Gd,Xw=qd;function Zw({className:e,value:t,...r}){return i.jsx(Yw,{"data-slot":"progress",className:k("qodo qodo-progress bg-primary/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-primary/20",e),...r,children:i.jsx(Xw,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all dark:bg-primary",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function Ud({className:e,...t}){return i.jsx("div",{className:k("qodo qodo-skeleton animate-pulse rounded-md bg-neutral-900/10 dark:bg-neutral-50/10",e),...t})}var Hn="Switch",[Jw]=we(Hn),[Qw,e0]=Jw(Hn),Kd=c.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:s,disabled:l,value:d="on",onCheckedChange:u,form:f,...p}=e,[m,g]=c.useState(null),x=ae(t,C=>g(C)),v=c.useRef(!1),h=m?f||!!m.closest("form"):!0,[y,b]=be({prop:o,defaultProp:a??!1,onChange:u,caller:Hn});return i.jsxs(Qw,{scope:r,checked:y,disabled:l,children:[i.jsx(K.button,{type:"button",role:"switch","aria-checked":y,"aria-required":s,"data-state":Jd(y),"data-disabled":l?"":void 0,disabled:l,value:d,...p,ref:x,onClick:V(e.onClick,C=>{b(E=>!E),h&&(v.current=C.isPropagationStopped(),v.current||C.stopPropagation())})}),h&&i.jsx(Zd,{control:m,bubbles:!v.current,name:n,value:d,checked:y,required:s,disabled:l,form:f,style:{transform:"translateX(-100%)"}})]})});Kd.displayName=Hn;var Yd="SwitchThumb",Xd=c.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=e0(Yd,r);return i.jsx(K.span,{"data-state":Jd(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Xd.displayName=Yd;var t0="SwitchBubbleInput",Zd=c.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=c.useRef(null),l=ae(s,a),d=$n(r),u=On(t);return c.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==r&&g){const x=new Event("click",{bubbles:n});g.call(f,r),f.dispatchEvent(x)}},[d,r,n]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:l,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Zd.displayName=t0;function Jd(e){return e?"checked":"unchecked"}var r0=Kd,n0=Xd;const o0=_t("qodo qodo-switch peer inline-flex shrink-0 items-center rounded-full border transition-all outline-none shadow-lg p-0.5 disabled:cursor-not-allowed",{variants:{size:{small:"h-5 w-8",large:"h-6 w-10"}},defaultVariants:{size:"small"}}),a0=_t("pointer-events-none block rounded-full ring-0 transition-transform shadow-lg",{variants:{size:{small:"h-[14px] w-[14px] data-[state=checked]:translate-x-[12px]",large:"h-[18px] w-[18px] data-[state=checked]:translate-x-[16px]"}},defaultVariants:{size:"small"}});function s0({className:e,size:t,...r}){return i.jsx(r0,{"data-slot":"switch",className:k(o0({size:t}),"data-[state=unchecked]:border-[var(--border-input-neutral-idle)] data-[state=unchecked]:bg-[var(--fill-input-neutral-idle)]","data-[state=unchecked]:hover:border-[var(--border-input-neutral-hover)] data-[state=unchecked]:hover:bg-[var(--fill-input-neutral-hover)]","data-[state=unchecked]:active:border-[var(--border-input-neutral-active)] data-[state=unchecked]:active:bg-[var(--fill-input-neutral-active)]","data-[state=unchecked]:disabled:border-[var(--border-input-neutral-disabled)] data-[state=unchecked]:disabled:bg-[var(--fill-input-neutral-disabled)]","data-[state=checked]:border-[var(--color-purple-700)] data-[state=checked]:bg-[var(--fill-input-emphasis-idle)]","data-[state=checked]:hover:border-[var(--color-purple-600)] data-[state=checked]:hover:bg-[var(--fill-input-emphasis-hover)]","data-[state=checked]:active:border-[var(--color-purple-600)] data-[state=checked]:active:bg-[var(--fill-input-emphasis-active)]","data-[state=checked]:disabled:border-[var(--fill-input-emphasis-disabled)] data-[state=checked]:disabled:bg-[var(--fill-input-emphasis-disabled)]",e),...r,children:i.jsx(n0,{"data-slot":"switch-thumb",className:k(a0({size:t}),"data-[state=unchecked]:bg-[var(--icon-input-neutral-idle)]","data-[state=unchecked]:hover:bg-[var(--icon-input-neutral-hover)]","data-[state=unchecked]:active:bg-[var(--icon-input-neutral-active)]","data-[state=unchecked]:disabled:bg-[var(--icon-input-neutral-disabled)]","data-[state=checked]:bg-[var(--icon-input-emphasis-idle)]","data-[state=checked]:hover:bg-[var(--icon-input-emphasis-hover)]","data-[state=checked]:active:bg-[var(--icon-input-emphasis-active)]","data-[state=checked]:disabled:bg-[var(--icon-input-emphasis-disabled)]","data-[state=unchecked]:translate-x-0")})})}var Qd="Toggle",Pa=c.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[s,l]=be({prop:r,onChange:o,defaultProp:n??!1,caller:Qd});return i.jsx(K.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:V(e.onClick,()=>{e.disabled||l(!s)})})});Pa.displayName=Qd;var i0=Pa;const eu=_t("qodo qodo-toggle inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium text-foreground hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap dark:text-foreground dark:hover:bg-muted dark:hover:text-muted-foreground dark:data-[state=on]:bg-accent dark:data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent text-foreground dark:bg-transparent dark:text-foreground",outline:"border border-input bg-transparent text-foreground shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-transparent dark:text-foreground dark:hover:bg-accent dark:hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function l0({className:e,variant:t,size:r,...n}){return i.jsx(i0,{"data-slot":"toggle",className:k(eu({variant:t,size:r,className:e})),...n})}var No="rovingFocusGroup.onEntryFocus",c0={bubbles:!1,cancelable:!0},Mr="RovingFocusGroup",[Uo,tu,d0]=jn(Mr),[u0,ht]=we(Mr,[d0]),[f0,p0]=u0(Mr),ru=c.forwardRef((e,t)=>i.jsx(Uo.Provider,{scope:e.__scopeRovingFocusGroup,children:i.jsx(Uo.Slot,{scope:e.__scopeRovingFocusGroup,children:i.jsx(m0,{...e,ref:t})})}));ru.displayName=Mr;var m0=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,m=c.useRef(null),g=ae(t,m),x=At(a),[v,h]=be({prop:s,defaultProp:l??null,onChange:d,caller:Mr}),[y,b]=c.useState(!1),C=$e(u),E=tu(r),R=c.useRef(!1),[T,P]=c.useState(0);return c.useEffect(()=>{const j=m.current;if(j)return j.addEventListener(No,C),()=>j.removeEventListener(No,C)},[C]),i.jsx(f0,{scope:r,orientation:n,dir:x,loop:o,currentTabStopId:v,onItemFocus:c.useCallback(j=>h(j),[h]),onItemShiftTab:c.useCallback(()=>b(!0),[]),onFocusableItemAdd:c.useCallback(()=>P(j=>j+1),[]),onFocusableItemRemove:c.useCallback(()=>P(j=>j-1),[]),children:i.jsx(K.div,{tabIndex:y||T===0?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{R.current=!0}),onFocus:V(e.onFocus,j=>{const F=!R.current;if(j.target===j.currentTarget&&F&&!y){const q=new CustomEvent(No,c0);if(j.currentTarget.dispatchEvent(q),!q.defaultPrevented){const re=E().filter(I=>I.focusable),te=re.find(I=>I.active),ee=re.find(I=>I.id===v),D=[te,ee,...re].filter(Boolean).map(I=>I.ref.current);au(D,f)}}R.current=!1}),onBlur:V(e.onBlur,()=>b(!1))})})}),nu="RovingFocusGroupItem",ou=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...l}=e,d=me(),u=a||d,f=p0(nu,r),p=f.currentTabStopId===u,m=tu(r),{onFocusableItemAdd:g,onFocusableItemRemove:x,currentTabStopId:v}=f;return c.useEffect(()=>{if(n)return g(),()=>x()},[n,g,x]),i.jsx(Uo.ItemSlot,{scope:r,id:u,focusable:n,active:o,children:i.jsx(K.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:V(e.onMouseDown,h=>{n?f.onItemFocus(u):h.preventDefault()}),onFocus:V(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:V(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){f.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const y=h0(h,f.orientation,f.dir);if(y!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let C=m().filter(E=>E.focusable).map(E=>E.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const E=C.indexOf(h.currentTarget);C=f.loop?x0(C,E+1):C.slice(E+1)}setTimeout(()=>au(C))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:v!=null}):s})})});ou.displayName=nu;var g0={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function v0(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function h0(e,t,r){const n=v0(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return g0[n]}function au(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function x0(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Un=ru,Kn=ou,xt="ToggleGroup",[su]=we(xt,[ht]),iu=ht(),Ta=S.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return i.jsx(b0,{...o,ref:t})}if(r==="multiple"){const o=n;return i.jsx(y0,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${xt}\``)});Ta.displayName=xt;var[lu,cu]=su(xt),b0=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[s,l]=be({prop:r,defaultProp:n??"",onChange:o,caller:xt});return i.jsx(lu,{scope:e.__scopeToggleGroup,type:"single",value:S.useMemo(()=>s?[s]:[],[s]),onItemActivate:l,onItemDeactivate:S.useCallback(()=>l(""),[l]),children:i.jsx(du,{...a,ref:t})})}),y0=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[s,l]=be({prop:r,defaultProp:n??[],onChange:o,caller:xt}),d=S.useCallback(f=>l((p=[])=>[...p,f]),[l]),u=S.useCallback(f=>l((p=[])=>p.filter(m=>m!==f)),[l]);return i.jsx(lu,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:d,onItemDeactivate:u,children:i.jsx(du,{...a,ref:t})})});Ta.displayName=xt;var[w0,C0]=su(xt),du=S.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:s,loop:l=!0,...d}=e,u=iu(r),f=At(s),p={role:"group",dir:f,...d};return i.jsx(w0,{scope:r,rovingFocus:o,disabled:n,children:o?i.jsx(Un,{asChild:!0,...u,orientation:a,dir:f,loop:l,children:i.jsx(K.div,{...p,ref:t})}):i.jsx(K.div,{...p,ref:t})})}),hn="ToggleGroupItem",uu=S.forwardRef((e,t)=>{const r=cu(hn,e.__scopeToggleGroup),n=C0(hn,e.__scopeToggleGroup),o=iu(e.__scopeToggleGroup),a=r.value.includes(e.value),s=n.disabled||e.disabled,l={...e,pressed:a,disabled:s},d=S.useRef(null);return n.rovingFocus?i.jsx(Kn,{asChild:!0,...o,focusable:!s,active:a,ref:d,children:i.jsx(bi,{...l,ref:t})}):i.jsx(bi,{...l,ref:t})});uu.displayName=hn;var bi=S.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=cu(hn,r),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?s:void 0;return i.jsx(Pa,{...l,...o,ref:t,onPressedChange:d=>{d?a.onItemActivate(n):a.onItemDeactivate(n)}})}),S0=Ta,E0=uu;const fu=c.createContext({size:"default",variant:"default"});function R0({className:e,variant:t,size:r,children:n,...o}){return i.jsx(S0,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:k("qodo qodo-toggle-group group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs dark:data-[variant=outline]:shadow-xs",e),...o,children:i.jsx(fu.Provider,{value:{variant:t,size:r},children:n})})}function k0({className:e,children:t,variant:r,size:n,...o}){const a=c.useContext(fu);return i.jsx(E0,{"data-slot":"toggle-group-item","data-variant":a.variant||r,"data-size":a.size||n,className:k(eu({variant:a.variant||r,size:a.size||n}),"qodo qodo-toggle-group-item min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",e),...o,children:t})}var Yn="Collapsible",[N0,pu]=we(Yn),[j0,_a]=N0(Yn),mu=c.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:s,...l}=e,[d,u]=be({prop:n,defaultProp:o??!1,onChange:s,caller:Yn});return i.jsx(j0,{scope:r,disabled:a,contentId:me(),open:d,onOpenToggle:c.useCallback(()=>u(f=>!f),[u]),children:i.jsx(K.div,{"data-state":Ia(d),"data-disabled":a?"":void 0,...l,ref:t})})});mu.displayName=Yn;var gu="CollapsibleTrigger",vu=c.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=_a(gu,r);return i.jsx(K.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Ia(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:V(e.onClick,o.onOpenToggle)})});vu.displayName=gu;var Aa="CollapsibleContent",hu=c.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=_a(Aa,e.__scopeCollapsible);return i.jsx(Ce,{present:r||o.open,children:({present:a})=>i.jsx(P0,{...n,ref:t,present:a})})});hu.displayName=Aa;var P0=c.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,s=_a(Aa,r),[l,d]=c.useState(n),u=c.useRef(null),f=ae(t,u),p=c.useRef(0),m=p.current,g=c.useRef(0),x=g.current,v=s.open||l,h=c.useRef(v),y=c.useRef(void 0);return c.useEffect(()=>{const b=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(b)},[]),ye(()=>{const b=u.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const C=b.getBoundingClientRect();p.current=C.height,g.current=C.width,h.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),d(n)}},[s.open,n]),i.jsx(K.div,{"data-state":Ia(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!v,...a,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:v&&o})});function Ia(e){return e?"open":"closed"}var T0=mu,_0=vu,A0=hu,Be="Accordion",I0=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Oa,O0,M0]=jn(Be),[Xn]=we(Be,[M0,pu]),Ma=pu(),xu=S.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,a=n;return i.jsx(Oa.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?i.jsx(F0,{...a,ref:t}):i.jsx(L0,{...o,ref:t})})});xu.displayName=Be;var[bu,D0]=Xn(Be),[yu,$0]=Xn(Be,{collapsible:!1}),L0=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[l,d]=be({prop:r,defaultProp:n??"",onChange:o,caller:Be});return i.jsx(bu,{scope:e.__scopeAccordion,value:S.useMemo(()=>l?[l]:[],[l]),onItemOpen:d,onItemClose:S.useCallback(()=>a&&d(""),[a,d]),children:i.jsx(yu,{scope:e.__scopeAccordion,collapsible:a,children:i.jsx(wu,{...s,ref:t})})})}),F0=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[s,l]=be({prop:r,defaultProp:n??[],onChange:o,caller:Be}),d=S.useCallback(f=>l((p=[])=>[...p,f]),[l]),u=S.useCallback(f=>l((p=[])=>p.filter(m=>m!==f)),[l]);return i.jsx(bu,{scope:e.__scopeAccordion,value:s,onItemOpen:d,onItemClose:u,children:i.jsx(yu,{scope:e.__scopeAccordion,collapsible:!0,children:i.jsx(wu,{...a,ref:t})})})}),[V0,Zn]=Xn(Be),wu=S.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:a="vertical",...s}=e,l=S.useRef(null),d=ae(l,t),u=O0(r),p=At(o)==="ltr",m=V(e.onKeyDown,g=>{var j;if(!I0.includes(g.key))return;const x=g.target,v=u().filter(F=>{var q;return!((q=F.ref.current)!=null&&q.disabled)}),h=v.findIndex(F=>F.ref.current===x),y=v.length;if(h===-1)return;g.preventDefault();let b=h;const C=0,E=y-1,R=()=>{b=h+1,b>E&&(b=C)},T=()=>{b=h-1,b<C&&(b=E)};switch(g.key){case"Home":b=C;break;case"End":b=E;break;case"ArrowRight":a==="horizontal"&&(p?R():T());break;case"ArrowDown":a==="vertical"&&R();break;case"ArrowLeft":a==="horizontal"&&(p?T():R());break;case"ArrowUp":a==="vertical"&&T();break}const P=b%y;(j=v[P].ref.current)==null||j.focus()});return i.jsx(V0,{scope:r,disabled:n,direction:o,orientation:a,children:i.jsx(Oa.Slot,{scope:r,children:i.jsx(K.div,{...s,"data-orientation":a,ref:d,onKeyDown:n?void 0:m})})})}),xn="AccordionItem",[B0,Da]=Xn(xn),Cu=S.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,a=Zn(xn,r),s=D0(xn,r),l=Ma(r),d=me(),u=n&&s.value.includes(n)||!1,f=a.disabled||e.disabled;return i.jsx(B0,{scope:r,open:u,disabled:f,triggerId:d,children:i.jsx(T0,{"data-orientation":a.orientation,"data-state":ju(u),...l,...o,ref:t,disabled:f,open:u,onOpenChange:p=>{p?s.onItemOpen(n):s.onItemClose(n)}})})});Cu.displayName=xn;var Su="AccordionHeader",Eu=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Zn(Be,r),a=Da(Su,r);return i.jsx(K.h3,{"data-orientation":o.orientation,"data-state":ju(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});Eu.displayName=Su;var Ko="AccordionTrigger",Ru=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Zn(Be,r),a=Da(Ko,r),s=$0(Ko,r),l=Ma(r);return i.jsx(Oa.ItemSlot,{scope:r,children:i.jsx(_0,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...n,ref:t})})});Ru.displayName=Ko;var ku="AccordionContent",Nu=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Zn(Be,r),a=Da(ku,r),s=Ma(r);return i.jsx(A0,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Nu.displayName=ku;function ju(e){return e?"open":"closed"}var W0=xu,G0=Cu,z0=Eu,q0=Ru,H0=Nu;const $a=c.createContext({variant:"default"});function U0({variant:e="default",...t}){return i.jsx($a.Provider,{value:{variant:e},children:i.jsx(W0,{"data-slot":"accordion",...t})})}function K0({className:e,...t}){const{variant:r}=c.useContext($a);return i.jsx(G0,{"data-slot":"accordion-item",className:k("qodo qodo-accordion-item","text-[var(--text-interactive-neutral-idle)] text-base font-medium leading-6","hover:text-[var(--text-interactive-neutral-hover)]",{"border-b border-[var(--color-neutral-600)]":r==="default","border border-[var(--color-neutral-600)] mb-2 px-4 rounded-lg":r==="outlined","bg-[var(--fill-interactive-neutral-idle)] mb-2 px-2 rounded-lg":r==="filled"},e),...t})}function Y0({className:e,children:t,iconPosition:r="right",...n}){const{variant:o}=c.useContext($a);return i.jsx(z0,{className:"flex",children:i.jsxs(q0,{"data-slot":"accordion-trigger",className:k("qodo qodo-accordion-trigger","flex flex-1 items-start justify-between gap-4 rounded-md","text-left text-sm font-medium transition-all outline-none","text-text-interactive-neutral-idle cursor-pointer","hover:text-[var(--text-interactive-neutral-hover)]","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","disabled:pointer-events-none disabled:opacity-50","[&[data-state=open]>svg]:rotate-180","dark:focus-visible:border-ring dark:focus-visible:ring-ring/50",{"py-4":o!=="filled","py-2":o==="filled","flex-row-reverse justify-end gap-2":r==="left"},e),...n,children:[t,i.jsx(kn,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200 dark:text-muted-foreground"})]})})}function X0({className:e,children:t,...r}){return i.jsx(H0,{"data-slot":"accordion-content",className:k("qodo qodo-accordion-content","overflow-hidden text-sm text-foreground","data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down","dark:text-foreground"),...r,children:i.jsx("div",{className:k("pt-0 pb-4","text-text-interactive-neutral-idle font-normal text-sm",e),children:t})})}var Jn="Tabs",[Z0]=we(Jn,[ht]),Pu=ht(),[J0,La]=Z0(Jn),Tu=c.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:l,activationMode:d="automatic",...u}=e,f=At(l),[p,m]=be({prop:n,onChange:o,defaultProp:a??"",caller:Jn});return i.jsx(J0,{scope:r,baseId:me(),value:p,onValueChange:m,orientation:s,dir:f,activationMode:d,children:i.jsx(K.div,{dir:f,"data-orientation":s,...u,ref:t})})});Tu.displayName=Jn;var _u="TabsList",Au=c.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=La(_u,r),s=Pu(r);return i.jsx(Un,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:n,children:i.jsx(K.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});Au.displayName=_u;var Iu="TabsTrigger",Ou=c.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,s=La(Iu,r),l=Pu(r),d=$u(s.baseId,n),u=Lu(s.baseId,n),f=n===s.value;return i.jsx(Kn,{asChild:!0,...l,focusable:!o,active:f,children:i.jsx(K.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...a,ref:t,onMouseDown:V(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?s.onValueChange(n):p.preventDefault()}),onKeyDown:V(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(n)}),onFocus:V(e.onFocus,()=>{const p=s.activationMode!=="manual";!f&&!o&&p&&s.onValueChange(n)})})})});Ou.displayName=Iu;var Mu="TabsContent",Du=c.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...s}=e,l=La(Mu,r),d=$u(l.baseId,n),u=Lu(l.baseId,n),f=n===l.value,p=c.useRef(f);return c.useEffect(()=>{const m=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(m)},[]),i.jsx(Ce,{present:o||f,children:({present:m})=>i.jsx(K.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":d,hidden:!m,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:m&&a})})});Du.displayName=Mu;function $u(e,t){return`${e}-trigger-${t}`}function Lu(e,t){return`${e}-content-${t}`}var Q0=Tu,eC=Au,tC=Ou,rC=Du;function nC({className:e,...t}){return i.jsx(Q0,{"data-slot":"tabs",className:k("qodo qodo-tabs flex flex-col gap-2",e),...t})}function oC({className:e,...t}){return i.jsx(eC,{"data-slot":"tabs-list",className:k("inline-flex w-full items-end justify-start gap-4",e),...t})}function aC({className:e,...t}){return i.jsx(tC,{"data-slot":"tabs-trigger",className:k("text-[var(--text-interactive-neutral-idle)] hover:text-[var(--text-interactive-neutral-hover)] data-[state=active]:text-[var(--text-interactive-emphasis-active)] focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex items-center justify-center gap-1.5 border-b border-transparent py-4 text-xs font-normal whitespace-nowrap transition-[color,border-color] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed data-[state=active]:border-[var(--color-purple-400)] relative -mb-px tracking-[0.01em] leading-[150%] cursor-pointer [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function sC({className:e,...t}){return i.jsx(rC,{"data-slot":"tabs-content",className:k("flex-1 outline-none",e),...t})}const Fu=_t("qodo qodo-typography",{variants:{variant:{h1:"scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl",h2:"scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0",h3:"scroll-m-20 text-2xl font-semibold tracking-tight",h4:"scroll-m-20 text-xl font-semibold tracking-tight",h5:"scroll-m-20 text-lg font-semibold tracking-tight",h6:"scroll-m-20 text-base font-semibold tracking-tight",p:"leading-7 [&:not(:first-child)]:mt-6",lead:"text-xl text-muted-foreground dark:text-muted-foreground",large:"text-lg font-semibold",small:"text-sm font-medium leading-none",muted:"text-sm text-muted-foreground dark:text-muted-foreground",body:"text-base leading-relaxed",caption:"text-xs text-muted-foreground dark:text-muted-foreground",code:"font-plex-mono relative rounded bg-muted px-[0.3rem] py-[0.2rem] text-sm font-semibold dark:bg-muted","code-inline":"font-plex-mono relative rounded bg-muted px-[0.3rem] py-[0.2rem] text-xs dark:bg-muted","code-block":"font-plex-mono block w-full rounded-lg bg-muted p-4 text-sm leading-relaxed dark:bg-muted overflow-x-auto",blockquote:"mt-6 border-l-2 pl-6 italic text-muted-foreground dark:text-muted-foreground",list:"my-6 ml-6 list-disc [&>li]:mt-2","list-ordered":"my-6 ml-6 list-decimal [&>li]:mt-2"}},defaultVariants:{variant:"p"}}),Vu=c.forwardRef(({className:e,variant:t,as:r,...n},o)=>{const a=r||iC(t)||"p";return c.createElement(a,{className:k(Fu({variant:t,className:e})),ref:o,...n})});Vu.displayName="Typography";function iC(e){switch(e){case"list":return"ul";case"list-ordered":return"ol";case"code-inline":return"code";case"code-block":return"pre";case"lead":case"large":case"small":case"muted":case"body":case"caption":return"p";default:return e||"p"}}var lC=e=>e.type==="checkbox",gr=e=>e instanceof Date,Fa=e=>e==null;const Bu=e=>typeof e=="object";var Tt=e=>!Fa(e)&&!Array.isArray(e)&&Bu(e)&&!gr(e),cC=e=>Tt(e)&&e.target?lC(e.target)?e.target.checked:e.target.value:e,dC=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,uC=(e,t)=>e.has(dC(t)),fC=e=>{const t=e.constructor&&e.constructor.prototype;return Tt(t)&&t.hasOwnProperty("isPrototypeOf")},pC=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Wu(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(pC&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(Tt(e)&&fC(e)))return e;const n=r?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=Wu(e[o]));return n}var Gu=e=>/^\w*$/.test(e),Yo=e=>e===void 0,mC=e=>Array.isArray(e)?e.filter(Boolean):[],zu=e=>mC(e.replace(/["|']|\]/g,"").split(/\.|\[/)),je=(e,t,r)=>{if(!t||!Tt(e))return r;const n=(Gu(t)?[t]:zu(t)).reduce((o,a)=>Fa(o)?o:o[a],e);return Yo(n)||n===e?Yo(e[t])?r:e[t]:n},jo=e=>typeof e=="boolean",en=e=>typeof e=="function",yi=(e,t,r)=>{let n=-1;const o=Gu(t)?[t]:zu(t),a=o.length,s=a-1;for(;++n<a;){const l=o[n];let d=r;if(n!==s){const u=e[l];d=Tt(u)||Array.isArray(u)?u:isNaN(+o[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=d,e=e[l]}};const wi={BLUR:"blur",CHANGE:"change"},Ci={all:"all"},Va=S.createContext(null);Va.displayName="HookFormControlContext";const Ba=()=>S.useContext(Va);var gC=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const s=a;return t._proxyFormState[s]!==Ci.all&&(t._proxyFormState[s]=!n||Ci.all),r&&(r[s]=!0),e[s]}});return o};const qu=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Hu(e){const t=Ba(),{control:r=t,disabled:n,name:o,exact:a}=e||{},[s,l]=S.useState(r._formState),d=S.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return qu(()=>r._subscribe({name:o,formState:d.current,exact:a,callback:u=>{!n&&l({...r._formState,...u})}}),[o,n,a]),S.useEffect(()=>{d.current.isValid&&r._setValid(!0)},[r]),S.useMemo(()=>gC(s,r,d.current,!1),[s,r])}var vC=e=>typeof e=="string",Si=(e,t,r,n,o)=>vC(e)?je(r,e,o):Array.isArray(e)?e.map(a=>je(r,a)):r,Ei=e=>Fa(e)||!Bu(e);function an(e,t,r=new WeakSet){if(Ei(e)||Ei(t))return Object.is(e,t);if(gr(e)&&gr(t))return Object.is(e.getTime(),t.getTime());const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const s=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const l=t[a];if(gr(s)&&gr(l)||Tt(s)&&Tt(l)||Array.isArray(s)&&Array.isArray(l)?!an(s,l,r):!Object.is(s,l))return!1}}return!0}function hC(e){const t=Ba(),{control:r=t,name:n,defaultValue:o,disabled:a,exact:s,compute:l}=e||{},d=S.useRef(o),u=S.useRef(l),f=S.useRef(void 0),p=S.useRef(r),m=S.useRef(n);u.current=l;const[g,x]=S.useState(()=>{const E=r._getWatch(n,d.current);return u.current?u.current(E):E}),v=S.useCallback(E=>{const R=Si(n,r._names,E||r._formValues,!1,d.current);return u.current?u.current(R):R},[r._formValues,r._names,n]),h=S.useCallback(E=>{if(!a){const R=Si(n,r._names,E||r._formValues,!1,d.current);if(u.current){const T=u.current(R);an(T,f.current)||(x(T),f.current=T)}else x(R)}},[r._formValues,r._names,a,n]);qu(()=>((p.current!==r||!an(m.current,n))&&(p.current=r,m.current=n,h()),r._subscribe({name:n,formState:{values:!0},exact:s,callback:E=>{h(E.values)}})),[r,s,n,h]),S.useEffect(()=>r._removeUnmounted());const y=p.current!==r,b=m.current,C=S.useMemo(()=>{if(a)return null;const E=!y&&!an(b,n);return y||E?v():null},[a,y,n,b,v]);return C!==null?C:g}function xC(e){const t=Ba(),{name:r,disabled:n,control:o=t,shouldUnregister:a,defaultValue:s,exact:l=!0}=e,d=uC(o._names.array,r),u=S.useMemo(()=>je(o._formValues,r,je(o._defaultValues,r,s)),[o,r,s]),f=hC({control:o,name:r,defaultValue:u,exact:l}),p=Hu({control:o,name:r,exact:l}),m=S.useRef(e),g=S.useRef(void 0),x=S.useRef(o.register(r,{...e.rules,value:f,...jo(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const v=S.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!je(p.errors,r)},isDirty:{enumerable:!0,get:()=>!!je(p.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!je(p.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!je(p.validatingFields,r)},error:{enumerable:!0,get:()=>je(p.errors,r)}}),[p,r]),h=S.useCallback(E=>x.current.onChange({target:{value:cC(E),name:r},type:wi.CHANGE}),[r]),y=S.useCallback(()=>x.current.onBlur({target:{value:je(o._formValues,r),name:r},type:wi.BLUR}),[r,o._formValues]),b=S.useCallback(E=>{const R=je(o._fields,r);R&&R._f&&E&&(R._f.ref={focus:()=>en(E.focus)&&E.focus(),select:()=>en(E.select)&&E.select(),setCustomValidity:T=>en(E.setCustomValidity)&&E.setCustomValidity(T),reportValidity:()=>en(E.reportValidity)&&E.reportValidity()})},[o._fields,r]),C=S.useMemo(()=>({name:r,value:f,...jo(n)||p.disabled?{disabled:p.disabled||n}:{},onChange:h,onBlur:y,ref:b}),[r,n,p.disabled,h,y,b,f]);return S.useEffect(()=>{const E=o._options.shouldUnregister||a,R=g.current;R&&R!==r&&!d&&o.unregister(R),o.register(r,{...m.current.rules,...jo(m.current.disabled)?{disabled:m.current.disabled}:{}});const T=(P,j)=>{const F=je(o._fields,P);F&&F._f&&(F._f.mount=j)};if(T(r,!0),E){const P=Wu(je(o._options.defaultValues,r,m.current.defaultValue));yi(o._defaultValues,r,P),Yo(je(o._formValues,r))&&yi(o._formValues,r,P)}return!d&&o.register(r),g.current=r,()=>{(d?E&&!o._state.action:E)?o.unregister(r):T(r,!1)}},[r,o,d,a]),S.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),S.useMemo(()=>({field:C,formState:p,fieldState:v}),[C,p,v])}const Uu=e=>e.render(xC(e)),Wa=S.createContext(null);Wa.displayName="HookFormContext";const Ga=()=>S.useContext(Wa),bC=e=>{const{children:t,watch:r,getValues:n,getFieldState:o,setError:a,clearErrors:s,setValue:l,trigger:d,formState:u,resetField:f,reset:p,handleSubmit:m,unregister:g,control:x,register:v,setFocus:h,subscribe:y}=e;return S.createElement(Wa.Provider,{value:S.useMemo(()=>({watch:r,getValues:n,getFieldState:o,setError:a,clearErrors:s,setValue:l,trigger:d,formState:u,resetField:f,reset:p,handleSubmit:m,unregister:g,control:x,register:v,setFocus:h,subscribe:y}),[s,x,u,o,n,m,v,p,f,a,h,l,y,d,g,r])},S.createElement(Va.Provider,{value:x},t))},Ku=S.createContext(void 0),Yu=e=>{const{methods:t,disabled:r,readOnly:n,children:o}=e;return i.jsx(Ku.Provider,{value:{disabled:r,readOnly:n},children:i.jsx(bC,{...t,children:o})})},Xu=()=>{const e=S.useContext(Ku),t=Ga();if(!e||!t)throw new Error("formContext must be used within a FormProvider");return{...e,...t}},yC=({type:e="button",variant:t="outline",...r})=>{const n=()=>e==="submit"||e==="reset"?"default":t;return i.jsx(tt,{type:e,variant:n(),...r})};var Zu={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ri=S.createContext&&S.createContext(Zu),wC=["attr","size","title"];function CC(e,t){if(e==null)return{};var r=SC(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bn.apply(this,arguments)}function ki(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function yn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ki(Object(r),!0).forEach(function(n){EC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EC(e,t,r){return t=RC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RC(e){var t=kC(e,"string");return typeof t=="symbol"?t:t+""}function kC(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ju(e){return e&&e.map((t,r)=>S.createElement(t.tag,yn({key:r},t.attr),Ju(t.child)))}function Qu(e){return t=>S.createElement(NC,bn({attr:yn({},e.attr)},t),Ju(e.child))}function NC(e){var t=r=>{var{attr:n,size:o,title:a}=e,s=CC(e,wC),l=o||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),S.createElement("svg",bn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:d,style:yn(yn({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&S.createElement("title",null,a),e.children)};return Ri!==void 0?S.createElement(Ri.Consumer,null,r=>t(r)):t(Zu)}function jC(e){return Qu({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Info"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M11.5,15a.5.5,0,0,0,1,0h0V10.981a.5.5,0,0,0-1,0Z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"8.999",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M12,2.065A9.934,9.934,0,1,1,2.066,12,9.945,9.945,0,0,1,12,2.065Zm0,18.867A8.934,8.934,0,1,0,3.066,12,8.944,8.944,0,0,0,12,20.932Z"},child:[]}]}]}]})(e)}var PC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],TC=PC.reduce((e,t)=>{const r=ka(`Primitive.${t}`),n=c.forwardRef((o,a)=>{const{asChild:s,...l}=o,d=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(d,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),_C="Label",ef=c.forwardRef((e,t)=>i.jsx(TC.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));ef.displayName=_C;var AC=ef;function za({className:e,...t}){return i.jsx(AC,{"data-slot":"label",className:k("qodo qodo-label flex items-center text-purple-muted-300 gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const tf=c.createContext({}),IC=({...e})=>i.jsx(tf.Provider,{value:{name:e.name},children:i.jsx(Uu,{...e})}),Qn=()=>{const e=c.useContext(tf),t=c.useContext(rf),{getFieldState:r}=Ga(),n=Hu({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},rf=c.createContext({});function OC({className:e,...t}){const r=c.useId();return i.jsx(rf.Provider,{value:{id:r},children:i.jsx("div",{"data-slot":"form-item",className:k("qodo qodo-form-item grid gap-2",e),...t})})}function MC({className:e,...t}){const{formItemId:r}=Qn();return i.jsx(za,{"data-slot":"form-label",className:k("data-[error=true]:text-destructive font-[400] uppercase font-mono text-xs leading-[1.4] text-[var(--text-bg-neutral-mid)] [&_span]:text-[var(--text-bg-neutral-mid)]",e),htmlFor:r,...t})}function DC({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=Qn();return i.jsx(Dw,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function $C({className:e,...t}){const{formDescriptionId:r}=Qn();return i.jsx("p",{"data-slot":"form-description",id:r,className:k("text-purple-muted-300 text-sm",e),...t})}function LC({className:e,...t}){const{error:r,formMessageId:n}=Qn(),o=r?String((r==null?void 0:r.message)??""):t.children;return o?i.jsx("p",{"data-slot":"form-message",id:n,className:k("text-destructive text-sm",e),role:"alert",...t,children:o}):null}var FC=Symbol("radix.slottable");function VC(e){const t=({children:r})=>i.jsx(i.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=FC,t}var[eo]=we("Tooltip",[pt]),to=pt(),nf="TooltipProvider",BC=700,Xo="tooltip.open",[WC,qa]=eo(nf),of=e=>{const{__scopeTooltip:t,delayDuration:r=BC,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,s=c.useRef(!0),l=c.useRef(!1),d=c.useRef(0);return c.useEffect(()=>{const u=d.current;return()=>window.clearTimeout(u)},[]),i.jsx(WC,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:c.useCallback(()=>{window.clearTimeout(d.current),s.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:c.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:a})};of.displayName=nf;var Sr="Tooltip",[GC,Dr]=eo(Sr),af=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=e,d=qa(Sr,e.__scopeTooltip),u=to(t),[f,p]=c.useState(null),m=me(),g=c.useRef(0),x=s??d.disableHoverableContent,v=l??d.delayDuration,h=c.useRef(!1),[y,b]=be({prop:n,defaultProp:o??!1,onChange:P=>{P?(d.onOpen(),document.dispatchEvent(new CustomEvent(Xo))):d.onClose(),a==null||a(P)},caller:Sr}),C=c.useMemo(()=>y?h.current?"delayed-open":"instant-open":"closed",[y]),E=c.useCallback(()=>{window.clearTimeout(g.current),g.current=0,h.current=!1,b(!0)},[b]),R=c.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b(!1)},[b]),T=c.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{h.current=!0,b(!0),g.current=0},v)},[v,b]);return c.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),i.jsx(Tr,{...u,children:i.jsx(GC,{scope:t,contentId:m,open:y,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:c.useCallback(()=>{d.isOpenDelayedRef.current?T():E()},[d.isOpenDelayedRef,T,E]),onTriggerLeave:c.useCallback(()=>{x?R():(window.clearTimeout(g.current),g.current=0)},[R,x]),onOpen:E,onClose:R,disableHoverableContent:x,children:r})})};af.displayName=Sr;var Zo="TooltipTrigger",sf=c.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Dr(Zo,r),a=qa(Zo,r),s=to(r),l=c.useRef(null),d=ae(t,l,o.onTriggerChange),u=c.useRef(!1),f=c.useRef(!1),p=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),i.jsx(_r,{asChild:!0,...s,children:i.jsx(K.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:d,onPointerMove:V(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:V(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:V(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:V(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:V(e.onBlur,o.onClose),onClick:V(e.onClick,o.onClose)})})});sf.displayName=Zo;var Ha="TooltipPortal",[zC,qC]=eo(Ha,{forceMount:void 0}),lf=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=Dr(Ha,t);return i.jsx(zC,{scope:t,forceMount:r,children:i.jsx(Ce,{present:r||a.open,children:i.jsx(sr,{asChild:!0,container:o,children:n})})})};lf.displayName=Ha;var Qt="TooltipContent",cf=c.forwardRef((e,t)=>{const r=qC(Qt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=Dr(Qt,e.__scopeTooltip);return i.jsx(Ce,{present:n||s.open,children:s.disableHoverableContent?i.jsx(df,{side:o,...a,ref:t}):i.jsx(HC,{side:o,...a,ref:t})})}),HC=c.forwardRef((e,t)=>{const r=Dr(Qt,e.__scopeTooltip),n=qa(Qt,e.__scopeTooltip),o=c.useRef(null),a=ae(t,o),[s,l]=c.useState(null),{trigger:d,onClose:u}=r,f=o.current,{onPointerInTransitChange:p}=n,m=c.useCallback(()=>{l(null),p(!1)},[p]),g=c.useCallback((x,v)=>{const h=x.currentTarget,y={x:x.clientX,y:x.clientY},b=XC(y,h.getBoundingClientRect()),C=ZC(y,b),E=JC(v.getBoundingClientRect()),R=eS([...C,...E]);l(R),p(!0)},[p]);return c.useEffect(()=>()=>m(),[m]),c.useEffect(()=>{if(d&&f){const x=h=>g(h,f),v=h=>g(h,d);return d.addEventListener("pointerleave",x),f.addEventListener("pointerleave",v),()=>{d.removeEventListener("pointerleave",x),f.removeEventListener("pointerleave",v)}}},[d,f,g,m]),c.useEffect(()=>{if(s){const x=v=>{const h=v.target,y={x:v.clientX,y:v.clientY},b=(d==null?void 0:d.contains(h))||(f==null?void 0:f.contains(h)),C=!QC(y,s);b?m():C&&(m(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[d,f,s,u,m]),i.jsx(df,{...e,ref:a})}),[UC,KC]=eo(Sr,{isInside:!1}),YC=VC("TooltipContent"),df=c.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=e,d=Dr(Qt,r),u=to(r),{onClose:f}=d;return c.useEffect(()=>(document.addEventListener(Xo,f),()=>document.removeEventListener(Xo,f)),[f]),c.useEffect(()=>{if(d.trigger){const p=m=>{const g=m.target;g!=null&&g.contains(d.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,f]),i.jsx(nr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:i.jsxs(Mn,{"data-state":d.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[i.jsx(YC,{children:n}),i.jsx(UC,{scope:r,isInside:!0,children:i.jsx(Hx,{id:d.contentId,role:"tooltip",children:o||n})})]})})});cf.displayName=Qt;var uf="TooltipArrow",ff=c.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=to(r);return KC(uf,r).isInside?null:i.jsx(Dn,{...o,...n,ref:t})});ff.displayName=uf;function XC(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function ZC(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function JC(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function QC(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const l=t[a],d=t[s],u=l.x,f=l.y,p=d.x,m=d.y;f>n!=m>n&&r<(p-u)*(n-f)/(m-f)+u&&(o=!o)}return o}function eS(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),tS(t)}function tS(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var rS=of,nS=af,oS=sf,aS=lf,sS=cf,iS=ff;function pf({delayDuration:e=0,...t}){return i.jsx(rS,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function mf({...e}){return i.jsx(pf,{children:i.jsx(nS,{"data-slot":"tooltip",...e})})}function gf({...e}){return i.jsx(oS,{"data-slot":"tooltip-trigger",...e})}function vf({className:e,sideOffset:t=0,children:r,disableArrow:n=!1,...o}){return i.jsx(aS,{children:i.jsxs(sS,{"data-slot":"tooltip-content",sideOffset:t,className:k("qodo qodo-tooltip-content bg-purple-muted-700 border border-purple-muted-600 text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e,{"py-2.5":n}),...o,children:[r,!n&&i.jsx(iS,{className:"bg-purple-muted-700 fill-purple-muted-700 z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const Ot=e=>t=>{const{name:r,label:n,description:o,tooltip:a,required:s=!1,...l}=t,{control:d,disabled:u,readOnly:f}=Xu(),p=()=>a?i.jsxs(mf,{children:[i.jsx(gf,{asChild:!0,children:i.jsx("span",{children:i.jsx(jC,{size:16})})}),i.jsx(vf,{children:i.jsx("p",{children:a})})]}):i.jsx(i.Fragment,{}),m=()=>o?i.jsx($C,{children:o}):i.jsx(i.Fragment,{});return i.jsx(IC,{control:d,name:r,render:({field:g,fieldState:x})=>i.jsxs(OC,{className:"flex flex-col gap-1.5",children:[n&&i.jsx(MC,{children:i.jsxs("span",{className:"flex items-center gap-1",children:[n,s&&i.jsx("span",{className:"text-purple-muted-300",children:"*"}),!!a&&p()]})}),i.jsx(DC,{children:i.jsx(e,{...g,disabled:u,...l,readOnly:f,error:!!x.error})}),!!o&&m(),i.jsx(LC,{})]})})},lS=S.forwardRef((e,t)=>i.jsx(Nr,{...e,ref:t})),cS=S.forwardRef((e,t)=>Ot(lS)({...e,ref:t})),dS=S.forwardRef((e,t)=>{const{options:r=[],onChange:n=()=>{},searchPlaceholder:o,onSearchChange:a,...s}=e,l=d=>{n({target:{value:d}})};return i.jsx(Ra,{ref:t,options:r,onValueChange:l,searchPlaceholder:o,onSearchChange:a,...s})}),uS=Ot(dS);var Ua="Radio",[fS,hf]=we(Ua),[pS,mS]=fS(Ua),xf=c.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:s,value:l="on",onCheck:d,form:u,...f}=e,[p,m]=c.useState(null),g=ae(t,h=>m(h)),x=c.useRef(!1),v=p?u||!!p.closest("form"):!0;return i.jsxs(pS,{scope:r,checked:o,disabled:s,children:[i.jsx(K.button,{type:"button",role:"radio","aria-checked":o,"data-state":Cf(o),"data-disabled":s?"":void 0,disabled:s,value:l,...f,ref:g,onClick:V(e.onClick,h=>{o||d==null||d(),v&&(x.current=h.isPropagationStopped(),x.current||h.stopPropagation())})}),v&&i.jsx(wf,{control:p,bubbles:!x.current,name:n,value:l,checked:o,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});xf.displayName=Ua;var bf="RadioIndicator",yf=c.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=mS(bf,r);return i.jsx(Ce,{present:n||a.checked,children:i.jsx(K.span,{"data-state":Cf(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});yf.displayName=bf;var gS="RadioBubbleInput",wf=c.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=c.useRef(null),l=ae(s,a),d=$n(r),u=On(t);return c.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(d!==r&&g){const x=new Event("click",{bubbles:n});g.call(f,r),f.dispatchEvent(x)}},[d,r,n]),i.jsx(K.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:l,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});wf.displayName=gS;function Cf(e){return e?"checked":"unchecked"}var vS=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ro="RadioGroup",[hS]=we(ro,[ht,hf]),Sf=ht(),Ef=hf(),[xS,bS]=hS(ro),Rf=c.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:s=!1,disabled:l=!1,orientation:d,dir:u,loop:f=!0,onValueChange:p,...m}=e,g=Sf(r),x=At(u),[v,h]=be({prop:a,defaultProp:o??null,onChange:p,caller:ro});return i.jsx(xS,{scope:r,name:n,required:s,disabled:l,value:v,onValueChange:h,children:i.jsx(Un,{asChild:!0,...g,orientation:d,dir:x,loop:f,children:i.jsx(K.div,{role:"radiogroup","aria-required":s,"aria-orientation":d,"data-disabled":l?"":void 0,dir:x,...m,ref:t})})})});Rf.displayName=ro;var kf="RadioGroupItem",Nf=c.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=bS(kf,r),s=a.disabled||n,l=Sf(r),d=Ef(r),u=c.useRef(null),f=ae(t,u),p=a.value===o.value,m=c.useRef(!1);return c.useEffect(()=>{const g=v=>{vS.includes(v.key)&&(m.current=!0)},x=()=>m.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",x),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",x)}},[]),i.jsx(Kn,{asChild:!0,...l,focusable:!s,active:p,children:i.jsx(xf,{disabled:s,required:a.required,checked:p,...d,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:V(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:V(o.onFocus,()=>{var g;m.current&&((g=u.current)==null||g.click())})})})});Nf.displayName=kf;var yS="RadioGroupIndicator",jf=c.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=Ef(r);return i.jsx(yf,{...o,...n,ref:t})});jf.displayName=yS;var wS=Rf,CS=Nf,SS=jf;function ES({className:e,...t}){const{readOnly:r,...n}=t;return i.jsx(wS,{"data-slot":"radio-group","data-readonly":r||void 0,disabled:n.disabled||r,className:k("qodo qodo-radio-group grid gap-3 group",e),...n})}function RS({className:e,...t}){return i.jsx(CS,{"data-slot":"radio-group-item",className:k("qodo qodo-radio-group-item cursor-pointer border-[var(--border-input-neutral-idle)] bg-[var(--fill-input-neutral-idle)] focus-visible:border-ring focus-visible:ring-ring/50","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px]","aria-checked:border-[var(--border-input-emphasis-active)] hover:aria-checked:border-[var(--border-input-emphasis-active)]","group-data-[readonly]:opacity-100 group-data-[readonly]:cursor-default","data-disabled:cursor-not-allowed data-disabled:opacity-50","aria-disabled:cursor-not-allowed aria-disabled:opacity-50","mt-[2px] mr-0",e),...t,children:i.jsx(SS,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:i.jsx(pv,{className:"stroke-transparent fill-[var(--icon-input-emphasis-active)] absolute top-1/2 left-1/2 size-3 -translate-x-1/2 -translate-y-1/2"})})})}const Ka=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o,disabled:a=!1,readOnly:s=!1,className:l,direction:d="horizontal",dir:u="ltr",name:f,onChange:p,...m}=e,g=v=>{s||(p==null||p({target:{value:v}}),o==null||o(v))},x=k("qodo qodo-custom-radio-group","flex",{"flex-row gap-6":d==="horizontal","flex-col gap-3":d==="vertical"},l);return i.jsx(ES,{name:f,ref:t,value:r,defaultValue:n,onValueChange:g,disabled:a||s,readOnly:s,className:x,dir:u,...m})});Ka.displayName="BaseRadioGroupComponent";const Ya=({label:e,description:t,disabled:r=!1,labelClassName:n,descriptionClassName:o,labelWrapperClassName:a})=>i.jsxs("div",{className:k("flex flex-col gap-2",a),children:[e&&i.jsx("div",{className:k("text-[var(--text-bg-neutral-mid)] font-normal text-sm","group-has-[button:disabled]/radio-item:opacity-70","group-has-[button:disabled]/checkbox-item:opacity-70",{"opacity-70":r},n),children:e}),t&&i.jsx("div",{className:k("text-sm text-[var(--text-bg-neutral-mild)] font-normal",o),children:t})]});Ya.displayName="LabelWithDescription";const Xa=({value:e="",disabled:t,error:r,name:n="radio",label:o,description:a,wrapperClassName:s,labelClassName:l,descriptionClassName:d,labelWrapperClassName:u})=>{const f=`${n}-${e}`;return i.jsxs(za,{htmlFor:f,className:k("group/radio-item flex items-start p-4 rounded-lg gap-2 transition-all duration-200","font-normal leading-5 cursor-pointer","has-[button:disabled]:cursor-not-allowed has-[button:disabled]:hover:bg-transparent",{"cursor-pointer":!t,"!cursor-not-allowed hover:!bg-transparent":t,"border border-destructive":r},s),children:[i.jsx(RS,{value:e,id:f,disabled:t||r}),i.jsx(Ya,{label:o,description:a,disabled:t,labelClassName:l,descriptionClassName:d,labelWrapperClassName:u})]},e)};Xa.displayName="RadioGroupItemComponent";const kS=Ot(Ka),NS=e=>i.jsx("hr",{className:"w-full h-px border-[var(--base-sidebar-border)]",...e}),jS=({children:e,description:t,className:r})=>i.jsxs("div",{className:k("space-y-1",r),children:[i.jsx("h2",{className:"flex items-center gap-2.5 text-2xl text-white",children:e}),t&&i.jsx("span",{className:"text-sm text-purple-muted-300",children:t})]}),Pf=S.forwardRef(({direction:e="horizontal",className:t,...r},n)=>{const o=k("flex flex-row gap-6",{"flex-col":e==="vertical"},t);return i.jsx("div",{ref:n,className:o,...r})});Pf.displayName="FormGroup";function PS({className:e,rows:t,...r}){return i.jsx("textarea",{"data-slot":"textarea",rows:t,className:k("qodo qodo-textarea border-input px-3 py-2 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20","dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-[var(--fill-input-neutral-idle)] flex min-h-16 w-full rounded-md border bg-transparent","border-[var(--border-interactive-neutral-idle)] shadow-none","placeholder:text-purple-muted-400 text-purple-muted-300 outline-none focus-visible:ring-0 selection:bg-primary selection:text-primary-foreground disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-purple-muted-700 disabled:border-purple-muted-500 disabled:text-purple-muted-400 read-only:bg-purple-muted-700 read-only:border-purple-muted-400 read-only:cursor-default read-only:text-purple-muted-200 md:text-sm",{"field-sizing-content":!t},e),...r})}const TS=S.forwardRef(({variant:e="default",className:t,...r},n)=>{const o=Ot(PS);return i.jsx(o,{...r,ref:n,className:k({"font-plex-mono text-sm leading-[1.4] rounded dark:bg-fill-input-neutral-idle px-3 py-2 [&[readonly]]:text-[var(--text-input-neutral-placeholder)] [&[readonly]]:border [&[readonly]]:border-[var(--border-input-neutral-idle)] [&[readonly]]:bg-[var(--fill-input-neutral-idle)]":e==="code"},t)})}),Tf=({label:e,id:t,onRemoveTag:r,disabled:n,className:o,variant:a="default"})=>i.jsxs(Jt,{variant:a,disabled:n,size:"sm",className:k("flex items-center gap-1 px-2 py-0.5","font-normal whitespace-nowrap",o),children:[e,r&&i.jsx(tt,{type:"button",variant:"ghost",size:"icon",className:"p-0 w-[10px] h-[10px] text-inherit disabled:text-inherit",onClick:s=>{s.stopPropagation(),r==null||r(t)},"aria-label":`Remove ${e}`,disabled:n,children:i.jsx(Nn,{className:"w-[10px] h-[10px]"})})]}),_S=({label:e,id:t,onClick:r,onDeleteSuggestion:n,deleteText:o,className:a,tagClassName:s,tagVariant:l})=>i.jsx("div",{onClick:r,className:k("bg-transparent hover:bg-purple-muted-800 rounded-sm py-1 px-2",a),children:i.jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[i.jsx(Tf,{label:e,id:t,className:s,variant:l}),n&&i.jsx(tt,{type:"button",variant:"ghost",className:"p-0 text-xs font-normal h-[10px]",onMouseDown:d=>d.preventDefault(),onClick:d=>{d.stopPropagation(),n==null||n(t)},"aria-label":`${o} ${e}`,children:o||i.jsx(Av,{className:"h-4 w-4"})})]})}),Po={BACKSPACE:"Backspace",ESCAPE:"Escape",ENTER:"Enter"},AS=e=>{if(!e)return"";let t=e.toLowerCase();return t=t.replace(/[_\s]+/g,"-"),t=t.replace(/[^a-z0-9-]/g,""),t=t.replace(/-+/g,"-"),t=t.replace(/^-|-$/g,""),t},_f=({value:e=[],variant:t="default",placeholder:r="Type to add a tag...",deleteText:n="Delete",suggestions:o=[],allowCreate:a=!0,maxTags:s=100,disabled:l=!1,className:d,suggestionWrapperClassName:u,suggestionClassName:f,tagClassName:p,tagInputIcon:m,onDeleteSuggestion:g,onBlur:x,normalizeTags:v=AS,onChange:h=()=>{},onAddTag:y=()=>{},onRemoveTag:b=()=>{},onResetTags:C=()=>{}})=>{const[E,R]=S.useState(""),[T,P]=S.useState(!1),j=S.useRef(null),F=S.useRef(null),q=S.useRef(null),[re,te]=S.useState();S.useEffect(()=>{F.current&&te(F.current.offsetWidth)},[]);const ee=e.length>=s,W=O=>{if(ee||e.some(H=>H.id===O.id))return;const _=[...e,O];h(_),y(O)},D=O=>{const _=e.filter(H=>H.id!==O);h(_),b(O)},I=()=>{h==null||h([]),C()},$=O=>{const _=O.target.value;R(_),P(!0)},N=()=>{const O=E.trim().toLowerCase();if(!O)return[];const _=new Set(e.map(H=>H.id));return o.filter(H=>H.label.toLowerCase().includes(O)&&!_.has(H.id))},M=O=>v?v(O):O,G=()=>{const O=E.trim();if(!O)return;const _=M(O);if(!_)return;if(e.some(X=>X.id===_)){R(""),P(!1);return}const H=o.find(X=>X.id===_||M(X.label)===_);H?W(H):a&&W({id:_,label:_}),R(""),P(!1)},Q=O=>{const _=O.key===Po.BACKSPACE&&!E&&e.length>0,H=O.key===Po.ENTER&&E,X=O.key===Po.ESCAPE;H?(O.preventDefault(),G(),q.current&&(q.current.scrollLeft=q.current.scrollWidth)):_?D(e[e.length-1].id):X&&P(!1)},A=()=>{if(E&&N().length>0)return i.jsx(Ea,{className:"p-0 border-transparent bg-[var(--fill-interactive-neutral-idle)] gap-2",align:"start",style:{width:re??void 0},onOpenAutoFocus:O=>O.preventDefault(),onCloseAutoFocus:O=>O.preventDefault(),onMouseDown:O=>O.preventDefault(),children:i.jsx("div",{className:k("max-h-[200px] overflow-y-auto flex flex-col gap-1 p-1",u),children:N().map(O=>i.jsx(_S,{label:O.label,id:O.id,onDeleteSuggestion:g,deleteText:n,className:f,tagClassName:p,tagVariant:t,onClick:()=>{var _;W(O),R(""),P(!1),(_=j.current)==null||_.focus()}},O.id))})})},z=()=>m||i.jsx(Tv,{className:"h-4 w-4 stroke-[var(--icon-bg-neutral-mild)]"}),Y=()=>e.map(O=>i.jsx(Tf,{label:O.label,id:O.id,onRemoveTag:D,disabled:l,className:p,variant:t},O.id)),B=()=>e.length===0?i.jsx(i.Fragment,{}):i.jsx(Nn,{className:"h-4 w-4 hover:cursor-pointer stroke-[var(--icon-input-neutral-idle)] hover:stroke-[var(--icon-input-neutral-hover)]",onClick:I});return i.jsx("div",{className:k("w-full",d),children:i.jsxs(Ca,{open:T&&!l,onOpenChange:P,modal:!1,children:[i.jsx(Sa,{className:"w-full",children:i.jsxs("div",{ref:F,tabIndex:-1,className:k("flex items-center gap-2 border border-[var(--border-tag-neutral-idle)] bg-purple-muted-800 py-0.5 px-3 rounded-md scrollbar-thin",{"opacity-60":l}),onClick:O=>{var _;O.stopPropagation(),P(!0),(_=j.current)==null||_.focus()},children:[z(),i.jsxs("div",{ref:q,className:"flex items-center gap-2 w-full whitespace-normal overflow-x-auto",children:[Y(),i.jsx(Nr,{ref:j,value:E,onChange:$,onClick:O=>O.stopPropagation(),onFocus:()=>P(!0),onBlur:x,onKeyDown:Q,placeholder:r,disabled:l||ee,className:k("m-0 h-6.5 flex-1 min-w-[6rem] border-0 bg-transparent dark:bg-transparent p-0 shadow-none focus-visible:outline-none focus-visible:ring-0 font-normal text-xs","placeholder:text-[var(--text-input-neutral-placeholder)] dark:placeholder:text-[var(--text-input-neutral-placeholder)] placeholder:text-xs")})]}),B()]})}),A()]})})};function IS(e){const{control:t}=Ga();return i.jsx(Uu,{name:e.name,control:t,render:({field:r})=>i.jsx(_f,{...e,value:r.value,onChange:r.onChange,onBlur:r.onBlur})})}const OS=Ot(IS),MS=12,Ni={SINGLE:"single",MULTIPLE:"multiple"},ji={LTR:"ltr"},Pi={GHOST:"ghost"};var Af=typeof global=="object"&&global&&global.Object===Object&&global,DS=typeof self=="object"&&self&&self.Object===Object&&self,bt=Af||DS||Function("return this")(),wn=bt.Symbol,If=Object.prototype,$S=If.hasOwnProperty,LS=If.toString,pr=wn?wn.toStringTag:void 0;function FS(e){var t=$S.call(e,pr),r=e[pr];try{e[pr]=void 0;var n=!0}catch{}var o=LS.call(e);return n&&(t?e[pr]=r:delete e[pr]),o}var VS=Object.prototype,BS=VS.toString;function WS(e){return BS.call(e)}var GS="[object Null]",zS="[object Undefined]",Ti=wn?wn.toStringTag:void 0;function $r(e){return e==null?e===void 0?zS:GS:Ti&&Ti in Object(e)?FS(e):WS(e)}function Za(e){return e!=null&&typeof e=="object"}var qS=Array.isArray;function Of(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var HS="[object AsyncFunction]",US="[object Function]",KS="[object GeneratorFunction]",YS="[object Proxy]";function Mf(e){if(!Of(e))return!1;var t=$r(e);return t==US||t==KS||t==HS||t==YS}var To=bt["__core-js_shared__"],_i=(function(){var e=/[^.]+$/.exec(To&&To.keys&&To.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function XS(e){return!!_i&&_i in e}var ZS=Function.prototype,JS=ZS.toString;function Mt(e){if(e!=null){try{return JS.call(e)}catch{}try{return e+""}catch{}}return""}var QS=/[\\^$.*+?()[\]{}|]/g,e1=/^\[object .+?Constructor\]$/,t1=Function.prototype,r1=Object.prototype,n1=t1.toString,o1=r1.hasOwnProperty,a1=RegExp("^"+n1.call(o1).replace(QS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function s1(e){if(!Of(e)||XS(e))return!1;var t=Mf(e)?a1:e1;return t.test(Mt(e))}function i1(e,t){return e==null?void 0:e[t]}function Lr(e,t){var r=i1(e,t);return s1(r)?r:void 0}var Jo=Lr(bt,"WeakMap"),l1=9007199254740991;function Df(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=l1}function c1(e){return e!=null&&Df(e.length)&&!Mf(e)}var d1=Object.prototype;function $f(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||d1;return e===r}var u1="[object Arguments]";function Ai(e){return Za(e)&&$r(e)==u1}var Lf=Object.prototype,f1=Lf.hasOwnProperty,p1=Lf.propertyIsEnumerable,m1=Ai((function(){return arguments})())?Ai:function(e){return Za(e)&&f1.call(e,"callee")&&!p1.call(e,"callee")};function g1(){return!1}var Ff=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ii=Ff&&typeof module=="object"&&module&&!module.nodeType&&module,v1=Ii&&Ii.exports===Ff,Oi=v1?bt.Buffer:void 0,h1=Oi?Oi.isBuffer:void 0,x1=h1||g1,b1="[object Arguments]",y1="[object Array]",w1="[object Boolean]",C1="[object Date]",S1="[object Error]",E1="[object Function]",R1="[object Map]",k1="[object Number]",N1="[object Object]",j1="[object RegExp]",P1="[object Set]",T1="[object String]",_1="[object WeakMap]",A1="[object ArrayBuffer]",I1="[object DataView]",O1="[object Float32Array]",M1="[object Float64Array]",D1="[object Int8Array]",$1="[object Int16Array]",L1="[object Int32Array]",F1="[object Uint8Array]",V1="[object Uint8ClampedArray]",B1="[object Uint16Array]",W1="[object Uint32Array]",pe={};pe[O1]=pe[M1]=pe[D1]=pe[$1]=pe[L1]=pe[F1]=pe[V1]=pe[B1]=pe[W1]=!0;pe[b1]=pe[y1]=pe[A1]=pe[w1]=pe[I1]=pe[C1]=pe[S1]=pe[E1]=pe[R1]=pe[k1]=pe[N1]=pe[j1]=pe[P1]=pe[T1]=pe[_1]=!1;function G1(e){return Za(e)&&Df(e.length)&&!!pe[$r(e)]}function z1(e){return function(t){return e(t)}}var Vf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yr=Vf&&typeof module=="object"&&module&&!module.nodeType&&module,q1=yr&&yr.exports===Vf,_o=q1&&Af.process,Mi=(function(){try{var e=yr&&yr.require&&yr.require("util").types;return e||_o&&_o.binding&&_o.binding("util")}catch{}})(),Di=Mi&&Mi.isTypedArray,H1=Di?z1(Di):G1;function U1(e,t){return function(r){return e(t(r))}}var K1=U1(Object.keys,Object),Y1=Object.prototype,X1=Y1.hasOwnProperty;function Z1(e){if(!$f(e))return K1(e);var t=[];for(var r in Object(e))X1.call(e,r)&&r!="constructor"&&t.push(r);return t}var Qo=Lr(bt,"Map"),ea=Lr(bt,"DataView"),ta=Lr(bt,"Promise"),ra=Lr(bt,"Set"),$i="[object Map]",J1="[object Object]",Li="[object Promise]",Fi="[object Set]",Vi="[object WeakMap]",Bi="[object DataView]",Q1=Mt(ea),eE=Mt(Qo),tE=Mt(ta),rE=Mt(ra),nE=Mt(Jo),Et=$r;(ea&&Et(new ea(new ArrayBuffer(1)))!=Bi||Qo&&Et(new Qo)!=$i||ta&&Et(ta.resolve())!=Li||ra&&Et(new ra)!=Fi||Jo&&Et(new Jo)!=Vi)&&(Et=function(e){var t=$r(e),r=t==J1?e.constructor:void 0,n=r?Mt(r):"";if(n)switch(n){case Q1:return Bi;case eE:return $i;case tE:return Li;case rE:return Fi;case nE:return Vi}return t});var oE="[object Map]",aE="[object Set]",sE=Object.prototype,iE=sE.hasOwnProperty;function lr(e){if(e==null)return!0;if(c1(e)&&(qS(e)||typeof e=="string"||typeof e.splice=="function"||x1(e)||H1(e)||m1(e)))return!e.length;var t=Et(e);if(t==oE||t==aE)return!e.size;if($f(e))return!Z1(e).length;for(var r in e)if(iE.call(e,r))return!1;return!0}function no(e){return!e.children||e.children.length===0?[e.value]:e.children.flatMap(t=>no(t))}function Ja(e){const t=[e.value];return e.children&&e.children.forEach(r=>{t.push(...Ja(r))}),t}function Qa(e,t){return lr(e.children)?!1:no(e).every(n=>t.has(n))}function lE(e,t){return lr(e.children)?!1:no(e).some(n=>t.has(n))}function Bf(e,t){for(const r of e){if(r.value===t)return r;if(r.children){const n=Bf(r.children,t);if(n)return n}}return null}function es(e,t){const r=new Map;for(const n of e){const o=t(n);o&&r.set(o[0],o[1]),n.children&&es(n.children,t).forEach((s,l)=>r.set(l,s))}return r}function Wf(e,t){e.forEach(r=>{lr(r.children)||(Qa(r,t)?t.add(r.value):t.delete(r.value),r.children&&Wf(r.children,t))})}const cE=e=>e?Array.isArray(e)?e:[e]:[],dE=e=>es(e,t=>[t.value,t.label]),uE=e=>es(e,t=>t.icon?[t.value,t.icon]:null);function fE(e,t){Ja(e).forEach(n=>t.delete(n))}function pE(e,t){Ja(e).forEach(n=>t.add(n))}function Gf(e,t){const r=new Set(t);return e.flatMap(n=>!lr(n.children)&&n.children?Qa(n,r)?[n.value]:Gf(n.children,t):r.has(n.value)?[n.value]:[])}function mE(e){return e&&e>1?e*MS:0}var oo="Checkbox",[gE]=we(oo),[vE,ts]=gE(oo);function hE(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:a,form:s,name:l,onCheckedChange:d,required:u,value:f="on",internal_do_not_use_render:p}=e,[m,g]=be({prop:r,defaultProp:o??!1,onChange:d,caller:oo}),[x,v]=c.useState(null),[h,y]=c.useState(null),b=c.useRef(!1),C=x?!!s||!!x.closest("form"):!0,E={checked:m,disabled:a,setChecked:g,control:x,setControl:v,name:l,form:s,value:f,hasConsumerStoppedPropagationRef:b,required:u,defaultChecked:ct(o)?!1:o,isFormControl:C,bubbleInput:h,setBubbleInput:y};return i.jsx(vE,{scope:t,...E,children:xE(p)?p(E):n})}var zf="CheckboxTrigger",qf=c.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:a,value:s,disabled:l,checked:d,required:u,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:g,bubbleInput:x}=ts(zf,e),v=ae(o,f),h=c.useRef(d);return c.useEffect(()=>{const y=a==null?void 0:a.form;if(y){const b=()=>p(h.current);return y.addEventListener("reset",b),()=>y.removeEventListener("reset",b)}},[a,p]),i.jsx(K.button,{type:"button",role:"checkbox","aria-checked":ct(d)?"mixed":d,"aria-required":u,"data-state":Xf(d),"data-disabled":l?"":void 0,disabled:l,value:s,...n,ref:v,onKeyDown:V(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:V(r,y=>{p(b=>ct(b)?!0:!b),x&&g&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})})});qf.displayName=zf;var rs=c.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:s,disabled:l,value:d,onCheckedChange:u,form:f,...p}=e;return i.jsx(hE,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:l,required:s,onCheckedChange:u,name:n,form:f,value:d,internal_do_not_use_render:({isFormControl:m})=>i.jsxs(i.Fragment,{children:[i.jsx(qf,{...p,ref:t,__scopeCheckbox:r}),m&&i.jsx(Yf,{__scopeCheckbox:r})]})})});rs.displayName=oo;var Hf="CheckboxIndicator",Uf=c.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,a=ts(Hf,r);return i.jsx(Ce,{present:n||ct(a.checked)||a.checked===!0,children:i.jsx(K.span,{"data-state":Xf(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Uf.displayName=Hf;var Kf="CheckboxBubbleInput",Yf=c.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:l,disabled:d,name:u,value:f,form:p,bubbleInput:m,setBubbleInput:g}=ts(Kf,e),x=ae(r,g),v=$n(a),h=On(n);c.useEffect(()=>{const b=m;if(!b)return;const C=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(C,"checked").set,T=!o.current;if(v!==a&&R){const P=new Event("click",{bubbles:T});b.indeterminate=ct(a),R.call(b,ct(a)?!1:a),b.dispatchEvent(P)}},[m,v,a,o]);const y=c.useRef(ct(a)?!1:a);return i.jsx(K.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??y.current,required:l,disabled:d,name:u,value:f,form:p,...t,tabIndex:-1,ref:x,style:{...t.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Yf.displayName=Kf;function xE(e){return typeof e=="function"}function ct(e){return e==="indeterminate"}function Xf(e){return ct(e)?"indeterminate":e?"checked":"unchecked"}const ns=c.forwardRef(({className:e,...t},r)=>i.jsx(rs,{ref:r,className:k("h-4 w-4 shrink-0 rounded-xs shadow disabled:cursor-not-allowed bg-[var(--fill-input-neutral-idle)] border border-[var(--border-input-neutral-idle)] hover:border-[var(--border-input-neutral-hover)] hover:bg-[var(--fill-input-neutral-hover)] ","active:border-[var(--border-input-neutral-active)] active:bg-[var(--fill-input-neutral-active)] disabled:border-[var(--border-input-neutral-disabled)] disabled:bg-[var(--fill-input-neutral-disabled)] ","hover:disabled:border-[var(--border-input-neutral-disabled)] hover:disabled:bg-[var(--fill-input-neutral-disabled)] ","data-[state=checked]:border-[var(--border-input-emphasis-idle)] data-[state=checked]:bg-[var(--fill-input-emphasis-idle)] hover:data-[state=checked]:border-[var(--border-input-emphasis-hover)] hover:data-[state=checked]:bg-[var(--fill-input-emphasis-hover)] active:data-[state=checked]:border-[var(--border-input-emphasis-active)] active:data-[state=checked]:bg-[var(--fill-input-emphasis-active)] disabled:data-[state=checked]:border-[var(--border-input-emphasis-disabled)] disabled:data-[state=checked]:bg-[var(--fill-input-emphasis-disabled)] ",e),...t,children:i.jsx(Uf,{className:k("flex items-center justify-center text-current"),children:t.checked==="indeterminate"?i.jsx(Nv,{className:"h-4 w-4 stroke-[var(--icon-input-emphasis-idle)]"}):i.jsx(rr,{className:"h-4 w-4 stroke-[var(--icon-input-emphasis-idle)]"})})}));ns.displayName=rs.displayName;function Zf({option:e,selected:t,onSelect:r,nestLevel:n=0,disabled:o=!1,dir:a=ji.LTR,selectionIndicator:s="checkmark"}){const l=!lr(e.children),d=t.has(e.value),u=`${mE(n)}px`,f=Qa(e,t),m=lE(e,t)&&!f,g=d||f,x=()=>{if(n!==0)return i.jsx(gv,{className:"w-4 text-[var(--text-interactive-neutral-idle)]"})},v=()=>{if(e.icon)return i.jsx("div",{className:"flex-shrink-0 [&>svg]:text-[var(--text-interactive-neutral-idle)]!",children:e.icon})},h=()=>m?i.jsx(hv,{className:"w-2 h-2 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)]"}):s==="checkbox"?i.jsx(ns,{checked:g}):i.jsx(rr,{className:k("h-4 w-4 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)] opacity-0",{"opacity-100":g})}),y=()=>{if(l)return e.children.map(C=>i.jsx(Zf,{option:C,selected:t,onSelect:r,nestLevel:n+1,dir:a,selectionIndicator:s},C.value))},b=()=>i.jsxs("div",{className:k("flex items-center w-full gap-3 flex-row",{"flex-row-reverse":a===ji.LTR}),style:{paddingLeft:u},children:[i.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[x(),v(),i.jsx("span",{className:"flex-1 text-[var(--text-interactive-neutral-active)]",children:e.label})]}),h()]});return i.jsxs("div",{children:[i.jsx(Rd,{disabled:e.disabled||o,onSelect:()=>r(e.value,l),className:k("text-[var(--text-interactive-neutral-idle)] hover:text-[var(--text-interactive-neutral-hover)]! cursor-pointer disabled:cursor-not-allowed","focus:text-[var(--text-interactive-neutral-active)] data-[selected=true]:text-[var(--text-interactive-neutral-hover)]! px-3 py-1.5",{"bg-[var(--fill-interactive-neutral-idle)]":g}),children:b()}),y()]})}function Jf({value:e,options:t=[],onSelect:r,disabled:n=!1,readOnly:o=!1,mode:a=Ni.SINGLE,placeholder:s="Select...",inputPlaceholder:l="Search...",emptyState:d="No option found.",triggerClassName:u,triggerWrapperClassName:f,badgeClassName:p,badgeVariant:m="text",searchable:g=!1,toggleIcon:x=i.jsx(kn,{}),dir:v="ltr",variant:h="default",iconPosition:y="right",selectionIndicator:b="checkmark",onSearchChange:C,...E}){const[R,T]=S.useState(0),[P,j]=S.useState(!1),[F,q]=S.useState(""),re=S.useRef(null),te=a===Ni.MULTIPLE,[ee,W]=S.useState(e!==void 0?e:te?[]:""),D=cE(ee),I=new Set(D);S.useEffect(()=>{re.current&&T(re.current.offsetWidth)},[ee]);const $=dE(t),N=uE(t);S.useEffect(()=>{e!==void 0&&W(te?e||[]:e||"")},[e,te]);function M(O,_){if(!te){W(O),r==null||r(O),j(!1);return}W(H=>{const X=Array.isArray(H)?H:[],ne=new Set(X),le=Bf(t,O);if(!le)return X;_?G(le,ne):Q(O,ne);const se=Array.from(ne);return r==null||r(se),se})}function G(O,_){no(O).every(ne=>_.has(ne))?fE(O,_):pE(O,_)}function Q(O,_){_.has(O)?_.delete(O):_.add(O),Wf(t,_)}const A=()=>{const O=Gf(t,D);return O.length===0?i.jsx(Jt,{variant:m,size:"md",className:k("text-[var(--text-input-neutral-placeholder)]",{"text-[var(--text-input-neutral-disabled)]":n},p),children:s}):O.map(H=>{const X=N.get(H),ne=$.get(H)||H;return i.jsx(Jt,{variant:m,size:"md",className:k("text-[var(--text-input-neutral-idle)]",{"text-[var(--text-input-neutral-disabled)]":n},p),children:i.jsxs("div",{className:"flex items-center gap-1",children:[X&&i.jsx("div",{className:"flex-shrink-0",children:X}),i.jsx("span",{children:ne})]})},H)})},z=O=>{q(O),C==null||C(O)},Y=()=>{if(g)return i.jsx(wd,{className:"placeholder:text-[var(--text-bg-neutral-mid)] text-[var(--text-interactive-neutral-active)]",placeholder:l,value:F,onValueChange:z})},B=n||o;return i.jsxs(Ca,{open:P,onOpenChange:B?void 0:j,children:[i.jsx(Sa,{asChild:!0,disabled:B,children:i.jsxs("div",{className:k("flex items-center gap-1.5 justify-between py-1 px-3 w-full border rounded-sm scrollbar-thin h-8","border-[var(--border-interactive-neutral-idle)] aria-invalid:!border-destructive","aria-invalid:!ring-destructive/20 dark:aria-invalid:!ring-destructive/40",{"cursor-pointer hover:border-[var(--border-input-neutral-hover)]":!B,"hover:bg-[var(--fill-input-neutral-hover)]":!B&&h!==Pi.GHOST,"bg-[var(--fill-input-neutral-idle)]":h!==Pi.GHOST,"cursor-not-allowed opacity-75":n,"cursor-default border-0":o&&!n,"flex-row-reverse":y==="left"},f),ref:re,"aria-disabled":B,"aria-readonly":o,...E,children:[i.jsx("div",{className:k("flex justify-start text-start w-[100%] whitespace-nowrap overflow-x-auto gap-1.5",u),children:A()}),!o&&i.jsx("div",{className:"[&>svg]:text-[var(--icon-input-neutral-idle)] [&>svg]:hover:text-[var(--icon-input-neutral-hover)] [&>svg]:w-4 [&>svg]:h-4",children:x})]})}),i.jsx(Ea,{className:"p-0 border bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] [&>svg]:text-purple-muted-300",style:{width:R??"auto"},children:i.jsxs(yd,{className:"bg-[var(--fill-interactive-neutral-idle)]",children:[Y(),i.jsxs(Cd,{children:[i.jsx(Sd,{children:d}),i.jsx(Ed,{children:t.map(O=>i.jsx(Zf,{disabled:n,option:O,selected:I,onSelect:M,dir:v,selectionIndicator:b},O.value))})]})]})})]})}const Qf=S.forwardRef(e=>{const{options:t,onChange:r,readOnly:n,value:o,disabled:a,mode:s,...l}=e,d=u=>{n||r&&r({target:{value:u}})};return i.jsx(Jf,{options:t,value:o,disabled:a,readOnly:n,...l,onSelect:d,mode:s})});Qf.displayName="BaseSelectComponent";const bE=Ot(Qf),os=S.forwardRef((e,t)=>{const{value:r=[],defaultValue:n=[],onValueChange:o,disabled:a=!1,readOnly:s=!1,className:l,direction:d="vertical",onChange:u,children:f,...p}=e,[m,g]=S.useState(lr(r)?n:r),x=d==="horizontal",v=r!==void 0?r:m,h=(C,E)=>{if(s)return;const R=E?[...v,C]:v.filter(T=>T!==C);r===void 0&&g(R),u==null||u({target:{value:R}}),o==null||o(R)},y=k("qodo qodo-custom-checkbox-group","flex",{"flex-row gap-6":x,"flex-col gap-3":!x},l),b=()=>S.Children.map(f,C=>{if(!S.isValidElement(C))return C;const E=C.props.name;if(!E)return C;const R=C.props.disabled,T=s||a||R;return S.cloneElement(C,{checked:v.includes(E),onCheckedChange:P=>h(E,P),disabled:T,name:E})});return i.jsx("div",{ref:t,className:y,...p,children:b()})});os.displayName="CheckboxGroupComponent";const as=({disabled:e,error:t,name:r="checkbox",checked:n,onCheckedChange:o,label:a,description:s,labelWrapperClassName:l,labelClassName:d,descriptionClassName:u,checkboxClassName:f,wrapperClassName:p})=>i.jsxs(za,{htmlFor:r,className:k("group/checkbox-item flex items-start p-4 rounded-lg gap-2 transition-all duration-200","font-normal text-purple-muted-200 dark:text-purple-muted-200 leading-5",{"cursor-pointer":!e,"cursor-not-allowed":e,"border border-destructive":t},p),children:[i.jsx(ns,{id:r,disabled:e||t,checked:n,onCheckedChange:o,className:k("mt-0.5",f)}),i.jsx(Ya,{label:a,description:s,disabled:e,labelClassName:d,descriptionClassName:u,labelWrapperClassName:l})]});as.displayName="CheckboxGroupItemComponent";const yE=Ot(os),Pe=e=>{const{className:t,disabled:r=!1,readOnly:n=!1,methods:o,onSubmit:a=()=>{},...s}=e,{handleSubmit:l}=o,d=k("qodo qodo-form","flex flex-col gap-6",t);return i.jsx(Yu,{methods:o,disabled:r,readOnly:n,children:i.jsx("form",{className:d,onSubmit:l(a),...s})})};Pe.Button=yC;Pe.Input=cS;Pe.Select=bE;Pe.Combobox=uS;Pe.RadioGroup=kS;Pe.RadioGroupItem=Xa;Pe.Group=Pf;Pe.Textarea=TS;Pe.Divider=NS;Pe.Title=jS;Pe.TagsInput=OS;Pe.CheckboxGroup=yE;Pe.Checkbox=as;function wE(e){return e==null?[]:Array.isArray(e)?e:[e]}var CE=e=>Array.from(Array(e).keys()),Wi=e=>(e==null?void 0:e.constructor.name)==="Array",SE=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!ss(e[r],t[r]))return!1;return!0},ss=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(Wi(e)&&Wi(t))return SE(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let o=0;o<n;o++)if(!Reflect.has(e,r[o]))return!1;for(let o=0;o<n;o++){const a=r[o];if(!ss(e[a],t[a]))return!1}return!0},EE=e=>e!=null&&typeof e=="object",sn=e=>typeof e=="string",Ut=e=>typeof e=="function",ep=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),RE=e=>Object.prototype.toString.call(e),tp=Function.prototype.toString,kE=tp.call(Object),NE=e=>{if(!EE(e)||RE(e)!="[object Object]"||TE(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=ep(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&tp.call(r)==kE},jE=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,PE=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,TE=e=>jE(e)||PE(e),_E=e=>e(),AE=(...e)=>(...t)=>{e.forEach(function(r){r==null||r(...t)})},IE=e=>Number.isNaN(e),OE=e=>IE(e)?0:e,ME=(e,t,r)=>{const n=OE(e),o=n>=t,a=r==null||n<=r;return o&&a};function rp(e){if(!NE(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=rp(o))}return r}function Gi(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function DE(e,t){if(e==null)throw new Error(t())}var np=e=>typeof e=="object"&&e!==null,ze=e=>e?"":void 0,$E=9,LE=e=>np(e)&&e.nodeType===$E,FE=e=>np(e)&&e===e.window;function VE(e){if(!e)return!1;const t=e.getRootNode();return op(t)===e}function BE(e){return LE(e)?e:FE(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function op(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(!r||r===t)break;t=r}return t}var WE=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),GE=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,zi=e=>{const t={};let r;for(;r=GE.exec(e);)t[r[1]]=r[2];return t},zE=(e,t)=>{if(sn(e)){if(sn(t))return`${e};${t}`;e=zi(e)}else sn(t)&&(t=zi(t));return Object.assign({},e??{},t??{})};function We(...e){let t={};for(let r of e){if(!r)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof r[o]=="function"){t[o]=AE(r[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=WE(t[o],r[o]);continue}if(o==="style"){t[o]=zE(t[o],r[o]);continue}t[o]=r[o]!==void 0?r[o]:t[o]}for(let o in r)t[o]===void 0&&(t[o]=r[o]);const n=Object.getOwnPropertySymbols(r);for(let o of n)t[o]=r[o]}return t}function qE(e,t,r){let n=[],o;return a=>{const s=e(a);return(s.length!==n.length||s.some((d,u)=>!ss(n[u],d)))&&(n=s,o=t(s,a)),o}}var Ht=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Ht||{}),Ao="__init__";function HE(e){const t=()=>{var s;return((s=e.getRootNode)==null?void 0:s.call(e))??document},r=()=>BE(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:()=>op(t()),isActiveElement:VE,getById:s=>t().getElementById(s)}}function UE(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var KE=()=>e=>Array.from(new Set(e)),ap=typeof globalThis.document<"u"?S.useLayoutEffect:S.useEffect;function Cn(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=S.useState(t),[o,a]=S.useState(n),s=e().value!==void 0,l=S.useRef(o);l.current=s?e().value:o;const d=S.useRef(l.current);ap(()=>{d.current=l.current},[o,e().value]);const u=p=>{var x,v;const m=d.current,g=Ut(p)?p(m):p;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:g,prev:m}),s||a(g),r(g,m)||(v=(x=e()).onChange)==null||v.call(x,g,m)};function f(){return s?e().value:o}return{initial:n,ref:l,get:f,set(p){(e().sync?kr.flushSync:_E)(()=>u(p))},invoke(p,m){var g,x;(x=(g=e()).onChange)==null||x.call(g,p,m)},hash(p){var m,g;return((g=(m=e()).hash)==null?void 0:g.call(m,p))??String(p)}}}Cn.cleanup=e=>{S.useEffect(()=>e,[])};Cn.ref=e=>{const t=S.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function YE(e){const t=S.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var XE=(e,t)=>{const r=S.useRef(!1),n=S.useRef(!1);S.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),S.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function ZE(e,t={}){var re,te,ee,W;const r=S.useMemo(()=>{const{id:D,ids:I,getRootNode:$}=t;return HE({id:D,ids:I,getRootNode:$})},[t]),n=(...D)=>{e.debug&&console.log(...D)},o=((re=e.props)==null?void 0:re.call(e,{props:rp(t),scope:r}))??t,a=JE(o),s=(te=e.context)==null?void 0:te.call(e,{prop:a,bindable:Cn,scope:r,flush:qi,getContext(){return d},getComputed(){return R},getRefs(){return v},getEvent(){return g()}}),l=sp(s),d={get(D){var I;return(I=l.current)==null?void 0:I[D].ref.current},set(D,I){var $;($=l.current)==null||$[D].set(I)},initial(D){var I;return(I=l.current)==null?void 0:I[D].initial},hash(D){var $,N;const I=($=l.current)==null?void 0:$[D].get();return(N=l.current)==null?void 0:N[D].hash(I)}},u=S.useRef(new Map),f=S.useRef(null),p=S.useRef(null),m=S.useRef({type:""}),g=()=>({...m.current,current(){return m.current},previous(){return p.current}}),x=()=>({...T,matches(...D){return D.includes(T.ref.current)},hasTag(D){var I,$;return!!(($=(I=e.states[T.ref.current])==null?void 0:I.tags)!=null&&$.includes(D))}}),v=YE(((ee=e.refs)==null?void 0:ee.call(e,{prop:a,context:d}))??{}),h=()=>({state:x(),context:d,event:g(),prop:a,send:q,action:y,guard:b,track:XE,refs:v,computed:R,flush:qi,scope:r,choose:E}),y=D=>{const I=Ut(D)?D(h()):D;if(!I)return;const $=I.map(N=>{var G,Q;const M=(Q=(G=e.implementations)==null?void 0:G.actions)==null?void 0:Q[N];return M||Gi(`[zag-js] No implementation found for action "${JSON.stringify(N)}"`),M});for(const N of $)N==null||N(h())},b=D=>{var I,$;return Ut(D)?D(h()):($=(I=e.implementations)==null?void 0:I.guards)==null?void 0:$[D](h())},C=D=>{const I=Ut(D)?D(h()):D;if(!I)return;const $=I.map(M=>{var Q,A;const G=(A=(Q=e.implementations)==null?void 0:Q.effects)==null?void 0:A[M];return G||Gi(`[zag-js] No implementation found for effect "${JSON.stringify(M)}"`),G}),N=[];for(const M of $){const G=M==null?void 0:M(h());G&&N.push(G)}return()=>N.forEach(M=>M==null?void 0:M())},E=D=>wE(D).find(I=>{let $=!I.guard;return sn(I.guard)?$=!!b(I.guard):Ut(I.guard)&&($=I.guard(h())),$}),R=D=>{DE(e.computed,()=>"[zag-js] No computed object found on machine");const I=e.computed[D];return I({context:d,event:g(),prop:a,refs:v,scope:r,computed:R})},T=Cn(()=>({defaultValue:e.initialState({prop:a}),onChange(D,I){var N,M,G,Q;if(I){const A=u.current.get(I);A==null||A(),u.current.delete(I)}I&&y((N=e.states[I])==null?void 0:N.exit),y((M=f.current)==null?void 0:M.actions);const $=C((G=e.states[D])==null?void 0:G.effects);if($&&u.current.set(D,$),I===Ao){y(e.entry);const A=C(e.effects);A&&u.current.set(Ao,A)}y((Q=e.states[D])==null?void 0:Q.entry)}})),P=S.useRef(void 0),j=S.useRef(Ht.NotStarted);ap(()=>{queueMicrotask(()=>{const $=j.current===Ht.Started;j.current=Ht.Started,n($?"rehydrating...":"initializing...");const N=P.current??T.initial;T.invoke(N,$?T.get():Ao)});const D=u.current,I=T.ref.current;return()=>{n("unmounting..."),P.current=I,j.current=Ht.Stopped,D.forEach($=>$==null?void 0:$()),u.current=new Map,f.current=null,queueMicrotask(()=>{y(e.exit)})}},[]);const F=()=>"ref"in T?T.ref.current:T.get(),q=D=>{queueMicrotask(()=>{var Q,A;if(j.current!==Ht.Started)return;p.current=m.current,m.current=D;let I=F();const $=((Q=e.states[I].on)==null?void 0:Q[D.type])??((A=e.on)==null?void 0:A[D.type]),N=E($);if(!N)return;f.current=N;const M=N.target??I;n("transition",D.type,N.target||I,`(${N.actions})`);const G=M!==I;G?kr.flushSync(()=>T.set(M)):N.reenter&&!G?T.invoke(I,I):y(N.actions??[])})};return(W=e.watch)==null||W.call(e,h()),{state:x(),send:q,context:d,prop:a,scope:r,refs:v,computed:R,event:g(),getStatus:()=>j.current}}function sp(e){const t=S.useRef(e);return t.current=e,t}function JE(e){const t=sp(e);return function(n){return t.current[n]}}function qi(e){queueMicrotask(()=>{kr.flushSync(()=>e())})}var QE=UE(e=>e);function eR(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function tR(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Io=e=>{const t=S.memo(S.forwardRef((r,n)=>{const{asChild:o,children:a,...s}=r;if(!o)return S.createElement(e,{...s,ref:n},a);if(!S.isValidElement(a))return null;const l=S.Children.only(a),d=tR(l);return S.cloneElement(l,{...We(s,l.props),ref:n?eR(n,d):d})}));return t.displayName=e.displayName||e.name,t},rR=()=>{const e=new Map;return new Proxy(Io,{apply(t,r,n){return Io(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,Io(n)),e.get(n)}})},Ze=rR();function nR(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Fr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,l=S.createContext(s);l.displayName=t;function d(){const u=S.useContext(l);if(!u&&r){const f=new Error(a??nR(n,o));throw f.name="ContextError",ep(Error,"captureStackTrace")&&Ut(Error.captureStackTrace)&&Error.captureStackTrace(f,d),f}return u}return[l.Provider,d,l]}const[oR,ot]=Fr({name:"StepsContext",hookName:"useStepsContext",providerName:"<StepsProvider />"}),ip=S.forwardRef((e,t)=>{const r=ot(),n=We(r.getContentProps({index:r.count}),e);return i.jsx(Ze.div,{...n,ref:t})});ip.displayName="StepsCompletedContent";const is=()=>(e,t)=>t.reduce((r,n)=>{const[o,a]=r,s=n;return a[s]!==void 0&&(o[s]=a[s]),delete a[s],[o,a]},[{},{...e}]),aR=is(),lp=S.forwardRef((e,t)=>{const[r,n]=aR(e,["index"]),o=ot(),a=We(o.getContentProps(r),n);return i.jsx(Ze.div,{...a,ref:t})});lp.displayName="StepsContent";const[sR,ls]=Fr({name:"StepsItemPropsContext",hookName:"useStepsItemPropsContext",providerName:"<StepsItemPropsProvider />"}),cp=S.forwardRef((e,t)=>{const r=ot(),n=ls(),o=We(r.getIndicatorProps(n),e);return i.jsx(Ze.div,{...o,ref:t})});cp.displayName="StepsIndicator";const[iR]=Fr({name:"StepsItemContext",hookName:"useStepsItemContext",providerName:"<StepsItem />"}),lR=is(),dp=S.forwardRef((e,t)=>{const[r,n]=lR(e,["index"]),o=ot(),a=We(o.getItemProps(r),n),s=o.getItemState(r);return i.jsx(sR,{value:r,children:i.jsx(iR,{value:s,children:i.jsx(Ze.div,{...a,ref:t})})})});dp.displayName="StepsItem";const up=S.forwardRef((e,t)=>{const r=ot(),n=We(r.getListProps(),e);return i.jsx(Ze.div,{...n,ref:t})});up.displayName="StepsList";const fp=S.forwardRef((e,t)=>{const r=ot(),n=We(r.getNextTriggerProps(),e);return i.jsx(Ze.button,{...n,ref:t})});fp.displayName="StepsNextTrigger";const pp=S.forwardRef((e,t)=>{const r=ot(),n=We(r.getPrevTriggerProps(),e);return i.jsx(Ze.button,{...n,ref:t})});pp.displayName="StepsPrevTrigger";var vr=(e,t=[])=>({parts:(...r)=>{if(cR(t))return vr(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>vr(e,[...t,...r]),omit:(...r)=>vr(e,t.filter(n=>!r.includes(n))),rename:r=>vr(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Gt(e)}"][data-part="${Gt(n)}"]`,`& [data-scope="${Gt(e)}"][data-part="${Gt(n)}"]`].join(", "),attrs:{"data-scope":Gt(e),"data-part":Gt(n)}}}),{})}),Gt=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),cR=e=>e.length===0,dR=vr("steps").parts("root","list","item","trigger","indicator","separator","content","nextTrigger","prevTrigger","progress"),qe=dR.build(),uR=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`steps:${e.id}`},fR=e=>{var t;return((t=e.ids)==null?void 0:t.list)??`steps:${e.id}:list`},Hi=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.triggerId)==null?void 0:n.call(r,t))??`steps:${e.id}:trigger:${t}`},pR=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.contentId)==null?void 0:n.call(r,t))??`steps:${e.id}:content:${t}`};function mR(e,t){const{context:r,send:n,computed:o,prop:a,scope:s}=e,l=r.get("step"),d=a("count"),u=o("percent"),f=o("hasNextStep"),p=o("hasPrevStep"),m=y=>({triggerId:Hi(s,y.index),contentId:pR(s,y.index),current:y.index===l,completed:y.index<l,incomplete:y.index>l,index:y.index,first:y.index===0,last:y.index===d-1}),g=()=>{n({type:"STEP.NEXT",src:"next.trigger.click"})},x=()=>{n({type:"STEP.PREV",src:"prev.trigger.click"})},v=()=>{n({type:"STEP.RESET",src:"reset.trigger.click"})},h=y=>{n({type:"STEP.SET",value:y,src:"api.setValue"})};return{value:l,count:d,percent:u,hasNextStep:f,hasPrevStep:p,isCompleted:o("completed"),goToNextStep:g,goToPrevStep:x,resetStep:v,getItemState:m,setStep:h,getRootProps(){return t.element({...qe.root.attrs,id:uR(s),dir:a("dir"),"data-orientation":a("orientation"),style:{"--percent":`${u}%`}})},getListProps(){const b=CE(d).map((C,E)=>Hi(s,E));return t.element({...qe.list.attrs,dir:a("dir"),id:fR(s),role:"tablist","aria-owns":b.join(" "),"aria-orientation":a("orientation"),"data-orientation":a("orientation")})},getItemProps(y){const b=m(y);return t.element({...qe.item.attrs,dir:a("dir"),"aria-current":b.current?"step":void 0,"data-orientation":a("orientation")})},getTriggerProps(y){const b=m(y);return t.button({...qe.trigger.attrs,id:b.triggerId,role:"tab",dir:a("dir"),tabIndex:!a("linear")||b.current?0:-1,"aria-selected":b.current,"aria-controls":b.contentId,"data-state":b.current?"open":"closed","data-orientation":a("orientation"),"data-complete":ze(b.completed),"data-current":ze(b.current),"data-incomplete":ze(b.incomplete),onClick(C){C.defaultPrevented||a("linear")||n({type:"STEP.SET",value:y.index,src:"trigger.click"})}})},getContentProps(y){const b=m(y);return t.element({...qe.content.attrs,dir:a("dir"),id:b.contentId,role:"tabpanel",tabIndex:0,hidden:!b.current,"data-state":b.current?"open":"closed","data-orientation":a("orientation"),"aria-labelledby":b.triggerId})},getIndicatorProps(y){const b=m(y);return t.element({...qe.indicator.attrs,dir:a("dir"),"aria-hidden":!0,"data-complete":ze(b.completed),"data-current":ze(b.current),"data-incomplete":ze(b.incomplete)})},getSeparatorProps(y){const b=m(y);return t.element({...qe.separator.attrs,dir:a("dir"),"data-orientation":a("orientation"),"data-complete":ze(b.completed),"data-current":ze(b.current),"data-incomplete":ze(b.incomplete)})},getNextTriggerProps(){return t.button({...qe.nextTrigger.attrs,dir:a("dir"),type:"button",disabled:!f,onClick(y){y.defaultPrevented||g()}})},getPrevTriggerProps(){return t.button({dir:a("dir"),...qe.prevTrigger.attrs,type:"button",disabled:!p,onClick(y){y.defaultPrevented||x()}})},getProgressProps(){return t.element({dir:a("dir"),...qe.progress.attrs,role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`${u}% complete`,"data-complete":ze(u===100)})}}}var gR={props({props:e}){return{defaultStep:0,count:1,linear:!1,orientation:"horizontal",...e}},context({prop:e,bindable:t}){return{step:t(()=>({defaultValue:e("defaultStep"),value:e("step"),onChange(r){var o,a;(o=e("onStepChange"))==null||o({step:r}),r==e("count")&&((a=e("onStepComplete"))==null||a())}}))}},computed:{percent:qE(({context:e,prop:t})=>[e.get("step"),t("count")],([e,t])=>e/t*100),hasNextStep:({context:e,prop:t})=>e.get("step")<t("count"),hasPrevStep:({context:e})=>e.get("step")>0,completed:({context:e,prop:t})=>e.get("step")===t("count")},initialState(){return"idle"},entry:["validateStep"],states:{idle:{on:{"STEP.SET":{actions:["setStep"]},"STEP.NEXT":{actions:["goToNextStep"]},"STEP.PREV":{actions:["goToPrevStep"]},"STEP.RESET":{actions:["resetStep"]}}}},implementations:{actions:{goToNextStep({context:e,prop:t}){const r=Math.min(e.get("step")+1,t("count"));e.set("step",r)},goToPrevStep({context:e}){const t=Math.max(e.get("step")-1,0);e.set("step",t)},resetStep({context:e}){e.set("step",0)},setStep({context:e,event:t}){e.set("step",t.value)},validateStep({context:e,prop:t}){vR(t("count"),e.get("step"))}}}},vR=(e,t)=>{if(!ME(t,0,e))throw new RangeError(`[zag-js/steps] step index ${t} is out of bounds`)};KE()(["count","dir","getRootNode","id","ids","linear","onStepChange","onStepComplete","orientation","step","defaultStep"]);const[KN,hR]=Fr({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[YN,xR]=Fr({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function bR(e){const t=S.useId(),{getRootNode:r}=hR(),{dir:n}=xR(),o={id:t,dir:n,getRootNode:r,...e},a=ZE(gR,o);return mR(a,QE)}const yR=is(),mp=S.forwardRef((e,t)=>{const[r,n]=yR(e,["defaultStep","id","ids","count","linear","onStepChange","onStepComplete","orientation","step"]),o=bR(r),a=We(o.getRootProps(),n);return i.jsx(oR,{value:o,children:i.jsx(Ze.div,{...a,ref:t})})});mp.displayName="StepsRoot";const gp=S.forwardRef((e,t)=>{const r=ot(),n=ls(),o=We(r.getSeparatorProps(n),e);return i.jsx(Ze.div,{...o,ref:t})});gp.displayName="StepsSeparator";const vp=S.forwardRef((e,t)=>{const r=ot(),n=ls(),o=We(r.getTriggerProps(n),e);return i.jsx(Ze.button,{...o,ref:t})});vp.displayName="StepsTrigger";function wR(e){return Qu({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}const hp=S.createContext(void 0),CR=({children:e,step:t})=>i.jsx(hp.Provider,{value:{step:t},children:e}),xp=()=>{const e=S.useContext(hp);if(!e)throw new Error("useSteps must be used within a StepsProvider");return e},SR=({className:e,step:t,...r})=>{const n=k("qodo qodo-steps","flex flex-col gap-4",e);return i.jsx(CR,{step:t??0,children:i.jsx(mp,{className:n,step:t,...r})})},ER=({className:e,...t})=>{const r=k("flex flex-row gap-4",e);return i.jsx(up,{className:r,...t})},RR=({className:e,...t})=>{const r=k("flex flex-row items-center gap-4",e);return i.jsx(dp,{className:r,...t})},kR=({className:e,...t})=>{const r=k("flex flex-row items-center gap-4 text-purple-muted-100 text-sm",e);return i.jsx(vp,{className:r,...t})},NR=({index:e,className:t,...r})=>{const{step:n}=xp(),o=e===n,a=e<n,s=k("flex items-center justify-center w-8 h-8 rounded-full text-white",a&&"bg-green-700",o&&"bg-green-600",!a&&!o&&"bg-purple-muted-500",t),l=k({"text-white":o,"text-purple-muted-300":!a&&e!==n});return i.jsx(cp,{className:s,...r,children:a?i.jsx(wR,{className:"text-green-400"}):i.jsx("span",{className:l,children:e+1})})},jR=({index:e,className:t,...r})=>{const{step:n}=xp(),o=e<n,a=k("min-w-12 h-px",o?"bg-green-400":"bg-gray-400",t);return i.jsx(gp,{className:a,...r})},PR=({className:e,...t})=>{const r=k(e);return i.jsx(lp,{className:r,...t})},TR=({className:e,...t})=>{const r=k(e);return i.jsx(ip,{className:r,...t})},_R=({className:e,...t})=>{const r=k("bg-primary text-white px-4 py-2 rounded-md",e);return i.jsx(pp,{className:r,...t})},AR=({className:e,...t})=>{const r=k("bg-primary text-white px-4 py-2 rounded-md",e);return i.jsx(fp,{className:r,...t})},IR={Root:SR,List:ER,Item:RR,Trigger:kR,Indicator:NR,Separator:jR,Content:PR,CompletedContent:TR,PrevTrigger:_R,NextTrigger:AR},Vr=({children:e,content:t,providerProps:r={},triggerProps:n={},contentProps:o={}})=>i.jsx(pf,{...r,children:i.jsxs(mf,{children:[i.jsx(gf,{...n,children:e}),t&&i.jsx(vf,{...o,children:t})]})});/**
199
+ Defaulting to \`null\`.`}var b0=Pd,y0=Td;function w0({className:e,value:t,...r}){return l.jsx(b0,{"data-slot":"progress",className:T("qodo qodo-progress bg-primary/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-primary/20",e),...r,children:l.jsx(y0,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all dark:bg-primary",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function Ad({className:e,...t}){return l.jsx("div",{className:T("qodo qodo-skeleton animate-pulse rounded-md bg-neutral-900/10 dark:bg-neutral-50/10",e),...t})}var Ro="Switch",[C0]=Pe(Ro),[S0,E0]=C0(Ro),_d=d.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:s,disabled:i,value:c="on",onCheckedChange:u,form:f,...p}=e,[m,g]=d.useState(null),h=le(t,w=>g(w)),v=d.useRef(!1),x=m?f||!!m.closest("form"):!0,[b,y]=ke({prop:o,defaultProp:a??!1,onChange:u,caller:Ro});return l.jsxs(S0,{scope:r,checked:b,disabled:i,children:[l.jsx(re.button,{type:"button",role:"switch","aria-checked":b,"aria-required":s,"data-state":$d(b),"data-disabled":i?"":void 0,disabled:i,value:c,...p,ref:h,onClick:K(e.onClick,w=>{y(S=>!S),x&&(v.current=w.isPropagationStopped(),v.current||w.stopPropagation())})}),x&&l.jsx(Dd,{control:m,bubbles:!v.current,name:n,value:c,checked:b,required:s,disabled:i,form:f,style:{transform:"translateX(-100%)"}})]})});_d.displayName=Ro;var Od="SwitchThumb",Md=d.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=E0(Od,r);return l.jsx(re.span,{"data-state":$d(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Md.displayName=Od;var R0="SwitchBubbleInput",Dd=d.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=d.useRef(null),i=le(s,a),c=vo(r),u=po(t);return d.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&g){const h=new Event("click",{bubbles:n});g.call(f,r),f.dispatchEvent(h)}},[c,r,n]),l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Dd.displayName=R0;function $d(e){return e?"checked":"unchecked"}var k0=_d,N0=Md;const P0=Bt("qodo qodo-switch peer inline-flex shrink-0 items-center rounded-full border transition-all outline-none shadow-lg p-0.5 disabled:cursor-not-allowed",{variants:{size:{small:"h-5 w-8",large:"h-6 w-10"}},defaultVariants:{size:"small"}}),j0=Bt("pointer-events-none block rounded-full ring-0 transition-transform shadow-lg",{variants:{size:{small:"h-[14px] w-[14px] data-[state=checked]:translate-x-[12px]",large:"h-[18px] w-[18px] data-[state=checked]:translate-x-[16px]"}},defaultVariants:{size:"small"}});function T0({className:e,size:t,...r}){return l.jsx(k0,{"data-slot":"switch",className:T(P0({size:t}),"data-[state=unchecked]:border-[var(--border-input-neutral-idle)] data-[state=unchecked]:bg-[var(--fill-input-neutral-idle)]","data-[state=unchecked]:hover:border-[var(--border-input-neutral-hover)] data-[state=unchecked]:hover:bg-[var(--fill-input-neutral-hover)]","data-[state=unchecked]:active:border-[var(--border-input-neutral-active)] data-[state=unchecked]:active:bg-[var(--fill-input-neutral-active)]","data-[state=unchecked]:disabled:border-[var(--border-input-neutral-disabled)] data-[state=unchecked]:disabled:bg-[var(--fill-input-neutral-disabled)]","data-[state=checked]:border-[var(--color-purple-700)] data-[state=checked]:bg-[var(--fill-input-emphasis-idle)]","data-[state=checked]:hover:border-[var(--color-purple-600)] data-[state=checked]:hover:bg-[var(--fill-input-emphasis-hover)]","data-[state=checked]:active:border-[var(--color-purple-600)] data-[state=checked]:active:bg-[var(--fill-input-emphasis-active)]","data-[state=checked]:disabled:border-[var(--fill-input-emphasis-disabled)] data-[state=checked]:disabled:bg-[var(--fill-input-emphasis-disabled)]",e),...r,children:l.jsx(N0,{"data-slot":"switch-thumb",className:T(j0({size:t}),"data-[state=unchecked]:bg-[var(--icon-input-neutral-idle)]","data-[state=unchecked]:hover:bg-[var(--icon-input-neutral-hover)]","data-[state=unchecked]:active:bg-[var(--icon-input-neutral-active)]","data-[state=unchecked]:disabled:bg-[var(--icon-input-neutral-disabled)]","data-[state=checked]:bg-[var(--icon-input-emphasis-idle)]","data-[state=checked]:hover:bg-[var(--icon-input-emphasis-hover)]","data-[state=checked]:active:bg-[var(--icon-input-emphasis-active)]","data-[state=checked]:disabled:bg-[var(--icon-input-emphasis-disabled)]","data-[state=unchecked]:translate-x-0")})})}var Ld="Toggle",fs=d.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[s,i]=ke({prop:r,onChange:o,defaultProp:n??!1,caller:Ld});return l.jsx(re.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:K(e.onClick,()=>{e.disabled||i(!s)})})});fs.displayName=Ld;var I0=fs;const Fd=Bt("qodo qodo-toggle inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium text-foreground hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap dark:text-foreground dark:hover:bg-muted dark:hover:text-muted-foreground dark:data-[state=on]:bg-accent dark:data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent text-foreground dark:bg-transparent dark:text-foreground",outline:"border border-input bg-transparent text-foreground shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-transparent dark:text-foreground dark:hover:bg-accent dark:hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function A0({className:e,variant:t,size:r,...n}){return l.jsx(I0,{"data-slot":"toggle",className:T(Fd({variant:t,size:r,className:e})),...n})}var ia="rovingFocusGroup.onEntryFocus",_0={bubbles:!1,cancelable:!0},sn="RovingFocusGroup",[Na,Vd,O0]=so(sn),[M0,St]=Pe(sn,[O0]),[D0,$0]=M0(sn),Bd=d.forwardRef((e,t)=>l.jsx(Na.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(Na.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(L0,{...e,ref:t})})}));Bd.displayName=sn;var L0=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,m=d.useRef(null),g=le(t,m),h=Gt(a),[v,x]=ke({prop:s,defaultProp:i??null,onChange:c,caller:sn}),[b,y]=d.useState(!1),w=ze(u),S=Vd(r),R=d.useRef(!1),[P,k]=d.useState(0);return d.useEffect(()=>{const N=m.current;if(N)return N.addEventListener(ia,w),()=>N.removeEventListener(ia,w)},[w]),l.jsx(D0,{scope:r,orientation:n,dir:h,loop:o,currentTabStopId:v,onItemFocus:d.useCallback(N=>x(N),[x]),onItemShiftTab:d.useCallback(()=>y(!0),[]),onFocusableItemAdd:d.useCallback(()=>k(N=>N+1),[]),onFocusableItemRemove:d.useCallback(()=>k(N=>N-1),[]),children:l.jsx(re.div,{tabIndex:b||P===0?-1:0,"data-orientation":n,...p,ref:g,style:{outline:"none",...e.style},onMouseDown:K(e.onMouseDown,()=>{R.current=!0}),onFocus:K(e.onFocus,N=>{const D=!R.current;if(N.target===N.currentTarget&&D&&!b){const B=new CustomEvent(ia,_0);if(N.currentTarget.dispatchEvent(B),!B.defaultPrevented){const W=S().filter(_=>_.focusable),Z=W.find(_=>_.active),J=W.find(_=>_.id===v),M=[Z,J,...W].filter(Boolean).map(_=>_.ref.current);zd(M,f)}}R.current=!1}),onBlur:K(e.onBlur,()=>y(!1))})})}),Gd="RovingFocusGroupItem",Wd=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:s,...i}=e,c=be(),u=a||c,f=$0(Gd,r),p=f.currentTabStopId===u,m=Vd(r),{onFocusableItemAdd:g,onFocusableItemRemove:h,currentTabStopId:v}=f;return d.useEffect(()=>{if(n)return g(),()=>h()},[n,g,h]),l.jsx(Na.ItemSlot,{scope:r,id:u,focusable:n,active:o,children:l.jsx(re.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...i,ref:t,onMouseDown:K(e.onMouseDown,x=>{n?f.onItemFocus(u):x.preventDefault()}),onFocus:K(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:K(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){f.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const b=B0(x,f.orientation,f.dir);if(b!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let w=m().filter(S=>S.focusable).map(S=>S.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const S=w.indexOf(x.currentTarget);w=f.loop?G0(w,S+1):w.slice(S+1)}setTimeout(()=>zd(w))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:v!=null}):s})})});Wd.displayName=Gd;var F0={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function V0(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function B0(e,t,r){const n=V0(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return F0[n]}function zd(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function G0(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var ko=Bd,No=Wd,Et="ToggleGroup",[qd]=Pe(Et,[St]),Hd=St(),ps=E.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return l.jsx(W0,{...o,ref:t})}if(r==="multiple"){const o=n;return l.jsx(z0,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Et}\``)});ps.displayName=Et;var[Ud,Kd]=qd(Et),W0=E.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[s,i]=ke({prop:r,defaultProp:n??"",onChange:o,caller:Et});return l.jsx(Ud,{scope:e.__scopeToggleGroup,type:"single",value:E.useMemo(()=>s?[s]:[],[s]),onItemActivate:i,onItemDeactivate:E.useCallback(()=>i(""),[i]),children:l.jsx(Yd,{...a,ref:t})})}),z0=E.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[s,i]=ke({prop:r,defaultProp:n??[],onChange:o,caller:Et}),c=E.useCallback(f=>i((p=[])=>[...p,f]),[i]),u=E.useCallback(f=>i((p=[])=>p.filter(m=>m!==f)),[i]);return l.jsx(Ud,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:c,onItemDeactivate:u,children:l.jsx(Yd,{...a,ref:t})})});ps.displayName=Et;var[q0,H0]=qd(Et),Yd=E.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:s,loop:i=!0,...c}=e,u=Hd(r),f=Gt(s),p={role:"group",dir:f,...c};return l.jsx(q0,{scope:r,rovingFocus:o,disabled:n,children:o?l.jsx(ko,{asChild:!0,...u,orientation:a,dir:f,loop:i,children:l.jsx(re.div,{...p,ref:t})}):l.jsx(re.div,{...p,ref:t})})}),Kn="ToggleGroupItem",Xd=E.forwardRef((e,t)=>{const r=Kd(Kn,e.__scopeToggleGroup),n=H0(Kn,e.__scopeToggleGroup),o=Hd(e.__scopeToggleGroup),a=r.value.includes(e.value),s=n.disabled||e.disabled,i={...e,pressed:a,disabled:s},c=E.useRef(null);return n.rovingFocus?l.jsx(No,{asChild:!0,...o,focusable:!s,active:a,ref:c,children:l.jsx(el,{...i,ref:t})}):l.jsx(el,{...i,ref:t})});Xd.displayName=Kn;var el=E.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=Kd(Kn,r),s={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},i=a.type==="single"?s:void 0;return l.jsx(fs,{...i,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(n):a.onItemDeactivate(n)}})}),U0=ps,K0=Xd;const Zd=d.createContext({size:"default",variant:"default"});function Y0({className:e,variant:t,size:r,children:n,...o}){return l.jsx(U0,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:T("qodo qodo-toggle-group group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs dark:data-[variant=outline]:shadow-xs",e),...o,children:l.jsx(Zd.Provider,{value:{variant:t,size:r},children:n})})}function X0({className:e,children:t,variant:r,size:n,...o}){const a=d.useContext(Zd);return l.jsx(K0,{"data-slot":"toggle-group-item","data-variant":a.variant||r,"data-size":a.size||n,className:T(Fd({variant:a.variant||r,size:a.size||n}),"qodo qodo-toggle-group-item min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",e),...o,children:t})}var Po="Collapsible",[Z0,Jd]=Pe(Po),[J0,ms]=Z0(Po),Qd=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:s,...i}=e,[c,u]=ke({prop:n,defaultProp:o??!1,onChange:s,caller:Po});return l.jsx(J0,{scope:r,disabled:a,contentId:be(),open:c,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),children:l.jsx(re.div,{"data-state":vs(c),"data-disabled":a?"":void 0,...i,ref:t})})});Qd.displayName=Po;var ef="CollapsibleTrigger",tf=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=ms(ef,r);return l.jsx(re.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":vs(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:K(e.onClick,o.onOpenToggle)})});tf.displayName=ef;var gs="CollapsibleContent",rf=d.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=ms(gs,e.__scopeCollapsible);return l.jsx(je,{present:r||o.open,children:({present:a})=>l.jsx(Q0,{...n,ref:t,present:a})})});rf.displayName=gs;var Q0=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,s=ms(gs,r),[i,c]=d.useState(n),u=d.useRef(null),f=le(t,u),p=d.useRef(0),m=p.current,g=d.useRef(0),h=g.current,v=s.open||i,x=d.useRef(v),b=d.useRef(void 0);return d.useEffect(()=>{const y=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(y)},[]),Ne(()=>{const y=u.current;if(y){b.current=b.current||{transitionDuration:y.style.transitionDuration,animationName:y.style.animationName},y.style.transitionDuration="0s",y.style.animationName="none";const w=y.getBoundingClientRect();p.current=w.height,g.current=w.width,x.current||(y.style.transitionDuration=b.current.transitionDuration,y.style.animationName=b.current.animationName),c(n)}},[s.open,n]),l.jsx(re.div,{"data-state":vs(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!v,...a,ref:f,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:v&&o})});function vs(e){return e?"open":"closed"}var eC=Qd,tC=tf,rC=rf,Ke="Accordion",nC=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[hs,oC,aC]=so(Ke),[jo]=Pe(Ke,[aC,Jd]),xs=Jd(),nf=E.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,a=n;return l.jsx(hs.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?l.jsx(cC,{...a,ref:t}):l.jsx(lC,{...o,ref:t})})});nf.displayName=Ke;var[of,sC]=jo(Ke),[af,iC]=jo(Ke,{collapsible:!1}),lC=E.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:a=!1,...s}=e,[i,c]=ke({prop:r,defaultProp:n??"",onChange:o,caller:Ke});return l.jsx(of,{scope:e.__scopeAccordion,value:E.useMemo(()=>i?[i]:[],[i]),onItemOpen:c,onItemClose:E.useCallback(()=>a&&c(""),[a,c]),children:l.jsx(af,{scope:e.__scopeAccordion,collapsible:a,children:l.jsx(sf,{...s,ref:t})})})}),cC=E.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[s,i]=ke({prop:r,defaultProp:n??[],onChange:o,caller:Ke}),c=E.useCallback(f=>i((p=[])=>[...p,f]),[i]),u=E.useCallback(f=>i((p=[])=>p.filter(m=>m!==f)),[i]);return l.jsx(of,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:u,children:l.jsx(af,{scope:e.__scopeAccordion,collapsible:!0,children:l.jsx(sf,{...a,ref:t})})})}),[uC,To]=jo(Ke),sf=E.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:a="vertical",...s}=e,i=E.useRef(null),c=le(i,t),u=oC(r),p=Gt(o)==="ltr",m=K(e.onKeyDown,g=>{var N;if(!nC.includes(g.key))return;const h=g.target,v=u().filter(D=>{var B;return!((B=D.ref.current)!=null&&B.disabled)}),x=v.findIndex(D=>D.ref.current===h),b=v.length;if(x===-1)return;g.preventDefault();let y=x;const w=0,S=b-1,R=()=>{y=x+1,y>S&&(y=w)},P=()=>{y=x-1,y<w&&(y=S)};switch(g.key){case"Home":y=w;break;case"End":y=S;break;case"ArrowRight":a==="horizontal"&&(p?R():P());break;case"ArrowDown":a==="vertical"&&R();break;case"ArrowLeft":a==="horizontal"&&(p?P():R());break;case"ArrowUp":a==="vertical"&&P();break}const k=y%b;(N=v[k].ref.current)==null||N.focus()});return l.jsx(uC,{scope:r,disabled:n,direction:o,orientation:a,children:l.jsx(hs.Slot,{scope:r,children:l.jsx(re.div,{...s,"data-orientation":a,ref:c,onKeyDown:n?void 0:m})})})}),Yn="AccordionItem",[dC,bs]=jo(Yn),lf=E.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,a=To(Yn,r),s=sC(Yn,r),i=xs(r),c=be(),u=n&&s.value.includes(n)||!1,f=a.disabled||e.disabled;return l.jsx(dC,{scope:r,open:u,disabled:f,triggerId:c,children:l.jsx(eC,{"data-orientation":a.orientation,"data-state":mf(u),...i,...o,ref:t,disabled:f,open:u,onOpenChange:p=>{p?s.onItemOpen(n):s.onItemClose(n)}})})});lf.displayName=Yn;var cf="AccordionHeader",uf=E.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=To(Ke,r),a=bs(cf,r);return l.jsx(re.h3,{"data-orientation":o.orientation,"data-state":mf(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});uf.displayName=cf;var Pa="AccordionTrigger",df=E.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=To(Ke,r),a=bs(Pa,r),s=iC(Pa,r),i=xs(r);return l.jsx(hs.ItemSlot,{scope:r,children:l.jsx(tC,{"aria-disabled":a.open&&!s.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...i,...n,ref:t})})});df.displayName=Pa;var ff="AccordionContent",pf=E.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=To(Ke,r),a=bs(ff,r),s=xs(r);return l.jsx(rC,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...s,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});pf.displayName=ff;function mf(e){return e?"open":"closed"}var fC=nf,pC=lf,mC=uf,gC=df,vC=pf;const ys=d.createContext({variant:"default"});function hC({variant:e="default",...t}){return l.jsx(ys.Provider,{value:{variant:e},children:l.jsx(fC,{"data-slot":"accordion",...t})})}function xC({className:e,...t}){const{variant:r}=d.useContext(ys);return l.jsx(pC,{"data-slot":"accordion-item",className:T("qodo qodo-accordion-item","text-[var(--text-interactive-neutral-idle)] text-base font-medium leading-6","hover:text-[var(--text-interactive-neutral-hover)]",{"border-b border-[var(--color-neutral-600)]":r==="default","border border-[var(--color-neutral-600)] mb-2 px-4 rounded-lg":r==="outlined","bg-[var(--fill-interactive-neutral-idle)] mb-2 px-2 rounded-lg":r==="filled"},e),...t})}function bC({className:e,children:t,iconPosition:r="right",...n}){const{variant:o}=d.useContext(ys);return l.jsx(mC,{className:"flex",children:l.jsxs(gC,{"data-slot":"accordion-trigger",className:T("qodo qodo-accordion-trigger","flex flex-1 items-start justify-between gap-4 rounded-md","text-left text-sm font-medium transition-all outline-none","text-text-interactive-neutral-idle cursor-pointer","hover:text-[var(--text-interactive-neutral-hover)]","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","disabled:pointer-events-none disabled:opacity-50","[&[data-state=open]>svg]:rotate-180","dark:focus-visible:border-ring dark:focus-visible:ring-ring/50",{"py-4":o!=="filled","py-2":o==="filled","flex-row-reverse justify-end gap-2":r==="left"},e),...n,children:[t,l.jsx(oo,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200 dark:text-muted-foreground"})]})})}function yC({className:e,children:t,...r}){return l.jsx(vC,{"data-slot":"accordion-content",className:T("qodo qodo-accordion-content","overflow-hidden text-sm text-foreground","data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down","dark:text-foreground"),...r,children:l.jsx("div",{className:T("pt-0 pb-4","text-text-interactive-neutral-idle font-normal text-sm",e),children:t})})}var Io="Tabs",[wC]=Pe(Io,[St]),gf=St(),[CC,ws]=wC(Io),vf=d.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:s="horizontal",dir:i,activationMode:c="automatic",...u}=e,f=Gt(i),[p,m]=ke({prop:n,onChange:o,defaultProp:a??"",caller:Io});return l.jsx(CC,{scope:r,baseId:be(),value:p,onValueChange:m,orientation:s,dir:f,activationMode:c,children:l.jsx(re.div,{dir:f,"data-orientation":s,...u,ref:t})})});vf.displayName=Io;var hf="TabsList",xf=d.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=ws(hf,r),s=gf(r);return l.jsx(ko,{asChild:!0,...s,orientation:a.orientation,dir:a.dir,loop:n,children:l.jsx(re.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});xf.displayName=hf;var bf="TabsTrigger",yf=d.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,s=ws(bf,r),i=gf(r),c=Sf(s.baseId,n),u=Ef(s.baseId,n),f=n===s.value;return l.jsx(No,{asChild:!0,...i,focusable:!o,active:f,children:l.jsx(re.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:K(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?s.onValueChange(n):p.preventDefault()}),onKeyDown:K(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(n)}),onFocus:K(e.onFocus,()=>{const p=s.activationMode!=="manual";!f&&!o&&p&&s.onValueChange(n)})})})});yf.displayName=bf;var wf="TabsContent",Cf=d.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...s}=e,i=ws(wf,r),c=Sf(i.baseId,n),u=Ef(i.baseId,n),f=n===i.value,p=d.useRef(f);return d.useEffect(()=>{const m=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(m)},[]),l.jsx(je,{present:o||f,children:({present:m})=>l.jsx(re.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":c,hidden:!m,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:m&&a})})});Cf.displayName=wf;function Sf(e,t){return`${e}-trigger-${t}`}function Ef(e,t){return`${e}-content-${t}`}var SC=vf,EC=xf,RC=yf,kC=Cf;function NC({className:e,...t}){return l.jsx(SC,{"data-slot":"tabs",className:T("qodo qodo-tabs flex flex-col gap-2",e),...t})}function PC({className:e,...t}){return l.jsx(EC,{"data-slot":"tabs-list",className:T("inline-flex w-full items-end justify-start gap-4",e),...t})}function jC({className:e,...t}){return l.jsx(RC,{"data-slot":"tabs-trigger",className:T("text-[var(--text-interactive-neutral-idle)] hover:text-[var(--text-interactive-neutral-hover)] data-[state=active]:text-[var(--text-interactive-emphasis-active)] focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex items-center justify-center gap-1.5 border-b border-transparent py-4 text-xs font-normal whitespace-nowrap transition-[color,border-color] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed data-[state=active]:border-[var(--color-purple-400)] relative -mb-px tracking-[0.01em] leading-[150%] cursor-pointer [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function TC({className:e,...t}){return l.jsx(kC,{"data-slot":"tabs-content",className:T("flex-1 outline-none",e),...t})}const Rf=Bt("qodo qodo-typography",{variants:{variant:{h1:"scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl",h2:"scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0",h3:"scroll-m-20 text-2xl font-semibold tracking-tight",h4:"scroll-m-20 text-xl font-semibold tracking-tight",h5:"scroll-m-20 text-lg font-semibold tracking-tight",h6:"scroll-m-20 text-base font-semibold tracking-tight",p:"leading-7 [&:not(:first-child)]:mt-6",lead:"text-xl text-muted-foreground dark:text-muted-foreground",large:"text-lg font-semibold",small:"text-sm font-medium leading-none",muted:"text-sm text-muted-foreground dark:text-muted-foreground",body:"text-base leading-relaxed",caption:"text-xs text-muted-foreground dark:text-muted-foreground",code:"font-plex-mono relative rounded bg-muted px-[0.3rem] py-[0.2rem] text-sm font-semibold dark:bg-muted","code-inline":"font-plex-mono relative rounded bg-muted px-[0.3rem] py-[0.2rem] text-xs dark:bg-muted","code-block":"font-plex-mono block w-full rounded-lg bg-muted p-4 text-sm leading-relaxed dark:bg-muted overflow-x-auto",blockquote:"mt-6 border-l-2 pl-6 italic text-muted-foreground dark:text-muted-foreground",list:"my-6 ml-6 list-disc [&>li]:mt-2","list-ordered":"my-6 ml-6 list-decimal [&>li]:mt-2"}},defaultVariants:{variant:"p"}}),kf=d.forwardRef(({className:e,variant:t,as:r,...n},o)=>{const a=r||IC(t)||"p";return d.createElement(a,{className:T(Rf({variant:t,className:e})),ref:o,...n})});kf.displayName="Typography";function IC(e){switch(e){case"list":return"ul";case"list-ordered":return"ol";case"code-inline":return"code";case"code-block":return"pre";case"lead":case"large":case"small":case"muted":case"body":case"caption":return"p";default:return e||"p"}}function AC(e){return Object.prototype.toString.call(e)==="[object Object]"}function tl(e){return AC(e)||Array.isArray(e)}function _C(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Cs(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),a=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==a?!1:r.every(s=>{const i=e[s],c=t[s];return typeof i=="function"?`${i}`==`${c}`:!tl(i)||!tl(c)?i===c:Cs(i,c)})}function rl(e){return e.concat().sort((t,r)=>t.name>r.name?1:-1).map(t=>t.options)}function OC(e,t){if(e.length!==t.length)return!1;const r=rl(e),n=rl(t);return r.every((o,a)=>{const s=n[a];return Cs(o,s)})}function Ss(e){return typeof e=="number"}function ja(e){return typeof e=="string"}function Ao(e){return typeof e=="boolean"}function nl(e){return Object.prototype.toString.call(e)==="[object Object]"}function he(e){return Math.abs(e)}function Es(e){return Math.sign(e)}function Br(e,t){return he(e-t)}function MC(e,t){if(e===0||t===0||he(e)<=he(t))return 0;const r=Br(he(e),he(t));return he(r/e)}function DC(e){return Math.round(e*100)/100}function qr(e){return Hr(e).map(Number)}function We(e){return e[ln(e)]}function ln(e){return Math.max(0,e.length-1)}function Rs(e,t){return t===ln(e)}function ol(e,t=0){return Array.from(Array(e),(r,n)=>t+n)}function Hr(e){return Object.keys(e)}function Nf(e,t){return[e,t].reduce((r,n)=>(Hr(n).forEach(o=>{const a=r[o],s=n[o],i=nl(a)&&nl(s);r[o]=i?Nf(a,s):s}),r),{})}function Ta(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function $C(e,t){const r={start:n,center:o,end:a};function n(){return 0}function o(c){return a(c)/2}function a(c){return t-c}function s(c,u){return ja(e)?r[e](c):e(t,c,u)}return{measure:s}}function Ur(){let e=[];function t(o,a,s,i={passive:!0}){let c;if("addEventListener"in o)o.addEventListener(a,s,i),c=()=>o.removeEventListener(a,s,i);else{const u=o;u.addListener(s),c=()=>u.removeListener(s)}return e.push(c),n}function r(){e=e.filter(o=>o())}const n={add:t,clear:r};return n}function LC(e,t,r,n){const o=Ur(),a=1e3/60;let s=null,i=0,c=0;function u(){o.add(e,"visibilitychange",()=>{e.hidden&&h()})}function f(){g(),o.clear()}function p(x){if(!c)return;s||(s=x,r(),r());const b=x-s;for(s=x,i+=b;i>=a;)r(),i-=a;const y=i/a;n(y),c&&(c=t.requestAnimationFrame(p))}function m(){c||(c=t.requestAnimationFrame(p))}function g(){t.cancelAnimationFrame(c),s=null,i=0,c=0}function h(){s=null,i=0}return{init:u,destroy:f,start:m,stop:g,update:r,render:n}}function FC(e,t){const r=t==="rtl",n=e==="y",o=n?"y":"x",a=n?"x":"y",s=!n&&r?-1:1,i=f(),c=p();function u(h){const{height:v,width:x}=h;return n?v:x}function f(){return n?"top":r?"right":"left"}function p(){return n?"bottom":r?"left":"right"}function m(h){return h*s}return{scroll:o,cross:a,startEdge:i,endEdge:c,measureSize:u,direction:m}}function Ft(e=0,t=0){const r=he(e-t);function n(u){return u<e}function o(u){return u>t}function a(u){return n(u)||o(u)}function s(u){return a(u)?n(u)?e:t:u}function i(u){return r?u-r*Math.ceil((u-t)/r):u}return{length:r,max:t,min:e,constrain:s,reachedAny:a,reachedMax:o,reachedMin:n,removeOffset:i}}function Pf(e,t,r){const{constrain:n}=Ft(0,e),o=e+1;let a=s(t);function s(m){return r?he((o+m)%o):n(m)}function i(){return a}function c(m){return a=s(m),p}function u(m){return f().set(i()+m)}function f(){return Pf(e,i(),r)}const p={get:i,set:c,add:u,clone:f};return p}function VC(e,t,r,n,o,a,s,i,c,u,f,p,m,g,h,v,x,b,y){const{cross:w,direction:S}=e,R=["INPUT","SELECT","TEXTAREA"],P={passive:!1},k=Ur(),N=Ur(),D=Ft(50,225).constrain(g.measure(20)),B={mouse:300,touch:400},W={mouse:500,touch:600},Z=h?43:25;let J=!1,z=0,M=0,_=!1,$=!1,I=!1,O=!1;function H(F){if(!y)return;function ie(ge){(Ao(y)||y(F,ge))&&L(ge)}const fe=t;k.add(fe,"dragstart",ge=>ge.preventDefault(),P).add(fe,"touchmove",()=>{},P).add(fe,"touchend",()=>{}).add(fe,"touchstart",ie).add(fe,"mousedown",ie).add(fe,"touchcancel",G).add(fe,"contextmenu",G).add(fe,"click",U,!0)}function Q(){k.clear(),N.clear()}function A(){const F=O?r:t;N.add(F,"touchmove",j,P).add(F,"touchend",G).add(F,"mousemove",j,P).add(F,"mouseup",G)}function q(F){const ie=F.nodeName||"";return R.includes(ie)}function X(){return(h?W:B)[O?"mouse":"touch"]}function Y(F,ie){const fe=p.add(Es(F)*-1),ge=f.byDistance(F,!h).distance;return h||he(F)<D?ge:x&&ie?ge*.5:f.byIndex(fe.get(),0).distance}function L(F){const ie=Ta(F,n);O=ie,I=h&&ie&&!F.buttons&&J,J=Br(o.get(),s.get())>=2,!(ie&&F.button!==0)&&(q(F.target)||(_=!0,a.pointerDown(F),u.useFriction(0).useDuration(0),o.set(s),A(),z=a.readPoint(F),M=a.readPoint(F,w),m.emit("pointerDown")))}function j(F){if(!Ta(F,n)&&F.touches.length>=2)return G(F);const fe=a.readPoint(F),ge=a.readPoint(F,w),xe=Br(fe,z),Ee=Br(ge,M);if(!$&&!O&&(!F.cancelable||($=xe>Ee,!$)))return G(F);const Le=a.pointerMove(F);xe>v&&(I=!0),u.useFriction(.3).useDuration(.75),i.start(),o.add(S(Le)),F.preventDefault()}function G(F){const fe=f.byDistance(0,!1).index!==p.get(),ge=a.pointerUp(F)*X(),xe=Y(S(ge),fe),Ee=MC(ge,xe),Le=Z-10*Ee,Re=b+Ee/50;$=!1,_=!1,N.clear(),u.useDuration(Le).useFriction(Re),c.distance(xe,!h),O=!1,m.emit("pointerUp")}function U(F){I&&(F.stopPropagation(),F.preventDefault(),I=!1)}function ne(){return _}return{init:H,destroy:Q,pointerDown:ne}}function BC(e,t){let n,o;function a(p){return p.timeStamp}function s(p,m){const h=`client${(m||e.scroll)==="x"?"X":"Y"}`;return(Ta(p,t)?p:p.touches[0])[h]}function i(p){return n=p,o=p,s(p)}function c(p){const m=s(p)-s(o),g=a(p)-a(n)>170;return o=p,g&&(n=p),m}function u(p){if(!n||!o)return 0;const m=s(o)-s(n),g=a(p)-a(n),h=a(p)-a(o)>170,v=m/g;return g&&!h&&he(v)>.1?v:0}return{pointerDown:i,pointerMove:c,pointerUp:u,readPoint:s}}function GC(){function e(r){const{offsetTop:n,offsetLeft:o,offsetWidth:a,offsetHeight:s}=r;return{top:n,right:o+a,bottom:n+s,left:o,width:a,height:s}}return{measure:e}}function WC(e){function t(n){return e*(n/100)}return{measure:t}}function zC(e,t,r,n,o,a,s){const i=[e].concat(n);let c,u,f=[],p=!1;function m(x){return o.measureSize(s.measure(x))}function g(x){if(!a)return;u=m(e),f=n.map(m);function b(y){for(const w of y){if(p)return;const S=w.target===e,R=n.indexOf(w.target),P=S?u:f[R],k=m(S?e:n[R]);if(he(k-P)>=.5){x.reInit(),t.emit("resize");break}}}c=new ResizeObserver(y=>{(Ao(a)||a(x,y))&&b(y)}),r.requestAnimationFrame(()=>{i.forEach(y=>c.observe(y))})}function h(){p=!0,c&&c.disconnect()}return{init:g,destroy:h}}function qC(e,t,r,n,o,a){let s=0,i=0,c=o,u=a,f=e.get(),p=0;function m(){const P=n.get()-e.get(),k=!c;let N=0;return k?(s=0,r.set(n),e.set(n),N=P):(r.set(e),s+=P/c,s*=u,f+=s,e.add(s),N=f-p),i=Es(N),p=f,R}function g(){const P=n.get()-t.get();return he(P)<.001}function h(){return c}function v(){return i}function x(){return s}function b(){return w(o)}function y(){return S(a)}function w(P){return c=P,R}function S(P){return u=P,R}const R={direction:v,duration:h,velocity:x,seek:m,settled:g,useBaseFriction:y,useBaseDuration:b,useFriction:S,useDuration:w};return R}function HC(e,t,r,n,o){const a=o.measure(10),s=o.measure(50),i=Ft(.1,.99);let c=!1;function u(){return!(c||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function f(g){if(!u())return;const h=e.reachedMin(t.get())?"min":"max",v=he(e[h]-t.get()),x=r.get()-t.get(),b=i.constrain(v/s);r.subtract(x*b),!g&&he(x)<a&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())}function p(g){c=!g}return{shouldConstrain:u,constrain:f,toggleActive:p}}function UC(e,t,r,n,o){const a=Ft(-t+e,0),s=p(),i=f(),c=m();function u(h,v){return Br(h,v)<=1}function f(){const h=s[0],v=We(s),x=s.lastIndexOf(h),b=s.indexOf(v)+1;return Ft(x,b)}function p(){return r.map((h,v)=>{const{min:x,max:b}=a,y=a.constrain(h),w=!v,S=Rs(r,v);return w?b:S||u(x,y)?x:u(b,y)?b:y}).map(h=>parseFloat(h.toFixed(3)))}function m(){if(t<=e+o)return[a.max];if(n==="keepSnaps")return s;const{min:h,max:v}=i;return s.slice(h,v)}return{snapsContained:c,scrollContainLimit:i}}function KC(e,t,r){const n=t[0],o=r?n-e:We(t);return{limit:Ft(o,n)}}function YC(e,t,r,n){const a=t.min+.1,s=t.max+.1,{reachedMin:i,reachedMax:c}=Ft(a,s);function u(m){return m===1?c(r.get()):m===-1?i(r.get()):!1}function f(m){if(!u(m))return;const g=e*(m*-1);n.forEach(h=>h.add(g))}return{loop:f}}function XC(e){const{max:t,length:r}=e;function n(a){const s=a-t;return r?s/-r:0}return{get:n}}function ZC(e,t,r,n,o){const{startEdge:a,endEdge:s}=e,{groupSlides:i}=o,c=p().map(t.measure),u=m(),f=g();function p(){return i(n).map(v=>We(v)[s]-v[0][a]).map(he)}function m(){return n.map(v=>r[a]-v[a]).map(v=>-he(v))}function g(){return i(u).map(v=>v[0]).map((v,x)=>v+c[x])}return{snaps:u,snapsAligned:f}}function JC(e,t,r,n,o,a){const{groupSlides:s}=o,{min:i,max:c}=n,u=f();function f(){const m=s(a),g=!e||t==="keepSnaps";return r.length===1?[a]:g?m:m.slice(i,c).map((h,v,x)=>{const b=!v,y=Rs(x,v);if(b){const w=We(x[0])+1;return ol(w)}if(y){const w=ln(a)-We(x)[0]+1;return ol(w,We(x)[0])}return h})}return{slideRegistry:u}}function QC(e,t,r,n,o){const{reachedAny:a,removeOffset:s,constrain:i}=n;function c(h){return h.concat().sort((v,x)=>he(v)-he(x))[0]}function u(h){const v=e?s(h):i(h),x=t.map((y,w)=>({diff:f(y-v,0),index:w})).sort((y,w)=>he(y.diff)-he(w.diff)),{index:b}=x[0];return{index:b,distance:v}}function f(h,v){const x=[h,h+r,h-r];if(!e)return h;if(!v)return c(x);const b=x.filter(y=>Es(y)===v);return b.length?c(b):We(x)-r}function p(h,v){const x=t[h]-o.get(),b=f(x,v);return{index:h,distance:b}}function m(h,v){const x=o.get()+h,{index:b,distance:y}=u(x),w=!e&&a(x);if(!v||w)return{index:b,distance:h};const S=t[b]-y,R=h+f(S,0);return{index:b,distance:R}}return{byDistance:m,byIndex:p,shortcut:f}}function eS(e,t,r,n,o,a,s){function i(p){const m=p.distance,g=p.index!==t.get();a.add(m),m&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),g&&(r.set(t.get()),t.set(p.index),s.emit("select"))}function c(p,m){const g=o.byDistance(p,m);i(g)}function u(p,m){const g=t.clone().set(p),h=o.byIndex(g.get(),m);i(h)}return{distance:c,index:u}}function tS(e,t,r,n,o,a,s,i){const c={passive:!0,capture:!0};let u=0;function f(g){if(!i)return;function h(v){if(new Date().getTime()-u>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;const y=r.findIndex(w=>w.includes(v));Ss(y)&&(o.useDuration(0),n.index(y,0),s.emit("slideFocus"))}a.add(document,"keydown",p,!1),t.forEach((v,x)=>{a.add(v,"focus",b=>{(Ao(i)||i(g,b))&&h(x)},c)})}function p(g){g.code==="Tab"&&(u=new Date().getTime())}return{init:f}}function Mr(e){let t=e;function r(){return t}function n(c){t=s(c)}function o(c){t+=s(c)}function a(c){t-=s(c)}function s(c){return Ss(c)?c:c.get()}return{get:r,set:n,add:o,subtract:a}}function jf(e,t){const r=e.scroll==="x"?s:i,n=t.style;let o=null,a=!1;function s(m){return`translate3d(${m}px,0px,0px)`}function i(m){return`translate3d(0px,${m}px,0px)`}function c(m){if(a)return;const g=DC(e.direction(m));g!==o&&(n.transform=r(g),o=g)}function u(m){a=!m}function f(){a||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:f,to:c,toggleActive:u}}function rS(e,t,r,n,o,a,s,i,c){const f=qr(o),p=qr(o).reverse(),m=b().concat(y());function g(k,N){return k.reduce((D,B)=>D-o[B],N)}function h(k,N){return k.reduce((D,B)=>g(D,N)>0?D.concat([B]):D,[])}function v(k){return a.map((N,D)=>({start:N-n[D]+.5+k,end:N+t-.5+k}))}function x(k,N,D){const B=v(N);return k.map(W=>{const Z=D?0:-r,J=D?r:0,z=D?"end":"start",M=B[W][z];return{index:W,loopPoint:M,slideLocation:Mr(-1),translate:jf(e,c[W]),target:()=>i.get()>M?Z:J}})}function b(){const k=s[0],N=h(p,k);return x(N,r,!1)}function y(){const k=t-s[0]-1,N=h(f,k);return x(N,-r,!0)}function w(){return m.every(({index:k})=>{const N=f.filter(D=>D!==k);return g(N,t)<=.1})}function S(){m.forEach(k=>{const{target:N,translate:D,slideLocation:B}=k,W=N();W!==B.get()&&(D.to(W),B.set(W))})}function R(){m.forEach(k=>k.translate.clear())}return{canLoop:w,clear:R,loop:S,loopPoints:m}}function nS(e,t,r){let n,o=!1;function a(c){if(!r)return;function u(f){for(const p of f)if(p.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}n=new MutationObserver(f=>{o||(Ao(r)||r(c,f))&&u(f)}),n.observe(e,{childList:!0})}function s(){n&&n.disconnect(),o=!0}return{init:a,destroy:s}}function oS(e,t,r,n){const o={};let a=null,s=null,i,c=!1;function u(){i=new IntersectionObserver(h=>{c||(h.forEach(v=>{const x=t.indexOf(v.target);o[x]=v}),a=null,s=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(h=>i.observe(h))}function f(){i&&i.disconnect(),c=!0}function p(h){return Hr(o).reduce((v,x)=>{const b=parseInt(x),{isIntersecting:y}=o[b];return(h&&y||!h&&!y)&&v.push(b),v},[])}function m(h=!0){if(h&&a)return a;if(!h&&s)return s;const v=p(h);return h&&(a=v),h||(s=v),v}return{init:u,destroy:f,get:m}}function aS(e,t,r,n,o,a){const{measureSize:s,startEdge:i,endEdge:c}=e,u=r[0]&&o,f=h(),p=v(),m=r.map(s),g=x();function h(){if(!u)return 0;const y=r[0];return he(t[i]-y[i])}function v(){if(!u)return 0;const y=a.getComputedStyle(We(n));return parseFloat(y.getPropertyValue(`margin-${c}`))}function x(){return r.map((y,w,S)=>{const R=!w,P=Rs(S,w);return R?m[w]+f:P?m[w]+p:S[w+1][i]-y[i]}).map(he)}return{slideSizes:m,slideSizesWithGaps:g,startGap:f,endGap:p}}function sS(e,t,r,n,o,a,s,i,c){const{startEdge:u,endEdge:f,direction:p}=e,m=Ss(r);function g(b,y){return qr(b).filter(w=>w%y===0).map(w=>b.slice(w,w+y))}function h(b){return b.length?qr(b).reduce((y,w,S)=>{const R=We(y)||0,P=R===0,k=w===ln(b),N=o[u]-a[R][u],D=o[u]-a[w][f],B=!n&&P?p(s):0,W=!n&&k?p(i):0,Z=he(D-W-(N+B));return S&&Z>t+c&&y.push(w),k&&y.push(b.length),y},[]).map((y,w,S)=>{const R=Math.max(S[w-1]||0);return b.slice(R,y)}):[]}function v(b){return m?g(b,r):h(b)}return{groupSlides:v}}function iS(e,t,r,n,o,a,s){const{align:i,axis:c,direction:u,startIndex:f,loop:p,duration:m,dragFree:g,dragThreshold:h,inViewThreshold:v,slidesToScroll:x,skipSnaps:b,containScroll:y,watchResize:w,watchSlides:S,watchDrag:R,watchFocus:P}=a,k=2,N=GC(),D=N.measure(t),B=r.map(N.measure),W=FC(c,u),Z=W.measureSize(D),J=WC(Z),z=$C(i,Z),M=!p&&!!y,_=p||!!y,{slideSizes:$,slideSizesWithGaps:I,startGap:O,endGap:H}=aS(W,D,B,r,_,o),Q=sS(W,Z,x,p,D,B,O,H,k),{snaps:A,snapsAligned:q}=ZC(W,z,D,B,Q),X=-We(A)+We(I),{snapsContained:Y,scrollContainLimit:L}=UC(Z,X,q,y,k),j=M?Y:q,{limit:G}=KC(X,j,p),U=Pf(ln(j),f,p),ne=U.clone(),te=qr(r),F=({dragHandler:at,scrollBody:Sr,scrollBounds:Er,options:{loop:Kt}})=>{Kt||Er.constrain(at.pointerDown()),Sr.seek()},ie=({scrollBody:at,translate:Sr,location:Er,offsetLocation:Kt,previousLocation:Bo,scrollLooper:Go,slideLooper:Wo,dragHandler:zo,animation:Rr,eventHandler:kr,scrollBounds:dt,options:{loop:Yt}},Xt)=>{const Nr=at.settled(),qo=!dt.shouldConstrain(),Pr=Yt?Nr:Nr&&qo,wn=Pr&&!zo.pointerDown();wn&&Rr.stop();const Cn=Er.get()*Xt+Bo.get()*(1-Xt);Kt.set(Cn),Yt&&(Go.loop(at.direction()),Wo.loop()),Sr.to(Kt.get()),wn&&kr.emit("settle"),Pr||kr.emit("scroll")},fe=LC(n,o,()=>F(Ut),at=>ie(Ut,at)),ge=.68,xe=j[U.get()],Ee=Mr(xe),Le=Mr(xe),Re=Mr(xe),ot=Mr(xe),Pt=qC(Ee,Re,Le,ot,m,ge),jt=QC(p,j,X,G,ot),yr=eS(fe,U,ne,Pt,jt,ot,s),bn=XC(G),wr=Ur(),yn=oS(t,r,s,v),{slideRegistry:Cr}=JC(M,y,j,L,Q,te),Vo=tS(e,r,Cr,yr,Pt,wr,s,P),Ut={ownerDocument:n,ownerWindow:o,eventHandler:s,containerRect:D,slideRects:B,animation:fe,axis:W,dragHandler:VC(W,e,n,o,ot,BC(W,o),Ee,fe,yr,Pt,jt,U,s,J,g,h,b,ge,R),eventStore:wr,percentOfView:J,index:U,indexPrevious:ne,limit:G,location:Ee,offsetLocation:Re,previousLocation:Le,options:a,resizeHandler:zC(t,s,o,r,W,w,N),scrollBody:Pt,scrollBounds:HC(G,Re,ot,Pt,J),scrollLooper:YC(X,G,Re,[Ee,Re,Le,ot]),scrollProgress:bn,scrollSnapList:j.map(bn.get),scrollSnaps:j,scrollTarget:jt,scrollTo:yr,slideLooper:rS(W,Z,X,$,I,A,j,Re,r),slideFocus:Vo,slidesHandler:nS(t,s,S),slidesInView:yn,slideIndexes:te,slideRegistry:Cr,slidesToScroll:Q,target:ot,translate:jf(W,t)};return Ut}function lS(){let e={},t;function r(u){t=u}function n(u){return e[u]||[]}function o(u){return n(u).forEach(f=>f(t,u)),c}function a(u,f){return e[u]=n(u).concat([f]),c}function s(u,f){return e[u]=n(u).filter(p=>p!==f),c}function i(){e={}}const c={init:r,emit:o,off:s,on:a,clear:i};return c}const cS={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function uS(e){function t(a,s){return Nf(a,s||{})}function r(a){const s=a.breakpoints||{},i=Hr(s).filter(c=>e.matchMedia(c).matches).map(c=>s[c]).reduce((c,u)=>t(c,u),{});return t(a,i)}function n(a){return a.map(s=>Hr(s.breakpoints||{})).reduce((s,i)=>s.concat(i),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:n}}function dS(e){let t=[];function r(a,s){return t=s.filter(({options:i})=>e.optionsAtMedia(i).active!==!1),t.forEach(i=>i.init(a,e)),s.reduce((i,c)=>Object.assign(i,{[c.name]:c}),{})}function n(){t=t.filter(a=>a.destroy())}return{init:r,destroy:n}}function Xn(e,t,r){const n=e.ownerDocument,o=n.defaultView,a=uS(o),s=dS(a),i=Ur(),c=lS(),{mergeOptions:u,optionsAtMedia:f,optionsMediaQueries:p}=a,{on:m,off:g,emit:h}=c,v=W;let x=!1,b,y=u(cS,Xn.globalOptions),w=u(y),S=[],R,P,k;function N(){const{container:te,slides:F}=w;P=(ja(te)?e.querySelector(te):te)||e.children[0];const fe=ja(F)?P.querySelectorAll(F):F;k=[].slice.call(fe||P.children)}function D(te){const F=iS(e,P,k,n,o,te,c);if(te.loop&&!F.slideLooper.canLoop()){const ie=Object.assign({},te,{loop:!1});return D(ie)}return F}function B(te,F){x||(y=u(y,te),w=f(y),S=F||S,N(),b=D(w),p([y,...S.map(({options:ie})=>ie)]).forEach(ie=>i.add(ie,"change",W)),w.active&&(b.translate.to(b.location.get()),b.animation.init(),b.slidesInView.init(),b.slideFocus.init(ne),b.eventHandler.init(ne),b.resizeHandler.init(ne),b.slidesHandler.init(ne),b.options.loop&&b.slideLooper.loop(),P.offsetParent&&k.length&&b.dragHandler.init(ne),R=s.init(ne,S)))}function W(te,F){const ie=Q();Z(),B(u({startIndex:ie},te),F),c.emit("reInit")}function Z(){b.dragHandler.destroy(),b.eventStore.clear(),b.translate.clear(),b.slideLooper.clear(),b.resizeHandler.destroy(),b.slidesHandler.destroy(),b.slidesInView.destroy(),b.animation.destroy(),s.destroy(),i.clear()}function J(){x||(x=!0,i.clear(),Z(),c.emit("destroy"),c.clear())}function z(te,F,ie){!w.active||x||(b.scrollBody.useBaseFriction().useDuration(F===!0?0:w.duration),b.scrollTo.index(te,ie||0))}function M(te){const F=b.index.add(1).get();z(F,te,-1)}function _(te){const F=b.index.add(-1).get();z(F,te,1)}function $(){return b.index.add(1).get()!==Q()}function I(){return b.index.add(-1).get()!==Q()}function O(){return b.scrollSnapList}function H(){return b.scrollProgress.get(b.offsetLocation.get())}function Q(){return b.index.get()}function A(){return b.indexPrevious.get()}function q(){return b.slidesInView.get()}function X(){return b.slidesInView.get(!1)}function Y(){return R}function L(){return b}function j(){return e}function G(){return P}function U(){return k}const ne={canScrollNext:$,canScrollPrev:I,containerNode:G,internalEngine:L,destroy:J,off:g,on:m,emit:h,plugins:Y,previousScrollSnap:A,reInit:v,rootNode:j,scrollNext:M,scrollPrev:_,scrollProgress:H,scrollSnapList:O,scrollTo:z,selectedScrollSnap:Q,slideNodes:U,slidesInView:q,slidesNotInView:X};return B(t,r),setTimeout(()=>c.emit("init"),0),ne}Xn.globalOptions=void 0;function ks(e={},t=[]){const r=E.useRef(e),n=E.useRef(t),[o,a]=E.useState(),[s,i]=E.useState(),c=E.useCallback(()=>{o&&o.reInit(r.current,n.current)},[o]);return E.useEffect(()=>{Cs(r.current,e)||(r.current=e,c())},[e,c]),E.useEffect(()=>{OC(n.current,t)||(n.current=t,c())},[t,c]),E.useEffect(()=>{if(_C()&&s){Xn.globalOptions=ks.globalOptions;const u=Xn(s,r.current,n.current);return a(u),()=>u.destroy()}else a(void 0)},[s,a]),[i,o]}ks.globalOptions=void 0;const Tf=d.createContext(null),Ns=d.createContext(null);function cn(){const e=d.useContext(Tf);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}function fS({orientation:e="horizontal",opts:t,setApi:r,plugins:n,className:o,children:a,...s}){const[i,c]=ks({...t,axis:e==="horizontal"?"x":"y"},n),[u,f]=d.useState(!1),[p,m]=d.useState(!1),g=d.useCallback(y=>{y&&(f(y.canScrollPrev()),m(y.canScrollNext()))},[]),h=d.useCallback(()=>{c==null||c.scrollPrev()},[c]),v=d.useCallback(()=>{c==null||c.scrollNext()},[c]),x=d.useCallback(y=>{c==null||c.scrollTo(y)},[c]),b=d.useCallback(y=>{y.key==="ArrowLeft"?(y.preventDefault(),h()):y.key==="ArrowRight"&&(y.preventDefault(),v())},[h,v]);return d.useEffect(()=>{!c||!r||r(c)},[c,r]),d.useEffect(()=>{if(c)return g(c),c.on("reInit",g),c.on("select",g),()=>{c==null||c.off("reInit",g),c==null||c.off("select",g)}},[c,g]),l.jsx(Tf.Provider,{value:{carouselRef:i,api:c,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:h,scrollNext:v,scrollTo:x,canScrollPrev:u,canScrollNext:p},children:l.jsx("div",{onKeyDownCapture:b,className:T("qodo qodo-carousel","relative",o),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...s,children:a})})}function pS({className:e,...t}){const{carouselRef:r,orientation:n}=cn();return l.jsx("div",{ref:r,className:"qodo qodo-carousel-content overflow-hidden","data-slot":"carousel-content",children:l.jsx("div",{className:T("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})}function mS({className:e,...t}){const{orientation:r}=cn();return l.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:T("qodo qodo-carousel-item min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})}function gS({className:e,variant:t="outline",size:r="icon",icon:n=tc,screenReaderLabel:o="Previous slide",...a}){var p;const{orientation:s,scrollPrev:i,canScrollPrev:c}=cn(),u=(p=d.useContext(Ns))==null?void 0:p.isInFooter,f=T("qodo qodo-carousel-previous size-8 rounded-md",u?"flex-shrink-0":s==="horizontal"?"absolute top-1/2 -left-12 -translate-y-1/2":"absolute -top-12 left-1/2 -translate-x-1/2 rotate-90",e);return l.jsxs(Be,{"data-slot":"carousel-previous",variant:t,size:r,className:f,disabled:!c,onClick:i,...a,children:[l.jsx(n,{}),l.jsx("span",{className:"sr-only",children:o})]})}function vS({className:e,variant:t="outline",size:r="icon",icon:n=Ga,screenReaderLabel:o="Next slide",...a}){var p;const{orientation:s,scrollNext:i,canScrollNext:c}=cn(),u=(p=d.useContext(Ns))==null?void 0:p.isInFooter,f=T("qodo qodo-carousel-next size-8 rounded-md flex-shrink-0",u?"flex-shrink-0":s==="horizontal"?"absolute top-1/2 -right-12 -translate-y-1/2":"absolute -bottom-12 left-1/2 -translate-x-1/2 rotate-90",e);return l.jsxs(Be,{"data-slot":"carousel-next",variant:t,size:r,className:f,disabled:!c,onClick:i,...a,children:[l.jsx(n,{}),l.jsx("span",{className:"sr-only",children:o})]})}function hS({className:e,...t}){return l.jsx(Ns.Provider,{value:{isInFooter:!0},children:l.jsx("div",{className:T("flex items-center justify-center gap-2 py-2",e),...t})})}function xS({className:e,children:t,index:r,isCurrent:n,...o}){const{scrollTo:a}=cn(),s=T("text-xs uppercase",n?"!text-[var(--color-text-bg-neutral-strong)]":"!text-[var(--color-text-bg-neutral-mild)]",e);return l.jsx(Be,{variant:"ghost",className:s,disabled:n,onClick:()=>a(r),...o,children:t??`Step ${r+1}`})}var bS=e=>e.type==="checkbox",Dr=e=>e instanceof Date,Ps=e=>e==null;const If=e=>typeof e=="object";var Vt=e=>!Ps(e)&&!Array.isArray(e)&&If(e)&&!Dr(e),yS=e=>Vt(e)&&e.target?bS(e.target)?e.target.checked:e.target.value:e,wS=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,CS=(e,t)=>e.has(wS(t)),SS=e=>{const t=e.constructor&&e.constructor.prototype;return Vt(t)&&t.hasOwnProperty("isPrototypeOf")},ES=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Af(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(ES&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(Vt(e)&&SS(e)))return e;const n=r?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=Af(e[o]));return n}var _f=e=>/^\w*$/.test(e),Ia=e=>e===void 0,RS=e=>Array.isArray(e)?e.filter(Boolean):[],Of=e=>RS(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Oe=(e,t,r)=>{if(!t||!Vt(e))return r;const n=(_f(t)?[t]:Of(t)).reduce((o,a)=>Ps(o)?o:o[a],e);return Ia(n)||n===e?Ia(e[t])?r:e[t]:n},la=e=>typeof e=="boolean",An=e=>typeof e=="function",al=(e,t,r)=>{let n=-1;const o=_f(t)?[t]:Of(t),a=o.length,s=a-1;for(;++n<a;){const i=o[n];let c=r;if(n!==s){const u=e[i];c=Vt(u)||Array.isArray(u)?u:isNaN(+o[n+1])?{}:[]}if(i==="__proto__"||i==="constructor"||i==="prototype")return;e[i]=c,e=e[i]}};const sl={BLUR:"blur",CHANGE:"change"},il={all:"all"},js=E.createContext(null);js.displayName="HookFormControlContext";const Ts=()=>E.useContext(js);var kS=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const s=a;return t._proxyFormState[s]!==il.all&&(t._proxyFormState[s]=!n||il.all),r&&(r[s]=!0),e[s]}});return o};const Mf=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Df(e){const t=Ts(),{control:r=t,disabled:n,name:o,exact:a}=e||{},[s,i]=E.useState(r._formState),c=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Mf(()=>r._subscribe({name:o,formState:c.current,exact:a,callback:u=>{!n&&i({...r._formState,...u})}}),[o,n,a]),E.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),E.useMemo(()=>kS(s,r,c.current,!1),[s,r])}var NS=e=>typeof e=="string",ll=(e,t,r,n,o)=>NS(e)?Oe(r,e,o):Array.isArray(e)?e.map(a=>Oe(r,a)):r,cl=e=>Ps(e)||!If(e);function $n(e,t,r=new WeakSet){if(cl(e)||cl(t))return Object.is(e,t);if(Dr(e)&&Dr(t))return Object.is(e.getTime(),t.getTime());const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const s=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const i=t[a];if(Dr(s)&&Dr(i)||Vt(s)&&Vt(i)||Array.isArray(s)&&Array.isArray(i)?!$n(s,i,r):!Object.is(s,i))return!1}}return!0}function PS(e){const t=Ts(),{control:r=t,name:n,defaultValue:o,disabled:a,exact:s,compute:i}=e||{},c=E.useRef(o),u=E.useRef(i),f=E.useRef(void 0),p=E.useRef(r),m=E.useRef(n);u.current=i;const[g,h]=E.useState(()=>{const S=r._getWatch(n,c.current);return u.current?u.current(S):S}),v=E.useCallback(S=>{const R=ll(n,r._names,S||r._formValues,!1,c.current);return u.current?u.current(R):R},[r._formValues,r._names,n]),x=E.useCallback(S=>{if(!a){const R=ll(n,r._names,S||r._formValues,!1,c.current);if(u.current){const P=u.current(R);$n(P,f.current)||(h(P),f.current=P)}else h(R)}},[r._formValues,r._names,a,n]);Mf(()=>((p.current!==r||!$n(m.current,n))&&(p.current=r,m.current=n,x()),r._subscribe({name:n,formState:{values:!0},exact:s,callback:S=>{x(S.values)}})),[r,s,n,x]),E.useEffect(()=>r._removeUnmounted());const b=p.current!==r,y=m.current,w=E.useMemo(()=>{if(a)return null;const S=!b&&!$n(y,n);return b||S?v():null},[a,b,n,y,v]);return w!==null?w:g}function jS(e){const t=Ts(),{name:r,disabled:n,control:o=t,shouldUnregister:a,defaultValue:s,exact:i=!0}=e,c=CS(o._names.array,r),u=E.useMemo(()=>Oe(o._formValues,r,Oe(o._defaultValues,r,s)),[o,r,s]),f=PS({control:o,name:r,defaultValue:u,exact:i}),p=Df({control:o,name:r,exact:i}),m=E.useRef(e),g=E.useRef(void 0),h=E.useRef(o.register(r,{...e.rules,value:f,...la(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const v=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Oe(p.errors,r)},isDirty:{enumerable:!0,get:()=>!!Oe(p.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Oe(p.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Oe(p.validatingFields,r)},error:{enumerable:!0,get:()=>Oe(p.errors,r)}}),[p,r]),x=E.useCallback(S=>h.current.onChange({target:{value:yS(S),name:r},type:sl.CHANGE}),[r]),b=E.useCallback(()=>h.current.onBlur({target:{value:Oe(o._formValues,r),name:r},type:sl.BLUR}),[r,o._formValues]),y=E.useCallback(S=>{const R=Oe(o._fields,r);R&&R._f&&S&&(R._f.ref={focus:()=>An(S.focus)&&S.focus(),select:()=>An(S.select)&&S.select(),setCustomValidity:P=>An(S.setCustomValidity)&&S.setCustomValidity(P),reportValidity:()=>An(S.reportValidity)&&S.reportValidity()})},[o._fields,r]),w=E.useMemo(()=>({name:r,value:f,...la(n)||p.disabled?{disabled:p.disabled||n}:{},onChange:x,onBlur:b,ref:y}),[r,n,p.disabled,x,b,y,f]);return E.useEffect(()=>{const S=o._options.shouldUnregister||a,R=g.current;R&&R!==r&&!c&&o.unregister(R),o.register(r,{...m.current.rules,...la(m.current.disabled)?{disabled:m.current.disabled}:{}});const P=(k,N)=>{const D=Oe(o._fields,k);D&&D._f&&(D._f.mount=N)};if(P(r,!0),S){const k=Af(Oe(o._options.defaultValues,r,m.current.defaultValue));al(o._defaultValues,r,k),Ia(Oe(o._formValues,r))&&al(o._formValues,r,k)}return!c&&o.register(r),g.current=r,()=>{(c?S&&!o._state.action:S)?o.unregister(r):P(r,!1)}},[r,o,c,a]),E.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),E.useMemo(()=>({field:w,formState:p,fieldState:v}),[w,p,v])}const $f=e=>e.render(jS(e)),Is=E.createContext(null);Is.displayName="HookFormContext";const As=()=>E.useContext(Is),TS=e=>{const{children:t,watch:r,getValues:n,getFieldState:o,setError:a,clearErrors:s,setValue:i,trigger:c,formState:u,resetField:f,reset:p,handleSubmit:m,unregister:g,control:h,register:v,setFocus:x,subscribe:b}=e;return E.createElement(Is.Provider,{value:E.useMemo(()=>({watch:r,getValues:n,getFieldState:o,setError:a,clearErrors:s,setValue:i,trigger:c,formState:u,resetField:f,reset:p,handleSubmit:m,unregister:g,control:h,register:v,setFocus:x,subscribe:b}),[s,h,u,o,n,m,v,p,f,a,x,i,b,c,g,r])},E.createElement(js.Provider,{value:h},t))},Lf=E.createContext(void 0),Ff=e=>{const{methods:t,disabled:r,readOnly:n,children:o}=e;return l.jsx(Lf.Provider,{value:{disabled:r,readOnly:n},children:l.jsx(TS,{...t,children:o})})},Vf=()=>{const e=E.useContext(Lf),t=As();if(!e||!t)throw new Error("formContext must be used within a FormProvider");return{...e,...t}},IS=({type:e="button",variant:t="outline",...r})=>{const n=()=>e==="submit"||e==="reset"?"default":t;return l.jsx(Be,{type:e,variant:n(),...r})};var Bf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ul=E.createContext&&E.createContext(Bf),AS=["attr","size","title"];function _S(e,t){if(e==null)return{};var r=OS(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OS(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zn.apply(this,arguments)}function dl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dl(Object(r),!0).forEach(function(n){MS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MS(e,t,r){return t=DS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DS(e){var t=$S(e,"string");return typeof t=="symbol"?t:t+""}function $S(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gf(e){return e&&e.map((t,r)=>E.createElement(t.tag,Jn({key:r},t.attr),Gf(t.child)))}function Wf(e){return t=>E.createElement(LS,Zn({attr:Jn({},e.attr)},t),Gf(e.child))}function LS(e){var t=r=>{var{attr:n,size:o,title:a}=e,s=_S(e,AS),i=o||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),E.createElement("svg",Zn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:c,style:Jn(Jn({color:e.color||r.color},r.style),e.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),a&&E.createElement("title",null,a),e.children)};return ul!==void 0?E.createElement(ul.Consumer,null,r=>t(r)):t(Bf)}function FS(e){return Wf({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Circle_Info"},child:[{tag:"g",attr:{},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M11.5,15a.5.5,0,0,0,1,0h0V10.981a.5.5,0,0,0-1,0Z"},child:[]},{tag:"circle",attr:{cx:"12",cy:"8.999",r:"0.5"},child:[]}]},{tag:"path",attr:{d:"M12,2.065A9.934,9.934,0,1,1,2.066,12,9.945,9.945,0,0,1,12,2.065Zm0,18.867A8.934,8.934,0,1,0,3.066,12,8.944,8.944,0,0,0,12,20.932Z"},child:[]}]}]}]})(e)}var VS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],BS=VS.reduce((e,t)=>{const r=cs(`Primitive.${t}`),n=d.forwardRef((o,a)=>{const{asChild:s,...i}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...i,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),GS="Label",zf=d.forwardRef((e,t)=>l.jsx(BS.label,{...e,ref:t,onMouseDown:r=>{var o;r.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));zf.displayName=GS;var WS=zf;function _s({className:e,...t}){return l.jsx(WS,{"data-slot":"label",className:T("qodo qodo-label flex items-center text-purple-muted-300 gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const qf=d.createContext({}),zS=({...e})=>l.jsx(qf.Provider,{value:{name:e.name},children:l.jsx($f,{...e})}),_o=()=>{const e=d.useContext(qf),t=d.useContext(Hf),{getFieldState:r}=As(),n=Df({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Hf=d.createContext({});function qS({className:e,...t}){const r=d.useId();return l.jsx(Hf.Provider,{value:{id:r},children:l.jsx("div",{"data-slot":"form-item",className:T("qodo qodo-form-item grid gap-2",e),...t})})}function HS({className:e,...t}){const{formItemId:r}=_o();return l.jsx(_s,{"data-slot":"form-label",className:T("data-[error=true]:text-destructive font-[400] uppercase font-mono text-xs leading-[1.4] text-[var(--text-bg-neutral-mid)] [&_span]:text-[var(--text-bg-neutral-mid)]",e),htmlFor:r,...t})}function US({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=_o();return l.jsx(s0,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function KS({className:e,...t}){const{formDescriptionId:r}=_o();return l.jsx("p",{"data-slot":"form-description",id:r,className:T("text-purple-muted-300 text-sm",e),...t})}function YS({className:e,...t}){const{error:r,formMessageId:n}=_o(),o=r?String((r==null?void 0:r.message)??""):t.children;return o?l.jsx("p",{"data-slot":"form-message",id:n,className:T("text-destructive text-sm",e),role:"alert",...t,children:o}):null}var XS=Symbol("radix.slottable");function ZS(e){const t=({children:r})=>l.jsx(l.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=XS,t}var[Oo]=Pe("Tooltip",[bt]),Mo=bt(),Uf="TooltipProvider",JS=700,Aa="tooltip.open",[QS,Os]=Oo(Uf),Kf=e=>{const{__scopeTooltip:t,delayDuration:r=JS,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,s=d.useRef(!0),i=d.useRef(!1),c=d.useRef(0);return d.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),l.jsx(QS,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:d.useCallback(()=>{window.clearTimeout(c.current),s.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.current=!0,n)},[n]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:a})};Kf.displayName=Uf;var Kr="Tooltip",[e1,un]=Oo(Kr),Yf=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:i}=e,c=Os(Kr,e.__scopeTooltip),u=Mo(t),[f,p]=d.useState(null),m=be(),g=d.useRef(0),h=s??c.disableHoverableContent,v=i??c.delayDuration,x=d.useRef(!1),[b,y]=ke({prop:n,defaultProp:o??!1,onChange:k=>{k?(c.onOpen(),document.dispatchEvent(new CustomEvent(Aa))):c.onClose(),a==null||a(k)},caller:Kr}),w=d.useMemo(()=>b?x.current?"delayed-open":"instant-open":"closed",[b]),S=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x.current=!1,y(!0)},[y]),R=d.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y(!1)},[y]),P=d.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,y(!0),g.current=0},v)},[v,y]);return d.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),l.jsx(tn,{...u,children:l.jsx(e1,{scope:t,contentId:m,open:b,stateAttribute:w,trigger:f,onTriggerChange:p,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayedRef.current?P():S()},[c.isOpenDelayedRef,P,S]),onTriggerLeave:d.useCallback(()=>{h?R():(window.clearTimeout(g.current),g.current=0)},[R,h]),onOpen:S,onClose:R,disableHoverableContent:h,children:r})})};Yf.displayName=Kr;var _a="TooltipTrigger",Xf=d.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=un(_a,r),a=Os(_a,r),s=Mo(r),i=d.useRef(null),c=le(t,i,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),p=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),l.jsx(rn,{asChild:!0,...s,children:l.jsx(re.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:K(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:K(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:K(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:K(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:K(e.onBlur,o.onClose),onClick:K(e.onClick,o.onClose)})})});Xf.displayName=_a;var Ms="TooltipPortal",[t1,r1]=Oo(Ms,{forceMount:void 0}),Zf=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=un(Ms,t);return l.jsx(t1,{scope:t,forceMount:r,children:l.jsx(je,{present:r||a.open,children:l.jsx(xr,{asChild:!0,container:o,children:n})})})};Zf.displayName=Ms;var dr="TooltipContent",Jf=d.forwardRef((e,t)=>{const r=r1(dr,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,s=un(dr,e.__scopeTooltip);return l.jsx(je,{present:n||s.open,children:s.disableHoverableContent?l.jsx(Qf,{side:o,...a,ref:t}):l.jsx(n1,{side:o,...a,ref:t})})}),n1=d.forwardRef((e,t)=>{const r=un(dr,e.__scopeTooltip),n=Os(dr,e.__scopeTooltip),o=d.useRef(null),a=le(t,o),[s,i]=d.useState(null),{trigger:c,onClose:u}=r,f=o.current,{onPointerInTransitChange:p}=n,m=d.useCallback(()=>{i(null),p(!1)},[p]),g=d.useCallback((h,v)=>{const x=h.currentTarget,b={x:h.clientX,y:h.clientY},y=i1(b,x.getBoundingClientRect()),w=l1(b,y),S=c1(v.getBoundingClientRect()),R=d1([...w,...S]);i(R),p(!0)},[p]);return d.useEffect(()=>()=>m(),[m]),d.useEffect(()=>{if(c&&f){const h=x=>g(x,f),v=x=>g(x,c);return c.addEventListener("pointerleave",h),f.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",h),f.removeEventListener("pointerleave",v)}}},[c,f,g,m]),d.useEffect(()=>{if(s){const h=v=>{const x=v.target,b={x:v.clientX,y:v.clientY},y=(c==null?void 0:c.contains(x))||(f==null?void 0:f.contains(x)),w=!u1(b,s);y?m():w&&(m(),u())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[c,f,s,u,m]),l.jsx(Qf,{...e,ref:a})}),[o1,a1]=Oo(Kr,{isInside:!1}),s1=ZS("TooltipContent"),Qf=d.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...i}=e,c=un(dr,r),u=Mo(r),{onClose:f}=c;return d.useEffect(()=>(document.addEventListener(Aa,f),()=>document.removeEventListener(Aa,f)),[f]),d.useEffect(()=>{if(c.trigger){const p=m=>{const g=m.target;g!=null&&g.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),l.jsx(gr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:l.jsxs(mo,{"data-state":c.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(s1,{children:n}),l.jsx(o1,{scope:r,isInside:!0,children:l.jsx(vb,{id:c.contentId,role:"tooltip",children:o||n})})]})})});Jf.displayName=dr;var ep="TooltipArrow",tp=d.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Mo(r);return a1(ep,r).isInside?null:l.jsx(go,{...o,...n,ref:t})});tp.displayName=ep;function i1(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function l1(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function c1(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function u1(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],c=t[s],u=i.x,f=i.y,p=c.x,m=c.y;f>n!=m>n&&r<(p-u)*(n-f)/(m-f)+u&&(o=!o)}return o}function d1(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),f1(t)}function f1(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],s=r[r.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var p1=Kf,m1=Yf,g1=Xf,v1=Zf,h1=Jf,x1=tp;function rp({delayDuration:e=0,...t}){return l.jsx(p1,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function np({...e}){return l.jsx(rp,{children:l.jsx(m1,{"data-slot":"tooltip",...e})})}function op({...e}){return l.jsx(g1,{"data-slot":"tooltip-trigger",...e})}function ap({className:e,sideOffset:t=0,children:r,disableArrow:n=!1,...o}){return l.jsx(v1,{children:l.jsxs(h1,{"data-slot":"tooltip-content",sideOffset:t,className:T("qodo qodo-tooltip-content bg-purple-muted-700 border border-purple-muted-600 text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e,{"py-2.5":n}),...o,children:[r,!n&&l.jsx(x1,{className:"bg-purple-muted-700 fill-purple-muted-700 z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const zt=e=>t=>{const{name:r,label:n,description:o,tooltip:a,required:s=!1,...i}=t,{control:c,disabled:u,readOnly:f}=Vf(),p=()=>a?l.jsxs(np,{children:[l.jsx(op,{asChild:!0,children:l.jsx("span",{children:l.jsx(FS,{size:16})})}),l.jsx(ap,{children:l.jsx("p",{children:a})})]}):l.jsx(l.Fragment,{}),m=()=>o?l.jsx(KS,{children:o}):l.jsx(l.Fragment,{});return l.jsx(zS,{control:c,name:r,render:({field:g,fieldState:h})=>l.jsxs(qS,{className:"flex flex-col gap-1.5",children:[n&&l.jsx(HS,{children:l.jsxs("span",{className:"flex items-center gap-1",children:[n,s&&l.jsx("span",{className:"text-purple-muted-300",children:"*"}),!!a&&p()]})}),l.jsx(US,{children:l.jsx(e,{...g,disabled:u,...i,readOnly:f,error:!!h.error})}),!!o&&m(),l.jsx(YS,{})]})})},b1=E.forwardRef((e,t)=>l.jsx(Jr,{...e,ref:t})),y1=E.forwardRef((e,t)=>zt(b1)({...e,ref:t})),w1=E.forwardRef((e,t)=>{const{options:r=[],onChange:n=()=>{},searchPlaceholder:o,onSearchChange:a,...s}=e,i=c=>{n({target:{value:c}})};return l.jsx(ls,{ref:t,options:r,onValueChange:i,searchPlaceholder:o,onSearchChange:a,...s})}),C1=zt(w1);var Ds="Radio",[S1,sp]=Pe(Ds),[E1,R1]=S1(Ds),ip=d.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:s,value:i="on",onCheck:c,form:u,...f}=e,[p,m]=d.useState(null),g=le(t,x=>m(x)),h=d.useRef(!1),v=p?u||!!p.closest("form"):!0;return l.jsxs(E1,{scope:r,checked:o,disabled:s,children:[l.jsx(re.button,{type:"button",role:"radio","aria-checked":o,"data-state":dp(o),"data-disabled":s?"":void 0,disabled:s,value:i,...f,ref:g,onClick:K(e.onClick,x=>{o||c==null||c(),v&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})}),v&&l.jsx(up,{control:p,bubbles:!h.current,name:n,value:i,checked:o,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});ip.displayName=Ds;var lp="RadioIndicator",cp=d.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=R1(lp,r);return l.jsx(je,{present:n||a.checked,children:l.jsx(re.span,{"data-state":dp(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});cp.displayName=lp;var k1="RadioBubbleInput",up=d.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const s=d.useRef(null),i=le(s,a),c=vo(r),u=po(t);return d.useEffect(()=>{const f=s.current;if(!f)return;const p=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&g){const h=new Event("click",{bubbles:n});g.call(f,r),f.dispatchEvent(h)}},[c,r,n]),l.jsx(re.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:i,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});up.displayName=k1;function dp(e){return e?"checked":"unchecked"}var N1=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Do="RadioGroup",[P1]=Pe(Do,[St,sp]),fp=St(),pp=sp(),[j1,T1]=P1(Do),mp=d.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:s=!1,disabled:i=!1,orientation:c,dir:u,loop:f=!0,onValueChange:p,...m}=e,g=fp(r),h=Gt(u),[v,x]=ke({prop:a,defaultProp:o??null,onChange:p,caller:Do});return l.jsx(j1,{scope:r,name:n,required:s,disabled:i,value:v,onValueChange:x,children:l.jsx(ko,{asChild:!0,...g,orientation:c,dir:h,loop:f,children:l.jsx(re.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":i?"":void 0,dir:h,...m,ref:t})})})});mp.displayName=Do;var gp="RadioGroupItem",vp=d.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=T1(gp,r),s=a.disabled||n,i=fp(r),c=pp(r),u=d.useRef(null),f=le(t,u),p=a.value===o.value,m=d.useRef(!1);return d.useEffect(()=>{const g=v=>{N1.includes(v.key)&&(m.current=!0)},h=()=>m.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",h),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",h)}},[]),l.jsx(No,{asChild:!0,...i,focusable:!s,active:p,children:l.jsx(ip,{disabled:s,required:a.required,checked:p,...c,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:K(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:K(o.onFocus,()=>{var g;m.current&&((g=u.current)==null||g.click())})})})});vp.displayName=gp;var I1="RadioGroupIndicator",hp=d.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=pp(r);return l.jsx(cp,{...o,...n,ref:t})});hp.displayName=I1;var A1=mp,_1=vp,O1=hp;function M1({className:e,...t}){const{readOnly:r,...n}=t;return l.jsx(A1,{"data-slot":"radio-group","data-readonly":r||void 0,disabled:n.disabled||r,className:T("qodo qodo-radio-group grid gap-3 group",e),...n})}function D1({className:e,...t}){return l.jsx(_1,{"data-slot":"radio-group-item",className:T("qodo qodo-radio-group-item cursor-pointer border-[var(--border-input-neutral-idle)] bg-[var(--fill-input-neutral-idle)] focus-visible:border-ring focus-visible:ring-ring/50","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive","aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px]","aria-checked:border-[var(--border-input-emphasis-active)] hover:aria-checked:border-[var(--border-input-emphasis-active)]","group-data-[readonly]:opacity-100 group-data-[readonly]:cursor-default","data-disabled:cursor-not-allowed data-disabled:opacity-50","aria-disabled:cursor-not-allowed aria-disabled:opacity-50","mt-[2px] mr-0",e),...t,children:l.jsx(O1,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:l.jsx(Bv,{className:"stroke-transparent fill-[var(--icon-input-emphasis-active)] absolute top-1/2 left-1/2 size-3 -translate-x-1/2 -translate-y-1/2"})})})}const $s=E.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o,disabled:a=!1,readOnly:s=!1,className:i,direction:c="horizontal",dir:u="ltr",name:f,onChange:p,...m}=e,g=v=>{s||(p==null||p({target:{value:v}}),o==null||o(v))},h=T("qodo qodo-custom-radio-group","flex",{"flex-row gap-6":c==="horizontal","flex-col gap-3":c==="vertical"},i);return l.jsx(M1,{name:f,ref:t,value:r,defaultValue:n,onValueChange:g,disabled:a||s,readOnly:s,className:h,dir:u,...m})});$s.displayName="BaseRadioGroupComponent";const Ls=({label:e,description:t,disabled:r=!1,labelClassName:n,descriptionClassName:o,labelWrapperClassName:a})=>l.jsxs("div",{className:T("flex flex-col gap-2",a),children:[e&&l.jsx("div",{className:T("text-[var(--text-bg-neutral-mid)] font-normal text-sm","group-has-[button:disabled]/radio-item:opacity-70","group-has-[button:disabled]/checkbox-item:opacity-70",{"opacity-70":r},n),children:e}),t&&l.jsx("div",{className:T("text-sm text-[var(--text-bg-neutral-mild)] font-normal",o),children:t})]});Ls.displayName="LabelWithDescription";const Fs=({value:e="",disabled:t,error:r,name:n="radio",label:o,description:a,wrapperClassName:s,labelClassName:i,descriptionClassName:c,labelWrapperClassName:u})=>{const f=`${n}-${e}`;return l.jsxs(_s,{htmlFor:f,className:T("group/radio-item flex items-start p-4 rounded-lg gap-2 transition-all duration-200","font-normal leading-5 cursor-pointer","has-[button:disabled]:cursor-not-allowed has-[button:disabled]:hover:bg-transparent",{"cursor-pointer":!t,"!cursor-not-allowed hover:!bg-transparent":t,"border border-destructive":r},s),children:[l.jsx(D1,{value:e,id:f,disabled:t||r}),l.jsx(Ls,{label:o,description:a,disabled:t,labelClassName:i,descriptionClassName:c,labelWrapperClassName:u})]},e)};Fs.displayName="RadioGroupItemComponent";const $1=zt($s),L1=e=>l.jsx("hr",{className:"w-full h-px border-[var(--base-sidebar-border)]",...e}),F1=({children:e,description:t,className:r})=>l.jsxs("div",{className:T("space-y-1",r),children:[l.jsx("h2",{className:"flex items-center gap-2.5 text-2xl text-white",children:e}),t&&l.jsx("span",{className:"text-sm text-purple-muted-300",children:t})]}),xp=E.forwardRef(({direction:e="horizontal",className:t,...r},n)=>{const o=T("flex flex-row gap-6",{"flex-col":e==="vertical"},t);return l.jsx("div",{ref:n,className:o,...r})});xp.displayName="FormGroup";function V1({className:e,rows:t,...r}){return l.jsx("textarea",{"data-slot":"textarea",rows:t,className:T("qodo qodo-textarea border-input px-3 py-2 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20","dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-[var(--fill-input-neutral-idle)] flex min-h-16 w-full rounded-md border bg-transparent","border-[var(--border-interactive-neutral-idle)] shadow-none","placeholder:text-purple-muted-400 text-purple-muted-300 outline-none focus-visible:ring-0 selection:bg-primary selection:text-primary-foreground disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-purple-muted-700 disabled:border-purple-muted-500 disabled:text-purple-muted-400 read-only:bg-purple-muted-700 read-only:border-purple-muted-400 read-only:cursor-default read-only:text-purple-muted-200 md:text-sm",{"field-sizing-content":!t},e),...r})}const B1=E.forwardRef(({variant:e="default",className:t,...r},n)=>{const o=zt(V1);return l.jsx(o,{...r,ref:n,className:T({"font-plex-mono text-sm leading-[1.4] rounded dark:bg-fill-input-neutral-idle px-3 py-2 [&[readonly]]:text-[var(--text-input-neutral-placeholder)] [&[readonly]]:border [&[readonly]]:border-[var(--border-input-neutral-idle)] [&[readonly]]:bg-[var(--fill-input-neutral-idle)]":e==="code"},t)})}),bp=({label:e,id:t,onRemoveTag:r,disabled:n,className:o,variant:a="default"})=>l.jsxs(Lt,{variant:a,disabled:n,size:"sm",className:T("flex items-center gap-1 px-2 py-0.5","font-normal whitespace-nowrap",o),children:[e,r&&l.jsx(Be,{type:"button",variant:"ghost",size:"icon",className:"p-0 w-[10px] h-[10px] text-inherit disabled:text-inherit",onClick:s=>{s.stopPropagation(),r==null||r(t)},"aria-label":`Remove ${e}`,disabled:n,children:l.jsx(ao,{className:"w-[10px] h-[10px]"})})]}),G1=({label:e,id:t,onClick:r,onDeleteSuggestion:n,deleteText:o,className:a,tagClassName:s,tagVariant:i})=>l.jsx("div",{onClick:r,className:T("bg-transparent hover:bg-purple-muted-800 rounded-sm py-1 px-2",a),children:l.jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[l.jsx(bp,{label:e,id:t,className:s,variant:i}),n&&l.jsx(Be,{type:"button",variant:"ghost",className:"p-0 text-xs font-normal h-[10px]",onMouseDown:c=>c.preventDefault(),onClick:c=>{c.stopPropagation(),n==null||n(t)},"aria-label":`${o} ${e}`,children:o||l.jsx(rh,{className:"h-4 w-4"})})]})}),ca={BACKSPACE:"Backspace",ESCAPE:"Escape",ENTER:"Enter"},W1=e=>{if(!e)return"";let t=e.toLowerCase();return t=t.replace(/[_\s]+/g,"-"),t=t.replace(/[^a-z0-9-]/g,""),t=t.replace(/-+/g,"-"),t=t.replace(/^-|-$/g,""),t},yp=({value:e=[],variant:t="default",placeholder:r="Type to add a tag...",deleteText:n="Delete",suggestions:o=[],allowCreate:a=!0,maxTags:s=100,disabled:i=!1,className:c,suggestionWrapperClassName:u,suggestionClassName:f,tagClassName:p,tagInputIcon:m,onDeleteSuggestion:g,onBlur:h,normalizeTags:v=W1,onChange:x=()=>{},onAddTag:b=()=>{},onRemoveTag:y=()=>{},onResetTags:w=()=>{}})=>{const[S,R]=E.useState(""),[P,k]=E.useState(!1),N=E.useRef(null),D=E.useRef(null),B=E.useRef(null),[W,Z]=E.useState();E.useEffect(()=>{D.current&&Z(D.current.offsetWidth)},[]);const J=e.length>=s,z=L=>{if(J||e.some(G=>G.id===L.id))return;const j=[...e,L];x(j),b(L)},M=L=>{const j=e.filter(G=>G.id!==L);x(j),y(L)},_=()=>{x==null||x([]),w()},$=L=>{const j=L.target.value;R(j),k(!0)},I=()=>{const L=S.trim().toLowerCase();if(!L)return[];const j=new Set(e.map(G=>G.id));return o.filter(G=>G.label.toLowerCase().includes(L)&&!j.has(G.id))},O=L=>v?v(L):L,H=()=>{const L=S.trim();if(!L)return;const j=O(L);if(!j)return;if(e.some(U=>U.id===j)){R(""),k(!1);return}const G=o.find(U=>U.id===j||O(U.label)===j);G?z(G):a&&z({id:j,label:j}),R(""),k(!1)},Q=L=>{const j=L.key===ca.BACKSPACE&&!S&&e.length>0,G=L.key===ca.ENTER&&S,U=L.key===ca.ESCAPE;G?(L.preventDefault(),H(),B.current&&(B.current.scrollLeft=B.current.scrollWidth)):j?M(e[e.length-1].id):U&&k(!1)},A=()=>{if(S&&I().length>0)return l.jsx(is,{className:"p-0 border-transparent bg-[var(--fill-interactive-neutral-idle)] gap-2",align:"start",style:{width:W??void 0},onOpenAutoFocus:L=>L.preventDefault(),onCloseAutoFocus:L=>L.preventDefault(),onMouseDown:L=>L.preventDefault(),children:l.jsx("div",{className:T("max-h-[200px] overflow-y-auto flex flex-col gap-1 p-1",u),children:I().map(L=>l.jsx(G1,{label:L.label,id:L.id,onDeleteSuggestion:g,deleteText:n,className:f,tagClassName:p,tagVariant:t,onClick:()=>{var j;z(L),R(""),k(!1),(j=N.current)==null||j.focus()}},L.id))})})},q=()=>m||l.jsx(eh,{className:"h-4 w-4 stroke-[var(--icon-bg-neutral-mild)]"}),X=()=>e.map(L=>l.jsx(bp,{label:L.label,id:L.id,onRemoveTag:M,disabled:i,className:p,variant:t},L.id)),Y=()=>e.length===0?l.jsx(l.Fragment,{}):l.jsx(ao,{className:"h-4 w-4 hover:cursor-pointer stroke-[var(--icon-input-neutral-idle)] hover:stroke-[var(--icon-input-neutral-hover)]",onClick:_});return l.jsx("div",{className:T("w-full",c),children:l.jsxs(as,{open:P&&!i,onOpenChange:k,modal:!1,children:[l.jsx(ss,{className:"w-full",children:l.jsxs("div",{ref:D,tabIndex:-1,className:T("flex items-center gap-2 border border-[var(--border-tag-neutral-idle)] bg-purple-muted-800 py-0.5 px-3 rounded-md scrollbar-thin",{"opacity-60":i}),onClick:L=>{var j;L.stopPropagation(),k(!0),(j=N.current)==null||j.focus()},children:[q(),l.jsxs("div",{ref:B,className:"flex items-center gap-2 w-full whitespace-normal overflow-x-auto",children:[X(),l.jsx(Jr,{ref:N,value:S,onChange:$,onClick:L=>L.stopPropagation(),onFocus:()=>k(!0),onBlur:h,onKeyDown:Q,placeholder:r,disabled:i||J,className:T("m-0 h-6.5 flex-1 min-w-[6rem] border-0 bg-transparent dark:bg-transparent p-0 shadow-none focus-visible:outline-none focus-visible:ring-0 font-normal text-xs","placeholder:text-[var(--text-input-neutral-placeholder)] dark:placeholder:text-[var(--text-input-neutral-placeholder)] placeholder:text-xs")})]}),Y()]})}),A()]})})};function z1(e){const{control:t}=As();return l.jsx($f,{name:e.name,control:t,render:({field:r})=>l.jsx(yp,{...e,value:r.value,onChange:r.onChange,onBlur:r.onBlur})})}const q1=zt(z1),H1=12,fl={SINGLE:"single",MULTIPLE:"multiple"},pl={LTR:"ltr"},ml={GHOST:"ghost"};var wp=typeof global=="object"&&global&&global.Object===Object&&global,U1=typeof self=="object"&&self&&self.Object===Object&&self,Rt=wp||U1||Function("return this")(),Qn=Rt.Symbol,Cp=Object.prototype,K1=Cp.hasOwnProperty,Y1=Cp.toString,_r=Qn?Qn.toStringTag:void 0;function X1(e){var t=K1.call(e,_r),r=e[_r];try{e[_r]=void 0;var n=!0}catch{}var o=Y1.call(e);return n&&(t?e[_r]=r:delete e[_r]),o}var Z1=Object.prototype,J1=Z1.toString;function Q1(e){return J1.call(e)}var eE="[object Null]",tE="[object Undefined]",gl=Qn?Qn.toStringTag:void 0;function dn(e){return e==null?e===void 0?tE:eE:gl&&gl in Object(e)?X1(e):Q1(e)}function Vs(e){return e!=null&&typeof e=="object"}var rE=Array.isArray;function Sp(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var nE="[object AsyncFunction]",oE="[object Function]",aE="[object GeneratorFunction]",sE="[object Proxy]";function Ep(e){if(!Sp(e))return!1;var t=dn(e);return t==oE||t==aE||t==nE||t==sE}var ua=Rt["__core-js_shared__"],vl=(function(){var e=/[^.]+$/.exec(ua&&ua.keys&&ua.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function iE(e){return!!vl&&vl in e}var lE=Function.prototype,cE=lE.toString;function qt(e){if(e!=null){try{return cE.call(e)}catch{}try{return e+""}catch{}}return""}var uE=/[\\^$.*+?()[\]{}|]/g,dE=/^\[object .+?Constructor\]$/,fE=Function.prototype,pE=Object.prototype,mE=fE.toString,gE=pE.hasOwnProperty,vE=RegExp("^"+mE.call(gE).replace(uE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hE(e){if(!Sp(e)||iE(e))return!1;var t=Ep(e)?vE:dE;return t.test(qt(e))}function xE(e,t){return e==null?void 0:e[t]}function fn(e,t){var r=xE(e,t);return hE(r)?r:void 0}var Oa=fn(Rt,"WeakMap"),bE=9007199254740991;function Rp(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bE}function yE(e){return e!=null&&Rp(e.length)&&!Ep(e)}var wE=Object.prototype;function kp(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||wE;return e===r}var CE="[object Arguments]";function hl(e){return Vs(e)&&dn(e)==CE}var Np=Object.prototype,SE=Np.hasOwnProperty,EE=Np.propertyIsEnumerable,RE=hl((function(){return arguments})())?hl:function(e){return Vs(e)&&SE.call(e,"callee")&&!EE.call(e,"callee")};function kE(){return!1}var Pp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xl=Pp&&typeof module=="object"&&module&&!module.nodeType&&module,NE=xl&&xl.exports===Pp,bl=NE?Rt.Buffer:void 0,PE=bl?bl.isBuffer:void 0,jE=PE||kE,TE="[object Arguments]",IE="[object Array]",AE="[object Boolean]",_E="[object Date]",OE="[object Error]",ME="[object Function]",DE="[object Map]",$E="[object Number]",LE="[object Object]",FE="[object RegExp]",VE="[object Set]",BE="[object String]",GE="[object WeakMap]",WE="[object ArrayBuffer]",zE="[object DataView]",qE="[object Float32Array]",HE="[object Float64Array]",UE="[object Int8Array]",KE="[object Int16Array]",YE="[object Int32Array]",XE="[object Uint8Array]",ZE="[object Uint8ClampedArray]",JE="[object Uint16Array]",QE="[object Uint32Array]",ve={};ve[qE]=ve[HE]=ve[UE]=ve[KE]=ve[YE]=ve[XE]=ve[ZE]=ve[JE]=ve[QE]=!0;ve[TE]=ve[IE]=ve[WE]=ve[AE]=ve[zE]=ve[_E]=ve[OE]=ve[ME]=ve[DE]=ve[$E]=ve[LE]=ve[FE]=ve[VE]=ve[BE]=ve[GE]=!1;function eR(e){return Vs(e)&&Rp(e.length)&&!!ve[dn(e)]}function tR(e){return function(t){return e(t)}}var jp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gr=jp&&typeof module=="object"&&module&&!module.nodeType&&module,rR=Gr&&Gr.exports===jp,da=rR&&wp.process,yl=(function(){try{var e=Gr&&Gr.require&&Gr.require("util").types;return e||da&&da.binding&&da.binding("util")}catch{}})(),wl=yl&&yl.isTypedArray,nR=wl?tR(wl):eR;function oR(e,t){return function(r){return e(t(r))}}var aR=oR(Object.keys,Object),sR=Object.prototype,iR=sR.hasOwnProperty;function lR(e){if(!kp(e))return aR(e);var t=[];for(var r in Object(e))iR.call(e,r)&&r!="constructor"&&t.push(r);return t}var Ma=fn(Rt,"Map"),Da=fn(Rt,"DataView"),$a=fn(Rt,"Promise"),La=fn(Rt,"Set"),Cl="[object Map]",cR="[object Object]",Sl="[object Promise]",El="[object Set]",Rl="[object WeakMap]",kl="[object DataView]",uR=qt(Da),dR=qt(Ma),fR=qt($a),pR=qt(La),mR=qt(Oa),At=dn;(Da&&At(new Da(new ArrayBuffer(1)))!=kl||Ma&&At(new Ma)!=Cl||$a&&At($a.resolve())!=Sl||La&&At(new La)!=El||Oa&&At(new Oa)!=Rl)&&(At=function(e){var t=dn(e),r=t==cR?e.constructor:void 0,n=r?qt(r):"";if(n)switch(n){case uR:return kl;case dR:return Cl;case fR:return Sl;case pR:return El;case mR:return Rl}return t});var gR="[object Map]",vR="[object Set]",hR=Object.prototype,xR=hR.hasOwnProperty;function pn(e){if(e==null)return!0;if(yE(e)&&(rE(e)||typeof e=="string"||typeof e.splice=="function"||jE(e)||nR(e)||RE(e)))return!e.length;var t=At(e);if(t==gR||t==vR)return!e.size;if(kp(e))return!lR(e).length;for(var r in e)if(xR.call(e,r))return!1;return!0}function Bs(e){return!e.children||e.children.length===0?[e.value]:e.children.flatMap(t=>Bs(t))}function Gs(e){const t=[e.value];return e.children&&e.children.forEach(r=>{t.push(...Gs(r))}),t}function Ws(e,t){return pn(e.children)?!1:Bs(e).every(n=>t.has(n))}function Tp(e,t){for(const r of e){if(r.value===t)return r;if(r.children){const n=Tp(r.children,t);if(n)return n}}return null}function zs(e,t){const r=new Map;for(const n of e){const o=t(n);o&&r.set(o[0],o[1]),n.children&&zs(n.children,t).forEach((s,i)=>r.set(i,s))}return r}function Ip(e,t){e.forEach(r=>{pn(r.children)||(Ws(r,t)?t.add(r.value):t.delete(r.value),r.children&&Ip(r.children,t))})}const bR=e=>e?Array.isArray(e)?e:[e]:[],yR=e=>zs(e,t=>[t.value,t.label]),wR=e=>zs(e,t=>t.icon?[t.value,t.icon]:null);function CR(e,t){Gs(e).forEach(n=>t.delete(n))}function SR(e,t){Gs(e).forEach(n=>t.add(n))}function Ap(e,t){const r=new Set(t);return e.flatMap(n=>!pn(n.children)&&n.children?Ws(n,r)?[n.value]:Ap(n.children,t):r.has(n.value)?[n.value]:[])}function ER(e){return e&&e>=1?e*H1:0}var $o="Checkbox",[RR]=Pe($o),[kR,qs]=RR($o);function NR(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:a,form:s,name:i,onCheckedChange:c,required:u,value:f="on",internal_do_not_use_render:p}=e,[m,g]=ke({prop:r,defaultProp:o??!1,onChange:c,caller:$o}),[h,v]=d.useState(null),[x,b]=d.useState(null),y=d.useRef(!1),w=h?!!s||!!h.closest("form"):!0,S={checked:m,disabled:a,setChecked:g,control:h,setControl:v,name:i,form:s,value:f,hasConsumerStoppedPropagationRef:y,required:u,defaultChecked:gt(o)?!1:o,isFormControl:w,bubbleInput:x,setBubbleInput:b};return l.jsx(kR,{scope:t,...S,children:PR(p)?p(S):n})}var _p="CheckboxTrigger",Op=d.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:a,value:s,disabled:i,checked:c,required:u,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:m,isFormControl:g,bubbleInput:h}=qs(_p,e),v=le(o,f),x=d.useRef(c);return d.useEffect(()=>{const b=a==null?void 0:a.form;if(b){const y=()=>p(x.current);return b.addEventListener("reset",y),()=>b.removeEventListener("reset",y)}},[a,p]),l.jsx(re.button,{type:"button",role:"checkbox","aria-checked":gt(c)?"mixed":c,"aria-required":u,"data-state":Fp(c),"data-disabled":i?"":void 0,disabled:i,value:s,...n,ref:v,onKeyDown:K(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:K(r,b=>{p(y=>gt(y)?!0:!y),h&&g&&(m.current=b.isPropagationStopped(),m.current||b.stopPropagation())})})});Op.displayName=_p;var Hs=d.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:s,disabled:i,value:c,onCheckedChange:u,form:f,...p}=e;return l.jsx(NR,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:i,required:s,onCheckedChange:u,name:n,form:f,value:c,internal_do_not_use_render:({isFormControl:m})=>l.jsxs(l.Fragment,{children:[l.jsx(Op,{...p,ref:t,__scopeCheckbox:r}),m&&l.jsx(Lp,{__scopeCheckbox:r})]})})});Hs.displayName=$o;var Mp="CheckboxIndicator",Dp=d.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,a=qs(Mp,r);return l.jsx(je,{present:n||gt(a.checked)||a.checked===!0,children:l.jsx(re.span,{"data-state":Fp(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Dp.displayName=Mp;var $p="CheckboxBubbleInput",Lp=d.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:s,required:i,disabled:c,name:u,value:f,form:p,bubbleInput:m,setBubbleInput:g}=qs($p,e),h=le(r,g),v=vo(a),x=po(n);d.useEffect(()=>{const y=m;if(!y)return;const w=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(w,"checked").set,P=!o.current;if(v!==a&&R){const k=new Event("click",{bubbles:P});y.indeterminate=gt(a),R.call(y,gt(a)?!1:a),y.dispatchEvent(k)}},[m,v,a,o]);const b=d.useRef(gt(a)?!1:a);return l.jsx(re.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??b.current,required:i,disabled:c,name:u,value:f,form:p,...t,tabIndex:-1,ref:h,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Lp.displayName=$p;function PR(e){return typeof e=="function"}function gt(e){return e==="indeterminate"}function Fp(e){return gt(e)?"indeterminate":e?"checked":"unchecked"}const Us=d.forwardRef(({className:e,...t},r)=>l.jsx(Hs,{ref:r,className:T("h-4 w-4 shrink-0 rounded-xs shadow disabled:cursor-not-allowed bg-[var(--fill-input-neutral-idle)] border border-[var(--border-input-neutral-idle)] hover:border-[var(--border-input-neutral-hover)] hover:bg-[var(--fill-input-neutral-hover)] ","active:border-[var(--border-input-neutral-active)] active:bg-[var(--fill-input-neutral-active)] disabled:border-[var(--border-input-neutral-disabled)] disabled:bg-[var(--fill-input-neutral-disabled)] ","hover:disabled:border-[var(--border-input-neutral-disabled)] hover:disabled:bg-[var(--fill-input-neutral-disabled)] ","data-[state=checked]:border-[var(--border-input-emphasis-idle)] data-[state=checked]:bg-[var(--fill-input-emphasis-idle)] hover:data-[state=checked]:border-[var(--border-input-emphasis-hover)] hover:data-[state=checked]:bg-[var(--fill-input-emphasis-hover)] active:data-[state=checked]:border-[var(--border-input-emphasis-active)] active:data-[state=checked]:bg-[var(--fill-input-emphasis-active)] disabled:data-[state=checked]:border-[var(--border-input-emphasis-disabled)] disabled:data-[state=checked]:bg-[var(--fill-input-emphasis-disabled)] ",e),...t,children:l.jsx(Dp,{className:T("flex items-center justify-center text-current"),children:t.checked==="indeterminate"?l.jsx(Zv,{className:"h-4 w-4 stroke-[var(--icon-input-emphasis-idle)]"}):l.jsx(mr,{className:"h-4 w-4 stroke-[var(--icon-input-emphasis-idle)]"})})}));Us.displayName=Hs.displayName;function Vp({option:e,selected:t,onSelect:r,nestLevel:n=0,disabled:o=!1,dir:a=pl.LTR,selectionIndicator:s="checkmark",parentSelected:i=!1}){const c=!pn(e.children),u=t.has(e.value),f=`${ER(n)}px`,p=Ws(e,t),m=u||p,g=u&&!i,h=()=>{if(e.icon)return l.jsx("div",{className:"flex-shrink-0 [&>svg]:text-[var(--text-interactive-neutral-idle)]!",children:e.icon})},v=()=>s==="checkbox"?l.jsx(Us,{checked:m}):l.jsx(mr,{className:T("h-4 w-4 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)] opacity-0",{"opacity-100":m})}),x=()=>{if(c){const y=!!e.disableChildrenOnParentSelect&&u;return e.children.map(w=>l.jsx(Vp,{option:w,selected:t,onSelect:r,nestLevel:n+1,dir:a,selectionIndicator:s,parentSelected:u,disabled:y||o},w.value))}},b=()=>l.jsxs("div",{className:T("flex items-center w-full gap-3 flex-row",{"flex-row-reverse":a===pl.LTR}),style:{paddingLeft:f},children:[l.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[h(),l.jsxs("span",{className:T("flex-1 flex items-center gap-2 text-[var(--text-interactive-neutral-active)]",{"text-[var(--text-interactive-emphasis-active,#A8A1FD)]":g}),children:[e.label,e.description&&l.jsx(Lt,{size:"xs",children:e.description})]})]}),v()]});return l.jsxs("div",{children:[l.jsx(ud,{disabled:e.disabled||o,onSelect:()=>r(e.value,c),className:T("text-[var(--text-interactive-neutral-idle)] hover:text-[var(--text-interactive-neutral-hover)]! cursor-pointer disabled:cursor-not-allowed","focus:text-[var(--text-interactive-neutral-active)] data-[selected=true]:text-[var(--text-interactive-neutral-hover)]! px-3 py-1.5",{"bg-[var(--fill-interactive-neutral-idle)]":m}),children:b()}),x()]})}function Bp({value:e,options:t=[],onSelect:r,disabled:n=!1,readOnly:o=!1,mode:a=fl.SINGLE,placeholder:s="Select...",inputPlaceholder:i="Search...",emptyState:c="No option found.",triggerClassName:u,triggerWrapperClassName:f,badgeClassName:p,badgeVariant:m="text",searchable:g=!1,toggleIcon:h=l.jsx(oo,{}),dir:v="ltr",variant:x="default",iconPosition:b="right",selectionIndicator:y="checkmark",onSearchChange:w,renderValue:S,...R}){const[P,k]=E.useState(0),[N,D]=E.useState(!1),[B,W]=E.useState(""),Z=E.useRef(null),J=a===fl.MULTIPLE,[z,M]=E.useState(e!==void 0?e:J?[]:""),_=bR(z),$=new Set(_);E.useEffect(()=>{Z.current&&k(Z.current.offsetWidth)},[z]);const I=yR(t),O=wR(t);E.useEffect(()=>{e!==void 0&&M(J?e||[]:e||"")},[e,J]);function H(j,G){if(!J){M(j),r==null||r(j),D(!1);return}M(U=>{const ne=Array.isArray(U)?U:[],te=new Set(ne),F=Tp(t,j);if(!F)return ne;G?Q(F,te):A(j,te);const ie=Array.from(te);return r==null||r(ie),ie})}function Q(j,G){Bs(j).every(te=>G.has(te))?CR(j,G):SR(j,G)}function A(j,G){G.has(j)?G.delete(j):G.add(j),Ip(t,G)}const q=()=>{const j=Ap(t,_),G=j.length===0;if(S){const U=S({displayValues:j});if(U)return U}return G?l.jsx(Lt,{variant:m,size:"md",className:T("text-[var(--text-input-neutral-placeholder)]",{"text-[var(--text-input-neutral-disabled)]":n},p),children:s}):j.map(U=>{const ne=O.get(U),te=I.get(U)||U;return l.jsx(Lt,{variant:m,size:"md",className:T("text-[var(--text-input-neutral-idle)]",{"text-[var(--text-input-neutral-disabled)]":n},p),children:l.jsxs("div",{className:"flex items-center gap-1",children:[ne&&l.jsx("div",{className:"flex-shrink-0",children:ne}),l.jsx("span",{children:te})]})},U)})},X=j=>{W(j),w==null||w(j)},Y=()=>{if(g)return l.jsx(sd,{className:"placeholder:text-[var(--text-bg-neutral-mid)] text-[var(--text-interactive-neutral-active)]",placeholder:i,value:B,onValueChange:X})},L=n||o;return l.jsxs(as,{open:N,onOpenChange:L?void 0:D,children:[l.jsx(ss,{asChild:!0,disabled:L,children:l.jsxs("div",{className:T("flex items-center gap-1.5 justify-between py-1 px-3 w-full border rounded-sm scrollbar-thin h-8","border-[var(--border-interactive-neutral-idle)] aria-invalid:!border-destructive","aria-invalid:!ring-destructive/20 dark:aria-invalid:!ring-destructive/40",{"cursor-pointer hover:border-[var(--border-input-neutral-hover)]":!L,"hover:bg-[var(--fill-input-neutral-hover)]":!L&&x!==ml.GHOST,"bg-[var(--fill-input-neutral-idle)]":x!==ml.GHOST,"cursor-not-allowed opacity-75":n,"cursor-default border-0":o&&!n,"flex-row-reverse":b==="left"},f),ref:Z,"aria-disabled":L,"aria-readonly":o,...R,children:[l.jsx("div",{className:T("flex justify-start text-start w-[100%] whitespace-nowrap overflow-x-auto gap-1.5",u),children:q()}),!o&&l.jsx("div",{className:"[&>svg]:text-[var(--icon-input-neutral-idle)] [&>svg]:hover:text-[var(--icon-input-neutral-hover)] [&>svg]:w-4 [&>svg]:h-4",children:h})]})}),l.jsx(is,{className:"p-0 border bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] [&>svg]:text-purple-muted-300",style:{width:P??"auto"},children:l.jsxs(ad,{className:"bg-[var(--fill-interactive-neutral-idle)]",children:[Y(),l.jsxs(id,{children:[l.jsx(ld,{children:c}),l.jsx(cd,{children:t.map(j=>l.jsx(Vp,{disabled:n,option:j,selected:$,onSelect:H,dir:v,selectionIndicator:y},j.value))})]})]})})]})}const Gp=E.forwardRef(e=>{const{options:t,onChange:r,readOnly:n,value:o,disabled:a,mode:s,...i}=e,c=u=>{n||r&&r({target:{value:u}})};return l.jsx(Bp,{options:t,value:o,disabled:a,readOnly:n,...i,onSelect:c,mode:s})});Gp.displayName="BaseSelectComponent";const jR=zt(Gp),Ks=E.forwardRef((e,t)=>{const{value:r=[],defaultValue:n=[],onValueChange:o,disabled:a=!1,readOnly:s=!1,className:i,direction:c="vertical",onChange:u,children:f,...p}=e,[m,g]=E.useState(pn(r)?n:r),h=c==="horizontal",v=r!==void 0?r:m,x=(w,S)=>{if(s)return;const R=S?[...v,w]:v.filter(P=>P!==w);r===void 0&&g(R),u==null||u({target:{value:R}}),o==null||o(R)},b=T("qodo qodo-custom-checkbox-group","flex",{"flex-row gap-6":h,"flex-col gap-3":!h},i),y=()=>E.Children.map(f,w=>{if(!E.isValidElement(w))return w;const S=w.props.name;if(!S)return w;const R=w.props.disabled,P=s||a||R;return E.cloneElement(w,{checked:v.includes(S),onCheckedChange:k=>x(S,k),disabled:P,name:S})});return l.jsx("div",{ref:t,className:b,...p,children:y()})});Ks.displayName="CheckboxGroupComponent";const Ys=({disabled:e,error:t,name:r="checkbox",checked:n,onCheckedChange:o,label:a,description:s,labelWrapperClassName:i,labelClassName:c,descriptionClassName:u,checkboxClassName:f,wrapperClassName:p})=>l.jsxs(_s,{htmlFor:r,className:T("group/checkbox-item flex items-start p-4 rounded-lg gap-2 transition-all duration-200","font-normal text-purple-muted-200 dark:text-purple-muted-200 leading-5",{"cursor-pointer":!e,"cursor-not-allowed":e,"border border-destructive":t},p),children:[l.jsx(Us,{id:r,disabled:e||t,checked:n,onCheckedChange:o,className:T("mt-0.5",f)}),l.jsx(Ls,{label:a,description:s,disabled:e,labelClassName:c,descriptionClassName:u,labelWrapperClassName:i})]});Ys.displayName="CheckboxGroupItemComponent";const TR=zt(Ks),Me=e=>{const{className:t,disabled:r=!1,readOnly:n=!1,methods:o,onSubmit:a=()=>{},...s}=e,{handleSubmit:i}=o,c=T("qodo qodo-form","flex flex-col gap-6",t);return l.jsx(Ff,{methods:o,disabled:r,readOnly:n,children:l.jsx("form",{className:c,onSubmit:i(a),...s})})};Me.Button=IS;Me.Input=y1;Me.Select=jR;Me.Combobox=C1;Me.RadioGroup=$1;Me.RadioGroupItem=Fs;Me.Group=xp;Me.Textarea=B1;Me.Divider=L1;Me.Title=F1;Me.TagsInput=q1;Me.CheckboxGroup=TR;Me.Checkbox=Ys;function IR(e){return e==null?[]:Array.isArray(e)?e:[e]}var AR=e=>Array.from(Array(e).keys()),Nl=e=>(e==null?void 0:e.constructor.name)==="Array",_R=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Xs(e[r],t[r]))return!1;return!0},Xs=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(Nl(e)&&Nl(t))return _R(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let o=0;o<n;o++)if(!Reflect.has(e,r[o]))return!1;for(let o=0;o<n;o++){const a=r[o];if(!Xs(e[a],t[a]))return!1}return!0},OR=e=>e!=null&&typeof e=="object",Ln=e=>typeof e=="string",sr=e=>typeof e=="function",Wp=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),MR=e=>Object.prototype.toString.call(e),zp=Function.prototype.toString,DR=zp.call(Object),$R=e=>{if(!OR(e)||MR(e)!="[object Object]"||VR(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=Wp(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&zp.call(r)==DR},LR=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,FR=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,VR=e=>LR(e)||FR(e),BR=e=>e(),GR=(...e)=>(...t)=>{e.forEach(function(r){r==null||r(...t)})},WR=e=>Number.isNaN(e),zR=e=>WR(e)?0:e,qR=(e,t,r)=>{const n=zR(e),o=n>=t,a=r==null||n<=r;return o&&a};function qp(e){if(!$R(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=qp(o))}return r}function Pl(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function HR(e,t){if(e==null)throw new Error(t())}var Hp=e=>typeof e=="object"&&e!==null,Xe=e=>e?"":void 0,UR=9,KR=e=>Hp(e)&&e.nodeType===UR,YR=e=>Hp(e)&&e===e.window;function XR(e){if(!e)return!1;const t=e.getRootNode();return Up(t)===e}function ZR(e){return KR(e)?e:YR(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function Up(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(!r||r===t)break;t=r}return t}var JR=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),QR=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,jl=e=>{const t={};let r;for(;r=QR.exec(e);)t[r[1]]=r[2];return t},ek=(e,t)=>{if(Ln(e)){if(Ln(t))return`${e};${t}`;e=jl(e)}else Ln(t)&&(t=jl(t));return Object.assign({},e??{},t??{})};function Ye(...e){let t={};for(let r of e){if(!r)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof r[o]=="function"){t[o]=GR(r[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=JR(t[o],r[o]);continue}if(o==="style"){t[o]=ek(t[o],r[o]);continue}t[o]=r[o]!==void 0?r[o]:t[o]}for(let o in r)t[o]===void 0&&(t[o]=r[o]);const n=Object.getOwnPropertySymbols(r);for(let o of n)t[o]=r[o]}return t}function tk(e,t,r){let n=[],o;return a=>{const s=e(a);return(s.length!==n.length||s.some((c,u)=>!Xs(n[u],c)))&&(n=s,o=t(s,a)),o}}var ar=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(ar||{}),fa="__init__";function rk(e){const t=()=>{var s;return((s=e.getRootNode)==null?void 0:s.call(e))??document},r=()=>ZR(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:()=>Up(t()),isActiveElement:XR,getById:s=>t().getElementById(s)}}function nk(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var ok=()=>e=>Array.from(new Set(e)),Kp=typeof globalThis.document<"u"?E.useLayoutEffect:E.useEffect;function eo(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=E.useState(t),[o,a]=E.useState(n),s=e().value!==void 0,i=E.useRef(o);i.current=s?e().value:o;const c=E.useRef(i.current);Kp(()=>{c.current=i.current},[o,e().value]);const u=p=>{var h,v;const m=c.current,g=sr(p)?p(m):p;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:g,prev:m}),s||a(g),r(g,m)||(v=(h=e()).onChange)==null||v.call(h,g,m)};function f(){return s?e().value:o}return{initial:n,ref:i,get:f,set(p){(e().sync?Zr.flushSync:BR)(()=>u(p))},invoke(p,m){var g,h;(h=(g=e()).onChange)==null||h.call(g,p,m)},hash(p){var m,g;return((g=(m=e()).hash)==null?void 0:g.call(m,p))??String(p)}}}eo.cleanup=e=>{E.useEffect(()=>e,[])};eo.ref=e=>{const t=E.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function ak(e){const t=E.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var sk=(e,t)=>{const r=E.useRef(!1),n=E.useRef(!1);E.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),E.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function ik(e,t={}){var W,Z,J,z;const r=E.useMemo(()=>{const{id:M,ids:_,getRootNode:$}=t;return rk({id:M,ids:_,getRootNode:$})},[t]),n=(...M)=>{e.debug&&console.log(...M)},o=((W=e.props)==null?void 0:W.call(e,{props:qp(t),scope:r}))??t,a=lk(o),s=(Z=e.context)==null?void 0:Z.call(e,{prop:a,bindable:eo,scope:r,flush:Tl,getContext(){return c},getComputed(){return R},getRefs(){return v},getEvent(){return g()}}),i=Yp(s),c={get(M){var _;return(_=i.current)==null?void 0:_[M].ref.current},set(M,_){var $;($=i.current)==null||$[M].set(_)},initial(M){var _;return(_=i.current)==null?void 0:_[M].initial},hash(M){var $,I;const _=($=i.current)==null?void 0:$[M].get();return(I=i.current)==null?void 0:I[M].hash(_)}},u=E.useRef(new Map),f=E.useRef(null),p=E.useRef(null),m=E.useRef({type:""}),g=()=>({...m.current,current(){return m.current},previous(){return p.current}}),h=()=>({...P,matches(...M){return M.includes(P.ref.current)},hasTag(M){var _,$;return!!(($=(_=e.states[P.ref.current])==null?void 0:_.tags)!=null&&$.includes(M))}}),v=ak(((J=e.refs)==null?void 0:J.call(e,{prop:a,context:c}))??{}),x=()=>({state:h(),context:c,event:g(),prop:a,send:B,action:b,guard:y,track:sk,refs:v,computed:R,flush:Tl,scope:r,choose:S}),b=M=>{const _=sr(M)?M(x()):M;if(!_)return;const $=_.map(I=>{var H,Q;const O=(Q=(H=e.implementations)==null?void 0:H.actions)==null?void 0:Q[I];return O||Pl(`[zag-js] No implementation found for action "${JSON.stringify(I)}"`),O});for(const I of $)I==null||I(x())},y=M=>{var _,$;return sr(M)?M(x()):($=(_=e.implementations)==null?void 0:_.guards)==null?void 0:$[M](x())},w=M=>{const _=sr(M)?M(x()):M;if(!_)return;const $=_.map(O=>{var Q,A;const H=(A=(Q=e.implementations)==null?void 0:Q.effects)==null?void 0:A[O];return H||Pl(`[zag-js] No implementation found for effect "${JSON.stringify(O)}"`),H}),I=[];for(const O of $){const H=O==null?void 0:O(x());H&&I.push(H)}return()=>I.forEach(O=>O==null?void 0:O())},S=M=>IR(M).find(_=>{let $=!_.guard;return Ln(_.guard)?$=!!y(_.guard):sr(_.guard)&&($=_.guard(x())),$}),R=M=>{HR(e.computed,()=>"[zag-js] No computed object found on machine");const _=e.computed[M];return _({context:c,event:g(),prop:a,refs:v,scope:r,computed:R})},P=eo(()=>({defaultValue:e.initialState({prop:a}),onChange(M,_){var I,O,H,Q;if(_){const A=u.current.get(_);A==null||A(),u.current.delete(_)}_&&b((I=e.states[_])==null?void 0:I.exit),b((O=f.current)==null?void 0:O.actions);const $=w((H=e.states[M])==null?void 0:H.effects);if($&&u.current.set(M,$),_===fa){b(e.entry);const A=w(e.effects);A&&u.current.set(fa,A)}b((Q=e.states[M])==null?void 0:Q.entry)}})),k=E.useRef(void 0),N=E.useRef(ar.NotStarted);Kp(()=>{queueMicrotask(()=>{const $=N.current===ar.Started;N.current=ar.Started,n($?"rehydrating...":"initializing...");const I=k.current??P.initial;P.invoke(I,$?P.get():fa)});const M=u.current,_=P.ref.current;return()=>{n("unmounting..."),k.current=_,N.current=ar.Stopped,M.forEach($=>$==null?void 0:$()),u.current=new Map,f.current=null,queueMicrotask(()=>{b(e.exit)})}},[]);const D=()=>"ref"in P?P.ref.current:P.get(),B=M=>{queueMicrotask(()=>{var Q,A;if(N.current!==ar.Started)return;p.current=m.current,m.current=M;let _=D();const $=((Q=e.states[_].on)==null?void 0:Q[M.type])??((A=e.on)==null?void 0:A[M.type]),I=S($);if(!I)return;f.current=I;const O=I.target??_;n("transition",M.type,I.target||_,`(${I.actions})`);const H=O!==_;H?Zr.flushSync(()=>P.set(O)):I.reenter&&!H?P.invoke(_,_):b(I.actions??[])})};return(z=e.watch)==null||z.call(e,x()),{state:h(),send:B,context:c,prop:a,scope:r,refs:v,computed:R,event:g(),getStatus:()=>N.current}}function Yp(e){const t=E.useRef(e);return t.current=e,t}function lk(e){const t=Yp(e);return function(n){return t.current[n]}}function Tl(e){queueMicrotask(()=>{Zr.flushSync(()=>e())})}var ck=nk(e=>e);function uk(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function dk(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const pa=e=>{const t=E.memo(E.forwardRef((r,n)=>{const{asChild:o,children:a,...s}=r;if(!o)return E.createElement(e,{...s,ref:n},a);if(!E.isValidElement(a))return null;const i=E.Children.only(a),c=dk(i);return E.cloneElement(i,{...Ye(s,i.props),ref:n?uk(n,c):c})}));return t.displayName=e.displayName||e.name,t},fk=()=>{const e=new Map;return new Proxy(pa,{apply(t,r,n){return pa(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,pa(n)),e.get(n)}})},nt=fk();function pk(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function mn(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,i=E.createContext(s);i.displayName=t;function c(){const u=E.useContext(i);if(!u&&r){const f=new Error(a??pk(n,o));throw f.name="ContextError",Wp(Error,"captureStackTrace")&&sr(Error.captureStackTrace)&&Error.captureStackTrace(f,c),f}return u}return[i.Provider,c,i]}const[mk,ut]=mn({name:"StepsContext",hookName:"useStepsContext",providerName:"<StepsProvider />"}),Xp=E.forwardRef((e,t)=>{const r=ut(),n=Ye(r.getContentProps({index:r.count}),e);return l.jsx(nt.div,{...n,ref:t})});Xp.displayName="StepsCompletedContent";const Zs=()=>(e,t)=>t.reduce((r,n)=>{const[o,a]=r,s=n;return a[s]!==void 0&&(o[s]=a[s]),delete a[s],[o,a]},[{},{...e}]),gk=Zs(),Zp=E.forwardRef((e,t)=>{const[r,n]=gk(e,["index"]),o=ut(),a=Ye(o.getContentProps(r),n);return l.jsx(nt.div,{...a,ref:t})});Zp.displayName="StepsContent";const[vk,Js]=mn({name:"StepsItemPropsContext",hookName:"useStepsItemPropsContext",providerName:"<StepsItemPropsProvider />"}),Jp=E.forwardRef((e,t)=>{const r=ut(),n=Js(),o=Ye(r.getIndicatorProps(n),e);return l.jsx(nt.div,{...o,ref:t})});Jp.displayName="StepsIndicator";const[hk]=mn({name:"StepsItemContext",hookName:"useStepsItemContext",providerName:"<StepsItem />"}),xk=Zs(),Qp=E.forwardRef((e,t)=>{const[r,n]=xk(e,["index"]),o=ut(),a=Ye(o.getItemProps(r),n),s=o.getItemState(r);return l.jsx(vk,{value:r,children:l.jsx(hk,{value:s,children:l.jsx(nt.div,{...a,ref:t})})})});Qp.displayName="StepsItem";const em=E.forwardRef((e,t)=>{const r=ut(),n=Ye(r.getListProps(),e);return l.jsx(nt.div,{...n,ref:t})});em.displayName="StepsList";const tm=E.forwardRef((e,t)=>{const r=ut(),n=Ye(r.getNextTriggerProps(),e);return l.jsx(nt.button,{...n,ref:t})});tm.displayName="StepsNextTrigger";const rm=E.forwardRef((e,t)=>{const r=ut(),n=Ye(r.getPrevTriggerProps(),e);return l.jsx(nt.button,{...n,ref:t})});rm.displayName="StepsPrevTrigger";var $r=(e,t=[])=>({parts:(...r)=>{if(bk(t))return $r(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>$r(e,[...t,...r]),omit:(...r)=>$r(e,t.filter(n=>!r.includes(n))),rename:r=>$r(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${rr(e)}"][data-part="${rr(n)}"]`,`& [data-scope="${rr(e)}"][data-part="${rr(n)}"]`].join(", "),attrs:{"data-scope":rr(e),"data-part":rr(n)}}}),{})}),rr=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),bk=e=>e.length===0,yk=$r("steps").parts("root","list","item","trigger","indicator","separator","content","nextTrigger","prevTrigger","progress"),Ze=yk.build(),wk=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`steps:${e.id}`},Ck=e=>{var t;return((t=e.ids)==null?void 0:t.list)??`steps:${e.id}:list`},Il=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.triggerId)==null?void 0:n.call(r,t))??`steps:${e.id}:trigger:${t}`},Sk=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.contentId)==null?void 0:n.call(r,t))??`steps:${e.id}:content:${t}`};function Ek(e,t){const{context:r,send:n,computed:o,prop:a,scope:s}=e,i=r.get("step"),c=a("count"),u=o("percent"),f=o("hasNextStep"),p=o("hasPrevStep"),m=b=>({triggerId:Il(s,b.index),contentId:Sk(s,b.index),current:b.index===i,completed:b.index<i,incomplete:b.index>i,index:b.index,first:b.index===0,last:b.index===c-1}),g=()=>{n({type:"STEP.NEXT",src:"next.trigger.click"})},h=()=>{n({type:"STEP.PREV",src:"prev.trigger.click"})},v=()=>{n({type:"STEP.RESET",src:"reset.trigger.click"})},x=b=>{n({type:"STEP.SET",value:b,src:"api.setValue"})};return{value:i,count:c,percent:u,hasNextStep:f,hasPrevStep:p,isCompleted:o("completed"),goToNextStep:g,goToPrevStep:h,resetStep:v,getItemState:m,setStep:x,getRootProps(){return t.element({...Ze.root.attrs,id:wk(s),dir:a("dir"),"data-orientation":a("orientation"),style:{"--percent":`${u}%`}})},getListProps(){const y=AR(c).map((w,S)=>Il(s,S));return t.element({...Ze.list.attrs,dir:a("dir"),id:Ck(s),role:"tablist","aria-owns":y.join(" "),"aria-orientation":a("orientation"),"data-orientation":a("orientation")})},getItemProps(b){const y=m(b);return t.element({...Ze.item.attrs,dir:a("dir"),"aria-current":y.current?"step":void 0,"data-orientation":a("orientation")})},getTriggerProps(b){const y=m(b);return t.button({...Ze.trigger.attrs,id:y.triggerId,role:"tab",dir:a("dir"),tabIndex:!a("linear")||y.current?0:-1,"aria-selected":y.current,"aria-controls":y.contentId,"data-state":y.current?"open":"closed","data-orientation":a("orientation"),"data-complete":Xe(y.completed),"data-current":Xe(y.current),"data-incomplete":Xe(y.incomplete),onClick(w){w.defaultPrevented||a("linear")||n({type:"STEP.SET",value:b.index,src:"trigger.click"})}})},getContentProps(b){const y=m(b);return t.element({...Ze.content.attrs,dir:a("dir"),id:y.contentId,role:"tabpanel",tabIndex:0,hidden:!y.current,"data-state":y.current?"open":"closed","data-orientation":a("orientation"),"aria-labelledby":y.triggerId})},getIndicatorProps(b){const y=m(b);return t.element({...Ze.indicator.attrs,dir:a("dir"),"aria-hidden":!0,"data-complete":Xe(y.completed),"data-current":Xe(y.current),"data-incomplete":Xe(y.incomplete)})},getSeparatorProps(b){const y=m(b);return t.element({...Ze.separator.attrs,dir:a("dir"),"data-orientation":a("orientation"),"data-complete":Xe(y.completed),"data-current":Xe(y.current),"data-incomplete":Xe(y.incomplete)})},getNextTriggerProps(){return t.button({...Ze.nextTrigger.attrs,dir:a("dir"),type:"button",disabled:!f,onClick(b){b.defaultPrevented||g()}})},getPrevTriggerProps(){return t.button({dir:a("dir"),...Ze.prevTrigger.attrs,type:"button",disabled:!p,onClick(b){b.defaultPrevented||h()}})},getProgressProps(){return t.element({dir:a("dir"),...Ze.progress.attrs,role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`${u}% complete`,"data-complete":Xe(u===100)})}}}var Rk={props({props:e}){return{defaultStep:0,count:1,linear:!1,orientation:"horizontal",...e}},context({prop:e,bindable:t}){return{step:t(()=>({defaultValue:e("defaultStep"),value:e("step"),onChange(r){var o,a;(o=e("onStepChange"))==null||o({step:r}),r==e("count")&&((a=e("onStepComplete"))==null||a())}}))}},computed:{percent:tk(({context:e,prop:t})=>[e.get("step"),t("count")],([e,t])=>e/t*100),hasNextStep:({context:e,prop:t})=>e.get("step")<t("count"),hasPrevStep:({context:e})=>e.get("step")>0,completed:({context:e,prop:t})=>e.get("step")===t("count")},initialState(){return"idle"},entry:["validateStep"],states:{idle:{on:{"STEP.SET":{actions:["setStep"]},"STEP.NEXT":{actions:["goToNextStep"]},"STEP.PREV":{actions:["goToPrevStep"]},"STEP.RESET":{actions:["resetStep"]}}}},implementations:{actions:{goToNextStep({context:e,prop:t}){const r=Math.min(e.get("step")+1,t("count"));e.set("step",r)},goToPrevStep({context:e}){const t=Math.max(e.get("step")-1,0);e.set("step",t)},resetStep({context:e}){e.set("step",0)},setStep({context:e,event:t}){e.set("step",t.value)},validateStep({context:e,prop:t}){kk(t("count"),e.get("step"))}}}},kk=(e,t)=>{if(!qR(t,0,e))throw new RangeError(`[zag-js/steps] step index ${t} is out of bounds`)};ok()(["count","dir","getRootNode","id","ids","linear","onStepChange","onStepComplete","orientation","step","defaultStep"]);const[oj,Nk]=mn({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[aj,Pk]=mn({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function jk(e){const t=E.useId(),{getRootNode:r}=Nk(),{dir:n}=Pk(),o={id:t,dir:n,getRootNode:r,...e},a=ik(Rk,o);return Ek(a,ck)}const Tk=Zs(),nm=E.forwardRef((e,t)=>{const[r,n]=Tk(e,["defaultStep","id","ids","count","linear","onStepChange","onStepComplete","orientation","step"]),o=jk(r),a=Ye(o.getRootProps(),n);return l.jsx(mk,{value:o,children:l.jsx(nt.div,{...a,ref:t})})});nm.displayName="StepsRoot";const om=E.forwardRef((e,t)=>{const r=ut(),n=Js(),o=Ye(r.getSeparatorProps(n),e);return l.jsx(nt.div,{...o,ref:t})});om.displayName="StepsSeparator";const am=E.forwardRef((e,t)=>{const r=ut(),n=Js(),o=Ye(r.getTriggerProps(n),e);return l.jsx(nt.button,{...o,ref:t})});am.displayName="StepsTrigger";function Ik(e){return Wf({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}const sm=E.createContext(void 0),Ak=({children:e,step:t})=>l.jsx(sm.Provider,{value:{step:t},children:e}),im=()=>{const e=E.useContext(sm);if(!e)throw new Error("useSteps must be used within a StepsProvider");return e},_k=({className:e,step:t,...r})=>{const n=T("qodo qodo-steps","flex flex-col gap-4",e);return l.jsx(Ak,{step:t??0,children:l.jsx(nm,{className:n,step:t,...r})})},Ok=({className:e,...t})=>{const r=T("flex flex-row gap-4",e);return l.jsx(em,{className:r,...t})},Mk=({className:e,...t})=>{const r=T("flex flex-row items-center gap-4",e);return l.jsx(Qp,{className:r,...t})},Dk=({className:e,...t})=>{const r=T("flex flex-row items-center gap-4 text-purple-muted-100 text-sm",e);return l.jsx(am,{className:r,...t})},$k=({index:e,className:t,...r})=>{const{step:n}=im(),o=e===n,a=e<n,s=T("flex items-center justify-center w-8 h-8 rounded-full text-white",a&&"bg-green-700",o&&"bg-green-600",!a&&!o&&"bg-purple-muted-500",t),i=T({"text-white":o,"text-purple-muted-300":!a&&e!==n});return l.jsx(Jp,{className:s,...r,children:a?l.jsx(Ik,{className:"text-green-400"}):l.jsx("span",{className:i,children:e+1})})},Lk=({index:e,className:t,...r})=>{const{step:n}=im(),o=e<n,a=T("min-w-12 h-px",o?"bg-green-400":"bg-gray-400",t);return l.jsx(om,{className:a,...r})},Fk=({className:e,...t})=>{const r=T(e);return l.jsx(Zp,{className:r,...t})},Vk=({className:e,...t})=>{const r=T(e);return l.jsx(Xp,{className:r,...t})},Bk=({className:e,...t})=>{const r=T("bg-primary text-white px-4 py-2 rounded-md",e);return l.jsx(rm,{className:r,...t})},Gk=({className:e,...t})=>{const r=T("bg-primary text-white px-4 py-2 rounded-md",e);return l.jsx(tm,{className:r,...t})},Wk={Root:_k,List:Ok,Item:Mk,Trigger:Dk,Indicator:$k,Separator:Lk,Content:Fk,CompletedContent:Vk,PrevTrigger:Bk,NextTrigger:Gk},gn=({children:e,content:t,providerProps:r={},triggerProps:n={},contentProps:o={}})=>l.jsx(rp,{...r,children:l.jsxs(np,{children:[l.jsx(op,{...n,children:e}),t&&l.jsx(ap,{...o,children:t})]})});/**
210
200
  * react-table
211
201
  *
212
202
  * Copyright (c) TanStack
@@ -215,5 +205,5 @@ Defaulting to \`null\`.`}var Yw=Gd,Xw=qd;function Zw({className:e,value:t,...r})
215
205
  * LICENSE.md file in the root directory of this source tree.
216
206
  *
217
207
  * @license MIT
218
- */function Ui(e,t){return e?OR(e)?c.createElement(e,t):e:null}function OR(e){return MR(e)||typeof e=="function"||DR(e)}function MR(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function DR(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const bp=c.forwardRef(({className:e,wrapperClassName:t,...r},n)=>i.jsx("div",{"data-table-scroll-container":!0,className:k("max-h-[100%] min-h-0 overflow-auto rounded-lg border border-purple-muted-600",t),children:i.jsx("table",{ref:n,className:k("w-full caption-bottom text-sm",e),...r})}));bp.displayName="Table";const yp=c.forwardRef(({className:e,...t},r)=>i.jsx("thead",{ref:r,className:k("sticky top-0 z-10 b-0 [&>tr]:hover:bg-transparent",e),...t}));yp.displayName="TableHeader";const wp=c.forwardRef(({className:e,...t},r)=>i.jsx("tbody",{ref:r,className:k("[&_tr:last-child]:border-0 [&_tr:first-child]:border-top-0",e),...t}));wp.displayName="TableBody";const $R=c.forwardRef(({className:e,...t},r)=>i.jsx("tfoot",{ref:r,className:k("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));$R.displayName="TableFooter";const et=c.forwardRef(({className:e,...t},r)=>i.jsx("tr",{ref:r,className:k("border-b border-purple-muted-600 transition-colors hover:bg-muted/50 data-[state=selected]:bg-purple-muted-600/30",e,{"cursor-pointer hover:bg-purple-muted-600/20":!!t.onClick}),...t}));et.displayName="TableRow";const Cp=c.forwardRef(({className:e,...t},r)=>i.jsx("th",{ref:r,className:k("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Cp.displayName="TableHead";const lt=c.forwardRef(({className:e,...t},r)=>i.jsx("td",{ref:r,className:k("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));lt.displayName="TableCell";const LR=c.forwardRef(({className:e,...t},r)=>i.jsx("caption",{ref:r,className:k("mt-4 text-sm text-muted-foreground",e),...t}));LR.displayName="TableCaption";const FR=({title:e="No results"})=>i.jsx("div",{className:"grid place-items-center text-foreground h-full w-full p-14",children:e}),VR=({columnsCount:e,rowsCount:t=8})=>i.jsx(i.Fragment,{children:Array.from({length:t}).map((r,n)=>i.jsx(et,{children:Array.from({length:e}).map((o,a)=>i.jsx(lt,{children:i.jsx(Ud,{className:"h-5.5 w-full"})},`loading-cell-${a}`))},`loading-row-${n}`))}),BR=e=>i.jsxs("svg",{width:"280",height:"195",viewBox:"0 0 280 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[i.jsxs("g",{clipPath:"url(#clip0_65_2990)",children:[i.jsx("path",{d:"M228.918 10.4603L230.958 3.72536C230.958 3.72536 232.388 0.863297 235.828 2.69334C238.748 4.24674 237.388 7.1514 237.388 7.1514L233.008 13.2586",fill:"white"}),i.jsx("path",{d:"M228.918 10.4603L230.958 3.72536C230.958 3.72536 232.388 0.863297 235.828 2.69334C238.748 4.24674 237.388 7.1514 237.388 7.1514L233.008 13.2586",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M101.487 163.737L94.1771 171.823L88.0371 163.237L78.7071 173.664L73.6671 165.003L63.3071 174.856L60.1271 165.886L48.9371 176.473L45.0671 167.067L33.8771 177.952L30.2871 168.983L19.0971 179.718L14.7971 170.217L3.80712 180.654C-12.9029 120.029 66.1271 113.464 81.2071 111.017C96.2871 108.57 99.7371 98.9092 99.7371 98.9092",fill:"black"}),i.jsx("path",{d:"M101.487 163.737L94.1771 171.823L88.0371 163.237L78.7071 173.664L73.6671 165.003L63.3071 174.856L60.1271 165.886L48.9371 176.473L45.0671 167.067L33.8771 177.952L30.2871 168.983L19.0971 179.718L14.7971 170.217L3.80712 180.654C-12.9029 120.029 66.1271 113.464 81.2071 111.017C96.2871 108.57 99.7371 98.9092 99.7371 98.9092",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",fill:"white"}),i.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763L201.748 52.7432Z",fill:"white"}),i.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M169.278 124.402C172.948 139.926 177.038 167.153 156.118 183.549C156.118 183.549 179.558 182.261 179.558 193.316H139.768C139.768 193.316 139.898 186.251 144.708 183.666C144.708 183.666 130.798 176.484 130.168 154.715L130.468 141.394",fill:"white"}),i.jsx("path",{d:"M169.278 124.402C172.948 139.926 177.038 167.153 156.118 183.549C156.118 183.549 179.558 182.261 179.558 193.316H139.768C139.768 193.316 139.898 186.251 144.708 183.666C144.708 183.666 130.798 176.484 130.168 154.715L130.468 141.394",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M89.0353 182.686C75.1053 138.51 106.825 68.8089 143.315 34.4425C185.995 -5.7651 243.385 -13.4257 278.755 68.5323L270.145 71.5115C270.365 71.6285 238.435 46.4974 222.705 46.4974C217.675 46.4974 214.215 50.2532 210.675 54.6687C192.345 77.5336 173.815 147.99 131.485 147.905C131.485 147.905 132.205 179.43 99.6853 183.92C99.6853 183.92 124.525 182.282 124.525 193.315H83.9453C84.2153 192.709 83.5353 185.016 89.0453 182.686H89.0353Z",fill:"white",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M130.318 157.438C130.318 157.438 133.678 142.638 127.758 131.765",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M216.647 40.9229L202.547 62.1066",stroke:"black",strokeWidth:"3",strokeLinejoin:"round"}),i.jsx("path",{d:"M206.769 13.823L204.079 6.74764C204.079 6.74764 201.969 2.55554 206.769 1.45965C211.259 0.427586 211.509 4.64092 211.509 4.64092L211.529 12.8974",fill:"white"}),i.jsx("path",{d:"M206.769 13.823L204.079 6.74764C204.079 6.74764 201.969 2.55554 206.769 1.45965C211.259 0.427586 211.509 4.64092 211.509 4.64092L211.529 12.8974",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M200.648 56.6694L209.918 53.4668L205.068 60.2018L211.528 59.0633L206.258 64.6492L211.688 64.6917L204.468 70.6181",fill:"white"}),i.jsx("path",{d:"M200.648 56.6694L209.918 53.4668L205.068 60.2018L211.528 59.0633L206.258 64.6492L211.688 64.6917L204.468 70.6181",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M152.234 77.7571C159.214 84.7474 169.364 89.9397 178.244 89.9397C193.344 89.9397 208.224 73.6821 204.564 59.1163C204.074 57.1692 202.094 56.1158 200.334 56.8393L182.354 64.1808C181.694 64.4468 180.974 64.4894 180.304 64.2659C177.674 63.4147 170.604 60.5952 163.084 53.1367",fill:"white"}),i.jsx("path",{d:"M152.234 77.7571C159.214 84.7474 169.364 89.9397 178.244 89.9397C193.344 89.9397 208.224 73.6821 204.564 59.1163C204.074 57.1692 202.094 56.1158 200.334 56.8393L182.354 64.1808C181.694 64.4468 180.974 64.4894 180.304 64.2659C177.674 63.4147 170.604 60.5952 163.084 53.1367",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M275.767 61.9785L263.938 66.8728L270.147 71.5118L278.568 68.3517L275.767 61.9785Z",fill:"#7A68FA",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M225.147 40.4968C231.289 40.4968 236.267 35.1997 236.267 28.6654C236.267 22.1311 231.289 16.834 225.147 16.834C219.006 16.834 214.027 22.1311 214.027 28.6654C214.027 35.1997 219.006 40.4968 225.147 40.4968Z",fill:"white",stroke:"black",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M225.147 32.9536C227.373 32.9536 229.177 31.0338 229.177 28.6657C229.177 26.2976 227.373 24.3779 225.147 24.3779C222.921 24.3779 221.117 26.2976 221.117 28.6657C221.117 31.0338 222.921 32.9536 225.147 32.9536Z",fill:"black"}),i.jsx("path",{d:"M244.89 26.0693L240.93 29.623L245.78 32.6128",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M220.18 55.8399C220.18 55.8399 223.26 53.4567 227.08 54.9675",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M223.938 59.5836C223.938 59.5836 227.918 58.2004 230.658 60.4986",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),i.jsx("defs",{children:i.jsx("clipPath",{id:"clip0_65_2990",children:i.jsx("rect",{width:"279",height:"195",fill:"white",transform:"translate(0.5)"})})})]}),Ki=({title:e="There's nothing to show",description:t="No items to display"})=>i.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-14",children:[i.jsx(BR,{className:"mb-6"}),i.jsx("h4",{className:"mb-1 text-foreground",children:e}),i.jsx("p",{className:"text-purple-muted-300",children:t})]}),Sp=({className:e,...t})=>i.jsx("nav",{role:"navigation","aria-label":"pagination",className:k("qodo qodo-pagination mx-auto flex w-full justify-center",e),...t});Sp.displayName="Pagination";const Ep=c.forwardRef(({className:e,...t},r)=>i.jsx("ul",{ref:r,className:k("flex flex-row items-center gap-1",e),...t}));Ep.displayName="PaginationContent";const hr=c.forwardRef(({className:e,...t},r)=>i.jsx("li",{ref:r,className:k("",e),...t}));hr.displayName="PaginationItem";const Rp=({className:e,isActive:t,size:r="icon",...n})=>i.jsx("a",{"aria-current":t?"page":void 0,className:k(yl({variant:t?"outline":"ghost",size:r}),e),...n});Rp.displayName="PaginationLink";const kp=({className:e,...t})=>i.jsxs("span",{"aria-hidden":!0,className:k("flex h-9 w-9 items-center justify-center",e),...t,children:[i.jsx(hl,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"More pages"})]});kp.displayName="PaginationEllipsis";const WR=({table:e,isLoading:t=!1})=>{const r=e.getPageCount(),n=e.getState().pagination.pageIndex+1,[o,a]=S.useState(r);S.useEffect(()=>{r>=1&&a(r)},[r]);const s=S.useMemo(()=>{const g="text-purple-muted-300 dark:text-purple-muted-300",x="hover:bg-purple-muted-600 hover:text-purple-muted-300 dark:hover:bg-purple-muted-600 dark:hover:text-purple-muted-300",v="bg-purple-muted-600 text-purple-muted-300 dark:bg-purple-muted-600 dark:text-purple-muted-300",h="border-none flex items-center justify-center w-8 h-8",y="pointer-events-none opacity-50 cursor-not-allowed";return{previous:k(n===1||t?"pointer-events-none opacity-50":"cursor-pointer",h,g,t&&y),next:k(n===r||t?"pointer-events-none opacity-50":"cursor-pointer",h,g,t&&y),link:b=>k(h,t?"cursor-not-allowed":"cursor-pointer",g,!t&&x,b&&v,t&&y)}},[n,r,t]),l=S.useCallback(g=>{if(t)return;const x=g-1;e.setPagination(v=>({...v,pageIndex:x}))},[e,t]),d=S.useCallback(()=>{t||n<=1||l(n-1)},[n,l,t]),u=S.useCallback(()=>{t||r<=1||n>=r||l(n+1)},[r,n,l,t]),f=S.useCallback(g=>{if(g<=1)return[];if(g<=7)return Array.from({length:g},(v,h)=>h+1);const x=[];return n<=4?x.push(1,2,3,4,5,"ellipsis",g):n>=g-3?x.push(1,"ellipsis",g-4,g-3,g-2,g-1,g):x.push(1,"ellipsis",n-1,n,n+1,"ellipsis",g),x},[n]),p=S.useMemo(()=>{if(r<=1){const g=Math.max(r,o);return f(g)}return f(r)},[r,o,f]),m=S.useCallback((g,x)=>g==="ellipsis"?i.jsx(hr,{children:i.jsx(kp,{})},`ellipsis-${x}`):i.jsx(hr,{className:"flex items-center justify-center",children:i.jsx(Rp,{onClick:()=>l(g),isActive:g===n,className:s.link(g===n),children:g})},`${g}-${x}-pagination-item`),[l,n,s]);return r<2&&o<2?i.jsx(i.Fragment,{}):i.jsx(Sp,{className:"dark:bg-transparent",children:i.jsxs(Ep,{children:[i.jsx(hr,{children:i.jsx(tt,{variant:"ghost",size:"icon",className:s.previous,onClick:d,children:i.jsx(sv,{})})}),p.map(m),i.jsx(hr,{children:i.jsx(tt,{variant:"ghost",size:"icon",className:s.next,onClick:u,children:i.jsx(vl,{onClick:u})})})]})})},GR=({columnsCount:e,message:t="End of results"})=>i.jsx(et,{className:"hover:bg-transparent border-b-0",children:i.jsx(lt,{colSpan:e,className:"text-center py-3 border-b-0",children:i.jsx("div",{className:"text-xs text-purple-muted-400/60",role:"status","aria-live":"polite",children:t})})});function zR({enabled:e,onLoadMore:t,hasMore:r,isLoading:n,threshold:o,findScrollableContainer:a}){const s=S.useRef(null),[l,d]=S.useState(!1),[u,f]=S.useState(!0),p=S.useRef(null),m=S.useRef(!1),g=r!==void 0?r:u,x=S.useCallback(async()=>{if(!(!t||m.current||!g)){m.current=!0,d(!0);try{const v=await Promise.resolve(t());v===!1?f(!1):v===!0&&f(!0)}catch(v){console.error("[useInfiniteScroll] Error loading more data:",v)}finally{m.current=!1,d(!1)}}},[t,g]);return S.useEffect(()=>{if(!e||!t)return;const v=s.current;if(!v)return;p.current&&(p.current.disconnect(),p.current=null);const h=requestAnimationFrame(()=>{const y=a();p.current=new IntersectionObserver(b=>{const[C]=b;C.isIntersecting&&!n&&!m.current&&x()},{root:y,rootMargin:`${o}px`,threshold:0}),p.current.observe(v)});return()=>{cancelAnimationFrame(h),p.current&&(p.current.disconnect(),p.current=null)}},[e,t,g,n,o,x,a]),{loadMoreRef:s,isLoadingMore:l,hasMore:g}}const qR=150,xr={PAGINATION:"pagination",INFINITE_SCROLL:"infinite-scroll"},HR=600,Yi=(e,t)=>{const r=t.columnDef.minSize,n=t.columnDef.maxSize,o={};return e!==qR&&(o.width=`${e}px`),r!==void 0&&(o.minWidth=`${r}px`),n!==void 0&&(o.maxWidth=`${n}px`),o},UR=({table:e,emptyStateComponent:t,noResultsComponent:r,errorComponent:n,isLoading:o=!1,isError:a=!1,onRowClick:s,emptyStateTitle:l="There's nothing to show",emptyStateDescription:d="No items to display",noResultsTitle:u="No results",wrapperClassName:f,loadingRowsCount:p=8,activeRowId:m,paginationMode:g=xr.PAGINATION,onLoadMore:x,hasMore:v,loadMoreThreshold:h=HR,endOfResultsMessage:y,className:b,...C})=>{const E=e.getVisibleFlatColumns().length,R=g===xr.PAGINATION&&e.options.manualPagination&&e.options.onPaginationChange,T=e.getRowModel().rows.length===0,P=e.getCoreRowModel().rows.length===0&&!o,j=!o&&(a||P||T),F="hover:bg-transparent cursor-default",q=S.useRef(null),re=S.useCallback(()=>q.current?q.current.querySelector("[data-table-scroll-container]")||q.current:null,[]),{loadMoreRef:te,hasMore:ee}=zR({enabled:g===xr.INFINITE_SCROLL,onLoadMore:x,hasMore:v,isLoading:o,threshold:h,findScrollableContainer:re}),W=()=>e.getHeaderGroups().map(I=>i.jsx(et,{children:I.headers.map($=>i.jsx(Cp,{className:"text-[#A1A1AA]",style:Yi($.getSize(),$.column),children:$.isPlaceholder?void 0:Ui($.column.columnDef.header,$.getContext())},$.id))},I.id)),D=()=>{if(o)return i.jsx(VR,{rowsCount:p,columnsCount:E});if(a)return i.jsx(et,{className:F,children:i.jsx(lt,{colSpan:E,children:(n==null?void 0:n())||i.jsx(Ki,{title:l,description:d})})});if(P)return i.jsx(et,{className:F,children:i.jsx(lt,{colSpan:E,children:(t==null?void 0:t())||i.jsx(Ki,{title:l,description:d})})});if(T)return i.jsx(et,{className:F,children:i.jsx(lt,{colSpan:E,children:(r==null?void 0:r())||i.jsx(FR,{title:u})})});const I=e.getRowModel().rows.map($=>{var G;const N=(G=$.original)==null?void 0:G.id,M=$.getIsSelected()||!!m&&m===N;return i.jsx(et,{"data-state":M?"selected":void 0,onClick:()=>s==null?void 0:s($.original),className:"group",children:$.getVisibleCells().map(Q=>i.jsx(lt,{className:"text-[#FAFAFA] whitespace-nowrap",style:Yi(Q.column.getSize(),Q.column),children:Ui(Q.column.columnDef.cell,Q.getContext())},Q.id))},$.id)});return g===xr.INFINITE_SCROLL&&I.length>0?i.jsxs(i.Fragment,{children:[I,i.jsx(et,{className:"hover:bg-transparent border-0 h-0",children:i.jsx(lt,{colSpan:E,className:"h-0 p-0 border-0 overflow-hidden",children:i.jsx("div",{ref:te,className:"h-px w-full"})})}),!ee&&i.jsx(GR,{columnsCount:E,message:y})]}):I};return i.jsxs("div",{className:k("qodo qodo-table","flex flex-col h-full w-full"),children:[i.jsx("div",{ref:q,className:"flex-1 min-h-0",children:i.jsxs(bp,{wrapperClassName:f,className:k({"h-[100%]":j},b),"aria-busy":o,...C,children:[i.jsx(yp,{children:W()}),i.jsx(wp,{children:D()})]})}),R&&i.jsx("footer",{className:"pt-4 pb-2 border-t border-purple-muted-600/20 flex-shrink-0",children:i.jsx(WR,{table:e,isLoading:o})})]})},na=e=>{const{children:t,...r}=e,n=t&&t!==0?t:"-";return i.jsx("div",{...r,children:n})},KR=e=>{const{variant:t,children:r}=e,n=r||t;return i.jsx(Jt,{...e,children:n})},YR=e=>{const{children:t,...r}=e;if(typeof t!="number")return console.error("NumberCell must be a number"),i.jsx(na,{...r,children:"-"});const n=t>1e5?"compact":"standard",o=new Intl.NumberFormat("en-US",{notation:n}).format(t);return i.jsx(na,{...r,children:o})},XR=({column:e,children:t,tooltipContent:r})=>{const[n,o]=S.useState(!1),a=e.getCanSort();let s=t;return r&&(s=i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx("span",{children:t}),i.jsx(Vr,{contentProps:{className:"max-w-[200px]"},content:r,children:i.jsx(yv,{className:"h-4 w-4"})})]})),a?i.jsxs("span",{className:"flex gap-1 items-center cursor-pointer",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),role:"button",children:[s,i.jsx(rv,{className:k("ml-2 h-4 w-4",{invisible:!n})})]}):i.jsx("span",{children:s})};function ZR(e){const t=JR(e),r=c.forwardRef((n,o)=>{const{children:a,...s}=n,l=c.Children.toArray(a),d=l.find(ek);if(d){const u=d.props.children,f=l.map(p=>p===d?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:p);return i.jsx(t,{...s,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,f):null})}return i.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function JR(e){const t=c.forwardRef((r,n)=>{const{children:o,...a}=r;if(c.isValidElement(o)){const s=rk(o),l=tk(a,o.props);return o.type!==c.Fragment&&(l.ref=n?ke(n,s):s),c.cloneElement(o,l)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var QR=Symbol("radix.slottable");function ek(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===QR}function tk(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...l)=>{const d=a(...l);return o(...l),d}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function rk(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var oa=["Enter"," "],nk=["ArrowDown","PageUp","Home"],Np=["ArrowUp","PageDown","End"],ok=[...nk,...Np],ak={ltr:[...oa,"ArrowRight"],rtl:[...oa,"ArrowLeft"]},sk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Br="Menu",[Er,ik,lk]=jn(Br),[Dt,jp]=we(Br,[lk,pt,ht]),Wr=pt(),Pp=ht(),[Tp,yt]=Dt(Br),[ck,Gr]=Dt(Br),_p=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:s=!0}=e,l=Wr(t),[d,u]=c.useState(null),f=c.useRef(!1),p=$e(a),m=At(o);return c.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),i.jsx(Tr,{...l,children:i.jsx(Tp,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:u,children:i.jsx(ck,{scope:t,onClose:c.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:s,children:n})})})};_p.displayName=Br;var dk="MenuAnchor",cs=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Wr(r);return i.jsx(_r,{...o,...n,ref:t})});cs.displayName=dk;var ds="MenuPortal",[uk,Ap]=Dt(ds,{forceMount:void 0}),Ip=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=yt(ds,t);return i.jsx(uk,{scope:t,forceMount:r,children:i.jsx(Ce,{present:r||a.open,children:i.jsx(sr,{asChild:!0,container:o,children:n})})})};Ip.displayName=ds;var Oe="MenuContent",[fk,us]=Dt(Oe),Op=c.forwardRef((e,t)=>{const r=Ap(Oe,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=yt(Oe,e.__scopeMenu),s=Gr(Oe,e.__scopeMenu);return i.jsx(Er.Provider,{scope:e.__scopeMenu,children:i.jsx(Ce,{present:n||a.open,children:i.jsx(Er.Slot,{scope:e.__scopeMenu,children:s.modal?i.jsx(pk,{...o,ref:t}):i.jsx(mk,{...o,ref:t})})})})}),pk=c.forwardRef((e,t)=>{const r=yt(Oe,e.__scopeMenu),n=c.useRef(null),o=ae(t,n);return c.useEffect(()=>{const a=n.current;if(a)return Ln(a)},[]),i.jsx(fs,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),mk=c.forwardRef((e,t)=>{const r=yt(Oe,e.__scopeMenu);return i.jsx(fs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),gk=ZR("MenuContent.ScrollLock"),fs=c.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:g,disableOutsideScroll:x,...v}=e,h=yt(Oe,r),y=Gr(Oe,r),b=Wr(r),C=Pp(r),E=ik(r),[R,T]=c.useState(null),P=c.useRef(null),j=ae(t,P,h.onContentChange),F=c.useRef(0),q=c.useRef(""),re=c.useRef(0),te=c.useRef(null),ee=c.useRef("right"),W=c.useRef(0),D=x?Ar:c.Fragment,I=x?{as:gk,allowPinchZoom:!0}:void 0,$=M=>{var _,H;const G=q.current+M,Q=E().filter(X=>!X.disabled),A=document.activeElement,z=(_=Q.find(X=>X.ref.current===A))==null?void 0:_.textValue,Y=Q.map(X=>X.textValue),B=Nk(Y,G,z),O=(H=Q.find(X=>X.textValue===B))==null?void 0:H.ref.current;(function X(ne){q.current=ne,window.clearTimeout(F.current),ne!==""&&(F.current=window.setTimeout(()=>X(""),1e3))})(G),O&&setTimeout(()=>O.focus())};c.useEffect(()=>()=>window.clearTimeout(F.current),[]),Pn();const N=c.useCallback(M=>{var Q,A;return ee.current===((Q=te.current)==null?void 0:Q.side)&&Pk(M,(A=te.current)==null?void 0:A.area)},[]);return i.jsx(fk,{scope:r,searchRef:q,onItemEnter:c.useCallback(M=>{N(M)&&M.preventDefault()},[N]),onItemLeave:c.useCallback(M=>{var G;N(M)||((G=P.current)==null||G.focus(),T(null))},[N]),onTriggerLeave:c.useCallback(M=>{N(M)&&M.preventDefault()},[N]),pointerGraceTimerRef:re,onPointerGraceIntentChange:c.useCallback(M=>{te.current=M},[]),children:i.jsx(D,{...I,children:i.jsx(jr,{asChild:!0,trapped:o,onMountAutoFocus:V(a,M=>{var G;M.preventDefault(),(G=P.current)==null||G.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:i.jsx(nr,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:g,children:i.jsx(Un,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:R,onCurrentTabStopIdChange:T,onEntryFocus:V(d,M=>{y.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:i.jsx(Mn,{role:"menu","aria-orientation":"vertical","data-state":Zp(h.open),"data-radix-menu-content":"",dir:y.dir,...b,...v,ref:j,style:{outline:"none",...v.style},onKeyDown:V(v.onKeyDown,M=>{const Q=M.target.closest("[data-radix-menu-content]")===M.currentTarget,A=M.ctrlKey||M.altKey||M.metaKey,z=M.key.length===1;Q&&(M.key==="Tab"&&M.preventDefault(),!A&&z&&$(M.key));const Y=P.current;if(M.target!==Y||!ok.includes(M.key))return;M.preventDefault();const O=E().filter(_=>!_.disabled).map(_=>_.ref.current);Np.includes(M.key)&&O.reverse(),Rk(O)}),onBlur:V(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(F.current),q.current="")}),onPointerMove:V(e.onPointerMove,Rr(M=>{const G=M.target,Q=W.current!==M.clientX;if(M.currentTarget.contains(G)&&Q){const A=M.clientX>W.current?"right":"left";ee.current=A,W.current=M.clientX}}))})})})})})})});Op.displayName=Oe;var vk="MenuGroup",ps=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return i.jsx(K.div,{role:"group",...n,ref:t})});ps.displayName=vk;var hk="MenuLabel",Mp=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return i.jsx(K.div,{...n,ref:t})});Mp.displayName=hk;var Sn="MenuItem",Xi="menu.itemSelect",ao=c.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=c.useRef(null),s=Gr(Sn,e.__scopeMenu),l=us(Sn,e.__scopeMenu),d=ae(t,a),u=c.useRef(!1),f=()=>{const p=a.current;if(!r&&p){const m=new CustomEvent(Xi,{bubbles:!0,cancelable:!0});p.addEventListener(Xi,g=>n==null?void 0:n(g),{once:!0}),wl(p,m),m.defaultPrevented?u.current=!1:s.onClose()}};return i.jsx(Dp,{...o,ref:d,disabled:r,onClick:V(e.onClick,f),onPointerDown:p=>{var m;(m=e.onPointerDown)==null||m.call(e,p),u.current=!0},onPointerUp:V(e.onPointerUp,p=>{var m;u.current||(m=p.currentTarget)==null||m.click()}),onKeyDown:V(e.onKeyDown,p=>{const m=l.searchRef.current!=="";r||m&&p.key===" "||oa.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});ao.displayName=Sn;var Dp=c.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,s=us(Sn,r),l=Pp(r),d=c.useRef(null),u=ae(t,d),[f,p]=c.useState(!1),[m,g]=c.useState("");return c.useEffect(()=>{const x=d.current;x&&g((x.textContent??"").trim())},[a.children]),i.jsx(Er.ItemSlot,{scope:r,disabled:n,textValue:o??m,children:i.jsx(Kn,{asChild:!0,...l,focusable:!n,children:i.jsx(K.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:u,onPointerMove:V(e.onPointerMove,Rr(x=>{n?s.onItemLeave(x):(s.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,Rr(x=>s.onItemLeave(x))),onFocus:V(e.onFocus,()=>p(!0)),onBlur:V(e.onBlur,()=>p(!1))})})})}),xk="MenuCheckboxItem",$p=c.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return i.jsx(Wp,{scope:e.__scopeMenu,checked:r,children:i.jsx(ao,{role:"menuitemcheckbox","aria-checked":En(r)?"mixed":r,...o,ref:t,"data-state":vs(r),onSelect:V(o.onSelect,()=>n==null?void 0:n(En(r)?!0:!r),{checkForDefaultPrevented:!1})})})});$p.displayName=xk;var Lp="MenuRadioGroup",[bk,yk]=Dt(Lp,{value:void 0,onValueChange:()=>{}}),Fp=c.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=$e(n);return i.jsx(bk,{scope:e.__scopeMenu,value:r,onValueChange:a,children:i.jsx(ps,{...o,ref:t})})});Fp.displayName=Lp;var Vp="MenuRadioItem",Bp=c.forwardRef((e,t)=>{const{value:r,...n}=e,o=yk(Vp,e.__scopeMenu),a=r===o.value;return i.jsx(Wp,{scope:e.__scopeMenu,checked:a,children:i.jsx(ao,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":vs(a),onSelect:V(n.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,r)},{checkForDefaultPrevented:!1})})})});Bp.displayName=Vp;var ms="MenuItemIndicator",[Wp,wk]=Dt(ms,{checked:!1}),Gp=c.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=wk(ms,r);return i.jsx(Ce,{present:n||En(a.checked)||a.checked===!0,children:i.jsx(K.span,{...o,ref:t,"data-state":vs(a.checked)})})});Gp.displayName=ms;var Ck="MenuSeparator",zp=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return i.jsx(K.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});zp.displayName=Ck;var Sk="MenuArrow",qp=c.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=Wr(r);return i.jsx(Dn,{...o,...n,ref:t})});qp.displayName=Sk;var gs="MenuSub",[Ek,Hp]=Dt(gs),Up=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,a=yt(gs,t),s=Wr(t),[l,d]=c.useState(null),[u,f]=c.useState(null),p=$e(o);return c.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),i.jsx(Tr,{...s,children:i.jsx(Tp,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:f,children:i.jsx(Ek,{scope:t,contentId:me(),triggerId:me(),trigger:l,onTriggerChange:d,children:r})})})};Up.displayName=gs;var br="MenuSubTrigger",Kp=c.forwardRef((e,t)=>{const r=yt(br,e.__scopeMenu),n=Gr(br,e.__scopeMenu),o=Hp(br,e.__scopeMenu),a=us(br,e.__scopeMenu),s=c.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:d}=a,u={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const p=l.current;return()=>{window.clearTimeout(p),d(null)}},[l,d]),i.jsx(cs,{asChild:!0,...u,children:i.jsx(Dp,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":Zp(r.open),...e,ref:ke(t,o.onTriggerChange),onClick:p=>{var m;(m=e.onClick)==null||m.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:V(e.onPointerMove,Rr(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!r.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:V(e.onPointerLeave,Rr(p=>{var g,x;f();const m=(g=r.content)==null?void 0:g.getBoundingClientRect();if(m){const v=(x=r.content)==null?void 0:x.dataset.side,h=v==="right",y=h?-5:5,b=m[h?"left":"right"],C=m[h?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+y,y:p.clientY},{x:b,y:m.top},{x:C,y:m.top},{x:C,y:m.bottom},{x:b,y:m.bottom}],side:v}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:V(e.onKeyDown,p=>{var g;const m=a.searchRef.current!=="";e.disabled||m&&p.key===" "||ak[n.dir].includes(p.key)&&(r.onOpenChange(!0),(g=r.content)==null||g.focus(),p.preventDefault())})})})});Kp.displayName=br;var Yp="MenuSubContent",Xp=c.forwardRef((e,t)=>{const r=Ap(Oe,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=yt(Oe,e.__scopeMenu),s=Gr(Oe,e.__scopeMenu),l=Hp(Yp,e.__scopeMenu),d=c.useRef(null),u=ae(t,d);return i.jsx(Er.Provider,{scope:e.__scopeMenu,children:i.jsx(Ce,{present:n||a.open,children:i.jsx(Er.Slot,{scope:e.__scopeMenu,children:i.jsx(fs,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;s.isUsingKeyboardRef.current&&((p=d.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:V(e.onFocusOutside,f=>{f.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:V(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:V(e.onKeyDown,f=>{var g;const p=f.currentTarget.contains(f.target),m=sk[s.dir].includes(f.key);p&&m&&(a.onOpenChange(!1),(g=l.trigger)==null||g.focus(),f.preventDefault())})})})})})});Xp.displayName=Yp;function Zp(e){return e?"open":"closed"}function En(e){return e==="indeterminate"}function vs(e){return En(e)?"indeterminate":e?"checked":"unchecked"}function Rk(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function kk(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Nk(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=kk(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==r));const d=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return d!==r?d:void 0}function jk(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const l=t[a],d=t[s],u=l.x,f=l.y,p=d.x,m=d.y;f>n!=m>n&&r<(p-u)*(n-f)/(m-f)+u&&(o=!o)}return o}function Pk(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return jk(r,t)}function Rr(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Tk=_p,_k=cs,Ak=Ip,Ik=Op,Ok=ps,Mk=Mp,Dk=ao,$k=$p,Lk=Fp,Fk=Bp,Vk=Gp,Bk=zp,Wk=qp,Gk=Up,zk=Kp,qk=Xp,so="DropdownMenu",[Hk]=we(so,[jp]),Se=jp(),[Uk,Jp]=Hk(so),Qp=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,d=Se(t),u=c.useRef(null),[f,p]=be({prop:o,defaultProp:a??!1,onChange:s,caller:so});return i.jsx(Uk,{scope:t,triggerId:me(),triggerRef:u,contentId:me(),open:f,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(m=>!m),[p]),modal:l,children:i.jsx(Tk,{...d,open:f,onOpenChange:p,dir:n,modal:l,children:r})})};Qp.displayName=so;var em="DropdownMenuTrigger",tm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=Jp(em,r),s=Se(r);return i.jsx(_k,{asChild:!0,...s,children:i.jsx(K.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:ke(t,a.triggerRef),onPointerDown:V(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:V(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});tm.displayName=em;var Kk="DropdownMenuPortal",rm=e=>{const{__scopeDropdownMenu:t,...r}=e,n=Se(t);return i.jsx(Ak,{...n,...r})};rm.displayName=Kk;var nm="DropdownMenuContent",om=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Jp(nm,r),a=Se(r),s=c.useRef(!1);return i.jsx(Ik,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,l=>{var d;s.current||(d=o.triggerRef.current)==null||d.focus(),s.current=!1,l.preventDefault()}),onInteractOutside:V(e.onInteractOutside,l=>{const d=l.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,f=d.button===2||u;(!o.modal||f)&&(s.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)"}})});om.displayName=nm;var Yk="DropdownMenuGroup",am=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return i.jsx(Ok,{...o,...n,ref:t})});am.displayName=Yk;var Xk="DropdownMenuLabel",sm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return i.jsx(Mk,{...o,...n,ref:t})});sm.displayName=Xk;var Zk="DropdownMenuItem",im=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return i.jsx(Dk,{...o,...n,ref:t})});im.displayName=Zk;var Jk="DropdownMenuCheckboxItem",lm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return i.jsx($k,{...o,...n,ref:t})});lm.displayName=Jk;var Qk="DropdownMenuRadioGroup",cm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return i.jsx(Lk,{...o,...n,ref:t})});cm.displayName=Qk;var eN="DropdownMenuRadioItem",dm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return i.jsx(Fk,{...o,...n,ref:t})});dm.displayName=eN;var tN="DropdownMenuItemIndicator",um=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return i.jsx(Vk,{...o,...n,ref:t})});um.displayName=tN;var rN="DropdownMenuSeparator",fm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return i.jsx(Bk,{...o,...n,ref:t})});fm.displayName=rN;var nN="DropdownMenuArrow",oN=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return i.jsx(Wk,{...o,...n,ref:t})});oN.displayName=nN;var aN=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,s=Se(t),[l,d]=be({prop:n,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return i.jsx(Gk,{...s,open:l,onOpenChange:d,children:r})},sN="DropdownMenuSubTrigger",pm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return i.jsx(zk,{...o,...n,ref:t})});pm.displayName=sN;var iN="DropdownMenuSubContent",mm=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return i.jsx(qk,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});mm.displayName=iN;var lN=Qp,cN=tm,gm=rm,vm=om,dN=am,hm=sm,xm=im,bm=lm,uN=cm,ym=dm,wm=um,Cm=fm,fN=aN,Sm=pm,Em=mm;const pN=lN,mN=cN,gN=dN,vN=gm,hN=fN,xN=uN,Rm=c.forwardRef(({className:e,inset:t,children:r,...n},o)=>i.jsxs(Sm,{ref:o,className:k("qodo qodo-dropdown-menu-sub-trigger flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:text-[var(--text-interactive-neutral-hover)] hover:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n,children:[r,i.jsx(vl,{className:"ml-auto"})]}));Rm.displayName=Sm.displayName;const km=c.forwardRef(({className:e,...t},r)=>i.jsx(Em,{ref:r,className:k("z-50 min-w-[8rem] overflow-hidden cursor-pointer rounded-sm border 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","text-[var(--text-interactive-neutral-idle)] bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] px-1 py-1",e),...t}));km.displayName=Em.displayName;const Nm=c.forwardRef(({className:e,sideOffset:t=4,...r},n)=>i.jsx(gm,{children:i.jsx(vm,{ref:n,sideOffset:t,className:k("qodo qodo-dropdown-menu-content z-50 min-w-[8rem] overflow-hidden rounded-sm border text-[var(--text-interactive-neutral-idle)] bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] px-1 py-1 ","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 [&_svg]:text-inherit dark:[&_svg]:text-inherit",e),...r})}));Nm.displayName=vm.displayName;const hs=c.forwardRef(({className:e,inset:t,...r},n)=>i.jsx(xm,{ref:n,className:k("w-full qodo qodo-dropdown-menu-item relative flex select-none items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] cursor-pointer data-[disabled]:cursor-default",t&&"pl-8",e),...r}));hs.displayName=xm.displayName;const jm=c.forwardRef(({className:e,children:t,checked:r,...n},o)=>i.jsxs(bm,{ref:o,className:k("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:cursor-default",e),checked:r,...n,children:[i.jsx("span",{className:"absolute right-3 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(wm,{children:i.jsx(rr,{className:"h-4 w-4"})})}),t]}));jm.displayName=bm.displayName;const Pm=c.forwardRef(({className:e,children:t,...r},n)=>i.jsxs(ym,{ref:n,className:k("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-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] data-[disabled]:cursor-default",e),...r,children:[i.jsx("span",{className:"absolute right-3 flex h-3.5 w-3.5 items-center justify-center",children:i.jsx(wm,{children:i.jsx(rr,{className:"h-[18px] w-[18px]"})})}),t]}));Pm.displayName=ym.displayName;const xs=c.forwardRef(({className:e,inset:t,...r},n)=>i.jsx(hm,{ref:n,className:k("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));xs.displayName=hm.displayName;const wt=c.forwardRef(({className:e,...t},r)=>i.jsx(Cm,{ref:r,className:k("-mx-1 my-1 h-px bg-purple-muted-500",e),...t}));wt.displayName=Cm.displayName;const Tm=({className:e,...t})=>i.jsx("span",{className:k("ml-auto text-xs tracking-widest [&>svg]:size-4 self-end",e),...t});Tm.displayName="DropdownMenuEndAndornment";const bN=({radioItem:e})=>i.jsxs(Pm,{className:"m-0 rounded-none gap-2 pl-3 pr-9 py-1.5",value:e.value,disabled:e.disabled,onSelect:t=>t.preventDefault(),children:[e.icon,e.label]}),yN=({radioGroupItem:e})=>i.jsxs(i.Fragment,{children:[i.jsx(xN,{value:e.value,onValueChange:e.onValueChange,children:e.radioItems.map((t,r)=>i.jsx(bN,{radioItem:t},`item-${r}`))}),e.separator&&i.jsx(wt,{})]}),wN=({actionItem:e})=>i.jsxs("div",{className:"w-full [&>button]:w-full",children:[i.jsx(Vr,{content:e.tooltip,providerProps:{delayDuration:200},children:i.jsx(hs,{className:"m-0 rounded-xs py-1.5 px-3 outline-none text-text-interactive-neutral-idle",disabled:e.disabled||e.loading,onClick:e.onClick,onSelect:e.onSelect,children:i.jsxs("div",{className:"flex items-center gap-2 w-full",children:[e.loading&&i.jsx(xl,{className:"h-4 w-4 motion-preset-spin motion-duration-1000"}),!e.loading&&e.icon,e.label,e.endAndornment&&i.jsx(Tm,{children:e.endAndornment})]})})}),e.separator&&i.jsx(wt,{})]}),CN=({checkboxItem:e})=>i.jsxs(jm,{className:"gap-2 m-0 rounded-none py-1.5 pl-3 pr-9 outline-none",checked:e.checked,onCheckedChange:e.onSelect,disabled:e.disabled,onSelect:t=>t.preventDefault(),children:[e.icon,e.label]}),SN=({checkboxGroupItem:e})=>i.jsxs(i.Fragment,{children:[i.jsx(gN,{children:e.checkboxes.map((t,r)=>i.jsx(CN,{checkboxItem:t},`item-${r}`))}),e.separator&&i.jsx(wt,{})]}),EN=({subMenuItem:e})=>i.jsxs(i.Fragment,{children:[i.jsxs(hN,{children:[i.jsxs(Rm,{disabled:e.disabled,className:"m-0 rounded-none py-1.5 pl-3 pr-1",children:[e.icon,e.label]}),i.jsx(vN,{children:i.jsx(km,{children:e.subItems.map((t,r)=>_m(t,r))})})]}),e.separator&&i.jsx(wt,{})]}),RN=({menuItem:e})=>i.jsx(xs,{className:"text-purple-muted-300 px-3 font-normal",children:e.label}),kN=()=>i.jsx(wt,{}),_m=(e,t)=>{switch(e.type){case"ActionMenuItem":return i.jsx(wN,{actionItem:e},`item-${t}`);case"CheckboxGroup":return i.jsx(SN,{checkboxGroupItem:e},`item-${t}`);case"RadioGroup":return i.jsx(yN,{radioGroupItem:e},`item-${t}`);case"SubMenuItem":return i.jsx(EN,{subMenuItem:e},`item-${t}`);case"MenuLabel":return i.jsx(RN,{menuItem:e},`item-${t}`);case"Separator":return i.jsx(kN,{},`item-${t}`);default:return null}},NN={s:"min-w-[140px]",m:"min-w-[249px]",l:"min-w-[257px]"},jN=({header:e})=>i.jsxs("div",{className:"flex flex-col gap-1",children:[i.jsx("span",{className:"text-purple-muted-300",children:e.title}),i.jsx("span",{children:e.label})]}),PN=({header:e})=>e?i.jsxs(i.Fragment,{children:[i.jsx(xs,{className:"text-purple-100 font-normal px-3",children:e.type==="MenuTitleHeader"&&i.jsx(jN,{header:e})}),i.jsx(wt,{className:"bg-purple-muted-500"})]}):null,TN=({footer:e})=>e?i.jsxs(i.Fragment,{children:[i.jsx(wt,{className:"bg-purple-muted-500"}),i.jsxs(hs,{onClick:e.action,disabled:e.disabled,className:"cursor-pointer m-0 rounded-none py-1.5 px-3 text-purple-300 focus:text-purple-300 focus:bg-transparent",children:[e.icon,e.label]})]}):null,Am=({menuItems:e,header:t,footer:r,triggerElement:n,size:o="s",asChild:a=!1,side:s="bottom",modal:l=!1,disabled:d=!1,className:u=""})=>{const f=ml(NN,{[o]:o,className:u},!1);return i.jsx("div",{className:k("qodo qodo-dropdown"),children:i.jsxs(pN,{modal:l,children:[i.jsx(mN,{asChild:a,className:"select-none outline-none flex items-center",disabled:d,children:n}),i.jsxs(Nm,{side:s,align:"end",className:f,children:[i.jsx(PN,{header:t}),e.filter(p=>!p.isHidden).map((p,m)=>_m(p,m)),i.jsx(TN,{footer:r})]})]})})},_N=({triggerAriaLabel:e="Open actions menu",className:t,...r})=>i.jsx(tt,{variant:"ghost",size:"icon","aria-label":e,className:k("flex items-center justify-center h-4 w-4",t),...r,children:i.jsx(hl,{className:"h-4 w-4"})}),AN=({menuItems:e=[],triggerElement:t=_N,triggerProps:r={},className:n,size:o="s",asChild:a=!1,side:s="bottom",modal:l=!1})=>i.jsx("div",{className:n,onClick:d=>d.stopPropagation(),children:i.jsx(Am,{triggerElement:i.jsx(t,{className:k("flex items-center justify-center",r==null?void 0:r.className),...r}),menuItems:e,size:o,asChild:a,side:s,modal:l,disabled:r==null?void 0:r.disabled})}),IN={"data-lpignore":"true","data-1p-ignore":"true","data-bitwarden-watching":"false","data-form-type":"other","data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",spellCheck:!1,autoComplete:"off"},Zi={SMALL:"small",LARGE:"large"},ON={GHOST:"ghost"},MN=({containerClassName:e,className:t,searchSize:r=Zi.SMALL,disabled:n=!1,disableFilterIcon:o=!0,...a})=>{const s=r===Zi.LARGE?"pl-12 py-3 pr-4 h-[45px]":"pl-9 py-1.5 pr-2 h-[33px]",l=k("absolute top-1/2 h-4 w-4 -translate-y-1/2",n?"text-purple-muted-600":"text-purple-muted-400"),d=k("text-purple-muted-200 dark:border-purple-muted-600 dark:text-purple-muted-200 dark:bg-[#1C1C1C] dark:placeholder:text-purple-muted-400 pl-9",{"bg-transparent dark:bg-transparent":a.variant===ON.GHOST},{"pr-9":!o});return i.jsxs("div",{className:k("qodo qodo-search-input","relative",e),children:[i.jsx(bl,{className:k(l,"left-3")}),i.jsx(Nr,{className:k(s,d,t),disabled:n,...a,...IN}),!o&&i.jsx(Cv,{className:k(l,"right-3")})]})},DN=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,$N=e=>e.split(/[,\s]+/).map(t=>t.trim()).filter(Boolean),LN=(e,t)=>{var n;if(!(t!=null&&t.length))return!0;const r=(n=e.split("@")[1])==null?void 0:n.toLowerCase();return t.some(o=>r===o.toLowerCase())},FN=(e,t)=>e.map(r=>{const n=DN.test(r),o=n?LN(r,t==null?void 0:t.domains):void 0;return{email:r,isValid:n&&o!==!1,isDomainValid:o}}),VN=(e,t,r)=>{const n=FN(e,r),o=[...t];for(const a of n)o.some(l=>l.email===a.email)||o.push(a);return o},BN=({onChange:e=()=>{},organization:t})=>{const[r,n]=S.useState([]),o=S.useCallback(u=>{e(u)},[e]),a=S.useCallback(u=>{n(u),o(u)},[o]),s=S.useCallback(u=>{const f=$N(u);if(f.length===0)return;const p=VN(f,r,t);a(p)},[r,a,t]),l=S.useCallback(()=>{a([])},[a]),d=S.useCallback(u=>{const f=r.filter(p=>p.email!==u);a(f)},[r,a]);return{emails:r,setEmails:a,addTokens:s,removeToken:d,clearAll:l,notify:o}},WN=e=>{const{draft:t,setDraft:r,addTokens:n,allSelected:o,setAllSelected:a,clearAll:s,emails:l,setEmails:d,notify:u}=e;return f=>{if((f.key==="a"||f.key==="A")&&(f.metaKey||f.ctrlKey)){f.preventDefault(),a(!0);return}if(o&&(f.key==="Backspace"||f.key==="Delete")){f.preventDefault(),a(!1),s(),r("");return}if(o&&f.key==="Escape"){f.preventDefault(),a(!1);return}if(o&&f.key.length===1&&!f.metaKey&&!f.ctrlKey&&!f.altKey&&(a(!1),s()),f.key==="Backspace"&&t.length===0&&l.length>0){f.preventDefault();const p=l[l.length-1],m=l.slice(0,-1);d(m),r(p.email),u(m);return}if(f.key==="Enter"){f.preventDefault(),t.trim()&&(n(t),r(""));return}[",",";"," "].includes(f.key)&&(f.preventDefault(),t.trim()&&(n(t),r("")))}},GN=({email:e,isValid:t,onRemove:r})=>{const n=o=>{o.stopPropagation(),r(e)};return i.jsxs(Jt,{className:"px-2 group whitespace-nowrap flex-shrink-0",variant:t?"success":"error",size:"sm",children:[i.jsx("span",{className:"max-w-[200px] truncate",children:e}),i.jsx("button",{onClick:n,className:"ml-1 opacity-70 hover:opacity-100 transition-opacity flex-shrink-0",type:"button",children:i.jsx(Nn,{size:12})})]})},zN=({hasContent:e,onClearAll:t,emails:r,invalidEmailError:n,invalidDomainError:o})=>{const{formatErrors:a,domainErrors:s,totalInvalidCount:l}=S.useMemo(()=>{const g=r.filter(h=>!h.isValid),x=g.filter(h=>!h.email.includes("@")||h.isDomainValid===void 0),v=g.filter(h=>h.isDomainValid===!1);return{formatErrors:x,domainErrors:v,totalInvalidCount:g.length}},[r]),d=g=>{g.preventDefault(),g.stopPropagation()},u=g=>{d(g),t()},f=g=>{d(g)},p=g=>{g.stopPropagation()},m=(g,x)=>x.length===0?i.jsx(i.Fragment,{}):i.jsxs("div",{className:"space-y-1 text-purple-muted-200",children:[i.jsxs("span",{className:"font-medium border-b border-purple-muted-200",children:[g,":"]}),x.map((v,h)=>i.jsx("p",{className:"break-all",children:v.email},`${g}-${h}-${v.email}`))]});return i.jsxs(i.Fragment,{children:[e&&i.jsx("button",{type:"button",onClick:u,className:"absolute right-3 top-1/2 -translate-y-1/2 hover:text-purple-muted-100",children:i.jsx(Ov,{className:"h-4 w-4"})}),l>0&&i.jsx("div",{className:"absolute flex center align-center right-[34px] top-1/2 -translate-y-1/2 [&>button]:h-4",children:i.jsx(Vr,{triggerProps:{asChild:!0},content:i.jsx("div",{onClick:f,onWheel:p,className:"max-w-[min(90vw,32rem)] max-h-[min(60vh,20rem)] p-3 rounded-md border dark:border-red-800 shadow-lg dark:bg-purple-muted-800 dark:text-purple-muted-100",children:i.jsxs("div",{className:"flex flex-col gap-1 text-xs max-h-64 overflow-y-auto pr-1 no-scrollbar",children:[m(n,a),m(o,s)]})}),providerProps:{delayDuration:200},contentProps:{side:"bottom",align:"end",className:"border-0 bg-transparent p-0 m-0",disableArrow:!0},children:i.jsx("button",{type:"button","aria-label":`${l} invalid emails`,className:"text-red-400 hover:text-red-300",children:i.jsx(Dv,{className:"size-[18px]"})})})})]})},qN=({onChange:e,disabled:t=!1,inviteMembersPlaceholder:r=({domain:f})=>`Enter email addresses (e.g., user@${f})`,inviteMembersDisabledTooltip:n="You don't have permission to modify email addresses",organization:o,inputClassName:a,chipClassName:s,wrapperClassName:l,invalidEmailError:d="Invalid email",invalidDomainError:u="Email domain is not allowed"})=>{const f=S.useRef(null),p=S.useRef(null),[m,g]=S.useState(""),[x,v]=S.useState(!1),{emails:h,setEmails:y,addTokens:b,removeToken:C,clearAll:E,notify:R}=BN({onChange:e,organization:o}),T=WN({draft:m,setDraft:g,addTokens:b,allSelected:x,setAllSelected:v,clearAll:E,emails:h,setEmails:y,notify:R}),P=()=>{var Q;const G=((Q=o==null?void 0:o.domains)==null?void 0:Q[0])||"example.com";return r({domain:G})},j=S.useCallback(G=>{g(G.target.value)},[]),F=S.useCallback(()=>{m.trim()&&(b(m),g("")),v(!1)},[m,b]),q=S.useCallback(G=>{const Q=G.clipboardData.getData("text");Q&&(G.preventDefault(),b(Q),g(""))},[b]),re=S.useCallback(()=>{var G;(G=p.current)==null||G.focus()},[p]),te=S.useCallback(()=>{v(!1)},[]),ee=S.useCallback(G=>{var A;const Q=G.relatedTarget;Q&&((A=f.current)!=null&&A.contains(Q))||m.trim()&&(b(m),g(""))},[m,b]),W=h.length>0,D=!W&&m.length===0,I=W||m.length>0,$=k("bg-transparent text-sm outline-none border-0 p-0 h-6 shadow-none focus-visible:ring-0 whitespace-nowrap text-purple-muted-200 placeholder:text-purple-muted-400",W?"flex-none shrink-0 overflow-x-auto overflow-y-hidden no-scrollbar":"flex-1 !min-w-full overflow-hidden",{"opacity-50 cursor-not-allowed":t},a),N=k("inline-flex items-center gap-1 no-scrollbar",W?"w-max":"w-full",s),M=k("qodo qodo-email-chips-input","relative w-full max-w-full min-w-0 overflow-hidden rounded-md border pl-9 pr-14 py-2 pl-9 pr-14 py-2 focus-within:ring-1 border-purple-muted-500 dark:bg-purple-muted-800 focus-within:ring-purple-muted-400",l);return i.jsx(Vr,{triggerProps:{asChild:!0},content:t?n:void 0,children:i.jsxs("div",{ref:f,className:M,onClick:re,onFocus:te,onBlur:ee,children:[i.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-purple-muted-400",children:i.jsx(Rv,{className:"w-4 h-4"})}),i.jsx("div",{className:"w-full text-start max-w-full min-w-0 overflow-x-auto overflow-y-hidden no-scrollbar",children:i.jsxs("div",{className:N,children:[h.map((G,Q)=>i.jsx(GN,{email:G.email,isValid:G.isValid,onRemove:C},`email-${Q}-${G.email}`)),i.jsx("input",{ref:p,value:m,onChange:j,onKeyDown:T,onBlur:F,onPaste:q,className:$,placeholder:D?P():"",disabled:t})]})}),i.jsx(zN,{hasContent:I,onClearAll:E,emails:h,invalidEmailError:d,invalidDomainError:u})]})})},tn={DEFAULT:"default",PRIMARY:"primary",ACTIVE:"active"},Ji={SM:"sm",MD:"md"};function HN({title:e,description:t,caption:r,additionalContent:n,titleClassName:o,descriptionClassName:a,variant:s=tn.DEFAULT,className:l,icon:d,iconClassName:u,size:f=Ji.SM}){const p=k("p-4 flex flex-row items-center gap-4","border-[var(--border-panel-neutral)] dark:border-[var(--border-panel-neutral)] rounded-md fill-[var(--fill-panel-neutral)]",{"px-6 gap-6":f===Ji.MD},l),m=k("p-0 m-0 text-xs","text-[var(--color-text-bg-neutral-mild)] dark:text-[var(--color-text-bg-neutral-mild)] font-normal",o),g=k("w-8 h-8 flex items-center justify-center","bg-purple-muted-600 rounded-full p-2.5",u),x=k("text-xl font-medium p-0 m-0 leading-5",{"text-muted-foreground dark:text-white":s===tn.DEFAULT,"text-purple-300 dark:text-purple-300":s===tn.PRIMARY,"text-[var(--color-text-tag-positive-idle)] dark:text-[var(--color-text-tag-positive-idle)]":s===tn.ACTIVE},a);return i.jsxs(Dd,{className:p,children:[d&&i.jsx("div",{className:g,children:d}),i.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[i.jsx($d,{className:"m-0 p-0 gap-0",children:i.jsx(Ld,{className:m,children:e})}),i.jsxs(Vd,{className:"m-0 p-0 flex flex-col gap-2",children:[t&&i.jsx(Fd,{className:x,children:t}),r&&i.jsx("span",{className:"text-xs text-foreground dark:text-foreground tracking-[0.12px]",children:r}),n]})]})]})}exports.Accordion=U0;exports.AccordionContent=X0;exports.AccordionItem=K0;exports.AccordionTrigger=Y0;exports.ActionsCell=AN;exports.Badge=Jt;exports.BadgeCell=KR;exports.BaseCell=na;exports.Button=tt;exports.Card=Dd;exports.CardAction=Tw;exports.CardContent=Vd;exports.CardDescription=Fd;exports.CardFooter=_w;exports.CardHeader=$d;exports.CardTitle=Ld;exports.Checkbox=as;exports.CheckboxGroup=os;exports.ClassHelper=ml;exports.Combobox=Ra;exports.Dialog=ew;exports.DialogClose=rw;exports.DialogContent=nw;exports.DialogDescription=iw;exports.DialogFooter=aw;exports.DialogHeader=ow;exports.DialogOverlay=bd;exports.DialogPortal=xd;exports.DialogTitle=sw;exports.DialogTrigger=tw;exports.Dropdown=Am;exports.EmailChipsInput=qN;exports.Form=Pe;exports.FormProvider=Yu;exports.Input=Nr;exports.InsightCard=HN;exports.NumberCell=YR;exports.PAGINATION_MODE=xr;exports.Progress=Zw;exports.RadioGroup=Ka;exports.RadioGroupItem=Xa;exports.SearchInput=MN;exports.Select=Jf;exports.SelectContent=Fc;exports.SelectGroup=iy;exports.SelectItem=Bc;exports.SelectLabel=Vc;exports.SelectScrollDownButton=va;exports.SelectScrollUpButton=ga;exports.SelectSeparator=Wc;exports.SelectTrigger=Lc;exports.SelectV1=sy;exports.SelectValue=ly;exports.Skeleton=Ud;exports.SortableHeaderCell=XR;exports.Steps=IR;exports.Switch=s0;exports.Table=UR;exports.Tabs=nC;exports.TabsContent=sC;exports.TabsList=oC;exports.TabsTrigger=aC;exports.TagsInput=_f;exports.Toggle=l0;exports.ToggleGroup=R0;exports.ToggleGroupItem=k0;exports.Tooltip=Vr;exports.Typography=Vu;exports.borderRadius=ng;exports.cn=k;exports.colors=tg;exports.spacing=rg;exports.typography=og;exports.typographyVariants=Fu;exports.useFormContext=Xu;
208
+ */function Al(e,t){return e?zk(e)?d.createElement(e,t):e:null}function zk(e){return qk(e)||typeof e=="function"||Hk(e)}function qk(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Hk(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const lm=d.forwardRef(({className:e,wrapperClassName:t,...r},n)=>l.jsx("div",{"data-table-scroll-container":!0,className:T("max-h-[100%] min-h-0 overflow-auto rounded-lg border border-purple-muted-600",t),children:l.jsx("table",{ref:n,className:T("w-full caption-bottom text-sm",e),...r})}));lm.displayName="Table";const cm=d.forwardRef(({className:e,...t},r)=>l.jsx("thead",{ref:r,className:T("sticky top-0 z-10 b-0 [&>tr]:hover:bg-transparent",e),...t}));cm.displayName="TableHeader";const um=d.forwardRef(({className:e,...t},r)=>l.jsx("tbody",{ref:r,className:T("[&_tr:last-child]:border-0 [&_tr:first-child]:border-top-0",e),...t}));um.displayName="TableBody";const Uk=d.forwardRef(({className:e,...t},r)=>l.jsx("tfoot",{ref:r,className:T("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Uk.displayName="TableFooter";const it=d.forwardRef(({className:e,...t},r)=>l.jsx("tr",{ref:r,className:T("border-b border-purple-muted-600 transition-colors hover:bg-muted/50 data-[state=selected]:bg-purple-muted-600/30",e,{"cursor-pointer hover:bg-purple-muted-600/20":!!t.onClick}),...t}));it.displayName="TableRow";const dm=d.forwardRef(({className:e,...t},r)=>l.jsx("th",{ref:r,className:T("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));dm.displayName="TableHead";const mt=d.forwardRef(({className:e,...t},r)=>l.jsx("td",{ref:r,className:T("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));mt.displayName="TableCell";const Kk=d.forwardRef(({className:e,...t},r)=>l.jsx("caption",{ref:r,className:T("mt-4 text-sm text-muted-foreground",e),...t}));Kk.displayName="TableCaption";const Yk=({title:e="No results"})=>l.jsx("div",{className:"grid place-items-center text-foreground h-full w-full p-14",children:e}),Xk=({columnsCount:e,rowsCount:t=8})=>l.jsx(l.Fragment,{children:Array.from({length:t}).map((r,n)=>l.jsx(it,{children:Array.from({length:e}).map((o,a)=>l.jsx(mt,{children:l.jsx(Ad,{className:"h-5.5 w-full"})},`loading-cell-${a}`))},`loading-row-${n}`))}),Zk=e=>l.jsxs("svg",{width:"280",height:"195",viewBox:"0 0 280 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[l.jsxs("g",{clipPath:"url(#clip0_65_2990)",children:[l.jsx("path",{d:"M228.918 10.4603L230.958 3.72536C230.958 3.72536 232.388 0.863297 235.828 2.69334C238.748 4.24674 237.388 7.1514 237.388 7.1514L233.008 13.2586",fill:"white"}),l.jsx("path",{d:"M228.918 10.4603L230.958 3.72536C230.958 3.72536 232.388 0.863297 235.828 2.69334C238.748 4.24674 237.388 7.1514 237.388 7.1514L233.008 13.2586",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M101.487 163.737L94.1771 171.823L88.0371 163.237L78.7071 173.664L73.6671 165.003L63.3071 174.856L60.1271 165.886L48.9371 176.473L45.0671 167.067L33.8771 177.952L30.2871 168.983L19.0971 179.718L14.7971 170.217L3.80712 180.654C-12.9029 120.029 66.1271 113.464 81.2071 111.017C96.2871 108.57 99.7371 98.9092 99.7371 98.9092",fill:"black"}),l.jsx("path",{d:"M101.487 163.737L94.1771 171.823L88.0371 163.237L78.7071 173.664L73.6671 165.003L63.3071 174.856L60.1271 165.886L48.9371 176.473L45.0671 167.067L33.8771 177.952L30.2871 168.983L19.0971 179.718L14.7971 170.217L3.80712 180.654C-12.9029 120.029 66.1271 113.464 81.2071 111.017C96.2871 108.57 99.7371 98.9092 99.7371 98.9092",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",fill:"white"}),l.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763L201.748 52.7432Z",fill:"white"}),l.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M169.278 124.402C172.948 139.926 177.038 167.153 156.118 183.549C156.118 183.549 179.558 182.261 179.558 193.316H139.768C139.768 193.316 139.898 186.251 144.708 183.666C144.708 183.666 130.798 176.484 130.168 154.715L130.468 141.394",fill:"white"}),l.jsx("path",{d:"M169.278 124.402C172.948 139.926 177.038 167.153 156.118 183.549C156.118 183.549 179.558 182.261 179.558 193.316H139.768C139.768 193.316 139.898 186.251 144.708 183.666C144.708 183.666 130.798 176.484 130.168 154.715L130.468 141.394",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M89.0353 182.686C75.1053 138.51 106.825 68.8089 143.315 34.4425C185.995 -5.7651 243.385 -13.4257 278.755 68.5323L270.145 71.5115C270.365 71.6285 238.435 46.4974 222.705 46.4974C217.675 46.4974 214.215 50.2532 210.675 54.6687C192.345 77.5336 173.815 147.99 131.485 147.905C131.485 147.905 132.205 179.43 99.6853 183.92C99.6853 183.92 124.525 182.282 124.525 193.315H83.9453C84.2153 192.709 83.5353 185.016 89.0453 182.686H89.0353Z",fill:"white",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M130.318 157.438C130.318 157.438 133.678 142.638 127.758 131.765",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M216.647 40.9229L202.547 62.1066",stroke:"black",strokeWidth:"3",strokeLinejoin:"round"}),l.jsx("path",{d:"M206.769 13.823L204.079 6.74764C204.079 6.74764 201.969 2.55554 206.769 1.45965C211.259 0.427586 211.509 4.64092 211.509 4.64092L211.529 12.8974",fill:"white"}),l.jsx("path",{d:"M206.769 13.823L204.079 6.74764C204.079 6.74764 201.969 2.55554 206.769 1.45965C211.259 0.427586 211.509 4.64092 211.509 4.64092L211.529 12.8974",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M200.648 56.6694L209.918 53.4668L205.068 60.2018L211.528 59.0633L206.258 64.6492L211.688 64.6917L204.468 70.6181",fill:"white"}),l.jsx("path",{d:"M200.648 56.6694L209.918 53.4668L205.068 60.2018L211.528 59.0633L206.258 64.6492L211.688 64.6917L204.468 70.6181",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M152.234 77.7571C159.214 84.7474 169.364 89.9397 178.244 89.9397C193.344 89.9397 208.224 73.6821 204.564 59.1163C204.074 57.1692 202.094 56.1158 200.334 56.8393L182.354 64.1808C181.694 64.4468 180.974 64.4894 180.304 64.2659C177.674 63.4147 170.604 60.5952 163.084 53.1367",fill:"white"}),l.jsx("path",{d:"M152.234 77.7571C159.214 84.7474 169.364 89.9397 178.244 89.9397C193.344 89.9397 208.224 73.6821 204.564 59.1163C204.074 57.1692 202.094 56.1158 200.334 56.8393L182.354 64.1808C181.694 64.4468 180.974 64.4894 180.304 64.2659C177.674 63.4147 170.604 60.5952 163.084 53.1367",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M275.767 61.9785L263.938 66.8728L270.147 71.5118L278.568 68.3517L275.767 61.9785Z",fill:"#7A68FA",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M225.147 40.4968C231.289 40.4968 236.267 35.1997 236.267 28.6654C236.267 22.1311 231.289 16.834 225.147 16.834C219.006 16.834 214.027 22.1311 214.027 28.6654C214.027 35.1997 219.006 40.4968 225.147 40.4968Z",fill:"white",stroke:"black",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M225.147 32.9536C227.373 32.9536 229.177 31.0338 229.177 28.6657C229.177 26.2976 227.373 24.3779 225.147 24.3779C222.921 24.3779 221.117 26.2976 221.117 28.6657C221.117 31.0338 222.921 32.9536 225.147 32.9536Z",fill:"black"}),l.jsx("path",{d:"M244.89 26.0693L240.93 29.623L245.78 32.6128",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M220.18 55.8399C220.18 55.8399 223.26 53.4567 227.08 54.9675",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M223.938 59.5836C223.938 59.5836 227.918 58.2004 230.658 60.4986",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),l.jsx("defs",{children:l.jsx("clipPath",{id:"clip0_65_2990",children:l.jsx("rect",{width:"279",height:"195",fill:"white",transform:"translate(0.5)"})})})]}),_l=({title:e="There's nothing to show",description:t="No items to display"})=>l.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-14",children:[l.jsx(Zk,{className:"mb-6"}),l.jsx("h4",{className:"mb-1 text-foreground",children:e}),l.jsx("p",{className:"text-purple-muted-300",children:t})]}),fm=({className:e,...t})=>l.jsx("nav",{role:"navigation","aria-label":"pagination",className:T("qodo qodo-pagination mx-auto flex w-full justify-center",e),...t});fm.displayName="Pagination";const pm=d.forwardRef(({className:e,...t},r)=>l.jsx("ul",{ref:r,className:T("flex flex-row items-center gap-1",e),...t}));pm.displayName="PaginationContent";const Lr=d.forwardRef(({className:e,...t},r)=>l.jsx("li",{ref:r,className:T("",e),...t}));Lr.displayName="PaginationItem";const mm=({className:e,isActive:t,size:r="icon",...n})=>l.jsx("a",{"aria-current":t?"page":void 0,className:T(ac({variant:t?"outline":"ghost",size:r}),e),...n});mm.displayName="PaginationLink";const gm=({className:e,...t})=>l.jsxs("span",{"aria-hidden":!0,className:T("flex h-9 w-9 items-center justify-center",e),...t,children:[l.jsx(rc,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"More pages"})]});gm.displayName="PaginationEllipsis";const Jk=({table:e,isLoading:t=!1})=>{const r=e.getPageCount(),n=e.getState().pagination.pageIndex+1,[o,a]=E.useState(r);E.useEffect(()=>{r>=1&&a(r)},[r]);const s=E.useMemo(()=>{const g="text-purple-muted-300 dark:text-purple-muted-300",h="hover:bg-purple-muted-600 hover:text-purple-muted-300 dark:hover:bg-purple-muted-600 dark:hover:text-purple-muted-300",v="bg-purple-muted-600 text-purple-muted-300 dark:bg-purple-muted-600 dark:text-purple-muted-300",x="border-none flex items-center justify-center w-8 h-8",b="pointer-events-none opacity-50 cursor-not-allowed";return{previous:T(n===1||t?"pointer-events-none opacity-50":"cursor-pointer",x,g,t&&b),next:T(n===r||t?"pointer-events-none opacity-50":"cursor-pointer",x,g,t&&b),link:y=>T(x,t?"cursor-not-allowed":"cursor-pointer",g,!t&&h,y&&v,t&&b)}},[n,r,t]),i=E.useCallback(g=>{if(t)return;const h=g-1;e.setPagination(v=>({...v,pageIndex:h}))},[e,t]),c=E.useCallback(()=>{t||n<=1||i(n-1)},[n,i,t]),u=E.useCallback(()=>{t||r<=1||n>=r||i(n+1)},[r,n,i,t]),f=E.useCallback(g=>{if(g<=1)return[];if(g<=7)return Array.from({length:g},(v,x)=>x+1);const h=[];return n<=4?h.push(1,2,3,4,5,"ellipsis",g):n>=g-3?h.push(1,"ellipsis",g-4,g-3,g-2,g-1,g):h.push(1,"ellipsis",n-1,n,n+1,"ellipsis",g),h},[n]),p=E.useMemo(()=>{if(r<=1){const g=Math.max(r,o);return f(g)}return f(r)},[r,o,f]),m=E.useCallback((g,h)=>g==="ellipsis"?l.jsx(Lr,{children:l.jsx(gm,{})},`ellipsis-${h}`):l.jsx(Lr,{className:"flex items-center justify-center",children:l.jsx(mm,{onClick:()=>i(g),isActive:g===n,className:s.link(g===n),children:g})},`${g}-${h}-pagination-item`),[i,n,s]);return r<2&&o<2?l.jsx(l.Fragment,{}):l.jsx(fm,{className:"dark:bg-transparent",children:l.jsxs(pm,{children:[l.jsx(Lr,{children:l.jsx(Be,{variant:"ghost",size:"icon",className:s.previous,onClick:c,children:l.jsx(tc,{})})}),p.map(m),l.jsx(Lr,{children:l.jsx(Be,{variant:"ghost",size:"icon",className:s.next,onClick:u,children:l.jsx(Ga,{onClick:u})})})]})})},Qk=({columnsCount:e,message:t="End of results"})=>l.jsx(it,{className:"hover:bg-transparent border-b-0",children:l.jsx(mt,{colSpan:e,className:"text-center py-3 border-b-0",children:l.jsx("div",{className:"text-xs text-purple-muted-400/60",role:"status","aria-live":"polite",children:t})})});function eN({enabled:e,onLoadMore:t,hasMore:r,isLoading:n,threshold:o,findScrollableContainer:a}){const s=E.useRef(null),[i,c]=E.useState(!1),[u,f]=E.useState(!0),p=E.useRef(null),m=E.useRef(!1),g=r!==void 0?r:u,h=E.useCallback(async()=>{if(!(!t||m.current||!g)){m.current=!0,c(!0);try{const v=await Promise.resolve(t());v===!1?f(!1):v===!0&&f(!0)}catch(v){console.error("[useInfiniteScroll] Error loading more data:",v)}finally{m.current=!1,c(!1)}}},[t,g]);return E.useEffect(()=>{if(!e||!t)return;const v=s.current;if(!v)return;p.current&&(p.current.disconnect(),p.current=null);const x=requestAnimationFrame(()=>{const b=a();p.current=new IntersectionObserver(y=>{const[w]=y;w.isIntersecting&&!n&&!m.current&&h()},{root:b,rootMargin:`${o}px`,threshold:0}),p.current.observe(v)});return()=>{cancelAnimationFrame(x),p.current&&(p.current.disconnect(),p.current=null)}},[e,t,g,n,o,h,a]),{loadMoreRef:s,isLoadingMore:i,hasMore:g}}const tN=150,Fr={PAGINATION:"pagination",INFINITE_SCROLL:"infinite-scroll"},rN=600,Ol=(e,t)=>{const r=t.columnDef.minSize,n=t.columnDef.maxSize,o={};return e!==tN&&(o.width=`${e}px`),r!==void 0&&(o.minWidth=`${r}px`),n!==void 0&&(o.maxWidth=`${n}px`),o},nN=({table:e,emptyStateComponent:t,noResultsComponent:r,errorComponent:n,isLoading:o=!1,isError:a=!1,onRowClick:s,emptyStateTitle:i="There's nothing to show",emptyStateDescription:c="No items to display",noResultsTitle:u="No results",wrapperClassName:f,loadingRowsCount:p=8,activeRowId:m,paginationMode:g=Fr.PAGINATION,onLoadMore:h,hasMore:v,loadMoreThreshold:x=rN,endOfResultsMessage:b,className:y,...w})=>{const S=e.getVisibleFlatColumns().length,R=g===Fr.PAGINATION&&e.options.manualPagination&&e.options.onPaginationChange,P=e.getRowModel().rows.length===0,k=e.getCoreRowModel().rows.length===0&&!o,N=!o&&(a||k||P),D="hover:bg-transparent cursor-default",B=E.useRef(null),W=E.useCallback(()=>B.current?B.current.querySelector("[data-table-scroll-container]")||B.current:null,[]),{loadMoreRef:Z,hasMore:J}=eN({enabled:g===Fr.INFINITE_SCROLL,onLoadMore:h,hasMore:v,isLoading:o,threshold:x,findScrollableContainer:W}),z=()=>e.getHeaderGroups().map(_=>l.jsx(it,{children:_.headers.map($=>l.jsx(dm,{className:"text-[#A1A1AA]",style:Ol($.getSize(),$.column),children:$.isPlaceholder?void 0:Al($.column.columnDef.header,$.getContext())},$.id))},_.id)),M=()=>{if(o)return l.jsx(Xk,{rowsCount:p,columnsCount:S});if(a)return l.jsx(it,{className:D,children:l.jsx(mt,{colSpan:S,children:(n==null?void 0:n())||l.jsx(_l,{title:i,description:c})})});if(k)return l.jsx(it,{className:D,children:l.jsx(mt,{colSpan:S,children:(t==null?void 0:t())||l.jsx(_l,{title:i,description:c})})});if(P)return l.jsx(it,{className:D,children:l.jsx(mt,{colSpan:S,children:(r==null?void 0:r())||l.jsx(Yk,{title:u})})});const _=e.getRowModel().rows.map($=>{var H;const I=(H=$.original)==null?void 0:H.id,O=$.getIsSelected()||!!m&&m===I;return l.jsx(it,{"data-state":O?"selected":void 0,onClick:()=>s==null?void 0:s($.original),className:"group",children:$.getVisibleCells().map(Q=>l.jsx(mt,{className:"text-[#FAFAFA] whitespace-nowrap",style:Ol(Q.column.getSize(),Q.column),children:Al(Q.column.columnDef.cell,Q.getContext())},Q.id))},$.id)});return g===Fr.INFINITE_SCROLL&&_.length>0?l.jsxs(l.Fragment,{children:[_,l.jsx(it,{className:"hover:bg-transparent border-0 h-0",children:l.jsx(mt,{colSpan:S,className:"h-0 p-0 border-0 overflow-hidden",children:l.jsx("div",{ref:Z,className:"h-px w-full"})})}),!J&&l.jsx(Qk,{columnsCount:S,message:b})]}):_};return l.jsxs("div",{className:T("qodo qodo-table","flex flex-col h-full w-full"),children:[l.jsx("div",{ref:B,className:"flex-1 min-h-0",children:l.jsxs(lm,{wrapperClassName:f,className:T({"h-[100%]":N},y),"aria-busy":o,...w,children:[l.jsx(cm,{children:z()}),l.jsx(um,{children:M()})]})}),R&&l.jsx("footer",{className:"pt-4 pb-2 border-t border-purple-muted-600/20 flex-shrink-0",children:l.jsx(Jk,{table:e,isLoading:o})})]})},Fa=e=>{const{children:t,...r}=e,n=t&&t!==0?t:"-";return l.jsx("div",{...r,children:n})},oN=e=>{const{variant:t,children:r}=e,n=r||t;return l.jsx(Lt,{...e,children:n})},aN=e=>{const{children:t,...r}=e;if(typeof t!="number")return console.error("NumberCell must be a number"),l.jsx(Fa,{...r,children:"-"});const n=t>1e5?"compact":"standard",o=new Intl.NumberFormat("en-US",{notation:n}).format(t);return l.jsx(Fa,{...r,children:o})},sN=({column:e,children:t,tooltipContent:r})=>{const[n,o]=E.useState(!1),a=e.getCanSort();let s=t;return r&&(s=l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{children:t}),l.jsx(gn,{contentProps:{className:"max-w-[200px]"},content:r,children:l.jsx(zv,{className:"h-4 w-4"})})]})),a?l.jsxs("span",{className:"flex gap-1 items-center cursor-pointer",onClick:()=>e.toggleSorting(e.getIsSorted()==="asc"),onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),role:"button",children:[s,l.jsx(Iv,{className:T("ml-2 h-4 w-4",{invisible:!n})})]}):l.jsx("span",{children:s})};function iN(e){const t=lN(e),r=d.forwardRef((n,o)=>{const{children:a,...s}=n,i=d.Children.toArray(a),c=i.find(uN);if(c){const u=c.props.children,f=i.map(p=>p===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:p);return l.jsx(t,{...s,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return l.jsx(t,{...s,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function lN(e){const t=d.forwardRef((r,n)=>{const{children:o,...a}=r;if(d.isValidElement(o)){const s=fN(o),i=dN(a,o.props);return o.type!==d.Fragment&&(i.ref=n?Ae(n,s):s),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cN=Symbol("radix.slottable");function uN(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cN}function dN(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const c=a(...i);return o(...i),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function fN(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Va=["Enter"," "],pN=["ArrowDown","PageUp","Home"],vm=["ArrowUp","PageDown","End"],mN=[...pN,...vm],gN={ltr:[...Va,"ArrowRight"],rtl:[...Va,"ArrowLeft"]},vN={ltr:["ArrowLeft"],rtl:["ArrowRight"]},vn="Menu",[Yr,hN,xN]=so(vn),[Ht,hm]=Pe(vn,[xN,bt,St]),hn=bt(),xm=St(),[bm,kt]=Ht(vn),[bN,xn]=Ht(vn),ym=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:s=!0}=e,i=hn(t),[c,u]=d.useState(null),f=d.useRef(!1),p=ze(a),m=Gt(o);return d.useEffect(()=>{const g=()=>{f.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>f.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),l.jsx(tn,{...i,children:l.jsx(bm,{scope:t,open:r,onOpenChange:p,content:c,onContentChange:u,children:l.jsx(bN,{scope:t,onClose:d.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:s,children:n})})})};ym.displayName=vn;var yN="MenuAnchor",Qs=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=hn(r);return l.jsx(rn,{...o,...n,ref:t})});Qs.displayName=yN;var ei="MenuPortal",[wN,wm]=Ht(ei,{forceMount:void 0}),Cm=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=kt(ei,t);return l.jsx(wN,{scope:t,forceMount:r,children:l.jsx(je,{present:r||a.open,children:l.jsx(xr,{asChild:!0,container:o,children:n})})})};Cm.displayName=ei;var Ve="MenuContent",[CN,ti]=Ht(Ve),Sm=d.forwardRef((e,t)=>{const r=wm(Ve,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=kt(Ve,e.__scopeMenu),s=xn(Ve,e.__scopeMenu);return l.jsx(Yr.Provider,{scope:e.__scopeMenu,children:l.jsx(je,{present:n||a.open,children:l.jsx(Yr.Slot,{scope:e.__scopeMenu,children:s.modal?l.jsx(SN,{...o,ref:t}):l.jsx(EN,{...o,ref:t})})})})}),SN=d.forwardRef((e,t)=>{const r=kt(Ve,e.__scopeMenu),n=d.useRef(null),o=le(t,n);return d.useEffect(()=>{const a=n.current;if(a)return ho(a)},[]),l.jsx(ri,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:K(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),EN=d.forwardRef((e,t)=>{const r=kt(Ve,e.__scopeMenu);return l.jsx(ri,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),RN=iN("MenuContent.ScrollLock"),ri=d.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:g,disableOutsideScroll:h,...v}=e,x=kt(Ve,r),b=xn(Ve,r),y=hn(r),w=xm(r),S=hN(r),[R,P]=d.useState(null),k=d.useRef(null),N=le(t,k,x.onContentChange),D=d.useRef(0),B=d.useRef(""),W=d.useRef(0),Z=d.useRef(null),J=d.useRef("right"),z=d.useRef(0),M=h?nn:d.Fragment,_=h?{as:RN,allowPinchZoom:!0}:void 0,$=O=>{var j,G;const H=B.current+O,Q=S().filter(U=>!U.disabled),A=document.activeElement,q=(j=Q.find(U=>U.ref.current===A))==null?void 0:j.textValue,X=Q.map(U=>U.textValue),Y=$N(X,H,q),L=(G=Q.find(U=>U.textValue===Y))==null?void 0:G.ref.current;(function U(ne){B.current=ne,window.clearTimeout(D.current),ne!==""&&(D.current=window.setTimeout(()=>U(""),1e3))})(H),L&&setTimeout(()=>L.focus())};d.useEffect(()=>()=>window.clearTimeout(D.current),[]),io();const I=d.useCallback(O=>{var Q,A;return J.current===((Q=Z.current)==null?void 0:Q.side)&&FN(O,(A=Z.current)==null?void 0:A.area)},[]);return l.jsx(CN,{scope:r,searchRef:B,onItemEnter:d.useCallback(O=>{I(O)&&O.preventDefault()},[I]),onItemLeave:d.useCallback(O=>{var H;I(O)||((H=k.current)==null||H.focus(),P(null))},[I]),onTriggerLeave:d.useCallback(O=>{I(O)&&O.preventDefault()},[I]),pointerGraceTimerRef:W,onPointerGraceIntentChange:d.useCallback(O=>{Z.current=O},[]),children:l.jsx(M,{..._,children:l.jsx(Qr,{asChild:!0,trapped:o,onMountAutoFocus:K(a,O=>{var H;O.preventDefault(),(H=k.current)==null||H.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:l.jsx(gr,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:g,children:l.jsx(ko,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:R,onCurrentTabStopIdChange:P,onEntryFocus:K(c,O=>{b.isUsingKeyboardRef.current||O.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(mo,{role:"menu","aria-orientation":"vertical","data-state":Vm(x.open),"data-radix-menu-content":"",dir:b.dir,...y,...v,ref:N,style:{outline:"none",...v.style},onKeyDown:K(v.onKeyDown,O=>{const Q=O.target.closest("[data-radix-menu-content]")===O.currentTarget,A=O.ctrlKey||O.altKey||O.metaKey,q=O.key.length===1;Q&&(O.key==="Tab"&&O.preventDefault(),!A&&q&&$(O.key));const X=k.current;if(O.target!==X||!mN.includes(O.key))return;O.preventDefault();const L=S().filter(j=>!j.disabled).map(j=>j.ref.current);vm.includes(O.key)&&L.reverse(),MN(L)}),onBlur:K(e.onBlur,O=>{O.currentTarget.contains(O.target)||(window.clearTimeout(D.current),B.current="")}),onPointerMove:K(e.onPointerMove,Xr(O=>{const H=O.target,Q=z.current!==O.clientX;if(O.currentTarget.contains(H)&&Q){const A=O.clientX>z.current?"right":"left";J.current=A,z.current=O.clientX}}))})})})})})})});Sm.displayName=Ve;var kN="MenuGroup",ni=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return l.jsx(re.div,{role:"group",...n,ref:t})});ni.displayName=kN;var NN="MenuLabel",Em=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return l.jsx(re.div,{...n,ref:t})});Em.displayName=NN;var to="MenuItem",Ml="menu.itemSelect",Lo=d.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=d.useRef(null),s=xn(to,e.__scopeMenu),i=ti(to,e.__scopeMenu),c=le(t,a),u=d.useRef(!1),f=()=>{const p=a.current;if(!r&&p){const m=new CustomEvent(Ml,{bubbles:!0,cancelable:!0});p.addEventListener(Ml,g=>n==null?void 0:n(g),{once:!0}),sc(p,m),m.defaultPrevented?u.current=!1:s.onClose()}};return l.jsx(Rm,{...o,ref:c,disabled:r,onClick:K(e.onClick,f),onPointerDown:p=>{var m;(m=e.onPointerDown)==null||m.call(e,p),u.current=!0},onPointerUp:K(e.onPointerUp,p=>{var m;u.current||(m=p.currentTarget)==null||m.click()}),onKeyDown:K(e.onKeyDown,p=>{const m=i.searchRef.current!=="";r||m&&p.key===" "||Va.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Lo.displayName=to;var Rm=d.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,s=ti(to,r),i=xm(r),c=d.useRef(null),u=le(t,c),[f,p]=d.useState(!1),[m,g]=d.useState("");return d.useEffect(()=>{const h=c.current;h&&g((h.textContent??"").trim())},[a.children]),l.jsx(Yr.ItemSlot,{scope:r,disabled:n,textValue:o??m,children:l.jsx(No,{asChild:!0,...i,focusable:!n,children:l.jsx(re.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:u,onPointerMove:K(e.onPointerMove,Xr(h=>{n?s.onItemLeave(h):(s.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:K(e.onPointerLeave,Xr(h=>s.onItemLeave(h))),onFocus:K(e.onFocus,()=>p(!0)),onBlur:K(e.onBlur,()=>p(!1))})})})}),PN="MenuCheckboxItem",km=d.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return l.jsx(Im,{scope:e.__scopeMenu,checked:r,children:l.jsx(Lo,{role:"menuitemcheckbox","aria-checked":ro(r)?"mixed":r,...o,ref:t,"data-state":si(r),onSelect:K(o.onSelect,()=>n==null?void 0:n(ro(r)?!0:!r),{checkForDefaultPrevented:!1})})})});km.displayName=PN;var Nm="MenuRadioGroup",[jN,TN]=Ht(Nm,{value:void 0,onValueChange:()=>{}}),Pm=d.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=ze(n);return l.jsx(jN,{scope:e.__scopeMenu,value:r,onValueChange:a,children:l.jsx(ni,{...o,ref:t})})});Pm.displayName=Nm;var jm="MenuRadioItem",Tm=d.forwardRef((e,t)=>{const{value:r,...n}=e,o=TN(jm,e.__scopeMenu),a=r===o.value;return l.jsx(Im,{scope:e.__scopeMenu,checked:a,children:l.jsx(Lo,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":si(a),onSelect:K(n.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,r)},{checkForDefaultPrevented:!1})})})});Tm.displayName=jm;var oi="MenuItemIndicator",[Im,IN]=Ht(oi,{checked:!1}),Am=d.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=IN(oi,r);return l.jsx(je,{present:n||ro(a.checked)||a.checked===!0,children:l.jsx(re.span,{...o,ref:t,"data-state":si(a.checked)})})});Am.displayName=oi;var AN="MenuSeparator",_m=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return l.jsx(re.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});_m.displayName=AN;var _N="MenuArrow",Om=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=hn(r);return l.jsx(go,{...o,...n,ref:t})});Om.displayName=_N;var ai="MenuSub",[ON,Mm]=Ht(ai),Dm=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,a=kt(ai,t),s=hn(t),[i,c]=d.useState(null),[u,f]=d.useState(null),p=ze(o);return d.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),l.jsx(tn,{...s,children:l.jsx(bm,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:f,children:l.jsx(ON,{scope:t,contentId:be(),triggerId:be(),trigger:i,onTriggerChange:c,children:r})})})};Dm.displayName=ai;var Vr="MenuSubTrigger",$m=d.forwardRef((e,t)=>{const r=kt(Vr,e.__scopeMenu),n=xn(Vr,e.__scopeMenu),o=Mm(Vr,e.__scopeMenu),a=ti(Vr,e.__scopeMenu),s=d.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:c}=a,u={__scopeMenu:e.__scopeMenu},f=d.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return d.useEffect(()=>f,[f]),d.useEffect(()=>{const p=i.current;return()=>{window.clearTimeout(p),c(null)}},[i,c]),l.jsx(Qs,{asChild:!0,...u,children:l.jsx(Rm,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":Vm(r.open),...e,ref:Ae(t,o.onTriggerChange),onClick:p=>{var m;(m=e.onClick)==null||m.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:K(e.onPointerMove,Xr(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!r.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:K(e.onPointerLeave,Xr(p=>{var g,h;f();const m=(g=r.content)==null?void 0:g.getBoundingClientRect();if(m){const v=(h=r.content)==null?void 0:h.dataset.side,x=v==="right",b=x?-5:5,y=m[x?"left":"right"],w=m[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+b,y:p.clientY},{x:y,y:m.top},{x:w,y:m.top},{x:w,y:m.bottom},{x:y,y:m.bottom}],side:v}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(p),p.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:K(e.onKeyDown,p=>{var g;const m=a.searchRef.current!=="";e.disabled||m&&p.key===" "||gN[n.dir].includes(p.key)&&(r.onOpenChange(!0),(g=r.content)==null||g.focus(),p.preventDefault())})})})});$m.displayName=Vr;var Lm="MenuSubContent",Fm=d.forwardRef((e,t)=>{const r=wm(Ve,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=kt(Ve,e.__scopeMenu),s=xn(Ve,e.__scopeMenu),i=Mm(Lm,e.__scopeMenu),c=d.useRef(null),u=le(t,c);return l.jsx(Yr.Provider,{scope:e.__scopeMenu,children:l.jsx(je,{present:n||a.open,children:l.jsx(Yr.Slot,{scope:e.__scopeMenu,children:l.jsx(ri,{id:i.contentId,"aria-labelledby":i.triggerId,...o,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;s.isUsingKeyboardRef.current&&((p=c.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:K(e.onFocusOutside,f=>{f.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:K(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:K(e.onKeyDown,f=>{var g;const p=f.currentTarget.contains(f.target),m=vN[s.dir].includes(f.key);p&&m&&(a.onOpenChange(!1),(g=i.trigger)==null||g.focus(),f.preventDefault())})})})})})});Fm.displayName=Lm;function Vm(e){return e?"open":"closed"}function ro(e){return e==="indeterminate"}function si(e){return ro(e)?"indeterminate":e?"checked":"unchecked"}function MN(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function DN(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function $N(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let s=DN(e,Math.max(a,0));o.length===1&&(s=s.filter(u=>u!==r));const c=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function LN(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const i=t[a],c=t[s],u=i.x,f=i.y,p=c.x,m=c.y;f>n!=m>n&&r<(p-u)*(n-f)/(m-f)+u&&(o=!o)}return o}function FN(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return LN(r,t)}function Xr(e){return t=>t.pointerType==="mouse"?e(t):void 0}var VN=ym,BN=Qs,GN=Cm,WN=Sm,zN=ni,qN=Em,HN=Lo,UN=km,KN=Pm,YN=Tm,XN=Am,ZN=_m,JN=Om,QN=Dm,eP=$m,tP=Fm,Fo="DropdownMenu",[rP]=Pe(Fo,[hm]),Te=hm(),[nP,Bm]=rP(Fo),Gm=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:s,modal:i=!0}=e,c=Te(t),u=d.useRef(null),[f,p]=ke({prop:o,defaultProp:a??!1,onChange:s,caller:Fo});return l.jsx(nP,{scope:t,triggerId:be(),triggerRef:u,contentId:be(),open:f,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(m=>!m),[p]),modal:i,children:l.jsx(VN,{...c,open:f,onOpenChange:p,dir:n,modal:i,children:r})})};Gm.displayName=Fo;var Wm="DropdownMenuTrigger",zm=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=Bm(Wm,r),s=Te(r);return l.jsx(BN,{asChild:!0,...s,children:l.jsx(re.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:Ae(t,a.triggerRef),onPointerDown:K(e.onPointerDown,i=>{!n&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:K(e.onKeyDown,i=>{n||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});zm.displayName=Wm;var oP="DropdownMenuPortal",qm=e=>{const{__scopeDropdownMenu:t,...r}=e,n=Te(t);return l.jsx(GN,{...n,...r})};qm.displayName=oP;var Hm="DropdownMenuContent",Um=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Bm(Hm,r),a=Te(r),s=d.useRef(!1);return l.jsx(WN,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:K(e.onCloseAutoFocus,i=>{var c;s.current||(c=o.triggerRef.current)==null||c.focus(),s.current=!1,i.preventDefault()}),onInteractOutside:K(e.onInteractOutside,i=>{const c=i.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,f=c.button===2||u;(!o.modal||f)&&(s.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)"}})});Um.displayName=Hm;var aP="DropdownMenuGroup",Km=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Te(r);return l.jsx(zN,{...o,...n,ref:t})});Km.displayName=aP;var sP="DropdownMenuLabel",Ym=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Te(r);return l.jsx(qN,{...o,...n,ref:t})});Ym.displayName=sP;var iP="DropdownMenuItem",Xm=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Te(r);return l.jsx(HN,{...o,...n,ref:t})});Xm.displayName=iP;var lP="DropdownMenuCheckboxItem",Zm=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Te(r);return l.jsx(UN,{...o,...n,ref:t})});Zm.displayName=lP;var cP="DropdownMenuRadioGroup",Jm=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Te(r);return l.jsx(KN,{...o,...n,ref:t})});Jm.displayName=cP;var uP="DropdownMenuRadioItem",Qm=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Te(r);return l.jsx(YN,{...o,...n,ref:t})});Qm.displayName=uP;var dP="DropdownMenuItemIndicator",eg=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Te(r);return l.jsx(XN,{...o,...n,ref:t})});eg.displayName=dP;var fP="DropdownMenuSeparator",tg=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Te(r);return l.jsx(ZN,{...o,...n,ref:t})});tg.displayName=fP;var pP="DropdownMenuArrow",mP=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Te(r);return l.jsx(JN,{...o,...n,ref:t})});mP.displayName=pP;var gP=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,s=Te(t),[i,c]=ke({prop:n,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return l.jsx(QN,{...s,open:i,onOpenChange:c,children:r})},vP="DropdownMenuSubTrigger",rg=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Te(r);return l.jsx(eP,{...o,...n,ref:t})});rg.displayName=vP;var hP="DropdownMenuSubContent",ng=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Te(r);return l.jsx(tP,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ng.displayName=hP;var xP=Gm,bP=zm,og=qm,ag=Um,yP=Km,sg=Ym,ig=Xm,lg=Zm,wP=Jm,cg=Qm,ug=eg,dg=tg,CP=gP,fg=rg,pg=ng;const SP=xP,EP=bP,RP=yP,kP=og,NP=CP,PP=wP,mg=d.forwardRef(({className:e,inset:t,children:r,...n},o)=>l.jsxs(fg,{ref:o,className:T("qodo qodo-dropdown-menu-sub-trigger flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:text-[var(--text-interactive-neutral-hover)] hover:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n,children:[r,l.jsx(Ga,{className:"ml-auto"})]}));mg.displayName=fg.displayName;const gg=d.forwardRef(({className:e,...t},r)=>l.jsx(pg,{ref:r,className:T("z-50 min-w-[8rem] overflow-hidden cursor-pointer rounded-sm border 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","text-[var(--text-interactive-neutral-idle)] bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] px-1 py-1",e),...t}));gg.displayName=pg.displayName;const vg=d.forwardRef(({className:e,sideOffset:t=4,...r},n)=>l.jsx(og,{children:l.jsx(ag,{ref:n,sideOffset:t,className:T("qodo qodo-dropdown-menu-content z-50 min-w-[8rem] overflow-hidden rounded-sm border text-[var(--text-interactive-neutral-idle)] bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] px-1 py-1 ","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 [&_svg]:text-inherit dark:[&_svg]:text-inherit",e),...r})}));vg.displayName=ag.displayName;const ii=d.forwardRef(({className:e,inset:t,...r},n)=>l.jsx(ig,{ref:n,className:T("w-full qodo qodo-dropdown-menu-item relative flex select-none items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] cursor-pointer data-[disabled]:cursor-default",t&&"pl-8",e),...r}));ii.displayName=ig.displayName;const hg=d.forwardRef(({className:e,children:t,checked:r,...n},o)=>l.jsxs(lg,{ref:o,className:T("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:cursor-default",e),checked:r,...n,children:[l.jsx("span",{className:"absolute right-3 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(ug,{children:l.jsx(mr,{className:"h-4 w-4"})})}),t]}));hg.displayName=lg.displayName;const xg=d.forwardRef(({className:e,children:t,...r},n)=>l.jsxs(cg,{ref:n,className:T("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-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] data-[disabled]:cursor-default",e),...r,children:[l.jsx("span",{className:"absolute right-3 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(ug,{children:l.jsx(mr,{className:"h-[18px] w-[18px]"})})}),t]}));xg.displayName=cg.displayName;const li=d.forwardRef(({className:e,inset:t,...r},n)=>l.jsx(sg,{ref:n,className:T("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));li.displayName=sg.displayName;const Nt=d.forwardRef(({className:e,...t},r)=>l.jsx(dg,{ref:r,className:T("-mx-1 my-1 h-px bg-purple-muted-500",e),...t}));Nt.displayName=dg.displayName;const bg=({className:e,...t})=>l.jsx("span",{className:T("ml-auto text-xs tracking-widest [&>svg]:size-4 self-end",e),...t});bg.displayName="DropdownMenuEndAndornment";const jP=({radioItem:e})=>l.jsxs(xg,{className:"m-0 rounded-none gap-2 pl-3 pr-9 py-1.5",value:e.value,disabled:e.disabled,onSelect:t=>t.preventDefault(),children:[e.icon,e.label]}),TP=({radioGroupItem:e})=>l.jsxs(l.Fragment,{children:[l.jsx(PP,{value:e.value,onValueChange:e.onValueChange,children:e.radioItems.map((t,r)=>l.jsx(jP,{radioItem:t},`item-${r}`))}),e.separator&&l.jsx(Nt,{})]}),IP=({actionItem:e})=>l.jsxs("div",{className:"w-full [&>button]:w-full",children:[l.jsx(gn,{content:e.tooltip,providerProps:{delayDuration:200},children:l.jsx(ii,{className:"m-0 rounded-xs py-1.5 px-3 outline-none text-text-interactive-neutral-idle",disabled:e.disabled||e.loading,onClick:e.onClick,onSelect:e.onSelect,children:l.jsxs("div",{className:"flex items-center gap-2 w-full",children:[e.loading&&l.jsx(nc,{className:"h-4 w-4 motion-preset-spin motion-duration-1000"}),!e.loading&&e.icon,e.label,e.endAndornment&&l.jsx(bg,{children:e.endAndornment})]})})}),e.separator&&l.jsx(Nt,{})]}),AP=({checkboxItem:e})=>l.jsxs(hg,{className:"gap-2 m-0 rounded-none py-1.5 pl-3 pr-9 outline-none",checked:e.checked,onCheckedChange:e.onSelect,disabled:e.disabled,onSelect:t=>t.preventDefault(),children:[e.icon,e.label]}),_P=({checkboxGroupItem:e})=>l.jsxs(l.Fragment,{children:[l.jsx(RP,{children:e.checkboxes.map((t,r)=>l.jsx(AP,{checkboxItem:t},`item-${r}`))}),e.separator&&l.jsx(Nt,{})]}),OP=({subMenuItem:e})=>l.jsxs(l.Fragment,{children:[l.jsxs(NP,{children:[l.jsxs(mg,{disabled:e.disabled,className:"m-0 rounded-none py-1.5 pl-3 pr-1",children:[e.icon,e.label]}),l.jsx(kP,{children:l.jsx(gg,{children:e.subItems.map((t,r)=>yg(t,r))})})]}),e.separator&&l.jsx(Nt,{})]}),MP=({menuItem:e})=>l.jsx(li,{className:"text-purple-muted-300 px-3 font-normal",children:e.label}),DP=()=>l.jsx(Nt,{}),yg=(e,t)=>{switch(e.type){case"ActionMenuItem":return l.jsx(IP,{actionItem:e},`item-${t}`);case"CheckboxGroup":return l.jsx(_P,{checkboxGroupItem:e},`item-${t}`);case"RadioGroup":return l.jsx(TP,{radioGroupItem:e},`item-${t}`);case"SubMenuItem":return l.jsx(OP,{subMenuItem:e},`item-${t}`);case"MenuLabel":return l.jsx(MP,{menuItem:e},`item-${t}`);case"Separator":return l.jsx(DP,{},`item-${t}`);default:return null}},$P={s:"min-w-[140px]",m:"min-w-[249px]",l:"min-w-[257px]"},LP=({header:e})=>l.jsxs("div",{className:"flex flex-col gap-1",children:[l.jsx("span",{className:"text-purple-muted-300",children:e.title}),l.jsx("span",{children:e.label})]}),FP=({header:e})=>e?l.jsxs(l.Fragment,{children:[l.jsx(li,{className:"text-purple-100 font-normal px-3",children:e.type==="MenuTitleHeader"&&l.jsx(LP,{header:e})}),l.jsx(Nt,{className:"bg-purple-muted-500"})]}):null,VP=({footer:e})=>e?l.jsxs(l.Fragment,{children:[l.jsx(Nt,{className:"bg-purple-muted-500"}),l.jsxs(ii,{onClick:e.action,disabled:e.disabled,className:"cursor-pointer m-0 rounded-none py-1.5 px-3 text-purple-300 focus:text-purple-300 focus:bg-transparent",children:[e.icon,e.label]})]}):null,wg=({menuItems:e,header:t,footer:r,triggerElement:n,size:o="s",asChild:a=!1,side:s="bottom",modal:i=!1,disabled:c=!1,className:u=""})=>{const f=Ql($P,{[o]:o,className:u},!1);return l.jsx("div",{className:T("qodo qodo-dropdown"),children:l.jsxs(SP,{modal:i,children:[l.jsx(EP,{asChild:a,className:"select-none outline-none flex items-center",disabled:c,children:n}),l.jsxs(vg,{side:s,align:"end",className:f,children:[l.jsx(FP,{header:t}),e.filter(p=>!p.isHidden).map((p,m)=>yg(p,m)),l.jsx(VP,{footer:r})]})]})})},BP=({triggerAriaLabel:e="Open actions menu",className:t,...r})=>l.jsx(Be,{variant:"ghost",size:"icon","aria-label":e,className:T("flex items-center justify-center h-4 w-4",t),...r,children:l.jsx(rc,{className:"h-4 w-4"})}),GP=({menuItems:e=[],triggerElement:t=BP,triggerProps:r={},className:n,size:o="s",asChild:a=!1,side:s="bottom",modal:i=!1})=>l.jsx("div",{className:n,onClick:c=>c.stopPropagation(),children:l.jsx(wg,{triggerElement:l.jsx(t,{className:T("flex items-center justify-center",r==null?void 0:r.className),...r}),menuItems:e,size:o,asChild:a,side:s,modal:i,disabled:r==null?void 0:r.disabled})}),WP={"data-lpignore":"true","data-1p-ignore":"true","data-bitwarden-watching":"false","data-form-type":"other","data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",spellCheck:!1,autoComplete:"off"},Dl={SMALL:"small",LARGE:"large"},zP={GHOST:"ghost"},qP=({containerClassName:e,className:t,searchSize:r=Dl.SMALL,disabled:n=!1,disableFilterIcon:o=!0,...a})=>{const s=r===Dl.LARGE?"pl-12 py-3 pr-4 h-[45px]":"pl-9 py-1.5 pr-2 h-[33px]",i=T("absolute top-1/2 h-4 w-4 -translate-y-1/2",n?"text-purple-muted-600":"text-purple-muted-400"),c=T("text-purple-muted-200 dark:border-purple-muted-600 dark:text-purple-muted-200 dark:bg-[#1C1C1C] dark:placeholder:text-purple-muted-400 pl-9",{"bg-transparent dark:bg-transparent":a.variant===zP.GHOST},{"pr-9":!o});return l.jsxs("div",{className:T("qodo qodo-search-input","relative",e),children:[l.jsx(oc,{className:T(i,"left-3")}),l.jsx(Jr,{className:T(s,c,t),disabled:n,...a,...WP}),!o&&l.jsx(Hv,{className:T(i,"right-3")})]})},HP=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,UP=e=>e.split(/[,\s]+/).map(t=>t.trim()).filter(Boolean),KP=(e,t)=>{var n;if(!(t!=null&&t.length))return!0;const r=(n=e.split("@")[1])==null?void 0:n.toLowerCase();return t.some(o=>r===o.toLowerCase())},YP=(e,t)=>e.map(r=>{const n=HP.test(r),o=n?KP(r,t==null?void 0:t.domains):void 0;return{email:r,isValid:n&&o!==!1,isDomainValid:o}}),XP=(e,t,r)=>{const n=YP(e,r),o=[...t];for(const a of n)o.some(i=>i.email===a.email)||o.push(a);return o},ZP=({onChange:e=()=>{},organization:t})=>{const[r,n]=E.useState([]),o=E.useCallback(u=>{e(u)},[e]),a=E.useCallback(u=>{n(u),o(u)},[o]),s=E.useCallback(u=>{const f=UP(u);if(f.length===0)return;const p=XP(f,r,t);a(p)},[r,a,t]),i=E.useCallback(()=>{a([])},[a]),c=E.useCallback(u=>{const f=r.filter(p=>p.email!==u);a(f)},[r,a]);return{emails:r,setEmails:a,addTokens:s,removeToken:c,clearAll:i,notify:o}},JP=e=>{const{draft:t,setDraft:r,addTokens:n,allSelected:o,setAllSelected:a,clearAll:s,emails:i,setEmails:c,notify:u}=e;return f=>{if((f.key==="a"||f.key==="A")&&(f.metaKey||f.ctrlKey)){f.preventDefault(),a(!0);return}if(o&&(f.key==="Backspace"||f.key==="Delete")){f.preventDefault(),a(!1),s(),r("");return}if(o&&f.key==="Escape"){f.preventDefault(),a(!1);return}if(o&&f.key.length===1&&!f.metaKey&&!f.ctrlKey&&!f.altKey&&(a(!1),s()),f.key==="Backspace"&&t.length===0&&i.length>0){f.preventDefault();const p=i[i.length-1],m=i.slice(0,-1);c(m),r(p.email),u(m);return}if(f.key==="Enter"){f.preventDefault(),t.trim()&&(n(t),r(""));return}[",",";"," "].includes(f.key)&&(f.preventDefault(),t.trim()&&(n(t),r("")))}},QP=({email:e,isValid:t,onRemove:r})=>{const n=o=>{o.stopPropagation(),r(e)};return l.jsxs(Lt,{className:"px-2 group whitespace-nowrap flex-shrink-0",variant:t?"success":"error",size:"sm",children:[l.jsx("span",{className:"max-w-[200px] truncate",children:e}),l.jsx("button",{onClick:n,className:"ml-1 opacity-70 hover:opacity-100 transition-opacity flex-shrink-0",type:"button",children:l.jsx(ao,{size:12})})]})},ej=({hasContent:e,onClearAll:t,emails:r,invalidEmailError:n,invalidDomainError:o})=>{const{formatErrors:a,domainErrors:s,totalInvalidCount:i}=E.useMemo(()=>{const g=r.filter(x=>!x.isValid),h=g.filter(x=>!x.email.includes("@")||x.isDomainValid===void 0),v=g.filter(x=>x.isDomainValid===!1);return{formatErrors:h,domainErrors:v,totalInvalidCount:g.length}},[r]),c=g=>{g.preventDefault(),g.stopPropagation()},u=g=>{c(g),t()},f=g=>{c(g)},p=g=>{g.stopPropagation()},m=(g,h)=>h.length===0?l.jsx(l.Fragment,{}):l.jsxs("div",{className:"space-y-1 text-purple-muted-200",children:[l.jsxs("span",{className:"font-medium border-b border-purple-muted-200",children:[g,":"]}),h.map((v,x)=>l.jsx("p",{className:"break-all",children:v.email},`${g}-${x}-${v.email}`))]});return l.jsxs(l.Fragment,{children:[e&&l.jsx("button",{type:"button",onClick:u,className:"absolute right-3 top-1/2 -translate-y-1/2 hover:text-purple-muted-100",children:l.jsx(oh,{className:"h-4 w-4"})}),i>0&&l.jsx("div",{className:"absolute flex center align-center right-[34px] top-1/2 -translate-y-1/2 [&>button]:h-4",children:l.jsx(gn,{triggerProps:{asChild:!0},content:l.jsx("div",{onClick:f,onWheel:p,className:"max-w-[min(90vw,32rem)] max-h-[min(60vh,20rem)] p-3 rounded-md border dark:border-red-800 shadow-lg dark:bg-purple-muted-800 dark:text-purple-muted-100",children:l.jsxs("div",{className:"flex flex-col gap-1 text-xs max-h-64 overflow-y-auto pr-1 no-scrollbar",children:[m(n,a),m(o,s)]})}),providerProps:{delayDuration:200},contentProps:{side:"bottom",align:"end",className:"border-0 bg-transparent p-0 m-0",disableArrow:!0},children:l.jsx("button",{type:"button","aria-label":`${i} invalid emails`,className:"text-red-400 hover:text-red-300",children:l.jsx(sh,{className:"size-[18px]"})})})})]})},tj=({onChange:e,disabled:t=!1,inviteMembersPlaceholder:r=({domain:f})=>`Enter email addresses (e.g., user@${f})`,inviteMembersDisabledTooltip:n="You don't have permission to modify email addresses",organization:o,inputClassName:a,chipClassName:s,wrapperClassName:i,invalidEmailError:c="Invalid email",invalidDomainError:u="Email domain is not allowed"})=>{const f=E.useRef(null),p=E.useRef(null),[m,g]=E.useState(""),[h,v]=E.useState(!1),{emails:x,setEmails:b,addTokens:y,removeToken:w,clearAll:S,notify:R}=ZP({onChange:e,organization:o}),P=JP({draft:m,setDraft:g,addTokens:y,allSelected:h,setAllSelected:v,clearAll:S,emails:x,setEmails:b,notify:R}),k=()=>{var Q;const H=((Q=o==null?void 0:o.domains)==null?void 0:Q[0])||"example.com";return r({domain:H})},N=E.useCallback(H=>{g(H.target.value)},[]),D=E.useCallback(()=>{m.trim()&&(y(m),g("")),v(!1)},[m,y]),B=E.useCallback(H=>{const Q=H.clipboardData.getData("text");Q&&(H.preventDefault(),y(Q),g(""))},[y]),W=E.useCallback(()=>{var H;(H=p.current)==null||H.focus()},[p]),Z=E.useCallback(()=>{v(!1)},[]),J=E.useCallback(H=>{var A;const Q=H.relatedTarget;Q&&((A=f.current)!=null&&A.contains(Q))||m.trim()&&(y(m),g(""))},[m,y]),z=x.length>0,M=!z&&m.length===0,_=z||m.length>0,$=T("bg-transparent text-sm outline-none border-0 p-0 h-6 shadow-none focus-visible:ring-0 whitespace-nowrap text-purple-muted-200 placeholder:text-purple-muted-400",z?"flex-none shrink-0 overflow-x-auto overflow-y-hidden no-scrollbar":"flex-1 !min-w-full overflow-hidden",{"opacity-50 cursor-not-allowed":t},a),I=T("inline-flex items-center gap-1 no-scrollbar",z?"w-max":"w-full",s),O=T("qodo qodo-email-chips-input","relative w-full max-w-full min-w-0 overflow-hidden rounded-md border pl-9 pr-14 py-2 pl-9 pr-14 py-2 focus-within:ring-1 border-purple-muted-500 dark:bg-purple-muted-800 focus-within:ring-purple-muted-400",i);return l.jsx(gn,{triggerProps:{asChild:!0},content:t?n:void 0,children:l.jsxs("div",{ref:f,className:O,onClick:W,onFocus:Z,onBlur:J,children:[l.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-purple-muted-400",children:l.jsx(Yv,{className:"w-4 h-4"})}),l.jsx("div",{className:"w-full text-start max-w-full min-w-0 overflow-x-auto overflow-y-hidden no-scrollbar",children:l.jsxs("div",{className:I,children:[x.map((H,Q)=>l.jsx(QP,{email:H.email,isValid:H.isValid,onRemove:w},`email-${Q}-${H.email}`)),l.jsx("input",{ref:p,value:m,onChange:N,onKeyDown:P,onBlur:D,onPaste:B,className:$,placeholder:M?k():"",disabled:t})]})}),l.jsx(ej,{hasContent:_,onClearAll:S,emails:x,invalidEmailError:c,invalidDomainError:u})]})})},_n={DEFAULT:"default",PRIMARY:"primary",ACTIVE:"active"},$l={SM:"sm",MD:"md"};function rj({title:e,description:t,caption:r,additionalContent:n,titleClassName:o,descriptionClassName:a,variant:s=_n.DEFAULT,className:i,icon:c,iconClassName:u,size:f=$l.SM}){const p=T("p-4 flex flex-row items-center gap-4","border-[var(--border-panel-neutral)] dark:border-[var(--border-panel-neutral)] rounded-md fill-[var(--fill-panel-neutral)]",{"px-6 gap-6":f===$l.MD},i),m=T("p-0 m-0 text-xs","text-[var(--color-text-bg-neutral-mild)] dark:text-[var(--color-text-bg-neutral-mild)] font-normal",o),g=T("w-8 h-8 flex items-center justify-center","bg-purple-muted-600 rounded-full p-2.5",u),h=T("text-xl font-medium p-0 m-0 leading-5",{"text-muted-foreground dark:text-white":s===_n.DEFAULT,"text-purple-300 dark:text-purple-300":s===_n.PRIMARY,"text-[var(--color-text-tag-positive-idle)] dark:text-[var(--color-text-tag-positive-idle)]":s===_n.ACTIVE},a);return l.jsxs(wd,{className:p,children:[c&&l.jsx("div",{className:g,children:c}),l.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[l.jsx(Cd,{className:"m-0 p-0 gap-0",children:l.jsx(Sd,{className:m,children:e})}),l.jsxs(Rd,{className:"m-0 p-0 flex flex-col gap-2",children:[t&&l.jsx(Ed,{className:h,children:t}),r&&l.jsx("span",{className:"text-xs text-foreground dark:text-foreground tracking-[0.12px]",children:r}),n]})]})]})}exports.Accordion=hC;exports.AccordionContent=yC;exports.AccordionItem=xC;exports.AccordionTrigger=bC;exports.ActionsCell=GP;exports.Badge=Lt;exports.BadgeCell=oN;exports.BaseCell=Fa;exports.Button=Be;exports.Card=wd;exports.CardAction=e0;exports.CardContent=Rd;exports.CardDescription=Ed;exports.CardFooter=t0;exports.CardHeader=Cd;exports.CardTitle=Sd;exports.Carousel=fS;exports.CarouselContent=pS;exports.CarouselFooter=hS;exports.CarouselIndicator=xS;exports.CarouselItem=mS;exports.CarouselNext=vS;exports.CarouselPrevious=gS;exports.Checkbox=Ys;exports.CheckboxGroup=Ks;exports.ClassHelper=Ql;exports.Combobox=ls;exports.Dialog=Ew;exports.DialogClose=kw;exports.DialogContent=Nw;exports.DialogDescription=Iw;exports.DialogFooter=jw;exports.DialogHeader=Pw;exports.DialogOverlay=od;exports.DialogPortal=nd;exports.DialogTitle=Tw;exports.DialogTrigger=Rw;exports.Dropdown=wg;exports.EmailChipsInput=tj;exports.Form=Me;exports.FormProvider=Ff;exports.Input=Jr;exports.InsightCard=rj;exports.NumberCell=aN;exports.PAGINATION_MODE=Fr;exports.Progress=w0;exports.RadioGroup=$s;exports.RadioGroupItem=Fs;exports.SearchInput=qP;exports.Select=Bp;exports.SelectContent=Eu;exports.SelectGroup=Iy;exports.SelectItem=ku;exports.SelectLabel=Ru;exports.SelectScrollDownButton=Qa;exports.SelectScrollUpButton=Ja;exports.SelectSeparator=Nu;exports.SelectTrigger=Su;exports.SelectV1=Ty;exports.SelectValue=Ay;exports.Skeleton=Ad;exports.SortableHeaderCell=sN;exports.Steps=Wk;exports.Switch=T0;exports.Table=nN;exports.Tabs=NC;exports.TabsContent=TC;exports.TabsList=PC;exports.TabsTrigger=jC;exports.TagsInput=yp;exports.Toggle=A0;exports.ToggleGroup=Y0;exports.ToggleGroupItem=X0;exports.Tooltip=gn;exports.Typography=kf;exports.borderRadius=Ag;exports.cn=T;exports.colors=Tg;exports.spacing=Ig;exports.typography=_g;exports.typographyVariants=Rf;exports.useFormContext=Vf;
219
209
  //# sourceMappingURL=index.cjs.js.map