@qodo/design-system 0.19.4 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),jr=require("react-dom");function zi(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=zi(S),Sn=zi(jr),zm={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"}},qm={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem"},Um={sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem"},Hm={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 Hr={exports:{}},dr={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react"),Sr=require("react-dom");function gu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=gu(R),No=gu(Sr),zv={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"}},Bv={xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem"},Vv={sm:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem"},qv={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"}};function vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hr={exports:{}},Jn={};/**
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 Rs;function Km(){if(Rs)return dr;Rs=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 i(l,c,u){var f,p={},g=null,m=null;u!==void 0&&(g=""+u),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(m=c.ref);for(f in c)n.call(c,f)&&!a.hasOwnProperty(f)&&(p[f]=c[f]);if(l&&l.defaultProps)for(f in c=l.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:l,key:g,ref:m,props:p,_owner:o.current}}return dr.Fragment=r,dr.jsx=i,dr.jsxs=i,dr}var ur={};/**
9
+ */var pl;function Gv(){if(pl)return Jn;pl=1;var e=R,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var d,f={},m=null,p=null;c!==void 0&&(m=""+c),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(p=l.ref);for(d in l)r.call(l,d)&&!i.hasOwnProperty(d)&&(f[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:t,type:s,key:m,ref:p,props:f,_owner:o.current}}return Jn.Fragment=n,Jn.jsx=a,Jn.jsxs=a,Jn}var Qn={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,199 +14,212 @@
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 Ns;function Ym(){return Ns||(Ns=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"),i=Symbol.for("react.provider"),l=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"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.iterator,v="@@iterator";function x(w){if(w===null||typeof w!="object")return null;var $=b&&w[b]||w[v];return typeof $=="function"?$:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(w){{for(var $=arguments.length,H=new Array($>1?$-1:0),ne=1;ne<$;ne++)H[ne-1]=arguments[ne];C("error",w,H)}}function C(w,$,H){{var ne=y.ReactDebugCurrentFrame,ue=ne.getStackAddendum();ue!==""&&($+="%s",H=H.concat([ue]));var fe=H.map(function(de){return String(de)});fe.unshift("Warning: "+$),Function.prototype.apply.call(console[w],console,fe)}}var E=!1,j=!1,_=!1,P=!1,N=!1,W;W=Symbol.for("react.module.reference");function U(w){return!!(typeof w=="string"||typeof w=="function"||w===n||w===a||N||w===o||w===u||w===f||P||w===m||E||j||_||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===p||w.$$typeof===i||w.$$typeof===l||w.$$typeof===c||w.$$typeof===W||w.getModuleId!==void 0))}function re(w,$,H){var ne=w.displayName;if(ne)return ne;var ue=$.displayName||$.name||"";return ue!==""?H+"("+ue+")":H}function te(w){return w.displayName||"Context"}function Q(w){if(w==null)return null;if(typeof w.tag=="number"&&h("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 $=w;return te($)+".Consumer";case i:var H=w;return te(H._context)+".Provider";case c:return re(w,w.render,"ForwardRef");case p:var ne=w.displayName||null;return ne!==null?ne:Q(w.type)||"Memo";case g:{var ue=w,fe=ue._payload,de=ue._init;try{return Q(de(fe))}catch{return null}}}return null}var V=Object.assign,O=0,I,D,k,M,B,J,T;function G(){}G.__reactDisabledLog=!0;function Z(){{if(O===0){I=console.log,D=console.info,k=console.warn,M=console.error,B=console.group,J=console.groupCollapsed,T=console.groupEnd;var w={configurable:!0,enumerable:!0,value:G,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}O++}}function z(){{if(O--,O===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},w,{value:I}),info:V({},w,{value:D}),warn:V({},w,{value:k}),error:V({},w,{value:M}),group:V({},w,{value:B}),groupCollapsed:V({},w,{value:J}),groupEnd:V({},w,{value:T})})}O<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var L=y.ReactCurrentDispatcher,A;function K(w,$,H){{if(A===void 0)try{throw Error()}catch(ue){var ne=ue.stack.trim().match(/\n( *(at )?)/);A=ne&&ne[1]||""}return`
18
- `+A+w}}var ee=!1,oe;{var ce=typeof WeakMap=="function"?WeakMap:Map;oe=new ce}function ie(w,$){if(!w||ee)return"";{var H=oe.get(w);if(H!==void 0)return H}var ne;ee=!0;var ue=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var fe;fe=L.current,L.current=null,Z();try{if($){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(Re){ne=Re}Reflect.construct(w,[],de)}else{try{de.call()}catch(Re){ne=Re}w.call(de.prototype)}}else{try{throw Error()}catch(Re){ne=Re}w()}}catch(Re){if(Re&&ne&&typeof Re.stack=="string"){for(var le=Re.stack.split(`
19
- `),ke=ne.stack.split(`
20
- `),ve=le.length-1,he=ke.length-1;ve>=1&&he>=0&&le[ve]!==ke[he];)he--;for(;ve>=1&&he>=0;ve--,he--)if(le[ve]!==ke[he]){if(ve!==1||he!==1)do if(ve--,he--,he<0||le[ve]!==ke[he]){var Ae=`
21
- `+le[ve].replace(" at new "," at ");return w.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",w.displayName)),typeof w=="function"&&oe.set(w,Ae),Ae}while(ve>=1&&he>=0);break}}}finally{ee=!1,L.current=fe,z(),Error.prepareStackTrace=ue}var Ft=w?w.displayName||w.name:"",St=Ft?K(Ft):"";return typeof w=="function"&&oe.set(w,St),St}function Ee(w,$,H){return ie(w,!1)}function _e(w){var $=w.prototype;return!!($&&$.isReactComponent)}function Ge(w,$,H){if(w==null)return"";if(typeof w=="function")return ie(w,_e(w));if(typeof w=="string")return K(w);switch(w){case u:return K("Suspense");case f:return K("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case c:return Ee(w.render);case p:return Ge(w.type,$,H);case g:{var ne=w,ue=ne._payload,fe=ne._init;try{return Ge(fe(ue),$,H)}catch{}}}return""}var Me=Object.prototype.hasOwnProperty,at={},Ur=y.ReactDebugCurrentFrame;function Ze(w){if(w){var $=w._owner,H=Ge(w.type,w._source,$?$.type:null);Ur.setExtraStackFrame(H)}else Ur.setExtraStackFrame(null)}function Cm(w,$,H,ne,ue){{var fe=Function.call.bind(Me);for(var de in w)if(fe(w,de)){var le=void 0;try{if(typeof w[de]!="function"){var ke=Error((ne||"React class")+": "+H+" 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 ke.name="Invariant Violation",ke}le=w[de]($,de,ne,H,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ve){le=ve}le&&!(le instanceof Error)&&(Ze(ue),h("%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).",ne||"React class",H,de,typeof le),Ze(null)),le instanceof Error&&!(le.message in at)&&(at[le.message]=!0,Ze(ue),h("Failed %s type: %s",H,le.message),Ze(null))}}}var Sm=Array.isArray;function ao(w){return Sm(w)}function Em(w){{var $=typeof Symbol=="function"&&Symbol.toStringTag,H=$&&w[Symbol.toStringTag]||w.constructor.name||"Object";return H}}function km(w){try{return ms(w),!1}catch{return!0}}function ms(w){return""+w}function gs(w){if(km(w))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Em(w)),ms(w)}var vs=y.ReactCurrentOwner,Rm={key:!0,ref:!0,__self:!0,__source:!0},hs,xs;function Nm(w){if(Me.call(w,"ref")){var $=Object.getOwnPropertyDescriptor(w,"ref").get;if($&&$.isReactWarning)return!1}return w.ref!==void 0}function jm(w){if(Me.call(w,"key")){var $=Object.getOwnPropertyDescriptor(w,"key").get;if($&&$.isReactWarning)return!1}return w.key!==void 0}function Pm(w,$){typeof w.ref=="string"&&vs.current}function Tm(w,$){{var H=function(){hs||(hs=!0,h("%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)",$))};H.isReactWarning=!0,Object.defineProperty(w,"key",{get:H,configurable:!0})}}function _m(w,$){{var H=function(){xs||(xs=!0,h("%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)",$))};H.isReactWarning=!0,Object.defineProperty(w,"ref",{get:H,configurable:!0})}}var Am=function(w,$,H,ne,ue,fe,de){var le={$$typeof:t,type:w,key:$,ref:H,props:de,_owner:fe};return le._store={},Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le};function Im(w,$,H,ne,ue){{var fe,de={},le=null,ke=null;H!==void 0&&(gs(H),le=""+H),jm($)&&(gs($.key),le=""+$.key),Nm($)&&(ke=$.ref,Pm($,ue));for(fe in $)Me.call($,fe)&&!Rm.hasOwnProperty(fe)&&(de[fe]=$[fe]);if(w&&w.defaultProps){var ve=w.defaultProps;for(fe in ve)de[fe]===void 0&&(de[fe]=ve[fe])}if(le||ke){var he=typeof w=="function"?w.displayName||w.name||"Unknown":w;le&&Tm(de,he),ke&&_m(de,he)}return Am(w,le,ke,ue,ne,vs.current,de)}}var so=y.ReactCurrentOwner,bs=y.ReactDebugCurrentFrame;function Lt(w){if(w){var $=w._owner,H=Ge(w.type,w._source,$?$.type:null);bs.setExtraStackFrame(H)}else bs.setExtraStackFrame(null)}var io;io=!1;function lo(w){return typeof w=="object"&&w!==null&&w.$$typeof===t}function ys(){{if(so.current){var w=Q(so.current.type);if(w)return`
17
+ */var ml;function Uv(){return ml||(ml=1,process.env.NODE_ENV!=="production"&&(function(){var e=R,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),v=Symbol.iterator,g="@@iterator";function x(E){if(E===null||typeof E!="object")return null;var H=v&&E[v]||E[g];return typeof H=="function"?H:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(E){{for(var H=arguments.length,ne=new Array(H>1?H-1:0),le=1;le<H;le++)ne[le-1]=arguments[le];k("error",E,ne)}}function k(E,H,ne){{var le=y.ReactDebugCurrentFrame,ye=le.getStackAddendum();ye!==""&&(H+="%s",ne=ne.concat([ye]));var we=ne.map(function(ve){return String(ve)});we.unshift("Warning: "+H),Function.prototype.apply.call(console[E],console,we)}}var P=!1,N=!1,S=!1,I=!1,j=!1,q;q=Symbol.for("react.module.reference");function U(E){return!!(typeof E=="string"||typeof E=="function"||E===r||E===i||j||E===o||E===c||E===d||I||E===p||P||N||S||typeof E=="object"&&E!==null&&(E.$$typeof===m||E.$$typeof===f||E.$$typeof===a||E.$$typeof===s||E.$$typeof===l||E.$$typeof===q||E.getModuleId!==void 0))}function G(E,H,ne){var le=E.displayName;if(le)return le;var ye=H.displayName||H.name||"";return ye!==""?ne+"("+ye+")":ne}function V(E){return E.displayName||"Context"}function K(E){if(E==null)return null;if(typeof E.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof E=="function")return E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof E=="object")switch(E.$$typeof){case s:var H=E;return V(H)+".Consumer";case a:var ne=E;return V(ne._context)+".Provider";case l:return G(E,E.render,"ForwardRef");case f:var le=E.displayName||null;return le!==null?le:K(E.type)||"Memo";case m:{var ye=E,we=ye._payload,ve=ye._init;try{return K(ve(we))}catch{return null}}}return null}var L=Object.assign,T=0,_,F,M,B,C,Q,A;function w(){}w.__reactDisabledLog=!0;function Y(){{if(T===0){_=console.log,F=console.info,M=console.warn,B=console.error,C=console.group,Q=console.groupCollapsed,A=console.groupEnd;var E={configurable:!0,enumerable:!0,value:w,writable:!0};Object.defineProperties(console,{info:E,log:E,warn:E,error:E,group:E,groupCollapsed:E,groupEnd:E})}T++}}function X(){{if(T--,T===0){var E={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},E,{value:_}),info:L({},E,{value:F}),warn:L({},E,{value:M}),error:L({},E,{value:B}),group:L({},E,{value:C}),groupCollapsed:L({},E,{value:Q}),groupEnd:L({},E,{value:A})})}T<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z=y.ReactCurrentDispatcher,D;function ee(E,H,ne){{if(D===void 0)try{throw Error()}catch(ye){var le=ye.stack.trim().match(/\n( *(at )?)/);D=le&&le[1]||""}return`
18
+ `+D+E}}var re=!1,ae;{var fe=typeof WeakMap=="function"?WeakMap:Map;ae=new fe}function me(E,H){if(!E||re)return"";{var ne=ae.get(E);if(ne!==void 0)return ne}var le;re=!0;var ye=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var we;we=z.current,z.current=null,Y();try{if(H){var ve=function(){throw Error()};if(Object.defineProperty(ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ve,[])}catch(Ve){le=Ve}Reflect.construct(E,[],ve)}else{try{ve.call()}catch(Ve){le=Ve}E.call(ve.prototype)}}else{try{throw Error()}catch(Ve){le=Ve}E()}}catch(Ve){if(Ve&&le&&typeof Ve.stack=="string"){for(var ge=Ve.stack.split(`
19
+ `),$e=le.stack.split(`
20
+ `),Re=ge.length-1,Ne=$e.length-1;Re>=1&&Ne>=0&&ge[Re]!==$e[Ne];)Ne--;for(;Re>=1&&Ne>=0;Re--,Ne--)if(ge[Re]!==$e[Ne]){if(Re!==1||Ne!==1)do if(Re--,Ne--,Ne<0||ge[Re]!==$e[Ne]){var nt=`
21
+ `+ge[Re].replace(" at new "," at ");return E.displayName&&nt.includes("<anonymous>")&&(nt=nt.replace("<anonymous>",E.displayName)),typeof E=="function"&&ae.set(E,nt),nt}while(Re>=1&&Ne>=0);break}}}finally{re=!1,z.current=we,X(),Error.prepareStackTrace=ye}var yn=E?E.displayName||E.name:"",tn=yn?ee(yn):"";return typeof E=="function"&&ae.set(E,tn),tn}function _e(E,H,ne){return me(E,!1)}function ze(E){var H=E.prototype;return!!(H&&H.isReactComponent)}function Ke(E,H,ne){if(E==null)return"";if(typeof E=="function")return me(E,ze(E));if(typeof E=="string")return ee(E);switch(E){case c:return ee("Suspense");case d:return ee("SuspenseList")}if(typeof E=="object")switch(E.$$typeof){case l:return _e(E.render);case f:return Ke(E.type,H,ne);case m:{var le=E,ye=le._payload,we=le._init;try{return Ke(we(ye),H,ne)}catch{}}}return""}var Be=Object.prototype.hasOwnProperty,it={},xn=y.ReactDebugCurrentFrame;function tt(E){if(E){var H=E._owner,ne=Ke(E.type,E._source,H?H.type:null);xn.setExtraStackFrame(ne)}else xn.setExtraStackFrame(null)}function Gr(E,H,ne,le,ye){{var we=Function.call.bind(Be);for(var ve in E)if(we(E,ve)){var ge=void 0;try{if(typeof E[ve]!="function"){var $e=Error((le||"React class")+": "+ne+" type `"+ve+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof E[ve]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $e.name="Invariant Violation",$e}ge=E[ve](H,ve,le,ne,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Re){ge=Re}ge&&!(ge instanceof Error)&&(tt(ye),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).",le||"React class",ne,ve,typeof ge),tt(null)),ge instanceof Error&&!(ge.message in it)&&(it[ge.message]=!0,tt(ye),b("Failed %s type: %s",ne,ge.message),tt(null))}}}var pi=Array.isArray;function Zn(E){return pi(E)}function mi(E){{var H=typeof Symbol=="function"&&Symbol.toStringTag,ne=H&&E[Symbol.toStringTag]||E.constructor.name||"Object";return ne}}function hi(E){try{return Ur(E),!1}catch{return!0}}function Ur(E){return""+E}function $(E){if(hi(E))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",mi(E)),Ur(E)}var Z=y.ReactCurrentOwner,ce={key:!0,ref:!0,__self:!0,__source:!0},he,be;function Ye(E){if(Be.call(E,"ref")){var H=Object.getOwnPropertyDescriptor(E,"ref").get;if(H&&H.isReactWarning)return!1}return E.ref!==void 0}function Et(E){if(Be.call(E,"key")){var H=Object.getOwnPropertyDescriptor(E,"key").get;if(H&&H.isReactWarning)return!1}return E.key!==void 0}function at(E,H){typeof E.ref=="string"&&Z.current}function Qt(E,H){{var ne=function(){he||(he=!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)",H))};ne.isReactWarning=!0,Object.defineProperty(E,"key",{get:ne,configurable:!0})}}function en(E,H){{var ne=function(){be||(be=!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)",H))};ne.isReactWarning=!0,Object.defineProperty(E,"ref",{get:ne,configurable:!0})}}var Fe=function(E,H,ne,le,ye,we,ve){var ge={$$typeof:t,type:E,key:H,ref:ne,props:ve,_owner:we};return ge._store={},Object.defineProperty(ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.defineProperty(ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.freeze&&(Object.freeze(ge.props),Object.freeze(ge)),ge};function _t(E,H,ne,le,ye){{var we,ve={},ge=null,$e=null;ne!==void 0&&($(ne),ge=""+ne),Et(H)&&($(H.key),ge=""+H.key),Ye(H)&&($e=H.ref,at(H,ye));for(we in H)Be.call(H,we)&&!ce.hasOwnProperty(we)&&(ve[we]=H[we]);if(E&&E.defaultProps){var Re=E.defaultProps;for(we in Re)ve[we]===void 0&&(ve[we]=Re[we])}if(ge||$e){var Ne=typeof E=="function"?E.displayName||E.name||"Unknown":E;ge&&Qt(ve,Ne),$e&&en(ve,Ne)}return Fe(E,ge,$e,ye,le,Z.current,ve)}}var Xe=y.ReactCurrentOwner,al=y.ReactDebugCurrentFrame;function bn(E){if(E){var H=E._owner,ne=Ke(E.type,E._source,H?H.type:null);al.setExtraStackFrame(ne)}else al.setExtraStackFrame(null)}var gi;gi=!1;function vi(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function sl(){{if(Xe.current){var E=K(Xe.current.type);if(E)return`
22
22
 
23
- Check the render method of \``+w+"`."}return""}}function Mm(w){return""}var ws={};function Om(w){{var $=ys();if(!$){var H=typeof w=="string"?w:w.displayName||w.name;H&&($=`
23
+ Check the render method of \``+E+"`."}return""}}function Iv(E){return""}var ll={};function jv(E){{var H=sl();if(!H){var ne=typeof E=="string"?E:E.displayName||E.name;ne&&(H=`
24
24
 
25
- Check the top-level render call using <`+H+">.")}return $}}function Cs(w,$){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var H=Om($);if(ws[H])return;ws[H]=!0;var ne="";w&&w._owner&&w._owner!==so.current&&(ne=" It was passed a child from "+Q(w._owner.type)+"."),Lt(w),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',H,ne),Lt(null)}}function Ss(w,$){{if(typeof w!="object")return;if(ao(w))for(var H=0;H<w.length;H++){var ne=w[H];lo(ne)&&Cs(ne,$)}else if(lo(w))w._store&&(w._store.validated=!0);else if(w){var ue=x(w);if(typeof ue=="function"&&ue!==w.entries)for(var fe=ue.call(w),de;!(de=fe.next()).done;)lo(de.value)&&Cs(de.value,$)}}}function Dm(w){{var $=w.type;if($==null||typeof $=="string")return;var H;if(typeof $=="function")H=$.propTypes;else if(typeof $=="object"&&($.$$typeof===c||$.$$typeof===p))H=$.propTypes;else return;if(H){var ne=Q($);Cm(H,w.props,"prop",ne,w)}else if($.PropTypes!==void 0&&!io){io=!0;var ue=Q($);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")}typeof $.getDefaultProps=="function"&&!$.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $m(w){{for(var $=Object.keys(w.props),H=0;H<$.length;H++){var ne=$[H];if(ne!=="children"&&ne!=="key"){Lt(w),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ne),Lt(null);break}}w.ref!==null&&(Lt(w),h("Invalid attribute `ref` supplied to `React.Fragment`."),Lt(null))}}var Es={};function ks(w,$,H,ne,ue,fe){{var de=U(w);if(!de){var le="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(le+=" 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 ke=Mm();ke?le+=ke:le+=ys();var ve;w===null?ve="null":ao(w)?ve="array":w!==void 0&&w.$$typeof===t?(ve="<"+(Q(w.type)||"Unknown")+" />",le=" Did you accidentally export a JSX literal instead of a component?"):ve=typeof w,h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ve,le)}var he=Im(w,$,H,ue,fe);if(he==null)return he;if(de){var Ae=$.children;if(Ae!==void 0)if(ne)if(ao(Ae)){for(var Ft=0;Ft<Ae.length;Ft++)Ss(Ae[Ft],w);Object.freeze&&Object.freeze(Ae)}else h("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 Ss(Ae,w)}if(Me.call($,"key")){var St=Q(w),Re=Object.keys($).filter(function(Wm){return Wm!=="key"}),co=Re.length>0?"{key: someKey, "+Re.join(": ..., ")+": ...}":"{key: someKey}";if(!Es[St+co]){var Gm=Re.length>0?"{"+Re.join(": ..., ")+": ...}":"{}";h(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+ne+">.")}return H}}function cl(E,H){{if(!E._store||E._store.validated||E.key!=null)return;E._store.validated=!0;var ne=jv(H);if(ll[ne])return;ll[ne]=!0;var le="";E&&E._owner&&E._owner!==Xe.current&&(le=" It was passed a child from "+K(E._owner.type)+"."),bn(E),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ne,le),bn(null)}}function ul(E,H){{if(typeof E!="object")return;if(Zn(E))for(var ne=0;ne<E.length;ne++){var le=E[ne];vi(le)&&cl(le,H)}else if(vi(E))E._store&&(E._store.validated=!0);else if(E){var ye=x(E);if(typeof ye=="function"&&ye!==E.entries)for(var we=ye.call(E),ve;!(ve=we.next()).done;)vi(ve.value)&&cl(ve.value,H)}}}function Av(E){{var H=E.type;if(H==null||typeof H=="string")return;var ne;if(typeof H=="function")ne=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===l||H.$$typeof===f))ne=H.propTypes;else return;if(ne){var le=K(H);Gr(ne,E.props,"prop",le,E)}else if(H.PropTypes!==void 0&&!gi){gi=!0;var ye=K(H);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ye||"Unknown")}typeof H.getDefaultProps=="function"&&!H.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _v(E){{for(var H=Object.keys(E.props),ne=0;ne<H.length;ne++){var le=H[ne];if(le!=="children"&&le!=="key"){bn(E),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",le),bn(null);break}}E.ref!==null&&(bn(E),b("Invalid attribute `ref` supplied to `React.Fragment`."),bn(null))}}var dl={};function fl(E,H,ne,le,ye,we){{var ve=U(E);if(!ve){var ge="";(E===void 0||typeof E=="object"&&E!==null&&Object.keys(E).length===0)&&(ge+=" 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 $e=Iv();$e?ge+=$e:ge+=sl();var Re;E===null?Re="null":Zn(E)?Re="array":E!==void 0&&E.$$typeof===t?(Re="<"+(K(E.type)||"Unknown")+" />",ge=" Did you accidentally export a JSX literal instead of a component?"):Re=typeof E,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Re,ge)}var Ne=_t(E,H,ne,ye,we);if(Ne==null)return Ne;if(ve){var nt=H.children;if(nt!==void 0)if(le)if(Zn(nt)){for(var yn=0;yn<nt.length;yn++)ul(nt[yn],E);Object.freeze&&Object.freeze(nt)}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 ul(nt,E)}if(Be.call(H,"key")){var tn=K(E),Ve=Object.keys(H).filter(function($v){return $v!=="key"}),xi=Ve.length>0?"{key: someKey, "+Ve.join(": ..., ")+": ...}":"{key: someKey}";if(!dl[tn+xi]){var Fv=Ve.length>0?"{"+Ve.join(": ..., ")+": ...}":"{}";b(`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} />`,co,St,Gm,St),Es[St+co]=!0}}return w===n?$m(he):Dm(he),he}}function Lm(w,$,H){return ks(w,$,H,!0)}function Fm(w,$,H){return ks(w,$,H,!1)}var Vm=Fm,Bm=Lm;ur.Fragment=n,ur.jsx=Vm,ur.jsxs=Bm})()),ur}var js;function Xm(){return js||(js=1,process.env.NODE_ENV==="production"?Hr.exports=Km():Hr.exports=Ym()),Hr.exports}var s=Xm();function qi(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=qi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ui(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=qi(e))&&(n&&(n+=" "),n+=t);return n}const Ps=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ts=Ui,At=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return Ts(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=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 g=Ps(f)||Ps(p);return o[u][g]}),l=r&&Object.entries(r).reduce((u,f)=>{let[p,g]=f;return g===void 0||(u[p]=g),u},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,f)=>{let{class:p,className:g,...m}=f;return Object.entries(m).every(b=>{let[v,x]=b;return Array.isArray(x)?x.includes({...a,...l}[v]):{...a,...l}[v]===x})?[...u,p,g]:u},[]);return Ts(e,i,c,r==null?void 0:r.class,r==null?void 0:r.className)},aa="-",Zm=e=>{const t=Qm(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const l=i.split(aa);return l[0]===""&&l.length!==1&&l.shift(),Hi(l,t)||Jm(i)},getConflictingClassGroupIds:(i,l)=>{const c=r[i]||[];return l&&n[i]?[...c,...n[i]]:c}}},Hi=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Hi(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(aa);return(i=t.validators.find(({validator:l})=>l(a)))==null?void 0:i.classGroupId},_s=/^\[(.+)\]$/,Jm=e=>{if(_s.test(e)){const t=_s.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Qm=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Ao(r[o],n,o,t);return n},Ao=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:As(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(eg(o)){Ao(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{Ao(i,As(t,a),r,n)})})},As=(e,t)=>{let r=e;return t.split(aa).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},eg=e=>e.isThemeGetter,tg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},Io="!",Mo=":",rg=Mo.length,ng=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,l=0,c=0,u;for(let b=0;b<o.length;b++){let v=o[b];if(i===0&&l===0){if(v===Mo){a.push(o.slice(c,b)),c=b+rg;continue}if(v==="/"){u=b;continue}}v==="["?i++:v==="]"?i--:v==="("?l++:v===")"&&l--}const f=a.length===0?o:o.substring(c),p=og(f),g=p!==f,m=u&&u>c?u-c:void 0;return{modifiers:a,hasImportantModifier:g,baseClassName:p,maybePostfixModifierPosition:m}};if(t){const o=t+Mo,a=n;n=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},og=e=>e.endsWith(Io)?e.substring(0,e.length-1):e.startsWith(Io)?e.substring(1):e,ag=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let a=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},sg=e=>({cache:tg(e.cacheSize),parseClassName:ng(e),sortModifiers:ag(e),...Zm(e)}),ig=/\s+/,lg=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],l=e.trim().split(ig);let c="";for(let u=l.length-1;u>=0;u-=1){const f=l[u],{isExternal:p,modifiers:g,hasImportantModifier:m,baseClassName:b,maybePostfixModifierPosition:v}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let x=!!v,y=n(x?b.substring(0,v):b);if(!y){if(!x){c=f+(c.length>0?" "+c:c);continue}if(y=n(b),!y){c=f+(c.length>0?" "+c:c);continue}x=!1}const h=a(g).join(":"),C=m?h+Io:h,E=C+y;if(i.includes(E))continue;i.push(E);const j=o(y,x);for(let _=0;_<j.length;++_){const P=j[_];i.push(C+P)}c=f+(c.length>0?" "+c:c)}return c};function cg(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Ki(t))&&(n&&(n+=" "),n+=r);return n}const Ki=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Ki(e[n]))&&(r&&(r+=" "),r+=t);return r};function dg(e,...t){let r,n,o,a=i;function i(c){const u=t.reduce((f,p)=>p(f),e());return r=sg(u),n=r.cache.get,o=r.cache.set,a=l,l(c)}function l(c){const u=n(c);if(u)return u;const f=lg(c,r);return o(c,f),f}return function(){return a(cg.apply(null,arguments))}}const xe=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Yi=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xi=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ug=/^\d+\/\d+$/,fg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pg=/\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$/,mg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,vg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vt=e=>ug.test(e),se=e=>!!e&&!Number.isNaN(Number(e)),st=e=>!!e&&Number.isInteger(Number(e)),uo=e=>e.endsWith("%")&&se(e.slice(0,-1)),Je=e=>fg.test(e),hg=()=>!0,xg=e=>pg.test(e)&&!mg.test(e),Zi=()=>!1,bg=e=>gg.test(e),yg=e=>vg.test(e),wg=e=>!Y(e)&&!X(e),Cg=e=>er(e,el,Zi),Y=e=>Yi.test(e),Et=e=>er(e,tl,xg),fo=e=>er(e,Ng,se),Is=e=>er(e,Ji,Zi),Sg=e=>er(e,Qi,yg),Kr=e=>er(e,rl,bg),X=e=>Xi.test(e),fr=e=>tr(e,tl),Eg=e=>tr(e,jg),Ms=e=>tr(e,Ji),kg=e=>tr(e,el),Rg=e=>tr(e,Qi),Yr=e=>tr(e,rl,!0),er=(e,t,r)=>{const n=Yi.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},tr=(e,t,r=!1)=>{const n=Xi.exec(e);return n?n[1]?t(n[1]):r:!1},Ji=e=>e==="position"||e==="percentage",Qi=e=>e==="image"||e==="url",el=e=>e==="length"||e==="size"||e==="bg-size",tl=e=>e==="length",Ng=e=>e==="number",jg=e=>e==="family-name",rl=e=>e==="shadow",Pg=()=>{const e=xe("color"),t=xe("font"),r=xe("text"),n=xe("font-weight"),o=xe("tracking"),a=xe("leading"),i=xe("breakpoint"),l=xe("container"),c=xe("spacing"),u=xe("radius"),f=xe("shadow"),p=xe("inset-shadow"),g=xe("text-shadow"),m=xe("drop-shadow"),b=xe("blur"),v=xe("perspective"),x=xe("aspect"),y=xe("ease"),h=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"],j=()=>[...E(),X,Y],_=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],N=()=>[X,Y,c],W=()=>[Vt,"full","auto",...N()],U=()=>[st,"none","subgrid",X,Y],re=()=>["auto",{span:["full",st,X,Y]},st,X,Y],te=()=>[st,"auto",X,Y],Q=()=>["auto","min","max","fr",X,Y],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...N()],D=()=>[Vt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],k=()=>[e,X,Y],M=()=>[...E(),Ms,Is,{position:[X,Y]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",kg,Cg,{size:[X,Y]}],T=()=>[uo,fr,Et],G=()=>["","none","full",u,X,Y],Z=()=>["",se,fr,Et],z=()=>["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"],A=()=>[se,uo,Ms,Is],K=()=>["","none",b,X,Y],ee=()=>["none",se,X,Y],oe=()=>["none",se,X,Y],ce=()=>[se,X,Y],ie=()=>[Vt,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Je],breakpoint:[Je],color:[hg],container:[Je],"drop-shadow":[Je],ease:["in","out","in-out"],font:[wg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Je],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Je],shadow:[Je],spacing:["px",se],text:[Je],"text-shadow":[Je],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Vt,Y,X,x]}],container:["container"],columns:[{columns:[se,Y,X,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:j()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[st,"auto",X,Y]}],basis:[{basis:[Vt,"full","auto",l,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[se,Vt,"auto","initial","none",Y]}],grow:[{grow:["",se,X,Y]}],shrink:[{shrink:["",se,X,Y]}],order:[{order:[st,"first","last","none",X,Y]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":U()}],"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":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],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: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":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[l,"screen",...D()]}],"min-w":[{"min-w":[l,"screen","none",...D()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[i]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",r,fr,Et]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,X,fo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",uo,Y]}],"font-family":[{font:[Eg,Y,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,X,Y]}],"line-clamp":[{"line-clamp":[se,"none",X,fo]}],leading:[{leading:[a,...N()]}],"list-image":[{"list-image":["none",X,Y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X,Y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...z(),"wavy"]}],"text-decoration-thickness":[{decoration:[se,"from-font","auto",X,Et]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[se,"auto",X,Y]}],"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",X,Y]}],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",X,Y]}],"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:B()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},st,X,Y],radial:["",X,Y],conic:[st,X,Y]},Rg,Sg]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:T()}],"gradient-via-pos":[{via:T()}],"gradient-to-pos":[{to:T()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...z(),"hidden","none"]}],"divide-style":[{divide:[...z(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[se,X,Y]}],"outline-w":[{outline:["",se,fr,Et]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",f,Yr,Kr]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",p,Yr,Kr]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[se,Et]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",g,Yr,Kr]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[se,X,Y]}],"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":[se]}],"mask-image-linear-from-pos":[{"mask-linear-from":A()}],"mask-image-linear-to-pos":[{"mask-linear-to":A()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":A()}],"mask-image-t-to-pos":[{"mask-t-to":A()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":A()}],"mask-image-r-to-pos":[{"mask-r-to":A()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":A()}],"mask-image-b-to-pos":[{"mask-b-to":A()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":A()}],"mask-image-l-to-pos":[{"mask-l-to":A()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":A()}],"mask-image-x-to-pos":[{"mask-x-to":A()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":A()}],"mask-image-y-to-pos":[{"mask-y-to":A()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[X,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":A()}],"mask-image-radial-to-pos":[{"mask-radial-to":A()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"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":[se]}],"mask-image-conic-from-pos":[{"mask-conic-from":A()}],"mask-image-conic-to-pos":[{"mask-conic-to":A()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,Y]}],filter:[{filter:["","none",X,Y]}],blur:[{blur:K()}],brightness:[{brightness:[se,X,Y]}],contrast:[{contrast:[se,X,Y]}],"drop-shadow":[{"drop-shadow":["","none",m,Yr,Kr]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",se,X,Y]}],"hue-rotate":[{"hue-rotate":[se,X,Y]}],invert:[{invert:["",se,X,Y]}],saturate:[{saturate:[se,X,Y]}],sepia:[{sepia:["",se,X,Y]}],"backdrop-filter":[{"backdrop-filter":["","none",X,Y]}],"backdrop-blur":[{"backdrop-blur":K()}],"backdrop-brightness":[{"backdrop-brightness":[se,X,Y]}],"backdrop-contrast":[{"backdrop-contrast":[se,X,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",se,X,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[se,X,Y]}],"backdrop-invert":[{"backdrop-invert":["",se,X,Y]}],"backdrop-opacity":[{"backdrop-opacity":[se,X,Y]}],"backdrop-saturate":[{"backdrop-saturate":[se,X,Y]}],"backdrop-sepia":[{"backdrop-sepia":["",se,X,Y]}],"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",X,Y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[se,"initial",X,Y]}],ease:[{ease:["linear","initial",y,X,Y]}],delay:[{delay:[se,X,Y]}],animate:[{animate:["none",h,X,Y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,X,Y]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:ce()}],"skew-x":[{"skew-x":ce()}],"skew-y":[{"skew-y":ce()}],transform:[{transform:[X,Y,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",X,Y]}],"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",X,Y]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[se,fr,Et,fo]}],stroke:[{stroke:["none",...k()]}],"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"]}},Tg=dg(Pg);function R(...e){return Tg(Ui(e))}function nl(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} />`,xi,tn,Fv,tn),dl[tn+xi]=!0}}return E===r?_v(Ne):Av(Ne),Ne}}function Mv(E,H,ne){return fl(E,H,ne,!0)}function Ov(E,H,ne){return fl(E,H,ne,!1)}var Dv=Ov,Lv=Mv;Qn.Fragment=r,Qn.jsx=Dv,Qn.jsxs=Lv})()),Qn}var hl;function Hv(){return hl||(hl=1,process.env.NODE_ENV==="production"?Hr.exports=Gv():Hr.exports=Uv()),Hr.exports}var u=Hv();function xu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=xu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bu(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=xu(e))&&(r&&(r+=" "),r+=t);return r}const gl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,vl=bu,dn=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return vl(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],f=i==null?void 0:i[c];if(d===null)return null;const m=gl(d)||gl(f);return o[c][m]}),s=n&&Object.entries(n).reduce((c,d)=>{let[f,m]=d;return m===void 0||(c[f]=m),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:f,className:m,...p}=d;return Object.entries(p).every(v=>{let[g,x]=v;return Array.isArray(x)?x.includes({...i,...s}[g]):{...i,...s}[g]===x})?[...c,f,m]:c},[]);return vl(e,a,l,n==null?void 0:n.class,n==null?void 0:n.className)},Da="-",Wv=e=>{const t=Yv(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(Da);return s[0]===""&&s.length!==1&&s.shift(),yu(s,t)||Kv(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},yu=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?yu(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(Da);return(a=t.validators.find(({validator:s})=>s(i)))==null?void 0:a.classGroupId},xl=/^\[(.+)\]$/,Kv=e=>{if(xl.test(e)){const t=xl.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Yv=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)Qi(n[o],r,o,t);return r},Qi=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:bl(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Xv(o)){Qi(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,a])=>{Qi(a,bl(t,i),n,r)})})},bl=(e,t)=>{let n=e;return t.split(Da).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Xv=e=>e.isThemeGetter,Zv=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return o(i,a),a},set(i,a){n.has(i)?n.set(i,a):o(i,a)}}},ea="!",ta=":",Jv=ta.length,Qv=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let a=0,s=0,l=0,c;for(let v=0;v<o.length;v++){let g=o[v];if(a===0&&s===0){if(g===ta){i.push(o.slice(l,v)),l=v+Jv;continue}if(g==="/"){c=v;continue}}g==="["?a++:g==="]"?a--:g==="("?s++:g===")"&&s--}const d=i.length===0?o:o.substring(l),f=ex(d),m=f!==d,p=c&&c>l?c-l:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:p}};if(t){const o=t+ta,i=r;r=a=>a.startsWith(o)?i(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},ex=e=>e.endsWith(ea)?e.substring(0,e.length-1):e.startsWith(ea)?e.substring(1):e,tx=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...i.sort(),a),i=[]):i.push(a)}),o.push(...i.sort()),o}},nx=e=>({cache:Zv(e.cacheSize),parseClassName:Qv(e),sortModifiers:tx(e),...Wv(e)}),rx=/\s+/,ox=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(rx);let l="";for(let c=s.length-1;c>=0;c-=1){const d=s[c],{isExternal:f,modifiers:m,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:g}=n(d);if(f){l=d+(l.length>0?" "+l:l);continue}let x=!!g,y=r(x?v.substring(0,g):v);if(!y){if(!x){l=d+(l.length>0?" "+l:l);continue}if(y=r(v),!y){l=d+(l.length>0?" "+l:l);continue}x=!1}const b=i(m).join(":"),k=p?b+ea:b,P=k+y;if(a.includes(P))continue;a.push(P);const N=o(y,x);for(let S=0;S<N.length;++S){const I=N[S];a.push(k+I)}l=d+(l.length>0?" "+l:l)}return l};function ix(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=wu(t))&&(r&&(r+=" "),r+=n);return r}const wu=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=wu(e[r]))&&(n&&(n+=" "),n+=t);return n};function ax(e,...t){let n,r,o,i=a;function a(l){const c=t.reduce((d,f)=>f(d),e());return n=nx(c),r=n.cache.get,o=n.cache.set,i=s,s(l)}function s(l){const c=r(l);if(c)return c;const d=ox(l,n);return o(l,d),d}return function(){return i(ix.apply(null,arguments))}}const Ie=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Cu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ku=/^\((?:(\w[\w-]*):)?(.+)\)$/i,sx=/^\d+\/\d+$/,lx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cx=/\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$/,ux=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wn=e=>sx.test(e),pe=e=>!!e&&!Number.isNaN(Number(e)),Mt=e=>!!e&&Number.isInteger(Number(e)),bi=e=>e.endsWith("%")&&pe(e.slice(0,-1)),Pt=e=>lx.test(e),px=()=>!0,mx=e=>cx.test(e)&&!ux.test(e),Su=()=>!1,hx=e=>dx.test(e),gx=e=>fx.test(e),vx=e=>!oe(e)&&!ie(e),xx=e=>$n(e,Ru,Su),oe=e=>Cu.test(e),nn=e=>$n(e,Nu,mx),yi=e=>$n(e,kx,pe),yl=e=>$n(e,Eu,Su),bx=e=>$n(e,Pu,gx),Wr=e=>$n(e,Tu,hx),ie=e=>ku.test(e),er=e=>zn(e,Nu),yx=e=>zn(e,Sx),wl=e=>zn(e,Eu),wx=e=>zn(e,Ru),Cx=e=>zn(e,Pu),Kr=e=>zn(e,Tu,!0),$n=(e,t,n)=>{const r=Cu.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zn=(e,t,n=!1)=>{const r=ku.exec(e);return r?r[1]?t(r[1]):n:!1},Eu=e=>e==="position"||e==="percentage",Pu=e=>e==="image"||e==="url",Ru=e=>e==="length"||e==="size"||e==="bg-size",Nu=e=>e==="length",kx=e=>e==="number",Sx=e=>e==="family-name",Tu=e=>e==="shadow",Ex=()=>{const e=Ie("color"),t=Ie("font"),n=Ie("text"),r=Ie("font-weight"),o=Ie("tracking"),i=Ie("leading"),a=Ie("breakpoint"),s=Ie("container"),l=Ie("spacing"),c=Ie("radius"),d=Ie("shadow"),f=Ie("inset-shadow"),m=Ie("text-shadow"),p=Ie("drop-shadow"),v=Ie("blur"),g=Ie("perspective"),x=Ie("aspect"),y=Ie("ease"),b=Ie("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...P(),ie,oe],S=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],j=()=>[ie,oe,l],q=()=>[wn,"full","auto",...j()],U=()=>[Mt,"none","subgrid",ie,oe],G=()=>["auto",{span:["full",Mt,ie,oe]},Mt,ie,oe],V=()=>[Mt,"auto",ie,oe],K=()=>["auto","min","max","fr",ie,oe],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],T=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...j()],F=()=>[wn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],M=()=>[e,ie,oe],B=()=>[...P(),wl,yl,{position:[ie,oe]}],C=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",wx,xx,{size:[ie,oe]}],A=()=>[bi,er,nn],w=()=>["","none","full",c,ie,oe],Y=()=>["",pe,er,nn],X=()=>["solid","dashed","dotted","double"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>[pe,bi,wl,yl],ee=()=>["","none",v,ie,oe],re=()=>["none",pe,ie,oe],ae=()=>["none",pe,ie,oe],fe=()=>[pe,ie,oe],me=()=>[wn,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pt],breakpoint:[Pt],color:[px],container:[Pt],"drop-shadow":[Pt],ease:["in","out","in-out"],font:[vx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pt],shadow:[Pt],spacing:["px",pe],text:[Pt],"text-shadow":[Pt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wn,oe,ie,x]}],container:["container"],columns:[{columns:[pe,oe,ie,s]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:N()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:q()}],"inset-x":[{"inset-x":q()}],"inset-y":[{"inset-y":q()}],start:[{start:q()}],end:[{end:q()}],top:[{top:q()}],right:[{right:q()}],bottom:[{bottom:q()}],left:[{left:q()}],visibility:["visible","invisible","collapse"],z:[{z:[Mt,"auto",ie,oe]}],basis:[{basis:[wn,"full","auto",s,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pe,wn,"auto","initial","none",oe]}],grow:[{grow:["",pe,ie,oe]}],shrink:[{shrink:["",pe,ie,oe]}],order:[{order:[Mt,"first","last","none",ie,oe]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...T(),"normal"]}],"justify-self":[{"justify-self":["auto",...T()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...T(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...T(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...T(),"baseline"]}],"place-self":[{"place-self":["auto",...T()]}],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:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[s,"screen",...F()]}],"min-w":[{"min-w":[s,"screen","none",...F()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",n,er,nn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ie,yi]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",bi,oe]}],"font-family":[{font:[yx,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,ie,oe]}],"line-clamp":[{"line-clamp":[pe,"none",ie,yi]}],leading:[{leading:[i,...j()]}],"list-image":[{"list-image":["none",ie,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[pe,"from-font","auto",ie,nn]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[pe,"auto",ie,oe]}],"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",ie,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",ie,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:B()}],"bg-repeat":[{bg:C()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mt,ie,oe],radial:["",ie,oe],conic:[Mt,ie,oe]},Cx,bx]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:w()}],"rounded-s":[{"rounded-s":w()}],"rounded-e":[{"rounded-e":w()}],"rounded-t":[{"rounded-t":w()}],"rounded-r":[{"rounded-r":w()}],"rounded-b":[{"rounded-b":w()}],"rounded-l":[{"rounded-l":w()}],"rounded-ss":[{"rounded-ss":w()}],"rounded-se":[{"rounded-se":w()}],"rounded-ee":[{"rounded-ee":w()}],"rounded-es":[{"rounded-es":w()}],"rounded-tl":[{"rounded-tl":w()}],"rounded-tr":[{"rounded-tr":w()}],"rounded-br":[{"rounded-br":w()}],"rounded-bl":[{"rounded-bl":w()}],"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:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pe,ie,oe]}],"outline-w":[{outline:["",pe,er,nn]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",d,Kr,Wr]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",f,Kr,Wr]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[pe,nn]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",m,Kr,Wr]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[pe,ie,oe]}],"mix-blend":[{"mix-blend":[...z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":z()}],"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":[pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":D()}],"mask-image-linear-to-pos":[{"mask-linear-to":D()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":D()}],"mask-image-t-to-pos":[{"mask-t-to":D()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":D()}],"mask-image-r-to-pos":[{"mask-r-to":D()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":D()}],"mask-image-b-to-pos":[{"mask-b-to":D()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":D()}],"mask-image-l-to-pos":[{"mask-l-to":D()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":D()}],"mask-image-x-to-pos":[{"mask-x-to":D()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":D()}],"mask-image-y-to-pos":[{"mask-y-to":D()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[ie,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":D()}],"mask-image-radial-to-pos":[{"mask-radial-to":D()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":P()}],"mask-image-conic-pos":[{"mask-conic":[pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":D()}],"mask-image-conic-to-pos":[{"mask-conic-to":D()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:C()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,oe]}],filter:[{filter:["","none",ie,oe]}],blur:[{blur:ee()}],brightness:[{brightness:[pe,ie,oe]}],contrast:[{contrast:[pe,ie,oe]}],"drop-shadow":[{"drop-shadow":["","none",p,Kr,Wr]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",pe,ie,oe]}],"hue-rotate":[{"hue-rotate":[pe,ie,oe]}],invert:[{invert:["",pe,ie,oe]}],saturate:[{saturate:[pe,ie,oe]}],sepia:[{sepia:["",pe,ie,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,oe]}],"backdrop-blur":[{"backdrop-blur":ee()}],"backdrop-brightness":[{"backdrop-brightness":[pe,ie,oe]}],"backdrop-contrast":[{"backdrop-contrast":[pe,ie,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pe,ie,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pe,ie,oe]}],"backdrop-invert":[{"backdrop-invert":["",pe,ie,oe]}],"backdrop-opacity":[{"backdrop-opacity":[pe,ie,oe]}],"backdrop-saturate":[{"backdrop-saturate":[pe,ie,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",pe,ie,oe]}],"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",ie,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pe,"initial",ie,oe]}],ease:[{ease:["linear","initial",y,ie,oe]}],delay:[{delay:[pe,ie,oe]}],animate:[{animate:["none",b,ie,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ie,oe]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[ie,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",ie,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":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",ie,oe]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[pe,er,nn,yi]}],stroke:[{stroke:["none",...M()]}],"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"]}},Px=ax(Ex);function O(...e){return Px(bu(e))}function Iu(e,t,n){let r="";return typeof e=="object"&&(e.base&&(r+=e.base),Object.keys(t).length&&Object.keys(t).forEach(o=>{o==="className"&&t[o]?(r=r.trim(),r+=` ${t[o]}`):t[o]&&e.hasOwnProperty(o)&&(n&&console.log("styles",o,t[o],e[o]),r=r.trim(),r+=` ${e[o]}`)})),n&&console.log("final.class",r.trim()),r.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 _g=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ag=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Os=e=>{const t=Ag(e);return t.charAt(0).toUpperCase()+t.slice(1)},ol=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Ig=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
35
+ */const Rx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Nx=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Cl=e=>{const t=Nx(e);return t.charAt(0).toUpperCase()+t.slice(1)},ju=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Tx=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 Mg={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 Ix={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 Og=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...l},c)=>S.createElement("svg",{ref:c,...Mg,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:ol("lucide",o),...!a&&!Ig(l)&&{"aria-hidden":"true"},...l},[...i.map(([u,f])=>S.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
45
+ */const jx=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>R.createElement("svg",{ref:l,...Ix,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ju("lucide",o),...!i&&!Tx(s)&&{"aria-hidden":"true"},...s},[...a.map(([c,d])=>R.createElement(c,d)),...Array.isArray(i)?i:[i]]));/**
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(Og,{ref:a,iconNode:t,className:ol(`lucide-${_g(Os(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Os(e),r};/**
50
+ */const Pe=(e,t)=>{const n=R.forwardRef(({className:r,...o},i)=>R.createElement(jx,{ref:i,iconNode:t,className:ju(`lucide-${Rx(Cl(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Cl(e),n};/**
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 Dg=[["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"}]],$g=ge("arrow-up-down",Dg);/**
55
+ */const Ax=[["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"}]],_x=Pe("arrow-up-down",Ax);/**
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 Lg=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],rr=ge("check",Lg);/**
60
+ */const Mx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Bn=Pe("check",Mx);/**
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 Fg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],En=ge("chevron-down",Fg);/**
65
+ */const Ox=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],To=Pe("chevron-down",Ox);/**
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 Vg=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Bg=ge("chevron-left",Vg);/**
70
+ */const Dx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Lx=Pe("chevron-left",Dx);/**
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 Gg=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],al=ge("chevron-right",Gg);/**
75
+ */const Fx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Au=Pe("chevron-right",Fx);/**
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 Wg=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],zg=ge("chevron-up",Wg);/**
80
+ */const $x=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],zx=Pe("chevron-up",$x);/**
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 qg=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Ug=ge("chevrons-up-down",qg);/**
85
+ */const Bx=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Vx=Pe("chevrons-up-down",Bx);/**
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 Hg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Kg=ge("circle",Hg);/**
90
+ */const qx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Gx=Pe("circle",qx);/**
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 Yg=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],Xg=ge("corner-down-right",Yg);/**
95
+ */const Ux=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],Hx=Pe("corner-down-right",Ux);/**
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 Zg=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],Jg=ge("dot",Zg);/**
100
+ */const Wx=[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]],Kx=Pe("dot",Wx);/**
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 Qg=[["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"}]],sl=ge("ellipsis",Qg);/**
105
+ */const Yx=[["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"}]],_u=Pe("ellipsis",Yx);/**
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 ev=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],tv=ge("info",ev);/**
110
+ */const Xx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Zx=Pe("info",Xx);/**
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 rv=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]],nv=ge("list-filter",rv);/**
115
+ */const Jx=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Qx=Pe("list-filter",Jx);/**
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 ov=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],il=ge("loader-circle",ov);/**
120
+ */const eb=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Mu=Pe("loader-circle",eb);/**
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 av=[["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"}]],sv=ge("mail",av);/**
125
+ */const tb=[["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"}]],nb=Pe("mail",tb);/**
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 iv=[["path",{d:"M5 12h14",key:"1ays0h"}]],lv=ge("minus",iv);/**
130
+ */const rb=[["path",{d:"M5 12h14",key:"1ays0h"}]],ob=Pe("minus",rb);/**
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 cv=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ll=ge("search",cv);/**
135
+ */const ib=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ou=Pe("search",ib);/**
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 dv=[["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"}]],uv=ge("tag",dv);/**
140
+ */const ab=[["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"}]],sb=Pe("tag",ab);/**
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 fv=[["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"}]],pv=ge("trash-2",fv);/**
145
+ */const lb=[["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"}]],cb=Pe("trash-2",lb);/**
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 mv=[["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"}]],gv=ge("trash",mv);/**
150
+ */const ub=[["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"}]],db=Pe("trash",ub);/**
151
151
  * @license lucide-react v0.525.0 - ISC
152
152
  *
153
153
  * This source code is licensed under the ISC license.
154
154
  * See the LICENSE file in the root directory of this source tree.
155
- */const vv=[["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"}]],hv=ge("triangle-alert",vv);/**
155
+ */const fb=[["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"}]],pb=Pe("triangle-alert",fb);/**
156
156
  * @license lucide-react v0.525.0 - ISC
157
157
  *
158
158
  * This source code is licensed under the ISC license.
159
159
  * See the LICENSE file in the root directory of this source tree.
160
- */const xv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kn=ge("x",xv),cl=At("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"}}),et=d.forwardRef(({className:e,variant:t,size:r,loading:n,children:o,disabled:a,...i},l)=>s.jsxs("button",{className:R(cl({variant:t,size:r,className:e})),ref:l,disabled:a||n,...i,children:[o,n&&s.jsx(il,{className:"ml-2 w-4 h-4 animate-spin"})]}));et.displayName="Button";const bv=At("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-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 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",{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",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-purple-muted-200 placeholder:text-destructive-foreground/70 dark:border-destructive dark:placeholder:text-destructive-foreground/70"}},defaultVariants:{variant:"default"}}),Pr=d.forwardRef(({className:e,variant:t,type:r,error:n,...o},a)=>s.jsx("input",{ref:a,type:r,"data-slot":"input","aria-invalid":n||void 0,className:R(bv({variant:t,className:e})),...o}));Pr.displayName="Input";function Ds(e,[t,r]){return Math.min(r,Math.max(t,e))}function F(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 yv(e,t){const r=d.createContext(t),n=a=>{const{children:i,...l}=a,c=d.useMemo(()=>l,Object.values(l));return s.jsx(r.Provider,{value:c,children:i})};n.displayName=e+"Provider";function o(a){const i=d.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function ye(e,t=[]){let r=[];function n(a,i){const l=d.createContext(i),c=r.length;r=[...r,i];const u=p=>{var y;const{scope:g,children:m,...b}=p,v=((y=g==null?void 0:g[e])==null?void 0:y[c])||l,x=d.useMemo(()=>b,Object.values(b));return s.jsx(v.Provider,{value:x,children:m})};u.displayName=a+"Provider";function f(p,g){var v;const m=((v=g==null?void 0:g[e])==null?void 0:v[c])||l,b=d.useContext(m);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[u,f]}const o=()=>{const a=r.map(i=>d.createContext(i));return function(l){const c=(l==null?void 0:l[e])||a;return d.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[n,wv(o,...t)]}function wv(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((l,{useScope:c,scopeName:u})=>{const p=c(a)[`__scope${u}`];return{...l,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function $s(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tt(...e){return t=>{let r=!1;const n=e.map(o=>{const a=$s(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():$s(e[o],null)}}}}function ae(...e){return d.useCallback(tt(...e),e)}function dt(e){const t=Sv(e),r=d.forwardRef((n,o)=>{const{children:a,...i}=n,l=d.Children.toArray(a),c=l.find(kv);if(c){const u=c.props.children,f=l.map(p=>p===c?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:p);return s.jsx(t,{...i,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return s.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var Cv=dt("Slot");function Sv(e){const t=d.forwardRef((r,n)=>{const{children:o,...a}=r;if(d.isValidElement(o)){const i=Nv(o),l=Rv(a,o.props);return o.type!==d.Fragment&&(l.ref=n?tt(n,i):i),d.cloneElement(o,l)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dl=Symbol("radix.slottable");function Ev(e){const t=({children:r})=>s.jsx(s.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=dl,t}function kv(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dl}function Rv(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 c=a(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Nv(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 Rn(e){const t=e+"CollectionProvider",[r,n]=ye(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=v=>{const{scope:x,children:y}=v,h=S.useRef(null),C=S.useRef(new Map).current;return s.jsx(o,{scope:x,itemMap:C,collectionRef:h,children:y})};i.displayName=t;const l=e+"CollectionSlot",c=dt(l),u=S.forwardRef((v,x)=>{const{scope:y,children:h}=v,C=a(l,y),E=ae(x,C.collectionRef);return s.jsx(c,{ref:E,children:h})});u.displayName=l;const f=e+"CollectionItemSlot",p="data-radix-collection-item",g=dt(f),m=S.forwardRef((v,x)=>{const{scope:y,children:h,...C}=v,E=S.useRef(null),j=ae(x,E),_=a(f,y);return S.useEffect(()=>(_.itemMap.set(E,{ref:E,...C}),()=>void _.itemMap.delete(E))),s.jsx(g,{[p]:"",ref:j,children:h})});m.displayName=f;function b(v){const x=a(e+"CollectionConsumer",v);return S.useCallback(()=>{const h=x.collectionRef.current;if(!h)return[];const C=Array.from(h.querySelectorAll(`[${p}]`));return Array.from(x.itemMap.values()).sort((_,P)=>C.indexOf(_.ref.current)-C.indexOf(P.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:u,ItemSlot:m},b,n]}var jv=d.createContext(void 0);function It(e){const t=d.useContext(jv);return e||t||"ltr"}var Pv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],q=Pv.reduce((e,t)=>{const r=dt(`Primitive.${t}`),n=d.forwardRef((o,a)=>{const{asChild:i,...l}=o,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),s.jsx(c,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ul(e,t){e&&Sn.flushSync(()=>e.dispatchEvent(t))}function De(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 Tv(e,t=globalThis==null?void 0:globalThis.document){const r=De(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 _v="DismissableLayer",Oo="dismissableLayer.update",Av="dismissableLayer.pointerDownOutside",Iv="dismissableLayer.focusOutside",Ls,fl=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...c}=e,u=d.useContext(fl),[f,p]=d.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=d.useState({}),b=ae(t,P=>p(P)),v=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(x),h=f?v.indexOf(f):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,E=h>=y,j=Dv(P=>{const N=P.target,W=[...u.branches].some(U=>U.contains(N));!E||W||(o==null||o(P),i==null||i(P),P.defaultPrevented||l==null||l())},g),_=$v(P=>{const N=P.target;[...u.branches].some(U=>U.contains(N))||(a==null||a(P),i==null||i(P),P.defaultPrevented||l==null||l())},g);return Tv(P=>{h===u.layers.size-1&&(n==null||n(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},g),d.useEffect(()=>{if(f)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ls=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Fs(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Ls)}},[f,g,r,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Fs())},[f,u]),d.useEffect(()=>{const P=()=>m({});return document.addEventListener(Oo,P),()=>document.removeEventListener(Oo,P)},[]),s.jsx(q.div,{...c,ref:b,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,_.onFocusCapture),onBlurCapture:F(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,j.onPointerDownCapture)})});nr.displayName=_v;var Mv="DismissableLayerBranch",Ov=d.forwardRef((e,t)=>{const r=d.useContext(fl),n=d.useRef(null),o=ae(t,n);return d.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),s.jsx(q.div,{...e,ref:o})});Ov.displayName=Mv;function Dv(e,t=globalThis==null?void 0:globalThis.document){const r=De(e),n=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const a=l=>{if(l.target&&!n.current){let c=function(){pl(Av,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function $v(e,t=globalThis==null?void 0:globalThis.document){const r=De(e),n=d.useRef(!1);return d.useEffect(()=>{const o=a=>{a.target&&!n.current&&pl(Iv,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 Fs(){const e=new CustomEvent(Oo);document.dispatchEvent(e)}function pl(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?ul(o,a):o.dispatchEvent(a)}var po=0;function Nn(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vs()),document.body.insertAdjacentElement("beforeend",e[1]??Vs()),po++,()=>{po===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),po--}},[])}function Vs(){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 mo="focusScope.autoFocusOnMount",go="focusScope.autoFocusOnUnmount",Bs={bubbles:!1,cancelable:!0},Lv="FocusScope",Tr=d.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,c]=d.useState(null),u=De(o),f=De(a),p=d.useRef(null),g=ae(t,v=>c(v)),m=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(n){let v=function(C){if(m.paused||!l)return;const E=C.target;l.contains(E)?p.current=E:it(p.current,{select:!0})},x=function(C){if(m.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 j of C)j.removedNodes.length>0&&it(l)};document.addEventListener("focusin",v),document.addEventListener("focusout",x);const h=new MutationObserver(y);return l&&h.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",x),h.disconnect()}}},[n,l,m.paused]),d.useEffect(()=>{if(l){Ws.add(m);const v=document.activeElement;if(!l.contains(v)){const y=new CustomEvent(mo,Bs);l.addEventListener(mo,u),l.dispatchEvent(y),y.defaultPrevented||(Fv(zv(ml(l)),{select:!0}),document.activeElement===v&&it(l))}return()=>{l.removeEventListener(mo,u),setTimeout(()=>{const y=new CustomEvent(go,Bs);l.addEventListener(go,f),l.dispatchEvent(y),y.defaultPrevented||it(v??document.body,{select:!0}),l.removeEventListener(go,f),Ws.remove(m)},0)}}},[l,u,f,m]);const b=d.useCallback(v=>{if(!r&&!n||m.paused)return;const x=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(x&&y){const h=v.currentTarget,[C,E]=Vv(h);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===h&&v.preventDefault()}},[r,n,m.paused]);return s.jsx(q.div,{tabIndex:-1,...i,ref:g,onKeyDown:b})});Tr.displayName=Lv;function Fv(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(it(n,{select:t}),document.activeElement!==r)return}function Vv(e){const t=ml(e),r=Gs(t,e),n=Gs(t.reverse(),e);return[r,n]}function ml(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 Gs(e,t){for(const r of e)if(!Bv(r,{upTo:t}))return r}function Bv(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 Gv(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&&Gv(e)&&t&&e.select()}}var Ws=Wv();function Wv(){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 zv(e){return e.filter(t=>t.tagName!=="A")}var we=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},qv=d[" useId ".trim().toString()]||(()=>{}),Uv=0;function me(e){const[t,r]=d.useState(qv());return we(()=>{r(n=>n??String(Uv++))},[e]),t?`radix-${t}`:""}const Hv=["top","right","bottom","left"],ut=Math.min,Pe=Math.max,ln=Math.round,Xr=Math.floor,He=e=>({x:e,y:e}),Kv={left:"right",right:"left",bottom:"top",top:"bottom"},Yv={start:"end",end:"start"};function Do(e,t,r){return Pe(e,ut(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 Xv=new Set(["top","bottom"]);function Ue(e){return Xv.has(nt(e))?"y":"x"}function la(e){return sa(Ue(e))}function Zv(e,t,r){r===void 0&&(r=!1);const n=or(e),o=la(e),a=ia(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=cn(i)),[i,cn(i)]}function Jv(e){const t=cn(e);return[$o(e),t,$o(t)]}function $o(e){return e.replace(/start|end/g,t=>Yv[t])}const qs=["left","right"],Us=["right","left"],Qv=["top","bottom"],eh=["bottom","top"];function th(e,t,r){switch(e){case"top":case"bottom":return r?t?Us:qs:t?qs:Us;case"left":case"right":return t?Qv:eh;default:return[]}}function rh(e,t,r,n){const o=or(e);let a=th(nt(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map($o)))),a}function cn(e){return e.replace(/left|right|bottom|top/g,t=>Kv[t])}function nh(e){return{top:0,right:0,bottom:0,left:0,...e}}function gl(e){return typeof e!="number"?nh(e):{top:e,right:e,bottom:e,left:e}}function dn(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 Hs(e,t,r){let{reference:n,floating:o}=e;const a=Ue(t),i=la(t),l=ia(i),c=nt(t),u=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,g=n[l]/2-o[l]/2;let m;switch(c){case"top":m={x:f,y:n.y-o.height};break;case"bottom":m={x:f,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:p};break;case"left":m={x:n.x-o.width,y:p};break;default:m={x:n.x,y:n.y}}switch(or(t)){case"start":m[i]-=g*(r&&u?-1:1);break;case"end":m[i]+=g*(r&&u?-1:1);break}return m}const oh=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,l=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Hs(u,n,c),g=n,m={},b=0;for(let v=0;v<l.length;v++){const{name:x,fn:y}=l[v],{x:h,y:C,data:E,reset:j}=await y({x:f,y:p,initialPlacement:n,placement:g,strategy:o,middlewareData:m,rects:u,platform:i,elements:{reference:e,floating:t}});f=h??f,p=C??p,m={...m,[x]:{...m[x],...E}},j&&b<=50&&(b++,typeof j=="object"&&(j.placement&&(g=j.placement),j.rects&&(u=j.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):j.rects),{x:f,y:p}=Hs(u,g,c)),v=-1)}return{x:f,y:p,placement:g,strategy:o,middlewareData:m}};async function Sr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:g=!1,padding:m=0}=rt(t,e),b=gl(m),x=l[g?p==="floating"?"reference":"floating":p],y=dn(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(l.floating)),boundary:u,rootBoundary:f,strategy:c})),h=p==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.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},j=dn(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:h,offsetParent:C,strategy:c}):h);return{top:(y.top-j.top+b.top)/E.y,bottom:(j.bottom-y.bottom+b.bottom)/E.y,left:(y.left-j.left+b.left)/E.x,right:(j.right-y.right+b.right)/E.x}}const ah=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:l,middlewareData:c}=t,{element:u,padding:f=0}=rt(e,t)||{};if(u==null)return{};const p=gl(f),g={x:r,y:n},m=la(o),b=ia(m),v=await i.getDimensions(u),x=m==="y",y=x?"top":"left",h=x?"bottom":"right",C=x?"clientHeight":"clientWidth",E=a.reference[b]+a.reference[m]-g[m]-a.floating[b],j=g[m]-a.reference[m],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let P=_?_[C]:0;(!P||!await(i.isElement==null?void 0:i.isElement(_)))&&(P=l.floating[C]||a.floating[b]);const N=E/2-j/2,W=P/2-v[b]/2-1,U=ut(p[y],W),re=ut(p[h],W),te=U,Q=P-v[b]-re,V=P/2-v[b]/2+N,O=Do(te,V,Q),I=!c.arrow&&or(o)!=null&&V!==O&&a.reference[b]/2-(V<te?U:re)-v[b]/2<0,D=I?V<te?V-te:V-Q:0;return{[m]:g[m]+D,data:{[m]:O,centerOffset:V-O-D,...I&&{alignmentOffset:D}},reset:I}}}),sh=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...x}=rt(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=nt(o),h=Ue(l),C=nt(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),j=g||(C||!v?[cn(l)]:Jv(l)),_=b!=="none";!g&&_&&j.push(...rh(l,v,b,E));const P=[l,...j],N=await Sr(t,x),W=[];let U=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&W.push(N[y]),p){const V=Zv(o,i,E);W.push(N[V[0]],N[V[1]])}if(U=[...U,{placement:o,overflows:W}],!W.every(V=>V<=0)){var re,te;const V=(((re=a.flip)==null?void 0:re.index)||0)+1,O=P[V];if(O&&(!(p==="alignment"?h!==Ue(O):!1)||U.every(k=>Ue(k.placement)===h?k.overflows[0]>0:!0)))return{data:{index:V,overflows:U},reset:{placement:O}};let I=(te=U.filter(D=>D.overflows[0]<=0).sort((D,k)=>D.overflows[1]-k.overflows[1])[0])==null?void 0:te.placement;if(!I)switch(m){case"bestFit":{var Q;const D=(Q=U.filter(k=>{if(_){const M=Ue(k.placement);return M===h||M==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(M=>M>0).reduce((M,B)=>M+B,0)]).sort((k,M)=>k[1]-M[1])[0])==null?void 0:Q[0];D&&(I=D);break}case"initialPlacement":I=l;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function Ks(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ys(e){return Hv.some(t=>e[t]>=0)}const ih=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 Sr(t,{...o,elementContext:"reference"}),i=Ks(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ys(i)}}}case"escaped":{const a=await Sr(t,{...o,altBoundary:!0}),i=Ks(a,r.floating);return{data:{escapedOffsets:i,escaped:Ys(i)}}}default:return{}}}}},vl=new Set(["left","top"]);async function lh(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=nt(r),l=or(r),c=Ue(r)==="y",u=vl.has(i)?-1:1,f=a&&c?-1:1,p=rt(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof b=="number"&&(m=l==="end"?b*-1:b),c?{x:m*f,y:g*u}:{x:g*u,y:m*f}}const ch=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:l}=t,c=await lh(t,e);return i===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},dh=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:x=>{let{x:y,y:h}=x;return{x:y,y:h}}},...c}=rt(e,t),u={x:r,y:n},f=await Sr(t,c),p=Ue(nt(o)),g=sa(p);let m=u[g],b=u[p];if(a){const x=g==="y"?"top":"left",y=g==="y"?"bottom":"right",h=m+f[x],C=m-f[y];m=Do(h,m,C)}if(i){const x=p==="y"?"top":"left",y=p==="y"?"bottom":"right",h=b+f[x],C=b-f[y];b=Do(h,b,C)}const v=l.fn({...t,[g]:m,[p]:b});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[g]:a,[p]:i}}}}}},uh=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=rt(e,t),f={x:r,y:n},p=Ue(o),g=sa(p);let m=f[g],b=f[p];const v=rt(l,t),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const C=g==="y"?"height":"width",E=a.reference[g]-a.floating[C]+x.mainAxis,j=a.reference[g]+a.reference[C]-x.mainAxis;m<E?m=E:m>j&&(m=j)}if(u){var y,h;const C=g==="y"?"width":"height",E=vl.has(nt(o)),j=a.reference[p]-a.floating[C]+(E&&((y=i.offset)==null?void 0:y[p])||0)+(E?0:x.crossAxis),_=a.reference[p]+a.reference[C]+(E?0:((h=i.offset)==null?void 0:h[p])||0)-(E?x.crossAxis:0);b<j?b=j:b>_&&(b=_)}return{[g]:m,[p]:b}}}},fh=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:l}=t,{apply:c=()=>{},...u}=rt(e,t),f=await Sr(t,u),p=nt(o),g=or(o),m=Ue(o)==="y",{width:b,height:v}=a.floating;let x,y;p==="top"||p==="bottom"?(x=p,y=g===(await(i.isRTL==null?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(y=p,x=g==="end"?"top":"bottom");const h=v-f.top-f.bottom,C=b-f.left-f.right,E=ut(v-f[x],h),j=ut(b-f[y],C),_=!t.middlewareData.shift;let P=E,N=j;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(N=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=h),_&&!g){const U=Pe(f.left,0),re=Pe(f.right,0),te=Pe(f.top,0),Q=Pe(f.bottom,0);m?N=b-2*(U!==0||re!==0?U+re:Pe(f.left,f.right)):P=v-2*(te!==0||Q!==0?te+Q:Pe(f.top,f.bottom))}await c({...t,availableWidth:N,availableHeight:P});const W=await i.getDimensions(l.floating);return b!==W.width||v!==W.height?{reset:{rects:!0}}:{}}}};function jn(){return typeof window<"u"}function ar(e){return hl(e)?(e.nodeName||"").toLowerCase():"#document"}function Te(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ye(e){var t;return(t=(hl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hl(e){return jn()?e instanceof Node||e instanceof Te(e).Node:!1}function $e(e){return jn()?e instanceof Element||e instanceof Te(e).Element:!1}function Ke(e){return jn()?e instanceof HTMLElement||e instanceof Te(e).HTMLElement:!1}function Xs(e){return!jn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Te(e).ShadowRoot}const ph=new Set(["inline","contents"]);function _r(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Le(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!ph.has(o)}const mh=new Set(["table","td","th"]);function gh(e){return mh.has(ar(e))}const vh=[":popover-open",":modal"];function Pn(e){return vh.some(t=>{try{return e.matches(t)}catch{return!1}})}const hh=["transform","translate","scale","rotate","perspective"],xh=["transform","translate","scale","rotate","perspective","filter"],bh=["paint","layout","strict","content"];function ca(e){const t=da(),r=$e(e)?Le(e):e;return hh.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)||xh.some(n=>(r.willChange||"").includes(n))||bh.some(n=>(r.contain||"").includes(n))}function yh(e){let t=ft(e);for(;Ke(t)&&!Xt(t);){if(ca(t))return t;if(Pn(t))return null;t=ft(t)}return null}function da(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wh=new Set(["html","body","#document"]);function Xt(e){return wh.has(ar(e))}function Le(e){return Te(e).getComputedStyle(e)}function Tn(e){return $e(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ft(e){if(ar(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xs(e)&&e.host||Ye(e);return Xs(t)?t.host:t}function xl(e){const t=ft(e);return Xt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ke(t)&&_r(t)?t:xl(t)}function Er(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=xl(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=Te(o);if(a){const l=Lo(i);return t.concat(i,i.visualViewport||[],_r(o)?o:[],l&&r?Er(l):[])}return t.concat(o,Er(o,[],r))}function Lo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bl(e){const t=Le(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ke(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,l=ln(r)!==a||ln(n)!==i;return l&&(r=a,n=i),{width:r,height:n,$:l}}function ua(e){return $e(e)?e:e.contextElement}function Kt(e){const t=ua(e);if(!Ke(t))return He(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=bl(t);let i=(a?ln(r.width):r.width)/n,l=(a?ln(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Ch=He(0);function yl(e){const t=Te(e);return!da()||!t.visualViewport?Ch:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Sh(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Te(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 i=He(1);t&&(n?$e(n)&&(i=Kt(n)):i=Kt(e));const l=Sh(a,r,n)?yl(a):He(0);let c=(o.left+l.x)/i.x,u=(o.top+l.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(a){const g=Te(a),m=n&&$e(n)?Te(n):n;let b=g,v=Lo(b);for(;v&&n&&m!==b;){const x=Kt(v),y=v.getBoundingClientRect(),h=Le(v),C=y.left+(v.clientLeft+parseFloat(h.paddingLeft))*x.x,E=y.top+(v.clientTop+parseFloat(h.paddingTop))*x.y;c*=x.x,u*=x.y,f*=x.x,p*=x.y,c+=C,u+=E,b=Te(v),v=Lo(b)}}return dn({width:f,height:p,x:c,y:u})}function _n(e,t){const r=Tn(e).scrollLeft;return t?t.left+r:Rt(Ye(e)).left+r}function wl(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-_n(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Eh(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=Ye(n),l=t?Pn(t.floating):!1;if(n===i||l&&a)return r;let c={scrollLeft:0,scrollTop:0},u=He(1);const f=He(0),p=Ke(n);if((p||!p&&!a)&&((ar(n)!=="body"||_r(i))&&(c=Tn(n)),Ke(n))){const m=Rt(n);u=Kt(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}const g=i&&!p&&!a?wl(i,c):He(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+g.x,y:r.y*u.y-c.scrollTop*u.y+f.y+g.y}}function kh(e){return Array.from(e.getClientRects())}function Rh(e){const t=Ye(e),r=Tn(e),n=e.ownerDocument.body,o=Pe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Pe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+_n(e);const l=-r.scrollTop;return Le(n).direction==="rtl"&&(i+=Pe(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:l}}const Zs=25;function Nh(e,t){const r=Te(e),n=Ye(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,l=0,c=0;if(o){a=o.width,i=o.height;const f=da();(!f||f&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}const u=_n(n);if(u<=0){const f=n.ownerDocument,p=f.body,g=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,b=Math.abs(n.clientWidth-p.clientWidth-m);b<=Zs&&(a-=b)}else u<=Zs&&(a+=u);return{width:a,height:i,x:l,y:c}}const jh=new Set(["absolute","fixed"]);function Ph(e,t){const r=Rt(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ke(e)?Kt(e):He(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y,c=o*a.x,u=n*a.y;return{width:i,height:l,x:c,y:u}}function Js(e,t,r){let n;if(t==="viewport")n=Nh(e,r);else if(t==="document")n=Rh(Ye(e));else if($e(t))n=Ph(t,r);else{const o=yl(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return dn(n)}function Cl(e,t){const r=ft(e);return r===t||!$e(r)||Xt(r)?!1:Le(r).position==="fixed"||Cl(r,t)}function Th(e,t){const r=t.get(e);if(r)return r;let n=Er(e,[],!1).filter(l=>$e(l)&&ar(l)!=="body"),o=null;const a=Le(e).position==="fixed";let i=a?ft(e):e;for(;$e(i)&&!Xt(i);){const l=Le(i),c=ca(i);!c&&l.position==="fixed"&&(o=null),(a?!c&&!o:!c&&l.position==="static"&&!!o&&jh.has(o.position)||_r(i)&&!c&&Cl(e,i))?n=n.filter(f=>f!==i):o=l,i=ft(i)}return t.set(e,n),n}function _h(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?Pn(t)?[]:Th(t,this._c):[].concat(r),n],l=i[0],c=i.reduce((u,f)=>{const p=Js(t,f,o);return u.top=Pe(p.top,u.top),u.right=ut(p.right,u.right),u.bottom=ut(p.bottom,u.bottom),u.left=Pe(p.left,u.left),u},Js(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ah(e){const{width:t,height:r}=bl(e);return{width:t,height:r}}function Ih(e,t,r){const n=Ke(t),o=Ye(t),a=r==="fixed",i=Rt(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const c=He(0);function u(){c.x=_n(o)}if(n||!n&&!a)if((ar(t)!=="body"||_r(o))&&(l=Tn(t)),n){const m=Rt(t,!0,a,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&u();a&&!n&&o&&u();const f=o&&!n&&!a?wl(o,l):He(0),p=i.left+l.scrollLeft-c.x-f.x,g=i.top+l.scrollTop-c.y-f.y;return{x:p,y:g,width:i.width,height:i.height}}function vo(e){return Le(e).position==="static"}function Qs(e,t){if(!Ke(e)||Le(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Ye(e)===r&&(r=r.ownerDocument.body),r}function Sl(e,t){const r=Te(e);if(Pn(e))return r;if(!Ke(e)){let o=ft(e);for(;o&&!Xt(o);){if($e(o)&&!vo(o))return o;o=ft(o)}return r}let n=Qs(e,t);for(;n&&gh(n)&&vo(n);)n=Qs(n,t);return n&&Xt(n)&&vo(n)&&!ca(n)?r:n||yh(e)||r}const Mh=async function(e){const t=this.getOffsetParent||Sl,r=this.getDimensions,n=await r(e.floating);return{reference:Ih(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Oh(e){return Le(e).direction==="rtl"}const Dh={convertOffsetParentRelativeRectToViewportRelativeRect:Eh,getDocumentElement:Ye,getClippingRect:_h,getOffsetParent:Sl,getElementRects:Mh,getClientRects:kh,getDimensions:Ah,getScale:Kt,isElement:$e,isRTL:Oh};function El(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $h(e,t){let r=null,n;const o=Ye(e);function a(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),a();const u=e.getBoundingClientRect(),{left:f,top:p,width:g,height:m}=u;if(l||t(),!g||!m)return;const b=Xr(p),v=Xr(o.clientWidth-(f+g)),x=Xr(o.clientHeight-(p+m)),y=Xr(f),C={rootMargin:-b+"px "+-v+"px "+-x+"px "+-y+"px",threshold:Pe(0,ut(1,c))||1};let E=!0;function j(_){const P=_[0].intersectionRatio;if(P!==c){if(!E)return i();P?i(!1,P):n=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!El(u,e.getBoundingClientRect())&&i(),E=!1}try{r=new IntersectionObserver(j,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(j,C)}r.observe(e)}return i(!0),a}function Lh(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=ua(e),f=o||a?[...u?Er(u):[],...Er(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const p=u&&l?$h(u,r):null;let g=-1,m=null;i&&(m=new ResizeObserver(y=>{let[h]=y;h&&h.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var C;(C=m)==null||C.observe(t)})),r()}),u&&!c&&m.observe(u),m.observe(t));let b,v=c?Rt(e):null;c&&x();function x(){const y=Rt(e);v&&!El(v,y)&&r(),v=y,b=requestAnimationFrame(x)}return r(),()=>{var y;f.forEach(h=>{o&&h.removeEventListener("scroll",r),a&&h.removeEventListener("resize",r)}),p==null||p(),(y=m)==null||y.disconnect(),m=null,c&&cancelAnimationFrame(b)}}const Fh=ch,Vh=dh,Bh=sh,Gh=fh,Wh=ih,ei=ah,zh=uh,qh=(e,t,r)=>{const n=new Map,o={platform:Dh,...r},a={...o.platform,_c:n};return oh(e,t,{...o,platform:a})};var Uh=typeof document<"u",Hh=function(){},nn=Uh?S.useLayoutEffect:Hh;function un(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(!un(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)&&!un(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function kl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ti(e,t){const r=kl(e);return Math.round(t*r)/r}function ho(e){const t=d.useRef(e);return nn(()=>{t.current=e}),t}function Kh(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[f,p]=d.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=d.useState(n);un(g,n)||m(n);const[b,v]=d.useState(null),[x,y]=d.useState(null),h=d.useCallback(k=>{k!==_.current&&(_.current=k,v(k))},[]),C=d.useCallback(k=>{k!==P.current&&(P.current=k,y(k))},[]),E=a||b,j=i||x,_=d.useRef(null),P=d.useRef(null),N=d.useRef(f),W=c!=null,U=ho(c),re=ho(o),te=ho(u),Q=d.useCallback(()=>{if(!_.current||!P.current)return;const k={placement:t,strategy:r,middleware:g};re.current&&(k.platform=re.current),qh(_.current,P.current,k).then(M=>{const B={...M,isPositioned:te.current!==!1};V.current&&!un(N.current,B)&&(N.current=B,Sn.flushSync(()=>{p(B)}))})},[g,t,r,re,te]);nn(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(k=>({...k,isPositioned:!1})))},[u]);const V=d.useRef(!1);nn(()=>(V.current=!0,()=>{V.current=!1}),[]),nn(()=>{if(E&&(_.current=E),j&&(P.current=j),E&&j){if(U.current)return U.current(E,j,Q);Q()}},[E,j,Q,U,W]);const O=d.useMemo(()=>({reference:_,floating:P,setReference:h,setFloating:C}),[h,C]),I=d.useMemo(()=>({reference:E,floating:j}),[E,j]),D=d.useMemo(()=>{const k={position:r,left:0,top:0};if(!I.floating)return k;const M=ti(I.floating,f.x),B=ti(I.floating,f.y);return l?{...k,transform:"translate("+M+"px, "+B+"px)",...kl(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:B}},[r,l,I.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:Q,refs:O,elements:I,floatingStyles:D}),[f,Q,O,I,D])}const Yh=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?ei({element:n.current,padding:o}).fn(r):{}:n?ei({element:n,padding:o}).fn(r):{}}}},Xh=(e,t)=>({...Fh(e),options:[e,t]}),Zh=(e,t)=>({...Vh(e),options:[e,t]}),Jh=(e,t)=>({...zh(e),options:[e,t]}),Qh=(e,t)=>({...Bh(e),options:[e,t]}),ex=(e,t)=>({...Gh(e),options:[e,t]}),tx=(e,t)=>({...Wh(e),options:[e,t]}),rx=(e,t)=>({...Yh(e),options:[e,t]});var nx="Arrow",Rl=d.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return s.jsx(q.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});Rl.displayName=nx;var ox=Rl;function An(e){const[t,r]=d.useState(void 0);return we(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,l;if("borderBoxSize"in a){const c=a.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,l=u.blockSize}else i=e.offsetWidth,l=e.offsetHeight;r({width:i,height:l})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var fa="Popper",[Nl,mt]=ye(fa),[ax,jl]=Nl(fa),Pl=e=>{const{__scopePopper:t,children:r}=e,[n,o]=d.useState(null);return s.jsx(ax,{scope:t,anchor:n,onAnchorChange:o,children:r})};Pl.displayName=fa;var Tl="PopperAnchor",_l=d.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=jl(Tl,r),i=d.useRef(null),l=ae(t,i),c=d.useRef(null);return d.useEffect(()=>{const u=c.current;c.current=(n==null?void 0:n.current)||i.current,u!==c.current&&a.onAnchorChange(c.current)}),n?null:s.jsx(q.div,{...o,ref:l})});_l.displayName=Tl;var pa="PopperContent",[sx,ix]=Nl(pa),Al=d.forwardRef((e,t)=>{var A,K,ee,oe,ce,ie;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:b,...v}=e,x=jl(pa,r),[y,h]=d.useState(null),C=ae(t,Ee=>h(Ee)),[E,j]=d.useState(null),_=An(E),P=(_==null?void 0:_.width)??0,N=(_==null?void 0:_.height)??0,W=n+(a!=="center"?"-"+a:""),U=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},re=Array.isArray(u)?u:[u],te=re.length>0,Q={padding:U,boundary:re.filter(cx),altBoundary:te},{refs:V,floatingStyles:O,placement:I,isPositioned:D,middlewareData:k}=Kh({strategy:"fixed",placement:W,whileElementsMounted:(...Ee)=>Lh(...Ee,{animationFrame:m==="always"}),elements:{reference:x.anchor},middleware:[Xh({mainAxis:o+N,alignmentAxis:i}),c&&Zh({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Jh():void 0,...Q}),c&&Qh({...Q}),ex({...Q,apply:({elements:Ee,rects:_e,availableWidth:Ge,availableHeight:Me})=>{const{width:at,height:Ur}=_e.reference,Ze=Ee.floating.style;Ze.setProperty("--radix-popper-available-width",`${Ge}px`),Ze.setProperty("--radix-popper-available-height",`${Me}px`),Ze.setProperty("--radix-popper-anchor-width",`${at}px`),Ze.setProperty("--radix-popper-anchor-height",`${Ur}px`)}}),E&&rx({element:E,padding:l}),dx({arrowWidth:P,arrowHeight:N}),g&&tx({strategy:"referenceHidden",...Q})]}),[M,B]=Ol(I),J=De(b);we(()=>{D&&(J==null||J())},[D,J]);const T=(A=k.arrow)==null?void 0:A.x,G=(K=k.arrow)==null?void 0:K.y,Z=((ee=k.arrow)==null?void 0:ee.centerOffset)!==0,[z,L]=d.useState();return we(()=>{y&&L(window.getComputedStyle(y).zIndex)},[y]),s.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:D?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[(oe=k.transformOrigin)==null?void 0:oe.x,(ce=k.transformOrigin)==null?void 0:ce.y].join(" "),...((ie=k.hide)==null?void 0:ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(sx,{scope:r,placedSide:M,onArrowChange:j,arrowX:T,arrowY:G,shouldHideArrow:Z,children:s.jsx(q.div,{"data-side":M,"data-align":B,...v,ref:C,style:{...v.style,animation:D?void 0:"none"}})})})});Al.displayName=pa;var Il="PopperArrow",lx={top:"bottom",right:"left",bottom:"top",left:"right"},Ml=d.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=ix(Il,n),i=lx[a.placedSide];return s.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:s.jsx(ox,{...o,ref:r,style:{...o.style,display:"block"}})})});Ml.displayName=Il;function cx(e){return e!==null}var dx=e=>({name:"transformOrigin",options:e,fn(t){var x,y,h;const{placement:r,rects:n,middlewareData:o}=t,i=((x=o.arrow)==null?void 0:x.centerOffset)!==0,l=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,f]=Ol(r),p={start:"0%",center:"50%",end:"100%"}[f],g=(((y=o.arrow)==null?void 0:y.x)??0)+l/2,m=(((h=o.arrow)==null?void 0:h.y)??0)+c/2;let b="",v="";return u==="bottom"?(b=i?p:`${g}px`,v=`${-c}px`):u==="top"?(b=i?p:`${g}px`,v=`${n.floating.height+c}px`):u==="right"?(b=`${-c}px`,v=i?p:`${m}px`):u==="left"&&(b=`${n.floating.width+c}px`,v=i?p:`${m}px`),{data:{x:b,y:v}}}});function Ol(e){const[t,r="center"]=e.split("-");return[t,r]}var Ar=Pl,Ir=_l,In=Al,Mn=Ml,ux="Portal",sr=d.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[o,a]=d.useState(!1);we(()=>a(!0),[]);const i=r||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?jr.createPortal(s.jsx(q.div,{...n,ref:t}),i):null});sr.displayName=ux;var fx=d[" useInsertionEffect ".trim().toString()]||we;function be({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,i]=px({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:o;{const f=d.useRef(e!==void 0);d.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=d.useCallback(f=>{var p;if(l){const g=mx(f)?f(e):f;g!==e&&((p=i.current)==null||p.call(i,g))}else a(f)},[l,e,a,i]);return[c,u]}function px({defaultProp:e,onChange:t}){const[r,n]=d.useState(e),o=d.useRef(r),a=d.useRef(t);return fx(()=>{a.current=t},[t]),d.useEffect(()=>{var i;o.current!==r&&((i=a.current)==null||i.call(a,r),o.current=r)},[r,o]),[r,n,a]}function mx(e){return typeof e=="function"}function On(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 Dl=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"}),gx="VisuallyHidden",$l=d.forwardRef((e,t)=>s.jsx(q.span,{...e,ref:t,style:{...Dl,...e.style}}));$l.displayName=gx;var vx=$l,hx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Bt=new WeakMap,Zr=new WeakMap,Jr={},xo=0,Ll=function(e){return e&&(e.host||Ll(e.parentNode))},xx=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Ll(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})},bx=function(e,t,r,n){var o=xx(t,Array.isArray(e)?e:[e]);Jr[r]||(Jr[r]=new WeakMap);var a=Jr[r],i=[],l=new Set,c=new Set(o),u=function(p){!p||l.has(p)||(l.add(p),u(p.parentNode))};o.forEach(u);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(l.has(g))f(g);else try{var m=g.getAttribute(n),b=m!==null&&m!=="false",v=(Bt.get(g)||0)+1,x=(a.get(g)||0)+1;Bt.set(g,v),a.set(g,x),i.push(g),v===1&&b&&Zr.set(g,!0),x===1&&g.setAttribute(r,"true"),b||g.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",g,y)}})};return f(t),l.clear(),xo++,function(){i.forEach(function(p){var g=Bt.get(p)-1,m=a.get(p)-1;Bt.set(p,g),a.set(p,m),g||(Zr.has(p)||p.removeAttribute(n),Zr.delete(p)),m||p.removeAttribute(r)}),xo--,xo||(Bt=new WeakMap,Bt=new WeakMap,Zr=new WeakMap,Jr={})}},Dn=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=hx(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),bx(n,o,r,"aria-hidden")):function(){return null}},qe=function(){return qe=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},qe.apply(this,arguments)};function Fl(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 yx(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 on="right-scroll-bar-position",an="width-before-scroll-bar",wx="with-scroll-bars-hidden",Cx="--removed-body-scroll-bar-size";function bo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Sx(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 Ex=typeof window<"u"?d.useLayoutEffect:d.useEffect,ri=new WeakMap;function kx(e,t){var r=Sx(null,function(n){return e.forEach(function(o){return bo(o,n)})});return Ex(function(){var n=ri.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(l){a.has(l)||bo(l,null)}),a.forEach(function(l){o.has(l)||bo(l,i)})}ri.set(r,e)},[e]),r}function Rx(e){return e}function Nx(e,t){t===void 0&&(t=Rx);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(l){return l!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(l){return a(l)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var l=r;r=[],l.forEach(a),i=r}var c=function(){var f=i;i=[],f.forEach(a)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),r}}}};return o}function jx(e){e===void 0&&(e={});var t=Nx(null);return t.options=qe({async:!0,ssr:!1},e),t}var Vl=function(e){var t=e.sideCar,r=Fl(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,qe({},r))};Vl.isSideCarExport=!0;function Px(e,t){return e.useMedium(t),Vl}var Bl=jx(),yo=function(){},$n=d.forwardRef(function(e,t){var r=d.useRef(null),n=d.useState({onScrollCapture:yo,onWheelCapture:yo,onTouchMoveCapture:yo}),o=n[0],a=n[1],i=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,p=e.shards,g=e.sideCar,m=e.noRelative,b=e.noIsolation,v=e.inert,x=e.allowPinchZoom,y=e.as,h=y===void 0?"div":y,C=e.gapMode,E=Fl(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=g,_=kx([r,t]),P=qe(qe({},E),o);return d.createElement(d.Fragment,null,f&&d.createElement(j,{sideCar:Bl,removeScrollBar:u,shards:p,noRelative:m,noIsolation:b,inert:v,setCallbacks:a,allowPinchZoom:!!x,lockRef:r,gapMode:C}),i?d.cloneElement(d.Children.only(l),qe(qe({},P),{ref:_})):d.createElement(h,qe({},P,{className:c,ref:_}),l))});$n.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$n.classNames={fullWidth:an,zeroRight:on};var Tx=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _x(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Tx();return t&&e.setAttribute("nonce",t),e}function Ax(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ix(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Mx=function(){var e=0,t=null;return{add:function(r){e==0&&(t=_x())&&(Ax(t,r),Ix(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ox=function(){var e=Mx();return function(t,r){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Gl=function(){var e=Ox(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Dx={left:0,top:0,right:0,gap:0},wo=function(e){return parseInt(e||"",10)||0},$x=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[wo(r),wo(n),wo(o)]},Lx=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Dx;var t=$x(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])}},Fx=Gl(),Yt="data-scroll-locked",Vx=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,l=e.gap;return r===void 0&&(r="margin"),`
161
- .`.concat(wx,` {
162
- overflow: hidden `).concat(n,`;
163
- padding-right: `).concat(l,"px ").concat(n,`;
160
+ */const mb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Io=Pe("x",mb),Du=dn("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"}}),Nt=h.forwardRef(({className:e,variant:t,size:n,loading:r,children:o,disabled:i,...a},s)=>u.jsxs("button",{className:O(Du({variant:t,size:n,className:e})),ref:s,disabled:i||r,...a,children:[o,r&&u.jsx(Mu,{className:"ml-2 w-4 h-4 animate-spin"})]}));Nt.displayName="Button";const hb=dn("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-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-[--var(text-input-neutral-idle)] 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",{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",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"}}),Er=h.forwardRef(({className:e,variant:t,type:n,error:r,...o},i)=>u.jsx("input",{ref:i,type:n,"data-slot":"input","aria-invalid":r||void 0,className:O(hb({variant:t,className:e})),...o}));Er.displayName="Input";function kl(e,[t,n]){return Math.min(n,Math.max(t,e))}function J(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function gb(e,t){const n=h.createContext(t),r=i=>{const{children:a,...s}=i,l=h.useMemo(()=>s,Object.values(s));return u.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(i){const a=h.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function Ae(e,t=[]){let n=[];function r(i,a){const s=h.createContext(a),l=n.length;n=[...n,a];const c=f=>{var y;const{scope:m,children:p,...v}=f,g=((y=m==null?void 0:m[e])==null?void 0:y[l])||s,x=h.useMemo(()=>v,Object.values(v));return u.jsx(g.Provider,{value:x,children:p})};c.displayName=i+"Provider";function d(f,m){var g;const p=((g=m==null?void 0:m[e])==null?void 0:g[l])||s,v=h.useContext(p);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,d]}const o=()=>{const i=n.map(a=>h.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,vb(o,...t)]}function vb(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...s,...f}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Sl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Tt(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Sl(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Sl(e[o],null)}}}}function de(...e){return h.useCallback(Tt(...e),e)}function $t(e){const t=bb(e),n=h.forwardRef((r,o)=>{const{children:i,...a}=r,s=h.Children.toArray(i),l=s.find(wb);if(l){const c=l.props.children,d=s.map(f=>f===l?h.Children.count(c)>1?h.Children.only(null):h.isValidElement(c)?c.props.children:null:f);return u.jsx(t,{...a,ref:o,children:h.isValidElement(c)?h.cloneElement(c,void 0,d):null})}return u.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var xb=$t("Slot");function bb(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const a=kb(o),s=Cb(i,o.props);return o.type!==h.Fragment&&(s.ref=r?Tt(r,a):a),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lu=Symbol("radix.slottable");function yb(e){const t=({children:n})=>u.jsx(u.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Lu,t}function wb(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lu}function Cb(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function kb(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function jo(e){const t=e+"CollectionProvider",[n,r]=Ae(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:x,children:y}=g,b=R.useRef(null),k=R.useRef(new Map).current;return u.jsx(o,{scope:x,itemMap:k,collectionRef:b,children:y})};a.displayName=t;const s=e+"CollectionSlot",l=$t(s),c=R.forwardRef((g,x)=>{const{scope:y,children:b}=g,k=i(s,y),P=de(x,k.collectionRef);return u.jsx(l,{ref:P,children:b})});c.displayName=s;const d=e+"CollectionItemSlot",f="data-radix-collection-item",m=$t(d),p=R.forwardRef((g,x)=>{const{scope:y,children:b,...k}=g,P=R.useRef(null),N=de(x,P),S=i(d,y);return R.useEffect(()=>(S.itemMap.set(P,{ref:P,...k}),()=>void S.itemMap.delete(P))),u.jsx(m,{[f]:"",ref:N,children:b})});p.displayName=d;function v(g){const x=i(e+"CollectionConsumer",g);return R.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const k=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(x.itemMap.values()).sort((S,I)=>k.indexOf(S.ref.current)-k.indexOf(I.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:c,ItemSlot:p},v,r]}var Sb=h.createContext(void 0);function fn(e){const t=h.useContext(Sb);return e||t||"ltr"}var Eb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],te=Eb.reduce((e,t)=>{const n=$t(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Fu(e,t){e&&No.flushSync(()=>e.dispatchEvent(t))}function lt(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Pb(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e);h.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Rb="DismissableLayer",na="dismissableLayer.update",Nb="dismissableLayer.pointerDownOutside",Tb="dismissableLayer.focusOutside",El,$u=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vn=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=h.useContext($u),[d,f]=h.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=h.useState({}),v=de(t,I=>f(I)),g=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(x),b=d?g.indexOf(d):-1,k=c.layersWithOutsidePointerEventsDisabled.size>0,P=b>=y,N=Ab(I=>{const j=I.target,q=[...c.branches].some(U=>U.contains(j));!P||q||(o==null||o(I),a==null||a(I),I.defaultPrevented||s==null||s())},m),S=_b(I=>{const j=I.target;[...c.branches].some(U=>U.contains(j))||(i==null||i(I),a==null||a(I),I.defaultPrevented||s==null||s())},m);return Pb(I=>{b===c.layers.size-1&&(r==null||r(I),!I.defaultPrevented&&s&&(I.preventDefault(),s()))},m),h.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(El=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Pl(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=El)}},[d,m,n,c]),h.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Pl())},[d,c]),h.useEffect(()=>{const I=()=>p({});return document.addEventListener(na,I),()=>document.removeEventListener(na,I)},[]),u.jsx(te.div,{...l,ref:v,style:{pointerEvents:k?P?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,S.onFocusCapture),onBlurCapture:J(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,N.onPointerDownCapture)})});Vn.displayName=Rb;var Ib="DismissableLayerBranch",jb=h.forwardRef((e,t)=>{const n=h.useContext($u),r=h.useRef(null),o=de(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),u.jsx(te.div,{...e,ref:o})});jb.displayName=Ib;function Ab(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){zu(Nb,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _b(e,t=globalThis==null?void 0:globalThis.document){const n=lt(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&zu(Tb,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Pl(){const e=new CustomEvent(na);document.dispatchEvent(e)}function zu(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fu(o,i):o.dispatchEvent(i)}var wi=0;function Ao(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Rl()),document.body.insertAdjacentElement("beforeend",e[1]??Rl()),wi++,()=>{wi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),wi--}},[])}function Rl(){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 Ci="focusScope.autoFocusOnMount",ki="focusScope.autoFocusOnUnmount",Nl={bubbles:!1,cancelable:!0},Mb="FocusScope",Pr=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=h.useState(null),c=lt(o),d=lt(i),f=h.useRef(null),m=de(t,g=>l(g)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let g=function(k){if(p.paused||!s)return;const P=k.target;s.contains(P)?f.current=P:Dt(f.current,{select:!0})},x=function(k){if(p.paused||!s)return;const P=k.relatedTarget;P!==null&&(s.contains(P)||Dt(f.current,{select:!0}))},y=function(k){if(document.activeElement===document.body)for(const N of k)N.removedNodes.length>0&&Dt(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",x);const b=new MutationObserver(y);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",x),b.disconnect()}}},[r,s,p.paused]),h.useEffect(()=>{if(s){Il.add(p);const g=document.activeElement;if(!s.contains(g)){const y=new CustomEvent(Ci,Nl);s.addEventListener(Ci,c),s.dispatchEvent(y),y.defaultPrevented||(Ob(zb(Bu(s)),{select:!0}),document.activeElement===g&&Dt(s))}return()=>{s.removeEventListener(Ci,c),setTimeout(()=>{const y=new CustomEvent(ki,Nl);s.addEventListener(ki,d),s.dispatchEvent(y),y.defaultPrevented||Dt(g??document.body,{select:!0}),s.removeEventListener(ki,d),Il.remove(p)},0)}}},[s,c,d,p]);const v=h.useCallback(g=>{if(!n&&!r||p.paused)return;const x=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(x&&y){const b=g.currentTarget,[k,P]=Db(b);k&&P?!g.shiftKey&&y===P?(g.preventDefault(),n&&Dt(k,{select:!0})):g.shiftKey&&y===k&&(g.preventDefault(),n&&Dt(P,{select:!0})):y===b&&g.preventDefault()}},[n,r,p.paused]);return u.jsx(te.div,{tabIndex:-1,...a,ref:m,onKeyDown:v})});Pr.displayName=Mb;function Ob(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Dt(r,{select:t}),document.activeElement!==n)return}function Db(e){const t=Bu(e),n=Tl(t,e),r=Tl(t.reverse(),e);return[n,r]}function Bu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Tl(e,t){for(const n of e)if(!Lb(n,{upTo:t}))return n}function Lb(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 Fb(e){return e instanceof HTMLInputElement&&"select"in e}function Dt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Fb(e)&&t&&e.select()}}var Il=$b();function $b(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jl(e,t),e.unshift(t)},remove(t){var n;e=jl(e,t),(n=e[0])==null||n.resume()}}}function jl(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zb(e){return e.filter(t=>t.tagName!=="A")}var Me=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},Bb=h[" useId ".trim().toString()]||(()=>{}),Vb=0;function Ee(e){const[t,n]=h.useState(Bb());return Me(()=>{n(r=>r??String(Vb++))},[e]),t?`radix-${t}`:""}const qb=["top","right","bottom","left"],zt=Math.min,Je=Math.max,uo=Math.round,Yr=Math.floor,yt=e=>({x:e,y:e}),Gb={left:"right",right:"left",bottom:"top",top:"bottom"},Ub={start:"end",end:"start"};function ra(e,t,n){return Je(e,zt(t,n))}function It(e,t){return typeof e=="function"?e(t):e}function jt(e){return e.split("-")[0]}function qn(e){return e.split("-")[1]}function La(e){return e==="x"?"y":"x"}function Fa(e){return e==="y"?"height":"width"}const Hb=new Set(["top","bottom"]);function bt(e){return Hb.has(jt(e))?"y":"x"}function $a(e){return La(bt(e))}function Wb(e,t,n){n===void 0&&(n=!1);const r=qn(e),o=$a(e),i=Fa(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=fo(a)),[a,fo(a)]}function Kb(e){const t=fo(e);return[oa(e),t,oa(t)]}function oa(e){return e.replace(/start|end/g,t=>Ub[t])}const Al=["left","right"],_l=["right","left"],Yb=["top","bottom"],Xb=["bottom","top"];function Zb(e,t,n){switch(e){case"top":case"bottom":return n?t?_l:Al:t?Al:_l;case"left":case"right":return t?Yb:Xb;default:return[]}}function Jb(e,t,n,r){const o=qn(e);let i=Zb(jt(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(oa)))),i}function fo(e){return e.replace(/left|right|bottom|top/g,t=>Gb[t])}function Qb(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vu(e){return typeof e!="number"?Qb(e):{top:e,right:e,bottom:e,left:e}}function po(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ml(e,t,n){let{reference:r,floating:o}=e;const i=bt(t),a=$a(t),s=Fa(a),l=jt(t),c=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(qn(t)){case"start":p[a]-=m*(n&&c?-1:1);break;case"end":p[a]+=m*(n&&c?-1:1);break}return p}const ey=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Ml(c,r,l),m=r,p={},v=0;for(let g=0;g<s.length;g++){const{name:x,fn:y}=s[g],{x:b,y:k,data:P,reset:N}=await y({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});d=b??d,f=k??f,p={...p,[x]:{...p[x],...P}},N&&v<=50&&(v++,typeof N=="object"&&(N.placement&&(m=N.placement),N.rects&&(c=N.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):N.rects),{x:d,y:f}=Ml(c,m,l)),g=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:p}};async function xr(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:p=0}=It(t,e),v=Vu(p),x=s[m?f==="floating"?"reference":"floating":f],y=po(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),b=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),P=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},N=po(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:k,strategy:l}):b);return{top:(y.top-N.top+v.top)/P.y,bottom:(N.bottom-y.bottom+v.bottom)/P.y,left:(y.left-N.left+v.left)/P.x,right:(N.right-y.right+v.right)/P.x}}const ty=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=It(e,t)||{};if(c==null)return{};const f=Vu(d),m={x:n,y:r},p=$a(o),v=Fa(p),g=await a.getDimensions(c),x=p==="y",y=x?"top":"left",b=x?"bottom":"right",k=x?"clientHeight":"clientWidth",P=i.reference[v]+i.reference[p]-m[p]-i.floating[v],N=m[p]-i.reference[p],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let I=S?S[k]:0;(!I||!await(a.isElement==null?void 0:a.isElement(S)))&&(I=s.floating[k]||i.floating[v]);const j=P/2-N/2,q=I/2-g[v]/2-1,U=zt(f[y],q),G=zt(f[b],q),V=U,K=I-g[v]-G,L=I/2-g[v]/2+j,T=ra(V,L,K),_=!l.arrow&&qn(o)!=null&&L!==T&&i.reference[v]/2-(L<V?U:G)-g[v]/2<0,F=_?L<V?L-V:L-K:0;return{[p]:m[p]+F,data:{[p]:T,centerOffset:L-T-F,..._&&{alignmentOffset:F}},reset:_}}}),ny=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:g=!0,...x}=It(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=jt(o),b=bt(s),k=jt(s)===s,P=await(l.isRTL==null?void 0:l.isRTL(c.floating)),N=m||(k||!g?[fo(s)]:Kb(s)),S=v!=="none";!m&&S&&N.push(...Jb(s,g,v,P));const I=[s,...N],j=await xr(t,x),q=[];let U=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&q.push(j[y]),f){const L=Wb(o,a,P);q.push(j[L[0]],j[L[1]])}if(U=[...U,{placement:o,overflows:q}],!q.every(L=>L<=0)){var G,V;const L=(((G=i.flip)==null?void 0:G.index)||0)+1,T=I[L];if(T&&(!(f==="alignment"?b!==bt(T):!1)||U.every(M=>bt(M.placement)===b?M.overflows[0]>0:!0)))return{data:{index:L,overflows:U},reset:{placement:T}};let _=(V=U.filter(F=>F.overflows[0]<=0).sort((F,M)=>F.overflows[1]-M.overflows[1])[0])==null?void 0:V.placement;if(!_)switch(p){case"bestFit":{var K;const F=(K=U.filter(M=>{if(S){const B=bt(M.placement);return B===b||B==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(B=>B>0).reduce((B,C)=>B+C,0)]).sort((M,B)=>M[1]-B[1])[0])==null?void 0:K[0];F&&(_=F);break}case"initialPlacement":_=s;break}if(o!==_)return{reset:{placement:_}}}return{}}}};function Ol(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Dl(e){return qb.some(t=>e[t]>=0)}const ry=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=It(e,t);switch(r){case"referenceHidden":{const i=await xr(t,{...o,elementContext:"reference"}),a=Ol(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Dl(a)}}}case"escaped":{const i=await xr(t,{...o,altBoundary:!0}),a=Ol(i,n.floating);return{data:{escapedOffsets:a,escaped:Dl(a)}}}default:return{}}}}},qu=new Set(["left","top"]);async function oy(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=jt(n),s=qn(n),l=bt(n)==="y",c=qu.has(a)?-1:1,d=i&&l?-1:1,f=It(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof v=="number"&&(p=s==="end"?v*-1:v),l?{x:p*d,y:m*c}:{x:m*c,y:p*d}}const iy=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await oy(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},ay=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:x=>{let{x:y,y:b}=x;return{x:y,y:b}}},...l}=It(e,t),c={x:n,y:r},d=await xr(t,l),f=bt(jt(o)),m=La(f);let p=c[m],v=c[f];if(i){const x=m==="y"?"top":"left",y=m==="y"?"bottom":"right",b=p+d[x],k=p-d[y];p=ra(b,p,k)}if(a){const x=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=v+d[x],k=v-d[y];v=ra(b,v,k)}const g=s.fn({...t,[m]:p,[f]:v});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[m]:i,[f]:a}}}}}},sy=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=It(e,t),d={x:n,y:r},f=bt(o),m=La(f);let p=d[m],v=d[f];const g=It(s,t),x=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const k=m==="y"?"height":"width",P=i.reference[m]-i.floating[k]+x.mainAxis,N=i.reference[m]+i.reference[k]-x.mainAxis;p<P?p=P:p>N&&(p=N)}if(c){var y,b;const k=m==="y"?"width":"height",P=qu.has(jt(o)),N=i.reference[f]-i.floating[k]+(P&&((y=a.offset)==null?void 0:y[f])||0)+(P?0:x.crossAxis),S=i.reference[f]+i.reference[k]+(P?0:((b=a.offset)==null?void 0:b[f])||0)-(P?x.crossAxis:0);v<N?v=N:v>S&&(v=S)}return{[m]:p,[f]:v}}}},ly=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=It(e,t),d=await xr(t,c),f=jt(o),m=qn(o),p=bt(o)==="y",{width:v,height:g}=i.floating;let x,y;f==="top"||f==="bottom"?(x=f,y=m===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=f,x=m==="end"?"top":"bottom");const b=g-d.top-d.bottom,k=v-d.left-d.right,P=zt(g-d[x],b),N=zt(v-d[y],k),S=!t.middlewareData.shift;let I=P,j=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=b),S&&!m){const U=Je(d.left,0),G=Je(d.right,0),V=Je(d.top,0),K=Je(d.bottom,0);p?j=v-2*(U!==0||G!==0?U+G:Je(d.left,d.right)):I=g-2*(V!==0||K!==0?V+K:Je(d.top,d.bottom))}await l({...t,availableWidth:j,availableHeight:I});const q=await a.getDimensions(s.floating);return v!==q.width||g!==q.height?{reset:{rects:!0}}:{}}}};function _o(){return typeof window<"u"}function Gn(e){return Gu(e)?(e.nodeName||"").toLowerCase():"#document"}function et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kt(e){var t;return(t=(Gu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gu(e){return _o()?e instanceof Node||e instanceof et(e).Node:!1}function ct(e){return _o()?e instanceof Element||e instanceof et(e).Element:!1}function wt(e){return _o()?e instanceof HTMLElement||e instanceof et(e).HTMLElement:!1}function Ll(e){return!_o()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof et(e).ShadowRoot}const cy=new Set(["inline","contents"]);function Rr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!cy.has(o)}const uy=new Set(["table","td","th"]);function dy(e){return uy.has(Gn(e))}const fy=[":popover-open",":modal"];function Mo(e){return fy.some(t=>{try{return e.matches(t)}catch{return!1}})}const py=["transform","translate","scale","rotate","perspective"],my=["transform","translate","scale","rotate","perspective","filter"],hy=["paint","layout","strict","content"];function za(e){const t=Ba(),n=ct(e)?ut(e):e;return py.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||my.some(r=>(n.willChange||"").includes(r))||hy.some(r=>(n.contain||"").includes(r))}function gy(e){let t=Bt(e);for(;wt(t)&&!On(t);){if(za(t))return t;if(Mo(t))return null;t=Bt(t)}return null}function Ba(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vy=new Set(["html","body","#document"]);function On(e){return vy.has(Gn(e))}function ut(e){return et(e).getComputedStyle(e)}function Oo(e){return ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bt(e){if(Gn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ll(e)&&e.host||kt(e);return Ll(t)?t.host:t}function Uu(e){const t=Bt(e);return On(t)?e.ownerDocument?e.ownerDocument.body:e.body:wt(t)&&Rr(t)?t:Uu(t)}function br(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Uu(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=et(o);if(i){const s=ia(a);return t.concat(a,a.visualViewport||[],Rr(o)?o:[],s&&n?br(s):[])}return t.concat(o,br(o,[],n))}function ia(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hu(e){const t=ut(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=wt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=uo(n)!==i||uo(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Va(e){return ct(e)?e:e.contextElement}function jn(e){const t=Va(e);if(!wt(t))return yt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Hu(t);let a=(i?uo(n.width):n.width)/r,s=(i?uo(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const xy=yt(0);function Wu(e){const t=et(e);return!Ba()||!t.visualViewport?xy:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function by(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==et(e)?!1:t}function on(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Va(e);let a=yt(1);t&&(r?ct(r)&&(a=jn(r)):a=jn(e));const s=by(i,n,r)?Wu(i):yt(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(i){const m=et(i),p=r&&ct(r)?et(r):r;let v=m,g=ia(v);for(;g&&r&&p!==v;){const x=jn(g),y=g.getBoundingClientRect(),b=ut(g),k=y.left+(g.clientLeft+parseFloat(b.paddingLeft))*x.x,P=y.top+(g.clientTop+parseFloat(b.paddingTop))*x.y;l*=x.x,c*=x.y,d*=x.x,f*=x.y,l+=k,c+=P,v=et(g),g=ia(v)}}return po({width:d,height:f,x:l,y:c})}function Do(e,t){const n=Oo(e).scrollLeft;return t?t.left+n:on(kt(e)).left+n}function Ku(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Do(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function yy(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=kt(r),s=t?Mo(t.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=yt(1);const d=yt(0),f=wt(r);if((f||!f&&!i)&&((Gn(r)!=="body"||Rr(a))&&(l=Oo(r)),wt(r))){const p=on(r);c=jn(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const m=a&&!f&&!i?Ku(a,l):yt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+m.x,y:n.y*c.y-l.scrollTop*c.y+d.y+m.y}}function wy(e){return Array.from(e.getClientRects())}function Cy(e){const t=kt(e),n=Oo(e),r=e.ownerDocument.body,o=Je(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Je(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Do(e);const s=-n.scrollTop;return ut(r).direction==="rtl"&&(a+=Je(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const Fl=25;function ky(e,t){const n=et(e),r=kt(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const d=Ba();(!d||d&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=Do(r);if(c<=0){const d=r.ownerDocument,f=d.body,m=getComputedStyle(f),p=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-p);v<=Fl&&(i-=v)}else c<=Fl&&(i+=c);return{width:i,height:a,x:s,y:l}}const Sy=new Set(["absolute","fixed"]);function Ey(e,t){const n=on(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=wt(e)?jn(e):yt(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:a,height:s,x:l,y:c}}function $l(e,t,n){let r;if(t==="viewport")r=ky(e,n);else if(t==="document")r=Cy(kt(e));else if(ct(t))r=Ey(t,n);else{const o=Wu(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return po(r)}function Yu(e,t){const n=Bt(e);return n===t||!ct(n)||On(n)?!1:ut(n).position==="fixed"||Yu(n,t)}function Py(e,t){const n=t.get(e);if(n)return n;let r=br(e,[],!1).filter(s=>ct(s)&&Gn(s)!=="body"),o=null;const i=ut(e).position==="fixed";let a=i?Bt(e):e;for(;ct(a)&&!On(a);){const s=ut(a),l=za(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&Sy.has(o.position)||Rr(a)&&!l&&Yu(e,a))?r=r.filter(d=>d!==a):o=s,a=Bt(a)}return t.set(e,r),r}function Ry(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Mo(t)?[]:Py(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((c,d)=>{const f=$l(t,d,o);return c.top=Je(f.top,c.top),c.right=zt(f.right,c.right),c.bottom=zt(f.bottom,c.bottom),c.left=Je(f.left,c.left),c},$l(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ny(e){const{width:t,height:n}=Hu(e);return{width:t,height:n}}function Ty(e,t,n){const r=wt(t),o=kt(t),i=n==="fixed",a=on(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=yt(0);function c(){l.x=Do(o)}if(r||!r&&!i)if((Gn(t)!=="body"||Rr(o))&&(s=Oo(t)),r){const p=on(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=o&&!r&&!i?Ku(o,s):yt(0),f=a.left+s.scrollLeft-l.x-d.x,m=a.top+s.scrollTop-l.y-d.y;return{x:f,y:m,width:a.width,height:a.height}}function Si(e){return ut(e).position==="static"}function zl(e,t){if(!wt(e)||ut(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return kt(e)===n&&(n=n.ownerDocument.body),n}function Xu(e,t){const n=et(e);if(Mo(e))return n;if(!wt(e)){let o=Bt(e);for(;o&&!On(o);){if(ct(o)&&!Si(o))return o;o=Bt(o)}return n}let r=zl(e,t);for(;r&&dy(r)&&Si(r);)r=zl(r,t);return r&&On(r)&&Si(r)&&!za(r)?n:r||gy(e)||n}const Iy=async function(e){const t=this.getOffsetParent||Xu,n=this.getDimensions,r=await n(e.floating);return{reference:Ty(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function jy(e){return ut(e).direction==="rtl"}const Ay={convertOffsetParentRelativeRectToViewportRelativeRect:yy,getDocumentElement:kt,getClippingRect:Ry,getOffsetParent:Xu,getElementRects:Iy,getClientRects:wy,getDimensions:Ny,getScale:jn,isElement:ct,isRTL:jy};function Zu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _y(e,t){let n=null,r;const o=kt(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:f,width:m,height:p}=c;if(s||t(),!m||!p)return;const v=Yr(f),g=Yr(o.clientWidth-(d+m)),x=Yr(o.clientHeight-(f+p)),y=Yr(d),k={rootMargin:-v+"px "+-g+"px "+-x+"px "+-y+"px",threshold:Je(0,zt(1,l))||1};let P=!0;function N(S){const I=S[0].intersectionRatio;if(I!==l){if(!P)return a();I?a(!1,I):r=setTimeout(()=>{a(!1,1e-7)},1e3)}I===1&&!Zu(c,e.getBoundingClientRect())&&a(),P=!1}try{n=new IntersectionObserver(N,{...k,root:o.ownerDocument})}catch{n=new IntersectionObserver(N,k)}n.observe(e)}return a(!0),i}function My(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Va(e),d=o||i?[...c?br(c):[],...br(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const f=c&&s?_y(c,n):null;let m=-1,p=null;a&&(p=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var k;(k=p)==null||k.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let v,g=l?on(e):null;l&&x();function x(){const y=on(e);g&&!Zu(g,y)&&n(),g=y,v=requestAnimationFrame(x)}return n(),()=>{var y;d.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),f==null||f(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(v)}}const Oy=iy,Dy=ay,Ly=ny,Fy=ly,$y=ry,Bl=ty,zy=sy,By=(e,t,n)=>{const r=new Map,o={platform:Ay,...n},i={...o.platform,_c:r};return ey(e,t,{...o,platform:i})};var Vy=typeof document<"u",qy=function(){},io=Vy?R.useLayoutEffect:qy;function mo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!mo(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!mo(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ju(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vl(e,t){const n=Ju(e);return Math.round(t*n)/n}function Ei(e){const t=h.useRef(e);return io(()=>{t.current=e}),t}function Gy(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[d,f]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=h.useState(r);mo(m,r)||p(r);const[v,g]=h.useState(null),[x,y]=h.useState(null),b=h.useCallback(M=>{M!==S.current&&(S.current=M,g(M))},[]),k=h.useCallback(M=>{M!==I.current&&(I.current=M,y(M))},[]),P=i||v,N=a||x,S=h.useRef(null),I=h.useRef(null),j=h.useRef(d),q=l!=null,U=Ei(l),G=Ei(o),V=Ei(c),K=h.useCallback(()=>{if(!S.current||!I.current)return;const M={placement:t,strategy:n,middleware:m};G.current&&(M.platform=G.current),By(S.current,I.current,M).then(B=>{const C={...B,isPositioned:V.current!==!1};L.current&&!mo(j.current,C)&&(j.current=C,No.flushSync(()=>{f(C)}))})},[m,t,n,G,V]);io(()=>{c===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[c]);const L=h.useRef(!1);io(()=>(L.current=!0,()=>{L.current=!1}),[]),io(()=>{if(P&&(S.current=P),N&&(I.current=N),P&&N){if(U.current)return U.current(P,N,K);K()}},[P,N,K,U,q]);const T=h.useMemo(()=>({reference:S,floating:I,setReference:b,setFloating:k}),[b,k]),_=h.useMemo(()=>({reference:P,floating:N}),[P,N]),F=h.useMemo(()=>{const M={position:n,left:0,top:0};if(!_.floating)return M;const B=Vl(_.floating,d.x),C=Vl(_.floating,d.y);return s?{...M,transform:"translate("+B+"px, "+C+"px)",...Ju(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:C}},[n,s,_.floating,d.x,d.y]);return h.useMemo(()=>({...d,update:K,refs:T,elements:_,floatingStyles:F}),[d,K,T,_,F])}const Uy=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Bl({element:r.current,padding:o}).fn(n):{}:r?Bl({element:r,padding:o}).fn(n):{}}}},Hy=(e,t)=>({...Oy(e),options:[e,t]}),Wy=(e,t)=>({...Dy(e),options:[e,t]}),Ky=(e,t)=>({...zy(e),options:[e,t]}),Yy=(e,t)=>({...Ly(e),options:[e,t]}),Xy=(e,t)=>({...Fy(e),options:[e,t]}),Zy=(e,t)=>({...$y(e),options:[e,t]}),Jy=(e,t)=>({...Uy(e),options:[e,t]});var Qy="Arrow",Qu=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return u.jsx(te.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Qu.displayName=Qy;var ew=Qu;function Lo(e){const[t,n]=h.useState(void 0);return Me(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var qa="Popper",[ed,qt]=Ae(qa),[tw,td]=ed(qa),nd=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return u.jsx(tw,{scope:t,anchor:r,onAnchorChange:o,children:n})};nd.displayName=qa;var rd="PopperAnchor",od=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=td(rd,n),a=h.useRef(null),s=de(t,a),l=h.useRef(null);return h.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||a.current,c!==l.current&&i.onAnchorChange(l.current)}),r?null:u.jsx(te.div,{...o,ref:s})});od.displayName=rd;var Ga="PopperContent",[nw,rw]=ed(Ga),id=h.forwardRef((e,t)=>{var D,ee,re,ae,fe,me;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:p="optimized",onPlaced:v,...g}=e,x=td(Ga,n),[y,b]=h.useState(null),k=de(t,_e=>b(_e)),[P,N]=h.useState(null),S=Lo(P),I=(S==null?void 0:S.width)??0,j=(S==null?void 0:S.height)??0,q=r+(i!=="center"?"-"+i:""),U=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},G=Array.isArray(c)?c:[c],V=G.length>0,K={padding:U,boundary:G.filter(iw),altBoundary:V},{refs:L,floatingStyles:T,placement:_,isPositioned:F,middlewareData:M}=Gy({strategy:"fixed",placement:q,whileElementsMounted:(..._e)=>My(..._e,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[Hy({mainAxis:o+j,alignmentAxis:a}),l&&Wy({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Ky():void 0,...K}),l&&Yy({...K}),Xy({...K,apply:({elements:_e,rects:ze,availableWidth:Ke,availableHeight:Be})=>{const{width:it,height:xn}=ze.reference,tt=_e.floating.style;tt.setProperty("--radix-popper-available-width",`${Ke}px`),tt.setProperty("--radix-popper-available-height",`${Be}px`),tt.setProperty("--radix-popper-anchor-width",`${it}px`),tt.setProperty("--radix-popper-anchor-height",`${xn}px`)}}),P&&Jy({element:P,padding:s}),aw({arrowWidth:I,arrowHeight:j}),m&&Zy({strategy:"referenceHidden",...K})]}),[B,C]=ld(_),Q=lt(v);Me(()=>{F&&(Q==null||Q())},[F,Q]);const A=(D=M.arrow)==null?void 0:D.x,w=(ee=M.arrow)==null?void 0:ee.y,Y=((re=M.arrow)==null?void 0:re.centerOffset)!==0,[X,z]=h.useState();return Me(()=>{y&&z(window.getComputedStyle(y).zIndex)},[y]),u.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:F?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[(ae=M.transformOrigin)==null?void 0:ae.x,(fe=M.transformOrigin)==null?void 0:fe.y].join(" "),...((me=M.hide)==null?void 0:me.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsx(nw,{scope:n,placedSide:B,onArrowChange:N,arrowX:A,arrowY:w,shouldHideArrow:Y,children:u.jsx(te.div,{"data-side":B,"data-align":C,...g,ref:k,style:{...g.style,animation:F?void 0:"none"}})})})});id.displayName=Ga;var ad="PopperArrow",ow={top:"bottom",right:"left",bottom:"top",left:"right"},sd=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=rw(ad,r),a=ow[i.placedSide];return u.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:u.jsx(ew,{...o,ref:n,style:{...o.style,display:"block"}})})});sd.displayName=ad;function iw(e){return e!==null}var aw=e=>({name:"transformOrigin",options:e,fn(t){var x,y,b;const{placement:n,rects:r,middlewareData:o}=t,a=((x=o.arrow)==null?void 0:x.centerOffset)!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,d]=ld(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,p=(((b=o.arrow)==null?void 0:b.y)??0)+l/2;let v="",g="";return c==="bottom"?(v=a?f:`${m}px`,g=`${-l}px`):c==="top"?(v=a?f:`${m}px`,g=`${r.floating.height+l}px`):c==="right"?(v=`${-l}px`,g=a?f:`${p}px`):c==="left"&&(v=`${r.floating.width+l}px`,g=a?f:`${p}px`),{data:{x:v,y:g}}}});function ld(e){const[t,n="center"]=e.split("-");return[t,n]}var Nr=nd,Tr=od,Fo=id,$o=sd,sw="Portal",Un=h.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=h.useState(!1);Me(()=>i(!0),[]);const a=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?Sr.createPortal(u.jsx(te.div,{...r,ref:t}),a):null});Un.displayName=sw;var lw=h[" useInsertionEffect ".trim().toString()]||Me;function je({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=cw({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const d=h.useRef(e!==void 0);h.useEffect(()=>{const f=d.current;f!==s&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,r])}const c=h.useCallback(d=>{var f;if(s){const m=uw(d)?d(e):d;m!==e&&((f=a.current)==null||f.call(a,m))}else i(d)},[s,e,i,a]);return[l,c]}function cw({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),i=h.useRef(t);return lw(()=>{i.current=t},[t]),h.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function uw(e){return typeof e=="function"}function zo(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var cd=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"}),dw="VisuallyHidden",ud=h.forwardRef((e,t)=>u.jsx(te.span,{...e,ref:t,style:{...cd,...e.style}}));ud.displayName=dw;var fw=ud,pw=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cn=new WeakMap,Xr=new WeakMap,Zr={},Pi=0,dd=function(e){return e&&(e.host||dd(e.parentNode))},mw=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=dd(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},hw=function(e,t,n,r){var o=mw(t,Array.isArray(e)?e:[e]);Zr[n]||(Zr[n]=new WeakMap);var i=Zr[n],a=[],s=new Set,l=new Set(o),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};o.forEach(c);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(m){if(s.has(m))d(m);else try{var p=m.getAttribute(r),v=p!==null&&p!=="false",g=(Cn.get(m)||0)+1,x=(i.get(m)||0)+1;Cn.set(m,g),i.set(m,x),a.push(m),g===1&&v&&Xr.set(m,!0),x===1&&m.setAttribute(n,"true"),v||m.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return d(t),s.clear(),Pi++,function(){a.forEach(function(f){var m=Cn.get(f)-1,p=i.get(f)-1;Cn.set(f,m),i.set(f,p),m||(Xr.has(f)||f.removeAttribute(r),Xr.delete(f)),p||f.removeAttribute(n)}),Pi--,Pi||(Cn=new WeakMap,Cn=new WeakMap,Xr=new WeakMap,Zr={})}},Bo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=pw(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),hw(r,o,n,"aria-hidden")):function(){return null}},vt=function(){return vt=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},vt.apply(this,arguments)};function fd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function gw(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ao="right-scroll-bar-position",so="width-before-scroll-bar",vw="with-scroll-bars-hidden",xw="--removed-body-scroll-bar-size";function Ri(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bw(e,t){var n=R.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var yw=typeof window<"u"?h.useLayoutEffect:h.useEffect,ql=new WeakMap;function ww(e,t){var n=bw(null,function(r){return e.forEach(function(o){return Ri(o,r)})});return yw(function(){var r=ql.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Ri(s,null)}),i.forEach(function(s){o.has(s)||Ri(s,a)})}ql.set(n,e)},[e]),n}function Cw(e){return e}function kw(e,t){t===void 0&&(t=Cw);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var l=function(){var d=a;a=[],d.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(d){a.push(d),c()},filter:function(d){return a=a.filter(d),n}}}};return o}function Sw(e){e===void 0&&(e={});var t=kw(null);return t.options=vt({async:!0,ssr:!1},e),t}var pd=function(e){var t=e.sideCar,n=fd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return h.createElement(r,vt({},n))};pd.isSideCarExport=!0;function Ew(e,t){return e.useMedium(t),pd}var md=Sw(),Ni=function(){},Vo=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Ni,onWheelCapture:Ni,onTouchMoveCapture:Ni}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,m=e.sideCar,p=e.noRelative,v=e.noIsolation,g=e.inert,x=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,k=e.gapMode,P=fd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=m,S=ww([n,t]),I=vt(vt({},P),o);return h.createElement(h.Fragment,null,d&&h.createElement(N,{sideCar:md,removeScrollBar:c,shards:f,noRelative:p,noIsolation:v,inert:g,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:k}),a?h.cloneElement(h.Children.only(s),vt(vt({},I),{ref:S})):h.createElement(b,vt({},I,{className:l,ref:S}),s))});Vo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vo.classNames={fullWidth:so,zeroRight:ao};var Pw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Rw(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Pw();return t&&e.setAttribute("nonce",t),e}function Nw(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Tw(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Iw=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Rw())&&(Nw(t,n),Tw(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jw=function(){var e=Iw();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},hd=function(){var e=jw(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Aw={left:0,top:0,right:0,gap:0},Ti=function(e){return parseInt(e||"",10)||0},_w=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ti(n),Ti(r),Ti(o)]},Mw=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Aw;var t=_w(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ow=hd(),An="data-scroll-locked",Dw=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
161
+ .`.concat(vw,` {
162
+ overflow: hidden `).concat(r,`;
163
+ padding-right: `).concat(s,"px ").concat(r,`;
164
164
  }
165
- body[`).concat(Yt,`] {
166
- overflow: hidden `).concat(n,`;
165
+ body[`).concat(An,`] {
166
+ overflow: hidden `).concat(r,`;
167
167
  overscroll-behavior: contain;
168
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
168
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
169
169
  padding-left: `.concat(o,`px;
170
- padding-top: `).concat(a,`px;
171
- padding-right: `).concat(i,`px;
170
+ padding-top: `).concat(i,`px;
171
+ padding-right: `).concat(a,`px;
172
172
  margin-left:0;
173
173
  margin-top:0;
174
- margin-right: `).concat(l,"px ").concat(n,`;
175
- `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),`
174
+ margin-right: `).concat(s,"px ").concat(r,`;
175
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
176
176
  }
177
177
 
178
- .`).concat(on,` {
179
- right: `).concat(l,"px ").concat(n,`;
178
+ .`).concat(ao,` {
179
+ right: `).concat(s,"px ").concat(r,`;
180
180
  }
181
181
 
182
- .`).concat(an,` {
183
- margin-right: `).concat(l,"px ").concat(n,`;
182
+ .`).concat(so,` {
183
+ margin-right: `).concat(s,"px ").concat(r,`;
184
184
  }
185
185
 
186
- .`).concat(on," .").concat(on,` {
187
- right: 0 `).concat(n,`;
186
+ .`).concat(ao," .").concat(ao,` {
187
+ right: 0 `).concat(r,`;
188
188
  }
189
189
 
190
- .`).concat(an," .").concat(an,` {
191
- margin-right: 0 `).concat(n,`;
190
+ .`).concat(so," .").concat(so,` {
191
+ margin-right: 0 `).concat(r,`;
192
192
  }
193
193
 
194
- body[`).concat(Yt,`] {
195
- `).concat(Cx,": ").concat(l,`px;
194
+ body[`).concat(An,`] {
195
+ `).concat(xw,": ").concat(s,`px;
196
196
  }
197
- `)},ni=function(){var e=parseInt(document.body.getAttribute(Yt)||"0",10);return isFinite(e)?e:0},Bx=function(){d.useEffect(function(){return document.body.setAttribute(Yt,(ni()+1).toString()),function(){var e=ni()-1;e<=0?document.body.removeAttribute(Yt):document.body.setAttribute(Yt,e.toString())}},[])},Gx=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Bx();var a=d.useMemo(function(){return Lx(o)},[o]);return d.createElement(Fx,{styles:Vx(a,!t,o,r?"":"!important")})},Fo=!1;if(typeof window<"u")try{var Qr=Object.defineProperty({},"passive",{get:function(){return Fo=!0,!0}});window.addEventListener("test",Qr,Qr),window.removeEventListener("test",Qr,Qr)}catch{Fo=!1}var Gt=Fo?{passive:!1}:!1,Wx=function(e){return e.tagName==="TEXTAREA"},Wl=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Wx(e)&&r[t]==="visible")},zx=function(e){return Wl(e,"overflowY")},qx=function(e){return Wl(e,"overflowX")},oi=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=zl(e,n);if(o){var a=ql(e,n),i=a[1],l=a[2];if(i>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Ux=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Hx=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},zl=function(e,t){return e==="v"?zx(t):qx(t)},ql=function(e,t){return e==="v"?Ux(t):Hx(t)},Kx=function(e,t){return e==="h"&&t==="rtl"?-1:1},Yx=function(e,t,r,n,o){var a=Kx(e,window.getComputedStyle(t).direction),i=a*n,l=r.target,c=t.contains(l),u=!1,f=i>0,p=0,g=0;do{if(!l)break;var m=ql(e,l),b=m[0],v=m[1],x=m[2],y=v-x-a*b;(b||y)&&zl(e,l)&&(p+=y,g+=b);var h=l.parentNode;l=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(f&&Math.abs(p)<1||!f&&Math.abs(g)<1)&&(u=!0),u},en=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ai=function(e){return[e.deltaX,e.deltaY]},si=function(e){return e&&"current"in e?e.current:e},Xx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Zx=function(e){return`
197
+ `)},Gl=function(){var e=parseInt(document.body.getAttribute(An)||"0",10);return isFinite(e)?e:0},Lw=function(){h.useEffect(function(){return document.body.setAttribute(An,(Gl()+1).toString()),function(){var e=Gl()-1;e<=0?document.body.removeAttribute(An):document.body.setAttribute(An,e.toString())}},[])},Fw=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Lw();var i=h.useMemo(function(){return Mw(o)},[o]);return h.createElement(Ow,{styles:Dw(i,!t,o,n?"":"!important")})},aa=!1;if(typeof window<"u")try{var Jr=Object.defineProperty({},"passive",{get:function(){return aa=!0,!0}});window.addEventListener("test",Jr,Jr),window.removeEventListener("test",Jr,Jr)}catch{aa=!1}var kn=aa?{passive:!1}:!1,$w=function(e){return e.tagName==="TEXTAREA"},gd=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$w(e)&&n[t]==="visible")},zw=function(e){return gd(e,"overflowY")},Bw=function(e){return gd(e,"overflowX")},Ul=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=vd(e,r);if(o){var i=xd(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Vw=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},qw=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},vd=function(e,t){return e==="v"?zw(t):Bw(t)},xd=function(e,t){return e==="v"?Vw(t):qw(t)},Gw=function(e,t){return e==="h"&&t==="rtl"?-1:1},Uw=function(e,t,n,r,o){var i=Gw(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,d=a>0,f=0,m=0;do{if(!s)break;var p=xd(e,s),v=p[0],g=p[1],x=p[2],y=g-x-i*v;(v||y)&&vd(e,s)&&(f+=y,m+=v);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&Math.abs(f)<1||!d&&Math.abs(m)<1)&&(c=!0),c},Qr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Hl=function(e){return[e.deltaX,e.deltaY]},Wl=function(e){return e&&"current"in e?e.current:e},Hw=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ww=function(e){return`
198
198
  .block-interactivity-`.concat(e,` {pointer-events: none;}
199
199
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
200
- `)},Jx=0,Wt=[];function Qx(e){var t=d.useRef([]),r=d.useRef([0,0]),n=d.useRef(),o=d.useState(Jx++)[0],a=d.useState(Gl)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=yx([e.lockRef.current],(e.shards||[]).map(si),!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 l=d.useCallback(function(v,x){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!i.current.allowPinchZoom;var y=en(v),h=r.current,C="deltaX"in v?v.deltaX:h[0]-y[0],E="deltaY"in v?v.deltaY:h[1]-y[1],j,_=v.target,P=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in v&&P==="h"&&_.type==="range")return!1;var N=oi(P,_);if(!N)return!0;if(N?j=P:(j=P==="v"?"h":"v",N=oi(P,_)),!N)return!1;if(!n.current&&"changedTouches"in v&&(C||E)&&(n.current=j),!j)return!0;var W=n.current||j;return Yx(W,x,v,W==="h"?C:E)},[]),c=d.useCallback(function(v){var x=v;if(!(!Wt.length||Wt[Wt.length-1]!==a)){var y="deltaY"in x?ai(x):en(x),h=t.current.filter(function(j){return j.name===x.type&&(j.target===x.target||x.target===j.shadowParent)&&Xx(j.delta,y)})[0];if(h&&h.should){x.cancelable&&x.preventDefault();return}if(!h){var C=(i.current.shards||[]).map(si).filter(Boolean).filter(function(j){return j.contains(x.target)}),E=C.length>0?l(x,C[0]):!i.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),u=d.useCallback(function(v,x,y,h){var C={name:v,delta:x,target:y,should:h,shadowParent:eb(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),f=d.useCallback(function(v){r.current=en(v),n.current=void 0},[]),p=d.useCallback(function(v){u(v.type,ai(v),v.target,l(v,e.lockRef.current))},[]),g=d.useCallback(function(v){u(v.type,en(v),v.target,l(v,e.lockRef.current))},[]);d.useEffect(function(){return Wt.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",c,Gt),document.addEventListener("touchmove",c,Gt),document.addEventListener("touchstart",f,Gt),function(){Wt=Wt.filter(function(v){return v!==a}),document.removeEventListener("wheel",c,Gt),document.removeEventListener("touchmove",c,Gt),document.removeEventListener("touchstart",f,Gt)}},[]);var m=e.removeScrollBar,b=e.inert;return d.createElement(d.Fragment,null,b?d.createElement(a,{styles:Zx(o)}):null,m?d.createElement(Gx,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function eb(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const tb=Px(Bl,Qx);var Mr=d.forwardRef(function(e,t){return d.createElement($n,qe({},e,{ref:t,sideCar:tb}))});Mr.classNames=$n.classNames;var rb=[" ","Enter","ArrowUp","ArrowDown"],nb=[" ","Enter"],Nt="Select",[Ln,Fn,ob]=Rn(Nt),[ir,DR]=ye(Nt,[ob,mt]),Vn=mt(),[ab,gt]=ir(Nt),[sb,ib]=ir(Nt),Ul=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:a,value:i,defaultValue:l,onValueChange:c,dir:u,name:f,autoComplete:p,disabled:g,required:m,form:b}=e,v=Vn(t),[x,y]=d.useState(null),[h,C]=d.useState(null),[E,j]=d.useState(!1),_=It(u),[P,N]=be({prop:n,defaultProp:o??!1,onChange:a,caller:Nt}),[W,U]=be({prop:i,defaultProp:l,onChange:c,caller:Nt}),re=d.useRef(null),te=x?b||!!x.closest("form"):!0,[Q,V]=d.useState(new Set),O=Array.from(Q).map(I=>I.props.value).join(";");return s.jsx(Ar,{...v,children:s.jsxs(ab,{required:m,scope:t,trigger:x,onTriggerChange:y,valueNode:h,onValueNodeChange:C,valueNodeHasChildren:E,onValueNodeHasChildrenChange:j,contentId:me(),value:W,onValueChange:U,open:P,onOpenChange:N,dir:_,triggerPointerDownPosRef:re,disabled:g,children:[s.jsx(Ln.Provider,{scope:t,children:s.jsx(sb,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(I=>{V(D=>new Set(D).add(I))},[]),onNativeOptionRemove:d.useCallback(I=>{V(D=>{const k=new Set(D);return k.delete(I),k})},[]),children:r})}),te?s.jsxs(hc,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:p,value:W,onChange:I=>U(I.target.value),disabled:g,form:b,children:[W===void 0?s.jsx("option",{value:""}):null,Array.from(Q)]},O):null]})})};Ul.displayName=Nt;var Hl="SelectTrigger",Kl=d.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,a=Vn(r),i=gt(Hl,r),l=i.disabled||n,c=ae(t,i.onTriggerChange),u=Fn(r),f=d.useRef("touch"),[p,g,m]=bc(v=>{const x=u().filter(C=>!C.disabled),y=x.find(C=>C.value===i.value),h=yc(x,v,y);h!==void 0&&i.onValueChange(h.value)}),b=v=>{l||(i.onOpenChange(!0),m()),v&&(i.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return s.jsx(Ir,{asChild:!0,...a,children:s.jsx(q.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":xc(i.value)?"":void 0,...o,ref:c,onClick:F(o.onClick,v=>{v.currentTarget.focus(),f.current!=="mouse"&&b(v)}),onPointerDown:F(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"&&(b(v),v.preventDefault())}),onKeyDown:F(o.onKeyDown,v=>{const x=p.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&g(v.key),!(x&&v.key===" ")&&rb.includes(v.key)&&(b(),v.preventDefault())})})})});Kl.displayName=Hl;var Yl="SelectValue",Xl=d.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:a,placeholder:i="",...l}=e,c=gt(Yl,r),{onValueNodeHasChildrenChange:u}=c,f=a!==void 0,p=ae(t,c.onValueNodeChange);return we(()=>{u(f)},[u,f]),s.jsx(q.span,{...l,ref:p,style:{pointerEvents:"none"},children:xc(c.value)?s.jsx(s.Fragment,{children:i}):a})});Xl.displayName=Yl;var lb="SelectIcon",Zl=d.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return s.jsx(q.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Zl.displayName=lb;var cb="SelectPortal",Jl=e=>s.jsx(sr,{asChild:!0,...e});Jl.displayName=cb;var jt="SelectContent",Ql=d.forwardRef((e,t)=>{const r=gt(jt,e.__scopeSelect),[n,o]=d.useState();if(we(()=>{o(new DocumentFragment)},[]),!r.open){const a=n;return a?Sn.createPortal(s.jsx(ec,{scope:e.__scopeSelect,children:s.jsx(Ln.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),a):null}return s.jsx(tc,{...e,ref:t})});Ql.displayName=jt;var Oe=10,[ec,vt]=ir(jt),db="SelectContentImpl",ub=dt("SelectContent.RemoveScroll"),tc=d.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:i,side:l,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:m,sticky:b,hideWhenDetached:v,avoidCollisions:x,...y}=e,h=gt(jt,r),[C,E]=d.useState(null),[j,_]=d.useState(null),P=ae(t,A=>E(A)),[N,W]=d.useState(null),[U,re]=d.useState(null),te=Fn(r),[Q,V]=d.useState(!1),O=d.useRef(!1);d.useEffect(()=>{if(C)return Dn(C)},[C]),Nn();const I=d.useCallback(A=>{const[K,...ee]=te().map(ie=>ie.ref.current),[oe]=ee.slice(-1),ce=document.activeElement;for(const ie of A)if(ie===ce||(ie==null||ie.scrollIntoView({block:"nearest"}),ie===K&&j&&(j.scrollTop=0),ie===oe&&j&&(j.scrollTop=j.scrollHeight),ie==null||ie.focus(),document.activeElement!==ce))return},[te,j]),D=d.useCallback(()=>I([N,C]),[I,N,C]);d.useEffect(()=>{Q&&D()},[Q,D]);const{onOpenChange:k,triggerPointerDownPosRef:M}=h;d.useEffect(()=>{if(C){let A={x:0,y:0};const K=oe=>{var ce,ie;A={x:Math.abs(Math.round(oe.pageX)-(((ce=M.current)==null?void 0:ce.x)??0)),y:Math.abs(Math.round(oe.pageY)-(((ie=M.current)==null?void 0:ie.y)??0))}},ee=oe=>{A.x<=10&&A.y<=10?oe.preventDefault():C.contains(oe.target)||k(!1),document.removeEventListener("pointermove",K),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",ee,{capture:!0})}}},[C,k,M]),d.useEffect(()=>{const A=()=>k(!1);return window.addEventListener("blur",A),window.addEventListener("resize",A),()=>{window.removeEventListener("blur",A),window.removeEventListener("resize",A)}},[k]);const[B,J]=bc(A=>{const K=te().filter(ce=>!ce.disabled),ee=K.find(ce=>ce.ref.current===document.activeElement),oe=yc(K,A,ee);oe&&setTimeout(()=>oe.ref.current.focus())}),T=d.useCallback((A,K,ee)=>{const oe=!O.current&&!ee;(h.value!==void 0&&h.value===K||oe)&&(W(A),oe&&(O.current=!0))},[h.value]),G=d.useCallback(()=>C==null?void 0:C.focus(),[C]),Z=d.useCallback((A,K,ee)=>{const oe=!O.current&&!ee;(h.value!==void 0&&h.value===K||oe)&&re(A)},[h.value]),z=n==="popper"?Vo:rc,L=z===Vo?{side:l,sideOffset:c,align:u,alignOffset:f,arrowPadding:p,collisionBoundary:g,collisionPadding:m,sticky:b,hideWhenDetached:v,avoidCollisions:x}:{};return s.jsx(ec,{scope:r,content:C,viewport:j,onViewportChange:_,itemRefCallback:T,selectedItem:N,onItemLeave:G,itemTextRefCallback:Z,focusSelectedItem:D,selectedItemText:U,position:n,isPositioned:Q,searchRef:B,children:s.jsx(Mr,{as:ub,allowPinchZoom:!0,children:s.jsx(Tr,{asChild:!0,trapped:h.open,onMountAutoFocus:A=>{A.preventDefault()},onUnmountAutoFocus:F(o,A=>{var K;(K=h.trigger)==null||K.focus({preventScroll:!0}),A.preventDefault()}),children:s.jsx(nr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:A=>A.preventDefault(),onDismiss:()=>h.onOpenChange(!1),children:s.jsx(z,{role:"listbox",id:h.contentId,"data-state":h.open?"open":"closed",dir:h.dir,onContextMenu:A=>A.preventDefault(),...y,...L,onPlaced:()=>V(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:F(y.onKeyDown,A=>{const K=A.ctrlKey||A.altKey||A.metaKey;if(A.key==="Tab"&&A.preventDefault(),!K&&A.key.length===1&&J(A.key),["ArrowUp","ArrowDown","Home","End"].includes(A.key)){let oe=te().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);if(["ArrowUp","End"].includes(A.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(A.key)){const ce=A.target,ie=oe.indexOf(ce);oe=oe.slice(ie+1)}setTimeout(()=>I(oe)),A.preventDefault()}})})})})})})});tc.displayName=db;var fb="SelectItemAlignedPosition",rc=d.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,a=gt(jt,r),i=vt(jt,r),[l,c]=d.useState(null),[u,f]=d.useState(null),p=ae(t,P=>f(P)),g=Fn(r),m=d.useRef(!1),b=d.useRef(!0),{viewport:v,selectedItem:x,selectedItemText:y,focusSelectedItem:h}=i,C=d.useCallback(()=>{if(a.trigger&&a.valueNode&&l&&u&&v&&x&&y){const P=a.trigger.getBoundingClientRect(),N=u.getBoundingClientRect(),W=a.valueNode.getBoundingClientRect(),U=y.getBoundingClientRect();if(a.dir!=="rtl"){const ce=U.left-N.left,ie=W.left-ce,Ee=P.left-ie,_e=P.width+Ee,Ge=Math.max(_e,N.width),Me=window.innerWidth-Oe,at=Ds(ie,[Oe,Math.max(Oe,Me-Ge)]);l.style.minWidth=_e+"px",l.style.left=at+"px"}else{const ce=N.right-U.right,ie=window.innerWidth-W.right-ce,Ee=window.innerWidth-P.right-ie,_e=P.width+Ee,Ge=Math.max(_e,N.width),Me=window.innerWidth-Oe,at=Ds(ie,[Oe,Math.max(Oe,Me-Ge)]);l.style.minWidth=_e+"px",l.style.right=at+"px"}const re=g(),te=window.innerHeight-Oe*2,Q=v.scrollHeight,V=window.getComputedStyle(u),O=parseInt(V.borderTopWidth,10),I=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),k=parseInt(V.paddingBottom,10),M=O+I+Q+k+D,B=Math.min(x.offsetHeight*5,M),J=window.getComputedStyle(v),T=parseInt(J.paddingTop,10),G=parseInt(J.paddingBottom,10),Z=P.top+P.height/2-Oe,z=te-Z,L=x.offsetHeight/2,A=x.offsetTop+L,K=O+I+A,ee=M-K;if(K<=Z){const ce=re.length>0&&x===re[re.length-1].ref.current;l.style.bottom="0px";const ie=u.clientHeight-v.offsetTop-v.offsetHeight,Ee=Math.max(z,L+(ce?G:0)+ie+D),_e=K+Ee;l.style.height=_e+"px"}else{const ce=re.length>0&&x===re[0].ref.current;l.style.top="0px";const Ee=Math.max(Z,O+v.offsetTop+(ce?T:0)+L)+ee;l.style.height=Ee+"px",v.scrollTop=K-Z+v.offsetTop}l.style.margin=`${Oe}px 0`,l.style.minHeight=B+"px",l.style.maxHeight=te+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[g,a.trigger,a.valueNode,l,u,v,x,y,a.dir,n]);we(()=>C(),[C]);const[E,j]=d.useState();we(()=>{u&&j(window.getComputedStyle(u).zIndex)},[u]);const _=d.useCallback(P=>{P&&b.current===!0&&(C(),h==null||h(),b.current=!1)},[C,h]);return s.jsx(mb,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:_,children:s.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:s.jsx(q.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});rc.displayName=fb;var pb="SelectPopperPosition",Vo=d.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Oe,...a}=e,i=Vn(r);return s.jsx(In,{...i,...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=pb;var[mb,ma]=ir(jt,{}),Bo="SelectViewport",nc=d.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,a=vt(Bo,r),i=ma(Bo,r),l=ae(t,a.onViewportChange),c=d.useRef(0);return s.jsxs(s.Fragment,{children:[s.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}),s.jsx(Ln.Slot,{scope:r,children:s.jsx(q.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:F(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=i;if(g!=null&&g.current&&p){const m=Math.abs(c.current-f.scrollTop);if(m>0){const b=window.innerHeight-Oe*2,v=parseFloat(p.style.minHeight),x=parseFloat(p.style.height),y=Math.max(v,x);if(y<b){const h=y+m,C=Math.min(b,h),E=h-C;p.style.height=C+"px",p.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,p.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});nc.displayName=Bo;var oc="SelectGroup",[gb,vb]=ir(oc),ac=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=me();return s.jsx(gb,{scope:r,id:o,children:s.jsx(q.div,{role:"group","aria-labelledby":o,...n,ref:t})})});ac.displayName=oc;var sc="SelectLabel",ic=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=vb(sc,r);return s.jsx(q.div,{id:o.id,...n,ref:t})});ic.displayName=sc;var fn="SelectItem",[hb,lc]=ir(fn),cc=d.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:a,...i}=e,l=gt(fn,r),c=vt(fn,r),u=l.value===n,[f,p]=d.useState(a??""),[g,m]=d.useState(!1),b=ae(t,h=>{var C;return(C=c.itemRefCallback)==null?void 0:C.call(c,h,n,o)}),v=me(),x=d.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 s.jsx(hb,{scope:r,value:n,disabled:o,textId:v,isSelected:u,onItemTextChange:d.useCallback(h=>{p(C=>C||((h==null?void 0:h.textContent)??"").trim())},[]),children:s.jsx(Ln.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:s.jsx(q.div,{role:"option","aria-labelledby":v,"data-highlighted":g?"":void 0,"aria-selected":u&&g,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:b,onFocus:F(i.onFocus,()=>m(!0)),onBlur:F(i.onBlur,()=>m(!1)),onClick:F(i.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:F(i.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:F(i.onPointerDown,h=>{x.current=h.pointerType}),onPointerMove:F(i.onPointerMove,h=>{var C;x.current=h.pointerType,o?(C=c.onItemLeave)==null||C.call(c):x.current==="mouse"&&h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:F(i.onPointerLeave,h=>{var C;h.currentTarget===document.activeElement&&((C=c.onItemLeave)==null||C.call(c))}),onKeyDown:F(i.onKeyDown,h=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&h.key===" "||(nb.includes(h.key)&&y(),h.key===" "&&h.preventDefault())})})})})});cc.displayName=fn;var gr="SelectItemText",dc=d.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...a}=e,i=gt(gr,r),l=vt(gr,r),c=lc(gr,r),u=ib(gr,r),[f,p]=d.useState(null),g=ae(t,y=>p(y),c.onItemTextChange,y=>{var h;return(h=l.itemTextRefCallback)==null?void 0:h.call(l,y,c.value,c.disabled)}),m=f==null?void 0:f.textContent,b=d.useMemo(()=>s.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:v,onNativeOptionRemove:x}=u;return we(()=>(v(b),()=>x(b)),[v,x,b]),s.jsxs(s.Fragment,{children:[s.jsx(q.span,{id:c.textId,...a,ref:g}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Sn.createPortal(a.children,i.valueNode):null]})});dc.displayName=gr;var uc="SelectItemIndicator",fc=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return lc(uc,r).isSelected?s.jsx(q.span,{"aria-hidden":!0,...n,ref:t}):null});fc.displayName=uc;var Go="SelectScrollUpButton",pc=d.forwardRef((e,t)=>{const r=vt(Go,e.__scopeSelect),n=ma(Go,e.__scopeSelect),[o,a]=d.useState(!1),i=ae(t,n.onScrollButtonChange);return we(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollTop>0;a(u)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?s.jsx(gc,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});pc.displayName=Go;var Wo="SelectScrollDownButton",mc=d.forwardRef((e,t)=>{const r=vt(Wo,e.__scopeSelect),n=ma(Wo,e.__scopeSelect),[o,a]=d.useState(!1),i=ae(t,n.onScrollButtonChange);return we(()=>{if(r.viewport&&r.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;a(f)};const c=r.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),o?s.jsx(gc,{...e,ref:i,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=r;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});mc.displayName=Wo;var gc=d.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,a=vt("SelectScrollButton",r),i=d.useRef(null),l=Fn(r),c=d.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return d.useEffect(()=>()=>c(),[c]),we(()=>{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]),s.jsx(q.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:F(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(n,50))}),onPointerMove:F(o.onPointerMove,()=>{var u;(u=a.onItemLeave)==null||u.call(a),i.current===null&&(i.current=window.setInterval(n,50))}),onPointerLeave:F(o.onPointerLeave,()=>{c()})})}),xb="SelectSeparator",vc=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return s.jsx(q.div,{"aria-hidden":!0,...n,ref:t})});vc.displayName=xb;var zo="SelectArrow",bb=d.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Vn(r),a=gt(zo,r),i=vt(zo,r);return a.open&&i.position==="popper"?s.jsx(Mn,{...o,...n,ref:t}):null});bb.displayName=zo;var yb="SelectBubbleInput",hc=d.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=d.useRef(null),a=ae(n,o),i=On(t);return d.useEffect(()=>{const l=o.current;if(!l)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&f){const p=new Event("change",{bubbles:!0});f.call(l,t),l.dispatchEvent(p)}},[i,t]),s.jsx(q.select,{...r,style:{...Dl,...r.style},ref:a,defaultValue:t})});hc.displayName=yb;function xc(e){return e===""||e===void 0}function bc(e){const t=De(e),r=d.useRef(""),n=d.useRef(0),o=d.useCallback(i=>{const l=r.current+i;t(l),(function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(l)},[t]),a=d.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,a]}function yc(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 i=wb(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==r));const c=i.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function wb(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Cb=Ul,wc=Kl,Sb=Xl,Eb=Zl,kb=Jl,Cc=Ql,Rb=nc,Nb=ac,Sc=ic,Ec=cc,jb=dc,Pb=fc,kc=pc,Rc=mc,Nc=vc;const Tb=Cb,_b=Nb,Ab=Sb,jc=d.forwardRef(({className:e,children:t,readOnly:r,...n},o)=>{const a=i=>{r&&i.preventDefault()};return s.jsxs(wc,{ref:o,"data-readonly":r||void 0,disabled:n.disabled,onPointerDown:n.disabled?n.onPointerDown:a,tabIndex:r?0:void 0,className:R(R("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:[s.jsx("div",{className:"overflow-hidden whitespace-nowrap text-ellipsis",children:t}),s.jsx(Eb,{asChild:!0,children:s.jsx(En,{className:"h-4 w-4 text-purple-muted-300"})})]})});jc.displayName=wc.displayName;const ga=d.forwardRef(({className:e,...t},r)=>s.jsx(kc,{ref:r,className:R("qodo qodo-select-scroll-up-button flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(zg,{className:"h-4 w-4"})}));ga.displayName=kc.displayName;const va=d.forwardRef(({className:e,...t},r)=>s.jsx(Rc,{ref:r,className:R("qodo qodo-select-scroll-down-button flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(En,{className:"h-4 w-4"})}));va.displayName=Rc.displayName;const Pc=d.forwardRef(({className:e,children:t,position:r="popper",container:n=null,...o},a)=>s.jsx(kb,{container:n,children:s.jsxs(Cc,{ref:a,className:R("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:[s.jsx(ga,{}),s.jsx(Rb,{className:R("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(va,{})]})}));Pc.displayName=Cc.displayName;const Tc=d.forwardRef(({className:e,...t},r)=>s.jsx(Sc,{ref:r,className:R("qodo qodo-select-label py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Tc.displayName=Sc.displayName;const _c=d.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(Ec,{ref:n,title:r.value,className:R(R("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:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 mt-0.5",children:s.jsx(Pb,{children:s.jsx(rr,{className:"h-4 w-4"})})}),s.jsx(jb,{children:t})]}));_c.displayName=Ec.displayName;const Ac=d.forwardRef(({className:e,...t},r)=>s.jsx(Nc,{ref:r,className:R("qodo qodo-select-separator -mx-1 my-1 h-px bg-muted",e),...t}));Ac.displayName=Nc.displayName;var ii=1,Ib=.9,Mb=.8,Ob=.17,Co=.1,So=.999,Db=.9999,$b=.99,Lb=/[\\\/_+.#"@\[\(\{&]/,Fb=/[\\\/_+.#"@\[\(\{&]/g,Vb=/[\s-]/,Ic=/[\s-]/g;function qo(e,t,r,n,o,a,i){if(a===t.length)return o===e.length?ii:$b;var l=`${o},${a}`;if(i[l]!==void 0)return i[l];for(var c=n.charAt(a),u=r.indexOf(c,o),f=0,p,g,m,b;u>=0;)p=qo(e,t,r,n,u+1,a+1,i),p>f&&(u===o?p*=ii:Lb.test(e.charAt(u-1))?(p*=Mb,m=e.slice(o,u-1).match(Fb),m&&o>0&&(p*=Math.pow(So,m.length))):Vb.test(e.charAt(u-1))?(p*=Ib,b=e.slice(o,u-1).match(Ic),b&&o>0&&(p*=Math.pow(So,b.length))):(p*=Ob,o>0&&(p*=Math.pow(So,u-o))),e.charAt(u)!==t.charAt(a)&&(p*=Db)),(p<Co&&r.charAt(u-1)===n.charAt(a+1)||n.charAt(a+1)===n.charAt(a)&&r.charAt(u-1)!==n.charAt(a))&&(g=qo(e,t,r,n,u+1,a+2,i),g*Co>p&&(p=g*Co)),p>f&&(f=p),u=r.indexOf(c,u+1);return i[l]=f,f}function li(e){return e.toLowerCase().replace(Ic," ")}function Bb(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,qo(e,t,li(e),li(t),0,0,{})}function Gb(e,t){return d.useReducer((r,n)=>t[r][n]??r,e)}var Ce=e=>{const{present:t,children:r}=e,n=Wb(t),o=typeof r=="function"?r({present:n.isPresent}):d.Children.only(r),a=ae(n.ref,zb(o));return typeof r=="function"||n.isPresent?d.cloneElement(o,{ref:a}):null};Ce.displayName="Presence";function Wb(e){const[t,r]=d.useState(),n=d.useRef(null),o=d.useRef(e),a=d.useRef("none"),i=e?"mounted":"unmounted",[l,c]=Gb(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=tn(n.current);a.current=l==="mounted"?u:"none"},[l]),we(()=>{const u=n.current,f=o.current;if(f!==e){const g=a.current,m=tn(u);e?c("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&g!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),we(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,p=m=>{const v=tn(n.current).includes(CSS.escape(m.animationName));if(m.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)})}},g=m=>{m.target===t&&(a.current=tn(n.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:d.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function tn(e){return(e==null?void 0:e.animationName)||"none"}function zb(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 Bn="Dialog",[Mc,$R]=ye(Bn),[qb,Fe]=Mc(Bn),Oc=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=d.useRef(null),c=d.useRef(null),[u,f]=be({prop:n,defaultProp:o??!1,onChange:a,caller:Bn});return s.jsx(qb,{scope:t,triggerRef:l,contentRef:c,contentId:me(),titleId:me(),descriptionId:me(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(p=>!p),[f]),modal:i,children:r})};Oc.displayName=Bn;var Dc="DialogTrigger",$c=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(Dc,r),a=ae(t,o.triggerRef);return s.jsx(q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ba(o.open),...n,ref:a,onClick:F(e.onClick,o.onOpenToggle)})});$c.displayName=Dc;var ha="DialogPortal",[Ub,Lc]=Mc(ha,{forceMount:void 0}),Fc=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=Fe(ha,t);return s.jsx(Ub,{scope:t,forceMount:r,children:d.Children.map(n,i=>s.jsx(Ce,{present:r||a.open,children:s.jsx(sr,{asChild:!0,container:o,children:i})}))})};Fc.displayName=ha;var pn="DialogOverlay",Vc=d.forwardRef((e,t)=>{const r=Lc(pn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Fe(pn,e.__scopeDialog);return a.modal?s.jsx(Ce,{present:n||a.open,children:s.jsx(Kb,{...o,ref:t})}):null});Vc.displayName=pn;var Hb=dt("DialogOverlay.RemoveScroll"),Kb=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(pn,r);return s.jsx(Mr,{as:Hb,allowPinchZoom:!0,shards:[o.contentRef],children:s.jsx(q.div,{"data-state":ba(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Pt="DialogContent",Bc=d.forwardRef((e,t)=>{const r=Lc(Pt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Fe(Pt,e.__scopeDialog);return s.jsx(Ce,{present:n||a.open,children:a.modal?s.jsx(Yb,{...o,ref:t}):s.jsx(Xb,{...o,ref:t})})});Bc.displayName=Pt;var Yb=d.forwardRef((e,t)=>{const r=Fe(Pt,e.__scopeDialog),n=d.useRef(null),o=ae(t,r.contentRef,n);return d.useEffect(()=>{const a=n.current;if(a)return Dn(a)},[]),s.jsx(Gc,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:F(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:F(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:F(e.onFocusOutside,a=>a.preventDefault())})}),Xb=d.forwardRef((e,t)=>{const r=Fe(Pt,e.__scopeDialog),n=d.useRef(!1),o=d.useRef(!1);return s.jsx(Gc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,l;(i=e.onCloseAutoFocus)==null||i.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 c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Gc=d.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=Fe(Pt,r),c=d.useRef(null),u=ae(t,c);return Nn(),s.jsxs(s.Fragment,{children:[s.jsx(Tr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(nr,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":ba(l.open),...i,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxs(s.Fragment,{children:[s.jsx(Zb,{titleId:l.titleId}),s.jsx(Qb,{contentRef:c,descriptionId:l.descriptionId})]})]})}),xa="DialogTitle",Wc=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(xa,r);return s.jsx(q.h2,{id:o.titleId,...n,ref:t})});Wc.displayName=xa;var zc="DialogDescription",qc=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(zc,r);return s.jsx(q.p,{id:o.descriptionId,...n,ref:t})});qc.displayName=zc;var Uc="DialogClose",Hc=d.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Fe(Uc,r);return s.jsx(q.button,{type:"button",...n,ref:t,onClick:F(e.onClick,()=>o.onOpenChange(!1))})});Hc.displayName=Uc;function ba(e){return e?"open":"closed"}var Kc="DialogTitleWarning",[LR,Yc]=yv(Kc,{contentName:Pt,titleName:xa,docsSlug:"dialog"}),Zb=({titleId:e})=>{const t=Yc(Kc),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
200
+ `)},Kw=0,Sn=[];function Yw(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(Kw++)[0],i=h.useState(hd)[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=gw([e.lockRef.current],(e.shards||[]).map(Wl),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=h.useCallback(function(g,x){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var y=Qr(g),b=n.current,k="deltaX"in g?g.deltaX:b[0]-y[0],P="deltaY"in g?g.deltaY:b[1]-y[1],N,S=g.target,I=Math.abs(k)>Math.abs(P)?"h":"v";if("touches"in g&&I==="h"&&S.type==="range")return!1;var j=Ul(I,S);if(!j)return!0;if(j?N=I:(N=I==="v"?"h":"v",j=Ul(I,S)),!j)return!1;if(!r.current&&"changedTouches"in g&&(k||P)&&(r.current=N),!N)return!0;var q=r.current||N;return Uw(q,x,g,q==="h"?k:P)},[]),l=h.useCallback(function(g){var x=g;if(!(!Sn.length||Sn[Sn.length-1]!==i)){var y="deltaY"in x?Hl(x):Qr(x),b=t.current.filter(function(N){return N.name===x.type&&(N.target===x.target||x.target===N.shadowParent)&&Hw(N.delta,y)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var k=(a.current.shards||[]).map(Wl).filter(Boolean).filter(function(N){return N.contains(x.target)}),P=k.length>0?s(x,k[0]):!a.current.noIsolation;P&&x.cancelable&&x.preventDefault()}}},[]),c=h.useCallback(function(g,x,y,b){var k={name:g,delta:x,target:y,should:b,shadowParent:Xw(y)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(P){return P!==k})},1)},[]),d=h.useCallback(function(g){n.current=Qr(g),r.current=void 0},[]),f=h.useCallback(function(g){c(g.type,Hl(g),g.target,s(g,e.lockRef.current))},[]),m=h.useCallback(function(g){c(g.type,Qr(g),g.target,s(g,e.lockRef.current))},[]);h.useEffect(function(){return Sn.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",l,kn),document.addEventListener("touchmove",l,kn),document.addEventListener("touchstart",d,kn),function(){Sn=Sn.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,kn),document.removeEventListener("touchmove",l,kn),document.removeEventListener("touchstart",d,kn)}},[]);var p=e.removeScrollBar,v=e.inert;return h.createElement(h.Fragment,null,v?h.createElement(i,{styles:Ww(o)}):null,p?h.createElement(Fw,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Xw(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Zw=Ew(md,Yw);var Ir=h.forwardRef(function(e,t){return h.createElement(Vo,vt({},e,{ref:t,sideCar:Zw}))});Ir.classNames=Vo.classNames;var Jw=[" ","Enter","ArrowUp","ArrowDown"],Qw=[" ","Enter"],an="Select",[qo,Go,e0]=jo(an),[Hn,X_]=Ae(an,[e0,qt]),Uo=qt(),[t0,Gt]=Hn(an),[n0,r0]=Hn(an),bd=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:c,name:d,autoComplete:f,disabled:m,required:p,form:v}=e,g=Uo(t),[x,y]=h.useState(null),[b,k]=h.useState(null),[P,N]=h.useState(!1),S=fn(c),[I,j]=je({prop:r,defaultProp:o??!1,onChange:i,caller:an}),[q,U]=je({prop:a,defaultProp:s,onChange:l,caller:an}),G=h.useRef(null),V=x?v||!!x.closest("form"):!0,[K,L]=h.useState(new Set),T=Array.from(K).map(_=>_.props.value).join(";");return u.jsx(Nr,{...g,children:u.jsxs(t0,{required:p,scope:t,trigger:x,onTriggerChange:y,valueNode:b,onValueNodeChange:k,valueNodeHasChildren:P,onValueNodeHasChildrenChange:N,contentId:Ee(),value:q,onValueChange:U,open:I,onOpenChange:j,dir:S,triggerPointerDownPosRef:G,disabled:m,children:[u.jsx(qo.Provider,{scope:t,children:u.jsx(n0,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(_=>{L(F=>new Set(F).add(_))},[]),onNativeOptionRemove:h.useCallback(_=>{L(F=>{const M=new Set(F);return M.delete(_),M})},[]),children:n})}),V?u.jsxs(Gd,{"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:f,value:q,onChange:_=>U(_.target.value),disabled:m,form:v,children:[q===void 0?u.jsx("option",{value:""}):null,Array.from(K)]},T):null]})})};bd.displayName=an;var yd="SelectTrigger",wd=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Uo(n),a=Gt(yd,n),s=a.disabled||r,l=de(t,a.onTriggerChange),c=Go(n),d=h.useRef("touch"),[f,m,p]=Hd(g=>{const x=c().filter(k=>!k.disabled),y=x.find(k=>k.value===a.value),b=Wd(x,g,y);b!==void 0&&a.onValueChange(b.value)}),v=g=>{s||(a.onOpenChange(!0),p()),g&&(a.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return u.jsx(Tr,{asChild:!0,...i,children:u.jsx(te.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":Ud(a.value)?"":void 0,...o,ref:l,onClick:J(o.onClick,g=>{g.currentTarget.focus(),d.current!=="mouse"&&v(g)}),onPointerDown:J(o.onPointerDown,g=>{d.current=g.pointerType;const x=g.target;x.hasPointerCapture(g.pointerId)&&x.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(v(g),g.preventDefault())}),onKeyDown:J(o.onKeyDown,g=>{const x=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&m(g.key),!(x&&g.key===" ")&&Jw.includes(g.key)&&(v(),g.preventDefault())})})})});wd.displayName=yd;var Cd="SelectValue",kd=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=e,l=Gt(Cd,n),{onValueNodeHasChildrenChange:c}=l,d=i!==void 0,f=de(t,l.onValueNodeChange);return Me(()=>{c(d)},[c,d]),u.jsx(te.span,{...s,ref:f,style:{pointerEvents:"none"},children:Ud(l.value)?u.jsx(u.Fragment,{children:a}):i})});kd.displayName=Cd;var o0="SelectIcon",Sd=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return u.jsx(te.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Sd.displayName=o0;var i0="SelectPortal",Ed=e=>u.jsx(Un,{asChild:!0,...e});Ed.displayName=i0;var sn="SelectContent",Pd=h.forwardRef((e,t)=>{const n=Gt(sn,e.__scopeSelect),[r,o]=h.useState();if(Me(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?No.createPortal(u.jsx(Rd,{scope:e.__scopeSelect,children:u.jsx(qo.Slot,{scope:e.__scopeSelect,children:u.jsx("div",{children:e.children})})}),i):null}return u.jsx(Nd,{...e,ref:t})});Pd.displayName=sn;var st=10,[Rd,Ut]=Hn(sn),a0="SelectContentImpl",s0=$t("SelectContent.RemoveScroll"),Nd=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:p,sticky:v,hideWhenDetached:g,avoidCollisions:x,...y}=e,b=Gt(sn,n),[k,P]=h.useState(null),[N,S]=h.useState(null),I=de(t,D=>P(D)),[j,q]=h.useState(null),[U,G]=h.useState(null),V=Go(n),[K,L]=h.useState(!1),T=h.useRef(!1);h.useEffect(()=>{if(k)return Bo(k)},[k]),Ao();const _=h.useCallback(D=>{const[ee,...re]=V().map(me=>me.ref.current),[ae]=re.slice(-1),fe=document.activeElement;for(const me of D)if(me===fe||(me==null||me.scrollIntoView({block:"nearest"}),me===ee&&N&&(N.scrollTop=0),me===ae&&N&&(N.scrollTop=N.scrollHeight),me==null||me.focus(),document.activeElement!==fe))return},[V,N]),F=h.useCallback(()=>_([j,k]),[_,j,k]);h.useEffect(()=>{K&&F()},[K,F]);const{onOpenChange:M,triggerPointerDownPosRef:B}=b;h.useEffect(()=>{if(k){let D={x:0,y:0};const ee=ae=>{var fe,me;D={x:Math.abs(Math.round(ae.pageX)-(((fe=B.current)==null?void 0:fe.x)??0)),y:Math.abs(Math.round(ae.pageY)-(((me=B.current)==null?void 0:me.y)??0))}},re=ae=>{D.x<=10&&D.y<=10?ae.preventDefault():k.contains(ae.target)||M(!1),document.removeEventListener("pointermove",ee),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",ee),document.addEventListener("pointerup",re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ee),document.removeEventListener("pointerup",re,{capture:!0})}}},[k,M,B]),h.useEffect(()=>{const D=()=>M(!1);return window.addEventListener("blur",D),window.addEventListener("resize",D),()=>{window.removeEventListener("blur",D),window.removeEventListener("resize",D)}},[M]);const[C,Q]=Hd(D=>{const ee=V().filter(fe=>!fe.disabled),re=ee.find(fe=>fe.ref.current===document.activeElement),ae=Wd(ee,D,re);ae&&setTimeout(()=>ae.ref.current.focus())}),A=h.useCallback((D,ee,re)=>{const ae=!T.current&&!re;(b.value!==void 0&&b.value===ee||ae)&&(q(D),ae&&(T.current=!0))},[b.value]),w=h.useCallback(()=>k==null?void 0:k.focus(),[k]),Y=h.useCallback((D,ee,re)=>{const ae=!T.current&&!re;(b.value!==void 0&&b.value===ee||ae)&&G(D)},[b.value]),X=r==="popper"?sa:Td,z=X===sa?{side:s,sideOffset:l,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:m,collisionPadding:p,sticky:v,hideWhenDetached:g,avoidCollisions:x}:{};return u.jsx(Rd,{scope:n,content:k,viewport:N,onViewportChange:S,itemRefCallback:A,selectedItem:j,onItemLeave:w,itemTextRefCallback:Y,focusSelectedItem:F,selectedItemText:U,position:r,isPositioned:K,searchRef:C,children:u.jsx(Ir,{as:s0,allowPinchZoom:!0,children:u.jsx(Pr,{asChild:!0,trapped:b.open,onMountAutoFocus:D=>{D.preventDefault()},onUnmountAutoFocus:J(o,D=>{var ee;(ee=b.trigger)==null||ee.focus({preventScroll:!0}),D.preventDefault()}),children:u.jsx(Vn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:D=>D.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:u.jsx(X,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:D=>D.preventDefault(),...y,...z,onPlaced:()=>L(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:J(y.onKeyDown,D=>{const ee=D.ctrlKey||D.altKey||D.metaKey;if(D.key==="Tab"&&D.preventDefault(),!ee&&D.key.length===1&&Q(D.key),["ArrowUp","ArrowDown","Home","End"].includes(D.key)){let ae=V().filter(fe=>!fe.disabled).map(fe=>fe.ref.current);if(["ArrowUp","End"].includes(D.key)&&(ae=ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(D.key)){const fe=D.target,me=ae.indexOf(fe);ae=ae.slice(me+1)}setTimeout(()=>_(ae)),D.preventDefault()}})})})})})})});Nd.displayName=a0;var l0="SelectItemAlignedPosition",Td=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Gt(sn,n),a=Ut(sn,n),[s,l]=h.useState(null),[c,d]=h.useState(null),f=de(t,I=>d(I)),m=Go(n),p=h.useRef(!1),v=h.useRef(!0),{viewport:g,selectedItem:x,selectedItemText:y,focusSelectedItem:b}=a,k=h.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&c&&g&&x&&y){const I=i.trigger.getBoundingClientRect(),j=c.getBoundingClientRect(),q=i.valueNode.getBoundingClientRect(),U=y.getBoundingClientRect();if(i.dir!=="rtl"){const fe=U.left-j.left,me=q.left-fe,_e=I.left-me,ze=I.width+_e,Ke=Math.max(ze,j.width),Be=window.innerWidth-st,it=kl(me,[st,Math.max(st,Be-Ke)]);s.style.minWidth=ze+"px",s.style.left=it+"px"}else{const fe=j.right-U.right,me=window.innerWidth-q.right-fe,_e=window.innerWidth-I.right-me,ze=I.width+_e,Ke=Math.max(ze,j.width),Be=window.innerWidth-st,it=kl(me,[st,Math.max(st,Be-Ke)]);s.style.minWidth=ze+"px",s.style.right=it+"px"}const G=m(),V=window.innerHeight-st*2,K=g.scrollHeight,L=window.getComputedStyle(c),T=parseInt(L.borderTopWidth,10),_=parseInt(L.paddingTop,10),F=parseInt(L.borderBottomWidth,10),M=parseInt(L.paddingBottom,10),B=T+_+K+M+F,C=Math.min(x.offsetHeight*5,B),Q=window.getComputedStyle(g),A=parseInt(Q.paddingTop,10),w=parseInt(Q.paddingBottom,10),Y=I.top+I.height/2-st,X=V-Y,z=x.offsetHeight/2,D=x.offsetTop+z,ee=T+_+D,re=B-ee;if(ee<=Y){const fe=G.length>0&&x===G[G.length-1].ref.current;s.style.bottom="0px";const me=c.clientHeight-g.offsetTop-g.offsetHeight,_e=Math.max(X,z+(fe?w:0)+me+F),ze=ee+_e;s.style.height=ze+"px"}else{const fe=G.length>0&&x===G[0].ref.current;s.style.top="0px";const _e=Math.max(Y,T+g.offsetTop+(fe?A:0)+z)+re;s.style.height=_e+"px",g.scrollTop=ee-Y+g.offsetTop}s.style.margin=`${st}px 0`,s.style.minHeight=C+"px",s.style.maxHeight=V+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[m,i.trigger,i.valueNode,s,c,g,x,y,i.dir,r]);Me(()=>k(),[k]);const[P,N]=h.useState();Me(()=>{c&&N(window.getComputedStyle(c).zIndex)},[c]);const S=h.useCallback(I=>{I&&v.current===!0&&(k(),b==null||b(),v.current=!1)},[k,b]);return u.jsx(u0,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:S,children:u.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:u.jsx(te.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Td.displayName=l0;var c0="SelectPopperPosition",sa=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=st,...i}=e,a=Uo(n);return u.jsx(Fo,{...a,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}})});sa.displayName=c0;var[u0,Ua]=Hn(sn,{}),la="SelectViewport",Id=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Ut(la,n),a=Ua(la,n),s=de(t,i.onViewportChange),l=h.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(qo.Slot,{scope:n,children:u.jsx(te.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:J(o.onScroll,c=>{const d=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:m}=a;if(m!=null&&m.current&&f){const p=Math.abs(l.current-d.scrollTop);if(p>0){const v=window.innerHeight-st*2,g=parseFloat(f.style.minHeight),x=parseFloat(f.style.height),y=Math.max(g,x);if(y<v){const b=y+p,k=Math.min(v,b),P=b-k;f.style.height=k+"px",f.style.bottom==="0px"&&(d.scrollTop=P>0?P:0,f.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});Id.displayName=la;var jd="SelectGroup",[d0,f0]=Hn(jd),Ad=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ee();return u.jsx(d0,{scope:n,id:o,children:u.jsx(te.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Ad.displayName=jd;var _d="SelectLabel",Md=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=f0(_d,n);return u.jsx(te.div,{id:o.id,...r,ref:t})});Md.displayName=_d;var ho="SelectItem",[p0,Od]=Hn(ho),Dd=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=Gt(ho,n),l=Ut(ho,n),c=s.value===r,[d,f]=h.useState(i??""),[m,p]=h.useState(!1),v=de(t,b=>{var k;return(k=l.itemRefCallback)==null?void 0:k.call(l,b,r,o)}),g=Ee(),x=h.useRef("touch"),y=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(p0,{scope:n,value:r,disabled:o,textId:g,isSelected:c,onItemTextChange:h.useCallback(b=>{f(k=>k||((b==null?void 0:b.textContent)??"").trim())},[]),children:u.jsx(qo.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:u.jsx(te.div,{role:"option","aria-labelledby":g,"data-highlighted":m?"":void 0,"aria-selected":c&&m,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:v,onFocus:J(a.onFocus,()=>p(!0)),onBlur:J(a.onBlur,()=>p(!1)),onClick:J(a.onClick,()=>{x.current!=="mouse"&&y()}),onPointerUp:J(a.onPointerUp,()=>{x.current==="mouse"&&y()}),onPointerDown:J(a.onPointerDown,b=>{x.current=b.pointerType}),onPointerMove:J(a.onPointerMove,b=>{var k;x.current=b.pointerType,o?(k=l.onItemLeave)==null||k.call(l):x.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:J(a.onPointerLeave,b=>{var k;b.currentTarget===document.activeElement&&((k=l.onItemLeave)==null||k.call(l))}),onKeyDown:J(a.onKeyDown,b=>{var P;((P=l.searchRef)==null?void 0:P.current)!==""&&b.key===" "||(Qw.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});Dd.displayName=ho;var sr="SelectItemText",Ld=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=Gt(sr,n),s=Ut(sr,n),l=Od(sr,n),c=r0(sr,n),[d,f]=h.useState(null),m=de(t,y=>f(y),l.onItemTextChange,y=>{var b;return(b=s.itemTextRefCallback)==null?void 0:b.call(s,y,l.value,l.disabled)}),p=d==null?void 0:d.textContent,v=h.useMemo(()=>u.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:x}=c;return Me(()=>(g(v),()=>x(v)),[g,x,v]),u.jsxs(u.Fragment,{children:[u.jsx(te.span,{id:l.textId,...i,ref:m}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?No.createPortal(i.children,a.valueNode):null]})});Ld.displayName=sr;var Fd="SelectItemIndicator",$d=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Od(Fd,n).isSelected?u.jsx(te.span,{"aria-hidden":!0,...r,ref:t}):null});$d.displayName=Fd;var ca="SelectScrollUpButton",zd=h.forwardRef((e,t)=>{const n=Ut(ca,e.__scopeSelect),r=Ua(ca,e.__scopeSelect),[o,i]=h.useState(!1),a=de(t,r.onScrollButtonChange);return Me(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollTop>0;i(c)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?u.jsx(Vd,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});zd.displayName=ca;var ua="SelectScrollDownButton",Bd=h.forwardRef((e,t)=>{const n=Ut(ua,e.__scopeSelect),r=Ua(ua,e.__scopeSelect),[o,i]=h.useState(!1),a=de(t,r.onScrollButtonChange);return Me(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<c;i(d)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?u.jsx(Vd,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});Bd.displayName=ua;var Vd=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Ut("SelectScrollButton",n),a=h.useRef(null),s=Go(n),l=h.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return h.useEffect(()=>()=>l(),[l]),Me(()=>{var d;const c=s().find(f=>f.ref.current===document.activeElement);(d=c==null?void 0:c.ref.current)==null||d.scrollIntoView({block:"nearest"})},[s]),u.jsx(te.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:J(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:J(o.onPointerMove,()=>{var c;(c=i.onItemLeave)==null||c.call(i),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:J(o.onPointerLeave,()=>{l()})})}),m0="SelectSeparator",qd=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return u.jsx(te.div,{"aria-hidden":!0,...r,ref:t})});qd.displayName=m0;var da="SelectArrow",h0=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Uo(n),i=Gt(da,n),a=Ut(da,n);return i.open&&a.position==="popper"?u.jsx($o,{...o,...r,ref:t}):null});h0.displayName=da;var g0="SelectBubbleInput",Gd=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),i=de(r,o),a=zo(t);return h.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&d){const f=new Event("change",{bubbles:!0});d.call(s,t),s.dispatchEvent(f)}},[a,t]),u.jsx(te.select,{...n,style:{...cd,...n.style},ref:i,defaultValue:t})});Gd.displayName=g0;function Ud(e){return e===""||e===void 0}function Hd(e){const t=lt(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(a=>{const s=n.current+a;t(s),(function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),i=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Wd(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=v0(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function v0(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var x0=bd,Kd=wd,b0=kd,y0=Sd,w0=Ed,Yd=Pd,C0=Id,k0=Ad,Xd=Md,Zd=Dd,S0=Ld,E0=$d,Jd=zd,Qd=Bd,ef=qd;const P0=x0,R0=k0,N0=b0,tf=h.forwardRef(({className:e,children:t,readOnly:n,...r},o)=>{const i=a=>{n&&a.preventDefault()};return u.jsxs(Kd,{ref:o,"data-readonly":n||void 0,disabled:r.disabled,onPointerDown:r.disabled?r.onPointerDown:i,tabIndex:n?0:void 0,className:O(O("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)),...r,children:[u.jsx("div",{className:"overflow-hidden whitespace-nowrap text-ellipsis",children:t}),u.jsx(y0,{asChild:!0,children:u.jsx(To,{className:"h-4 w-4 text-purple-muted-300"})})]})});tf.displayName=Kd.displayName;const Ha=h.forwardRef(({className:e,...t},n)=>u.jsx(Jd,{ref:n,className:O("qodo qodo-select-scroll-up-button flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(zx,{className:"h-4 w-4"})}));Ha.displayName=Jd.displayName;const Wa=h.forwardRef(({className:e,...t},n)=>u.jsx(Qd,{ref:n,className:O("qodo qodo-select-scroll-down-button flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(To,{className:"h-4 w-4"})}));Wa.displayName=Qd.displayName;const nf=h.forwardRef(({className:e,children:t,position:n="popper",container:r=null,...o},i)=>u.jsx(w0,{container:r,children:u.jsxs(Yd,{ref:i,className:O("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",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...o,children:[u.jsx(Ha,{}),u.jsx(C0,{className:O("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(Wa,{})]})}));nf.displayName=Yd.displayName;const rf=h.forwardRef(({className:e,...t},n)=>u.jsx(Xd,{ref:n,className:O("qodo qodo-select-label py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));rf.displayName=Xd.displayName;const of=h.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(Zd,{ref:r,title:n.value,className:O(O("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),...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 mt-0.5",children:u.jsx(E0,{children:u.jsx(Bn,{className:"h-4 w-4"})})}),u.jsx(S0,{children:t})]}));of.displayName=Zd.displayName;const af=h.forwardRef(({className:e,...t},n)=>u.jsx(ef,{ref:n,className:O("qodo qodo-select-separator -mx-1 my-1 h-px bg-muted",e),...t}));af.displayName=ef.displayName;var Kl=1,T0=.9,I0=.8,j0=.17,Ii=.1,ji=.999,A0=.9999,_0=.99,M0=/[\\\/_+.#"@\[\(\{&]/,O0=/[\\\/_+.#"@\[\(\{&]/g,D0=/[\s-]/,sf=/[\s-]/g;function fa(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?Kl:_0;var s=`${o},${i}`;if(a[s]!==void 0)return a[s];for(var l=r.charAt(i),c=n.indexOf(l,o),d=0,f,m,p,v;c>=0;)f=fa(e,t,n,r,c+1,i+1,a),f>d&&(c===o?f*=Kl:M0.test(e.charAt(c-1))?(f*=I0,p=e.slice(o,c-1).match(O0),p&&o>0&&(f*=Math.pow(ji,p.length))):D0.test(e.charAt(c-1))?(f*=T0,v=e.slice(o,c-1).match(sf),v&&o>0&&(f*=Math.pow(ji,v.length))):(f*=j0,o>0&&(f*=Math.pow(ji,c-o))),e.charAt(c)!==t.charAt(i)&&(f*=A0)),(f<Ii&&n.charAt(c-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(c-1)!==r.charAt(i))&&(m=fa(e,t,n,r,c+1,i+2,a),m*Ii>f&&(f=m*Ii)),f>d&&(d=f),c=n.indexOf(l,c+1);return a[s]=d,d}function Yl(e){return e.toLowerCase().replace(sf," ")}function L0(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,fa(e,t,Yl(e),Yl(t),0,0,{})}function F0(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Oe=e=>{const{present:t,children:n}=e,r=$0(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=de(r.ref,z0(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};Oe.displayName="Presence";function $0(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[s,l]=F0(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const c=eo(r.current);i.current=s==="mounted"?c:"none"},[s]),Me(()=>{const c=r.current,d=o.current;if(d!==e){const m=i.current,p=eo(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&m!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Me(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=p=>{const g=eo(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&g&&(l("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=p=>{p.target===t&&(i.current=eo(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:h.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function eo(e){return(e==null?void 0:e.animationName)||"none"}function z0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ho="Dialog",[lf,Z_]=Ae(Ho),[B0,dt]=lf(Ho),cf=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=h.useRef(null),l=h.useRef(null),[c,d]=je({prop:r,defaultProp:o??!1,onChange:i,caller:Ho});return u.jsx(B0,{scope:t,triggerRef:s,contentRef:l,contentId:Ee(),titleId:Ee(),descriptionId:Ee(),open:c,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(f=>!f),[d]),modal:a,children:n})};cf.displayName=Ho;var uf="DialogTrigger",df=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=dt(uf,n),i=de(t,o.triggerRef);return u.jsx(te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Xa(o.open),...r,ref:i,onClick:J(e.onClick,o.onOpenToggle)})});df.displayName=uf;var Ka="DialogPortal",[V0,ff]=lf(Ka,{forceMount:void 0}),pf=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=dt(Ka,t);return u.jsx(V0,{scope:t,forceMount:n,children:h.Children.map(r,a=>u.jsx(Oe,{present:n||i.open,children:u.jsx(Un,{asChild:!0,container:o,children:a})}))})};pf.displayName=Ka;var go="DialogOverlay",mf=h.forwardRef((e,t)=>{const n=ff(go,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=dt(go,e.__scopeDialog);return i.modal?u.jsx(Oe,{present:r||i.open,children:u.jsx(G0,{...o,ref:t})}):null});mf.displayName=go;var q0=$t("DialogOverlay.RemoveScroll"),G0=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=dt(go,n);return u.jsx(Ir,{as:q0,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(te.div,{"data-state":Xa(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ln="DialogContent",hf=h.forwardRef((e,t)=>{const n=ff(ln,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=dt(ln,e.__scopeDialog);return u.jsx(Oe,{present:r||i.open,children:i.modal?u.jsx(U0,{...o,ref:t}):u.jsx(H0,{...o,ref:t})})});hf.displayName=ln;var U0=h.forwardRef((e,t)=>{const n=dt(ln,e.__scopeDialog),r=h.useRef(null),o=de(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return Bo(i)},[]),u.jsx(gf,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:J(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:J(e.onFocusOutside,i=>i.preventDefault())})}),H0=h.forwardRef((e,t)=>{const n=dt(ln,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return u.jsx(gf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),gf=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=dt(ln,n),l=h.useRef(null),c=de(t,l);return Ao(),u.jsxs(u.Fragment,{children:[u.jsx(Pr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:u.jsx(Vn,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Xa(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(W0,{titleId:s.titleId}),u.jsx(Y0,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Ya="DialogTitle",vf=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=dt(Ya,n);return u.jsx(te.h2,{id:o.titleId,...r,ref:t})});vf.displayName=Ya;var xf="DialogDescription",bf=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=dt(xf,n);return u.jsx(te.p,{id:o.descriptionId,...r,ref:t})});bf.displayName=xf;var yf="DialogClose",wf=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=dt(yf,n);return u.jsx(te.button,{type:"button",...r,ref:t,onClick:J(e.onClick,()=>o.onOpenChange(!1))})});wf.displayName=yf;function Xa(e){return e?"open":"closed"}var Cf="DialogTitleWarning",[J_,kf]=gb(Cf,{contentName:ln,titleName:Ya,docsSlug:"dialog"}),W0=({titleId:e})=>{const t=kf(Cf),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
201
201
 
202
202
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
203
203
 
204
- 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},Jb="DialogDescriptionWarning",Qb=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Yc(Jb).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},Xc=Oc,ey=$c,Zc=Fc,Jc=Vc,Qc=Bc,ty=Wc,ry=qc,ed=Hc,pr='[cmdk-group=""]',Eo='[cmdk-group-items=""]',ny='[cmdk-group-heading=""]',td='[cmdk-item=""]',ci=`${td}:not([aria-disabled="true"])`,Uo="cmdk-item-select",qt="data-value",oy=(e,t,r)=>Bb(e,t,r),rd=d.createContext(void 0),Or=()=>d.useContext(rd),nd=d.createContext(void 0),ya=()=>d.useContext(nd),od=d.createContext(void 0),ad=d.forwardRef((e,t)=>{let r=Ut(()=>{var T,G;return{search:"",value:(G=(T=e.value)!=null?T:e.defaultValue)!=null?G:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=Ut(()=>new Set),o=Ut(()=>new Map),a=Ut(()=>new Map),i=Ut(()=>new Set),l=sd(e),{label:c,children:u,value:f,onValueChange:p,filter:g,shouldFilter:m,loop:b,disablePointerSelection:v=!1,vimBindings:x=!0,...y}=e,h=me(),C=me(),E=me(),j=d.useRef(null),_=gy();Tt(()=>{if(f!==void 0){let T=f.trim();r.current.value=T,P.emit()}},[f]),Tt(()=>{_(6,Q)},[]);let P=d.useMemo(()=>({subscribe:T=>(i.current.add(T),()=>i.current.delete(T)),snapshot:()=>r.current,setState:(T,G,Z)=>{var z,L,A,K;if(!Object.is(r.current[T],G)){if(r.current[T]=G,T==="search")te(),U(),_(1,re);else if(T==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ee=document.getElementById(E);ee?ee.focus():(z=document.getElementById(h))==null||z.focus()}if(_(7,()=>{var ee;r.current.selectedItemId=(ee=V())==null?void 0:ee.id,P.emit()}),Z||_(5,Q),((L=l.current)==null?void 0:L.value)!==void 0){let ee=G??"";(K=(A=l.current).onValueChange)==null||K.call(A,ee);return}}P.emit()}},emit:()=>{i.current.forEach(T=>T())}}),[]),N=d.useMemo(()=>({value:(T,G,Z)=>{var z;G!==((z=a.current.get(T))==null?void 0:z.value)&&(a.current.set(T,{value:G,keywords:Z}),r.current.filtered.items.set(T,W(G,Z)),_(2,()=>{U(),P.emit()}))},item:(T,G)=>(n.current.add(T),G&&(o.current.has(G)?o.current.get(G).add(T):o.current.set(G,new Set([T]))),_(3,()=>{te(),U(),r.current.value||re(),P.emit()}),()=>{a.current.delete(T),n.current.delete(T),r.current.filtered.items.delete(T);let Z=V();_(4,()=>{te(),(Z==null?void 0:Z.getAttribute("id"))===T&&re(),P.emit()})}),group:T=>(o.current.has(T)||o.current.set(T,new Set),()=>{a.current.delete(T),o.current.delete(T)}),filter:()=>l.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:h,inputId:E,labelId:C,listInnerRef:j}),[]);function W(T,G){var Z,z;let L=(z=(Z=l.current)==null?void 0:Z.filter)!=null?z:oy;return T?L(T,r.current.search,G):0}function U(){if(!r.current.search||l.current.shouldFilter===!1)return;let T=r.current.filtered.items,G=[];r.current.filtered.groups.forEach(z=>{let L=o.current.get(z),A=0;L.forEach(K=>{let ee=T.get(K);A=Math.max(ee,A)}),G.push([z,A])});let Z=j.current;O().sort((z,L)=>{var A,K;let ee=z.getAttribute("id"),oe=L.getAttribute("id");return((A=T.get(oe))!=null?A:0)-((K=T.get(ee))!=null?K:0)}).forEach(z=>{let L=z.closest(Eo);L?L.appendChild(z.parentElement===L?z:z.closest(`${Eo} > *`)):Z.appendChild(z.parentElement===Z?z:z.closest(`${Eo} > *`))}),G.sort((z,L)=>L[1]-z[1]).forEach(z=>{var L;let A=(L=j.current)==null?void 0:L.querySelector(`${pr}[${qt}="${encodeURIComponent(z[0])}"]`);A==null||A.parentElement.appendChild(A)})}function re(){let T=O().find(Z=>Z.getAttribute("aria-disabled")!=="true"),G=T==null?void 0:T.getAttribute(qt);P.setState("value",G||void 0)}function te(){var T,G,Z,z;if(!r.current.search||l.current.shouldFilter===!1){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let L=0;for(let A of n.current){let K=(G=(T=a.current.get(A))==null?void 0:T.value)!=null?G:"",ee=(z=(Z=a.current.get(A))==null?void 0:Z.keywords)!=null?z:[],oe=W(K,ee);r.current.filtered.items.set(A,oe),oe>0&&L++}for(let[A,K]of o.current)for(let ee of K)if(r.current.filtered.items.get(ee)>0){r.current.filtered.groups.add(A);break}r.current.filtered.count=L}function Q(){var T,G,Z;let z=V();z&&(((T=z.parentElement)==null?void 0:T.firstChild)===z&&((Z=(G=z.closest(pr))==null?void 0:G.querySelector(ny))==null||Z.scrollIntoView({block:"nearest"})),z.scrollIntoView({block:"nearest"}))}function V(){var T;return(T=j.current)==null?void 0:T.querySelector(`${td}[aria-selected="true"]`)}function O(){var T;return Array.from(((T=j.current)==null?void 0:T.querySelectorAll(ci))||[])}function I(T){let G=O()[T];G&&P.setState("value",G.getAttribute(qt))}function D(T){var G;let Z=V(),z=O(),L=z.findIndex(K=>K===Z),A=z[L+T];(G=l.current)!=null&&G.loop&&(A=L+T<0?z[z.length-1]:L+T===z.length?z[0]:z[L+T]),A&&P.setState("value",A.getAttribute(qt))}function k(T){let G=V(),Z=G==null?void 0:G.closest(pr),z;for(;Z&&!z;)Z=T>0?py(Z,pr):my(Z,pr),z=Z==null?void 0:Z.querySelector(ci);z?P.setState("value",z.getAttribute(qt)):D(T)}let M=()=>I(O().length-1),B=T=>{T.preventDefault(),T.metaKey?M():T.altKey?k(1):D(1)},J=T=>{T.preventDefault(),T.metaKey?I(0):T.altKey?k(-1):D(-1)};return d.createElement(q.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:T=>{var G;(G=y.onKeyDown)==null||G.call(y,T);let Z=T.nativeEvent.isComposing||T.keyCode===229;if(!(T.defaultPrevented||Z))switch(T.key){case"n":case"j":{x&&T.ctrlKey&&B(T);break}case"ArrowDown":{B(T);break}case"p":case"k":{x&&T.ctrlKey&&J(T);break}case"ArrowUp":{J(T);break}case"Home":{T.preventDefault(),I(0);break}case"End":{T.preventDefault(),M();break}case"Enter":{T.preventDefault();let z=V();if(z){let L=new Event(Uo);z.dispatchEvent(L)}}}}},d.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:hy},c),Gn(e,T=>d.createElement(nd.Provider,{value:P},d.createElement(rd.Provider,{value:N},T))))}),ay=d.forwardRef((e,t)=>{var r,n;let o=me(),a=d.useRef(null),i=d.useContext(od),l=Or(),c=sd(e),u=(n=(r=c.current)==null?void 0:r.forceMount)!=null?n:i==null?void 0:i.forceMount;Tt(()=>{if(!u)return l.item(o,i==null?void 0:i.id)},[u]);let f=id(o,a,[e.value,e.children,a],e.keywords),p=ya(),g=pt(_=>_.value&&_.value===f.current),m=pt(_=>u||l.filter()===!1?!0:_.search?_.filtered.items.get(o)>0:!0);d.useEffect(()=>{let _=a.current;if(!(!_||e.disabled))return _.addEventListener(Uo,b),()=>_.removeEventListener(Uo,b)},[m,e.onSelect,e.disabled]);function b(){var _,P;v(),(P=(_=c.current).onSelect)==null||P.call(_,f.current)}function v(){p.setState("value",f.current,!0)}if(!m)return null;let{disabled:x,value:y,onSelect:h,forceMount:C,keywords:E,...j}=e;return d.createElement(q.div,{ref:tt(a,t),...j,id:o,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!g,"data-disabled":!!x,"data-selected":!!g,onPointerMove:x||l.getDisablePointerSelection()?void 0:v,onClick:x?void 0:b},e.children)}),sy=d.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...a}=e,i=me(),l=d.useRef(null),c=d.useRef(null),u=me(),f=Or(),p=pt(m=>o||f.filter()===!1?!0:m.search?m.filtered.groups.has(i):!0);Tt(()=>f.group(i),[]),id(i,l,[e.value,e.heading,c]);let g=d.useMemo(()=>({id:i,forceMount:o}),[o]);return d.createElement(q.div,{ref:tt(l,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),Gn(e,m=>d.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?u:void 0},d.createElement(od.Provider,{value:g},m))))}),iy=d.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=d.useRef(null),a=pt(i=>!i.search);return!r&&!a?null:d.createElement(q.div,{ref:tt(o,t),...n,"cmdk-separator":"",role:"separator"})}),ly=d.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=e.value!=null,a=ya(),i=pt(u=>u.search),l=pt(u=>u.selectedItemId),c=Or();return d.useEffect(()=>{e.value!=null&&a.setState("search",e.value)},[e.value]),d.createElement(q.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":l,id:c.inputId,type:"text",value:o?e.value:i,onChange:u=>{o||a.setState("search",u.target.value),r==null||r(u.target.value)}})}),cy=d.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,a=d.useRef(null),i=d.useRef(null),l=pt(u=>u.selectedItemId),c=Or();return d.useEffect(()=>{if(i.current&&a.current){let u=i.current,f=a.current,p,g=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let m=u.offsetHeight;f.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return g.observe(u),()=>{cancelAnimationFrame(p),g.unobserve(u)}}},[]),d.createElement(q.div,{ref:tt(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":n,id:c.listId},Gn(e,u=>d.createElement("div",{ref:tt(i,c.listInnerRef),"cmdk-list-sizer":""},u)))}),dy=d.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:a,container:i,...l}=e;return d.createElement(Xc,{open:r,onOpenChange:n},d.createElement(Zc,{container:i},d.createElement(Jc,{"cmdk-overlay":"",className:o}),d.createElement(Qc,{"aria-label":e.label,"cmdk-dialog":"",className:a},d.createElement(ad,{ref:t,...l}))))}),uy=d.forwardRef((e,t)=>pt(r=>r.filtered.count===0)?d.createElement(q.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),fy=d.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...a}=e;return d.createElement(q.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Gn(e,i=>d.createElement("div",{"aria-hidden":!0},i)))}),Mt=Object.assign(ad,{List:cy,Item:ay,Input:ly,Group:sy,Separator:iy,Dialog:dy,Empty:uy,Loading:fy});function py(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function my(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function sd(e){let t=d.useRef(e);return Tt(()=>{t.current=e}),t}var Tt=typeof window>"u"?d.useEffect:d.useLayoutEffect;function Ut(e){let t=d.useRef();return t.current===void 0&&(t.current=e()),t}function pt(e){let t=ya(),r=()=>e(t.snapshot());return d.useSyncExternalStore(t.subscribe,r,r)}function id(e,t,r,n=[]){let o=d.useRef(),a=Or();return Tt(()=>{var i;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}})(),c=n.map(u=>u.trim());a.value(e,l,c),(i=t.current)==null||i.setAttribute(qt,l),o.current=l}),o}var gy=()=>{let[e,t]=d.useState(),r=Ut(()=>new Map);return Tt(()=>{r.current.forEach(n=>n()),r.current=new Map},[e]),(n,o)=>{r.current.set(n,o),t({})}};function vy(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Gn({asChild:e,children:t},r){return e&&d.isValidElement(t)?d.cloneElement(vy(t),{ref:t.ref},r(t.props.children)):r(t)}var hy={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function xy({...e}){return s.jsx(Xc,{"data-slot":"dialog",...e})}function by({...e}){return s.jsx(ey,{"data-slot":"dialog-trigger",...e})}function ld({...e}){return s.jsx(Zc,{"data-slot":"dialog-portal",...e})}function yy({...e}){return s.jsx(ed,{"data-slot":"dialog-close",...e})}function cd({className:e,...t}){return s.jsx(Jc,{"data-slot":"dialog-overlay",className:R("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 wy({className:e,children:t,showCloseButton:r=!0,...n}){return s.jsxs(ld,{"data-slot":"dialog-portal",children:[s.jsx(cd,{}),s.jsxs(Qc,{"data-slot":"dialog-content",className:R("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&&s.jsxs(ed,{"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:[s.jsx(kn,{}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Cy({className:e,...t}){return s.jsx("div",{"data-slot":"dialog-header",className:R("qodo qodo-dialog-header flex flex-col gap-2 text-center sm:text-left",e),...t})}function Sy({className:e,...t}){return s.jsx("div",{"data-slot":"dialog-footer",className:R("qodo qodo-dialog-footer flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function Ey({className:e,...t}){return s.jsx(ty,{"data-slot":"dialog-title",className:R("qodo qodo-dialog-title text-lg leading-none font-semibold",e),...t})}function ky({className:e,...t}){return s.jsx(ry,{"data-slot":"dialog-description",className:R("qodo qodo-dialog-description text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function dd({className:e,...t}){return s.jsx(Mt,{"data-slot":"command",className:R("qodo qodo-command bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function ud({className:e,...t}){return s.jsxs("div",{"data-slot":"command-input-wrapper",className:R("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:[s.jsx(ll,{className:"size-4 shrink-0 text-purple-muted-300"}),s.jsx(Mt.Input,{"data-slot":"command-input",className:R("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 fd({className:e,...t}){return s.jsx(Mt.List,{"data-slot":"command-list",className:R("qodo qodo-command-list max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function pd({...e}){return s.jsx(Mt.Empty,{"data-slot":"command-empty",className:R("qodo qodo-command-empty","py-6 text-center text-sm text-purple-muted-300"),...e})}function Ry({className:e,...t}){return s.jsx(Mt.Loading,{"data-slot":"command-loading",className:R("qodo qodo-command-loading","py-6 text-center text-sm text-purple-muted-300",e),...t})}function md({className:e,...t}){return s.jsx(Mt.Group,{"data-slot":"command-group",className:R("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 gd({className:e,...t}){return s.jsx(Mt.Item,{"data-slot":"command-item",className:R("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})}var Wn="Popover",[vd,FR]=ye(Wn,[mt]),Dr=mt(),[Ny,ht]=vd(Wn),hd=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,l=Dr(t),c=d.useRef(null),[u,f]=d.useState(!1),[p,g]=be({prop:n,defaultProp:o??!1,onChange:a,caller:Wn});return s.jsx(Ar,{...l,children:s.jsx(Ny,{scope:t,contentId:me(),triggerRef:c,open:p,onOpenChange:g,onOpenToggle:d.useCallback(()=>g(m=>!m),[g]),hasCustomAnchor:u,onCustomAnchorAdd:d.useCallback(()=>f(!0),[]),onCustomAnchorRemove:d.useCallback(()=>f(!1),[]),modal:i,children:r})})};hd.displayName=Wn;var xd="PopoverAnchor",jy=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ht(xd,r),a=Dr(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:l}=o;return d.useEffect(()=>(i(),()=>l()),[i,l]),s.jsx(Ir,{...a,...n,ref:t})});jy.displayName=xd;var bd="PopoverTrigger",yd=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ht(bd,r),a=Dr(r),i=ae(t,o.triggerRef),l=s.jsx(q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":kd(o.open),...n,ref:i,onClick:F(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:s.jsx(Ir,{asChild:!0,...a,children:l})});yd.displayName=bd;var wa="PopoverPortal",[Py,Ty]=vd(wa,{forceMount:void 0}),wd=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,a=ht(wa,t);return s.jsx(Py,{scope:t,forceMount:r,children:s.jsx(Ce,{present:r||a.open,children:s.jsx(sr,{asChild:!0,container:o,children:n})})})};wd.displayName=wa;var Zt="PopoverContent",Cd=d.forwardRef((e,t)=>{const r=Ty(Zt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,a=ht(Zt,e.__scopePopover);return s.jsx(Ce,{present:n||a.open,children:a.modal?s.jsx(Ay,{...o,ref:t}):s.jsx(Iy,{...o,ref:t})})});Cd.displayName=Zt;var _y=dt("PopoverContent.RemoveScroll"),Ay=d.forwardRef((e,t)=>{const r=ht(Zt,e.__scopePopover),n=d.useRef(null),o=ae(t,n),a=d.useRef(!1);return d.useEffect(()=>{const i=n.current;if(i)return Dn(i)},[]),s.jsx(Mr,{as:_y,allowPinchZoom:!0,children:s.jsx(Sd,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:F(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),a.current||(l=r.triggerRef.current)==null||l.focus()}),onPointerDownOutside:F(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:F(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),Iy=d.forwardRef((e,t)=>{const r=ht(Zt,e.__scopePopover),n=d.useRef(!1),o=d.useRef(!1);return s.jsx(Sd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,l;(i=e.onCloseAutoFocus)==null||i.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 c,u;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((u=r.triggerRef.current)==null?void 0:u.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Sd=d.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:f,...p}=e,g=ht(Zt,r),m=Dr(r);return Nn(),s.jsx(Tr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:s.jsx(nr,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:s.jsx(In,{"data-state":kd(g.open),role:"dialog",id:g.contentId,...m,...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)"}})})})}),Ed="PopoverClose",My=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=ht(Ed,r);return s.jsx(q.button,{type:"button",...n,ref:t,onClick:F(e.onClick,()=>o.onOpenChange(!1))})});My.displayName=Ed;var Oy="PopoverArrow",Dy=d.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Dr(r);return s.jsx(Mn,{...o,...n,ref:t})});Dy.displayName=Oy;function kd(e){return e?"open":"closed"}var $y=hd,Ly=yd,Fy=wd,Vy=Cd;function Ca({...e}){return s.jsx($y,{"data-slot":"popover",...e})}function Sa({...e}){return s.jsx(Ly,{"data-slot":"popover-trigger",...e})}function Ea({className:e,align:t="center",sideOffset:r=4,...n}){return s.jsx(Fy,{children:s.jsx(Vy,{"data-slot":"popover-content",align:t,sideOffset:r,className:R("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 ka=d.forwardRef(({options:e,value:t,onValueChange:r,placeholder:n="Select option...",searchPlaceholder:o="Search...",emptyText:a="No option found.",disabled:i=!1,readOnly:l=!1,error:c=!1,className:u,onSearchChange:f,isLoading:p=!1,loadingText:g="Loading...",...m},b)=>{const[v,x]=d.useState(!1),[y,h]=d.useState(""),[C,E]=d.useState(0),j=d.useRef(null),_=e.find(N=>N.value===t),P=N=>{h(N),f==null||f(N)};return d.useEffect(()=>{j.current&&E(j.current.offsetWidth)},[]),s.jsxs(Ca,{open:l?!1:v,onOpenChange:x,children:[s.jsx(Sa,{asChild:!0,children:s.jsxs(et,{ref:N=>{typeof b=="function"?b(N):b&&(b.current=N),j.current=N},variant:"outline",role:"combobox","aria-expanded":v,"aria-invalid":c||void 0,"data-readonly":l||void 0,className:R("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":!_},u),disabled:i,...m,children:[_?_.label:n,s.jsx(Ug,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),s.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:s.jsxs(dd,{className:"w-full bg-[var(--fill-interactive-neutral-idle)]",shouldFilter:!f,children:[s.jsx(ud,{placeholder:o,...!!f&&{value:y,onValueChange:P}}),s.jsx(fd,{children:p?s.jsx(Ry,{children:g}):s.jsxs(s.Fragment,{children:[s.jsx(pd,{className:"flex justify-center items-center p-6 text-center text-sm text-purple-muted-300",children:a}),s.jsx(md,{children:e.map(N=>{const W=t===N.value;return s.jsxs(gd,{value:N.value,keywords:[N.label],disabled:N.disabled,className:R("text-purple-100 hover:bg-purple-muted-500","focus:bg-purple-muted-500 focus:text-purple-100",{"bg-purple-muted-500":W}),onSelect:U=>{U!==t&&(r==null||r(U===t?"":U)),x(!1)},children:[s.jsx(rr,{className:R("mr-2 h-4 w-4",{"opacity-100":W,"opacity-0":!W})}),N.label]},N.value)})})]})})]})})]})});ka.displayName="Combobox";const By=At("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 s.jsx("div",{"aria-disabled":n,"aria-active":o,className:R(By({variant:t,size:r}),e),...a})}function Rd({className:e,...t}){return s.jsx("div",{"data-slot":"card",className:R("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 Nd({className:e,...t}){return s.jsx("div",{"data-slot":"card-header",className:R("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 jd({className:e,...t}){return s.jsx("div",{"data-slot":"card-title",className:R("qodo qodo-card-title leading-none font-semibold",e),...t})}function Pd({className:e,...t}){return s.jsx("div",{"data-slot":"card-description",className:R("qodo qodo-card-description text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function Gy({className:e,...t}){return s.jsx("div",{"data-slot":"card-action",className:R("qodo qodo-card-action col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function Td({className:e,...t}){return s.jsx("div",{"data-slot":"card-content",className:R("qodo qodo-card-content px-6",e),...t})}function Wy({className:e,...t}){return s.jsx("div",{"data-slot":"card-footer",className:R("qodo qodo-card-footer flex items-center px-6 [.border-t]:pt-6",e),...t})}var Ra="Progress",Na=100,[zy,VR]=ye(Ra),[qy,Uy]=zy(Ra),_d=d.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:a=Hy,...i}=e;(o||o===0)&&!di(o)&&console.error(Ky(`${o}`,"Progress"));const l=di(o)?o:Na;n!==null&&!ui(n,l)&&console.error(Yy(`${n}`,"Progress"));const c=ui(n,l)?n:null,u=mn(c)?a(c,l):void 0;return s.jsx(qy,{scope:r,value:c,max:l,children:s.jsx(q.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":mn(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":Md(c,l),"data-value":c??void 0,"data-max":l,...i,ref:t})})});_d.displayName=Ra;var Ad="ProgressIndicator",Id=d.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=Uy(Ad,r);return s.jsx(q.div,{"data-state":Md(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});Id.displayName=Ad;function Hy(e,t){return`${Math.round(e/t*100)}%`}function Md(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function mn(e){return typeof e=="number"}function di(e){return mn(e)&&!isNaN(e)&&e>0}function ui(e,t){return mn(e)&&!isNaN(e)&&e<=t&&e>=0}function Ky(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Na}\`.`}function Yy(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
204
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},K0="DialogDescriptionWarning",Y0=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${kf(K0).contentName}}.`;return h.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Sf=cf,X0=df,Ef=pf,Pf=mf,Rf=hf,Z0=vf,J0=bf,Nf=wf,tr='[cmdk-group=""]',Ai='[cmdk-group-items=""]',Q0='[cmdk-group-heading=""]',Tf='[cmdk-item=""]',Xl=`${Tf}:not([aria-disabled="true"])`,pa="cmdk-item-select",Nn="data-value",eC=(e,t,n)=>L0(e,t,n),If=h.createContext(void 0),jr=()=>h.useContext(If),jf=h.createContext(void 0),Za=()=>h.useContext(jf),Af=h.createContext(void 0),_f=h.forwardRef((e,t)=>{let n=Tn(()=>{var A,w;return{search:"",value:(w=(A=e.value)!=null?A:e.defaultValue)!=null?w:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=Tn(()=>new Set),o=Tn(()=>new Map),i=Tn(()=>new Map),a=Tn(()=>new Set),s=Mf(e),{label:l,children:c,value:d,onValueChange:f,filter:m,shouldFilter:p,loop:v,disablePointerSelection:g=!1,vimBindings:x=!0,...y}=e,b=Ee(),k=Ee(),P=Ee(),N=h.useRef(null),S=dC();cn(()=>{if(d!==void 0){let A=d.trim();n.current.value=A,I.emit()}},[d]),cn(()=>{S(6,K)},[]);let I=h.useMemo(()=>({subscribe:A=>(a.current.add(A),()=>a.current.delete(A)),snapshot:()=>n.current,setState:(A,w,Y)=>{var X,z,D,ee;if(!Object.is(n.current[A],w)){if(n.current[A]=w,A==="search")V(),U(),S(1,G);else if(A==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let re=document.getElementById(P);re?re.focus():(X=document.getElementById(b))==null||X.focus()}if(S(7,()=>{var re;n.current.selectedItemId=(re=L())==null?void 0:re.id,I.emit()}),Y||S(5,K),((z=s.current)==null?void 0:z.value)!==void 0){let re=w??"";(ee=(D=s.current).onValueChange)==null||ee.call(D,re);return}}I.emit()}},emit:()=>{a.current.forEach(A=>A())}}),[]),j=h.useMemo(()=>({value:(A,w,Y)=>{var X;w!==((X=i.current.get(A))==null?void 0:X.value)&&(i.current.set(A,{value:w,keywords:Y}),n.current.filtered.items.set(A,q(w,Y)),S(2,()=>{U(),I.emit()}))},item:(A,w)=>(r.current.add(A),w&&(o.current.has(w)?o.current.get(w).add(A):o.current.set(w,new Set([A]))),S(3,()=>{V(),U(),n.current.value||G(),I.emit()}),()=>{i.current.delete(A),r.current.delete(A),n.current.filtered.items.delete(A);let Y=L();S(4,()=>{V(),(Y==null?void 0:Y.getAttribute("id"))===A&&G(),I.emit()})}),group:A=>(o.current.has(A)||o.current.set(A,new Set),()=>{i.current.delete(A),o.current.delete(A)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:b,inputId:P,labelId:k,listInnerRef:N}),[]);function q(A,w){var Y,X;let z=(X=(Y=s.current)==null?void 0:Y.filter)!=null?X:eC;return A?z(A,n.current.search,w):0}function U(){if(!n.current.search||s.current.shouldFilter===!1)return;let A=n.current.filtered.items,w=[];n.current.filtered.groups.forEach(X=>{let z=o.current.get(X),D=0;z.forEach(ee=>{let re=A.get(ee);D=Math.max(re,D)}),w.push([X,D])});let Y=N.current;T().sort((X,z)=>{var D,ee;let re=X.getAttribute("id"),ae=z.getAttribute("id");return((D=A.get(ae))!=null?D:0)-((ee=A.get(re))!=null?ee:0)}).forEach(X=>{let z=X.closest(Ai);z?z.appendChild(X.parentElement===z?X:X.closest(`${Ai} > *`)):Y.appendChild(X.parentElement===Y?X:X.closest(`${Ai} > *`))}),w.sort((X,z)=>z[1]-X[1]).forEach(X=>{var z;let D=(z=N.current)==null?void 0:z.querySelector(`${tr}[${Nn}="${encodeURIComponent(X[0])}"]`);D==null||D.parentElement.appendChild(D)})}function G(){let A=T().find(Y=>Y.getAttribute("aria-disabled")!=="true"),w=A==null?void 0:A.getAttribute(Nn);I.setState("value",w||void 0)}function V(){var A,w,Y,X;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let z=0;for(let D of r.current){let ee=(w=(A=i.current.get(D))==null?void 0:A.value)!=null?w:"",re=(X=(Y=i.current.get(D))==null?void 0:Y.keywords)!=null?X:[],ae=q(ee,re);n.current.filtered.items.set(D,ae),ae>0&&z++}for(let[D,ee]of o.current)for(let re of ee)if(n.current.filtered.items.get(re)>0){n.current.filtered.groups.add(D);break}n.current.filtered.count=z}function K(){var A,w,Y;let X=L();X&&(((A=X.parentElement)==null?void 0:A.firstChild)===X&&((Y=(w=X.closest(tr))==null?void 0:w.querySelector(Q0))==null||Y.scrollIntoView({block:"nearest"})),X.scrollIntoView({block:"nearest"}))}function L(){var A;return(A=N.current)==null?void 0:A.querySelector(`${Tf}[aria-selected="true"]`)}function T(){var A;return Array.from(((A=N.current)==null?void 0:A.querySelectorAll(Xl))||[])}function _(A){let w=T()[A];w&&I.setState("value",w.getAttribute(Nn))}function F(A){var w;let Y=L(),X=T(),z=X.findIndex(ee=>ee===Y),D=X[z+A];(w=s.current)!=null&&w.loop&&(D=z+A<0?X[X.length-1]:z+A===X.length?X[0]:X[z+A]),D&&I.setState("value",D.getAttribute(Nn))}function M(A){let w=L(),Y=w==null?void 0:w.closest(tr),X;for(;Y&&!X;)Y=A>0?cC(Y,tr):uC(Y,tr),X=Y==null?void 0:Y.querySelector(Xl);X?I.setState("value",X.getAttribute(Nn)):F(A)}let B=()=>_(T().length-1),C=A=>{A.preventDefault(),A.metaKey?B():A.altKey?M(1):F(1)},Q=A=>{A.preventDefault(),A.metaKey?_(0):A.altKey?M(-1):F(-1)};return h.createElement(te.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:A=>{var w;(w=y.onKeyDown)==null||w.call(y,A);let Y=A.nativeEvent.isComposing||A.keyCode===229;if(!(A.defaultPrevented||Y))switch(A.key){case"n":case"j":{x&&A.ctrlKey&&C(A);break}case"ArrowDown":{C(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(),B();break}case"Enter":{A.preventDefault();let X=L();if(X){let z=new Event(pa);X.dispatchEvent(z)}}}}},h.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:pC},l),Wo(e,A=>h.createElement(jf.Provider,{value:I},h.createElement(If.Provider,{value:j},A))))}),tC=h.forwardRef((e,t)=>{var n,r;let o=Ee(),i=h.useRef(null),a=h.useContext(Af),s=jr(),l=Mf(e),c=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:a==null?void 0:a.forceMount;cn(()=>{if(!c)return s.item(o,a==null?void 0:a.id)},[c]);let d=Of(o,i,[e.value,e.children,i],e.keywords),f=Za(),m=Vt(S=>S.value&&S.value===d.current),p=Vt(S=>c||s.filter()===!1?!0:S.search?S.filtered.items.get(o)>0:!0);h.useEffect(()=>{let S=i.current;if(!(!S||e.disabled))return S.addEventListener(pa,v),()=>S.removeEventListener(pa,v)},[p,e.onSelect,e.disabled]);function v(){var S,I;g(),(I=(S=l.current).onSelect)==null||I.call(S,d.current)}function g(){f.setState("value",d.current,!0)}if(!p)return null;let{disabled:x,value:y,onSelect:b,forceMount:k,keywords:P,...N}=e;return h.createElement(te.div,{ref:Tt(i,t),...N,id:o,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!m,"data-disabled":!!x,"data-selected":!!m,onPointerMove:x||s.getDisablePointerSelection()?void 0:g,onClick:x?void 0:v},e.children)}),nC=h.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,a=Ee(),s=h.useRef(null),l=h.useRef(null),c=Ee(),d=jr(),f=Vt(p=>o||d.filter()===!1?!0:p.search?p.filtered.groups.has(a):!0);cn(()=>d.group(a),[]),Of(a,s,[e.value,e.heading,l]);let m=h.useMemo(()=>({id:a,forceMount:o}),[o]);return h.createElement(te.div,{ref:Tt(s,t),...i,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&h.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),Wo(e,p=>h.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},h.createElement(Af.Provider,{value:m},p))))}),rC=h.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=h.useRef(null),i=Vt(a=>!a.search);return!n&&!i?null:h.createElement(te.div,{ref:Tt(o,t),...r,"cmdk-separator":"",role:"separator"})}),oC=h.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,i=Za(),a=Vt(c=>c.search),s=Vt(c=>c.selectedItemId),l=jr();return h.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),h.createElement(te.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?e.value:a,onChange:c=>{o||i.setState("search",c.target.value),n==null||n(c.target.value)}})}),iC=h.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=h.useRef(null),a=h.useRef(null),s=Vt(c=>c.selectedItemId),l=jr();return h.useEffect(()=>{if(a.current&&i.current){let c=a.current,d=i.current,f,m=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let p=c.offsetHeight;d.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return m.observe(c),()=>{cancelAnimationFrame(f),m.unobserve(c)}}},[]),h.createElement(te.div,{ref:Tt(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},Wo(e,c=>h.createElement("div",{ref:Tt(a,l.listInnerRef),"cmdk-list-sizer":""},c)))}),aC=h.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...s}=e;return h.createElement(Sf,{open:n,onOpenChange:r},h.createElement(Ef,{container:a},h.createElement(Pf,{"cmdk-overlay":"",className:o}),h.createElement(Rf,{"aria-label":e.label,"cmdk-dialog":"",className:i},h.createElement(_f,{ref:t,...s}))))}),sC=h.forwardRef((e,t)=>Vt(n=>n.filtered.count===0)?h.createElement(te.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),lC=h.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return h.createElement(te.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Wo(e,a=>h.createElement("div",{"aria-hidden":!0},a)))}),pn=Object.assign(_f,{List:iC,Item:tC,Input:oC,Group:nC,Separator:rC,Dialog:aC,Empty:sC,Loading:lC});function cC(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function uC(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Mf(e){let t=h.useRef(e);return cn(()=>{t.current=e}),t}var cn=typeof window>"u"?h.useEffect:h.useLayoutEffect;function Tn(e){let t=h.useRef();return t.current===void 0&&(t.current=e()),t}function Vt(e){let t=Za(),n=()=>e(t.snapshot());return h.useSyncExternalStore(t.subscribe,n,n)}function Of(e,t,n,r=[]){let o=h.useRef(),i=jr();return cn(()=>{var a;let s=(()=>{var c;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(c=d.current.textContent)==null?void 0:c.trim():o.current}})(),l=r.map(c=>c.trim());i.value(e,s,l),(a=t.current)==null||a.setAttribute(Nn,s),o.current=s}),o}var dC=()=>{let[e,t]=h.useState(),n=Tn(()=>new Map);return cn(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function fC(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Wo({asChild:e,children:t},n){return e&&h.isValidElement(t)?h.cloneElement(fC(t),{ref:t.ref},n(t.props.children)):n(t)}var pC={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function mC({...e}){return u.jsx(Sf,{"data-slot":"dialog",...e})}function hC({...e}){return u.jsx(X0,{"data-slot":"dialog-trigger",...e})}function Df({...e}){return u.jsx(Ef,{"data-slot":"dialog-portal",...e})}function gC({...e}){return u.jsx(Nf,{"data-slot":"dialog-close",...e})}function Lf({className:e,...t}){return u.jsx(Pf,{"data-slot":"dialog-overlay",className:O("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 vC({className:e,children:t,showCloseButton:n=!0,...r}){return u.jsxs(Df,{"data-slot":"dialog-portal",children:[u.jsx(Lf,{}),u.jsxs(Rf,{"data-slot":"dialog-content",className:O("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),...r,children:[t,n&&u.jsxs(Nf,{"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:[u.jsx(Io,{}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function xC({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-header",className:O("qodo qodo-dialog-header flex flex-col gap-2 text-center sm:text-left",e),...t})}function bC({className:e,...t}){return u.jsx("div",{"data-slot":"dialog-footer",className:O("qodo qodo-dialog-footer flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function yC({className:e,...t}){return u.jsx(Z0,{"data-slot":"dialog-title",className:O("qodo qodo-dialog-title text-lg leading-none font-semibold",e),...t})}function wC({className:e,...t}){return u.jsx(J0,{"data-slot":"dialog-description",className:O("qodo qodo-dialog-description text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function Ff({className:e,...t}){return u.jsx(pn,{"data-slot":"command",className:O("qodo qodo-command bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function $f({className:e,...t}){return u.jsxs("div",{"data-slot":"command-input-wrapper",className:O("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:[u.jsx(Ou,{className:"size-4 shrink-0 text-purple-muted-300"}),u.jsx(pn.Input,{"data-slot":"command-input",className:O("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 zf({className:e,...t}){return u.jsx(pn.List,{"data-slot":"command-list",className:O("qodo qodo-command-list max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function Bf({...e}){return u.jsx(pn.Empty,{"data-slot":"command-empty",className:O("qodo qodo-command-empty","py-6 text-center text-sm text-purple-muted-300"),...e})}function CC({className:e,...t}){return u.jsx(pn.Loading,{"data-slot":"command-loading",className:O("qodo qodo-command-loading","py-6 text-center text-sm text-purple-muted-300",e),...t})}function Vf({className:e,...t}){return u.jsx(pn.Group,{"data-slot":"command-group",className:O("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 qf({className:e,...t}){return u.jsx(pn.Item,{"data-slot":"command-item",className:O("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})}var Ko="Popover",[Gf,Q_]=Ae(Ko,[qt]),Ar=qt(),[kC,Ht]=Gf(Ko),Uf=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Ar(t),l=h.useRef(null),[c,d]=h.useState(!1),[f,m]=je({prop:r,defaultProp:o??!1,onChange:i,caller:Ko});return u.jsx(Nr,{...s,children:u.jsx(kC,{scope:t,contentId:Ee(),triggerRef:l,open:f,onOpenChange:m,onOpenToggle:h.useCallback(()=>m(p=>!p),[m]),hasCustomAnchor:c,onCustomAnchorAdd:h.useCallback(()=>d(!0),[]),onCustomAnchorRemove:h.useCallback(()=>d(!1),[]),modal:a,children:n})})};Uf.displayName=Ko;var Hf="PopoverAnchor",SC=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ht(Hf,n),i=Ar(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return h.useEffect(()=>(a(),()=>s()),[a,s]),u.jsx(Tr,{...i,...r,ref:t})});SC.displayName=Hf;var Wf="PopoverTrigger",Kf=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ht(Wf,n),i=Ar(n),a=de(t,o.triggerRef),s=u.jsx(te.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Qf(o.open),...r,ref:a,onClick:J(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:u.jsx(Tr,{asChild:!0,...i,children:s})});Kf.displayName=Wf;var Ja="PopoverPortal",[EC,PC]=Gf(Ja,{forceMount:void 0}),Yf=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=Ht(Ja,t);return u.jsx(EC,{scope:t,forceMount:n,children:u.jsx(Oe,{present:n||i.open,children:u.jsx(Un,{asChild:!0,container:o,children:r})})})};Yf.displayName=Ja;var Dn="PopoverContent",Xf=h.forwardRef((e,t)=>{const n=PC(Dn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Ht(Dn,e.__scopePopover);return u.jsx(Oe,{present:r||i.open,children:i.modal?u.jsx(NC,{...o,ref:t}):u.jsx(TC,{...o,ref:t})})});Xf.displayName=Dn;var RC=$t("PopoverContent.RemoveScroll"),NC=h.forwardRef((e,t)=>{const n=Ht(Dn,e.__scopePopover),r=h.useRef(null),o=de(t,r),i=h.useRef(!1);return h.useEffect(()=>{const a=r.current;if(a)return Bo(a)},[]),u.jsx(Ir,{as:RC,allowPinchZoom:!0,children:u.jsx(Zf,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:J(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:J(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:J(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),TC=h.forwardRef((e,t)=>{const n=Ht(Dn,e.__scopePopover),r=h.useRef(!1),o=h.useRef(!1);return u.jsx(Zf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Zf=h.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:d,...f}=e,m=Ht(Dn,n),p=Ar(n);return Ao(),u.jsx(Pr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:u.jsx(Vn,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>m.onOpenChange(!1),children:u.jsx(Fo,{"data-state":Qf(m.open),role:"dialog",id:m.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Jf="PopoverClose",IC=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ht(Jf,n);return u.jsx(te.button,{type:"button",...r,ref:t,onClick:J(e.onClick,()=>o.onOpenChange(!1))})});IC.displayName=Jf;var jC="PopoverArrow",AC=h.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Ar(n);return u.jsx($o,{...o,...r,ref:t})});AC.displayName=jC;function Qf(e){return e?"open":"closed"}var _C=Uf,MC=Kf,OC=Yf,DC=Xf;function Qa({...e}){return u.jsx(_C,{"data-slot":"popover",...e})}function es({...e}){return u.jsx(MC,{"data-slot":"popover-trigger",...e})}function ts({className:e,align:t="center",sideOffset:n=4,...r}){return u.jsx(OC,{children:u.jsx(DC,{"data-slot":"popover-content",align:t,sideOffset:n,className:O("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),...r})})}const ns=h.forwardRef(({options:e,value:t,onValueChange:n,placeholder:r="Select option...",searchPlaceholder:o="Search...",emptyText:i="No option found.",disabled:a=!1,readOnly:s=!1,error:l=!1,className:c,onSearchChange:d,isLoading:f=!1,loadingText:m="Loading...",...p},v)=>{const[g,x]=h.useState(!1),[y,b]=h.useState(""),[k,P]=h.useState(0),N=h.useRef(null),S=e.find(j=>j.value===t),I=j=>{b(j),d==null||d(j)};return h.useEffect(()=>{N.current&&P(N.current.offsetWidth)},[]),u.jsxs(Qa,{open:s?!1:g,onOpenChange:x,children:[u.jsx(es,{asChild:!0,children:u.jsxs(Nt,{ref:j=>{typeof v=="function"?v(j):v&&(v.current=j),N.current=j},variant:"outline",role:"combobox","aria-expanded":g,"aria-invalid":l||void 0,"data-readonly":s||void 0,className:O("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":!S},c),disabled:a,...p,children:[S?S.label:r,u.jsx(Vx,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),u.jsx(ts,{className:"p-0 border bg-[var(--fill-interactive-neutral-idle)] border-purple-muted-500 text-purple-muted-300",style:{width:k>0?`${k}px`:"auto"},children:u.jsxs(Ff,{className:"w-full bg-[var(--fill-interactive-neutral-idle)]",shouldFilter:!d,children:[u.jsx($f,{placeholder:o,...!!d&&{value:y,onValueChange:I}}),u.jsx(zf,{children:f?u.jsx(CC,{children:m}):u.jsxs(u.Fragment,{children:[u.jsx(Bf,{className:"flex justify-center items-center p-6 text-center text-sm text-purple-muted-300",children:i}),u.jsx(Vf,{children:e.map(j=>{const q=t===j.value;return u.jsxs(qf,{value:j.value,keywords:[j.label],disabled:j.disabled,className:O("text-purple-100 hover:bg-purple-muted-500","focus:bg-purple-muted-500 focus:text-purple-100",{"bg-purple-muted-500":q}),onSelect:U=>{U!==t&&(n==null||n(U===t?"":U)),x(!1)},children:[u.jsx(Bn,{className:O("mr-2 h-4 w-4",{"opacity-100":q,"opacity-0":!q})}),j.label]},j.value)})})]})})]})})]})});ns.displayName="Combobox";const LC=dn("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 Ln({className:e,variant:t,size:n,disabled:r=!1,active:o=!1,...i}){return u.jsx("div",{"aria-disabled":r,"aria-active":o,className:O(LC({variant:t,size:n}),e),...i})}function ep({className:e,...t}){return u.jsx("div",{"data-slot":"card",className:O("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 tp({className:e,...t}){return u.jsx("div",{"data-slot":"card-header",className:O("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 np({className:e,...t}){return u.jsx("div",{"data-slot":"card-title",className:O("qodo qodo-card-title leading-none font-semibold",e),...t})}function rp({className:e,...t}){return u.jsx("div",{"data-slot":"card-description",className:O("qodo qodo-card-description text-muted-foreground text-sm dark:text-muted-foreground",e),...t})}function FC({className:e,...t}){return u.jsx("div",{"data-slot":"card-action",className:O("qodo qodo-card-action col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function op({className:e,...t}){return u.jsx("div",{"data-slot":"card-content",className:O("qodo qodo-card-content px-6",e),...t})}function $C({className:e,...t}){return u.jsx("div",{"data-slot":"card-footer",className:O("qodo qodo-card-footer flex items-center px-6 [.border-t]:pt-6",e),...t})}var rs="Progress",os=100,[zC,e2]=Ae(rs),[BC,VC]=zC(rs),ip=h.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=qC,...a}=e;(o||o===0)&&!Zl(o)&&console.error(GC(`${o}`,"Progress"));const s=Zl(o)?o:os;r!==null&&!Jl(r,s)&&console.error(UC(`${r}`,"Progress"));const l=Jl(r,s)?r:null,c=vo(l)?i(l,s):void 0;return u.jsx(BC,{scope:n,value:l,max:s,children:u.jsx(te.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":vo(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":lp(l,s),"data-value":l??void 0,"data-max":s,...a,ref:t})})});ip.displayName=rs;var ap="ProgressIndicator",sp=h.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=VC(ap,n);return u.jsx(te.div,{"data-state":lp(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});sp.displayName=ap;function qC(e,t){return`${Math.round(e/t*100)}%`}function lp(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function vo(e){return typeof e=="number"}function Zl(e){return vo(e)&&!isNaN(e)&&e>0}function Jl(e,t){return vo(e)&&!isNaN(e)&&e<=t&&e>=0}function GC(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${os}\`.`}function UC(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
205
205
  - a positive number
206
- - less than the value passed to \`max\` (or ${Na} if no \`max\` prop is set)
206
+ - less than the value passed to \`max\` (or ${os} if no \`max\` prop is set)
207
207
  - \`null\` or \`undefined\` if the progress is indeterminate.
208
208
 
209
- Defaulting to \`null\`.`}var Xy=_d,Zy=Id;function Jy({className:e,value:t,...r}){return s.jsx(Xy,{"data-slot":"progress",className:R("qodo qodo-progress bg-primary/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-primary/20",e),...r,children:s.jsx(Zy,{"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 Od({className:e,...t}){return s.jsx("div",{className:R("qodo qodo-skeleton animate-pulse rounded-md bg-neutral-900/10 dark:bg-neutral-50/10",e),...t})}var zn="Switch",[Qy,BR]=ye(zn),[ew,tw]=Qy(zn),Dd=d.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:a,required:i,disabled:l,value:c="on",onCheckedChange:u,form:f,...p}=e,[g,m]=d.useState(null),b=ae(t,C=>m(C)),v=d.useRef(!1),x=g?f||!!g.closest("form"):!0,[y,h]=be({prop:o,defaultProp:a??!1,onChange:u,caller:zn});return s.jsxs(ew,{scope:r,checked:y,disabled:l,children:[s.jsx(q.button,{type:"button",role:"switch","aria-checked":y,"aria-required":i,"data-state":Vd(y),"data-disabled":l?"":void 0,disabled:l,value:c,...p,ref:b,onClick:F(e.onClick,C=>{h(E=>!E),x&&(v.current=C.isPropagationStopped(),v.current||C.stopPropagation())})}),x&&s.jsx(Fd,{control:g,bubbles:!v.current,name:n,value:c,checked:y,required:i,disabled:l,form:f,style:{transform:"translateX(-100%)"}})]})});Dd.displayName=zn;var $d="SwitchThumb",Ld=d.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=tw($d,r);return s.jsx(q.span,{"data-state":Vd(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});Ld.displayName=$d;var rw="SwitchBubbleInput",Fd=d.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const i=d.useRef(null),l=ae(i,a),c=On(r),u=An(t);return d.useEffect(()=>{const f=i.current;if(!f)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&m){const b=new Event("click",{bubbles:n});m.call(f,r),f.dispatchEvent(b)}},[c,r,n]),s.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}})});Fd.displayName=rw;function Vd(e){return e?"checked":"unchecked"}var nw=Dd,ow=Ld;const aw=At("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"}}),sw=At("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 iw({className:e,size:t,...r}){return s.jsx(nw,{"data-slot":"switch",className:R(aw({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:s.jsx(ow,{"data-slot":"switch-thumb",className:R(sw({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 Bd="Toggle",ja=d.forwardRef((e,t)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=e,[i,l]=be({prop:r,onChange:o,defaultProp:n??!1,caller:Bd});return s.jsx(q.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:F(e.onClick,()=>{e.disabled||l(!i)})})});ja.displayName=Bd;var lw=ja;const Gd=At("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 cw({className:e,variant:t,size:r,...n}){return s.jsx(lw,{"data-slot":"toggle",className:R(Gd({variant:t,size:r,className:e})),...n})}var ko="rovingFocusGroup.onEntryFocus",dw={bubbles:!1,cancelable:!0},$r="RovingFocusGroup",[Ho,Wd,uw]=Rn($r),[fw,xt]=ye($r,[uw]),[pw,mw]=fw($r),zd=d.forwardRef((e,t)=>s.jsx(Ho.Provider,{scope:e.__scopeRovingFocusGroup,children:s.jsx(Ho.Slot,{scope:e.__scopeRovingFocusGroup,children:s.jsx(gw,{...e,ref:t})})}));zd.displayName=$r;var gw=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...p}=e,g=d.useRef(null),m=ae(t,g),b=It(a),[v,x]=be({prop:i,defaultProp:l??null,onChange:c,caller:$r}),[y,h]=d.useState(!1),C=De(u),E=Wd(r),j=d.useRef(!1),[_,P]=d.useState(0);return d.useEffect(()=>{const N=g.current;if(N)return N.addEventListener(ko,C),()=>N.removeEventListener(ko,C)},[C]),s.jsx(pw,{scope:r,orientation:n,dir:b,loop:o,currentTabStopId:v,onItemFocus:d.useCallback(N=>x(N),[x]),onItemShiftTab:d.useCallback(()=>h(!0),[]),onFocusableItemAdd:d.useCallback(()=>P(N=>N+1),[]),onFocusableItemRemove:d.useCallback(()=>P(N=>N-1),[]),children:s.jsx(q.div,{tabIndex:y||_===0?-1:0,"data-orientation":n,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:F(e.onMouseDown,()=>{j.current=!0}),onFocus:F(e.onFocus,N=>{const W=!j.current;if(N.target===N.currentTarget&&W&&!y){const U=new CustomEvent(ko,dw);if(N.currentTarget.dispatchEvent(U),!U.defaultPrevented){const re=E().filter(I=>I.focusable),te=re.find(I=>I.active),Q=re.find(I=>I.id===v),O=[te,Q,...re].filter(Boolean).map(I=>I.ref.current);Hd(O,f)}}j.current=!1}),onBlur:F(e.onBlur,()=>h(!1))})})}),qd="RovingFocusGroupItem",Ud=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...l}=e,c=me(),u=a||c,f=mw(qd,r),p=f.currentTabStopId===u,g=Wd(r),{onFocusableItemAdd:m,onFocusableItemRemove:b,currentTabStopId:v}=f;return d.useEffect(()=>{if(n)return m(),()=>b()},[n,m,b]),s.jsx(Ho.ItemSlot,{scope:r,id:u,focusable:n,active:o,children:s.jsx(q.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:F(e.onMouseDown,x=>{n?f.onItemFocus(u):x.preventDefault()}),onFocus:F(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:F(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){f.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const y=xw(x,f.orientation,f.dir);if(y!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let C=g().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(x.currentTarget);C=f.loop?bw(C,E+1):C.slice(E+1)}setTimeout(()=>Hd(C))}}),children:typeof i=="function"?i({isCurrentTabStop:p,hasTabStop:v!=null}):i})})});Ud.displayName=qd;var vw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hw(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xw(e,t,r){const n=hw(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return vw[n]}function Hd(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function bw(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var qn=zd,Un=Ud,bt="ToggleGroup",[Kd,GR]=ye(bt,[xt]),Yd=xt(),Pa=S.forwardRef((e,t)=>{const{type:r,...n}=e;if(r==="single"){const o=n;return s.jsx(yw,{...o,ref:t})}if(r==="multiple"){const o=n;return s.jsx(ww,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${bt}\``)});Pa.displayName=bt;var[Xd,Zd]=Kd(bt),yw=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,l]=be({prop:r,defaultProp:n??"",onChange:o,caller:bt});return s.jsx(Xd,{scope:e.__scopeToggleGroup,type:"single",value:S.useMemo(()=>i?[i]:[],[i]),onItemActivate:l,onItemDeactivate:S.useCallback(()=>l(""),[l]),children:s.jsx(Jd,{...a,ref:t})})}),ww=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,l]=be({prop:r,defaultProp:n??[],onChange:o,caller:bt}),c=S.useCallback(f=>l((p=[])=>[...p,f]),[l]),u=S.useCallback(f=>l((p=[])=>p.filter(g=>g!==f)),[l]);return s.jsx(Xd,{scope:e.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:c,onItemDeactivate:u,children:s.jsx(Jd,{...a,ref:t})})});Pa.displayName=bt;var[Cw,Sw]=Kd(bt),Jd=S.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:l=!0,...c}=e,u=Yd(r),f=It(i),p={role:"group",dir:f,...c};return s.jsx(Cw,{scope:r,rovingFocus:o,disabled:n,children:o?s.jsx(qn,{asChild:!0,...u,orientation:a,dir:f,loop:l,children:s.jsx(q.div,{...p,ref:t})}):s.jsx(q.div,{...p,ref:t})})}),gn="ToggleGroupItem",Qd=S.forwardRef((e,t)=>{const r=Zd(gn,e.__scopeToggleGroup),n=Sw(gn,e.__scopeToggleGroup),o=Yd(e.__scopeToggleGroup),a=r.value.includes(e.value),i=n.disabled||e.disabled,l={...e,pressed:a,disabled:i},c=S.useRef(null);return n.rovingFocus?s.jsx(Un,{asChild:!0,...o,focusable:!i,active:a,ref:c,children:s.jsx(fi,{...l,ref:t})}):s.jsx(fi,{...l,ref:t})});Qd.displayName=gn;var fi=S.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,a=Zd(gn,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l=a.type==="single"?i:void 0;return s.jsx(ja,{...l,...o,ref:t,onPressedChange:c=>{c?a.onItemActivate(n):a.onItemDeactivate(n)}})}),Ew=Pa,kw=Qd;const eu=d.createContext({size:"default",variant:"default"});function Rw({className:e,variant:t,size:r,children:n,...o}){return s.jsx(Ew,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:R("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:s.jsx(eu.Provider,{value:{variant:t,size:r},children:n})})}function Nw({className:e,children:t,variant:r,size:n,...o}){const a=d.useContext(eu);return s.jsx(kw,{"data-slot":"toggle-group-item","data-variant":a.variant||r,"data-size":a.size||n,className:R(Gd({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 Hn="Collapsible",[jw,tu]=ye(Hn),[Pw,Ta]=jw(Hn),ru=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:i,...l}=e,[c,u]=be({prop:n,defaultProp:o??!1,onChange:i,caller:Hn});return s.jsx(Pw,{scope:r,disabled:a,contentId:me(),open:c,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),children:s.jsx(q.div,{"data-state":Aa(c),"data-disabled":a?"":void 0,...l,ref:t})})});ru.displayName=Hn;var nu="CollapsibleTrigger",ou=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Ta(nu,r);return s.jsx(q.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Aa(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:F(e.onClick,o.onOpenToggle)})});ou.displayName=nu;var _a="CollapsibleContent",au=d.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Ta(_a,e.__scopeCollapsible);return s.jsx(Ce,{present:r||o.open,children:({present:a})=>s.jsx(Tw,{...n,ref:t,present:a})})});au.displayName=_a;var Tw=d.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,i=Ta(_a,r),[l,c]=d.useState(n),u=d.useRef(null),f=ae(t,u),p=d.useRef(0),g=p.current,m=d.useRef(0),b=m.current,v=i.open||l,x=d.useRef(v),y=d.useRef(void 0);return d.useEffect(()=>{const h=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(h)},[]),we(()=>{const h=u.current;if(h){y.current=y.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const C=h.getBoundingClientRect();p.current=C.height,m.current=C.width,x.current||(h.style.transitionDuration=y.current.transitionDuration,h.style.animationName=y.current.animationName),c(n)}},[i.open,n]),s.jsx(q.div,{"data-state":Aa(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v,...a,ref:f,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:v&&o})});function Aa(e){return e?"open":"closed"}var _w=ru,Aw=ou,Iw=au,Ve="Accordion",Mw=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ia,Ow,Dw]=Rn(Ve),[Kn,WR]=ye(Ve,[Dw,tu]),Ma=tu(),su=S.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,a=n;return s.jsx(Ia.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?s.jsx(Vw,{...a,ref:t}):s.jsx(Fw,{...o,ref:t})})});su.displayName=Ve;var[iu,$w]=Kn(Ve),[lu,Lw]=Kn(Ve,{collapsible:!1}),Fw=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:a=!1,...i}=e,[l,c]=be({prop:r,defaultProp:n??"",onChange:o,caller:Ve});return s.jsx(iu,{scope:e.__scopeAccordion,value:S.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:S.useCallback(()=>a&&c(""),[a,c]),children:s.jsx(lu,{scope:e.__scopeAccordion,collapsible:a,children:s.jsx(cu,{...i,ref:t})})})}),Vw=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=e,[i,l]=be({prop:r,defaultProp:n??[],onChange:o,caller:Ve}),c=S.useCallback(f=>l((p=[])=>[...p,f]),[l]),u=S.useCallback(f=>l((p=[])=>p.filter(g=>g!==f)),[l]);return s.jsx(iu,{scope:e.__scopeAccordion,value:i,onItemOpen:c,onItemClose:u,children:s.jsx(lu,{scope:e.__scopeAccordion,collapsible:!0,children:s.jsx(cu,{...a,ref:t})})})}),[Bw,Yn]=Kn(Ve),cu=S.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:a="vertical",...i}=e,l=S.useRef(null),c=ae(l,t),u=Ow(r),p=It(o)==="ltr",g=F(e.onKeyDown,m=>{var N;if(!Mw.includes(m.key))return;const b=m.target,v=u().filter(W=>{var U;return!((U=W.ref.current)!=null&&U.disabled)}),x=v.findIndex(W=>W.ref.current===b),y=v.length;if(x===-1)return;m.preventDefault();let h=x;const C=0,E=y-1,j=()=>{h=x+1,h>E&&(h=C)},_=()=>{h=x-1,h<C&&(h=E)};switch(m.key){case"Home":h=C;break;case"End":h=E;break;case"ArrowRight":a==="horizontal"&&(p?j():_());break;case"ArrowDown":a==="vertical"&&j();break;case"ArrowLeft":a==="horizontal"&&(p?_():j());break;case"ArrowUp":a==="vertical"&&_();break}const P=h%y;(N=v[P].ref.current)==null||N.focus()});return s.jsx(Bw,{scope:r,disabled:n,direction:o,orientation:a,children:s.jsx(Ia.Slot,{scope:r,children:s.jsx(q.div,{...i,"data-orientation":a,ref:c,onKeyDown:n?void 0:g})})})}),vn="AccordionItem",[Gw,Oa]=Kn(vn),du=S.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,a=Yn(vn,r),i=$w(vn,r),l=Ma(r),c=me(),u=n&&i.value.includes(n)||!1,f=a.disabled||e.disabled;return s.jsx(Gw,{scope:r,open:u,disabled:f,triggerId:c,children:s.jsx(_w,{"data-orientation":a.orientation,"data-state":vu(u),...l,...o,ref:t,disabled:f,open:u,onOpenChange:p=>{p?i.onItemOpen(n):i.onItemClose(n)}})})});du.displayName=vn;var uu="AccordionHeader",fu=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Yn(Ve,r),a=Oa(uu,r);return s.jsx(q.h3,{"data-orientation":o.orientation,"data-state":vu(a.open),"data-disabled":a.disabled?"":void 0,...n,ref:t})});fu.displayName=uu;var Ko="AccordionTrigger",pu=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Yn(Ve,r),a=Oa(Ko,r),i=Lw(Ko,r),l=Ma(r);return s.jsx(Ia.ItemSlot,{scope:r,children:s.jsx(Aw,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...l,...n,ref:t})})});pu.displayName=Ko;var mu="AccordionContent",gu=S.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=Yn(Ve,r),a=Oa(mu,r),i=Ma(r);return s.jsx(Iw,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});gu.displayName=mu;function vu(e){return e?"open":"closed"}var Ww=su,zw=du,qw=fu,Uw=pu,Hw=gu;const Da=d.createContext({variant:"default"});function Kw({variant:e="default",...t}){return s.jsx(Da.Provider,{value:{variant:e},children:s.jsx(Ww,{"data-slot":"accordion",...t})})}function Yw({className:e,...t}){const{variant:r}=d.useContext(Da);return s.jsx(zw,{"data-slot":"accordion-item",className:R("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 Xw({className:e,children:t,iconPosition:r="right",...n}){const{variant:o}=d.useContext(Da);return s.jsx(qw,{className:"flex",children:s.jsxs(Uw,{"data-slot":"accordion-trigger",className:R("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,s.jsx(En,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200 dark:text-muted-foreground"})]})})}function Zw({className:e,children:t,...r}){return s.jsx(Hw,{"data-slot":"accordion-content",className:R("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:s.jsx("div",{className:R("pt-0 pb-4","text-text-interactive-neutral-idle font-normal text-sm",e),children:t})})}var Xn="Tabs",[Jw,zR]=ye(Xn,[xt]),hu=xt(),[Qw,$a]=Jw(Xn),xu=d.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:c="automatic",...u}=e,f=It(l),[p,g]=be({prop:n,onChange:o,defaultProp:a??"",caller:Xn});return s.jsx(Qw,{scope:r,baseId:me(),value:p,onValueChange:g,orientation:i,dir:f,activationMode:c,children:s.jsx(q.div,{dir:f,"data-orientation":i,...u,ref:t})})});xu.displayName=Xn;var bu="TabsList",yu=d.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,a=$a(bu,r),i=hu(r);return s.jsx(qn,{asChild:!0,...i,orientation:a.orientation,dir:a.dir,loop:n,children:s.jsx(q.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});yu.displayName=bu;var wu="TabsTrigger",Cu=d.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...a}=e,i=$a(wu,r),l=hu(r),c=ku(i.baseId,n),u=Ru(i.baseId,n),f=n===i.value;return s.jsx(Un,{asChild:!0,...l,focusable:!o,active:f,children:s.jsx(q.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:F(e.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?i.onValueChange(n):p.preventDefault()}),onKeyDown:F(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&i.onValueChange(n)}),onFocus:F(e.onFocus,()=>{const p=i.activationMode!=="manual";!f&&!o&&p&&i.onValueChange(n)})})})});Cu.displayName=wu;var Su="TabsContent",Eu=d.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:a,...i}=e,l=$a(Su,r),c=ku(l.baseId,n),u=Ru(l.baseId,n),f=n===l.value,p=d.useRef(f);return d.useEffect(()=>{const g=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(g)},[]),s.jsx(Ce,{present:o||f,children:({present:g})=>s.jsx(q.div,{"data-state":f?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!g,id:u,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:g&&a})})});Eu.displayName=Su;function ku(e,t){return`${e}-trigger-${t}`}function Ru(e,t){return`${e}-content-${t}`}var e0=xu,t0=yu,r0=Cu,n0=Eu;function o0({className:e,...t}){return s.jsx(e0,{"data-slot":"tabs",className:R("qodo qodo-tabs flex flex-col gap-2",e),...t})}function a0({className:e,...t}){return s.jsx(t0,{"data-slot":"tabs-list",className:R("inline-flex w-full items-end justify-start gap-4",e),...t})}function s0({className:e,...t}){return s.jsx(r0,{"data-slot":"tabs-trigger",className:R("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 i0({className:e,...t}){return s.jsx(n0,{"data-slot":"tabs-content",className:R("flex-1 outline-none",e),...t})}const Nu=At("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"}}),ju=d.forwardRef(({className:e,variant:t,as:r,...n},o)=>{const a=r||l0(t)||"p";return d.createElement(a,{className:R(Nu({variant:t,className:e})),ref:o,...n})});ju.displayName="Typography";function l0(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 c0=e=>e.type==="checkbox",vr=e=>e instanceof Date,La=e=>e==null;const Pu=e=>typeof e=="object";var _t=e=>!La(e)&&!Array.isArray(e)&&Pu(e)&&!vr(e),d0=e=>_t(e)&&e.target?c0(e.target)?e.target.checked:e.target.value:e,u0=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,f0=(e,t)=>e.has(u0(t)),p0=e=>{const t=e.constructor&&e.constructor.prototype;return _t(t)&&t.hasOwnProperty("isPrototypeOf")},m0=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Tu(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(m0&&(e instanceof Blob||n))&&(r||_t(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!p0(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=Tu(e[o]));else return e;return t}var _u=e=>/^\w*$/.test(e),Yo=e=>e===void 0,g0=e=>Array.isArray(e)?e.filter(Boolean):[],Au=e=>g0(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ne=(e,t,r)=>{if(!t||!_t(e))return r;const n=(_u(t)?[t]:Au(t)).reduce((o,a)=>La(o)?o:o[a],e);return Yo(n)||n===e?Yo(e[t])?r:e[t]:n},Ro=e=>typeof e=="boolean",pi=(e,t,r)=>{let n=-1;const o=_u(t)?[t]:Au(t),a=o.length,i=a-1;for(;++n<a;){const l=o[n];let c=r;if(n!==i){const u=e[l];c=_t(u)||Array.isArray(u)?u:isNaN(+o[n+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const mi={BLUR:"blur",CHANGE:"change"},gi={all:"all"},Fa=S.createContext(null);Fa.displayName="HookFormContext";const lr=()=>S.useContext(Fa),v0=e=>{const{children:t,...r}=e;return S.createElement(Fa.Provider,{value:r},t)};var h0=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==gi.all&&(t._proxyFormState[i]=!n||gi.all),r&&(r[i]=!0),e[i]}});return o};const Iu=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Mu(e){const t=lr(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,l]=S.useState(r._formState),c=S.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Iu(()=>r._subscribe({name:o,formState:c.current,exact:a,callback:u=>{!n&&l({...r._formState,...u})}}),[o,n,a]),S.useEffect(()=>{c.current.isValid&&r._setValid(!0)},[r]),S.useMemo(()=>h0(i,r,c.current,!1),[i,r])}var x0=e=>typeof e=="string",b0=(e,t,r,n,o)=>x0(e)?Ne(r,e,o):Array.isArray(e)?e.map(a=>Ne(r,a)):r,vi=e=>La(e)||!Pu(e);function Ou(e,t,r=new WeakSet){if(vi(e)||vi(t))return e===t;if(vr(e)&&vr(t))return 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 i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const l=t[a];if(vr(i)&&vr(l)||_t(i)&&_t(l)||Array.isArray(i)&&Array.isArray(l)?!Ou(i,l,r):i!==l)return!1}}return!0}function y0(e){const t=lr(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i,compute:l}=e||{},c=S.useRef(o),u=S.useRef(l),f=S.useRef(void 0);u.current=l;const p=S.useMemo(()=>r._getWatch(n,c.current),[r,n]),[g,m]=S.useState(u.current?u.current(p):p);return Iu(()=>r._subscribe({name:n,formState:{values:!0},exact:i,callback:b=>{if(!a){const v=b0(n,r._names,b.values||r._formValues,!1,c.current);if(u.current){const x=u.current(v);Ou(x,f.current)||(m(x),f.current=x)}else m(v)}}}),[r,a,n,i]),S.useEffect(()=>r._removeUnmounted()),g}function w0(e){const t=lr(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a,defaultValue:i}=e,l=f0(o._names.array,r),c=S.useMemo(()=>Ne(o._formValues,r,Ne(o._defaultValues,r,i)),[o,r,i]),u=y0({control:o,name:r,defaultValue:c,exact:!0}),f=Mu({control:o,name:r,exact:!0}),p=S.useRef(e),g=S.useRef(o.register(r,{...e.rules,value:u,...Ro(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const m=S.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ne(f.errors,r)},isDirty:{enumerable:!0,get:()=>!!Ne(f.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!Ne(f.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!Ne(f.validatingFields,r)},error:{enumerable:!0,get:()=>Ne(f.errors,r)}}),[f,r]),b=S.useCallback(h=>g.current.onChange({target:{value:d0(h),name:r},type:mi.CHANGE}),[r]),v=S.useCallback(()=>g.current.onBlur({target:{value:Ne(o._formValues,r),name:r},type:mi.BLUR}),[r,o._formValues]),x=S.useCallback(h=>{const C=Ne(o._fields,r);C&&h&&(C._f.ref={focus:()=>h.focus&&h.focus(),select:()=>h.select&&h.select(),setCustomValidity:E=>h.setCustomValidity(E),reportValidity:()=>h.reportValidity()})},[o._fields,r]),y=S.useMemo(()=>({name:r,value:u,...Ro(n)||f.disabled?{disabled:f.disabled||n}:{},onChange:b,onBlur:v,ref:x}),[r,n,f.disabled,b,v,x,u]);return S.useEffect(()=>{const h=o._options.shouldUnregister||a;o.register(r,{...p.current.rules,...Ro(p.current.disabled)?{disabled:p.current.disabled}:{}});const C=(E,j)=>{const _=Ne(o._fields,E);_&&_._f&&(_._f.mount=j)};if(C(r,!0),h){const E=Tu(Ne(o._options.defaultValues,r));pi(o._defaultValues,r,E),Yo(Ne(o._formValues,r))&&pi(o._formValues,r,E)}return!l&&o.register(r),()=>{(l?h&&!o._state.action:h)?o.unregister(r):C(r,!1)}},[r,o,l,a]),S.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),S.useMemo(()=>({field:y,formState:f,fieldState:m}),[y,f,m])}const Du=e=>e.render(w0(e)),$u=S.createContext(void 0),Lu=e=>{const{methods:t,disabled:r,readOnly:n,children:o}=e;return s.jsx($u.Provider,{value:{disabled:r,readOnly:n},children:s.jsx(v0,{...t,children:o})})},Fu=()=>{const e=S.useContext($u),t=lr();if(!e||!t)throw new Error("formContext must be used within a FormProvider");return{...e,...t}},C0=({type:e="button",variant:t="outline",...r})=>{const n=()=>e==="submit"||e==="reset"?"default":t;return s.jsx(et,{type:e,variant:n(),...r})};var Vu={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},hi=S.createContext&&S.createContext(Vu),S0=["attr","size","title"];function E0(e,t){if(e==null)return{};var r=k0(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 k0(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 hn(){return hn=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},hn.apply(this,arguments)}function xi(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 xn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xi(Object(r),!0).forEach(function(n){R0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R0(e,t,r){return t=N0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N0(e){var t=j0(e,"string");return typeof t=="symbol"?t:t+""}function j0(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 Bu(e){return e&&e.map((t,r)=>S.createElement(t.tag,xn({key:r},t.attr),Bu(t.child)))}function Gu(e){return t=>S.createElement(P0,hn({attr:xn({},e.attr)},t),Bu(e.child))}function P0(e){var t=r=>{var{attr:n,size:o,title:a}=e,i=E0(e,S0),l=o||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),S.createElement("svg",hn({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:c,style:xn(xn({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 hi!==void 0?S.createElement(hi.Consumer,null,r=>t(r)):t(Vu)}function T0(e){return Gu({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 _0="Label",Wu=d.forwardRef((e,t)=>s.jsx(q.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())}}));Wu.displayName=_0;var A0=Wu;function Va({className:e,...t}){return s.jsx(A0,{"data-slot":"label",className:R("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 zu=d.createContext({}),I0=({...e})=>s.jsx(zu.Provider,{value:{name:e.name},children:s.jsx(Du,{...e})}),Zn=()=>{const e=d.useContext(zu),t=d.useContext(qu),{getFieldState:r}=lr(),n=Mu({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}},qu=d.createContext({});function M0({className:e,...t}){const r=d.useId();return s.jsx(qu.Provider,{value:{id:r},children:s.jsx("div",{"data-slot":"form-item",className:R("qodo qodo-form-item grid gap-2",e),...t})})}function O0({className:e,...t}){const{formItemId:r}=Zn();return s.jsx(Va,{"data-slot":"form-label",className:R("data-[error=true]:text-destructive font-normal text-sm",e),htmlFor:r,...t})}function D0({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=Zn();return s.jsx(Cv,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function $0({className:e,...t}){const{formDescriptionId:r}=Zn();return s.jsx("p",{"data-slot":"form-description",id:r,className:R("text-purple-muted-300 text-sm",e),...t})}function L0({className:e,...t}){const{error:r,formMessageId:n}=Zn(),o=r?String((r==null?void 0:r.message)??""):t.children;return o?s.jsx("p",{"data-slot":"form-message",id:n,className:R("text-destructive text-sm",e),...t,children:o}):null}var[Jn,qR]=ye("Tooltip",[mt]),Qn=mt(),Uu="TooltipProvider",F0=700,Xo="tooltip.open",[V0,Ba]=Jn(Uu),Hu=e=>{const{__scopeTooltip:t,delayDuration:r=F0,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,i=d.useRef(!0),l=d.useRef(!1),c=d.useRef(0);return d.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),s.jsx(V0,{scope:t,isOpenDelayedRef:i,delayDuration:r,onOpen:d.useCallback(()=>{window.clearTimeout(c.current),i.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:d.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:a})};Hu.displayName=Uu;var kr="Tooltip",[B0,Lr]=Jn(kr),Ku=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:l}=e,c=Ba(kr,e.__scopeTooltip),u=Qn(t),[f,p]=d.useState(null),g=me(),m=d.useRef(0),b=i??c.disableHoverableContent,v=l??c.delayDuration,x=d.useRef(!1),[y,h]=be({prop:n,defaultProp:o??!1,onChange:P=>{P?(c.onOpen(),document.dispatchEvent(new CustomEvent(Xo))):c.onClose(),a==null||a(P)},caller:kr}),C=d.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),E=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x.current=!1,h(!0)},[h]),j=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,h(!1)},[h]),_=d.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{x.current=!0,h(!0),m.current=0},v)},[v,h]);return d.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),s.jsx(Ar,{...u,children:s.jsx(B0,{scope:t,contentId:g,open:y,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:d.useCallback(()=>{c.isOpenDelayedRef.current?_():E()},[c.isOpenDelayedRef,_,E]),onTriggerLeave:d.useCallback(()=>{b?j():(window.clearTimeout(m.current),m.current=0)},[j,b]),onOpen:E,onClose:j,disableHoverableContent:b,children:r})})};Ku.displayName=kr;var Zo="TooltipTrigger",Yu=d.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Lr(Zo,r),a=Ba(Zo,r),i=Qn(r),l=d.useRef(null),c=ae(t,l,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),p=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),s.jsx(Ir,{asChild:!0,...i,children:s.jsx(q.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:F(e.onPointerMove,g=>{g.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:F(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:F(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:F(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:F(e.onBlur,o.onClose),onClick:F(e.onClick,o.onClose)})})});Yu.displayName=Zo;var Ga="TooltipPortal",[G0,W0]=Jn(Ga,{forceMount:void 0}),Xu=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=Lr(Ga,t);return s.jsx(G0,{scope:t,forceMount:r,children:s.jsx(Ce,{present:r||a.open,children:s.jsx(sr,{asChild:!0,container:o,children:n})})})};Xu.displayName=Ga;var Qt="TooltipContent",Zu=d.forwardRef((e,t)=>{const r=W0(Qt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=Lr(Qt,e.__scopeTooltip);return s.jsx(Ce,{present:n||i.open,children:i.disableHoverableContent?s.jsx(Ju,{side:o,...a,ref:t}):s.jsx(z0,{side:o,...a,ref:t})})}),z0=d.forwardRef((e,t)=>{const r=Lr(Qt,e.__scopeTooltip),n=Ba(Qt,e.__scopeTooltip),o=d.useRef(null),a=ae(t,o),[i,l]=d.useState(null),{trigger:c,onClose:u}=r,f=o.current,{onPointerInTransitChange:p}=n,g=d.useCallback(()=>{l(null),p(!1)},[p]),m=d.useCallback((b,v)=>{const x=b.currentTarget,y={x:b.clientX,y:b.clientY},h=K0(y,x.getBoundingClientRect()),C=Y0(y,h),E=X0(v.getBoundingClientRect()),j=J0([...C,...E]);l(j),p(!0)},[p]);return d.useEffect(()=>()=>g(),[g]),d.useEffect(()=>{if(c&&f){const b=x=>m(x,f),v=x=>m(x,c);return c.addEventListener("pointerleave",b),f.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",v)}}},[c,f,m,g]),d.useEffect(()=>{if(i){const b=v=>{const x=v.target,y={x:v.clientX,y:v.clientY},h=(c==null?void 0:c.contains(x))||(f==null?void 0:f.contains(x)),C=!Z0(y,i);h?g():C&&(g(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,f,i,u,g]),s.jsx(Ju,{...e,ref:a})}),[q0,U0]=Jn(kr,{isInside:!1}),H0=Ev("TooltipContent"),Ju=d.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...l}=e,c=Lr(Qt,r),u=Qn(r),{onClose:f}=c;return d.useEffect(()=>(document.addEventListener(Xo,f),()=>document.removeEventListener(Xo,f)),[f]),d.useEffect(()=>{if(c.trigger){const p=g=>{const m=g.target;m!=null&&m.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),s.jsx(nr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:s.jsxs(In,{"data-state":c.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:[s.jsx(H0,{children:n}),s.jsx(q0,{scope:r,isInside:!0,children:s.jsx(vx,{id:c.contentId,role:"tooltip",children:o||n})})]})})});Zu.displayName=Qt;var Qu="TooltipArrow",ef=d.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Qn(r);return U0(Qu,r).isInside?null:s.jsx(Mn,{...o,...n,ref:t})});ef.displayName=Qu;function K0(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 Y0(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 X0(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 Z0(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a],c=t[i],u=l.x,f=l.y,p=c.x,g=c.y;f>n!=g>n&&r<(p-u)*(n-f)/(g-f)+u&&(o=!o)}return o}function J0(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),Q0(t)}function Q0(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],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.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 eC=Hu,tC=Ku,rC=Yu,nC=Xu,oC=Zu,aC=ef;function tf({delayDuration:e=0,...t}){return s.jsx(eC,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function rf({...e}){return s.jsx(tf,{children:s.jsx(tC,{"data-slot":"tooltip",...e})})}function nf({...e}){return s.jsx(rC,{"data-slot":"tooltip-trigger",...e})}function of({className:e,sideOffset:t=0,children:r,disableArrow:n=!1,...o}){return s.jsx(nC,{children:s.jsxs(oC,{"data-slot":"tooltip-content",sideOffset:t,className:R("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&&s.jsx(aC,{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:i=!1,...l}=t,{control:c,disabled:u,readOnly:f}=Fu(),p=()=>a?s.jsxs(rf,{children:[s.jsx(nf,{asChild:!0,children:s.jsx("span",{children:s.jsx(T0,{size:16})})}),s.jsx(of,{children:s.jsx("p",{children:a})})]}):s.jsx(s.Fragment,{}),g=()=>o?s.jsx($0,{children:o}):s.jsx(s.Fragment,{});return s.jsx(I0,{control:c,name:r,render:({field:m,fieldState:b})=>s.jsxs(M0,{className:"flex flex-col gap-1.5",children:[n&&s.jsx(O0,{children:s.jsxs("span",{className:"flex items-center gap-1",children:[n,i&&s.jsx("span",{className:"text-purple-muted-300",children:"*"}),!!a&&p()]})}),s.jsx(D0,{children:s.jsx(e,{...m,disabled:u,...l,readOnly:f,error:!!b.error})}),!!o&&g(),s.jsx(L0,{})]})})},sC=S.forwardRef((e,t)=>s.jsx(Pr,{...e,ref:t})),iC=S.forwardRef((e,t)=>Ot(sC)({...e,ref:t})),lC=S.forwardRef((e,t)=>{const{options:r=[],onChange:n=()=>{},searchPlaceholder:o,onSearchChange:a,...i}=e,l=c=>{n({target:{value:c}})};return s.jsx(ka,{ref:t,options:r,onValueChange:l,searchPlaceholder:o,onSearchChange:a,...i})}),cC=Ot(lC);var Wa="Radio",[dC,af]=ye(Wa),[uC,fC]=dC(Wa),sf=d.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:a,disabled:i,value:l="on",onCheck:c,form:u,...f}=e,[p,g]=d.useState(null),m=ae(t,x=>g(x)),b=d.useRef(!1),v=p?u||!!p.closest("form"):!0;return s.jsxs(uC,{scope:r,checked:o,disabled:i,children:[s.jsx(q.button,{type:"button",role:"radio","aria-checked":o,"data-state":uf(o),"data-disabled":i?"":void 0,disabled:i,value:l,...f,ref:m,onClick:F(e.onClick,x=>{o||c==null||c(),v&&(b.current=x.isPropagationStopped(),b.current||x.stopPropagation())})}),v&&s.jsx(df,{control:p,bubbles:!b.current,name:n,value:l,checked:o,required:a,disabled:i,form:u,style:{transform:"translateX(-100%)"}})]})});sf.displayName=Wa;var lf="RadioIndicator",cf=d.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,a=fC(lf,r);return s.jsx(Ce,{present:n||a.checked,children:s.jsx(q.span,{"data-state":uf(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t})})});cf.displayName=lf;var pC="RadioBubbleInput",df=d.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},a)=>{const i=d.useRef(null),l=ae(i,a),c=On(r),u=An(t);return d.useEffect(()=>{const f=i.current;if(!f)return;const p=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(p,"checked").set;if(c!==r&&m){const b=new Event("click",{bubbles:n});m.call(f,r),f.dispatchEvent(b)}},[c,r,n]),s.jsx(q.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}})});df.displayName=pC;function uf(e){return e?"checked":"unchecked"}var mC=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],eo="RadioGroup",[gC,UR]=ye(eo,[xt,af]),ff=xt(),pf=af(),[vC,hC]=gC(eo),mf=d.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:a,required:i=!1,disabled:l=!1,orientation:c,dir:u,loop:f=!0,onValueChange:p,...g}=e,m=ff(r),b=It(u),[v,x]=be({prop:a,defaultProp:o??null,onChange:p,caller:eo});return s.jsx(vC,{scope:r,name:n,required:i,disabled:l,value:v,onValueChange:x,children:s.jsx(qn,{asChild:!0,...m,orientation:c,dir:b,loop:f,children:s.jsx(q.div,{role:"radiogroup","aria-required":i,"aria-orientation":c,"data-disabled":l?"":void 0,dir:b,...g,ref:t})})})});mf.displayName=eo;var gf="RadioGroupItem",vf=d.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,a=hC(gf,r),i=a.disabled||n,l=ff(r),c=pf(r),u=d.useRef(null),f=ae(t,u),p=a.value===o.value,g=d.useRef(!1);return d.useEffect(()=>{const m=v=>{mC.includes(v.key)&&(g.current=!0)},b=()=>g.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",b),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",b)}},[]),s.jsx(Un,{asChild:!0,...l,focusable:!i,active:p,children:s.jsx(sf,{disabled:i,required:a.required,checked:p,...c,...o,name:a.name,ref:f,onCheck:()=>a.onValueChange(o.value),onKeyDown:F(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:F(o.onFocus,()=>{var m;g.current&&((m=u.current)==null||m.click())})})})});vf.displayName=gf;var xC="RadioGroupIndicator",hf=d.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=pf(r);return s.jsx(cf,{...o,...n,ref:t})});hf.displayName=xC;var bC=mf,yC=vf,wC=hf;function CC({className:e,...t}){const{readOnly:r,...n}=t;return s.jsx(bC,{"data-slot":"radio-group","data-readonly":r||void 0,disabled:n.disabled||r,className:R("qodo qodo-radio-group grid gap-3 group",e),...n})}function SC({className:e,...t}){return s.jsx(yC,{"data-slot":"radio-group-item",className:R("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:s.jsx(wC,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:s.jsx(Kg,{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 za=S.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o,disabled:a=!1,readOnly:i=!1,className:l,direction:c="horizontal",dir:u="ltr",name:f,onChange:p,...g}=e,m=v=>{i||(p==null||p({target:{value:v}}),o==null||o(v))},b=R("qodo qodo-custom-radio-group","flex",{"flex-row gap-6":c==="horizontal","flex-col gap-3":c==="vertical"},l);return s.jsx(CC,{name:f,ref:t,value:r,defaultValue:n,onValueChange:m,disabled:a||i,readOnly:i,className:b,dir:u,...g})});za.displayName="BaseRadioGroupComponent";const qa=({label:e,description:t,disabled:r=!1,labelClassName:n,descriptionClassName:o,labelWrapperClassName:a})=>s.jsxs("div",{className:R("flex flex-col gap-2",a),children:[e&&s.jsx("div",{className:R("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&&s.jsx("div",{className:R("text-sm text-[var(--text-bg-neutral-mild)] font-normal",o),children:t})]});qa.displayName="LabelWithDescription";const Ua=({value:e="",disabled:t,error:r,name:n="radio",label:o,description:a,wrapperClassName:i,labelClassName:l,descriptionClassName:c,labelWrapperClassName:u})=>{const f=`${n}-${e}`;return s.jsxs(Va,{htmlFor:f,className:R("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},i),children:[s.jsx(SC,{value:e,id:f,disabled:t||r}),s.jsx(qa,{label:o,description:a,disabled:t,labelClassName:l,descriptionClassName:c,labelWrapperClassName:u})]},e)};Ua.displayName="RadioGroupItemComponent";const EC=Ot(za),kC=e=>s.jsx("hr",{className:"w-full h-px border-[var(--base-sidebar-border)]",...e}),RC=({children:e,description:t,className:r})=>s.jsxs("div",{className:R("space-y-1",r),children:[s.jsx("h2",{className:"flex items-center gap-2.5 text-2xl text-white",children:e}),t&&s.jsx("span",{className:"text-sm text-purple-muted-300",children:t})]}),xf=S.forwardRef(({direction:e="horizontal",className:t,...r},n)=>{const o=R("flex flex-row gap-6",{"flex-col":e==="vertical"},t);return s.jsx("div",{ref:n,className:o,...r})});xf.displayName="FormGroup";function NC({className:e,rows:t,...r}){return s.jsx("textarea",{"data-slot":"textarea",rows:t,className:R("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-input/30 flex min-h-16 w-full rounded-md border bg-transparent","placeholder:text-purple-muted-400 text-purple-muted-300 shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] 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 jC=S.forwardRef(({variant:e="default",className:t,...r},n)=>{const o=Ot(NC);return s.jsx(o,{...r,ref:n,className:R({"font-plex-mono text-sm leading-relaxed rounded dark:bg-fill-input-neutral-idle px-3 py-2 border-0":e==="code"},t)})}),bf=({label:e,id:t,onRemoveTag:r,disabled:n,className:o,variant:a="default"})=>s.jsxs(Jt,{variant:a,disabled:n,size:"sm",className:R("flex items-center gap-1 px-2 py-0.5","font-normal whitespace-nowrap",o),children:[e,r&&s.jsx(et,{type:"button",variant:"ghost",size:"icon",className:"p-0 w-[10px] h-[10px] text-inherit disabled:text-inherit",onClick:i=>{i.stopPropagation(),r==null||r(t)},"aria-label":`Remove ${e}`,disabled:n,children:s.jsx(kn,{className:"w-[10px] h-[10px]"})})]}),PC=({label:e,id:t,onClick:r,onDeleteSuggestion:n,deleteText:o,className:a,tagClassName:i,tagVariant:l})=>s.jsx("div",{onClick:r,className:R("bg-transparent hover:bg-purple-muted-800 rounded-sm py-1 px-2",a),children:s.jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[s.jsx(bf,{label:e,id:t,className:i,variant:l}),n&&s.jsx(et,{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||s.jsx(pv,{className:"h-4 w-4"})})]})}),No={BACKSPACE:"Backspace",ESCAPE:"Escape",ENTER:"Enter"},TC=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},yf=({value:e=[],variant:t="default",placeholder:r="Type to add a tag...",deleteText:n="Delete",suggestions:o=[],allowCreate:a=!0,maxTags:i=100,disabled:l=!1,className:c,suggestionWrapperClassName:u,suggestionClassName:f,tagClassName:p,tagInputIcon:g,onDeleteSuggestion:m,onBlur:b,normalizeTags:v=TC,onChange:x=()=>{},onAddTag:y=()=>{},onRemoveTag:h=()=>{},onResetTags:C=()=>{}})=>{const[E,j]=S.useState(""),[_,P]=S.useState(!1),N=S.useRef(null),W=S.useRef(null),U=S.useRef(null),[re,te]=S.useState();S.useEffect(()=>{W.current&&te(W.current.offsetWidth)},[]);const Q=e.length>=i,V=L=>{if(Q||e.some(K=>K.id===L.id))return;const A=[...e,L];x(A),y(L)},O=L=>{const A=e.filter(K=>K.id!==L);x(A),h(L)},I=()=>{x==null||x([]),C()},D=L=>{const A=L.target.value;j(A),P(!0)},k=()=>{const L=E.trim().toLowerCase();if(!L)return[];const A=new Set(e.map(K=>K.id));return o.filter(K=>K.label.toLowerCase().includes(L)&&!A.has(K.id))},M=L=>v?v(L):L,B=()=>{const L=E.trim();if(!L)return;const A=M(L);if(!A)return;if(e.some(ee=>ee.id===A)){j(""),P(!1);return}const K=o.find(ee=>ee.id===A||M(ee.label)===A);K?V(K):a&&V({id:A,label:A}),j(""),P(!1)},J=L=>{const A=L.key===No.BACKSPACE&&!E&&e.length>0,K=L.key===No.ENTER&&E,ee=L.key===No.ESCAPE;K?(L.preventDefault(),B(),U.current&&(U.current.scrollLeft=U.current.scrollWidth)):A?O(e[e.length-1].id):ee&&P(!1)},T=()=>{if(E&&k().length>0)return s.jsx(Ea,{className:"p-0 border-transparent bg-[var(--fill-interactive-neutral-idle)] gap-2",align:"start",style:{width:re??void 0},onOpenAutoFocus:L=>L.preventDefault(),onCloseAutoFocus:L=>L.preventDefault(),onMouseDown:L=>L.preventDefault(),children:s.jsx("div",{className:R("max-h-[200px] overflow-y-auto flex flex-col gap-1 p-1",u),children:k().map(L=>s.jsx(PC,{label:L.label,id:L.id,onDeleteSuggestion:m,deleteText:n,className:f,tagClassName:p,tagVariant:t,onClick:()=>{var A;V(L),j(""),P(!1),(A=N.current)==null||A.focus()}},L.id))})})},G=()=>g||s.jsx(uv,{className:"h-4 w-4 stroke-[var(--icon-bg-neutral-mild)]"}),Z=()=>e.map(L=>s.jsx(bf,{label:L.label,id:L.id,onRemoveTag:O,disabled:l,className:p,variant:t},L.id)),z=()=>e.length===0?s.jsx(s.Fragment,{}):s.jsx(kn,{className:"h-4 w-4 hover:cursor-pointer stroke-[var(--icon-input-neutral-idle)] hover:stroke-[var(--icon-input-neutral-hover)]",onClick:I});return s.jsx("div",{className:R("w-full",c),children:s.jsxs(Ca,{open:_&&!l,onOpenChange:P,modal:!1,children:[s.jsx(Sa,{className:"w-full",children:s.jsxs("div",{ref:W,tabIndex:-1,className:R("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:L=>{var A;L.stopPropagation(),P(!0),(A=N.current)==null||A.focus()},children:[G(),s.jsxs("div",{ref:U,className:"flex items-center gap-2 w-full whitespace-normal overflow-x-auto",children:[Z(),s.jsx(Pr,{ref:N,value:E,onChange:D,onClick:L=>L.stopPropagation(),onFocus:()=>P(!0),onBlur:b,onKeyDown:J,placeholder:r,disabled:l||Q,className:R("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")})]}),z()]})}),T()]})})};function _C(e){const{control:t}=lr();return s.jsx(Du,{name:e.name,control:t,render:({field:r})=>s.jsx(yf,{...e,value:r.value,onChange:r.onChange,onBlur:r.onBlur})})}const AC=Ot(_C),IC=12,bi={SINGLE:"single",MULTIPLE:"multiple"},yi={LTR:"ltr"};var wf=typeof global=="object"&&global&&global.Object===Object&&global,MC=typeof self=="object"&&self&&self.Object===Object&&self,yt=wf||MC||Function("return this")(),bn=yt.Symbol,Cf=Object.prototype,OC=Cf.hasOwnProperty,DC=Cf.toString,mr=bn?bn.toStringTag:void 0;function $C(e){var t=OC.call(e,mr),r=e[mr];try{e[mr]=void 0;var n=!0}catch{}var o=DC.call(e);return n&&(t?e[mr]=r:delete e[mr]),o}var LC=Object.prototype,FC=LC.toString;function VC(e){return FC.call(e)}var BC="[object Null]",GC="[object Undefined]",wi=bn?bn.toStringTag:void 0;function Fr(e){return e==null?e===void 0?GC:BC:wi&&wi in Object(e)?$C(e):VC(e)}function Ha(e){return e!=null&&typeof e=="object"}var WC=Array.isArray;function Sf(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var zC="[object AsyncFunction]",qC="[object Function]",UC="[object GeneratorFunction]",HC="[object Proxy]";function Ef(e){if(!Sf(e))return!1;var t=Fr(e);return t==qC||t==UC||t==zC||t==HC}var jo=yt["__core-js_shared__"],Ci=(function(){var e=/[^.]+$/.exec(jo&&jo.keys&&jo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function KC(e){return!!Ci&&Ci in e}var YC=Function.prototype,XC=YC.toString;function Dt(e){if(e!=null){try{return XC.call(e)}catch{}try{return e+""}catch{}}return""}var ZC=/[\\^$.*+?()[\]{}|]/g,JC=/^\[object .+?Constructor\]$/,QC=Function.prototype,e1=Object.prototype,t1=QC.toString,r1=e1.hasOwnProperty,n1=RegExp("^"+t1.call(r1).replace(ZC,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function o1(e){if(!Sf(e)||KC(e))return!1;var t=Ef(e)?n1:JC;return t.test(Dt(e))}function a1(e,t){return e==null?void 0:e[t]}function Vr(e,t){var r=a1(e,t);return o1(r)?r:void 0}var Jo=Vr(yt,"WeakMap"),s1=9007199254740991;function kf(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=s1}function i1(e){return e!=null&&kf(e.length)&&!Ef(e)}var l1=Object.prototype;function Rf(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||l1;return e===r}var c1="[object Arguments]";function Si(e){return Ha(e)&&Fr(e)==c1}var Nf=Object.prototype,d1=Nf.hasOwnProperty,u1=Nf.propertyIsEnumerable,f1=Si((function(){return arguments})())?Si:function(e){return Ha(e)&&d1.call(e,"callee")&&!u1.call(e,"callee")};function p1(){return!1}var jf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ei=jf&&typeof module=="object"&&module&&!module.nodeType&&module,m1=Ei&&Ei.exports===jf,ki=m1?yt.Buffer:void 0,g1=ki?ki.isBuffer:void 0,v1=g1||p1,h1="[object Arguments]",x1="[object Array]",b1="[object Boolean]",y1="[object Date]",w1="[object Error]",C1="[object Function]",S1="[object Map]",E1="[object Number]",k1="[object Object]",R1="[object RegExp]",N1="[object Set]",j1="[object String]",P1="[object WeakMap]",T1="[object ArrayBuffer]",_1="[object DataView]",A1="[object Float32Array]",I1="[object Float64Array]",M1="[object Int8Array]",O1="[object Int16Array]",D1="[object Int32Array]",$1="[object Uint8Array]",L1="[object Uint8ClampedArray]",F1="[object Uint16Array]",V1="[object Uint32Array]",pe={};pe[A1]=pe[I1]=pe[M1]=pe[O1]=pe[D1]=pe[$1]=pe[L1]=pe[F1]=pe[V1]=!0;pe[h1]=pe[x1]=pe[T1]=pe[b1]=pe[_1]=pe[y1]=pe[w1]=pe[C1]=pe[S1]=pe[E1]=pe[k1]=pe[R1]=pe[N1]=pe[j1]=pe[P1]=!1;function B1(e){return Ha(e)&&kf(e.length)&&!!pe[Fr(e)]}function G1(e){return function(t){return e(t)}}var Pf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cr=Pf&&typeof module=="object"&&module&&!module.nodeType&&module,W1=Cr&&Cr.exports===Pf,Po=W1&&wf.process,Ri=(function(){try{var e=Cr&&Cr.require&&Cr.require("util").types;return e||Po&&Po.binding&&Po.binding("util")}catch{}})(),Ni=Ri&&Ri.isTypedArray,z1=Ni?G1(Ni):B1;function q1(e,t){return function(r){return e(t(r))}}var U1=q1(Object.keys,Object),H1=Object.prototype,K1=H1.hasOwnProperty;function Y1(e){if(!Rf(e))return U1(e);var t=[];for(var r in Object(e))K1.call(e,r)&&r!="constructor"&&t.push(r);return t}var Qo=Vr(yt,"Map"),ea=Vr(yt,"DataView"),ta=Vr(yt,"Promise"),ra=Vr(yt,"Set"),ji="[object Map]",X1="[object Object]",Pi="[object Promise]",Ti="[object Set]",_i="[object WeakMap]",Ai="[object DataView]",Z1=Dt(ea),J1=Dt(Qo),Q1=Dt(ta),eS=Dt(ra),tS=Dt(Jo),kt=Fr;(ea&&kt(new ea(new ArrayBuffer(1)))!=Ai||Qo&&kt(new Qo)!=ji||ta&&kt(ta.resolve())!=Pi||ra&&kt(new ra)!=Ti||Jo&&kt(new Jo)!=_i)&&(kt=function(e){var t=Fr(e),r=t==X1?e.constructor:void 0,n=r?Dt(r):"";if(n)switch(n){case Z1:return Ai;case J1:return ji;case Q1:return Pi;case eS:return Ti;case tS:return _i}return t});var rS="[object Map]",nS="[object Set]",oS=Object.prototype,aS=oS.hasOwnProperty;function cr(e){if(e==null)return!0;if(i1(e)&&(WC(e)||typeof e=="string"||typeof e.splice=="function"||v1(e)||z1(e)||f1(e)))return!e.length;var t=kt(e);if(t==rS||t==nS)return!e.size;if(Rf(e))return!Y1(e).length;for(var r in e)if(aS.call(e,r))return!1;return!0}function to(e){return!e.children||e.children.length===0?[e.value]:e.children.flatMap(t=>to(t))}function Ka(e){const t=[e.value];return e.children&&e.children.forEach(r=>{t.push(...Ka(r))}),t}function Ya(e,t){return cr(e.children)?!1:to(e).every(n=>t.has(n))}function sS(e,t){return cr(e.children)?!1:to(e).some(n=>t.has(n))}function Tf(e,t){for(const r of e){if(r.value===t)return r;if(r.children){const n=Tf(r.children,t);if(n)return n}}return null}function Xa(e,t){const r=new Map;for(const n of e){const o=t(n);o&&r.set(o[0],o[1]),n.children&&Xa(n.children,t).forEach((i,l)=>r.set(l,i))}return r}function _f(e,t){e.forEach(r=>{cr(r.children)||(Ya(r,t)?t.add(r.value):t.delete(r.value),r.children&&_f(r.children,t))})}const iS=e=>e?Array.isArray(e)?e:[e]:[],lS=e=>Xa(e,t=>[t.value,t.label]),cS=e=>Xa(e,t=>t.icon?[t.value,t.icon]:null);function dS(e,t){Ka(e).forEach(n=>t.delete(n))}function uS(e,t){Ka(e).forEach(n=>t.add(n))}function Af(e,t){const r=new Set(t);return e.flatMap(n=>!cr(n.children)&&n.children?Ya(n,r)?[n.value]:Af(n.children,t):r.has(n.value)?[n.value]:[])}function fS(e){return e&&e>1?e*IC:0}function If({option:e,selected:t,onSelect:r,nestLevel:n=0,disabled:o=!1,dir:a=yi.LTR}){const i=!cr(e.children),l=t.has(e.value),c=`${fS(n)}px`,u=Ya(e,t),p=sS(e,t)&&!u,g=l||u,m=()=>{if(n!==0)return s.jsx(Xg,{className:"w-4 text-[var(--text-interactive-neutral-idle)]"})},b=()=>{if(e.icon)return s.jsx("div",{className:"flex-shrink-0 [&>svg]:text-[var(--text-interactive-neutral-idle)]!",children:e.icon})},v=()=>p?s.jsx(Jg,{className:"w-2 h-2 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)]"}):s.jsx(rr,{className:R("h-4 w-4 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)] opacity-0",{"opacity-100":g})}),x=()=>{if(i)return e.children.map(h=>s.jsx(If,{option:h,selected:t,onSelect:r,nestLevel:n+1,dir:a},h.value))},y=()=>s.jsxs("div",{className:R("flex items-center w-full gap-2 flex-row",{"flex-row-reverse":a===yi.LTR}),style:{paddingLeft:c},children:[s.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[m(),b(),s.jsx("span",{className:"flex-1 text-[var(--text-interactive-neutral-active)]",children:e.label})]}),v()]});return s.jsxs("div",{children:[s.jsx(gd,{disabled:e.disabled||o,onSelect:()=>r(e.value,i),className:R("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)]!",{"bg-[var(--fill-interactive-neutral-idle)]":g}),children:y()}),x()]})}function Mf({value:e,options:t=[],onSelect:r,disabled:n=!1,mode:o=bi.SINGLE,placeholder:a="Select...",inputPlaceholder:i="Search...",emptyState:l="No option found.",triggerClassName:c,triggerWrapperClassName:u,badgeClassName:f,badgeVariant:p="text",searchable:g=!1,toggleIcon:m=s.jsx(En,{}),dir:b="ltr",...v}){const[x,y]=S.useState(0),[h,C]=S.useState(!1),E=S.useRef(null),j=o===bi.MULTIPLE,[_,P]=S.useState(e!==void 0?e:j?[]:""),N=iS(_),W=new Set(N);S.useEffect(()=>{E.current&&y(E.current.offsetWidth)},[_]);const U=lS(t),re=cS(t);S.useEffect(()=>{e!==void 0&&P(j?e||[]:e||"")},[e,j]);function te(D,k){if(!j){P(D),r==null||r(D),C(!1);return}P(M=>{const B=Array.isArray(M)?M:[],J=new Set(B),T=Tf(t,D);if(!T)return B;k?Q(T,J):V(D,J);const G=Array.from(J);return r==null||r(G),G})}function Q(D,k){to(D).every(J=>k.has(J))?dS(D,k):uS(D,k)}function V(D,k){k.has(D)?k.delete(D):k.add(D),_f(t,k)}const O=()=>{const D=Af(t,N);return D.length===0?s.jsx(Jt,{variant:p,size:"md",className:R("text-purple-muted-300",f),children:a}):D.map(M=>{const B=re.get(M),J=U.get(M)||M;return s.jsx(Jt,{variant:p,size:"md",className:R("text-[var(--text-bg-neutral-mid)]",f),children:s.jsxs("div",{className:"flex items-center gap-1",children:[B&&s.jsx("div",{className:"flex-shrink-0",children:B}),s.jsx("span",{children:J})]})},M)})},I=()=>{if(g)return s.jsx(ud,{className:"placeholder:text-[var(--text-bg-neutral-mid)] text-[var(--text-interactive-neutral-active)]",placeholder:i})};return s.jsxs(Ca,{open:h,onOpenChange:n?void 0:C,children:[s.jsx(Sa,{asChild:!0,disabled:n,children:s.jsxs("div",{className:R("flex items-center gap-1.5 justify-between py-1 px-3 w-[100%] border border-[var(--border-interactive-neutral-idle)] bg-[var(--fill-input-neutral-idle)] rounded-sm scrollbar-thin","aria-invalid:!border-destructive aria-invalid:!ring-destructive/20 dark:aria-invalid:!ring-destructive/40",{"cursor-pointer hover:border-[var(--border-input-neutral-hover)] hover:bg-[var(--fill-input-neutral-hover)]":!n,"cursor-not-allowed opacity-75 ":n},u),ref:E,"aria-disabled":n,...v,children:[s.jsx("div",{className:R("flex justify-start text-start w-[100%] whitespace-nowrap overflow-x-auto gap-1.5",c),children:O()}),s.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:m})]})}),s.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:x??"auto"},children:s.jsxs(dd,{className:"bg-[var(--fill-interactive-neutral-idle)]",children:[I(),s.jsxs(fd,{children:[s.jsx(pd,{children:l}),s.jsx(md,{children:t.map(D=>s.jsx(If,{disabled:n,option:D,selected:W,onSelect:te,dir:b},D.value))})]})]})})]})}const Of=S.forwardRef(e=>{const{options:t,onChange:r,readOnly:n,value:o,disabled:a,mode:i,...l}=e,c=u=>{n||r&&r({target:{value:u}})};return s.jsx(Mf,{options:t,value:o,disabled:a,...l,onSelect:c,mode:i})});Of.displayName="BaseSelectComponent";const pS=Ot(Of),Za=S.forwardRef((e,t)=>{const{value:r=[],defaultValue:n=[],onValueChange:o,disabled:a=!1,readOnly:i=!1,className:l,direction:c="vertical",onChange:u,children:f,...p}=e,[g,m]=S.useState(cr(r)?n:r),b=c==="horizontal",v=r!==void 0?r:g,x=(C,E)=>{if(i)return;const j=E?[...v,C]:v.filter(_=>_!==C);r===void 0&&m(j),u==null||u({target:{value:j}}),o==null||o(j)},y=R("qodo qodo-custom-checkbox-group","flex",{"flex-row gap-6":b,"flex-col gap-3":!b},l),h=()=>S.Children.map(f,C=>{if(!S.isValidElement(C))return C;const E=C.props.name;if(!E)return C;const j=C.props.disabled,_=i||a||j;return S.cloneElement(C,{checked:v.includes(E),onCheckedChange:P=>x(E,P),disabled:_,name:E})});return s.jsx("div",{ref:t,className:y,...p,children:h()})});Za.displayName="CheckboxGroupComponent";var ro="Checkbox",[mS,HR]=ye(ro),[gS,Ja]=mS(ro);function vS(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:a,form:i,name:l,onCheckedChange:c,required:u,value:f="on",internal_do_not_use_render:p}=e,[g,m]=be({prop:r,defaultProp:o??!1,onChange:c,caller:ro}),[b,v]=d.useState(null),[x,y]=d.useState(null),h=d.useRef(!1),C=b?!!i||!!b.closest("form"):!0,E={checked:g,disabled:a,setChecked:m,control:b,setControl:v,name:l,form:i,value:f,hasConsumerStoppedPropagationRef:h,required:u,defaultChecked:ct(o)?!1:o,isFormControl:C,bubbleInput:x,setBubbleInput:y};return s.jsx(gS,{scope:t,...E,children:hS(p)?p(E):n})}var Df="CheckboxTrigger",$f=d.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:a,value:i,disabled:l,checked:c,required:u,setControl:f,setChecked:p,hasConsumerStoppedPropagationRef:g,isFormControl:m,bubbleInput:b}=Ja(Df,e),v=ae(o,f),x=d.useRef(c);return d.useEffect(()=>{const y=a==null?void 0:a.form;if(y){const h=()=>p(x.current);return y.addEventListener("reset",h),()=>y.removeEventListener("reset",h)}},[a,p]),s.jsx(q.button,{type:"button",role:"checkbox","aria-checked":ct(c)?"mixed":c,"aria-required":u,"data-state":Gf(c),"data-disabled":l?"":void 0,disabled:l,value:i,...n,ref:v,onKeyDown:F(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:F(r,y=>{p(h=>ct(h)?!0:!h),b&&m&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})})});$f.displayName=Df;var Qa=d.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:i,disabled:l,value:c,onCheckedChange:u,form:f,...p}=e;return s.jsx(vS,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:l,required:i,onCheckedChange:u,name:n,form:f,value:c,internal_do_not_use_render:({isFormControl:g})=>s.jsxs(s.Fragment,{children:[s.jsx($f,{...p,ref:t,__scopeCheckbox:r}),g&&s.jsx(Bf,{__scopeCheckbox:r})]})})});Qa.displayName=ro;var Lf="CheckboxIndicator",Ff=d.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,a=Ja(Lf,r);return s.jsx(Ce,{present:n||ct(a.checked)||a.checked===!0,children:s.jsx(q.span,{"data-state":Gf(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Ff.displayName=Lf;var Vf="CheckboxBubbleInput",Bf=d.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:l,disabled:c,name:u,value:f,form:p,bubbleInput:g,setBubbleInput:m}=Ja(Vf,e),b=ae(r,m),v=On(a),x=An(n);d.useEffect(()=>{const h=g;if(!h)return;const C=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(C,"checked").set,_=!o.current;if(v!==a&&j){const P=new Event("click",{bubbles:_});h.indeterminate=ct(a),j.call(h,ct(a)?!1:a),h.dispatchEvent(P)}},[g,v,a,o]);const y=d.useRef(ct(a)?!1:a);return s.jsx(q.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??y.current,required:l,disabled:c,name:u,value:f,form:p,...t,tabIndex:-1,ref:b,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Bf.displayName=Vf;function hS(e){return typeof e=="function"}function ct(e){return e==="indeterminate"}function Gf(e){return ct(e)?"indeterminate":e?"checked":"unchecked"}const Wf=d.forwardRef(({className:e,...t},r)=>s.jsx(Qa,{ref:r,className:R("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:s.jsx(Ff,{className:R("flex items-center justify-center text-current"),children:t.checked==="indeterminate"?s.jsx(lv,{className:"h-4 w-4 stroke-[var(--icon-input-emphasis-idle)]"}):s.jsx(rr,{className:"h-4 w-4 stroke-[var(--icon-input-emphasis-idle)]"})})}));Wf.displayName=Qa.displayName;const es=({disabled:e,error:t,name:r="checkbox",checked:n,onCheckedChange:o,label:a,description:i,labelWrapperClassName:l,labelClassName:c,descriptionClassName:u,checkboxClassName:f,wrapperClassName:p})=>s.jsxs(Va,{htmlFor:r,className:R("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:[s.jsx(Wf,{id:r,disabled:e||t,checked:n,onCheckedChange:o,className:R("mt-0.5",f)}),s.jsx(qa,{label:a,description:i,disabled:e,labelClassName:c,descriptionClassName:u,labelWrapperClassName:l})]});es.displayName="CheckboxGroupItemComponent";const xS=Ot(Za),je=e=>{const{className:t,disabled:r=!1,readOnly:n=!1,methods:o,onSubmit:a=()=>{},...i}=e,{handleSubmit:l}=o,c=R("qodo qodo-form","flex flex-col gap-6",t);return s.jsx(Lu,{methods:o,disabled:r,readOnly:n,children:s.jsx("form",{className:c,onSubmit:l(a),...i})})};je.Button=C0;je.Input=iC;je.Select=pS;je.Combobox=cC;je.RadioGroup=EC;je.RadioGroupItem=Ua;je.Group=xf;je.Textarea=jC;je.Divider=kC;je.Title=RC;je.TagsInput=AC;je.CheckboxGroup=xS;je.Checkbox=es;function bS(e){return e==null?[]:Array.isArray(e)?e:[e]}var yS=e=>Array.from(Array(e).keys()),Ii=e=>(e==null?void 0:e.constructor.name)==="Array",wS=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!ts(e[r],t[r]))return!1;return!0},ts=(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(Ii(e)&&Ii(t))return wS(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(!ts(e[a],t[a]))return!1}return!0},CS=e=>e!=null&&typeof e=="object",sn=e=>typeof e=="string",hr=e=>typeof e=="function",SS=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ES=e=>Object.prototype.toString.call(e),zf=Function.prototype.toString,kS=zf.call(Object),RS=e=>{if(!CS(e)||ES(e)!="[object Object]"||PS(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=SS(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&zf.call(r)==kS},NS=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,jS=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,PS=e=>NS(e)||jS(e),TS=e=>e(),_S=(...e)=>(...t)=>{e.forEach(function(r){r==null||r(...t)})},AS=e=>Number.isNaN(e),IS=e=>AS(e)?0:e,MS=(e,t,r)=>{const n=IS(e),o=n>=t,a=r==null||n<=r;return o&&a};function qf(e){if(!RS(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]=qf(o))}return r}function Mi(...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 OS(e,t){if(e==null)throw new Error(t())}var Uf=e=>typeof e=="object"&&e!==null,We=e=>e?"":void 0,DS=9,$S=e=>Uf(e)&&e.nodeType===DS,LS=e=>Uf(e)&&e===e.window;function FS(e){if(!e)return!1;const t=e.getRootNode();return Hf(t)===e}function VS(e){return $S(e)?e:LS(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function Hf(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 BS=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),GS=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Oi=e=>{const t={};let r;for(;r=GS.exec(e);)t[r[1]]=r[2];return t},WS=(e,t)=>{if(sn(e)){if(sn(t))return`${e};${t}`;e=Oi(e)}else sn(t)&&(t=Oi(t));return Object.assign({},e??{},t??{})};function Be(...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]=_S(r[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=BS(t[o],r[o]);continue}if(o==="style"){t[o]=WS(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 zS(e,t,r){let n=[],o;return a=>{const i=e(a);return(i.length!==n.length||i.some((c,u)=>!ts(n[u],c)))&&(n=i,o=t(i,a)),o}}var Ht=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Ht||{}),To="__init__";function qS(e){const t=()=>{var i;return((i=e.getRootNode)==null?void 0:i.call(e))??document},r=()=>VS(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:()=>Hf(t()),isActiveElement:FS,getById:i=>t().getElementById(i)}}function US(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var HS=()=>e=>Array.from(new Set(e)),Kf=typeof globalThis.document<"u"?S.useLayoutEffect:S.useEffect;function yn(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=S.useState(t),[o,a]=S.useState(n),i=e().value!==void 0,l=S.useRef(o);l.current=i?e().value:o;const c=S.useRef(l.current);Kf(()=>{c.current=l.current},[o,e().value]);const u=p=>{var b,v;const g=c.current,m=hr(p)?p(g):p;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:m,prev:g}),i||a(m),r(m,g)||(v=(b=e()).onChange)==null||v.call(b,m,g)};function f(){return i?e().value:o}return{initial:n,ref:l,get:f,set(p){(e().sync?jr.flushSync:TS)(()=>u(p))},invoke(p,g){var m,b;(b=(m=e()).onChange)==null||b.call(m,p,g)},hash(p){var g,m;return((m=(g=e()).hash)==null?void 0:m.call(g,p))??String(p)}}}yn.cleanup=e=>{S.useEffect(()=>e,[])};yn.ref=e=>{const t=S.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function KS(e){const t=S.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var YS=(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 XS(e,t={}){var re,te,Q,V;const r=S.useMemo(()=>{const{id:O,ids:I,getRootNode:D}=t;return qS({id:O,ids:I,getRootNode:D})},[t]),n=(...O)=>{e.debug&&console.log(...O)},o=((re=e.props)==null?void 0:re.call(e,{props:qf(t),scope:r}))??t,a=ZS(o),i=(te=e.context)==null?void 0:te.call(e,{prop:a,bindable:yn,scope:r,flush:Di,getContext(){return c},getComputed(){return j},getRefs(){return v},getEvent(){return m()}}),l=Yf(i),c={get(O){var I;return(I=l.current)==null?void 0:I[O].ref.current},set(O,I){var D;(D=l.current)==null||D[O].set(I)},initial(O){var I;return(I=l.current)==null?void 0:I[O].initial},hash(O){var D,k;const I=(D=l.current)==null?void 0:D[O].get();return(k=l.current)==null?void 0:k[O].hash(I)}},u=S.useRef(new Map),f=S.useRef(null),p=S.useRef(null),g=S.useRef({type:""}),m=()=>({...g.current,current(){return g.current},previous(){return p.current}}),b=()=>({..._,matches(...O){return O.includes(_.ref.current)},hasTag(O){var I,D;return!!((D=(I=e.states[_.ref.current])==null?void 0:I.tags)!=null&&D.includes(O))}}),v=KS(((Q=e.refs)==null?void 0:Q.call(e,{prop:a,context:c}))??{}),x=()=>({state:b(),context:c,event:m(),prop:a,send:U,action:y,guard:h,track:YS,refs:v,computed:j,flush:Di,scope:r,choose:E}),y=O=>{const I=hr(O)?O(x()):O;if(!I)return;const D=I.map(k=>{var B,J;const M=(J=(B=e.implementations)==null?void 0:B.actions)==null?void 0:J[k];return M||Mi(`[zag-js] No implementation found for action "${JSON.stringify(k)}"`),M});for(const k of D)k==null||k(x())},h=O=>{var I,D;return hr(O)?O(x()):(D=(I=e.implementations)==null?void 0:I.guards)==null?void 0:D[O](x())},C=O=>{const I=hr(O)?O(x()):O;if(!I)return;const D=I.map(M=>{var J,T;const B=(T=(J=e.implementations)==null?void 0:J.effects)==null?void 0:T[M];return B||Mi(`[zag-js] No implementation found for effect "${JSON.stringify(M)}"`),B}),k=[];for(const M of D){const B=M==null?void 0:M(x());B&&k.push(B)}return()=>k.forEach(M=>M==null?void 0:M())},E=O=>bS(O).find(I=>{let D=!I.guard;return sn(I.guard)?D=!!h(I.guard):hr(I.guard)&&(D=I.guard(x())),D}),j=O=>{OS(e.computed,()=>"[zag-js] No computed object found on machine");const I=e.computed[O];return I({context:c,event:m(),prop:a,refs:v,scope:r,computed:j})},_=yn(()=>({defaultValue:e.initialState({prop:a}),onChange(O,I){var k,M,B,J;if(I){const T=u.current.get(I);T==null||T(),u.current.delete(I)}I&&y((k=e.states[I])==null?void 0:k.exit),y((M=f.current)==null?void 0:M.actions);const D=C((B=e.states[O])==null?void 0:B.effects);if(D&&u.current.set(O,D),I===To){y(e.entry);const T=C(e.effects);T&&u.current.set(To,T)}y((J=e.states[O])==null?void 0:J.entry)}})),P=S.useRef(void 0),N=S.useRef(Ht.NotStarted);Kf(()=>{queueMicrotask(()=>{const D=N.current===Ht.Started;N.current=Ht.Started,n(D?"rehydrating...":"initializing...");const k=P.current??_.initial;_.invoke(k,D?_.get():To)});const O=u.current,I=_.ref.current;return()=>{n("unmounting..."),P.current=I,N.current=Ht.Stopped,O.forEach(D=>D==null?void 0:D()),u.current=new Map,f.current=null,queueMicrotask(()=>{y(e.exit)})}},[]);const W=()=>"ref"in _?_.ref.current:_.get(),U=O=>{queueMicrotask(()=>{var J,T;if(N.current!==Ht.Started)return;p.current=g.current,g.current=O;let I=W();const D=((J=e.states[I].on)==null?void 0:J[O.type])??((T=e.on)==null?void 0:T[O.type]),k=E(D);if(!k)return;f.current=k;const M=k.target??I;n("transition",O.type,k.target||I,`(${k.actions})`);const B=M!==I;B?jr.flushSync(()=>_.set(M)):k.reenter&&!B?_.invoke(I,I):y(k.actions??[])})};return(V=e.watch)==null||V.call(e,x()),{state:b(),send:U,context:c,prop:a,scope:r,refs:v,computed:j,event:m(),getStatus:()=>N.current}}function Yf(e){const t=S.useRef(e);return t.current=e,t}function ZS(e){const t=Yf(e);return function(n){return t.current[n]}}function Di(e){queueMicrotask(()=>{jr.flushSync(()=>e())})}var JS=US(e=>e);function QS(...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 eE(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 _o=e=>{const t=S.memo(S.forwardRef((r,n)=>{const{asChild:o,children:a,...i}=r;if(!o)return S.createElement(e,{...i,ref:n},a);if(!S.isValidElement(a))return null;const l=S.Children.only(a),c=eE(l);return S.cloneElement(l,{...Be(i,l.props),ref:n?QS(n,c):c})}));return t.displayName=e.displayName||e.name,t},tE=()=>{const e=new Map;return new Proxy(_o,{apply(t,r,n){return _o(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,_o(n)),e.get(n)}})},Xe=tE();function rE(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Br(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:a,defaultValue:i}=e,l=S.createContext(i);l.displayName=t;function c(){var f;const u=S.useContext(l);if(!u&&r){const p=new Error(a??rE(n,o));throw p.name="ContextError",(f=Error.captureStackTrace)==null||f.call(Error,p,c),p}return u}return[l.Provider,c,l]}const[nE,ot]=Br({name:"StepsContext",hookName:"useStepsContext",providerName:"<StepsProvider />"}),Xf=S.forwardRef((e,t)=>{const r=ot(),n=Be(r.getContentProps({index:r.count}),e);return s.jsx(Xe.div,{...n,ref:t})});Xf.displayName="StepsCompletedContent";const rs=()=>(e,t)=>t.reduce((r,n)=>{const[o,a]=r,i=n;return a[i]!==void 0&&(o[i]=a[i]),delete a[i],[o,a]},[{},{...e}]),Zf=S.forwardRef((e,t)=>{const[r,n]=rs()(e,["index"]),o=ot(),a=Be(o.getContentProps(r),n);return s.jsx(Xe.div,{...a,ref:t})});Zf.displayName="StepsContent";const[oE,ns]=Br({name:"StepsItemPropsContext",hookName:"useStepsItemPropsContext",providerName:"<StepsItemPropsProvider />"}),Jf=S.forwardRef((e,t)=>{const r=ot(),n=ns(),o=Be(r.getIndicatorProps(n),e);return s.jsx(Xe.div,{...o,ref:t})});Jf.displayName="StepsIndicator";const[aE,KR]=Br({name:"StepsItemContext",hookName:"useStepsItemContext",providerName:"<StepsItem />"}),Qf=S.forwardRef((e,t)=>{const[r,n]=rs()(e,["index"]),o=ot(),a=Be(o.getItemProps(r),n),i=o.getItemState(r);return s.jsx(oE,{value:r,children:s.jsx(aE,{value:i,children:s.jsx(Xe.div,{...a,ref:t})})})});Qf.displayName="StepsItem";const ep=S.forwardRef((e,t)=>{const r=ot(),n=Be(r.getListProps(),e);return s.jsx(Xe.div,{...n,ref:t})});ep.displayName="StepsList";const tp=S.forwardRef((e,t)=>{const r=ot(),n=Be(r.getNextTriggerProps(),e);return s.jsx(Xe.button,{...n,ref:t})});tp.displayName="StepsNextTrigger";const rp=S.forwardRef((e,t)=>{const r=ot(),n=Be(r.getPrevTriggerProps(),e);return s.jsx(Xe.button,{...n,ref:t})});rp.displayName="StepsPrevTrigger";var xr=(e,t=[])=>({parts:(...r)=>{if(sE(t))return xr(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>xr(e,[...t,...r]),omit:(...r)=>xr(e,t.filter(n=>!r.includes(n))),rename:r=>xr(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${zt(e)}"][data-part="${zt(n)}"]`,`& [data-scope="${zt(e)}"][data-part="${zt(n)}"]`].join(", "),attrs:{"data-scope":zt(e),"data-part":zt(n)}}}),{})}),zt=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),sE=e=>e.length===0,iE=xr("steps").parts("root","list","item","trigger","indicator","separator","content","nextTrigger","prevTrigger","progress"),ze=iE.build(),lE=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`steps:${e.id}`},cE=e=>{var t;return((t=e.ids)==null?void 0:t.list)??`steps:${e.id}:list`},$i=(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}`},dE=(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 uE(e,t){const{context:r,send:n,computed:o,prop:a,scope:i}=e,l=r.get("step"),c=a("count"),u=o("percent"),f=o("hasNextStep"),p=o("hasPrevStep"),g=y=>({triggerId:$i(i,y.index),contentId:dE(i,y.index),current:y.index===l,completed:y.index<l,incomplete:y.index>l,index:y.index,first:y.index===0,last:y.index===c-1}),m=()=>{n({type:"STEP.NEXT",src:"next.trigger.click"})},b=()=>{n({type:"STEP.PREV",src:"prev.trigger.click"})},v=()=>{n({type:"STEP.RESET",src:"reset.trigger.click"})},x=y=>{n({type:"STEP.SET",value:y,src:"api.setValue"})};return{value:l,count:c,percent:u,hasNextStep:f,hasPrevStep:p,isCompleted:o("completed"),goToNextStep:m,goToPrevStep:b,resetStep:v,getItemState:g,setStep:x,getRootProps(){return t.element({...ze.root.attrs,id:lE(i),dir:a("dir"),"data-orientation":a("orientation"),style:{"--percent":`${u}%`}})},getListProps(){const h=yS(c).map((C,E)=>$i(i,E));return t.element({...ze.list.attrs,dir:a("dir"),id:cE(i),role:"tablist","aria-owns":h.join(" "),"aria-orientation":a("orientation"),"data-orientation":a("orientation")})},getItemProps(y){const h=g(y);return t.element({...ze.item.attrs,dir:a("dir"),"aria-current":h.current?"step":void 0,"data-orientation":a("orientation")})},getTriggerProps(y){const h=g(y);return t.button({...ze.trigger.attrs,id:h.triggerId,role:"tab",dir:a("dir"),tabIndex:!a("linear")||h.current?0:-1,"aria-selected":h.current,"aria-controls":h.contentId,"data-state":h.current?"open":"closed","data-orientation":a("orientation"),"data-complete":We(h.completed),"data-current":We(h.current),"data-incomplete":We(h.incomplete),onClick(C){C.defaultPrevented||a("linear")||n({type:"STEP.SET",value:y.index,src:"trigger.click"})}})},getContentProps(y){const h=g(y);return t.element({...ze.content.attrs,dir:a("dir"),id:h.contentId,role:"tabpanel",tabIndex:0,hidden:!h.current,"data-state":h.current?"open":"closed","data-orientation":a("orientation"),"aria-labelledby":h.triggerId})},getIndicatorProps(y){const h=g(y);return t.element({...ze.indicator.attrs,dir:a("dir"),"aria-hidden":!0,"data-complete":We(h.completed),"data-current":We(h.current),"data-incomplete":We(h.incomplete)})},getSeparatorProps(y){const h=g(y);return t.element({...ze.separator.attrs,dir:a("dir"),"data-orientation":a("orientation"),"data-complete":We(h.completed),"data-current":We(h.current),"data-incomplete":We(h.incomplete)})},getNextTriggerProps(){return t.button({...ze.nextTrigger.attrs,dir:a("dir"),type:"button",disabled:!f,onClick(y){y.defaultPrevented||m()}})},getPrevTriggerProps(){return t.button({dir:a("dir"),...ze.prevTrigger.attrs,type:"button",disabled:!p,onClick(y){y.defaultPrevented||b()}})},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":We(u===100)})}}}var fE={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:zS(({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}){pE(t("count"),e.get("step"))}}}},pE=(e,t)=>{if(!MS(t,0,e))throw new RangeError(`[zag-js/steps] step index ${t} is out of bounds`)};HS()(["count","dir","getRootNode","id","ids","linear","onStepChange","onStepComplete","orientation","step","defaultStep"]);const[YR,mE]=Br({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[XR,gE]=Br({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function vE(e){const t=S.useId(),{getRootNode:r}=mE(),{dir:n}=gE(),o={id:t,dir:n,getRootNode:r,...e},a=XS(fE,o);return uE(a,JS)}const np=S.forwardRef((e,t)=>{const[r,n]=rs()(e,["defaultStep","id","ids","count","linear","onStepChange","onStepComplete","orientation","step"]),o=vE(r),a=Be(o.getRootProps(),n);return s.jsx(nE,{value:o,children:s.jsx(Xe.div,{...a,ref:t})})});np.displayName="StepsRoot";const op=S.forwardRef((e,t)=>{const r=ot(),n=ns(),o=Be(r.getSeparatorProps(n),e);return s.jsx(Xe.div,{...o,ref:t})});op.displayName="StepsSeparator";const ap=S.forwardRef((e,t)=>{const r=ot(),n=ns(),o=Be(r.getTriggerProps(n),e);return s.jsx(Xe.button,{...o,ref:t})});ap.displayName="StepsTrigger";function hE(e){return Gu({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 sp=S.createContext(void 0),xE=({children:e,step:t})=>s.jsx(sp.Provider,{value:{step:t},children:e}),ip=()=>{const e=S.useContext(sp);if(!e)throw new Error("useSteps must be used within a StepsProvider");return e},bE=({className:e,step:t,...r})=>{const n=R("qodo qodo-steps","flex flex-col gap-4",e);return s.jsx(xE,{step:t??0,children:s.jsx(np,{className:n,step:t,...r})})},yE=({className:e,...t})=>{const r=R("flex flex-row gap-4",e);return s.jsx(ep,{className:r,...t})},wE=({className:e,...t})=>{const r=R("flex flex-row items-center gap-4",e);return s.jsx(Qf,{className:r,...t})},CE=({className:e,...t})=>{const r=R("flex flex-row items-center gap-4 text-purple-muted-100 text-sm",e);return s.jsx(ap,{className:r,...t})},SE=({index:e,className:t,...r})=>{const{step:n}=ip(),o=e===n,a=e<n,i=R("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=R({"text-white":o,"text-purple-muted-300":!a&&e!==n});return s.jsx(Jf,{className:i,...r,children:a?s.jsx(hE,{className:"text-green-400"}):s.jsx("span",{className:l,children:e+1})})},EE=({index:e,className:t,...r})=>{const{step:n}=ip(),o=e<n,a=R("min-w-12 h-px",o?"bg-green-400":"bg-gray-400",t);return s.jsx(op,{className:a,...r})},kE=({className:e,...t})=>{const r=R(e);return s.jsx(Zf,{className:r,...t})},RE=({className:e,...t})=>{const r=R(e);return s.jsx(Xf,{className:r,...t})},NE=({className:e,...t})=>{const r=R("bg-primary text-white px-4 py-2 rounded-md",e);return s.jsx(rp,{className:r,...t})},jE=({className:e,...t})=>{const r=R("bg-primary text-white px-4 py-2 rounded-md",e);return s.jsx(tp,{className:r,...t})},PE={Root:bE,List:yE,Item:wE,Trigger:CE,Indicator:SE,Separator:EE,Content:kE,CompletedContent:RE,PrevTrigger:NE,NextTrigger:jE},Gr=({children:e,content:t,providerProps:r={},triggerProps:n={},contentProps:o={}})=>s.jsx(tf,{...r,children:s.jsxs(rf,{children:[s.jsx(nf,{...n,children:e}),t&&s.jsx(of,{...o,children:t})]})});/**
209
+ Defaulting to \`null\`.`}var HC=ip,WC=sp;function KC({className:e,value:t,...n}){return u.jsx(HC,{"data-slot":"progress",className:O("qodo qodo-progress bg-primary/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-primary/20",e),...n,children:u.jsx(WC,{"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 cp({className:e,...t}){return u.jsx("div",{className:O("qodo qodo-skeleton animate-pulse rounded-md bg-neutral-900/10 dark:bg-neutral-50/10",e),...t})}var Yo="Switch",[YC,t2]=Ae(Yo),[XC,ZC]=YC(Yo),up=h.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:c,form:d,...f}=e,[m,p]=h.useState(null),v=de(t,k=>p(k)),g=h.useRef(!1),x=m?d||!!m.closest("form"):!0,[y,b]=je({prop:o,defaultProp:i??!1,onChange:c,caller:Yo});return u.jsxs(XC,{scope:n,checked:y,disabled:s,children:[u.jsx(te.button,{type:"button",role:"switch","aria-checked":y,"aria-required":a,"data-state":mp(y),"data-disabled":s?"":void 0,disabled:s,value:l,...f,ref:v,onClick:J(e.onClick,k=>{b(P=>!P),x&&(g.current=k.isPropagationStopped(),g.current||k.stopPropagation())})}),x&&u.jsx(pp,{control:m,bubbles:!g.current,name:r,value:l,checked:y,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});up.displayName=Yo;var dp="SwitchThumb",fp=h.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=ZC(dp,n);return u.jsx(te.span,{"data-state":mp(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});fp.displayName=dp;var JC="SwitchBubbleInput",pp=h.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const a=h.useRef(null),s=de(a,i),l=zo(n),c=Lo(t);return h.useEffect(()=>{const d=a.current;if(!d)return;const f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&p){const v=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(v)}},[l,n,r]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});pp.displayName=JC;function mp(e){return e?"checked":"unchecked"}var QC=up,e1=fp;const t1=dn("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"}}),n1=dn("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 r1({className:e,size:t,...n}){return u.jsx(QC,{"data-slot":"switch",className:O(t1({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),...n,children:u.jsx(e1,{"data-slot":"switch-thumb",className:O(n1({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 hp="Toggle",is=h.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...i}=e,[a,s]=je({prop:n,onChange:o,defaultProp:r??!1,caller:hp});return u.jsx(te.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:J(e.onClick,()=>{e.disabled||s(!a)})})});is.displayName=hp;var o1=is;const gp=dn("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 i1({className:e,variant:t,size:n,...r}){return u.jsx(o1,{"data-slot":"toggle",className:O(gp({variant:t,size:n,className:e})),...r})}var _i="rovingFocusGroup.onEntryFocus",a1={bubbles:!1,cancelable:!0},_r="RovingFocusGroup",[ma,vp,s1]=jo(_r),[l1,Wt]=Ae(_r,[s1]),[c1,u1]=l1(_r),xp=h.forwardRef((e,t)=>u.jsx(ma.Provider,{scope:e.__scopeRovingFocusGroup,children:u.jsx(ma.Slot,{scope:e.__scopeRovingFocusGroup,children:u.jsx(d1,{...e,ref:t})})}));xp.displayName=_r;var d1=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,m=h.useRef(null),p=de(t,m),v=fn(i),[g,x]=je({prop:a,defaultProp:s??null,onChange:l,caller:_r}),[y,b]=h.useState(!1),k=lt(c),P=vp(n),N=h.useRef(!1),[S,I]=h.useState(0);return h.useEffect(()=>{const j=m.current;if(j)return j.addEventListener(_i,k),()=>j.removeEventListener(_i,k)},[k]),u.jsx(c1,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:g,onItemFocus:h.useCallback(j=>x(j),[x]),onItemShiftTab:h.useCallback(()=>b(!0),[]),onFocusableItemAdd:h.useCallback(()=>I(j=>j+1),[]),onFocusableItemRemove:h.useCallback(()=>I(j=>j-1),[]),children:u.jsx(te.div,{tabIndex:y||S===0?-1:0,"data-orientation":r,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:J(e.onMouseDown,()=>{N.current=!0}),onFocus:J(e.onFocus,j=>{const q=!N.current;if(j.target===j.currentTarget&&q&&!y){const U=new CustomEvent(_i,a1);if(j.currentTarget.dispatchEvent(U),!U.defaultPrevented){const G=P().filter(_=>_.focusable),V=G.find(_=>_.active),K=G.find(_=>_.id===g),T=[V,K,...G].filter(Boolean).map(_=>_.ref.current);wp(T,d)}}N.current=!1}),onBlur:J(e.onBlur,()=>b(!1))})})}),bp="RovingFocusGroupItem",yp=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:a,...s}=e,l=Ee(),c=i||l,d=u1(bp,n),f=d.currentTabStopId===c,m=vp(n),{onFocusableItemAdd:p,onFocusableItemRemove:v,currentTabStopId:g}=d;return h.useEffect(()=>{if(r)return p(),()=>v()},[r,p,v]),u.jsx(ma.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:u.jsx(te.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:J(e.onMouseDown,x=>{r?d.onItemFocus(c):x.preventDefault()}),onFocus:J(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:J(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const y=m1(x,d.orientation,d.dir);if(y!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let k=m().filter(P=>P.focusable).map(P=>P.ref.current);if(y==="last")k.reverse();else if(y==="prev"||y==="next"){y==="prev"&&k.reverse();const P=k.indexOf(x.currentTarget);k=d.loop?h1(k,P+1):k.slice(P+1)}setTimeout(()=>wp(k))}}),children:typeof a=="function"?a({isCurrentTabStop:f,hasTabStop:g!=null}):a})})});yp.displayName=bp;var f1={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function p1(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function m1(e,t,n){const r=p1(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return f1[r]}function wp(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function h1(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Xo=xp,Zo=yp,Kt="ToggleGroup",[Cp,n2]=Ae(Kt,[Wt]),kp=Wt(),as=R.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return u.jsx(g1,{...o,ref:t})}if(n==="multiple"){const o=r;return u.jsx(v1,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Kt}\``)});as.displayName=Kt;var[Sp,Ep]=Cp(Kt),g1=R.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a,s]=je({prop:n,defaultProp:r??"",onChange:o,caller:Kt});return u.jsx(Sp,{scope:e.__scopeToggleGroup,type:"single",value:R.useMemo(()=>a?[a]:[],[a]),onItemActivate:s,onItemDeactivate:R.useCallback(()=>s(""),[s]),children:u.jsx(Pp,{...i,ref:t})})}),v1=R.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a,s]=je({prop:n,defaultProp:r??[],onChange:o,caller:Kt}),l=R.useCallback(d=>s((f=[])=>[...f,d]),[s]),c=R.useCallback(d=>s((f=[])=>f.filter(m=>m!==d)),[s]);return u.jsx(Sp,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:l,onItemDeactivate:c,children:u.jsx(Pp,{...i,ref:t})})});as.displayName=Kt;var[x1,b1]=Cp(Kt),Pp=R.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:i,dir:a,loop:s=!0,...l}=e,c=kp(n),d=fn(a),f={role:"group",dir:d,...l};return u.jsx(x1,{scope:n,rovingFocus:o,disabled:r,children:o?u.jsx(Xo,{asChild:!0,...c,orientation:i,dir:d,loop:s,children:u.jsx(te.div,{...f,ref:t})}):u.jsx(te.div,{...f,ref:t})})}),xo="ToggleGroupItem",Rp=R.forwardRef((e,t)=>{const n=Ep(xo,e.__scopeToggleGroup),r=b1(xo,e.__scopeToggleGroup),o=kp(e.__scopeToggleGroup),i=n.value.includes(e.value),a=r.disabled||e.disabled,s={...e,pressed:i,disabled:a},l=R.useRef(null);return r.rovingFocus?u.jsx(Zo,{asChild:!0,...o,focusable:!a,active:i,ref:l,children:u.jsx(Ql,{...s,ref:t})}):u.jsx(Ql,{...s,ref:t})});Rp.displayName=xo;var Ql=R.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,i=Ep(xo,n),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=i.type==="single"?a:void 0;return u.jsx(is,{...s,...o,ref:t,onPressedChange:l=>{l?i.onItemActivate(r):i.onItemDeactivate(r)}})}),y1=as,w1=Rp;const Np=h.createContext({size:"default",variant:"default"});function C1({className:e,variant:t,size:n,children:r,...o}){return u.jsx(y1,{"data-slot":"toggle-group","data-variant":t,"data-size":n,className:O("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:u.jsx(Np.Provider,{value:{variant:t,size:n},children:r})})}function k1({className:e,children:t,variant:n,size:r,...o}){const i=h.useContext(Np);return u.jsx(w1,{"data-slot":"toggle-group-item","data-variant":i.variant||n,"data-size":i.size||r,className:O(gp({variant:i.variant||n,size:i.size||r}),"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 Jo="Collapsible",[S1,Tp]=Ae(Jo),[E1,ss]=S1(Jo),Ip=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...s}=e,[l,c]=je({prop:r,defaultProp:o??!1,onChange:a,caller:Jo});return u.jsx(E1,{scope:n,disabled:i,contentId:Ee(),open:l,onOpenToggle:h.useCallback(()=>c(d=>!d),[c]),children:u.jsx(te.div,{"data-state":cs(l),"data-disabled":i?"":void 0,...s,ref:t})})});Ip.displayName=Jo;var jp="CollapsibleTrigger",Ap=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=ss(jp,n);return u.jsx(te.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":cs(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:J(e.onClick,o.onOpenToggle)})});Ap.displayName=jp;var ls="CollapsibleContent",_p=h.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=ss(ls,e.__scopeCollapsible);return u.jsx(Oe,{present:n||o.open,children:({present:i})=>u.jsx(P1,{...r,ref:t,present:i})})});_p.displayName=ls;var P1=h.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=ss(ls,n),[s,l]=h.useState(r),c=h.useRef(null),d=de(t,c),f=h.useRef(0),m=f.current,p=h.useRef(0),v=p.current,g=a.open||s,x=h.useRef(g),y=h.useRef(void 0);return h.useEffect(()=>{const b=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(b)},[]),Me(()=>{const b=c.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const k=b.getBoundingClientRect();f.current=k.height,p.current=k.width,x.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),l(r)}},[a.open,r]),u.jsx(te.div,{"data-state":cs(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g,...i,ref:d,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...e.style},children:g&&o})});function cs(e){return e?"open":"closed"}var R1=Ip,N1=Ap,T1=_p,ft="Accordion",I1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[us,j1,A1]=jo(ft),[Qo,r2]=Ae(ft,[A1,Tp]),ds=Tp(),Mp=R.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return u.jsx(us.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?u.jsx(D1,{...i,ref:t}):u.jsx(O1,{...o,ref:t})})});Mp.displayName=ft;var[Op,_1]=Qo(ft),[Dp,M1]=Qo(ft,{collapsible:!1}),O1=R.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[s,l]=je({prop:n,defaultProp:r??"",onChange:o,caller:ft});return u.jsx(Op,{scope:e.__scopeAccordion,value:R.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:R.useCallback(()=>i&&l(""),[i,l]),children:u.jsx(Dp,{scope:e.__scopeAccordion,collapsible:i,children:u.jsx(Lp,{...a,ref:t})})})}),D1=R.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a,s]=je({prop:n,defaultProp:r??[],onChange:o,caller:ft}),l=R.useCallback(d=>s((f=[])=>[...f,d]),[s]),c=R.useCallback(d=>s((f=[])=>f.filter(m=>m!==d)),[s]);return u.jsx(Op,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:c,children:u.jsx(Dp,{scope:e.__scopeAccordion,collapsible:!0,children:u.jsx(Lp,{...i,ref:t})})})}),[L1,ei]=Qo(ft),Lp=R.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,s=R.useRef(null),l=de(s,t),c=j1(n),f=fn(o)==="ltr",m=J(e.onKeyDown,p=>{var j;if(!I1.includes(p.key))return;const v=p.target,g=c().filter(q=>{var U;return!((U=q.ref.current)!=null&&U.disabled)}),x=g.findIndex(q=>q.ref.current===v),y=g.length;if(x===-1)return;p.preventDefault();let b=x;const k=0,P=y-1,N=()=>{b=x+1,b>P&&(b=k)},S=()=>{b=x-1,b<k&&(b=P)};switch(p.key){case"Home":b=k;break;case"End":b=P;break;case"ArrowRight":i==="horizontal"&&(f?N():S());break;case"ArrowDown":i==="vertical"&&N();break;case"ArrowLeft":i==="horizontal"&&(f?S():N());break;case"ArrowUp":i==="vertical"&&S();break}const I=b%y;(j=g[I].ref.current)==null||j.focus()});return u.jsx(L1,{scope:n,disabled:r,direction:o,orientation:i,children:u.jsx(us.Slot,{scope:n,children:u.jsx(te.div,{...a,"data-orientation":i,ref:l,onKeyDown:r?void 0:m})})})}),bo="AccordionItem",[F1,fs]=Qo(bo),Fp=R.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=ei(bo,n),a=_1(bo,n),s=ds(n),l=Ee(),c=r&&a.value.includes(r)||!1,d=i.disabled||e.disabled;return u.jsx(F1,{scope:n,open:c,disabled:d,triggerId:l,children:u.jsx(R1,{"data-orientation":i.orientation,"data-state":Gp(c),...s,...o,ref:t,disabled:d,open:c,onOpenChange:f=>{f?a.onItemOpen(r):a.onItemClose(r)}})})});Fp.displayName=bo;var $p="AccordionHeader",zp=R.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ei(ft,n),i=fs($p,n);return u.jsx(te.h3,{"data-orientation":o.orientation,"data-state":Gp(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});zp.displayName=$p;var ha="AccordionTrigger",Bp=R.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ei(ft,n),i=fs(ha,n),a=M1(ha,n),s=ds(n);return u.jsx(us.ItemSlot,{scope:n,children:u.jsx(N1,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...r,ref:t})})});Bp.displayName=ha;var Vp="AccordionContent",qp=R.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ei(ft,n),i=fs(Vp,n),a=ds(n);return u.jsx(T1,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});qp.displayName=Vp;function Gp(e){return e?"open":"closed"}var $1=Mp,z1=Fp,B1=zp,V1=Bp,q1=qp;const ps=h.createContext({variant:"default"});function G1({variant:e="default",...t}){return u.jsx(ps.Provider,{value:{variant:e},children:u.jsx($1,{"data-slot":"accordion",...t})})}function U1({className:e,...t}){const{variant:n}=h.useContext(ps);return u.jsx(z1,{"data-slot":"accordion-item",className:O("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)]":n==="default","border border-[var(--color-neutral-600)] mb-2 px-4 rounded-lg":n==="outlined","bg-[var(--fill-interactive-neutral-idle)] mb-2 px-2 rounded-lg":n==="filled"},e),...t})}function H1({className:e,children:t,iconPosition:n="right",...r}){const{variant:o}=h.useContext(ps);return u.jsx(B1,{className:"flex",children:u.jsxs(V1,{"data-slot":"accordion-trigger",className:O("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":n==="left"},e),...r,children:[t,u.jsx(To,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200 dark:text-muted-foreground"})]})})}function W1({className:e,children:t,...n}){return u.jsx(q1,{"data-slot":"accordion-content",className:O("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"),...n,children:u.jsx("div",{className:O("pt-0 pb-4","text-text-interactive-neutral-idle font-normal text-sm",e),children:t})})}var ti="Tabs",[K1,o2]=Ae(ti,[Wt]),Up=Wt(),[Y1,ms]=K1(ti),Hp=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...c}=e,d=fn(s),[f,m]=je({prop:r,onChange:o,defaultProp:i??"",caller:ti});return u.jsx(Y1,{scope:n,baseId:Ee(),value:f,onValueChange:m,orientation:a,dir:d,activationMode:l,children:u.jsx(te.div,{dir:d,"data-orientation":a,...c,ref:t})})});Hp.displayName=ti;var Wp="TabsList",Kp=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=ms(Wp,n),a=Up(n);return u.jsx(Xo,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:u.jsx(te.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});Kp.displayName=Wp;var Yp="TabsTrigger",Xp=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=ms(Yp,n),s=Up(n),l=Qp(a.baseId,r),c=em(a.baseId,r),d=r===a.value;return u.jsx(Zo,{asChild:!0,...s,focusable:!o,active:d,children:u.jsx(te.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...i,ref:t,onMouseDown:J(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?a.onValueChange(r):f.preventDefault()}),onKeyDown:J(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&a.onValueChange(r)}),onFocus:J(e.onFocus,()=>{const f=a.activationMode!=="manual";!d&&!o&&f&&a.onValueChange(r)})})})});Xp.displayName=Yp;var Zp="TabsContent",Jp=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=ms(Zp,n),l=Qp(s.baseId,r),c=em(s.baseId,r),d=r===s.value,f=h.useRef(d);return h.useEffect(()=>{const m=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(m)},[]),u.jsx(Oe,{present:o||d,children:({present:m})=>u.jsx(te.div,{"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!m,id:c,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:m&&i})})});Jp.displayName=Zp;function Qp(e,t){return`${e}-trigger-${t}`}function em(e,t){return`${e}-content-${t}`}var X1=Hp,Z1=Kp,J1=Xp,Q1=Jp;function ek({className:e,...t}){return u.jsx(X1,{"data-slot":"tabs",className:O("qodo qodo-tabs flex flex-col gap-2",e),...t})}function tk({className:e,...t}){return u.jsx(Z1,{"data-slot":"tabs-list",className:O("inline-flex w-full items-end justify-start gap-4",e),...t})}function nk({className:e,...t}){return u.jsx(J1,{"data-slot":"tabs-trigger",className:O("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 rk({className:e,...t}){return u.jsx(Q1,{"data-slot":"tabs-content",className:O("flex-1 outline-none",e),...t})}const tm=dn("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"}}),nm=h.forwardRef(({className:e,variant:t,as:n,...r},o)=>{const i=n||ok(t)||"p";return h.createElement(i,{className:O(tm({variant:t,className:e})),ref:o,...r})});nm.displayName="Typography";function ok(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 ik(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ak=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,lk={};function ec(e,t){return(lk.jsx?sk:ak).test(e)}const ck=/[ \t\n\f\r]/g;function uk(e){return typeof e=="object"?e.type==="text"?tc(e.value):!1:tc(e)}function tc(e){return e.replace(ck,"")===""}class Mr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Mr.prototype.normal={};Mr.prototype.property={};Mr.prototype.space=void 0;function rm(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Mr(n,r,t)}function ga(e){return e.toLowerCase()}class He{constructor(t,n){this.attribute=n,this.property=t}}He.prototype.attribute="";He.prototype.booleanish=!1;He.prototype.boolean=!1;He.prototype.commaOrSpaceSeparated=!1;He.prototype.commaSeparated=!1;He.prototype.defined=!1;He.prototype.mustUseProperty=!1;He.prototype.number=!1;He.prototype.overloadedBoolean=!1;He.prototype.property="";He.prototype.spaceSeparated=!1;He.prototype.space=void 0;let dk=0;const ue=mn(),Te=mn(),va=mn(),W=mn(),Ce=mn(),_n=mn(),Ze=mn();function mn(){return 2**++dk}const xa=Object.freeze(Object.defineProperty({__proto__:null,boolean:ue,booleanish:Te,commaOrSpaceSeparated:Ze,commaSeparated:_n,number:W,overloadedBoolean:va,spaceSeparated:Ce},Symbol.toStringTag,{value:"Module"})),Mi=Object.keys(xa);class hs extends He{constructor(t,n,r,o){let i=-1;if(super(t,n),nc(this,"space",o),typeof r=="number")for(;++i<Mi.length;){const a=Mi[i];nc(this,Mi[i],(r&xa[a])===xa[a])}}}hs.prototype.defined=!0;function nc(e,t,n){n&&(e[t]=n)}function Wn(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new hs(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[ga(r)]=r,n[ga(i.attribute)]=r}return new Mr(t,n,e.space)}const om=Wn({properties:{ariaActiveDescendant:null,ariaAtomic:Te,ariaAutoComplete:null,ariaBusy:Te,ariaChecked:Te,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Ce,ariaCurrent:null,ariaDescribedBy:Ce,ariaDetails:null,ariaDisabled:Te,ariaDropEffect:Ce,ariaErrorMessage:null,ariaExpanded:Te,ariaFlowTo:Ce,ariaGrabbed:Te,ariaHasPopup:null,ariaHidden:Te,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ce,ariaLevel:W,ariaLive:null,ariaModal:Te,ariaMultiLine:Te,ariaMultiSelectable:Te,ariaOrientation:null,ariaOwns:Ce,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:Te,ariaReadOnly:Te,ariaRelevant:null,ariaRequired:Te,ariaRoleDescription:Ce,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:Te,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function im(e,t){return t in e?e[t]:t}function am(e,t){return im(e,t.toLowerCase())}const fk=Wn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_n,acceptCharset:Ce,accessKey:Ce,action:null,allow:null,allowFullScreen:ue,allowPaymentRequest:ue,allowUserMedia:ue,alt:null,as:null,async:ue,autoCapitalize:null,autoComplete:Ce,autoFocus:ue,autoPlay:ue,blocking:Ce,capture:null,charSet:null,checked:ue,cite:null,className:Ce,cols:W,colSpan:null,content:null,contentEditable:Te,controls:ue,controlsList:Ce,coords:W|_n,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ue,defer:ue,dir:null,dirName:null,disabled:ue,download:va,draggable:Te,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ue,formTarget:null,headers:Ce,height:W,hidden:va,high:W,href:null,hrefLang:null,htmlFor:Ce,httpEquiv:Ce,id:null,imageSizes:null,imageSrcSet:null,inert:ue,inputMode:null,integrity:null,is:null,isMap:ue,itemId:null,itemProp:Ce,itemRef:Ce,itemScope:ue,itemType:Ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ue,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:ue,muted:ue,name:null,nonce:null,noModule:ue,noValidate:ue,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ue,optimum:W,pattern:null,ping:Ce,placeholder:null,playsInline:ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ue,referrerPolicy:null,rel:Ce,required:ue,reversed:ue,rows:W,rowSpan:W,sandbox:Ce,scope:null,scoped:ue,seamless:ue,selected:ue,shadowRootClonable:ue,shadowRootDelegatesFocus:ue,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:Te,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:ue,useMap:null,value:Te,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ce,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ue,declare:ue,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:ue,noHref:ue,noShade:ue,noWrap:ue,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:Te,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ue,disableRemotePlayback:ue,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:am}),pk=Wn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ze,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:Ce,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:_n,g2:_n,glyphName:_n,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:im}),sm=Wn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),lm=Wn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:am}),cm=Wn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),mk={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hk=/[A-Z]/g,rc=/-[a-z]/g,gk=/^data[-\w.:]+$/i;function vk(e,t){const n=ga(t);let r=t,o=He;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&gk.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(rc,bk);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!rc.test(i)){let a=i.replace(hk,xk);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}o=hs}return new o(r,t)}function xk(e){return"-"+e.toLowerCase()}function bk(e){return e.charAt(1).toUpperCase()}const yk=rm([om,fk,sm,lm,cm],"html"),gs=rm([om,pk,sm,lm,cm],"svg");function wk(e){return e.join(" ").trim()}var En={},Oi,oc;function Ck(){if(oc)return Oi;oc=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
210
+ `,c="/",d="*",f="",m="comment",p="declaration";function v(x,y){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];y=y||{};var b=1,k=1;function P(L){var T=L.match(t);T&&(b+=T.length);var _=L.lastIndexOf(l);k=~_?L.length-_:k+L.length}function N(){var L={line:b,column:k};return function(T){return T.position=new S(L),q(),T}}function S(L){this.start=L,this.end={line:b,column:k},this.source=y.source}S.prototype.content=x;function I(L){var T=new Error(y.source+":"+b+":"+k+": "+L);if(T.reason=L,T.filename=y.source,T.line=b,T.column=k,T.source=x,!y.silent)throw T}function j(L){var T=L.exec(x);if(T){var _=T[0];return P(_),x=x.slice(_.length),T}}function q(){j(n)}function U(L){var T;for(L=L||[];T=G();)T!==!1&&L.push(T);return L}function G(){var L=N();if(!(c!=x.charAt(0)||d!=x.charAt(1))){for(var T=2;f!=x.charAt(T)&&(d!=x.charAt(T)||c!=x.charAt(T+1));)++T;if(T+=2,f===x.charAt(T-1))return I("End of comment missing");var _=x.slice(2,T-2);return k+=2,P(_),x=x.slice(T),k+=2,L({type:m,comment:_})}}function V(){var L=N(),T=j(r);if(T){if(G(),!j(o))return I("property missing ':'");var _=j(i),F=L({type:p,property:g(T[0].replace(e,f)),value:_?g(_[0].replace(e,f)):f});return j(a),F}}function K(){var L=[];U(L);for(var T;T=V();)T!==!1&&(L.push(T),U(L));return L}return q(),K()}function g(x){return x?x.replace(s,f):f}return Oi=v,Oi}var ic;function kk(){if(ic)return En;ic=1;var e=En&&En.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(En,"__esModule",{value:!0}),En.default=n;const t=e(Ck());function n(r,o){let i=null;if(!r||typeof r!="string")return i;const a=(0,t.default)(r),s=typeof o=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:d}=l;s?o(c,d,l):d&&(i=i||{},i[c]=d)}),i}return En}var nr={},ac;function Sk(){if(ac)return nr;ac=1,Object.defineProperty(nr,"__esModule",{value:!0}),nr.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(c){return!c||n.test(c)||e.test(c)},a=function(c,d){return d.toUpperCase()},s=function(c,d){return"".concat(d,"-")},l=function(c,d){return d===void 0&&(d={}),i(c)?c:(c=c.toLowerCase(),d.reactCompat?c=c.replace(o,s):c=c.replace(r,s),c.replace(t,a))};return nr.camelCase=l,nr}var rr,sc;function Ek(){if(sc)return rr;sc=1;var e=rr&&rr.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(kk()),n=Sk();function r(o,i){var a={};return!o||typeof o!="string"||(0,t.default)(o,function(s,l){s&&l&&(a[(0,n.camelCase)(s,i)]=l)}),a}return r.default=r,rr=r,rr}var Pk=Ek();const Rk=vu(Pk),um=dm("end"),vs=dm("start");function dm(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Nk(e){const t=vs(e),n=um(e);if(t&&n)return{start:t,end:n}}function mr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?lc(e.position):"start"in e||"end"in e?lc(e):"line"in e||"column"in e?ba(e):""}function ba(e){return cc(e&&e.line)+":"+cc(e&&e.column)}function lc(e){return ba(e&&e.start)+"-"+ba(e&&e.end)}function cc(e){return e&&typeof e=="number"?e:1}class De extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},a=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?o=t:!i.cause&&t&&(a=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=s?s.line:void 0,this.name=mr(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}De.prototype.file="";De.prototype.name="";De.prototype.reason="";De.prototype.message="";De.prototype.stack="";De.prototype.column=void 0;De.prototype.line=void 0;De.prototype.ancestors=void 0;De.prototype.cause=void 0;De.prototype.fatal=void 0;De.prototype.place=void 0;De.prototype.ruleId=void 0;De.prototype.source=void 0;const xs={}.hasOwnProperty,Tk=new Map,Ik=/[A-Z]/g,jk=new Set(["table","tbody","thead","tfoot","tr"]),Ak=new Set(["td","th"]),fm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _k(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Bk(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=zk(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?gs:yk,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=pm(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function pm(e,t,n){if(t.type==="element")return Mk(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ok(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Lk(e,t,n);if(t.type==="mdxjsEsm")return Dk(e,t);if(t.type==="root")return Fk(e,t,n);if(t.type==="text")return $k(e,t)}function Mk(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=gs,e.schema=o),e.ancestors.push(t);const i=hm(e,t.tagName,!1),a=Vk(e,t);let s=ys(e,t);return jk.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!uk(l):!0})),mm(e,a,i,t),bs(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}function Ok(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}yr(e,t.position)}function Dk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);yr(e,t.position)}function Lk(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=gs,e.schema=o),e.ancestors.push(t);const i=t.name===null?e.Fragment:hm(e,t.name,!0),a=qk(e,t),s=ys(e,t);return mm(e,a,i,t),bs(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}function Fk(e,t,n){const r={};return bs(r,ys(e,t)),e.create(t,e.Fragment,r,n)}function $k(e,t){return t.value}function mm(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function bs(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function zk(e,t,n){return r;function r(o,i,a,s){const c=Array.isArray(a.children)?n:t;return s?c(i,a,s):c(i,a)}}function Bk(e,t){return n;function n(r,o,i,a){const s=Array.isArray(i.children),l=vs(r);return t(o,i,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Vk(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&xs.call(t.properties,o)){const i=Gk(e,o,t.properties[o]);if(i){const[a,s]=i;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&Ak.has(t.tagName)?r=s:n[a]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function qk(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const a=i.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else yr(e,t.position);else{const o=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else yr(e,t.position);else i=r.value===null?!0:r.value;n[o]=i}return n}function ys(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Tk;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=o.get(l)||0;a=l+"-"+c,o.set(l,c+1)}}const s=pm(e,i,a);s!==void 0&&n.push(s)}return n}function Gk(e,t,n){const r=vk(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ik(n):wk(n)),r.property==="style"){let o=typeof n=="object"?n:Uk(e,String(n));return e.stylePropertyNameCase==="css"&&(o=Hk(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?mk[r.property]||r.property:r.attribute,n]}}function Uk(e,t){try{return Rk(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new De("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=fm+"#cannot-parse-style-attribute",o}}function hm(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let i=-1,a;for(;++i<o.length;){const s=ec(o[i])?{type:"Identifier",name:o[i]}:{type:"Literal",value:o[i]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=a}else r=ec(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return xs.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);yr(e)}function yr(e,t){const n=new De("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=fm+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Hk(e){const t={};let n;for(n in e)xs.call(e,n)&&(t[Wk(n)]=e[n]);return t}function Wk(e){let t=e.replace(Ik,Kk);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Kk(e){return"-"+e.toLowerCase()}const Di={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Yk={};function Xk(e,t){const n=Yk,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return gm(e,r,o)}function gm(e,t,n){if(Zk(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return uc(e.children,t,n)}return Array.isArray(e)?uc(e,t,n):""}function uc(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=gm(e[o],t,n);return r.join("")}function Zk(e){return!!(e&&typeof e=="object")}const dc=document.createElement("i");function ws(e){const t="&"+e+";";dc.innerHTML=t;const n=dc.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ct(e,t,n,r){const o=e.length;let i=0,a;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);i<r.length;)a=r.slice(i,i+1e4),a.unshift(t,0),e.splice(...a),i+=1e4,t+=1e4}function rt(e,t){return e.length>0?(Ct(e,e.length,0,t),e):t}const fc={}.hasOwnProperty;function Jk(e){const t={};let n=-1;for(;++n<e.length;)Qk(t,e[n]);return t}function Qk(e,t){let n;for(n in t){const o=(fc.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let a;if(i)for(a in i){fc.call(o,a)||(o[a]=[]);const s=i[a];eS(o[a],Array.isArray(s)?s:s?[s]:[])}}}function eS(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ct(e,0,0,r)}function vm(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Mn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const xt=Yt(/[A-Za-z]/),Qe=Yt(/[\dA-Za-z]/),tS=Yt(/[#-'*+\--9=?A-Z^-~]/);function ya(e){return e!==null&&(e<32||e===127)}const wa=Yt(/\d/),nS=Yt(/[\dA-Fa-f]/),rS=Yt(/[!-/:-@[-`{-~]/);function se(e){return e!==null&&e<-2}function Ue(e){return e!==null&&(e<0||e===32)}function xe(e){return e===-2||e===-1||e===32}const oS=Yt(new RegExp("\\p{P}|\\p{S}","u")),iS=Yt(/\s/);function Yt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Kn(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(i===37&&Qe(e.charCodeAt(n+1))&&Qe(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(a=String.fromCharCode(i,s),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function ke(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return a;function a(l){return xe(l)?(e.enter(n),s(l)):t(l)}function s(l){return xe(l)&&i++<o?(e.consume(l),s):(e.exit(n),t(l))}}const aS={tokenize:sS};function sS(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ke(e,t,"linePrefix")}function o(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return se(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),a)}}const lS={tokenize:cS},pc={tokenize:uS};function cS(e){const t=this,n=[];let r=0,o,i,a;return s;function s(k){if(r<n.length){const P=n[r];return t.containerState=P[1],e.attempt(P[0].continuation,l,c)(k)}return c(k)}function l(k){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&b();const P=t.events.length;let N=P,S;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){S=t.events[N][1].end;break}y(r);let I=P;for(;I<t.events.length;)t.events[I][1].end={...S},I++;return Ct(t.events,N+1,0,t.events.slice(P)),t.events.length=I,c(k)}return s(k)}function c(k){if(r===n.length){if(!o)return m(k);if(o.currentConstruct&&o.currentConstruct.concrete)return v(k);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(pc,d,f)(k)}function d(k){return o&&b(),y(r),m(k)}function f(k){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,v(k)}function m(k){return t.containerState={},e.attempt(pc,p,v)(k)}function p(k){return r++,n.push([t.currentConstruct,t.containerState]),m(k)}function v(k){if(k===null){o&&b(),y(0),e.consume(k);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),g(k)}function g(k){if(k===null){x(e.exit("chunkFlow"),!0),y(0),e.consume(k);return}return se(k)?(e.consume(k),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(k),g)}function x(k,P){const N=t.sliceStream(k);if(P&&N.push(null),k.previous=i,i&&(i.next=k),i=k,o.defineSkip(k.start),o.write(N),t.parser.lazy[k.start.line]){let S=o.events.length;for(;S--;)if(o.events[S][1].start.offset<a&&(!o.events[S][1].end||o.events[S][1].end.offset>a))return;const I=t.events.length;let j=I,q,U;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(q){U=t.events[j][1].end;break}q=!0}for(y(r),S=I;S<t.events.length;)t.events[S][1].end={...U},S++;Ct(t.events,j+1,0,t.events.slice(I)),t.events.length=S}}function y(k){let P=n.length;for(;P-- >k;){const N=n[P];t.containerState=N[1],N[0].exit.call(t,e)}n.length=k}function b(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function uS(e,t,n){return ke(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function mc(e){if(e===null||Ue(e)||iS(e))return 1;if(oS(e))return 2}function Cs(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Ca={name:"attention",resolveAll:dS,tokenize:fS};function dS(e,t){let n=-1,r,o,i,a,s,l,c,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},m={...e[n][1].start};hc(f,-l),hc(m,l),a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=rt(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=rt(c,[["enter",o,t],["enter",a,t],["exit",a,t],["enter",i,t]]),c=rt(c,Cs(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=rt(c,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=rt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Ct(e,r-1,n-r+3,c),n=r+c.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function fS(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=mc(r);let i;return a;function a(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const c=e.exit("attentionSequence"),d=mc(l),f=!d||d===2&&o||n.includes(l),m=!o||o===2&&d||n.includes(r);return c._open=!!(i===42?f:f&&(o||!m)),c._close=!!(i===42?m:m&&(d||!f)),t(l)}}function hc(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const pS={name:"autolink",tokenize:mS};function mS(e,t,n){let r=0;return o;function o(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return xt(p)?(e.consume(p),a):p===64?n(p):c(p)}function a(p){return p===43||p===45||p===46||Qe(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||Qe(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||ya(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),d):tS(p)?(e.consume(p),c):n(p)}function d(p){return Qe(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):m(p)}function m(p){if((p===45||Qe(p))&&r++<63){const v=p===45?m:f;return e.consume(p),v}return n(p)}}const ni={partial:!0,tokenize:hS};function hS(e,t,n){return r;function r(i){return xe(i)?ke(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||se(i)?t(i):n(i)}}const xm={continuation:{tokenize:vS},exit:xS,name:"blockQuote",tokenize:gS};function gS(e,t,n){const r=this;return o;function o(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),i}return n(a)}function i(a){return xe(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function vS(e,t,n){const r=this;return o;function o(a){return xe(a)?ke(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):i(a)}function i(a){return e.attempt(xm,t,n)(a)}}function xS(e){e.exit("blockQuote")}const bm={name:"characterEscape",tokenize:bS};function bS(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return rS(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const ym={name:"characterReference",tokenize:yS};function yS(e,t,n){const r=this;let o=0,i,a;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,a=Qe,d(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,a=nS,d):(e.enter("characterReferenceValue"),i=7,a=wa,d(f))}function d(f){if(f===59&&o){const m=e.exit("characterReferenceValue");return a===Qe&&!ws(r.sliceSerialize(m))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(f)&&o++<i?(e.consume(f),d):n(f)}}const gc={partial:!0,tokenize:CS},vc={concrete:!0,name:"codeFenced",tokenize:wS};function wS(e,t,n){const r=this,o={partial:!0,tokenize:N};let i=0,a=0,s;return l;function l(S){return c(S)}function c(S){const I=r.events[r.events.length-1];return i=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,s=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(S)}function d(S){return S===s?(a++,e.consume(S),d):a<3?n(S):(e.exit("codeFencedFenceSequence"),xe(S)?ke(e,f,"whitespace")(S):f(S))}function f(S){return S===null||se(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(gc,g,P)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||se(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(S)):xe(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ke(e,p,"whitespace")(S)):S===96&&S===s?n(S):(e.consume(S),m)}function p(S){return S===null||se(S)?f(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(S))}function v(S){return S===null||se(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(S)):S===96&&S===s?n(S):(e.consume(S),v)}function g(S){return e.attempt(o,P,x)(S)}function x(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),y}function y(S){return i>0&&xe(S)?ke(e,b,"linePrefix",i+1)(S):b(S)}function b(S){return S===null||se(S)?e.check(gc,g,P)(S):(e.enter("codeFlowValue"),k(S))}function k(S){return S===null||se(S)?(e.exit("codeFlowValue"),b(S)):(e.consume(S),k)}function P(S){return e.exit("codeFenced"),t(S)}function N(S,I,j){let q=0;return U;function U(T){return S.enter("lineEnding"),S.consume(T),S.exit("lineEnding"),G}function G(T){return S.enter("codeFencedFence"),xe(T)?ke(S,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):V(T)}function V(T){return T===s?(S.enter("codeFencedFenceSequence"),K(T)):j(T)}function K(T){return T===s?(q++,S.consume(T),K):q>=a?(S.exit("codeFencedFenceSequence"),xe(T)?ke(S,L,"whitespace")(T):L(T)):j(T)}function L(T){return T===null||se(T)?(S.exit("codeFencedFence"),I(T)):j(T)}}}function CS(e,t,n){const r=this;return o;function o(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i)}function i(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const Li={name:"codeIndented",tokenize:SS},kS={partial:!0,tokenize:ES};function SS(e,t,n){const r=this;return o;function o(c){return e.enter("codeIndented"),ke(e,i,"linePrefix",5)(c)}function i(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):se(c)?e.attempt(kS,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||se(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function ES(e,t,n){const r=this;return o;function o(a){return r.parser.lazy[r.now().line]?n(a):se(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):ke(e,i,"linePrefix",5)(a)}function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):se(a)?o(a):n(a)}}const PS={name:"codeText",previous:NS,resolve:RS,tokenize:TS};function RS(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function NS(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function TS(e,t,n){let r=0,o,i;return a;function a(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),r++,s):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(i=e.enter("codeTextSequence"),o=0,d(f)):se(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||se(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),c)}function d(f){return f===96?(e.consume(f),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",c(f))}}class IS{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&or(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),or(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),or(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);or(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);or(this.left,n.reverse())}}}function or(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function wm(e){const t={};let n=-1,r,o,i,a,s,l,c;const d=new IS(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,jS(d,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,o=void 0;i--;)if(a=d.get(i),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(o&&(d.get(o)[1].type="lineEndingBlank"),a[1].type="lineEnding",o=i);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;o&&(r[1].end={...d.get(o)[1].start},s=d.slice(o,n),s.unshift(r),d.splice(o,n-o+1,s))}}return Ct(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}function jS(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let d,f,m=-1,p=n,v=0,g=0;const x=[g];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),f&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++m<s.length;)s[m][0]==="exit"&&s[m-1][0]==="enter"&&s[m][1].type===s[m-1][1].type&&s[m][1].start.line!==s[m][1].end.line&&(g=m+1,x.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):x.pop(),m=x.length;m--;){const y=s.slice(x[m],x[m+1]),b=i.pop();l.push([b,b+y.length-1]),e.splice(b,2,y)}for(l.reverse(),m=-1;++m<l.length;)c[v+l[m][0]]=v+l[m][1],v+=l[m][1]-l[m][0]-1;return c}const AS={resolve:MS,tokenize:OS},_S={partial:!0,tokenize:DS};function MS(e){return wm(e),e}function OS(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(s)}function o(s){return s===null?i(s):se(s)?e.check(_S,a,i)(s):(e.consume(s),o)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function DS(e,t,n){const r=this;return o;function o(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ke(e,i,"linePrefix")}function i(a){if(a===null||se(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function Cm(e,t,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let d=0;return f;function f(y){return y===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(y),e.exit(i),m):y===null||y===32||y===41||ya(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(y))}function m(y){return y===62?(e.enter(i),e.consume(y),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(s),m(y)):y===null||y===60||se(y)?n(y):(e.consume(y),y===92?v:p)}function v(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function g(y){return!d&&(y===null||y===41||Ue(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):d<c&&y===40?(e.consume(y),d++,g):y===41?(e.consume(y),d--,g):y===null||y===32||y===40||ya(y)?n(y):(e.consume(y),y===92?x:g)}function x(y){return y===40||y===41||y===92?(e.consume(y),g):g(y)}}function km(e,t,n,r,o,i){const a=this;let s=0,l;return c;function c(p){return e.enter(r),e.enter(o),e.consume(p),e.exit(o),e.enter(i),d}function d(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(i),e.enter(o),e.consume(p),e.exit(o),e.exit(r),t):se(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||se(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),l||(l=!xe(p)),p===92?m:f)}function m(p){return p===91||p===92||p===93?(e.consume(p),s++,f):f(p)}}function Sm(e,t,n,r,o,i){let a;return s;function s(m){return m===34||m===39||m===40?(e.enter(r),e.enter(o),e.consume(m),e.exit(o),a=m===40?41:m,l):n(m)}function l(m){return m===a?(e.enter(o),e.consume(m),e.exit(o),e.exit(r),t):(e.enter(i),c(m))}function c(m){return m===a?(e.exit(i),l(a)):m===null?n(m):se(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ke(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===a||m===null||se(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:d)}function f(m){return m===a||m===92?(e.consume(m),d):d(m)}}function hr(e,t){let n;return r;function r(o){return se(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):xe(o)?ke(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const LS={name:"definition",tokenize:$S},FS={partial:!0,tokenize:zS};function $S(e,t,n){const r=this;let o;return i;function i(p){return e.enter("definition"),a(p)}function a(p){return km.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return o=Mn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return Ue(p)?hr(e,c)(p):c(p)}function c(p){return Cm(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(FS,f,f)(p)}function f(p){return xe(p)?ke(e,m,"whitespace")(p):m(p)}function m(p){return p===null||se(p)?(e.exit("definition"),r.parser.defined.push(o),t(p)):n(p)}}function zS(e,t,n){return r;function r(s){return Ue(s)?hr(e,o)(s):n(s)}function o(s){return Sm(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return xe(s)?ke(e,a,"whitespace")(s):a(s)}function a(s){return s===null||se(s)?t(s):n(s)}}const BS={name:"hardBreakEscape",tokenize:VS};function VS(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return se(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const qS={name:"headingAtx",resolve:GS,tokenize:US};function GS(e,t){let n=e.length-2,r=3,o,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ct(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function US(e,t,n){let r=0;return o;function o(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&r++<6?(e.consume(d),a):d===null||Ue(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||se(d)?(e.exit("atxHeading"),t(d)):xe(d)?ke(e,s,"whitespace")(d):(e.enter("atxHeadingText"),c(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function c(d){return d===null||d===35||Ue(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),c)}}const HS=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],xc=["pre","script","style","textarea"],WS={concrete:!0,name:"htmlFlow",resolveTo:XS,tokenize:ZS},KS={partial:!0,tokenize:QS},YS={partial:!0,tokenize:JS};function XS(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ZS(e,t,n){const r=this;let o,i,a,s,l;return c;function c(w){return d(w)}function d(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),f}function f(w){return w===33?(e.consume(w),m):w===47?(e.consume(w),i=!0,g):w===63?(e.consume(w),o=3,r.interrupt?t:C):xt(w)?(e.consume(w),a=String.fromCharCode(w),x):n(w)}function m(w){return w===45?(e.consume(w),o=2,p):w===91?(e.consume(w),o=5,s=0,v):xt(w)?(e.consume(w),o=4,r.interrupt?t:C):n(w)}function p(w){return w===45?(e.consume(w),r.interrupt?t:C):n(w)}function v(w){const Y="CDATA[";return w===Y.charCodeAt(s++)?(e.consume(w),s===Y.length?r.interrupt?t:V:v):n(w)}function g(w){return xt(w)?(e.consume(w),a=String.fromCharCode(w),x):n(w)}function x(w){if(w===null||w===47||w===62||Ue(w)){const Y=w===47,X=a.toLowerCase();return!Y&&!i&&xc.includes(X)?(o=1,r.interrupt?t(w):V(w)):HS.includes(a.toLowerCase())?(o=6,Y?(e.consume(w),y):r.interrupt?t(w):V(w)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):i?b(w):k(w))}return w===45||Qe(w)?(e.consume(w),a+=String.fromCharCode(w),x):n(w)}function y(w){return w===62?(e.consume(w),r.interrupt?t:V):n(w)}function b(w){return xe(w)?(e.consume(w),b):U(w)}function k(w){return w===47?(e.consume(w),U):w===58||w===95||xt(w)?(e.consume(w),P):xe(w)?(e.consume(w),k):U(w)}function P(w){return w===45||w===46||w===58||w===95||Qe(w)?(e.consume(w),P):N(w)}function N(w){return w===61?(e.consume(w),S):xe(w)?(e.consume(w),N):k(w)}function S(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),l=w,I):xe(w)?(e.consume(w),S):j(w)}function I(w){return w===l?(e.consume(w),l=null,q):w===null||se(w)?n(w):(e.consume(w),I)}function j(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Ue(w)?N(w):(e.consume(w),j)}function q(w){return w===47||w===62||xe(w)?k(w):n(w)}function U(w){return w===62?(e.consume(w),G):n(w)}function G(w){return w===null||se(w)?V(w):xe(w)?(e.consume(w),G):n(w)}function V(w){return w===45&&o===2?(e.consume(w),_):w===60&&o===1?(e.consume(w),F):w===62&&o===4?(e.consume(w),Q):w===63&&o===3?(e.consume(w),C):w===93&&o===5?(e.consume(w),B):se(w)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(KS,A,K)(w)):w===null||se(w)?(e.exit("htmlFlowData"),K(w)):(e.consume(w),V)}function K(w){return e.check(YS,L,A)(w)}function L(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),T}function T(w){return w===null||se(w)?K(w):(e.enter("htmlFlowData"),V(w))}function _(w){return w===45?(e.consume(w),C):V(w)}function F(w){return w===47?(e.consume(w),a="",M):V(w)}function M(w){if(w===62){const Y=a.toLowerCase();return xc.includes(Y)?(e.consume(w),Q):V(w)}return xt(w)&&a.length<8?(e.consume(w),a+=String.fromCharCode(w),M):V(w)}function B(w){return w===93?(e.consume(w),C):V(w)}function C(w){return w===62?(e.consume(w),Q):w===45&&o===2?(e.consume(w),C):V(w)}function Q(w){return w===null||se(w)?(e.exit("htmlFlowData"),A(w)):(e.consume(w),Q)}function A(w){return e.exit("htmlFlow"),t(w)}}function JS(e,t,n){const r=this;return o;function o(a){return se(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):n(a)}function i(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function QS(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(ni,t,n)}}const eE={name:"htmlText",tokenize:tE};function tE(e,t,n){const r=this;let o,i,a;return s;function s(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),l}function l(C){return C===33?(e.consume(C),c):C===47?(e.consume(C),N):C===63?(e.consume(C),k):xt(C)?(e.consume(C),j):n(C)}function c(C){return C===45?(e.consume(C),d):C===91?(e.consume(C),i=0,v):xt(C)?(e.consume(C),b):n(C)}function d(C){return C===45?(e.consume(C),p):n(C)}function f(C){return C===null?n(C):C===45?(e.consume(C),m):se(C)?(a=f,F(C)):(e.consume(C),f)}function m(C){return C===45?(e.consume(C),p):f(C)}function p(C){return C===62?_(C):C===45?m(C):f(C)}function v(C){const Q="CDATA[";return C===Q.charCodeAt(i++)?(e.consume(C),i===Q.length?g:v):n(C)}function g(C){return C===null?n(C):C===93?(e.consume(C),x):se(C)?(a=g,F(C)):(e.consume(C),g)}function x(C){return C===93?(e.consume(C),y):g(C)}function y(C){return C===62?_(C):C===93?(e.consume(C),y):g(C)}function b(C){return C===null||C===62?_(C):se(C)?(a=b,F(C)):(e.consume(C),b)}function k(C){return C===null?n(C):C===63?(e.consume(C),P):se(C)?(a=k,F(C)):(e.consume(C),k)}function P(C){return C===62?_(C):k(C)}function N(C){return xt(C)?(e.consume(C),S):n(C)}function S(C){return C===45||Qe(C)?(e.consume(C),S):I(C)}function I(C){return se(C)?(a=I,F(C)):xe(C)?(e.consume(C),I):_(C)}function j(C){return C===45||Qe(C)?(e.consume(C),j):C===47||C===62||Ue(C)?q(C):n(C)}function q(C){return C===47?(e.consume(C),_):C===58||C===95||xt(C)?(e.consume(C),U):se(C)?(a=q,F(C)):xe(C)?(e.consume(C),q):_(C)}function U(C){return C===45||C===46||C===58||C===95||Qe(C)?(e.consume(C),U):G(C)}function G(C){return C===61?(e.consume(C),V):se(C)?(a=G,F(C)):xe(C)?(e.consume(C),G):q(C)}function V(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),o=C,K):se(C)?(a=V,F(C)):xe(C)?(e.consume(C),V):(e.consume(C),L)}function K(C){return C===o?(e.consume(C),o=void 0,T):C===null?n(C):se(C)?(a=K,F(C)):(e.consume(C),K)}function L(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||Ue(C)?q(C):(e.consume(C),L)}function T(C){return C===47||C===62||Ue(C)?q(C):n(C)}function _(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}function F(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),M}function M(C){return xe(C)?ke(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):B(C)}function B(C){return e.enter("htmlTextData"),a(C)}}const ks={name:"labelEnd",resolveAll:iE,resolveTo:aE,tokenize:sE},nE={tokenize:lE},rE={tokenize:cE},oE={tokenize:uE};function iE(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&Ct(e,0,e.length,n),e}function aE(e,t){let n=e.length,r=0,o,i,a,s;for(;n--;)if(o=e[n][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(a=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[a][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=rt(s,e.slice(i+1,i+r+3)),s=rt(s,[["enter",d,t]]),s=rt(s,Cs(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),s=rt(s,[["exit",d,t],e[a-2],e[a-1],["exit",c,t]]),s=rt(s,e.slice(a+1)),s=rt(s,[["exit",l,t]]),Ct(e,i,e.length,s),e}function sE(e,t,n){const r=this;let o=r.events.length,i,a;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){i=r.events[o][1];break}return s;function s(m){return i?i._inactive?f(m):(a=r.parser.defined.includes(Mn(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),l):n(m)}function l(m){return m===40?e.attempt(nE,d,a?d:f)(m):m===91?e.attempt(rE,d,a?c:f)(m):a?d(m):f(m)}function c(m){return e.attempt(oE,d,f)(m)}function d(m){return t(m)}function f(m){return i._balanced=!0,n(m)}}function lE(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),o}function o(f){return Ue(f)?hr(e,i)(f):i(f)}function i(f){return f===41?d(f):Cm(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return Ue(f)?hr(e,l)(f):d(f)}function s(f){return n(f)}function l(f){return f===34||f===39||f===40?Sm(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function c(f){return Ue(f)?hr(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function cE(e,t,n){const r=this;return o;function o(s){return km.call(r,e,i,a,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(Mn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function uE(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const dE={name:"labelStartImage",resolveAll:ks.resolveAll,tokenize:fE};function fE(e,t,n){const r=this;return o;function o(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const pE={name:"labelStartLink",resolveAll:ks.resolveAll,tokenize:mE};function mE(e,t,n){const r=this;return o;function o(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),i}function i(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Fi={name:"lineEnding",tokenize:hE};function hE(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ke(e,t,"linePrefix")}}const lo={name:"thematicBreak",tokenize:gE};function gE(e,t,n){let r=0,o;return i;function i(c){return e.enter("thematicBreak"),a(c)}function a(c){return o=c,s(c)}function s(c){return c===o?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||se(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===o?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),xe(c)?ke(e,s,"whitespace")(c):s(c))}}const qe={continuation:{tokenize:yE},exit:CE,name:"list",tokenize:bE},vE={partial:!0,tokenize:kE},xE={partial:!0,tokenize:wE};function bE(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,a=0;return s;function s(p){const v=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:wa(p)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(lo,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return wa(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(ni,r.interrupt?n:d,e.attempt(vE,m,f))}function d(p){return r.containerState.initialBlankLine=!0,i++,m(p)}function f(p){return xe(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function yE(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ni,o,i);function o(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ke(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!xe(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(xE,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ke(e,e.attempt(qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function wE(e,t,n){const r=this;return ke(e,o,"listItemIndent",r.containerState.size+1);function o(i){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(i):n(i)}}function CE(e){e.exit(this.containerState.type)}function kE(e,t,n){const r=this;return ke(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){const a=r.events[r.events.length-1];return!xe(i)&&a&&a[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const bc={name:"setextUnderline",resolveTo:SE,tokenize:EE};function SE(e,t){let n=e.length,r,o,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function EE(e,t,n){const r=this;let o;return i;function i(c){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),o=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===o?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),xe(c)?ke(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||se(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const PE={tokenize:RE};function RE(e){const t=this,n=e.attempt(ni,r,e.attempt(this.parser.constructs.flowInitial,o,ke(e,e.attempt(this.parser.constructs.flow,o,e.attempt(AS,o)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const NE={resolveAll:Pm()},TE=Em("string"),IE=Em("text");function Em(e){return{resolveAll:Pm(e==="text"?jE:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],i=n.attempt(o,a,s);return a;function a(d){return c(d)?i(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return c(d)?(n.exit("data"),i(d)):(n.consume(d),l)}function c(d){if(d===null)return!0;const f=o[d];let m=-1;if(f)for(;++m<f.length;){const p=f[m];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Pm(e){return t;function t(n,r){let o=-1,i;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,r):n}}function jE(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let i=o.length,a=-1,s=0,l;for(;i--;){const c=o[i];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?a:r.start._bufferIndex+a,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const AE={42:qe,43:qe,45:qe,48:qe,49:qe,50:qe,51:qe,52:qe,53:qe,54:qe,55:qe,56:qe,57:qe,62:xm},_E={91:LS},ME={[-2]:Li,[-1]:Li,32:Li},OE={35:qS,42:lo,45:[bc,lo],60:WS,61:bc,95:lo,96:vc,126:vc},DE={38:ym,92:bm},LE={[-5]:Fi,[-4]:Fi,[-3]:Fi,33:dE,38:ym,42:Ca,60:[pS,eE],91:pE,92:[BS,bm],93:ks,95:Ca,96:PS},FE={null:[Ca,NE]},$E={null:[42,95]},zE={null:[]},BE=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$E,contentInitial:_E,disable:zE,document:AE,flow:OE,flowInitial:ME,insideSpan:FE,string:DE,text:LE},Symbol.toStringTag,{value:"Module"}));function VE(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],s=[];const l={attempt:I(N),check:I(S),consume:b,enter:k,exit:P,interrupt:I(S,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:v,parser:e,previous:null,sliceSerialize:m,sliceStream:p,write:f};let d=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function f(G){return a=rt(a,G),x(),a[a.length-1]!==null?[]:(j(t,0),c.events=Cs(i,c.events,c),c.events)}function m(G,V){return GE(p(G),V)}function p(G){return qE(a,G)}function v(){const{_bufferIndex:G,_index:V,line:K,column:L,offset:T}=r;return{_bufferIndex:G,_index:V,line:K,column:L,offset:T}}function g(G){o[G.line]=G.column,U()}function x(){let G;for(;r._index<a.length;){const V=a[r._index];if(typeof V=="string")for(G=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===G&&r._bufferIndex<V.length;)y(V.charCodeAt(r._bufferIndex));else y(V)}}function y(G){d=d(G)}function b(G){se(G)?(r.line++,r.column=1,r.offset+=G===-3?2:1,U()):G!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=G}function k(G,V){const K=V||{};return K.type=G,K.start=v(),c.events.push(["enter",K,c]),s.push(K),K}function P(G){const V=s.pop();return V.end=v(),c.events.push(["exit",V,c]),V}function N(G,V){j(G,V.from)}function S(G,V){V.restore()}function I(G,V){return K;function K(L,T,_){let F,M,B,C;return Array.isArray(L)?A(L):"tokenize"in L?A([L]):Q(L);function Q(z){return D;function D(ee){const re=ee!==null&&z[ee],ae=ee!==null&&z.null,fe=[...Array.isArray(re)?re:re?[re]:[],...Array.isArray(ae)?ae:ae?[ae]:[]];return A(fe)(ee)}}function A(z){return F=z,M=0,z.length===0?_:w(z[M])}function w(z){return D;function D(ee){return C=q(),B=z,z.partial||(c.currentConstruct=z),z.name&&c.parser.constructs.disable.null.includes(z.name)?X():z.tokenize.call(V?Object.assign(Object.create(c),V):c,l,Y,X)(ee)}}function Y(z){return G(B,C),T}function X(z){return C.restore(),++M<F.length?w(F[M]):_}}}function j(G,V){G.resolveAll&&!i.includes(G)&&i.push(G),G.resolve&&Ct(c.events,V,c.events.length-V,G.resolve(c.events.slice(V),c)),G.resolveTo&&(c.events=G.resolveTo(c.events,c))}function q(){const G=v(),V=c.previous,K=c.currentConstruct,L=c.events.length,T=Array.from(s);return{from:L,restore:_};function _(){r=G,c.previous=V,c.currentConstruct=K,c.events.length=L,s=T,U()}}function U(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function qE(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}function GE(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if(typeof i=="string")a=i;else switch(i){case-5:{a="\r";break}case-4:{a=`
211
+ `;break}case-3:{a=`\r
212
+ `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&o)continue;a=" ";break}default:a=String.fromCharCode(i)}o=i===-2,r.push(a)}return r.join("")}function UE(e){const r={constructs:Jk([BE,...(e||{}).extensions||[]]),content:o(aS),defined:[],document:o(lS),flow:o(PE),lazy:{},string:o(TE),text:o(IE)};return r;function o(i){return a;function a(s){return VE(r,i,s)}}}function HE(e){for(;!wm(e););return e}const yc=/[\0\t\n\r]/g;function WE(){let e=1,t="",n=!0,r;return o;function o(i,a,s){const l=[];let c,d,f,m,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(a||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(yc.lastIndex=f,c=yc.exec(i),m=c&&c.index!==void 0?c.index:i.length,p=i.charCodeAt(m),!c){t=i.slice(f);break}if(p===10&&f===m&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<m&&(l.push(i.slice(f,m)),e+=m-f),p){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=m+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const KE=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function YE(e){return e.replace(KE,XE)}function XE(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),i=o===120||o===88;return vm(n.slice(i?2:1),i?16:10)}return ws(n)||e}const Rm={}.hasOwnProperty;function ZE(e,t,n){return typeof t!="string"&&(n=t,t=void 0),JE(n)(HE(UE(n).document().write(WE()(e,t,!0))))}function JE(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(tt),autolinkProtocol:q,autolinkEmail:q,atxHeading:i(Ke),blockQuote:i(ae),characterEscape:q,characterReference:q,codeFenced:i(fe),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(fe,a),codeText:i(me,a),codeTextData:q,data:q,codeFlowValue:q,definition:i(_e),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(ze),hardBreakEscape:i(Be),hardBreakTrailing:i(Be),htmlFlow:i(it,a),htmlFlowData:q,htmlText:i(it,a),htmlTextData:q,image:i(xn),label:a,link:i(tt),listItem:i(pi),listItemValue:m,listOrdered:i(Gr,f),listUnordered:i(Gr),paragraph:i(Zn),reference:w,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(Ke),strong:i(mi),thematicBreak:i(Ur)},exit:{atxHeading:l(),atxHeadingSequence:N,autolink:l(),autolinkEmail:re,autolinkProtocol:ee,blockQuote:l(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:X,characterReferenceMarkerNumeric:X,characterReferenceValue:z,characterReference:D,codeFenced:l(x),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:v,codeFlowValue:U,codeIndented:l(y),codeText:l(T),codeTextData:U,data:U,definition:l(),definitionDestinationString:P,definitionLabelString:b,definitionTitleString:k,emphasis:l(),hardBreakEscape:l(V),hardBreakTrailing:l(V),htmlFlow:l(K),htmlFlowData:U,htmlText:l(L),htmlTextData:U,image:l(F),label:B,labelText:M,lineEnding:G,link:l(_),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Y,resourceDestinationString:C,resourceTitleString:Q,resource:A,setextHeading:l(j),setextHeadingLineSequence:I,setextHeadingText:S,strong:l(),thematicBreak:l()}};Nm(t,(e||{}).mdastExtensions||[]);const n={};return r;function r($){let Z={type:"root",children:[]};const ce={stack:[Z],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:d,data:n},he=[];let be=-1;for(;++be<$.length;)if($[be][1].type==="listOrdered"||$[be][1].type==="listUnordered")if($[be][0]==="enter")he.push(be);else{const Ye=he.pop();be=o($,Ye,be)}for(be=-1;++be<$.length;){const Ye=t[$[be][0]];Rm.call(Ye,$[be][1].type)&&Ye[$[be][1].type].call(Object.assign({sliceSerialize:$[be][2].sliceSerialize},ce),$[be][1])}if(ce.tokenStack.length>0){const Ye=ce.tokenStack[ce.tokenStack.length-1];(Ye[1]||wc).call(ce,void 0,Ye[0])}for(Z.position={start:Ot($.length>0?$[0][1].start:{line:1,column:1,offset:0}),end:Ot($.length>0?$[$.length-2][1].end:{line:1,column:1,offset:0})},be=-1;++be<t.transforms.length;)Z=t.transforms[be](Z)||Z;return Z}function o($,Z,ce){let he=Z-1,be=-1,Ye=!1,Et,at,Qt,en;for(;++he<=ce;){const Fe=$[he];switch(Fe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Fe[0]==="enter"?be++:be--,en=void 0;break}case"lineEndingBlank":{Fe[0]==="enter"&&(Et&&!en&&!be&&!Qt&&(Qt=he),en=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:en=void 0}if(!be&&Fe[0]==="enter"&&Fe[1].type==="listItemPrefix"||be===-1&&Fe[0]==="exit"&&(Fe[1].type==="listUnordered"||Fe[1].type==="listOrdered")){if(Et){let _t=he;for(at=void 0;_t--;){const Xe=$[_t];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;at&&($[at][1].type="lineEndingBlank",Ye=!0),Xe[1].type="lineEnding",at=_t}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}Qt&&(!at||Qt<at)&&(Et._spread=!0),Et.end=Object.assign({},at?$[at][1].start:Fe[1].end),$.splice(at||he,0,["exit",Et,Fe[2]]),he++,ce++}if(Fe[1].type==="listItemPrefix"){const _t={type:"listItem",_spread:!1,start:Object.assign({},Fe[1].start),end:void 0};Et=_t,$.splice(he,0,["enter",_t,Fe[2]]),he++,ce++,Qt=void 0,en=!0}}}return $[Z][1]._spread=Ye,ce}function i($,Z){return ce;function ce(he){s.call(this,$(he),he),Z&&Z.call(this,he)}}function a(){this.stack.push({type:"fragment",children:[]})}function s($,Z,ce){this.stack[this.stack.length-1].children.push($),this.stack.push($),this.tokenStack.push([Z,ce||void 0]),$.position={start:Ot(Z.start),end:void 0}}function l($){return Z;function Z(ce){$&&$.call(this,ce),c.call(this,ce)}}function c($,Z){const ce=this.stack.pop(),he=this.tokenStack.pop();if(he)he[0].type!==$.type&&(Z?Z.call(this,$,he[0]):(he[1]||wc).call(this,$,he[0]));else throw new Error("Cannot close `"+$.type+"` ("+mr({start:$.start,end:$.end})+"): it’s not open");ce.position.end=Ot($.end)}function d(){return Xk(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m($){if(this.data.expectingFirstListItemValue){const Z=this.stack[this.stack.length-2];Z.start=Number.parseInt(this.sliceSerialize($),10),this.data.expectingFirstListItemValue=void 0}}function p(){const $=this.resume(),Z=this.stack[this.stack.length-1];Z.lang=$}function v(){const $=this.resume(),Z=this.stack[this.stack.length-1];Z.meta=$}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const $=this.resume(),Z=this.stack[this.stack.length-1];Z.value=$.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const $=this.resume(),Z=this.stack[this.stack.length-1];Z.value=$.replace(/(\r?\n|\r)$/g,"")}function b($){const Z=this.resume(),ce=this.stack[this.stack.length-1];ce.label=Z,ce.identifier=Mn(this.sliceSerialize($)).toLowerCase()}function k(){const $=this.resume(),Z=this.stack[this.stack.length-1];Z.title=$}function P(){const $=this.resume(),Z=this.stack[this.stack.length-1];Z.url=$}function N($){const Z=this.stack[this.stack.length-1];if(!Z.depth){const ce=this.sliceSerialize($).length;Z.depth=ce}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function I($){const Z=this.stack[this.stack.length-1];Z.depth=this.sliceSerialize($).codePointAt(0)===61?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function q($){const ce=this.stack[this.stack.length-1].children;let he=ce[ce.length-1];(!he||he.type!=="text")&&(he=hi(),he.position={start:Ot($.start),end:void 0},ce.push(he)),this.stack.push(he)}function U($){const Z=this.stack.pop();Z.value+=this.sliceSerialize($),Z.position.end=Ot($.end)}function G($){const Z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ce=Z.children[Z.children.length-1];ce.position.end=Ot($.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Z.type)&&(q.call(this,$),U.call(this,$))}function V(){this.data.atHardBreak=!0}function K(){const $=this.resume(),Z=this.stack[this.stack.length-1];Z.value=$}function L(){const $=this.resume(),Z=this.stack[this.stack.length-1];Z.value=$}function T(){const $=this.resume(),Z=this.stack[this.stack.length-1];Z.value=$}function _(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=Z,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function F(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const Z=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=Z,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function M($){const Z=this.sliceSerialize($),ce=this.stack[this.stack.length-2];ce.label=YE(Z),ce.identifier=Mn(Z).toLowerCase()}function B(){const $=this.stack[this.stack.length-1],Z=this.resume(),ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,ce.type==="link"){const he=$.children;ce.children=he}else ce.alt=Z}function C(){const $=this.resume(),Z=this.stack[this.stack.length-1];Z.url=$}function Q(){const $=this.resume(),Z=this.stack[this.stack.length-1];Z.title=$}function A(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function Y($){const Z=this.resume(),ce=this.stack[this.stack.length-1];ce.label=Z,ce.identifier=Mn(this.sliceSerialize($)).toLowerCase(),this.data.referenceType="full"}function X($){this.data.characterReferenceType=$.type}function z($){const Z=this.sliceSerialize($),ce=this.data.characterReferenceType;let he;ce?(he=vm(Z,ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):he=ws(Z);const be=this.stack[this.stack.length-1];be.value+=he}function D($){const Z=this.stack.pop();Z.position.end=Ot($.end)}function ee($){U.call(this,$);const Z=this.stack[this.stack.length-1];Z.url=this.sliceSerialize($)}function re($){U.call(this,$);const Z=this.stack[this.stack.length-1];Z.url="mailto:"+this.sliceSerialize($)}function ae(){return{type:"blockquote",children:[]}}function fe(){return{type:"code",lang:null,meta:null,value:""}}function me(){return{type:"inlineCode",value:""}}function _e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ze(){return{type:"emphasis",children:[]}}function Ke(){return{type:"heading",depth:0,children:[]}}function Be(){return{type:"break"}}function it(){return{type:"html",value:""}}function xn(){return{type:"image",title:null,url:"",alt:null}}function tt(){return{type:"link",title:null,url:"",children:[]}}function Gr($){return{type:"list",ordered:$.type==="listOrdered",start:null,spread:$._spread,children:[]}}function pi($){return{type:"listItem",spread:$._spread,checked:null,children:[]}}function Zn(){return{type:"paragraph",children:[]}}function mi(){return{type:"strong",children:[]}}function hi(){return{type:"text",value:""}}function Ur(){return{type:"thematicBreak"}}}function Ot(e){return{line:e.line,column:e.column,offset:e.offset}}function Nm(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Nm(e,r):QE(e,r)}}function QE(e,t){let n;for(n in t)if(Rm.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function wc(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+mr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+mr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+mr({start:t.start,end:t.end})+") is still open")}function eP(e){const t=this;t.parser=n;function n(r){return ZE(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function tP(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function nP(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
213
+ `}]}function rP(e,t){const n=t.value?t.value+`
214
+ `:"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function oP(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iP(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function aP(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Kn(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function sP(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lP(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Tm(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&a.type==="text"?a.value+=r:o.push({type:"text",value:r}),o}function cP(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Tm(e,t);const o={src:Kn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)}function uP(e,t){const n={src:Kn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function dP(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function fP(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Tm(e,t);const o={href:Kn(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function pP(e,t){const n={href:Kn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mP(e,t,n){const r=e.all(t),o=n?hP(n):Im(t),i={},a=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(o||s!==0||d.type!=="element"||d.tagName!=="p")&&a.push({type:"text",value:`
215
+ `}),d.type==="element"&&d.tagName==="p"&&!o?a.push(...d.children):a.push(d)}const l=r[r.length-1];l&&(o||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
216
+ `});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)}function hP(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Im(n[r])}return t}function Im(e){const t=e.spread;return t??e.children.length>1}function gP(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const a=r[o];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function vP(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xP(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function bP(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yP(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),o.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=vs(t.children[1]),l=um(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),o.push(a)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)}function wP(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const f=t.children[l],m={},p=a?a[l]:void 0;p&&(m.align=p);let v={type:"element",tagName:i,properties:m,children:[]};f&&(v.children=e.all(f),e.patch(f,v),v=e.applyData(f,v)),c.push(v)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,d),e.applyData(t,d)}function CP(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Cc=9,kc=32;function kP(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Sc(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Sc(t.slice(o),o>0,!1)),i.join("")}function Sc(e,t,n){let r=0,o=e.length;if(t){let i=e.codePointAt(r);for(;i===Cc||i===kc;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(o-1);for(;i===Cc||i===kc;)o--,i=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function SP(e,t){const n={type:"text",value:kP(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function EP(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const PP={blockquote:tP,break:nP,code:rP,delete:oP,emphasis:iP,footnoteReference:aP,heading:sP,html:lP,imageReference:cP,image:uP,inlineCode:dP,linkReference:fP,link:pP,listItem:mP,list:gP,paragraph:vP,root:xP,strong:bP,table:yP,tableCell:CP,tableRow:wP,text:SP,thematicBreak:EP,toml:to,yaml:to,definition:to,footnoteDefinition:to};function to(){}const jm=-1,ri=0,gr=1,yo=2,Ss=3,Es=4,Ps=5,Rs=6,Am=7,_m=8,Ec=typeof self=="object"?self:globalThis,RP=(e,t)=>{const n=(o,i)=>(e.set(i,o),o),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case ri:case jm:return n(a,o);case gr:{const s=n([],o);for(const l of a)s.push(r(l));return s}case yo:{const s=n({},o);for(const[l,c]of a)s[r(l)]=r(c);return s}case Ss:return n(new Date(a),o);case Es:{const{source:s,flags:l}=a;return n(new RegExp(s,l),o)}case Ps:{const s=n(new Map,o);for(const[l,c]of a)s.set(r(l),r(c));return s}case Rs:{const s=n(new Set,o);for(const l of a)s.add(r(l));return s}case Am:{const{name:s,message:l}=a;return n(new Ec[s](l),o)}case _m:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:s}=new Uint8Array(a);return n(new DataView(s),a)}}return n(new Ec[i](a),o)};return r},Pc=e=>RP(new Map,e)(0),Pn="",{toString:NP}={},{keys:TP}=Object,ir=e=>{const t=typeof e;if(t!=="object"||!e)return[ri,t];const n=NP.call(e).slice(8,-1);switch(n){case"Array":return[gr,Pn];case"Object":return[yo,Pn];case"Date":return[Ss,Pn];case"RegExp":return[Es,Pn];case"Map":return[Ps,Pn];case"Set":return[Rs,Pn];case"DataView":return[gr,n]}return n.includes("Array")?[gr,n]:n.includes("Error")?[Am,n]:[yo,n]},no=([e,t])=>e===ri&&(t==="function"||t==="symbol"),IP=(e,t,n,r)=>{const o=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},i=a=>{if(n.has(a))return n.get(a);let[s,l]=ir(a);switch(s){case ri:{let d=a;switch(l){case"bigint":s=_m,d=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return o([jm],a)}return o([s,d],a)}case gr:{if(l){let m=a;return l==="DataView"?m=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(m=new Uint8Array(a)),o([l,[...m]],a)}const d=[],f=o([s,d],a);for(const m of a)d.push(i(m));return f}case yo:{if(l)switch(l){case"BigInt":return o([l,a.toString()],a);case"Boolean":case"Number":case"String":return o([l,a.valueOf()],a)}if(t&&"toJSON"in a)return i(a.toJSON());const d=[],f=o([s,d],a);for(const m of TP(a))(e||!no(ir(a[m])))&&d.push([i(m),i(a[m])]);return f}case Ss:return o([s,a.toISOString()],a);case Es:{const{source:d,flags:f}=a;return o([s,{source:d,flags:f}],a)}case Ps:{const d=[],f=o([s,d],a);for(const[m,p]of a)(e||!(no(ir(m))||no(ir(p))))&&d.push([i(m),i(p)]);return f}case Rs:{const d=[],f=o([s,d],a);for(const m of a)(e||!no(ir(m)))&&d.push(i(m));return f}}const{message:c}=a;return o([s,{name:l,message:c}],a)};return i},Rc=(e,{json:t,lossy:n}={})=>{const r=[];return IP(!(t||n),!!t,new Map,r)(e),r},wo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Pc(Rc(e,t)):structuredClone(e):(e,t)=>Pc(Rc(e,t));function jP(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function AP(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function _P(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||jP,r=e.options.footnoteBackLabel||AP,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const d=e.all(c),f=String(c.identifier).toUpperCase(),m=Kn(f.toLowerCase());let p=0;const v=[],g=e.footnoteCounts.get(f);for(;g!==void 0&&++p<=g;){v.length>0&&v.push({type:"text",value:" "});let b=typeof n=="string"?n:n(l,p);typeof b=="string"&&(b={type:"text",value:b}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const x=d[d.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const b=x.children[x.children.length-1];b&&b.type==="text"?b.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...v)}else d.push(...v);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(d,!0)};e.patch(c,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...wo(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
217
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
218
+ `}]}}const Mm=(function(e){if(e==null)return LP;if(typeof e=="function")return oi(e);if(typeof e=="object")return Array.isArray(e)?MP(e):OP(e);if(typeof e=="string")return DP(e);throw new Error("Expected function, string, or object as test")});function MP(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Mm(e[n]);return oi(r);function r(...o){let i=-1;for(;++i<t.length;)if(t[i].apply(this,o))return!0;return!1}}function OP(e){const t=e;return oi(n);function n(r){const o=r;let i;for(i in e)if(o[i]!==t[i])return!1;return!0}}function DP(e){return oi(t);function t(n){return n&&n.type===e}}function oi(e){return t;function t(n,r,o){return!!(FP(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function LP(){return!0}function FP(e){return e!==null&&typeof e=="object"&&"type"in e}const Om=[],$P=!0,Nc=!1,zP="skip";function BP(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const i=Mm(o),a=r?-1:1;s(e,void 0,[])();function s(l,c,d){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return m;function m(){let p=Om,v,g,x;if((!t||i(l,c,d[d.length-1]||void 0))&&(p=VP(n(l,d)),p[0]===Nc))return p;if("children"in l&&l.children){const y=l;if(y.children&&p[0]!==zP)for(g=(r?y.children.length:-1)+a,x=d.concat(y);g>-1&&g<y.children.length;){const b=y.children[g];if(v=s(b,g,x)(),v[0]===Nc)return v;g=typeof v[1]=="number"?v[1]:g+a}}return p}}}function VP(e){return Array.isArray(e)?e:typeof e=="number"?[$P,e]:e==null?Om:[e]}function Dm(e,t,n,r){let o,i,a;typeof t=="function"&&typeof n!="function"?(i=void 0,a=t,o=n):(i=t,a=n,o=r),BP(e,i,s,o);function s(l,c){const d=c[c.length-1],f=d?d.children.indexOf(l):void 0;return a(l,f,d)}}const ka={}.hasOwnProperty,qP={};function GP(e,t){const n=t||qP,r=new Map,o=new Map,i=new Map,a={...PP,...n.handlers},s={all:c,applyData:HP,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:l,options:n,patch:UP,wrap:KP};return Dm(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:o,m=String(d.identifier).toUpperCase();f.has(m)||f.set(m,d)}}),s;function l(d,f){const m=d.type,p=s.handlers[m];if(ka.call(s.handlers,m)&&p)return p(s,d,f);if(s.options.passThrough&&s.options.passThrough.includes(m)){if("children"in d){const{children:g,...x}=d,y=wo(x);return y.children=s.all(d),y}return wo(d)}return(s.options.unknownHandler||WP)(s,d,f)}function c(d){const f=[];if("children"in d){const m=d.children;let p=-1;for(;++p<m.length;){const v=s.one(m[p],d);if(v){if(p&&m[p-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=Tc(v.value)),!Array.isArray(v)&&v.type==="element")){const g=v.children[0];g&&g.type==="text"&&(g.value=Tc(g.value))}Array.isArray(v)?f.push(...v):f.push(v)}}}return f}}function UP(e,t){e.position&&(t.position=Nk(e))}function HP(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&i&&Object.assign(n.properties,wo(i)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function WP(e,t){const n=t.data||{},r="value"in t&&!(ka.call(n,"hProperties")||ka.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function KP(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
219
+ `});++r<e.length;)r&&n.push({type:"text",value:`
220
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
221
+ `}),n}function Tc(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ic(e,t){const n=GP(e,t),r=n.one(e,void 0),o=_P(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:`
222
+ `},o),i}function YP(e,t){return e&&"run"in e?async function(n,r){const o=Ic(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Ic(n,{file:r,...e||t})}}function jc(e){if(e)throw e}var $i,Ac;function XP(){if(Ac)return $i;Ac=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},i=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var d=e.call(c,"constructor"),f=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!d&&!f)return!1;var m;for(m in c);return typeof m>"u"||e.call(c,m)},a=function(c,d){n&&d.name==="__proto__"?n(c,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):c[d.name]=d.newValue},s=function(c,d){if(d==="__proto__")if(e.call(c,d)){if(r)return r(c,d).value}else return;return c[d]};return $i=function l(){var c,d,f,m,p,v,g=arguments[0],x=1,y=arguments.length,b=!1;for(typeof g=="boolean"&&(b=g,g=arguments[1]||{},x=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});x<y;++x)if(c=arguments[x],c!=null)for(d in c)f=s(g,d),m=s(c,d),g!==m&&(b&&m&&(i(m)||(p=o(m)))?(p?(p=!1,v=f&&o(f)?f:[]):v=f&&i(f)?f:{},a(g,{name:d,newValue:l(b,v,m)})):typeof m<"u"&&a(g,{name:d,newValue:m}));return g},$i}var ZP=XP();const zi=vu(ZP);function Sa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function JP(){const e=[],t={run:n,use:r};return t;function n(...o){let i=-1;const a=o.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...o);function s(l,...c){const d=e[++i];let f=-1;if(l){a(l);return}for(;++f<o.length;)(c[f]===null||c[f]===void 0)&&(c[f]=o[f]);o=c,d?QP(d,s)(...c):a(null,...c)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function QP(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(o);try{l=e.apply(this,a)}catch(c){const d=c;if(s&&n)throw d;return o(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(i,o):l instanceof Error?o(l):i(l))}function o(a,...s){n||(n=!0,t(a,...s))}function i(a){o(null,a)}}const gt={basename:eR,dirname:tR,extname:nR,join:rR,sep:"/"};function eR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Or(e);let n=0,r=-1,o=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(i){n=o+1;break}}else r<0&&(i=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(i){n=o+1;break}}else a<0&&(i=!0,a=o+1),s>-1&&(e.codePointAt(o)===t.codePointAt(s--)?s<0&&(r=o):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function tR(e){if(Or(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function nR(e){Or(e);let t=e.length,n=-1,r=0,o=-1,i=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?o<0?o=t:i!==1&&(i=1):o>-1&&(i=-1)}return o<0||n<0||i===0||i===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function rR(...e){let t=-1,n;for(;++t<e.length;)Or(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":oR(n)}function oR(e){Or(e);const t=e.codePointAt(0)===47;let n=iR(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function iR(e,t){let n="",r=0,o=-1,i=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(o===a-1||i===1))if(o!==a-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),o=a,i=0;continue}}else if(n.length>0){n="",r=0,o=a,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,a):n=e.slice(o+1,a),r=a-o-1;o=a,i=0}else s===46&&i>-1?i++:i=-1}return n}function Or(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const aR={cwd:sR};function sR(){return"/"}function Ea(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function lR(e){if(typeof e=="string")e=new URL(e);else if(!Ea(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return cR(e)}function cR(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const Bi=["history","path","basename","stem","extname","dirname"];class Lm{constructor(t){let n;t?Ea(t)?n={path:t}:typeof t=="string"||uR(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":aR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Bi.length;){const i=Bi[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let o;for(o in n)Bi.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?gt.basename(this.path):void 0}set basename(t){qi(t,"basename"),Vi(t,"basename"),this.path=gt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?gt.dirname(this.path):void 0}set dirname(t){_c(this.basename,"dirname"),this.path=gt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?gt.extname(this.path):void 0}set extname(t){if(Vi(t,"extname"),_c(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=gt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ea(t)&&(t=lR(t)),qi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?gt.basename(this.path,this.extname):void 0}set stem(t){qi(t,"stem"),Vi(t,"stem"),this.path=gt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new De(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Vi(e,t){if(e&&e.includes(gt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+gt.sep+"`")}function qi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function _c(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function uR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const dR=(function(e){const r=this.constructor.prototype,o=r[e],i=function(){return o.apply(i,arguments)};return Object.setPrototypeOf(i,r),i}),fR={}.hasOwnProperty;class Ns extends dR{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=JP()}copy(){const t=new Ns;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(zi(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Hi("data",this.frozen),this.namespace[t]=n,this):fR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Hi("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ro(t),r=this.parser||this.Parser;return Gi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Gi("process",this.parser||this.Parser),Ui("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,a){const s=ro(t),l=r.parse(s);r.run(l,s,function(d,f,m){if(d||!f||!m)return c(d);const p=f,v=r.stringify(p,m);hR(v)?m.value=v:m.result=v,c(d,m)});function c(d,f){d||!f?a(d):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Gi("processSync",this.parser||this.Parser),Ui("processSync",this.compiler||this.Compiler),this.process(t,o),Oc("processSync","process",n),r;function o(i,a){n=!0,jc(i),r=a}}run(t,n,r){Mc(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(a,s){const l=ro(n);o.run(t,l,c);function c(d,f,m){const p=f||t;d?s(d):a?a(p):r(void 0,p,m)}}}runSync(t,n){let r=!1,o;return this.run(t,n,i),Oc("runSync","run",r),o;function i(a,s){jc(a),o=s,r=!0}}stringify(t,n){this.freeze();const r=ro(n),o=this.compiler||this.Compiler;return Ui("stringify",o),Mc(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(Hi("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[d,...f]=c;l(d,f)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(o.settings=zi(!0,o.settings,c.settings))}function s(c){let d=-1;if(c!=null)if(Array.isArray(c))for(;++d<c.length;){const f=c[d];i(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,d){let f=-1,m=-1;for(;++f<r.length;)if(r[f][0]===c){m=f;break}if(m===-1)r.push([c,...d]);else if(d.length>0){let[p,...v]=d;const g=r[m][1];Sa(g)&&Sa(p)&&(p=zi(!0,g,p)),r[m]=[c,p,...v]}}}}const pR=new Ns().freeze();function Gi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ui(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Hi(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Mc(e){if(!Sa(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Oc(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ro(e){return mR(e)?e:new Lm(e)}function mR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function hR(e){return typeof e=="string"||gR(e)}function gR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const vR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Dc=[],Lc={allowDangerousHtml:!0},xR=/^(https?|ircs?|mailto|xmpp)$/i,bR=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function yR(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,a=e.disallowedElements,s=e.rehypePlugins||Dc,l=e.remarkPlugins||Dc,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Lc}:Lc,d=e.skipHtml,f=e.unwrapDisallowed,m=e.urlTransform||wR,p=pR().use(eP).use(l).use(YP,c).use(s),v=new Lm;typeof r=="string"&&(v.value=r);for(const b of bR)Object.hasOwn(e,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+vR+b.id,void 0);const g=p.parse(v);let x=p.runSync(g,v);return o&&(x={type:"element",tagName:"div",properties:{className:o},children:x.type==="root"?x.children:[x]}),Dm(x,y),_k(x,{Fragment:u.Fragment,components:i,ignoreInvalidStyle:!0,jsx:u.jsx,jsxs:u.jsxs,passKeys:!0,passNode:!0});function y(b,k,P){if(b.type==="raw"&&P&&typeof k=="number")return d?P.children.splice(k,1):P.children[k]={type:"text",value:b.value},k;if(b.type==="element"){let N;for(N in Di)if(Object.hasOwn(Di,N)&&Object.hasOwn(b.properties,N)){const S=b.properties[N],I=Di[N];(I===null||I.includes(b.tagName))&&(b.properties[N]=m(String(S||""),N,b))}}if(b.type==="element"){let N=t?!t.includes(b.tagName):a?a.includes(b.tagName):!1;if(!N&&n&&typeof k=="number"&&(N=!n(b,k,P)),N&&P&&typeof k=="number")return f&&b.children?P.children.splice(k,1,...b.children):P.children.splice(k,1),k}}}function wR(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||n>-1&&t>n||r>-1&&t>r||xR.test(e.slice(0,t))?e:""}function Fm({content:e,className:t}){return u.jsx("div",{"data-slot":"markdown-preview",className:O("qodo qodo-markdown-preview","min-h-16 w-full rounded-md border border-purple-muted-400 bg-transparent dark:bg-input/30 px-3 py-2","text-purple-muted-200 text-sm","[&>*:first-child]:mt-0 [&>*:last-child]:mb-0","[&_h1]:text-2xl [&_h1]:font-bold [&_h1]:mb-4 [&_h1]:mt-6 [&_h1]:text-purple-muted-100","[&_h2]:text-xl [&_h2]:font-bold [&_h2]:mb-3 [&_h2]:mt-5 [&_h2]:text-purple-muted-100","[&_h3]:text-lg [&_h3]:font-semibold [&_h3]:mb-2 [&_h3]:mt-4 [&_h3]:text-purple-muted-100","[&_p]:my-3 [&_p]:leading-relaxed","[&_strong]:font-semibold [&_strong]:text-purple-muted-100","[&_em]:italic","[&_code]:bg-purple-muted-800 [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-xs [&_code]:text-purple-muted-100 [&_code]:font-mono","[&_pre]:bg-purple-muted-800 [&_pre]:border [&_pre]:border-purple-muted-600 [&_pre]:rounded [&_pre]:p-3 [&_pre]:my-3 [&_pre]:overflow-x-auto","[&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_pre_code]:text-sm","[&_ul]:my-3 [&_ul]:pl-6 [&_ul]:list-disc","[&_ol]:my-3 [&_ol]:pl-6 [&_ol]:list-decimal","[&_li]:my-1","[&_blockquote]:border-l-4 [&_blockquote]:border-purple-muted-500 [&_blockquote]:pl-4 [&_blockquote]:my-3 [&_blockquote]:italic [&_blockquote]:text-purple-muted-300","[&_a]:text-primary [&_a]:underline hover:[&_a]:no-underline","[&_hr]:border-purple-muted-500 [&_hr]:my-4",t),children:u.jsx(yR,{children:e})})}var CR=e=>e.type==="checkbox",lr=e=>e instanceof Date,Ts=e=>e==null;const $m=e=>typeof e=="object";var un=e=>!Ts(e)&&!Array.isArray(e)&&$m(e)&&!lr(e),kR=e=>un(e)&&e.target?CR(e.target)?e.target.checked:e.target.value:e,SR=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ER=(e,t)=>e.has(SR(t)),PR=e=>{const t=e.constructor&&e.constructor.prototype;return un(t)&&t.hasOwnProperty("isPrototypeOf")},RR=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function zm(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(RR&&(e instanceof Blob||r))&&(n||un(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!PR(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=zm(e[o]));else return e;return t}var Bm=e=>/^\w*$/.test(e),Pa=e=>e===void 0,NR=e=>Array.isArray(e)?e.filter(Boolean):[],Vm=e=>NR(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ge=(e,t,n)=>{if(!t||!un(e))return n;const r=(Bm(t)?[t]:Vm(t)).reduce((o,i)=>Ts(o)?o:o[i],e);return Pa(r)||r===e?Pa(e[t])?n:e[t]:r},Wi=e=>typeof e=="boolean",Fc=(e,t,n)=>{let r=-1;const o=Bm(t)?[t]:Vm(t),i=o.length,a=i-1;for(;++r<i;){const s=o[r];let l=n;if(r!==a){const c=e[s];l=un(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}};const $c={BLUR:"blur",CHANGE:"change"},zc={all:"all"},Is=R.createContext(null);Is.displayName="HookFormContext";const Yn=()=>R.useContext(Is),TR=e=>{const{children:t,...n}=e;return R.createElement(Is.Provider,{value:n},t)};var IR=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==zc.all&&(t._proxyFormState[a]=!r||zc.all),n&&(n[a]=!0),e[a]}});return o};const qm=typeof window<"u"?R.useLayoutEffect:R.useEffect;function Gm(e){const t=Yn(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[a,s]=R.useState(n._formState),l=R.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return qm(()=>n._subscribe({name:o,formState:l.current,exact:i,callback:c=>{!r&&s({...n._formState,...c})}}),[o,r,i]),R.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),R.useMemo(()=>IR(a,n,l.current,!1),[a,n])}var jR=e=>typeof e=="string",AR=(e,t,n,r,o)=>jR(e)?Ge(n,e,o):Array.isArray(e)?e.map(i=>Ge(n,i)):n,Bc=e=>Ts(e)||!$m(e);function Um(e,t,n=new WeakSet){if(Bc(e)||Bc(t))return e===t;if(lr(e)&&lr(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const a=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const s=t[i];if(lr(a)&&lr(s)||un(a)&&un(s)||Array.isArray(a)&&Array.isArray(s)?!Um(a,s,n):a!==s)return!1}}return!0}function _R(e){const t=Yn(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:a,compute:s}=e||{},l=R.useRef(o),c=R.useRef(s),d=R.useRef(void 0);c.current=s;const f=R.useMemo(()=>n._getWatch(r,l.current),[n,r]),[m,p]=R.useState(c.current?c.current(f):f);return qm(()=>n._subscribe({name:r,formState:{values:!0},exact:a,callback:v=>{if(!i){const g=AR(r,n._names,v.values||n._formValues,!1,l.current);if(c.current){const x=c.current(g);Um(x,d.current)||(p(x),d.current=x)}else p(g)}}}),[n,i,r,a]),R.useEffect(()=>n._removeUnmounted()),m}function MR(e){const t=Yn(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i,defaultValue:a}=e,s=ER(o._names.array,n),l=R.useMemo(()=>Ge(o._formValues,n,Ge(o._defaultValues,n,a)),[o,n,a]),c=_R({control:o,name:n,defaultValue:l,exact:!0}),d=Gm({control:o,name:n,exact:!0}),f=R.useRef(e),m=R.useRef(o.register(n,{...e.rules,value:c,...Wi(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const p=R.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ge(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ge(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ge(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ge(d.validatingFields,n)},error:{enumerable:!0,get:()=>Ge(d.errors,n)}}),[d,n]),v=R.useCallback(b=>m.current.onChange({target:{value:kR(b),name:n},type:$c.CHANGE}),[n]),g=R.useCallback(()=>m.current.onBlur({target:{value:Ge(o._formValues,n),name:n},type:$c.BLUR}),[n,o._formValues]),x=R.useCallback(b=>{const k=Ge(o._fields,n);k&&b&&(k._f.ref={focus:()=>b.focus&&b.focus(),select:()=>b.select&&b.select(),setCustomValidity:P=>b.setCustomValidity(P),reportValidity:()=>b.reportValidity()})},[o._fields,n]),y=R.useMemo(()=>({name:n,value:c,...Wi(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:v,onBlur:g,ref:x}),[n,r,d.disabled,v,g,x,c]);return R.useEffect(()=>{const b=o._options.shouldUnregister||i;o.register(n,{...f.current.rules,...Wi(f.current.disabled)?{disabled:f.current.disabled}:{}});const k=(P,N)=>{const S=Ge(o._fields,P);S&&S._f&&(S._f.mount=N)};if(k(n,!0),b){const P=zm(Ge(o._options.defaultValues,n));Fc(o._defaultValues,n,P),Pa(Ge(o._formValues,n))&&Fc(o._formValues,n,P)}return!s&&o.register(n),()=>{(s?b&&!o._state.action:b)?o.unregister(n):k(n,!1)}},[n,o,s,i]),R.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),R.useMemo(()=>({field:y,formState:d,fieldState:p}),[y,d,p])}const Hm=e=>e.render(MR(e)),Wm=R.createContext(void 0),Km=e=>{const{methods:t,disabled:n,readOnly:r,children:o}=e;return u.jsx(Wm.Provider,{value:{disabled:n,readOnly:r},children:u.jsx(TR,{...t,children:o})})},Ym=()=>{const e=R.useContext(Wm),t=Yn();if(!e||!t)throw new Error("formContext must be used within a FormProvider");return{...e,...t}},OR=({type:e="button",variant:t="outline",...n})=>{const r=()=>e==="submit"||e==="reset"?"default":t;return u.jsx(Nt,{type:e,variant:r(),...n})};var Xm={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Vc=R.createContext&&R.createContext(Xm),DR=["attr","size","title"];function LR(e,t){if(e==null)return{};var n=FR(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FR(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Co.apply(this,arguments)}function qc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qc(Object(n),!0).forEach(function(r){$R(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $R(e,t,n){return t=zR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zR(e){var t=BR(e,"string");return typeof t=="symbol"?t:t+""}function BR(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zm(e){return e&&e.map((t,n)=>R.createElement(t.tag,ko({key:n},t.attr),Zm(t.child)))}function Jm(e){return t=>R.createElement(VR,Co({attr:ko({},e.attr)},t),Zm(e.child))}function VR(e){var t=n=>{var{attr:r,size:o,title:i}=e,a=LR(e,DR),s=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),R.createElement("svg",Co({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:ko(ko({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&R.createElement("title",null,i),e.children)};return Vc!==void 0?R.createElement(Vc.Consumer,null,n=>t(n)):t(Xm)}function qR(e){return Jm({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 GR="Label",Qm=h.forwardRef((e,t)=>u.jsx(te.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Qm.displayName=GR;var UR=Qm;function js({className:e,...t}){return u.jsx(UR,{"data-slot":"label",className:O("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 eh=h.createContext({}),HR=({...e})=>u.jsx(eh.Provider,{value:{name:e.name},children:u.jsx(Hm,{...e})}),ii=()=>{const e=h.useContext(eh),t=h.useContext(th),{getFieldState:n}=Yn(),r=Gm({name:e.name}),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...o}},th=h.createContext({});function WR({className:e,...t}){const n=h.useId();return u.jsx(th.Provider,{value:{id:n},children:u.jsx("div",{"data-slot":"form-item",className:O("qodo qodo-form-item grid gap-2",e),...t})})}function KR({className:e,...t}){const{formItemId:n}=ii();return u.jsx(js,{"data-slot":"form-label",className:O("data-[error=true]:text-destructive font-normal text-sm",e),htmlFor:n,...t})}function YR({...e}){const{error:t,formItemId:n,formDescriptionId:r,formMessageId:o}=ii();return u.jsx(xb,{"data-slot":"form-control",id:n,"aria-describedby":t?`${r} ${o}`:`${r}`,"aria-invalid":!!t,...e})}function XR({className:e,...t}){const{formDescriptionId:n}=ii();return u.jsx("p",{"data-slot":"form-description",id:n,className:O("text-purple-muted-300 text-sm",e),...t})}function ZR({className:e,...t}){const{error:n,formMessageId:r}=ii(),o=n?String((n==null?void 0:n.message)??""):t.children;return o?u.jsx("p",{"data-slot":"form-message",id:r,className:O("text-destructive text-sm",e),...t,children:o}):null}var[ai,i2]=Ae("Tooltip",[qt]),si=qt(),nh="TooltipProvider",JR=700,Ra="tooltip.open",[QR,As]=ai(nh),rh=e=>{const{__scopeTooltip:t,delayDuration:n=JR,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,a=h.useRef(!0),s=h.useRef(!1),l=h.useRef(0);return h.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),u.jsx(QR,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:h.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:h.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:h.useCallback(c=>{s.current=c},[]),disableHoverableContent:o,children:i})};rh.displayName=nh;var wr="Tooltip",[eN,Dr]=ai(wr),oh=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=As(wr,e.__scopeTooltip),c=si(t),[d,f]=h.useState(null),m=Ee(),p=h.useRef(0),v=a??l.disableHoverableContent,g=s??l.delayDuration,x=h.useRef(!1),[y,b]=je({prop:r,defaultProp:o??!1,onChange:I=>{I?(l.onOpen(),document.dispatchEvent(new CustomEvent(Ra))):l.onClose(),i==null||i(I)},caller:wr}),k=h.useMemo(()=>y?x.current?"delayed-open":"instant-open":"closed",[y]),P=h.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x.current=!1,b(!0)},[b]),N=h.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b(!1)},[b]),S=h.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{x.current=!0,b(!0),p.current=0},g)},[g,b]);return h.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),u.jsx(Nr,{...c,children:u.jsx(eN,{scope:t,contentId:m,open:y,stateAttribute:k,trigger:d,onTriggerChange:f,onTriggerEnter:h.useCallback(()=>{l.isOpenDelayedRef.current?S():P()},[l.isOpenDelayedRef,S,P]),onTriggerLeave:h.useCallback(()=>{v?N():(window.clearTimeout(p.current),p.current=0)},[N,v]),onOpen:P,onClose:N,disableHoverableContent:v,children:n})})};oh.displayName=wr;var Na="TooltipTrigger",ih=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Dr(Na,n),i=As(Na,n),a=si(n),s=h.useRef(null),l=de(t,s,o.onTriggerChange),c=h.useRef(!1),d=h.useRef(!1),f=h.useCallback(()=>c.current=!1,[]);return h.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),u.jsx(Tr,{asChild:!0,...a,children:u.jsx(te.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:J(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:J(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:J(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:J(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:J(e.onBlur,o.onClose),onClick:J(e.onClick,o.onClose)})})});ih.displayName=Na;var _s="TooltipPortal",[tN,nN]=ai(_s,{forceMount:void 0}),ah=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Dr(_s,t);return u.jsx(tN,{scope:t,forceMount:n,children:u.jsx(Oe,{present:n||i.open,children:u.jsx(Un,{asChild:!0,container:o,children:r})})})};ah.displayName=_s;var Fn="TooltipContent",sh=h.forwardRef((e,t)=>{const n=nN(Fn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=Dr(Fn,e.__scopeTooltip);return u.jsx(Oe,{present:r||a.open,children:a.disableHoverableContent?u.jsx(lh,{side:o,...i,ref:t}):u.jsx(rN,{side:o,...i,ref:t})})}),rN=h.forwardRef((e,t)=>{const n=Dr(Fn,e.__scopeTooltip),r=As(Fn,e.__scopeTooltip),o=h.useRef(null),i=de(t,o),[a,s]=h.useState(null),{trigger:l,onClose:c}=n,d=o.current,{onPointerInTransitChange:f}=r,m=h.useCallback(()=>{s(null),f(!1)},[f]),p=h.useCallback((v,g)=>{const x=v.currentTarget,y={x:v.clientX,y:v.clientY},b=sN(y,x.getBoundingClientRect()),k=lN(y,b),P=cN(g.getBoundingClientRect()),N=dN([...k,...P]);s(N),f(!0)},[f]);return h.useEffect(()=>()=>m(),[m]),h.useEffect(()=>{if(l&&d){const v=x=>p(x,d),g=x=>p(x,l);return l.addEventListener("pointerleave",v),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",v),d.removeEventListener("pointerleave",g)}}},[l,d,p,m]),h.useEffect(()=>{if(a){const v=g=>{const x=g.target,y={x:g.clientX,y:g.clientY},b=(l==null?void 0:l.contains(x))||(d==null?void 0:d.contains(x)),k=!uN(y,a);b?m():k&&(m(),c())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[l,d,a,c,m]),u.jsx(lh,{...e,ref:i})}),[oN,iN]=ai(wr,{isInside:!1}),aN=yb("TooltipContent"),lh=h.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=Dr(Fn,n),c=si(n),{onClose:d}=l;return h.useEffect(()=>(document.addEventListener(Ra,d),()=>document.removeEventListener(Ra,d)),[d]),h.useEffect(()=>{if(l.trigger){const f=m=>{const p=m.target;p!=null&&p.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),u.jsx(Vn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:u.jsxs(Fo,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(aN,{children:r}),u.jsx(oN,{scope:n,isInside:!0,children:u.jsx(fw,{id:l.contentId,role:"tooltip",children:o||r})})]})})});sh.displayName=Fn;var ch="TooltipArrow",uh=h.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=si(n);return iN(ch,n).isInside?null:u.jsx($o,{...o,...r,ref:t})});uh.displayName=ch;function sN(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function lN(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function cN(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function uN(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,d=s.y,f=l.x,m=l.y;d>r!=m>r&&n<(f-c)*(r-d)/(m-d)+c&&(o=!o)}return o}function dN(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),fN(t)}function fN(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var pN=rh,mN=oh,hN=ih,gN=ah,vN=sh,xN=uh;function dh({delayDuration:e=0,...t}){return u.jsx(pN,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function fh({...e}){return u.jsx(dh,{children:u.jsx(mN,{"data-slot":"tooltip",...e})})}function ph({...e}){return u.jsx(hN,{"data-slot":"tooltip-trigger",...e})}function mh({className:e,sideOffset:t=0,children:n,disableArrow:r=!1,...o}){return u.jsx(gN,{children:u.jsxs(vN,{"data-slot":"tooltip-content",sideOffset:t,className:O("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":r}),...o,children:[n,!r&&u.jsx(xN,{className:"bg-purple-muted-700 fill-purple-muted-700 z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const hn=e=>t=>{const{name:n,label:r,description:o,tooltip:i,required:a=!1,...s}=t,{control:l,disabled:c,readOnly:d}=Ym(),f=()=>i?u.jsxs(fh,{children:[u.jsx(ph,{asChild:!0,children:u.jsx("span",{children:u.jsx(qR,{size:16})})}),u.jsx(mh,{children:u.jsx("p",{children:i})})]}):u.jsx(u.Fragment,{}),m=()=>o?u.jsx(XR,{children:o}):u.jsx(u.Fragment,{});return u.jsx(HR,{control:l,name:n,render:({field:p,fieldState:v})=>u.jsxs(WR,{className:"flex flex-col gap-1.5",children:[r&&u.jsx(KR,{children:u.jsxs("span",{className:"flex items-center gap-1",children:[r,a&&u.jsx("span",{className:"text-purple-muted-300",children:"*"}),!!i&&f()]})}),u.jsx(YR,{children:u.jsx(e,{...p,disabled:c,...s,readOnly:d,error:!!v.error})}),!!o&&m(),u.jsx(ZR,{})]})})},bN=R.forwardRef((e,t)=>u.jsx(Er,{...e,ref:t})),yN=R.forwardRef((e,t)=>hn(bN)({...e,ref:t})),wN=R.forwardRef((e,t)=>{const{options:n=[],onChange:r=()=>{},searchPlaceholder:o,onSearchChange:i,...a}=e,s=l=>{r({target:{value:l}})};return u.jsx(ns,{ref:t,options:n,onValueChange:s,searchPlaceholder:o,onSearchChange:i,...a})}),CN=hn(wN);var Ms="Radio",[kN,hh]=Ae(Ms),[SN,EN]=kN(Ms),gh=h.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,form:c,...d}=e,[f,m]=h.useState(null),p=de(t,x=>m(x)),v=h.useRef(!1),g=f?c||!!f.closest("form"):!0;return u.jsxs(SN,{scope:n,checked:o,disabled:a,children:[u.jsx(te.button,{type:"button",role:"radio","aria-checked":o,"data-state":yh(o),"data-disabled":a?"":void 0,disabled:a,value:s,...d,ref:p,onClick:J(e.onClick,x=>{o||l==null||l(),g&&(v.current=x.isPropagationStopped(),v.current||x.stopPropagation())})}),g&&u.jsx(bh,{control:f,bubbles:!v.current,name:r,value:s,checked:o,required:i,disabled:a,form:c,style:{transform:"translateX(-100%)"}})]})});gh.displayName=Ms;var vh="RadioIndicator",xh=h.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=EN(vh,n);return u.jsx(Oe,{present:r||i.checked,children:u.jsx(te.span,{"data-state":yh(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});xh.displayName=vh;var PN="RadioBubbleInput",bh=h.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const a=h.useRef(null),s=de(a,i),l=zo(n),c=Lo(t);return h.useEffect(()=>{const d=a.current;if(!d)return;const f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&p){const v=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(v)}},[l,n,r]),u.jsx(te.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});bh.displayName=PN;function yh(e){return e?"checked":"unchecked"}var RN=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],li="RadioGroup",[NN,a2]=Ae(li,[Wt,hh]),wh=Wt(),Ch=hh(),[TN,IN]=NN(li),kh=h.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:c,loop:d=!0,onValueChange:f,...m}=e,p=wh(n),v=fn(c),[g,x]=je({prop:i,defaultProp:o??null,onChange:f,caller:li});return u.jsx(TN,{scope:n,name:r,required:a,disabled:s,value:g,onValueChange:x,children:u.jsx(Xo,{asChild:!0,...p,orientation:l,dir:v,loop:d,children:u.jsx(te.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:v,...m,ref:t})})})});kh.displayName=li;var Sh="RadioGroupItem",Eh=h.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=IN(Sh,n),a=i.disabled||r,s=wh(n),l=Ch(n),c=h.useRef(null),d=de(t,c),f=i.value===o.value,m=h.useRef(!1);return h.useEffect(()=>{const p=g=>{RN.includes(g.key)&&(m.current=!0)},v=()=>m.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",v)}},[]),u.jsx(Zo,{asChild:!0,...s,focusable:!a,active:f,children:u.jsx(gh,{disabled:a,required:i.required,checked:f,...l,...o,name:i.name,ref:d,onCheck:()=>i.onValueChange(o.value),onKeyDown:J(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:J(o.onFocus,()=>{var p;m.current&&((p=c.current)==null||p.click())})})})});Eh.displayName=Sh;var jN="RadioGroupIndicator",Ph=h.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Ch(n);return u.jsx(xh,{...o,...r,ref:t})});Ph.displayName=jN;var AN=kh,_N=Eh,MN=Ph;function ON({className:e,...t}){const{readOnly:n,...r}=t;return u.jsx(AN,{"data-slot":"radio-group","data-readonly":n||void 0,disabled:r.disabled||n,className:O("qodo qodo-radio-group grid gap-3 group",e),...r})}function DN({className:e,...t}){return u.jsx(_N,{"data-slot":"radio-group-item",className:O("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:u.jsx(MN,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:u.jsx(Gx,{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 Os=R.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o,disabled:i=!1,readOnly:a=!1,className:s,direction:l="horizontal",dir:c="ltr",name:d,onChange:f,...m}=e,p=g=>{a||(f==null||f({target:{value:g}}),o==null||o(g))},v=O("qodo qodo-custom-radio-group","flex",{"flex-row gap-6":l==="horizontal","flex-col gap-3":l==="vertical"},s);return u.jsx(ON,{name:d,ref:t,value:n,defaultValue:r,onValueChange:p,disabled:i||a,readOnly:a,className:v,dir:c,...m})});Os.displayName="BaseRadioGroupComponent";const Ds=({label:e,description:t,disabled:n=!1,labelClassName:r,descriptionClassName:o,labelWrapperClassName:i})=>u.jsxs("div",{className:O("flex flex-col gap-2",i),children:[e&&u.jsx("div",{className:O("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":n},r),children:e}),t&&u.jsx("div",{className:O("text-sm text-[var(--text-bg-neutral-mild)] font-normal",o),children:t})]});Ds.displayName="LabelWithDescription";const Ls=({value:e="",disabled:t,error:n,name:r="radio",label:o,description:i,wrapperClassName:a,labelClassName:s,descriptionClassName:l,labelWrapperClassName:c})=>{const d=`${r}-${e}`;return u.jsxs(js,{htmlFor:d,className:O("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":n},a),children:[u.jsx(DN,{value:e,id:d,disabled:t||n}),u.jsx(Ds,{label:o,description:i,disabled:t,labelClassName:s,descriptionClassName:l,labelWrapperClassName:c})]},e)};Ls.displayName="RadioGroupItemComponent";const LN=hn(Os),FN=e=>u.jsx("hr",{className:"w-full h-px border-[var(--base-sidebar-border)]",...e}),$N=({children:e,description:t,className:n})=>u.jsxs("div",{className:O("space-y-1",n),children:[u.jsx("h2",{className:"flex items-center gap-2.5 text-2xl text-white",children:e}),t&&u.jsx("span",{className:"text-sm text-purple-muted-300",children:t})]}),Rh=R.forwardRef(({direction:e="horizontal",className:t,...n},r)=>{const o=O("flex flex-row gap-6",{"flex-col":e==="vertical"},t);return u.jsx("div",{ref:r,className:o,...n})});Rh.displayName="FormGroup";function zN({className:e,rows:t,markdownPreview:n,value:r,...o}){return n?u.jsx(Fm,{content:String(r||""),className:e}):u.jsx("textarea",{"data-slot":"textarea",rows:t,value:r,className:O("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-input/30 flex min-h-16 w-full rounded-md border bg-transparent","placeholder:text-purple-muted-400 text-purple-muted-300 shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] 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),...o})}const BN=R.forwardRef(({variant:e="default",className:t,markdownPreview:n,...r},o)=>{const i=hn(zN);return u.jsx(i,{...r,ref:o,markdownPreview:n,className:O({"font-plex-mono text-sm leading-relaxed rounded dark:bg-fill-input-neutral-idle px-3 py-2 border-0":e==="code"},t)})}),Nh=({label:e,id:t,onRemoveTag:n,disabled:r,className:o,variant:i="default"})=>u.jsxs(Ln,{variant:i,disabled:r,size:"sm",className:O("flex items-center gap-1 px-2 py-0.5","font-normal whitespace-nowrap",o),children:[e,n&&u.jsx(Nt,{type:"button",variant:"ghost",size:"icon",className:"p-0 w-[10px] h-[10px] text-inherit disabled:text-inherit",onClick:a=>{a.stopPropagation(),n==null||n(t)},"aria-label":`Remove ${e}`,disabled:r,children:u.jsx(Io,{className:"w-[10px] h-[10px]"})})]}),VN=({label:e,id:t,onClick:n,onDeleteSuggestion:r,deleteText:o,className:i,tagClassName:a,tagVariant:s})=>u.jsx("div",{onClick:n,className:O("bg-transparent hover:bg-purple-muted-800 rounded-sm py-1 px-2",i),children:u.jsxs("div",{className:"flex w-full items-center justify-between gap-2",children:[u.jsx(Nh,{label:e,id:t,className:a,variant:s}),r&&u.jsx(Nt,{type:"button",variant:"ghost",className:"p-0 text-xs font-normal h-[10px]",onMouseDown:l=>l.preventDefault(),onClick:l=>{l.stopPropagation(),r==null||r(t)},"aria-label":`${o} ${e}`,children:o||u.jsx(cb,{className:"h-4 w-4"})})]})}),Ki={BACKSPACE:"Backspace",ESCAPE:"Escape",ENTER:"Enter"},qN=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},Th=({value:e=[],variant:t="default",placeholder:n="Type to add a tag...",deleteText:r="Delete",suggestions:o=[],allowCreate:i=!0,maxTags:a=100,disabled:s=!1,className:l,suggestionWrapperClassName:c,suggestionClassName:d,tagClassName:f,tagInputIcon:m,onDeleteSuggestion:p,onBlur:v,normalizeTags:g=qN,onChange:x=()=>{},onAddTag:y=()=>{},onRemoveTag:b=()=>{},onResetTags:k=()=>{}})=>{const[P,N]=R.useState(""),[S,I]=R.useState(!1),j=R.useRef(null),q=R.useRef(null),U=R.useRef(null),[G,V]=R.useState();R.useEffect(()=>{q.current&&V(q.current.offsetWidth)},[]);const K=e.length>=a,L=z=>{if(K||e.some(ee=>ee.id===z.id))return;const D=[...e,z];x(D),y(z)},T=z=>{const D=e.filter(ee=>ee.id!==z);x(D),b(z)},_=()=>{x==null||x([]),k()},F=z=>{const D=z.target.value;N(D),I(!0)},M=()=>{const z=P.trim().toLowerCase();if(!z)return[];const D=new Set(e.map(ee=>ee.id));return o.filter(ee=>ee.label.toLowerCase().includes(z)&&!D.has(ee.id))},B=z=>g?g(z):z,C=()=>{const z=P.trim();if(!z)return;const D=B(z);if(!D)return;if(e.some(re=>re.id===D)){N(""),I(!1);return}const ee=o.find(re=>re.id===D||B(re.label)===D);ee?L(ee):i&&L({id:D,label:D}),N(""),I(!1)},Q=z=>{const D=z.key===Ki.BACKSPACE&&!P&&e.length>0,ee=z.key===Ki.ENTER&&P,re=z.key===Ki.ESCAPE;ee?(z.preventDefault(),C(),U.current&&(U.current.scrollLeft=U.current.scrollWidth)):D?T(e[e.length-1].id):re&&I(!1)},A=()=>{if(P&&M().length>0)return u.jsx(ts,{className:"p-0 border-transparent bg-[var(--fill-interactive-neutral-idle)] gap-2",align:"start",style:{width:G??void 0},onOpenAutoFocus:z=>z.preventDefault(),onCloseAutoFocus:z=>z.preventDefault(),onMouseDown:z=>z.preventDefault(),children:u.jsx("div",{className:O("max-h-[200px] overflow-y-auto flex flex-col gap-1 p-1",c),children:M().map(z=>u.jsx(VN,{label:z.label,id:z.id,onDeleteSuggestion:p,deleteText:r,className:d,tagClassName:f,tagVariant:t,onClick:()=>{var D;L(z),N(""),I(!1),(D=j.current)==null||D.focus()}},z.id))})})},w=()=>m||u.jsx(sb,{className:"h-4 w-4 stroke-[var(--icon-bg-neutral-mild)]"}),Y=()=>e.map(z=>u.jsx(Nh,{label:z.label,id:z.id,onRemoveTag:T,disabled:s,className:f,variant:t},z.id)),X=()=>e.length===0?u.jsx(u.Fragment,{}):u.jsx(Io,{className:"h-4 w-4 hover:cursor-pointer stroke-[var(--icon-input-neutral-idle)] hover:stroke-[var(--icon-input-neutral-hover)]",onClick:_});return u.jsx("div",{className:O("w-full",l),children:u.jsxs(Qa,{open:S&&!s,onOpenChange:I,modal:!1,children:[u.jsx(es,{className:"w-full",children:u.jsxs("div",{ref:q,tabIndex:-1,className:O("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":s}),onClick:z=>{var D;z.stopPropagation(),I(!0),(D=j.current)==null||D.focus()},children:[w(),u.jsxs("div",{ref:U,className:"flex items-center gap-2 w-full whitespace-normal overflow-x-auto",children:[Y(),u.jsx(Er,{ref:j,value:P,onChange:F,onClick:z=>z.stopPropagation(),onFocus:()=>I(!0),onBlur:v,onKeyDown:Q,placeholder:n,disabled:s||K,className:O("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")})]}),X()]})}),A()]})})};function GN(e){const{control:t}=Yn();return u.jsx(Hm,{name:e.name,control:t,render:({field:n})=>u.jsx(Th,{...e,value:n.value,onChange:n.onChange,onBlur:n.onBlur})})}const UN=hn(GN),HN=12,Gc={SINGLE:"single",MULTIPLE:"multiple"},Uc={LTR:"ltr"},Hc={GHOST:"ghost"};var Ih=typeof global=="object"&&global&&global.Object===Object&&global,WN=typeof self=="object"&&self&&self.Object===Object&&self,Xt=Ih||WN||Function("return this")(),So=Xt.Symbol,jh=Object.prototype,KN=jh.hasOwnProperty,YN=jh.toString,ar=So?So.toStringTag:void 0;function XN(e){var t=KN.call(e,ar),n=e[ar];try{e[ar]=void 0;var r=!0}catch{}var o=YN.call(e);return r&&(t?e[ar]=n:delete e[ar]),o}var ZN=Object.prototype,JN=ZN.toString;function QN(e){return JN.call(e)}var eT="[object Null]",tT="[object Undefined]",Wc=So?So.toStringTag:void 0;function Lr(e){return e==null?e===void 0?tT:eT:Wc&&Wc in Object(e)?XN(e):QN(e)}function Fs(e){return e!=null&&typeof e=="object"}var nT=Array.isArray;function Ah(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rT="[object AsyncFunction]",oT="[object Function]",iT="[object GeneratorFunction]",aT="[object Proxy]";function _h(e){if(!Ah(e))return!1;var t=Lr(e);return t==oT||t==iT||t==rT||t==aT}var Yi=Xt["__core-js_shared__"],Kc=(function(){var e=/[^.]+$/.exec(Yi&&Yi.keys&&Yi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function sT(e){return!!Kc&&Kc in e}var lT=Function.prototype,cT=lT.toString;function gn(e){if(e!=null){try{return cT.call(e)}catch{}try{return e+""}catch{}}return""}var uT=/[\\^$.*+?()[\]{}|]/g,dT=/^\[object .+?Constructor\]$/,fT=Function.prototype,pT=Object.prototype,mT=fT.toString,hT=pT.hasOwnProperty,gT=RegExp("^"+mT.call(hT).replace(uT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vT(e){if(!Ah(e)||sT(e))return!1;var t=_h(e)?gT:dT;return t.test(gn(e))}function xT(e,t){return e==null?void 0:e[t]}function Fr(e,t){var n=xT(e,t);return vT(n)?n:void 0}var Ta=Fr(Xt,"WeakMap"),bT=9007199254740991;function Mh(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bT}function yT(e){return e!=null&&Mh(e.length)&&!_h(e)}var wT=Object.prototype;function Oh(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||wT;return e===n}var CT="[object Arguments]";function Yc(e){return Fs(e)&&Lr(e)==CT}var Dh=Object.prototype,kT=Dh.hasOwnProperty,ST=Dh.propertyIsEnumerable,ET=Yc((function(){return arguments})())?Yc:function(e){return Fs(e)&&kT.call(e,"callee")&&!ST.call(e,"callee")};function PT(){return!1}var Lh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Xc=Lh&&typeof module=="object"&&module&&!module.nodeType&&module,RT=Xc&&Xc.exports===Lh,Zc=RT?Xt.Buffer:void 0,NT=Zc?Zc.isBuffer:void 0,TT=NT||PT,IT="[object Arguments]",jT="[object Array]",AT="[object Boolean]",_T="[object Date]",MT="[object Error]",OT="[object Function]",DT="[object Map]",LT="[object Number]",FT="[object Object]",$T="[object RegExp]",zT="[object Set]",BT="[object String]",VT="[object WeakMap]",qT="[object ArrayBuffer]",GT="[object DataView]",UT="[object Float32Array]",HT="[object Float64Array]",WT="[object Int8Array]",KT="[object Int16Array]",YT="[object Int32Array]",XT="[object Uint8Array]",ZT="[object Uint8ClampedArray]",JT="[object Uint16Array]",QT="[object Uint32Array]",Se={};Se[UT]=Se[HT]=Se[WT]=Se[KT]=Se[YT]=Se[XT]=Se[ZT]=Se[JT]=Se[QT]=!0;Se[IT]=Se[jT]=Se[qT]=Se[AT]=Se[GT]=Se[_T]=Se[MT]=Se[OT]=Se[DT]=Se[LT]=Se[FT]=Se[$T]=Se[zT]=Se[BT]=Se[VT]=!1;function eI(e){return Fs(e)&&Mh(e.length)&&!!Se[Lr(e)]}function tI(e){return function(t){return e(t)}}var Fh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vr=Fh&&typeof module=="object"&&module&&!module.nodeType&&module,nI=vr&&vr.exports===Fh,Xi=nI&&Ih.process,Jc=(function(){try{var e=vr&&vr.require&&vr.require("util").types;return e||Xi&&Xi.binding&&Xi.binding("util")}catch{}})(),Qc=Jc&&Jc.isTypedArray,rI=Qc?tI(Qc):eI;function oI(e,t){return function(n){return e(t(n))}}var iI=oI(Object.keys,Object),aI=Object.prototype,sI=aI.hasOwnProperty;function lI(e){if(!Oh(e))return iI(e);var t=[];for(var n in Object(e))sI.call(e,n)&&n!="constructor"&&t.push(n);return t}var Ia=Fr(Xt,"Map"),ja=Fr(Xt,"DataView"),Aa=Fr(Xt,"Promise"),_a=Fr(Xt,"Set"),eu="[object Map]",cI="[object Object]",tu="[object Promise]",nu="[object Set]",ru="[object WeakMap]",ou="[object DataView]",uI=gn(ja),dI=gn(Ia),fI=gn(Aa),pI=gn(_a),mI=gn(Ta),rn=Lr;(ja&&rn(new ja(new ArrayBuffer(1)))!=ou||Ia&&rn(new Ia)!=eu||Aa&&rn(Aa.resolve())!=tu||_a&&rn(new _a)!=nu||Ta&&rn(new Ta)!=ru)&&(rn=function(e){var t=Lr(e),n=t==cI?e.constructor:void 0,r=n?gn(n):"";if(r)switch(r){case uI:return ou;case dI:return eu;case fI:return tu;case pI:return nu;case mI:return ru}return t});var hI="[object Map]",gI="[object Set]",vI=Object.prototype,xI=vI.hasOwnProperty;function Xn(e){if(e==null)return!0;if(yT(e)&&(nT(e)||typeof e=="string"||typeof e.splice=="function"||TT(e)||rI(e)||ET(e)))return!e.length;var t=rn(e);if(t==hI||t==gI)return!e.size;if(Oh(e))return!lI(e).length;for(var n in e)if(xI.call(e,n))return!1;return!0}function ci(e){return!e.children||e.children.length===0?[e.value]:e.children.flatMap(t=>ci(t))}function $s(e){const t=[e.value];return e.children&&e.children.forEach(n=>{t.push(...$s(n))}),t}function zs(e,t){return Xn(e.children)?!1:ci(e).every(r=>t.has(r))}function bI(e,t){return Xn(e.children)?!1:ci(e).some(r=>t.has(r))}function $h(e,t){for(const n of e){if(n.value===t)return n;if(n.children){const r=$h(n.children,t);if(r)return r}}return null}function Bs(e,t){const n=new Map;for(const r of e){const o=t(r);o&&n.set(o[0],o[1]),r.children&&Bs(r.children,t).forEach((a,s)=>n.set(s,a))}return n}function zh(e,t){e.forEach(n=>{Xn(n.children)||(zs(n,t)?t.add(n.value):t.delete(n.value),n.children&&zh(n.children,t))})}const yI=e=>e?Array.isArray(e)?e:[e]:[],wI=e=>Bs(e,t=>[t.value,t.label]),CI=e=>Bs(e,t=>t.icon?[t.value,t.icon]:null);function kI(e,t){$s(e).forEach(r=>t.delete(r))}function SI(e,t){$s(e).forEach(r=>t.add(r))}function Bh(e,t){const n=new Set(t);return e.flatMap(r=>!Xn(r.children)&&r.children?zs(r,n)?[r.value]:Bh(r.children,t):n.has(r.value)?[r.value]:[])}function EI(e){return e&&e>1?e*HN:0}var ui="Checkbox",[PI,s2]=Ae(ui),[RI,Vs]=PI(ui);function NI(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:l,required:c,value:d="on",internal_do_not_use_render:f}=e,[m,p]=je({prop:n,defaultProp:o??!1,onChange:l,caller:ui}),[v,g]=h.useState(null),[x,y]=h.useState(null),b=h.useRef(!1),k=v?!!a||!!v.closest("form"):!0,P={checked:m,disabled:i,setChecked:p,control:v,setControl:g,name:s,form:a,value:d,hasConsumerStoppedPropagationRef:b,required:c,defaultChecked:Ft(o)?!1:o,isFormControl:k,bubbleInput:x,setBubbleInput:y};return u.jsx(RI,{scope:t,...P,children:TI(f)?f(P):r})}var Vh="CheckboxTrigger",qh=h.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:a,disabled:s,checked:l,required:c,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:m,isFormControl:p,bubbleInput:v}=Vs(Vh,e),g=de(o,d),x=h.useRef(l);return h.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const b=()=>f(x.current);return y.addEventListener("reset",b),()=>y.removeEventListener("reset",b)}},[i,f]),u.jsx(te.button,{type:"button",role:"checkbox","aria-checked":Ft(l)?"mixed":l,"aria-required":c,"data-state":Kh(l),"data-disabled":s?"":void 0,disabled:s,value:a,...r,ref:g,onKeyDown:J(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:J(n,y=>{f(b=>Ft(b)?!0:!b),v&&p&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})})});qh.displayName=Vh;var qs=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l,onCheckedChange:c,form:d,...f}=e;return u.jsx(NI,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:c,name:r,form:d,value:l,internal_do_not_use_render:({isFormControl:m})=>u.jsxs(u.Fragment,{children:[u.jsx(qh,{...f,ref:t,__scopeCheckbox:n}),m&&u.jsx(Wh,{__scopeCheckbox:n})]})})});qs.displayName=ui;var Gh="CheckboxIndicator",Uh=h.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Vs(Gh,n);return u.jsx(Oe,{present:r||Ft(i.checked)||i.checked===!0,children:u.jsx(te.span,{"data-state":Kh(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Uh.displayName=Gh;var Hh="CheckboxBubbleInput",Wh=h.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:l,name:c,value:d,form:f,bubbleInput:m,setBubbleInput:p}=Vs(Hh,e),v=de(n,p),g=zo(i),x=Lo(r);h.useEffect(()=>{const b=m;if(!b)return;const k=window.HTMLInputElement.prototype,N=Object.getOwnPropertyDescriptor(k,"checked").set,S=!o.current;if(g!==i&&N){const I=new Event("click",{bubbles:S});b.indeterminate=Ft(i),N.call(b,Ft(i)?!1:i),b.dispatchEvent(I)}},[m,g,i,o]);const y=h.useRef(Ft(i)?!1:i);return u.jsx(te.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:s,disabled:l,name:c,value:d,form:f,...t,tabIndex:-1,ref:v,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Wh.displayName=Hh;function TI(e){return typeof e=="function"}function Ft(e){return e==="indeterminate"}function Kh(e){return Ft(e)?"indeterminate":e?"checked":"unchecked"}const Gs=h.forwardRef(({className:e,...t},n)=>u.jsx(qs,{ref:n,className:O("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:u.jsx(Uh,{className:O("flex items-center justify-center text-current"),children:t.checked==="indeterminate"?u.jsx(ob,{className:"h-4 w-4 stroke-[var(--icon-input-emphasis-idle)]"}):u.jsx(Bn,{className:"h-4 w-4 stroke-[var(--icon-input-emphasis-idle)]"})})}));Gs.displayName=qs.displayName;function Yh({option:e,selected:t,onSelect:n,nestLevel:r=0,disabled:o=!1,dir:i=Uc.LTR,selectionIndicator:a="checkmark"}){const s=!Xn(e.children),l=t.has(e.value),c=`${EI(r)}px`,d=zs(e,t),m=bI(e,t)&&!d,p=l||d,v=()=>{if(r!==0)return u.jsx(Hx,{className:"w-4 text-[var(--text-interactive-neutral-idle)]"})},g=()=>{if(e.icon)return u.jsx("div",{className:"flex-shrink-0 [&>svg]:text-[var(--text-interactive-neutral-idle)]!",children:e.icon})},x=()=>m?u.jsx(Kx,{className:"w-2 h-2 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)]"}):a==="checkbox"?u.jsx(Gs,{checked:p}):u.jsx(Bn,{className:O("h-4 w-4 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)] opacity-0",{"opacity-100":p})}),y=()=>{if(s)return e.children.map(k=>u.jsx(Yh,{option:k,selected:t,onSelect:n,nestLevel:r+1,dir:i,selectionIndicator:a},k.value))},b=()=>u.jsxs("div",{className:O("flex items-center w-full gap-3 flex-row",{"flex-row-reverse":i===Uc.LTR}),style:{paddingLeft:c},children:[u.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[v(),g(),u.jsx("span",{className:"flex-1 text-[var(--text-interactive-neutral-active)]",children:e.label})]}),x()]});return u.jsxs("div",{children:[u.jsx(qf,{disabled:e.disabled||o,onSelect:()=>n(e.value,s),className:O("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)]":p}),children:b()}),y()]})}function Xh({value:e,options:t=[],onSelect:n,disabled:r=!1,readOnly:o=!1,mode:i=Gc.SINGLE,placeholder:a="Select...",inputPlaceholder:s="Search...",emptyState:l="No option found.",triggerClassName:c,triggerWrapperClassName:d,badgeClassName:f,badgeVariant:m="text",searchable:p=!1,toggleIcon:v=u.jsx(To,{}),dir:g="ltr",variant:x="default",iconPosition:y="right",selectionIndicator:b="checkmark",...k}){const[P,N]=R.useState(0),[S,I]=R.useState(!1),j=R.useRef(null),q=i===Gc.MULTIPLE,[U,G]=R.useState(e!==void 0?e:q?[]:""),V=yI(U),K=new Set(V);R.useEffect(()=>{j.current&&N(j.current.offsetWidth)},[U]);const L=wI(t),T=CI(t);R.useEffect(()=>{e!==void 0&&G(q?e||[]:e||"")},[e,q]);function _(A,w){if(!q){G(A),n==null||n(A),I(!1);return}G(Y=>{const X=Array.isArray(Y)?Y:[],z=new Set(X),D=$h(t,A);if(!D)return X;w?F(D,z):M(A,z);const ee=Array.from(z);return n==null||n(ee),ee})}function F(A,w){ci(A).every(z=>w.has(z))?kI(A,w):SI(A,w)}function M(A,w){w.has(A)?w.delete(A):w.add(A),zh(t,w)}const B=()=>{const A=Bh(t,V);return A.length===0?u.jsx(Ln,{variant:m,size:"md",className:O("text-[var(--text-input-neutral-placeholder)]",{"text-[var(--text-input-neutral-disabled)]":r},f),children:a}):A.map(Y=>{const X=T.get(Y),z=L.get(Y)||Y;return u.jsx(Ln,{variant:m,size:"md",className:O("text-[var(--text-bg-neutral-mid)]",{"text-[var(--text-input-neutral-disabled)]":r},f),children:u.jsxs("div",{className:"flex items-center gap-1",children:[X&&u.jsx("div",{className:"flex-shrink-0",children:X}),u.jsx("span",{children:z})]})},Y)})},C=()=>{if(p)return u.jsx($f,{className:"placeholder:text-[var(--text-bg-neutral-mid)] text-[var(--text-interactive-neutral-active)]",placeholder:s})},Q=r||o;return u.jsxs(Qa,{open:S,onOpenChange:Q?void 0:I,children:[u.jsx(es,{asChild:!0,disabled:Q,children:u.jsxs("div",{className:O("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)]":!Q,"hover:bg-[var(--fill-input-neutral-hover)]":!Q&&x!==Hc.GHOST,"bg-[var(--fill-input-neutral-idle)]":x!==Hc.GHOST,"cursor-not-allowed opacity-75":r,"cursor-default border-0":o&&!r,"flex-row-reverse":y==="left"},d),ref:j,"aria-disabled":Q,"aria-readonly":o,...k,children:[u.jsx("div",{className:O("flex justify-start text-start w-[100%] whitespace-nowrap overflow-x-auto gap-1.5",c),children:B()}),!o&&u.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:v})]})}),u.jsx(ts,{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:u.jsxs(Ff,{className:"bg-[var(--fill-interactive-neutral-idle)]",children:[C(),u.jsxs(zf,{children:[u.jsx(Bf,{children:l}),u.jsx(Vf,{children:t.map(A=>u.jsx(Yh,{disabled:r,option:A,selected:K,onSelect:_,dir:g,selectionIndicator:b},A.value))})]})]})})]})}const Zh=R.forwardRef(e=>{const{options:t,onChange:n,readOnly:r,value:o,disabled:i,mode:a,...s}=e,l=c=>{r||n&&n({target:{value:c}})};return u.jsx(Xh,{options:t,value:o,disabled:i,readOnly:r,...s,onSelect:l,mode:a})});Zh.displayName="BaseSelectComponent";const II=hn(Zh),Us=R.forwardRef((e,t)=>{const{value:n=[],defaultValue:r=[],onValueChange:o,disabled:i=!1,readOnly:a=!1,className:s,direction:l="vertical",onChange:c,children:d,...f}=e,[m,p]=R.useState(Xn(n)?r:n),v=l==="horizontal",g=n!==void 0?n:m,x=(k,P)=>{if(a)return;const N=P?[...g,k]:g.filter(S=>S!==k);n===void 0&&p(N),c==null||c({target:{value:N}}),o==null||o(N)},y=O("qodo qodo-custom-checkbox-group","flex",{"flex-row gap-6":v,"flex-col gap-3":!v},s),b=()=>R.Children.map(d,k=>{if(!R.isValidElement(k))return k;const P=k.props.name;if(!P)return k;const N=k.props.disabled,S=a||i||N;return R.cloneElement(k,{checked:g.includes(P),onCheckedChange:I=>x(P,I),disabled:S,name:P})});return u.jsx("div",{ref:t,className:y,...f,children:b()})});Us.displayName="CheckboxGroupComponent";const Hs=({disabled:e,error:t,name:n="checkbox",checked:r,onCheckedChange:o,label:i,description:a,labelWrapperClassName:s,labelClassName:l,descriptionClassName:c,checkboxClassName:d,wrapperClassName:f})=>u.jsxs(js,{htmlFor:n,className:O("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},f),children:[u.jsx(Gs,{id:n,disabled:e||t,checked:r,onCheckedChange:o,className:O("mt-0.5",d)}),u.jsx(Ds,{label:i,description:a,disabled:e,labelClassName:l,descriptionClassName:c,labelWrapperClassName:s})]});Hs.displayName="CheckboxGroupItemComponent";const jI=hn(Us),We=e=>{const{className:t,disabled:n=!1,readOnly:r=!1,methods:o,onSubmit:i=()=>{},...a}=e,{handleSubmit:s}=o,l=O("qodo qodo-form","flex flex-col gap-6",t);return u.jsx(Km,{methods:o,disabled:n,readOnly:r,children:u.jsx("form",{className:l,onSubmit:s(i),...a})})};We.Button=OR;We.Input=yN;We.Select=II;We.Combobox=CN;We.RadioGroup=LN;We.RadioGroupItem=Ls;We.Group=Rh;We.Textarea=BN;We.Divider=FN;We.Title=$N;We.TagsInput=UN;We.CheckboxGroup=jI;We.Checkbox=Hs;function AI(e){return e==null?[]:Array.isArray(e)?e:[e]}var _I=e=>Array.from(Array(e).keys()),iu=e=>(e==null?void 0:e.constructor.name)==="Array",MI=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Ws(e[n],t[n]))return!1;return!0},Ws=(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(iu(e)&&iu(t))return MI(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let o=0;o<r;o++)if(!Reflect.has(e,n[o]))return!1;for(let o=0;o<r;o++){const i=n[o];if(!Ws(e[i],t[i]))return!1}return!0},OI=e=>e!=null&&typeof e=="object",co=e=>typeof e=="string",cr=e=>typeof e=="function",DI=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),LI=e=>Object.prototype.toString.call(e),Jh=Function.prototype.toString,FI=Jh.call(Object),$I=e=>{if(!OI(e)||LI(e)!="[object Object]"||VI(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=DI(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Jh.call(n)==FI},zI=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,BI=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,VI=e=>zI(e)||BI(e),qI=e=>e(),GI=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})},UI=e=>Number.isNaN(e),HI=e=>UI(e)?0:e,WI=(e,t,n)=>{const r=HI(e),o=r>=t,i=n==null||r<=n;return o&&i};function Qh(e){if(!$I(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=Qh(o))}return n}function au(...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 KI(e,t){if(e==null)throw new Error(t())}var eg=e=>typeof e=="object"&&e!==null,mt=e=>e?"":void 0,YI=9,XI=e=>eg(e)&&e.nodeType===YI,ZI=e=>eg(e)&&e===e.window;function JI(e){if(!e)return!1;const t=e.getRootNode();return tg(t)===e}function QI(e){return XI(e)?e:ZI(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function tg(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(!n||n===t)break;t=n}return t}var ej=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),tj=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,su=e=>{const t={};let n;for(;n=tj.exec(e);)t[n[1]]=n[2];return t},nj=(e,t)=>{if(co(e)){if(co(t))return`${e};${t}`;e=su(e)}else co(t)&&(t=su(t));return Object.assign({},e??{},t??{})};function pt(...e){let t={};for(let n of e){if(!n)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof n[o]=="function"){t[o]=GI(n[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=ej(t[o],n[o]);continue}if(o==="style"){t[o]=nj(t[o],n[o]);continue}t[o]=n[o]!==void 0?n[o]:t[o]}for(let o in n)t[o]===void 0&&(t[o]=n[o]);const r=Object.getOwnPropertySymbols(n);for(let o of r)t[o]=n[o]}return t}function rj(e,t,n){let r=[],o;return i=>{const a=e(i);return(a.length!==r.length||a.some((l,c)=>!Ws(r[c],l)))&&(r=a,o=t(a,i)),o}}var In=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(In||{}),Zi="__init__";function oj(e){const t=()=>{var a;return((a=e.getRootNode)==null?void 0:a.call(e))??document},n=()=>QI(t());return{...e,getRootNode:t,getDoc:n,getWin:()=>n().defaultView??window,getActiveElement:()=>tg(t()),isActiveElement:JI,getById:a=>t().getElementById(a)}}function ij(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var aj=()=>e=>Array.from(new Set(e)),ng=typeof globalThis.document<"u"?R.useLayoutEffect:R.useEffect;function Eo(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=R.useState(t),[o,i]=R.useState(r),a=e().value!==void 0,s=R.useRef(o);s.current=a?e().value:o;const l=R.useRef(s.current);ng(()=>{l.current=s.current},[o,e().value]);const c=f=>{var v,g;const m=l.current,p=cr(f)?f(m):f;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:p,prev:m}),a||i(p),n(p,m)||(g=(v=e()).onChange)==null||g.call(v,p,m)};function d(){return a?e().value:o}return{initial:r,ref:s,get:d,set(f){(e().sync?Sr.flushSync:qI)(()=>c(f))},invoke(f,m){var p,v;(v=(p=e()).onChange)==null||v.call(p,f,m)},hash(f){var m,p;return((p=(m=e()).hash)==null?void 0:p.call(m,f))??String(f)}}}Eo.cleanup=e=>{R.useEffect(()=>e,[])};Eo.ref=e=>{const t=R.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function sj(e){const t=R.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var lj=(e,t)=>{const n=R.useRef(!1),r=R.useRef(!1);R.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),R.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function cj(e,t={}){var G,V,K,L;const n=R.useMemo(()=>{const{id:T,ids:_,getRootNode:F}=t;return oj({id:T,ids:_,getRootNode:F})},[t]),r=(...T)=>{e.debug&&console.log(...T)},o=((G=e.props)==null?void 0:G.call(e,{props:Qh(t),scope:n}))??t,i=uj(o),a=(V=e.context)==null?void 0:V.call(e,{prop:i,bindable:Eo,scope:n,flush:lu,getContext(){return l},getComputed(){return N},getRefs(){return g},getEvent(){return p()}}),s=rg(a),l={get(T){var _;return(_=s.current)==null?void 0:_[T].ref.current},set(T,_){var F;(F=s.current)==null||F[T].set(_)},initial(T){var _;return(_=s.current)==null?void 0:_[T].initial},hash(T){var F,M;const _=(F=s.current)==null?void 0:F[T].get();return(M=s.current)==null?void 0:M[T].hash(_)}},c=R.useRef(new Map),d=R.useRef(null),f=R.useRef(null),m=R.useRef({type:""}),p=()=>({...m.current,current(){return m.current},previous(){return f.current}}),v=()=>({...S,matches(...T){return T.includes(S.ref.current)},hasTag(T){var _,F;return!!((F=(_=e.states[S.ref.current])==null?void 0:_.tags)!=null&&F.includes(T))}}),g=sj(((K=e.refs)==null?void 0:K.call(e,{prop:i,context:l}))??{}),x=()=>({state:v(),context:l,event:p(),prop:i,send:U,action:y,guard:b,track:lj,refs:g,computed:N,flush:lu,scope:n,choose:P}),y=T=>{const _=cr(T)?T(x()):T;if(!_)return;const F=_.map(M=>{var C,Q;const B=(Q=(C=e.implementations)==null?void 0:C.actions)==null?void 0:Q[M];return B||au(`[zag-js] No implementation found for action "${JSON.stringify(M)}"`),B});for(const M of F)M==null||M(x())},b=T=>{var _,F;return cr(T)?T(x()):(F=(_=e.implementations)==null?void 0:_.guards)==null?void 0:F[T](x())},k=T=>{const _=cr(T)?T(x()):T;if(!_)return;const F=_.map(B=>{var Q,A;const C=(A=(Q=e.implementations)==null?void 0:Q.effects)==null?void 0:A[B];return C||au(`[zag-js] No implementation found for effect "${JSON.stringify(B)}"`),C}),M=[];for(const B of F){const C=B==null?void 0:B(x());C&&M.push(C)}return()=>M.forEach(B=>B==null?void 0:B())},P=T=>AI(T).find(_=>{let F=!_.guard;return co(_.guard)?F=!!b(_.guard):cr(_.guard)&&(F=_.guard(x())),F}),N=T=>{KI(e.computed,()=>"[zag-js] No computed object found on machine");const _=e.computed[T];return _({context:l,event:p(),prop:i,refs:g,scope:n,computed:N})},S=Eo(()=>({defaultValue:e.initialState({prop:i}),onChange(T,_){var M,B,C,Q;if(_){const A=c.current.get(_);A==null||A(),c.current.delete(_)}_&&y((M=e.states[_])==null?void 0:M.exit),y((B=d.current)==null?void 0:B.actions);const F=k((C=e.states[T])==null?void 0:C.effects);if(F&&c.current.set(T,F),_===Zi){y(e.entry);const A=k(e.effects);A&&c.current.set(Zi,A)}y((Q=e.states[T])==null?void 0:Q.entry)}})),I=R.useRef(void 0),j=R.useRef(In.NotStarted);ng(()=>{queueMicrotask(()=>{const F=j.current===In.Started;j.current=In.Started,r(F?"rehydrating...":"initializing...");const M=I.current??S.initial;S.invoke(M,F?S.get():Zi)});const T=c.current,_=S.ref.current;return()=>{r("unmounting..."),I.current=_,j.current=In.Stopped,T.forEach(F=>F==null?void 0:F()),c.current=new Map,d.current=null,queueMicrotask(()=>{y(e.exit)})}},[]);const q=()=>"ref"in S?S.ref.current:S.get(),U=T=>{queueMicrotask(()=>{var Q,A;if(j.current!==In.Started)return;f.current=m.current,m.current=T;let _=q();const F=((Q=e.states[_].on)==null?void 0:Q[T.type])??((A=e.on)==null?void 0:A[T.type]),M=P(F);if(!M)return;d.current=M;const B=M.target??_;r("transition",T.type,M.target||_,`(${M.actions})`);const C=B!==_;C?Sr.flushSync(()=>S.set(B)):M.reenter&&!C?S.invoke(_,_):y(M.actions??[])})};return(L=e.watch)==null||L.call(e,x()),{state:v(),send:U,context:l,prop:i,scope:n,refs:g,computed:N,event:p(),getStatus:()=>j.current}}function rg(e){const t=R.useRef(e);return t.current=e,t}function uj(e){const t=rg(e);return function(r){return t.current[r]}}function lu(e){queueMicrotask(()=>{Sr.flushSync(()=>e())})}var dj=ij(e=>e);function fj(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&n.push(o)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function pj(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Ji=e=>{const t=R.memo(R.forwardRef((n,r)=>{const{asChild:o,children:i,...a}=n;if(!o)return R.createElement(e,{...a,ref:r},i);if(!R.isValidElement(i))return null;const s=R.Children.only(i),l=pj(s);return R.cloneElement(s,{...pt(a,s.props),ref:r?fj(r,l):l})}));return t.displayName=e.displayName||e.name,t},mj=()=>{const e=new Map;return new Proxy(Ji,{apply(t,n,r){return Ji(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,Ji(r)),e.get(r)}})},St=mj();function hj(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function $r(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=R.createContext(a);s.displayName=t;function l(){var d;const c=R.useContext(s);if(!c&&n){const f=new Error(i??hj(r,o));throw f.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,f,l),f}return c}return[s.Provider,l,s]}const[gj,At]=$r({name:"StepsContext",hookName:"useStepsContext",providerName:"<StepsProvider />"}),og=R.forwardRef((e,t)=>{const n=At(),r=pt(n.getContentProps({index:n.count}),e);return u.jsx(St.div,{...r,ref:t})});og.displayName="StepsCompletedContent";const Ks=()=>(e,t)=>t.reduce((n,r)=>{const[o,i]=n,a=r;return i[a]!==void 0&&(o[a]=i[a]),delete i[a],[o,i]},[{},{...e}]),ig=R.forwardRef((e,t)=>{const[n,r]=Ks()(e,["index"]),o=At(),i=pt(o.getContentProps(n),r);return u.jsx(St.div,{...i,ref:t})});ig.displayName="StepsContent";const[vj,Ys]=$r({name:"StepsItemPropsContext",hookName:"useStepsItemPropsContext",providerName:"<StepsItemPropsProvider />"}),ag=R.forwardRef((e,t)=>{const n=At(),r=Ys(),o=pt(n.getIndicatorProps(r),e);return u.jsx(St.div,{...o,ref:t})});ag.displayName="StepsIndicator";const[xj,l2]=$r({name:"StepsItemContext",hookName:"useStepsItemContext",providerName:"<StepsItem />"}),sg=R.forwardRef((e,t)=>{const[n,r]=Ks()(e,["index"]),o=At(),i=pt(o.getItemProps(n),r),a=o.getItemState(n);return u.jsx(vj,{value:n,children:u.jsx(xj,{value:a,children:u.jsx(St.div,{...i,ref:t})})})});sg.displayName="StepsItem";const lg=R.forwardRef((e,t)=>{const n=At(),r=pt(n.getListProps(),e);return u.jsx(St.div,{...r,ref:t})});lg.displayName="StepsList";const cg=R.forwardRef((e,t)=>{const n=At(),r=pt(n.getNextTriggerProps(),e);return u.jsx(St.button,{...r,ref:t})});cg.displayName="StepsNextTrigger";const ug=R.forwardRef((e,t)=>{const n=At(),r=pt(n.getPrevTriggerProps(),e);return u.jsx(St.button,{...r,ref:t})});ug.displayName="StepsPrevTrigger";var ur=(e,t=[])=>({parts:(...n)=>{if(bj(t))return ur(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>ur(e,[...t,...n]),omit:(...n)=>ur(e,t.filter(r=>!n.includes(r))),rename:n=>ur(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${Rn(e)}"][data-part="${Rn(r)}"]`,`& [data-scope="${Rn(e)}"][data-part="${Rn(r)}"]`].join(", "),attrs:{"data-scope":Rn(e),"data-part":Rn(r)}}}),{})}),Rn=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),bj=e=>e.length===0,yj=ur("steps").parts("root","list","item","trigger","indicator","separator","content","nextTrigger","prevTrigger","progress"),ht=yj.build(),wj=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`steps:${e.id}`},Cj=e=>{var t;return((t=e.ids)==null?void 0:t.list)??`steps:${e.id}:list`},cu=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.triggerId)==null?void 0:r.call(n,t))??`steps:${e.id}:trigger:${t}`},kj=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.contentId)==null?void 0:r.call(n,t))??`steps:${e.id}:content:${t}`};function Sj(e,t){const{context:n,send:r,computed:o,prop:i,scope:a}=e,s=n.get("step"),l=i("count"),c=o("percent"),d=o("hasNextStep"),f=o("hasPrevStep"),m=y=>({triggerId:cu(a,y.index),contentId:kj(a,y.index),current:y.index===s,completed:y.index<s,incomplete:y.index>s,index:y.index,first:y.index===0,last:y.index===l-1}),p=()=>{r({type:"STEP.NEXT",src:"next.trigger.click"})},v=()=>{r({type:"STEP.PREV",src:"prev.trigger.click"})},g=()=>{r({type:"STEP.RESET",src:"reset.trigger.click"})},x=y=>{r({type:"STEP.SET",value:y,src:"api.setValue"})};return{value:s,count:l,percent:c,hasNextStep:d,hasPrevStep:f,isCompleted:o("completed"),goToNextStep:p,goToPrevStep:v,resetStep:g,getItemState:m,setStep:x,getRootProps(){return t.element({...ht.root.attrs,id:wj(a),dir:i("dir"),"data-orientation":i("orientation"),style:{"--percent":`${c}%`}})},getListProps(){const b=_I(l).map((k,P)=>cu(a,P));return t.element({...ht.list.attrs,dir:i("dir"),id:Cj(a),role:"tablist","aria-owns":b.join(" "),"aria-orientation":i("orientation"),"data-orientation":i("orientation")})},getItemProps(y){const b=m(y);return t.element({...ht.item.attrs,dir:i("dir"),"aria-current":b.current?"step":void 0,"data-orientation":i("orientation")})},getTriggerProps(y){const b=m(y);return t.button({...ht.trigger.attrs,id:b.triggerId,role:"tab",dir:i("dir"),tabIndex:!i("linear")||b.current?0:-1,"aria-selected":b.current,"aria-controls":b.contentId,"data-state":b.current?"open":"closed","data-orientation":i("orientation"),"data-complete":mt(b.completed),"data-current":mt(b.current),"data-incomplete":mt(b.incomplete),onClick(k){k.defaultPrevented||i("linear")||r({type:"STEP.SET",value:y.index,src:"trigger.click"})}})},getContentProps(y){const b=m(y);return t.element({...ht.content.attrs,dir:i("dir"),id:b.contentId,role:"tabpanel",tabIndex:0,hidden:!b.current,"data-state":b.current?"open":"closed","data-orientation":i("orientation"),"aria-labelledby":b.triggerId})},getIndicatorProps(y){const b=m(y);return t.element({...ht.indicator.attrs,dir:i("dir"),"aria-hidden":!0,"data-complete":mt(b.completed),"data-current":mt(b.current),"data-incomplete":mt(b.incomplete)})},getSeparatorProps(y){const b=m(y);return t.element({...ht.separator.attrs,dir:i("dir"),"data-orientation":i("orientation"),"data-complete":mt(b.completed),"data-current":mt(b.current),"data-incomplete":mt(b.incomplete)})},getNextTriggerProps(){return t.button({...ht.nextTrigger.attrs,dir:i("dir"),type:"button",disabled:!d,onClick(y){y.defaultPrevented||p()}})},getPrevTriggerProps(){return t.button({dir:i("dir"),...ht.prevTrigger.attrs,type:"button",disabled:!f,onClick(y){y.defaultPrevented||v()}})},getProgressProps(){return t.element({dir:i("dir"),...ht.progress.attrs,role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":`${c}% complete`,"data-complete":mt(c===100)})}}}var Ej={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(n){var o,i;(o=e("onStepChange"))==null||o({step:n}),n==e("count")&&((i=e("onStepComplete"))==null||i())}}))}},computed:{percent:rj(({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 n=Math.min(e.get("step")+1,t("count"));e.set("step",n)},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}){Pj(t("count"),e.get("step"))}}}},Pj=(e,t)=>{if(!WI(t,0,e))throw new RangeError(`[zag-js/steps] step index ${t} is out of bounds`)};aj()(["count","dir","getRootNode","id","ids","linear","onStepChange","onStepComplete","orientation","step","defaultStep"]);const[c2,Rj]=$r({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[u2,Nj]=$r({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function Tj(e){const t=R.useId(),{getRootNode:n}=Rj(),{dir:r}=Nj(),o={id:t,dir:r,getRootNode:n,...e},i=cj(Ej,o);return Sj(i,dj)}const dg=R.forwardRef((e,t)=>{const[n,r]=Ks()(e,["defaultStep","id","ids","count","linear","onStepChange","onStepComplete","orientation","step"]),o=Tj(n),i=pt(o.getRootProps(),r);return u.jsx(gj,{value:o,children:u.jsx(St.div,{...i,ref:t})})});dg.displayName="StepsRoot";const fg=R.forwardRef((e,t)=>{const n=At(),r=Ys(),o=pt(n.getSeparatorProps(r),e);return u.jsx(St.div,{...o,ref:t})});fg.displayName="StepsSeparator";const pg=R.forwardRef((e,t)=>{const n=At(),r=Ys(),o=pt(n.getTriggerProps(r),e);return u.jsx(St.button,{...o,ref:t})});pg.displayName="StepsTrigger";function Ij(e){return Jm({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 mg=R.createContext(void 0),jj=({children:e,step:t})=>u.jsx(mg.Provider,{value:{step:t},children:e}),hg=()=>{const e=R.useContext(mg);if(!e)throw new Error("useSteps must be used within a StepsProvider");return e},Aj=({className:e,step:t,...n})=>{const r=O("qodo qodo-steps","flex flex-col gap-4",e);return u.jsx(jj,{step:t??0,children:u.jsx(dg,{className:r,step:t,...n})})},_j=({className:e,...t})=>{const n=O("flex flex-row gap-4",e);return u.jsx(lg,{className:n,...t})},Mj=({className:e,...t})=>{const n=O("flex flex-row items-center gap-4",e);return u.jsx(sg,{className:n,...t})},Oj=({className:e,...t})=>{const n=O("flex flex-row items-center gap-4 text-purple-muted-100 text-sm",e);return u.jsx(pg,{className:n,...t})},Dj=({index:e,className:t,...n})=>{const{step:r}=hg(),o=e===r,i=e<r,a=O("flex items-center justify-center w-8 h-8 rounded-full text-white",i&&"bg-green-700",o&&"bg-green-600",!i&&!o&&"bg-purple-muted-500",t),s=O({"text-white":o,"text-purple-muted-300":!i&&e!==r});return u.jsx(ag,{className:a,...n,children:i?u.jsx(Ij,{className:"text-green-400"}):u.jsx("span",{className:s,children:e+1})})},Lj=({index:e,className:t,...n})=>{const{step:r}=hg(),o=e<r,i=O("min-w-12 h-px",o?"bg-green-400":"bg-gray-400",t);return u.jsx(fg,{className:i,...n})},Fj=({className:e,...t})=>{const n=O(e);return u.jsx(ig,{className:n,...t})},$j=({className:e,...t})=>{const n=O(e);return u.jsx(og,{className:n,...t})},zj=({className:e,...t})=>{const n=O("bg-primary text-white px-4 py-2 rounded-md",e);return u.jsx(ug,{className:n,...t})},Bj=({className:e,...t})=>{const n=O("bg-primary text-white px-4 py-2 rounded-md",e);return u.jsx(cg,{className:n,...t})},Vj={Root:Aj,List:_j,Item:Mj,Trigger:Oj,Indicator:Dj,Separator:Lj,Content:Fj,CompletedContent:$j,PrevTrigger:zj,NextTrigger:Bj},zr=({children:e,content:t,providerProps:n={},triggerProps:r={},contentProps:o={}})=>u.jsx(dh,{...n,children:u.jsxs(fh,{children:[u.jsx(ph,{...r,children:e}),t&&u.jsx(mh,{...o,children:t})]})});/**
210
223
  * react-table
211
224
  *
212
225
  * Copyright (c) TanStack
@@ -215,5 +228,5 @@ Defaulting to \`null\`.`}var Xy=_d,Zy=Id;function Jy({className:e,value:t,...r})
215
228
  * LICENSE.md file in the root directory of this source tree.
216
229
  *
217
230
  * @license MIT
218
- */function Li(e,t){return e?TE(e)?d.createElement(e,t):e:null}function TE(e){return _E(e)||typeof e=="function"||AE(e)}function _E(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function AE(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const lp=d.forwardRef(({className:e,wrapperClassName:t,...r},n)=>s.jsx("div",{"data-table-scroll-container":!0,className:R("max-h-[100%] min-h-0 overflow-auto rounded-lg border border-purple-muted-600",t),children:s.jsx("table",{ref:n,className:R("w-full caption-bottom text-sm",e),...r})}));lp.displayName="Table";const cp=d.forwardRef(({className:e,...t},r)=>s.jsx("thead",{ref:r,className:R("sticky top-0 z-10 b-0 [&>tr]:hover:bg-transparent",e),...t}));cp.displayName="TableHeader";const dp=d.forwardRef(({className:e,...t},r)=>s.jsx("tbody",{ref:r,className:R("[&_tr:last-child]:border-0 [&_tr:first-child]:border-top-0",e),...t}));dp.displayName="TableBody";const IE=d.forwardRef(({className:e,...t},r)=>s.jsx("tfoot",{ref:r,className:R("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));IE.displayName="TableFooter";const Qe=d.forwardRef(({className:e,...t},r)=>s.jsx("tr",{ref:r,className:R("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}));Qe.displayName="TableRow";const up=d.forwardRef(({className:e,...t},r)=>s.jsx("th",{ref:r,className:R("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));up.displayName="TableHead";const lt=d.forwardRef(({className:e,...t},r)=>s.jsx("td",{ref:r,className:R("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));lt.displayName="TableCell";const ME=d.forwardRef(({className:e,...t},r)=>s.jsx("caption",{ref:r,className:R("mt-4 text-sm text-muted-foreground",e),...t}));ME.displayName="TableCaption";const OE=({title:e="No results"})=>s.jsx("div",{className:"grid place-items-center text-foreground h-full w-full p-14",children:e}),DE=({columnsCount:e,rowsCount:t=8})=>s.jsx(s.Fragment,{children:Array.from({length:t}).map((r,n)=>s.jsx(Qe,{children:Array.from({length:e}).map((o,a)=>s.jsx(lt,{children:s.jsx(Od,{className:"h-5.5 w-full"})},`loading-cell-${a}`))},`loading-row-${n}`))}),$E=e=>s.jsxs("svg",{width:"280",height:"195",viewBox:"0 0 280 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[s.jsxs("g",{clipPath:"url(#clip0_65_2990)",children:[s.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"}),s.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"}),s.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"}),s.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"}),s.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",fill:"white"}),s.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"}),s.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763L201.748 52.7432Z",fill:"white"}),s.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"}),s.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"}),s.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"}),s.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"}),s.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"}),s.jsx("path",{d:"M216.647 40.9229L202.547 62.1066",stroke:"black",strokeWidth:"3",strokeLinejoin:"round"}),s.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"}),s.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"}),s.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"}),s.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"}),s.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"}),s.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"}),s.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"}),s.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"}),s.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"}),s.jsx("path",{d:"M244.89 26.0693L240.93 29.623L245.78 32.6128",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.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"}),s.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"})]}),s.jsx("defs",{children:s.jsx("clipPath",{id:"clip0_65_2990",children:s.jsx("rect",{width:"279",height:"195",fill:"white",transform:"translate(0.5)"})})})]}),Fi=({title:e="There's nothing to show",description:t="No items to display"})=>s.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-14",children:[s.jsx($E,{className:"mb-6"}),s.jsx("h4",{className:"mb-1 text-foreground",children:e}),s.jsx("p",{className:"text-purple-muted-300",children:t})]}),fp=({className:e,...t})=>s.jsx("nav",{role:"navigation","aria-label":"pagination",className:R("qodo qodo-pagination mx-auto flex w-full justify-center",e),...t});fp.displayName="Pagination";const pp=d.forwardRef(({className:e,...t},r)=>s.jsx("ul",{ref:r,className:R("flex flex-row items-center gap-1",e),...t}));pp.displayName="PaginationContent";const br=d.forwardRef(({className:e,...t},r)=>s.jsx("li",{ref:r,className:R("",e),...t}));br.displayName="PaginationItem";const mp=({className:e,isActive:t,size:r="icon",...n})=>s.jsx("a",{"aria-current":t?"page":void 0,className:R(cl({variant:t?"outline":"ghost",size:r}),e),...n});mp.displayName="PaginationLink";const gp=({className:e,...t})=>s.jsxs("span",{"aria-hidden":!0,className:R("flex h-9 w-9 items-center justify-center",e),...t,children:[s.jsx(sl,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"More pages"})]});gp.displayName="PaginationEllipsis";const LE=({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 i=S.useMemo(()=>{const m="text-purple-muted-300 dark:text-purple-muted-300",b="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",y="pointer-events-none opacity-50 cursor-not-allowed";return{previous:R(n===1||t?"pointer-events-none opacity-50":"cursor-pointer",x,m,t&&y),next:R(n===r||t?"pointer-events-none opacity-50":"cursor-pointer",x,m,t&&y),link:h=>R(x,t?"cursor-not-allowed":"cursor-pointer",m,!t&&b,h&&v,t&&y)}},[n,r,t]),l=S.useCallback(m=>{if(t)return;const b=m-1;e.setPagination(v=>({...v,pageIndex:b}))},[e,t]),c=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(m=>{if(m<=1)return[];if(m<=7)return Array.from({length:m},(v,x)=>x+1);const b=[];return n<=4?b.push(1,2,3,4,5,"ellipsis",m):n>=m-3?b.push(1,"ellipsis",m-4,m-3,m-2,m-1,m):b.push(1,"ellipsis",n-1,n,n+1,"ellipsis",m),b},[n]),p=S.useMemo(()=>{if(r<=1){const m=Math.max(r,o);return f(m)}return f(r)},[r,o,f]),g=S.useCallback((m,b)=>m==="ellipsis"?s.jsx(br,{children:s.jsx(gp,{})},`ellipsis-${b}`):s.jsx(br,{className:"flex items-center justify-center",children:s.jsx(mp,{onClick:()=>l(m),isActive:m===n,className:i.link(m===n),children:m})},`${m}-${b}-pagination-item`),[l,n,i]);return r<2&&o<2?s.jsx(s.Fragment,{}):s.jsx(fp,{className:"dark:bg-transparent",children:s.jsxs(pp,{children:[s.jsx(br,{children:s.jsx(et,{variant:"ghost",size:"icon",className:i.previous,onClick:c,children:s.jsx(Bg,{})})}),p.map(g),s.jsx(br,{children:s.jsx(et,{variant:"ghost",size:"icon",className:i.next,onClick:u,children:s.jsx(al,{onClick:u})})})]})})},FE=({columnsCount:e,message:t="End of results"})=>s.jsx(Qe,{className:"hover:bg-transparent border-b-0",children:s.jsx(lt,{colSpan:e,className:"text-center py-3 border-b-0",children:s.jsx("div",{className:"text-xs text-purple-muted-400/60",role:"status","aria-live":"polite",children:t})})});function VE({enabled:e,onLoadMore:t,hasMore:r,isLoading:n,threshold:o,findScrollableContainer:a}){const i=S.useRef(null),[l,c]=S.useState(!1),[u,f]=S.useState(!0),p=S.useRef(null),g=S.useRef(!1),m=r!==void 0?r:u,b=S.useCallback(async()=>{if(!(!t||g.current||!m)){g.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{g.current=!1,c(!1)}}},[t,m]);return S.useEffect(()=>{if(!e||!t)return;const v=i.current;if(!v)return;p.current&&(p.current.disconnect(),p.current=null);const x=requestAnimationFrame(()=>{const y=a();p.current=new IntersectionObserver(h=>{const[C]=h;C.isIntersecting&&!n&&!g.current&&b()},{root:y,rootMargin:`${o}px`,threshold:0}),p.current.observe(v)});return()=>{cancelAnimationFrame(x),p.current&&(p.current.disconnect(),p.current=null)}},[e,t,m,n,o,b,a]),{loadMoreRef:i,isLoadingMore:l,hasMore:m}}const BE=150,yr={PAGINATION:"pagination",INFINITE_SCROLL:"infinite-scroll"},GE=600,Vi=(e,t)=>{const r=t.columnDef.minSize,n=t.columnDef.maxSize,o={};return e!==BE&&(o.width=`${e}px`),r!==void 0&&(o.minWidth=`${r}px`),n!==void 0&&(o.maxWidth=`${n}px`),o},WE=({table:e,emptyStateComponent:t,noResultsComponent:r,errorComponent:n,isLoading:o=!1,isError:a=!1,onRowClick:i,emptyStateTitle:l="There's nothing to show",emptyStateDescription:c="No items to display",noResultsTitle:u="No results",wrapperClassName:f,loadingRowsCount:p=8,activeRowId:g,paginationMode:m=yr.PAGINATION,onLoadMore:b,hasMore:v,loadMoreThreshold:x=GE,endOfResultsMessage:y})=>{const h=e.getVisibleFlatColumns().length,C=m===yr.PAGINATION&&e.options.manualPagination&&e.options.onPaginationChange,E=e.getRowModel().rows.length===0,j=e.getCoreRowModel().rows.length===0&&!o,_=!o&&(a||j||E),P="hover:bg-transparent cursor-default",N=S.useRef(null),W=S.useCallback(()=>N.current?N.current.querySelector("[data-table-scroll-container]")||N.current:null,[]),{loadMoreRef:U,hasMore:re}=VE({enabled:m===yr.INFINITE_SCROLL,onLoadMore:b,hasMore:v,isLoading:o,threshold:x,findScrollableContainer:W}),te=()=>e.getHeaderGroups().map(V=>s.jsx(Qe,{children:V.headers.map(O=>s.jsx(up,{className:"text-[#A1A1AA]",style:Vi(O.getSize(),O.column),children:O.isPlaceholder?void 0:Li(O.column.columnDef.header,O.getContext())},O.id))},V.id)),Q=()=>{if(o)return s.jsx(DE,{rowsCount:p,columnsCount:h});if(a)return s.jsx(Qe,{className:P,children:s.jsx(lt,{colSpan:h,children:(n==null?void 0:n())||s.jsx(Fi,{title:l,description:c})})});if(j)return s.jsx(Qe,{className:P,children:s.jsx(lt,{colSpan:h,children:(t==null?void 0:t())||s.jsx(Fi,{title:l,description:c})})});if(E)return s.jsx(Qe,{className:P,children:s.jsx(lt,{colSpan:h,children:(r==null?void 0:r())||s.jsx(OE,{title:u})})});const V=e.getRowModel().rows.map(O=>{var k;const I=(k=O.original)==null?void 0:k.id,D=O.getIsSelected()||!!g&&g===I;return s.jsx(Qe,{"data-state":D?"selected":void 0,onClick:()=>i==null?void 0:i(O.original),className:"group",children:O.getVisibleCells().map(M=>s.jsx(lt,{className:"text-[#FAFAFA] whitespace-nowrap",style:Vi(M.column.getSize(),M.column),children:Li(M.column.columnDef.cell,M.getContext())},M.id))},O.id)});return m===yr.INFINITE_SCROLL&&V.length>0?s.jsxs(s.Fragment,{children:[V,s.jsx(Qe,{className:"hover:bg-transparent border-0 h-0",children:s.jsx(lt,{colSpan:h,className:"h-0 p-0 border-0 overflow-hidden",children:s.jsx("div",{ref:U,className:"h-px w-full"})})}),!re&&s.jsx(FE,{columnsCount:h,message:y})]}):V};return s.jsxs("div",{className:R("qodo qodo-table","flex flex-col h-full w-full"),children:[s.jsx("div",{ref:N,className:"flex-1 min-h-0",children:s.jsxs(lp,{wrapperClassName:f,className:R({"h-[100%]":_}),children:[s.jsx(cp,{children:te()}),s.jsx(dp,{children:Q()})]})}),C&&s.jsx("footer",{className:"pt-4 pb-2 border-t border-purple-muted-600/20 flex-shrink-0",children:s.jsx(LE,{table:e,isLoading:o})})]})},na=e=>{const{children:t,...r}=e,n=t&&t!==0?t:"-";return s.jsx("div",{...r,children:n})},zE=e=>{const{variant:t,children:r}=e,n=r||t;return s.jsx(Jt,{...e,children:n})},qE=e=>{const{children:t,...r}=e;if(typeof t!="number")return console.error("NumberCell must be a number"),s.jsx(na,{...r,children:"-"});const n=t>1e5?"compact":"standard",o=new Intl.NumberFormat("en-US",{notation:n}).format(t);return s.jsx(na,{...r,children:o})},UE=({column:e,children:t,tooltipContent:r})=>{const[n,o]=S.useState(!1),a=e.getCanSort();let i=t;return r&&(i=s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("span",{children:t}),s.jsx(Gr,{contentProps:{className:"max-w-[200px]"},content:r,children:s.jsx(tv,{className:"h-4 w-4"})})]})),a?s.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:[i,s.jsx($g,{className:R("ml-2 h-4 w-4",{invisible:!n})})]}):s.jsx("span",{children:i})};var oa=["Enter"," "],HE=["ArrowDown","PageUp","Home"],vp=["ArrowUp","PageDown","End"],KE=[...HE,...vp],YE={ltr:[...oa,"ArrowRight"],rtl:[...oa,"ArrowLeft"]},XE={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Wr="Menu",[Rr,ZE,JE]=Rn(Wr),[$t,hp]=ye(Wr,[JE,mt,xt]),zr=mt(),xp=xt(),[bp,wt]=$t(Wr),[QE,qr]=$t(Wr),yp=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:i=!0}=e,l=zr(t),[c,u]=d.useState(null),f=d.useRef(!1),p=De(a),g=It(o);return d.useEffect(()=>{const m=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),s.jsx(Ar,{...l,children:s.jsx(bp,{scope:t,open:r,onOpenChange:p,content:c,onContentChange:u,children:s.jsx(QE,{scope:t,onClose:d.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:g,modal:i,children:n})})})};yp.displayName=Wr;var ek="MenuAnchor",os=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=zr(r);return s.jsx(Ir,{...o,...n,ref:t})});os.displayName=ek;var as="MenuPortal",[tk,wp]=$t(as,{forceMount:void 0}),Cp=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=wt(as,t);return s.jsx(tk,{scope:t,forceMount:r,children:s.jsx(Ce,{present:r||a.open,children:s.jsx(sr,{asChild:!0,container:o,children:n})})})};Cp.displayName=as;var Ie="MenuContent",[rk,ss]=$t(Ie),Sp=d.forwardRef((e,t)=>{const r=wp(Ie,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=wt(Ie,e.__scopeMenu),i=qr(Ie,e.__scopeMenu);return s.jsx(Rr.Provider,{scope:e.__scopeMenu,children:s.jsx(Ce,{present:n||a.open,children:s.jsx(Rr.Slot,{scope:e.__scopeMenu,children:i.modal?s.jsx(nk,{...o,ref:t}):s.jsx(ok,{...o,ref:t})})})})}),nk=d.forwardRef((e,t)=>{const r=wt(Ie,e.__scopeMenu),n=d.useRef(null),o=ae(t,n);return d.useEffect(()=>{const a=n.current;if(a)return Dn(a)},[]),s.jsx(is,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:F(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ok=d.forwardRef((e,t)=>{const r=wt(Ie,e.__scopeMenu);return s.jsx(is,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),ak=dt("MenuContent.ScrollLock"),is=d.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:g,onDismiss:m,disableOutsideScroll:b,...v}=e,x=wt(Ie,r),y=qr(Ie,r),h=zr(r),C=xp(r),E=ZE(r),[j,_]=d.useState(null),P=d.useRef(null),N=ae(t,P,x.onContentChange),W=d.useRef(0),U=d.useRef(""),re=d.useRef(0),te=d.useRef(null),Q=d.useRef("right"),V=d.useRef(0),O=b?Mr:d.Fragment,I=b?{as:ak,allowPinchZoom:!0}:void 0,D=M=>{var A,K;const B=U.current+M,J=E().filter(ee=>!ee.disabled),T=document.activeElement,G=(A=J.find(ee=>ee.ref.current===T))==null?void 0:A.textValue,Z=J.map(ee=>ee.textValue),z=hk(Z,B,G),L=(K=J.find(ee=>ee.textValue===z))==null?void 0:K.ref.current;(function ee(oe){U.current=oe,window.clearTimeout(W.current),oe!==""&&(W.current=window.setTimeout(()=>ee(""),1e3))})(B),L&&setTimeout(()=>L.focus())};d.useEffect(()=>()=>window.clearTimeout(W.current),[]),Nn();const k=d.useCallback(M=>{var J,T;return Q.current===((J=te.current)==null?void 0:J.side)&&bk(M,(T=te.current)==null?void 0:T.area)},[]);return s.jsx(rk,{scope:r,searchRef:U,onItemEnter:d.useCallback(M=>{k(M)&&M.preventDefault()},[k]),onItemLeave:d.useCallback(M=>{var B;k(M)||((B=P.current)==null||B.focus(),_(null))},[k]),onTriggerLeave:d.useCallback(M=>{k(M)&&M.preventDefault()},[k]),pointerGraceTimerRef:re,onPointerGraceIntentChange:d.useCallback(M=>{te.current=M},[]),children:s.jsx(O,{...I,children:s.jsx(Tr,{asChild:!0,trapped:o,onMountAutoFocus:F(a,M=>{var B;M.preventDefault(),(B=P.current)==null||B.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:s.jsx(nr,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:g,onDismiss:m,children:s.jsx(qn,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:j,onCurrentTabStopIdChange:_,onEntryFocus:F(c,M=>{y.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:s.jsx(In,{role:"menu","aria-orientation":"vertical","data-state":Vp(x.open),"data-radix-menu-content":"",dir:y.dir,...h,...v,ref:N,style:{outline:"none",...v.style},onKeyDown:F(v.onKeyDown,M=>{const J=M.target.closest("[data-radix-menu-content]")===M.currentTarget,T=M.ctrlKey||M.altKey||M.metaKey,G=M.key.length===1;J&&(M.key==="Tab"&&M.preventDefault(),!T&&G&&D(M.key));const Z=P.current;if(M.target!==Z||!KE.includes(M.key))return;M.preventDefault();const L=E().filter(A=>!A.disabled).map(A=>A.ref.current);vp.includes(M.key)&&L.reverse(),gk(L)}),onBlur:F(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(W.current),U.current="")}),onPointerMove:F(e.onPointerMove,Nr(M=>{const B=M.target,J=V.current!==M.clientX;if(M.currentTarget.contains(B)&&J){const T=M.clientX>V.current?"right":"left";Q.current=T,V.current=M.clientX}}))})})})})})})});Sp.displayName=Ie;var sk="MenuGroup",ls=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(q.div,{role:"group",...n,ref:t})});ls.displayName=sk;var ik="MenuLabel",Ep=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(q.div,{...n,ref:t})});Ep.displayName=ik;var wn="MenuItem",Bi="menu.itemSelect",no=d.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=d.useRef(null),i=qr(wn,e.__scopeMenu),l=ss(wn,e.__scopeMenu),c=ae(t,a),u=d.useRef(!1),f=()=>{const p=a.current;if(!r&&p){const g=new CustomEvent(Bi,{bubbles:!0,cancelable:!0});p.addEventListener(Bi,m=>n==null?void 0:n(m),{once:!0}),ul(p,g),g.defaultPrevented?u.current=!1:i.onClose()}};return s.jsx(kp,{...o,ref:c,disabled:r,onClick:F(e.onClick,f),onPointerDown:p=>{var g;(g=e.onPointerDown)==null||g.call(e,p),u.current=!0},onPointerUp:F(e.onPointerUp,p=>{var g;u.current||(g=p.currentTarget)==null||g.click()}),onKeyDown:F(e.onKeyDown,p=>{const g=l.searchRef.current!=="";r||g&&p.key===" "||oa.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});no.displayName=wn;var kp=d.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,i=ss(wn,r),l=xp(r),c=d.useRef(null),u=ae(t,c),[f,p]=d.useState(!1),[g,m]=d.useState("");return d.useEffect(()=>{const b=c.current;b&&m((b.textContent??"").trim())},[a.children]),s.jsx(Rr.ItemSlot,{scope:r,disabled:n,textValue:o??g,children:s.jsx(Un,{asChild:!0,...l,focusable:!n,children:s.jsx(q.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:u,onPointerMove:F(e.onPointerMove,Nr(b=>{n?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:F(e.onPointerLeave,Nr(b=>i.onItemLeave(b))),onFocus:F(e.onFocus,()=>p(!0)),onBlur:F(e.onBlur,()=>p(!1))})})})}),lk="MenuCheckboxItem",Rp=d.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return s.jsx(_p,{scope:e.__scopeMenu,checked:r,children:s.jsx(no,{role:"menuitemcheckbox","aria-checked":Cn(r)?"mixed":r,...o,ref:t,"data-state":us(r),onSelect:F(o.onSelect,()=>n==null?void 0:n(Cn(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Rp.displayName=lk;var Np="MenuRadioGroup",[ck,dk]=$t(Np,{value:void 0,onValueChange:()=>{}}),jp=d.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=De(n);return s.jsx(ck,{scope:e.__scopeMenu,value:r,onValueChange:a,children:s.jsx(ls,{...o,ref:t})})});jp.displayName=Np;var Pp="MenuRadioItem",Tp=d.forwardRef((e,t)=>{const{value:r,...n}=e,o=dk(Pp,e.__scopeMenu),a=r===o.value;return s.jsx(_p,{scope:e.__scopeMenu,checked:a,children:s.jsx(no,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":us(a),onSelect:F(n.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,r)},{checkForDefaultPrevented:!1})})})});Tp.displayName=Pp;var cs="MenuItemIndicator",[_p,uk]=$t(cs,{checked:!1}),Ap=d.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=uk(cs,r);return s.jsx(Ce,{present:n||Cn(a.checked)||a.checked===!0,children:s.jsx(q.span,{...o,ref:t,"data-state":us(a.checked)})})});Ap.displayName=cs;var fk="MenuSeparator",Ip=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return s.jsx(q.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});Ip.displayName=fk;var pk="MenuArrow",Mp=d.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=zr(r);return s.jsx(Mn,{...o,...n,ref:t})});Mp.displayName=pk;var ds="MenuSub",[mk,Op]=$t(ds),Dp=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,a=wt(ds,t),i=zr(t),[l,c]=d.useState(null),[u,f]=d.useState(null),p=De(o);return d.useEffect(()=>(a.open===!1&&p(!1),()=>p(!1)),[a.open,p]),s.jsx(Ar,{...i,children:s.jsx(bp,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:f,children:s.jsx(mk,{scope:t,contentId:me(),triggerId:me(),trigger:l,onTriggerChange:c,children:r})})})};Dp.displayName=ds;var wr="MenuSubTrigger",$p=d.forwardRef((e,t)=>{const r=wt(wr,e.__scopeMenu),n=qr(wr,e.__scopeMenu),o=Op(wr,e.__scopeMenu),a=ss(wr,e.__scopeMenu),i=d.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:c}=a,u={__scopeMenu:e.__scopeMenu},f=d.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return d.useEffect(()=>f,[f]),d.useEffect(()=>{const p=l.current;return()=>{window.clearTimeout(p),c(null)}},[l,c]),s.jsx(os,{asChild:!0,...u,children:s.jsx(kp,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":Vp(r.open),...e,ref:tt(t,o.onTriggerChange),onClick:p=>{var g;(g=e.onClick)==null||g.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:F(e.onPointerMove,Nr(p=>{a.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:F(e.onPointerLeave,Nr(p=>{var m,b;f();const g=(m=r.content)==null?void 0:m.getBoundingClientRect();if(g){const v=(b=r.content)==null?void 0:b.dataset.side,x=v==="right",y=x?-5:5,h=g[x?"left":"right"],C=g[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:p.clientX+y,y:p.clientY},{x:h,y:g.top},{x:C,y:g.top},{x:C,y:g.bottom},{x:h,y:g.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:F(e.onKeyDown,p=>{var m;const g=a.searchRef.current!=="";e.disabled||g&&p.key===" "||YE[n.dir].includes(p.key)&&(r.onOpenChange(!0),(m=r.content)==null||m.focus(),p.preventDefault())})})})});$p.displayName=wr;var Lp="MenuSubContent",Fp=d.forwardRef((e,t)=>{const r=wp(Ie,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=wt(Ie,e.__scopeMenu),i=qr(Ie,e.__scopeMenu),l=Op(Lp,e.__scopeMenu),c=d.useRef(null),u=ae(t,c);return s.jsx(Rr.Provider,{scope:e.__scopeMenu,children:s.jsx(Ce,{present:n||a.open,children:s.jsx(Rr.Slot,{scope:e.__scopeMenu,children:s.jsx(is,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var p;i.isUsingKeyboardRef.current&&((p=c.current)==null||p.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:F(e.onFocusOutside,f=>{f.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:F(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:F(e.onKeyDown,f=>{var m;const p=f.currentTarget.contains(f.target),g=XE[i.dir].includes(f.key);p&&g&&(a.onOpenChange(!1),(m=l.trigger)==null||m.focus(),f.preventDefault())})})})})})});Fp.displayName=Lp;function Vp(e){return e?"open":"closed"}function Cn(e){return e==="indeterminate"}function us(e){return Cn(e)?"indeterminate":e?"checked":"unchecked"}function gk(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function vk(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function hk(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 i=vk(e,Math.max(a,0));o.length===1&&(i=i.filter(u=>u!==r));const c=i.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function xk(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const l=t[a],c=t[i],u=l.x,f=l.y,p=c.x,g=c.y;f>n!=g>n&&r<(p-u)*(n-f)/(g-f)+u&&(o=!o)}return o}function bk(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return xk(r,t)}function Nr(e){return t=>t.pointerType==="mouse"?e(t):void 0}var yk=yp,wk=os,Ck=Cp,Sk=Sp,Ek=ls,kk=Ep,Rk=no,Nk=Rp,jk=jp,Pk=Tp,Tk=Ap,_k=Ip,Ak=Mp,Ik=Dp,Mk=$p,Ok=Fp,oo="DropdownMenu",[Dk,ZR]=ye(oo,[hp]),Se=hp(),[$k,Bp]=Dk(oo),Gp=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,c=Se(t),u=d.useRef(null),[f,p]=be({prop:o,defaultProp:a??!1,onChange:i,caller:oo});return s.jsx($k,{scope:t,triggerId:me(),triggerRef:u,contentId:me(),open:f,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(g=>!g),[p]),modal:l,children:s.jsx(yk,{...c,open:f,onOpenChange:p,dir:n,modal:l,children:r})})};Gp.displayName=oo;var Wp="DropdownMenuTrigger",zp=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=Bp(Wp,r),i=Se(r);return s.jsx(wk,{asChild:!0,...i,children:s.jsx(q.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:tt(t,a.triggerRef),onPointerDown:F(e.onPointerDown,l=>{!n&&l.button===0&&l.ctrlKey===!1&&(a.onOpenToggle(),a.open||l.preventDefault())}),onKeyDown:F(e.onKeyDown,l=>{n||(["Enter"," "].includes(l.key)&&a.onOpenToggle(),l.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});zp.displayName=Wp;var Lk="DropdownMenuPortal",qp=e=>{const{__scopeDropdownMenu:t,...r}=e,n=Se(t);return s.jsx(Ck,{...n,...r})};qp.displayName=Lk;var Up="DropdownMenuContent",Hp=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Bp(Up,r),a=Se(r),i=d.useRef(!1);return s.jsx(Sk,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:F(e.onCloseAutoFocus,l=>{var c;i.current||(c=o.triggerRef.current)==null||c.focus(),i.current=!1,l.preventDefault()}),onInteractOutside:F(e.onInteractOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,f=c.button===2||u;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Hp.displayName=Up;var Fk="DropdownMenuGroup",Kp=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return s.jsx(Ek,{...o,...n,ref:t})});Kp.displayName=Fk;var Vk="DropdownMenuLabel",Yp=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return s.jsx(kk,{...o,...n,ref:t})});Yp.displayName=Vk;var Bk="DropdownMenuItem",Xp=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return s.jsx(Rk,{...o,...n,ref:t})});Xp.displayName=Bk;var Gk="DropdownMenuCheckboxItem",Zp=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return s.jsx(Nk,{...o,...n,ref:t})});Zp.displayName=Gk;var Wk="DropdownMenuRadioGroup",Jp=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return s.jsx(jk,{...o,...n,ref:t})});Jp.displayName=Wk;var zk="DropdownMenuRadioItem",Qp=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return s.jsx(Pk,{...o,...n,ref:t})});Qp.displayName=zk;var qk="DropdownMenuItemIndicator",em=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return s.jsx(Tk,{...o,...n,ref:t})});em.displayName=qk;var Uk="DropdownMenuSeparator",tm=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return s.jsx(_k,{...o,...n,ref:t})});tm.displayName=Uk;var Hk="DropdownMenuArrow",Kk=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return s.jsx(Ak,{...o,...n,ref:t})});Kk.displayName=Hk;var Yk=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,i=Se(t),[l,c]=be({prop:n,defaultProp:a??!1,onChange:o,caller:"DropdownMenuSub"});return s.jsx(Ik,{...i,open:l,onOpenChange:c,children:r})},Xk="DropdownMenuSubTrigger",rm=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return s.jsx(Mk,{...o,...n,ref:t})});rm.displayName=Xk;var Zk="DropdownMenuSubContent",nm=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Se(r);return s.jsx(Ok,{...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)"}})});nm.displayName=Zk;var Jk=Gp,Qk=zp,om=qp,am=Hp,eR=Kp,sm=Yp,im=Xp,lm=Zp,tR=Jp,cm=Qp,dm=em,um=tm,rR=Yk,fm=rm,pm=nm;const nR=Jk,oR=Qk,aR=eR,sR=om,iR=rR,lR=tR,mm=d.forwardRef(({className:e,inset:t,children:r,...n},o)=>s.jsxs(fm,{ref:o,className:R("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,s.jsx(al,{className:"ml-auto"})]}));mm.displayName=fm.displayName;const gm=d.forwardRef(({className:e,...t},r)=>s.jsx(pm,{ref:r,className:R("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}));gm.displayName=pm.displayName;const vm=d.forwardRef(({className:e,sideOffset:t=4,...r},n)=>s.jsx(om,{children:s.jsx(am,{ref:n,sideOffset:t,className:R("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})}));vm.displayName=am.displayName;const fs=d.forwardRef(({className:e,inset:t,...r},n)=>s.jsx(im,{ref:n,className:R("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}));fs.displayName=im.displayName;const hm=d.forwardRef(({className:e,children:t,checked:r,...n},o)=>s.jsxs(lm,{ref:o,className:R("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:[s.jsx("span",{className:"absolute right-3 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(dm,{children:s.jsx(rr,{className:"h-4 w-4"})})}),t]}));hm.displayName=lm.displayName;const xm=d.forwardRef(({className:e,children:t,...r},n)=>s.jsxs(cm,{ref:n,className:R("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:[s.jsx("span",{className:"absolute right-3 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(dm,{children:s.jsx(rr,{className:"h-[18px] w-[18px]"})})}),t]}));xm.displayName=cm.displayName;const ps=d.forwardRef(({className:e,inset:t,...r},n)=>s.jsx(sm,{ref:n,className:R("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));ps.displayName=sm.displayName;const Ct=d.forwardRef(({className:e,...t},r)=>s.jsx(um,{ref:r,className:R("-mx-1 my-1 h-px bg-purple-muted-500",e),...t}));Ct.displayName=um.displayName;const bm=({className:e,...t})=>s.jsx("span",{className:R("ml-auto text-xs tracking-widest [&>svg]:size-4 self-end",e),...t});bm.displayName="DropdownMenuEndAndornment";const cR=({radioItem:e})=>s.jsxs(xm,{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]}),dR=({radioGroupItem:e})=>s.jsxs(s.Fragment,{children:[s.jsx(lR,{value:e.value,onValueChange:e.onValueChange,children:e.radioItems.map((t,r)=>s.jsx(cR,{radioItem:t},`item-${r}`))}),e.separator&&s.jsx(Ct,{})]}),uR=({actionItem:e})=>s.jsxs("div",{className:"w-full [&>button]:w-full",children:[s.jsx(Gr,{content:e.tooltip,providerProps:{delayDuration:200},children:s.jsx(fs,{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:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[e.loading&&s.jsx(il,{className:"h-4 w-4 motion-preset-spin motion-duration-1000"}),!e.loading&&e.icon,e.label,e.endAndornment&&s.jsx(bm,{children:e.endAndornment})]})})}),e.separator&&s.jsx(Ct,{})]}),fR=({checkboxItem:e})=>s.jsxs(hm,{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]}),pR=({checkboxGroupItem:e})=>s.jsxs(s.Fragment,{children:[s.jsx(aR,{children:e.checkboxes.map((t,r)=>s.jsx(fR,{checkboxItem:t},`item-${r}`))}),e.separator&&s.jsx(Ct,{})]}),mR=({subMenuItem:e})=>s.jsxs(s.Fragment,{children:[s.jsxs(iR,{children:[s.jsxs(mm,{disabled:e.disabled,className:"m-0 rounded-none py-1.5 pl-3 pr-1",children:[e.icon,e.label]}),s.jsx(sR,{children:s.jsx(gm,{children:e.subItems.map((t,r)=>ym(t,r))})})]}),e.separator&&s.jsx(Ct,{})]}),gR=({menuItem:e})=>s.jsx(ps,{className:"text-purple-muted-300 px-3 font-normal",children:e.label}),vR=()=>s.jsx(Ct,{}),ym=(e,t)=>{switch(e.type){case"ActionMenuItem":return s.jsx(uR,{actionItem:e},`item-${t}`);case"CheckboxGroup":return s.jsx(pR,{checkboxGroupItem:e},`item-${t}`);case"RadioGroup":return s.jsx(dR,{radioGroupItem:e},`item-${t}`);case"SubMenuItem":return s.jsx(mR,{subMenuItem:e},`item-${t}`);case"MenuLabel":return s.jsx(gR,{menuItem:e},`item-${t}`);case"Separator":return s.jsx(vR,{},`item-${t}`);default:return null}},hR={s:"min-w-[140px]",m:"min-w-[249px]",l:"min-w-[257px]"},xR=({header:e})=>s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-purple-muted-300",children:e.title}),s.jsx("span",{children:e.label})]}),bR=({header:e})=>e?s.jsxs(s.Fragment,{children:[s.jsx(ps,{className:"text-purple-100 font-normal px-3",children:e.type==="MenuTitleHeader"&&s.jsx(xR,{header:e})}),s.jsx(Ct,{className:"bg-purple-muted-500"})]}):null,yR=({footer:e})=>e?s.jsxs(s.Fragment,{children:[s.jsx(Ct,{className:"bg-purple-muted-500"}),s.jsxs(fs,{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,wm=({menuItems:e,header:t,footer:r,triggerElement:n,size:o="s",asChild:a=!1,side:i="bottom",modal:l=!1,disabled:c=!1,className:u=""})=>{const f=nl(hR,{[o]:o,className:u},!1);return s.jsx("div",{className:R("qodo qodo-dropdown"),children:s.jsxs(nR,{modal:l,children:[s.jsx(oR,{asChild:a,className:"select-none outline-none flex items-center",disabled:c,children:n}),s.jsxs(vm,{side:i,align:"end",className:f,children:[s.jsx(bR,{header:t}),e.filter(p=>!p.isHidden).map((p,g)=>ym(p,g)),s.jsx(yR,{footer:r})]})]})})},wR=({triggerAriaLabel:e="Open actions menu",className:t,...r})=>s.jsx(et,{variant:"ghost",size:"icon","aria-label":e,className:R("flex items-center justify-center h-4 w-4",t),...r,children:s.jsx(sl,{className:"h-4 w-4"})}),CR=({menuItems:e=[],triggerElement:t=wR,triggerProps:r={},className:n,size:o="s",asChild:a=!1,side:i="bottom",modal:l=!1})=>s.jsx("div",{className:n,onClick:c=>c.stopPropagation(),children:s.jsx(wm,{triggerElement:s.jsx(t,{className:R("flex items-center justify-center",r==null?void 0:r.className),...r}),menuItems:e,size:o,asChild:a,side:i,modal:l,disabled:r==null?void 0:r.disabled})}),SR={"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"},Gi={SMALL:"small",LARGE:"large"},ER=({containerClassName:e,className:t,searchSize:r=Gi.SMALL,disabled:n=!1,disableFilterIcon:o=!0,...a})=>{const i=r===Gi.LARGE?"pl-12 py-3 pr-4 h-[45px]":"pl-9 py-1.5 pr-2 h-[33px]",l=R("absolute top-1/2 h-4 w-4 -translate-y-1/2",n?"text-purple-muted-600":"text-purple-muted-400"),c=R("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",{"pr-9":!o});return s.jsxs("div",{className:R("qodo qodo-search-input","relative",e),children:[s.jsx(ll,{className:R(l,"left-3")}),s.jsx(Pr,{className:R(i,c,t),disabled:n,...a,...SR}),!o&&s.jsx(nv,{className:R(l,"right-3")})]})},kR=/^(([^<>()[\]\\.,;:\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,}))$/,RR=e=>e.split(/[,\s]+/).map(t=>t.trim()).filter(Boolean),NR=(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())},jR=(e,t)=>e.map(r=>{const n=kR.test(r),o=n?NR(r,t==null?void 0:t.domains):void 0;return{email:r,isValid:n&&o!==!1,isDomainValid:o}}),PR=(e,t,r)=>{const n=jR(e,r),o=[...t];for(const a of n)o.some(l=>l.email===a.email)||o.push(a);return o},TR=({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]),i=S.useCallback(u=>{const f=RR(u);if(f.length===0)return;const p=PR(f,r,t);a(p)},[r,a,t]),l=S.useCallback(()=>{a([])},[a]),c=S.useCallback(u=>{const f=r.filter(p=>p.email!==u);a(f)},[r,a]);return{emails:r,setEmails:a,addTokens:i,removeToken:c,clearAll:l,notify:o}},_R=e=>{const{draft:t,setDraft:r,addTokens:n,allSelected:o,setAllSelected:a,clearAll:i,emails:l,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),i(),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),i()),f.key==="Backspace"&&t.length===0&&l.length>0){f.preventDefault();const p=l[l.length-1],g=l.slice(0,-1);c(g),r(p.email),u(g);return}if(f.key==="Enter"){f.preventDefault(),t.trim()&&(n(t),r(""));return}[",",";"," "].includes(f.key)&&(f.preventDefault(),t.trim()&&(n(t),r("")))}},AR=({email:e,isValid:t,onRemove:r})=>{const n=o=>{o.stopPropagation(),r(e)};return s.jsxs(Jt,{className:"px-2 group whitespace-nowrap flex-shrink-0",variant:t?"success":"error",size:"sm",children:[s.jsx("span",{className:"max-w-[200px] truncate",children:e}),s.jsx("button",{onClick:n,className:"ml-1 opacity-70 hover:opacity-100 transition-opacity flex-shrink-0",type:"button",children:s.jsx(kn,{size:12})})]})},IR=({hasContent:e,onClearAll:t,emails:r,invalidEmailError:n,invalidDomainError:o})=>{const{formatErrors:a,domainErrors:i,totalInvalidCount:l}=S.useMemo(()=>{const m=r.filter(x=>!x.isValid),b=m.filter(x=>!x.email.includes("@")||x.isDomainValid===void 0),v=m.filter(x=>x.isDomainValid===!1);return{formatErrors:b,domainErrors:v,totalInvalidCount:m.length}},[r]),c=m=>{m.preventDefault(),m.stopPropagation()},u=m=>{c(m),t()},f=m=>{c(m)},p=m=>{m.stopPropagation()},g=(m,b)=>b.length===0?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"space-y-1 text-purple-muted-200",children:[s.jsxs("span",{className:"font-medium border-b border-purple-muted-200",children:[m,":"]}),b.map((v,x)=>s.jsx("p",{className:"break-all",children:v.email},`${m}-${x}-${v.email}`))]});return s.jsxs(s.Fragment,{children:[e&&s.jsx("button",{type:"button",onClick:u,className:"absolute right-3 top-1/2 -translate-y-1/2 hover:text-purple-muted-100",children:s.jsx(gv,{className:"h-4 w-4"})}),l>0&&s.jsx("div",{className:"absolute flex center align-center right-[34px] top-1/2 -translate-y-1/2 [&>button]:h-4",children:s.jsx(Gr,{triggerProps:{asChild:!0},content:s.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:s.jsxs("div",{className:"flex flex-col gap-1 text-xs max-h-64 overflow-y-auto pr-1 no-scrollbar",children:[g(n,a),g(o,i)]})}),providerProps:{delayDuration:200},contentProps:{side:"bottom",align:"end",className:"border-0 bg-transparent p-0 m-0",disableArrow:!0},children:s.jsx("button",{type:"button","aria-label":`${l} invalid emails`,className:"text-red-400 hover:text-red-300",children:s.jsx(hv,{className:"size-[18px]"})})})})]})},MR=({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:i,wrapperClassName:l,invalidEmailError:c="Invalid email",invalidDomainError:u="Email domain is not allowed"})=>{const f=S.useRef(null),p=S.useRef(null),[g,m]=S.useState(""),[b,v]=S.useState(!1),{emails:x,setEmails:y,addTokens:h,removeToken:C,clearAll:E,notify:j}=TR({onChange:e,organization:o}),_=_R({draft:g,setDraft:m,addTokens:h,allSelected:b,setAllSelected:v,clearAll:E,emails:x,setEmails:y,notify:j}),P=()=>{var J;const B=((J=o==null?void 0:o.domains)==null?void 0:J[0])||"example.com";return r({domain:B})},N=S.useCallback(B=>{m(B.target.value)},[]),W=S.useCallback(()=>{g.trim()&&(h(g),m("")),v(!1)},[g,h]),U=S.useCallback(B=>{const J=B.clipboardData.getData("text");J&&(B.preventDefault(),h(J),m(""))},[h]),re=S.useCallback(()=>{var B;(B=p.current)==null||B.focus()},[p]),te=S.useCallback(()=>{v(!1)},[]),Q=S.useCallback(B=>{var T;const J=B.relatedTarget;J&&((T=f.current)!=null&&T.contains(J))||g.trim()&&(h(g),m(""))},[g,h]),V=x.length>0,O=!V&&g.length===0,I=V||g.length>0,D=R("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",V?"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),k=R("inline-flex items-center gap-1 no-scrollbar",V?"w-max":"w-full",i),M=R("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 s.jsx(Gr,{triggerProps:{asChild:!0},content:t?n:void 0,children:s.jsxs("div",{ref:f,className:M,onClick:re,onFocus:te,onBlur:Q,children:[s.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-purple-muted-400",children:s.jsx(sv,{className:"w-4 h-4"})}),s.jsx("div",{className:"w-full text-start max-w-full min-w-0 overflow-x-auto overflow-y-hidden no-scrollbar",children:s.jsxs("div",{className:k,children:[x.map((B,J)=>s.jsx(AR,{email:B.email,isValid:B.isValid,onRemove:C},`email-${J}-${B.email}`)),s.jsx("input",{ref:p,value:g,onChange:N,onKeyDown:_,onBlur:W,onPaste:U,className:D,placeholder:O?P():"",disabled:t})]})}),s.jsx(IR,{hasContent:I,onClearAll:E,emails:x,invalidEmailError:c,invalidDomainError:u})]})})},rn={DEFAULT:"default",PRIMARY:"primary",ACTIVE:"active"},Wi={SM:"sm",MD:"md"};function OR({title:e,description:t,caption:r,additionalContent:n,titleClassName:o,descriptionClassName:a,variant:i=rn.DEFAULT,className:l,icon:c,iconClassName:u,size:f=Wi.SM}){const p=R("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===Wi.MD},l),g=R("p-0 m-0 text-xs","text-[var(--color-text-bg-neutral-mild)] dark:text-[var(--color-text-bg-neutral-mild)] font-normal",o),m=R("w-8 h-8 flex items-center justify-center","bg-purple-muted-600 rounded-full p-2.5",u),b=R("text-xl font-medium p-0 m-0 leading-5",{"text-muted-foreground dark:text-white":i===rn.DEFAULT,"text-purple-300 dark:text-purple-300":i===rn.PRIMARY,"text-[var(--color-text-tag-positive-idle)] dark:text-[var(--color-text-tag-positive-idle)]":i===rn.ACTIVE},a);return s.jsxs(Rd,{className:p,children:[c&&s.jsx("div",{className:m,children:c}),s.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[s.jsx(Nd,{className:"m-0 p-0 gap-0",children:s.jsx(jd,{className:g,children:e})}),s.jsxs(Td,{className:"m-0 p-0 flex flex-col gap-2",children:[t&&s.jsx(Pd,{className:b,children:t}),r&&s.jsx("span",{className:"text-xs text-foreground dark:text-foreground tracking-[0.12px]",children:r}),n]})]})]})}exports.Accordion=Kw;exports.AccordionContent=Zw;exports.AccordionItem=Yw;exports.AccordionTrigger=Xw;exports.ActionsCell=CR;exports.Badge=Jt;exports.BadgeCell=zE;exports.BaseCell=na;exports.Button=et;exports.Card=Rd;exports.CardAction=Gy;exports.CardContent=Td;exports.CardDescription=Pd;exports.CardFooter=Wy;exports.CardHeader=Nd;exports.CardTitle=jd;exports.Checkbox=es;exports.CheckboxGroup=Za;exports.ClassHelper=nl;exports.Combobox=ka;exports.Dialog=xy;exports.DialogClose=yy;exports.DialogContent=wy;exports.DialogDescription=ky;exports.DialogFooter=Sy;exports.DialogHeader=Cy;exports.DialogOverlay=cd;exports.DialogPortal=ld;exports.DialogTitle=Ey;exports.DialogTrigger=by;exports.Dropdown=wm;exports.EmailChipsInput=MR;exports.Form=je;exports.FormProvider=Lu;exports.Input=Pr;exports.InsightCard=OR;exports.NumberCell=qE;exports.PAGINATION_MODE=yr;exports.Progress=Jy;exports.RadioGroup=za;exports.RadioGroupItem=Ua;exports.SearchInput=ER;exports.Select=Mf;exports.SelectContent=Pc;exports.SelectGroup=_b;exports.SelectItem=_c;exports.SelectLabel=Tc;exports.SelectScrollDownButton=va;exports.SelectScrollUpButton=ga;exports.SelectSeparator=Ac;exports.SelectTrigger=jc;exports.SelectV1=Tb;exports.SelectValue=Ab;exports.Skeleton=Od;exports.SortableHeaderCell=UE;exports.Steps=PE;exports.Switch=iw;exports.Table=WE;exports.Tabs=o0;exports.TabsContent=i0;exports.TabsList=a0;exports.TabsTrigger=s0;exports.TagsInput=yf;exports.Toggle=cw;exports.ToggleGroup=Rw;exports.ToggleGroupItem=Nw;exports.Tooltip=Gr;exports.Typography=ju;exports.borderRadius=Um;exports.cn=R;exports.colors=zm;exports.spacing=qm;exports.typography=Hm;exports.typographyVariants=Nu;exports.useFormContext=Fu;
231
+ */function uu(e,t){return e?qj(e)?h.createElement(e,t):e:null}function qj(e){return Gj(e)||typeof e=="function"||Uj(e)}function Gj(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function Uj(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const gg=h.forwardRef(({className:e,wrapperClassName:t,...n},r)=>u.jsx("div",{"data-table-scroll-container":!0,className:O("max-h-[100%] min-h-0 overflow-auto rounded-lg border border-purple-muted-600",t),children:u.jsx("table",{ref:r,className:O("w-full caption-bottom text-sm",e),...n})}));gg.displayName="Table";const vg=h.forwardRef(({className:e,...t},n)=>u.jsx("thead",{ref:n,className:O("sticky top-0 z-10 b-0 [&>tr]:hover:bg-transparent",e),...t}));vg.displayName="TableHeader";const xg=h.forwardRef(({className:e,...t},n)=>u.jsx("tbody",{ref:n,className:O("[&_tr:last-child]:border-0 [&_tr:first-child]:border-top-0",e),...t}));xg.displayName="TableBody";const Hj=h.forwardRef(({className:e,...t},n)=>u.jsx("tfoot",{ref:n,className:O("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));Hj.displayName="TableFooter";const Rt=h.forwardRef(({className:e,...t},n)=>u.jsx("tr",{ref:n,className:O("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}));Rt.displayName="TableRow";const bg=h.forwardRef(({className:e,...t},n)=>u.jsx("th",{ref:n,className:O("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));bg.displayName="TableHead";const Lt=h.forwardRef(({className:e,...t},n)=>u.jsx("td",{ref:n,className:O("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Lt.displayName="TableCell";const Wj=h.forwardRef(({className:e,...t},n)=>u.jsx("caption",{ref:n,className:O("mt-4 text-sm text-muted-foreground",e),...t}));Wj.displayName="TableCaption";const Kj=({title:e="No results"})=>u.jsx("div",{className:"grid place-items-center text-foreground h-full w-full p-14",children:e}),Yj=({columnsCount:e,rowsCount:t=8})=>u.jsx(u.Fragment,{children:Array.from({length:t}).map((n,r)=>u.jsx(Rt,{children:Array.from({length:e}).map((o,i)=>u.jsx(Lt,{children:u.jsx(cp,{className:"h-5.5 w-full"})},`loading-cell-${i}`))},`loading-row-${r}`))}),Xj=e=>u.jsxs("svg",{width:"280",height:"195",viewBox:"0 0 280 195",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[u.jsxs("g",{clipPath:"url(#clip0_65_2990)",children:[u.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"}),u.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"}),u.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"}),u.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"}),u.jsx("path",{d:"M184.735 116.039L184.055 126.562L179.015 117.805L177.675 127.434L172.555 118.933",fill:"white"}),u.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"}),u.jsx("path",{d:"M201.748 52.7432C212.638 77.3529 211.728 113.549 173.418 118.763L201.748 52.7432Z",fill:"white"}),u.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"}),u.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"}),u.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"}),u.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"}),u.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"}),u.jsx("path",{d:"M216.647 40.9229L202.547 62.1066",stroke:"black",strokeWidth:"3",strokeLinejoin:"round"}),u.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"}),u.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"}),u.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"}),u.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"}),u.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"}),u.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"}),u.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"}),u.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"}),u.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"}),u.jsx("path",{d:"M244.89 26.0693L240.93 29.623L245.78 32.6128",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),u.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"}),u.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"})]}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip0_65_2990",children:u.jsx("rect",{width:"279",height:"195",fill:"white",transform:"translate(0.5)"})})})]}),du=({title:e="There's nothing to show",description:t="No items to display"})=>u.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-14",children:[u.jsx(Xj,{className:"mb-6"}),u.jsx("h4",{className:"mb-1 text-foreground",children:e}),u.jsx("p",{className:"text-purple-muted-300",children:t})]}),yg=({className:e,...t})=>u.jsx("nav",{role:"navigation","aria-label":"pagination",className:O("qodo qodo-pagination mx-auto flex w-full justify-center",e),...t});yg.displayName="Pagination";const wg=h.forwardRef(({className:e,...t},n)=>u.jsx("ul",{ref:n,className:O("flex flex-row items-center gap-1",e),...t}));wg.displayName="PaginationContent";const dr=h.forwardRef(({className:e,...t},n)=>u.jsx("li",{ref:n,className:O("",e),...t}));dr.displayName="PaginationItem";const Cg=({className:e,isActive:t,size:n="icon",...r})=>u.jsx("a",{"aria-current":t?"page":void 0,className:O(Du({variant:t?"outline":"ghost",size:n}),e),...r});Cg.displayName="PaginationLink";const kg=({className:e,...t})=>u.jsxs("span",{"aria-hidden":!0,className:O("flex h-9 w-9 items-center justify-center",e),...t,children:[u.jsx(_u,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"More pages"})]});kg.displayName="PaginationEllipsis";const Zj=({table:e,isLoading:t=!1})=>{const n=e.getPageCount(),r=e.getState().pagination.pageIndex+1,[o,i]=R.useState(n);R.useEffect(()=>{n>=1&&i(n)},[n]);const a=R.useMemo(()=>{const p="text-purple-muted-300 dark:text-purple-muted-300",v="hover:bg-purple-muted-600 hover:text-purple-muted-300 dark:hover:bg-purple-muted-600 dark:hover:text-purple-muted-300",g="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",y="pointer-events-none opacity-50 cursor-not-allowed";return{previous:O(r===1||t?"pointer-events-none opacity-50":"cursor-pointer",x,p,t&&y),next:O(r===n||t?"pointer-events-none opacity-50":"cursor-pointer",x,p,t&&y),link:b=>O(x,t?"cursor-not-allowed":"cursor-pointer",p,!t&&v,b&&g,t&&y)}},[r,n,t]),s=R.useCallback(p=>{if(t)return;const v=p-1;e.setPagination(g=>({...g,pageIndex:v}))},[e,t]),l=R.useCallback(()=>{t||r<=1||s(r-1)},[r,s,t]),c=R.useCallback(()=>{t||n<=1||r>=n||s(r+1)},[n,r,s,t]),d=R.useCallback(p=>{if(p<=1)return[];if(p<=7)return Array.from({length:p},(g,x)=>x+1);const v=[];return r<=4?v.push(1,2,3,4,5,"ellipsis",p):r>=p-3?v.push(1,"ellipsis",p-4,p-3,p-2,p-1,p):v.push(1,"ellipsis",r-1,r,r+1,"ellipsis",p),v},[r]),f=R.useMemo(()=>{if(n<=1){const p=Math.max(n,o);return d(p)}return d(n)},[n,o,d]),m=R.useCallback((p,v)=>p==="ellipsis"?u.jsx(dr,{children:u.jsx(kg,{})},`ellipsis-${v}`):u.jsx(dr,{className:"flex items-center justify-center",children:u.jsx(Cg,{onClick:()=>s(p),isActive:p===r,className:a.link(p===r),children:p})},`${p}-${v}-pagination-item`),[s,r,a]);return n<2&&o<2?u.jsx(u.Fragment,{}):u.jsx(yg,{className:"dark:bg-transparent",children:u.jsxs(wg,{children:[u.jsx(dr,{children:u.jsx(Nt,{variant:"ghost",size:"icon",className:a.previous,onClick:l,children:u.jsx(Lx,{})})}),f.map(m),u.jsx(dr,{children:u.jsx(Nt,{variant:"ghost",size:"icon",className:a.next,onClick:c,children:u.jsx(Au,{onClick:c})})})]})})},Jj=({columnsCount:e,message:t="End of results"})=>u.jsx(Rt,{className:"hover:bg-transparent border-b-0",children:u.jsx(Lt,{colSpan:e,className:"text-center py-3 border-b-0",children:u.jsx("div",{className:"text-xs text-purple-muted-400/60",role:"status","aria-live":"polite",children:t})})});function Qj({enabled:e,onLoadMore:t,hasMore:n,isLoading:r,threshold:o,findScrollableContainer:i}){const a=R.useRef(null),[s,l]=R.useState(!1),[c,d]=R.useState(!0),f=R.useRef(null),m=R.useRef(!1),p=n!==void 0?n:c,v=R.useCallback(async()=>{if(!(!t||m.current||!p)){m.current=!0,l(!0);try{const g=await Promise.resolve(t());g===!1?d(!1):g===!0&&d(!0)}catch(g){console.error("[useInfiniteScroll] Error loading more data:",g)}finally{m.current=!1,l(!1)}}},[t,p]);return R.useEffect(()=>{if(!e||!t)return;const g=a.current;if(!g)return;f.current&&(f.current.disconnect(),f.current=null);const x=requestAnimationFrame(()=>{const y=i();f.current=new IntersectionObserver(b=>{const[k]=b;k.isIntersecting&&!r&&!m.current&&v()},{root:y,rootMargin:`${o}px`,threshold:0}),f.current.observe(g)});return()=>{cancelAnimationFrame(x),f.current&&(f.current.disconnect(),f.current=null)}},[e,t,p,r,o,v,i]),{loadMoreRef:a,isLoadingMore:s,hasMore:p}}const eA=150,fr={PAGINATION:"pagination",INFINITE_SCROLL:"infinite-scroll"},tA=600,fu=(e,t)=>{const n=t.columnDef.minSize,r=t.columnDef.maxSize,o={};return e!==eA&&(o.width=`${e}px`),n!==void 0&&(o.minWidth=`${n}px`),r!==void 0&&(o.maxWidth=`${r}px`),o},nA=({table:e,emptyStateComponent:t,noResultsComponent:n,errorComponent:r,isLoading:o=!1,isError:i=!1,onRowClick:a,emptyStateTitle:s="There's nothing to show",emptyStateDescription:l="No items to display",noResultsTitle:c="No results",wrapperClassName:d,loadingRowsCount:f=8,activeRowId:m,paginationMode:p=fr.PAGINATION,onLoadMore:v,hasMore:g,loadMoreThreshold:x=tA,endOfResultsMessage:y,className:b,...k})=>{const P=e.getVisibleFlatColumns().length,N=p===fr.PAGINATION&&e.options.manualPagination&&e.options.onPaginationChange,S=e.getRowModel().rows.length===0,I=e.getCoreRowModel().rows.length===0&&!o,j=!o&&(i||I||S),q="hover:bg-transparent cursor-default",U=R.useRef(null),G=R.useCallback(()=>U.current?U.current.querySelector("[data-table-scroll-container]")||U.current:null,[]),{loadMoreRef:V,hasMore:K}=Qj({enabled:p===fr.INFINITE_SCROLL,onLoadMore:v,hasMore:g,isLoading:o,threshold:x,findScrollableContainer:G}),L=()=>e.getHeaderGroups().map(_=>u.jsx(Rt,{children:_.headers.map(F=>u.jsx(bg,{className:"text-[#A1A1AA]",style:fu(F.getSize(),F.column),children:F.isPlaceholder?void 0:uu(F.column.columnDef.header,F.getContext())},F.id))},_.id)),T=()=>{if(o)return u.jsx(Yj,{rowsCount:f,columnsCount:P});if(i)return u.jsx(Rt,{className:q,children:u.jsx(Lt,{colSpan:P,children:(r==null?void 0:r())||u.jsx(du,{title:s,description:l})})});if(I)return u.jsx(Rt,{className:q,children:u.jsx(Lt,{colSpan:P,children:(t==null?void 0:t())||u.jsx(du,{title:s,description:l})})});if(S)return u.jsx(Rt,{className:q,children:u.jsx(Lt,{colSpan:P,children:(n==null?void 0:n())||u.jsx(Kj,{title:c})})});const _=e.getRowModel().rows.map(F=>{var C;const M=(C=F.original)==null?void 0:C.id,B=F.getIsSelected()||!!m&&m===M;return u.jsx(Rt,{"data-state":B?"selected":void 0,onClick:()=>a==null?void 0:a(F.original),className:"group",children:F.getVisibleCells().map(Q=>u.jsx(Lt,{className:"text-[#FAFAFA] whitespace-nowrap",style:fu(Q.column.getSize(),Q.column),children:uu(Q.column.columnDef.cell,Q.getContext())},Q.id))},F.id)});return p===fr.INFINITE_SCROLL&&_.length>0?u.jsxs(u.Fragment,{children:[_,u.jsx(Rt,{className:"hover:bg-transparent border-0 h-0",children:u.jsx(Lt,{colSpan:P,className:"h-0 p-0 border-0 overflow-hidden",children:u.jsx("div",{ref:V,className:"h-px w-full"})})}),!K&&u.jsx(Jj,{columnsCount:P,message:y})]}):_};return u.jsxs("div",{className:O("qodo qodo-table","flex flex-col h-full w-full"),children:[u.jsx("div",{ref:U,className:"flex-1 min-h-0",children:u.jsxs(gg,{wrapperClassName:d,className:O({"h-[100%]":j},b),...k,children:[u.jsx(vg,{children:L()}),u.jsx(xg,{children:T()})]})}),N&&u.jsx("footer",{className:"pt-4 pb-2 border-t border-purple-muted-600/20 flex-shrink-0",children:u.jsx(Zj,{table:e,isLoading:o})})]})},Ma=e=>{const{children:t,...n}=e,r=t&&t!==0?t:"-";return u.jsx("div",{...n,children:r})},rA=e=>{const{variant:t,children:n}=e,r=n||t;return u.jsx(Ln,{...e,children:r})},oA=e=>{const{children:t,...n}=e;if(typeof t!="number")return console.error("NumberCell must be a number"),u.jsx(Ma,{...n,children:"-"});const r=t>1e5?"compact":"standard",o=new Intl.NumberFormat("en-US",{notation:r}).format(t);return u.jsx(Ma,{...n,children:o})},iA=({column:e,children:t,tooltipContent:n})=>{const[r,o]=R.useState(!1),i=e.getCanSort();let a=t;return n&&(a=u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{children:t}),u.jsx(zr,{contentProps:{className:"max-w-[200px]"},content:n,children:u.jsx(Zx,{className:"h-4 w-4"})})]})),i?u.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:[a,u.jsx(_x,{className:O("ml-2 h-4 w-4",{invisible:!r})})]}):u.jsx("span",{children:a})};var Oa=["Enter"," "],aA=["ArrowDown","PageUp","Home"],Sg=["ArrowUp","PageDown","End"],sA=[...aA,...Sg],lA={ltr:[...Oa,"ArrowRight"],rtl:[...Oa,"ArrowLeft"]},cA={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Br="Menu",[Cr,uA,dA]=jo(Br),[vn,Eg]=Ae(Br,[dA,qt,Wt]),Vr=qt(),Pg=Wt(),[Rg,Zt]=vn(Br),[fA,qr]=vn(Br),Ng=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=Vr(t),[l,c]=h.useState(null),d=h.useRef(!1),f=lt(i),m=fn(o);return h.useEffect(()=>{const p=()=>{d.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>d.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),u.jsx(Nr,{...s,children:u.jsx(Rg,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:c,children:u.jsx(fA,{scope:t,onClose:h.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:m,modal:a,children:r})})})};Ng.displayName=Br;var pA="MenuAnchor",Xs=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Vr(n);return u.jsx(Tr,{...o,...r,ref:t})});Xs.displayName=pA;var Zs="MenuPortal",[mA,Tg]=vn(Zs,{forceMount:void 0}),Ig=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Zt(Zs,t);return u.jsx(mA,{scope:t,forceMount:n,children:u.jsx(Oe,{present:n||i.open,children:u.jsx(Un,{asChild:!0,container:o,children:r})})})};Ig.displayName=Zs;var ot="MenuContent",[hA,Js]=vn(ot),jg=h.forwardRef((e,t)=>{const n=Tg(ot,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Zt(ot,e.__scopeMenu),a=qr(ot,e.__scopeMenu);return u.jsx(Cr.Provider,{scope:e.__scopeMenu,children:u.jsx(Oe,{present:r||i.open,children:u.jsx(Cr.Slot,{scope:e.__scopeMenu,children:a.modal?u.jsx(gA,{...o,ref:t}):u.jsx(vA,{...o,ref:t})})})})}),gA=h.forwardRef((e,t)=>{const n=Zt(ot,e.__scopeMenu),r=h.useRef(null),o=de(t,r);return h.useEffect(()=>{const i=r.current;if(i)return Bo(i)},[]),u.jsx(Qs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:J(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),vA=h.forwardRef((e,t)=>{const n=Zt(ot,e.__scopeMenu);return u.jsx(Qs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),xA=$t("MenuContent.ScrollLock"),Qs=h.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:p,disableOutsideScroll:v,...g}=e,x=Zt(ot,n),y=qr(ot,n),b=Vr(n),k=Pg(n),P=uA(n),[N,S]=h.useState(null),I=h.useRef(null),j=de(t,I,x.onContentChange),q=h.useRef(0),U=h.useRef(""),G=h.useRef(0),V=h.useRef(null),K=h.useRef("right"),L=h.useRef(0),T=v?Ir:h.Fragment,_=v?{as:xA,allowPinchZoom:!0}:void 0,F=B=>{var D,ee;const C=U.current+B,Q=P().filter(re=>!re.disabled),A=document.activeElement,w=(D=Q.find(re=>re.ref.current===A))==null?void 0:D.textValue,Y=Q.map(re=>re.textValue),X=IA(Y,C,w),z=(ee=Q.find(re=>re.textValue===X))==null?void 0:ee.ref.current;(function re(ae){U.current=ae,window.clearTimeout(q.current),ae!==""&&(q.current=window.setTimeout(()=>re(""),1e3))})(C),z&&setTimeout(()=>z.focus())};h.useEffect(()=>()=>window.clearTimeout(q.current),[]),Ao();const M=h.useCallback(B=>{var Q,A;return K.current===((Q=V.current)==null?void 0:Q.side)&&AA(B,(A=V.current)==null?void 0:A.area)},[]);return u.jsx(hA,{scope:n,searchRef:U,onItemEnter:h.useCallback(B=>{M(B)&&B.preventDefault()},[M]),onItemLeave:h.useCallback(B=>{var C;M(B)||((C=I.current)==null||C.focus(),S(null))},[M]),onTriggerLeave:h.useCallback(B=>{M(B)&&B.preventDefault()},[M]),pointerGraceTimerRef:G,onPointerGraceIntentChange:h.useCallback(B=>{V.current=B},[]),children:u.jsx(T,{..._,children:u.jsx(Pr,{asChild:!0,trapped:o,onMountAutoFocus:J(i,B=>{var C;B.preventDefault(),(C=I.current)==null||C.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:u.jsx(Vn,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,onDismiss:p,children:u.jsx(Xo,{asChild:!0,...k,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:N,onCurrentTabStopIdChange:S,onEntryFocus:J(l,B=>{y.isUsingKeyboardRef.current||B.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Fo,{role:"menu","aria-orientation":"vertical","data-state":Kg(x.open),"data-radix-menu-content":"",dir:y.dir,...b,...g,ref:j,style:{outline:"none",...g.style},onKeyDown:J(g.onKeyDown,B=>{const Q=B.target.closest("[data-radix-menu-content]")===B.currentTarget,A=B.ctrlKey||B.altKey||B.metaKey,w=B.key.length===1;Q&&(B.key==="Tab"&&B.preventDefault(),!A&&w&&F(B.key));const Y=I.current;if(B.target!==Y||!sA.includes(B.key))return;B.preventDefault();const z=P().filter(D=>!D.disabled).map(D=>D.ref.current);Sg.includes(B.key)&&z.reverse(),NA(z)}),onBlur:J(e.onBlur,B=>{B.currentTarget.contains(B.target)||(window.clearTimeout(q.current),U.current="")}),onPointerMove:J(e.onPointerMove,kr(B=>{const C=B.target,Q=L.current!==B.clientX;if(B.currentTarget.contains(C)&&Q){const A=B.clientX>L.current?"right":"left";K.current=A,L.current=B.clientX}}))})})})})})})});jg.displayName=ot;var bA="MenuGroup",el=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.jsx(te.div,{role:"group",...r,ref:t})});el.displayName=bA;var yA="MenuLabel",Ag=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.jsx(te.div,{...r,ref:t})});Ag.displayName=yA;var Po="MenuItem",pu="menu.itemSelect",di=h.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=h.useRef(null),a=qr(Po,e.__scopeMenu),s=Js(Po,e.__scopeMenu),l=de(t,i),c=h.useRef(!1),d=()=>{const f=i.current;if(!n&&f){const m=new CustomEvent(pu,{bubbles:!0,cancelable:!0});f.addEventListener(pu,p=>r==null?void 0:r(p),{once:!0}),Fu(f,m),m.defaultPrevented?c.current=!1:a.onClose()}};return u.jsx(_g,{...o,ref:l,disabled:n,onClick:J(e.onClick,d),onPointerDown:f=>{var m;(m=e.onPointerDown)==null||m.call(e,f),c.current=!0},onPointerUp:J(e.onPointerUp,f=>{var m;c.current||(m=f.currentTarget)==null||m.click()}),onKeyDown:J(e.onKeyDown,f=>{const m=s.searchRef.current!=="";n||m&&f.key===" "||Oa.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});di.displayName=Po;var _g=h.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=Js(Po,n),s=Pg(n),l=h.useRef(null),c=de(t,l),[d,f]=h.useState(!1),[m,p]=h.useState("");return h.useEffect(()=>{const v=l.current;v&&p((v.textContent??"").trim())},[i.children]),u.jsx(Cr.ItemSlot,{scope:n,disabled:r,textValue:o??m,children:u.jsx(Zo,{asChild:!0,...s,focusable:!r,children:u.jsx(te.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:c,onPointerMove:J(e.onPointerMove,kr(v=>{r?a.onItemLeave(v):(a.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:J(e.onPointerLeave,kr(v=>a.onItemLeave(v))),onFocus:J(e.onFocus,()=>f(!0)),onBlur:J(e.onBlur,()=>f(!1))})})})}),wA="MenuCheckboxItem",Mg=h.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return u.jsx($g,{scope:e.__scopeMenu,checked:n,children:u.jsx(di,{role:"menuitemcheckbox","aria-checked":Ro(n)?"mixed":n,...o,ref:t,"data-state":rl(n),onSelect:J(o.onSelect,()=>r==null?void 0:r(Ro(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Mg.displayName=wA;var Og="MenuRadioGroup",[CA,kA]=vn(Og,{value:void 0,onValueChange:()=>{}}),Dg=h.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=lt(r);return u.jsx(CA,{scope:e.__scopeMenu,value:n,onValueChange:i,children:u.jsx(el,{...o,ref:t})})});Dg.displayName=Og;var Lg="MenuRadioItem",Fg=h.forwardRef((e,t)=>{const{value:n,...r}=e,o=kA(Lg,e.__scopeMenu),i=n===o.value;return u.jsx($g,{scope:e.__scopeMenu,checked:i,children:u.jsx(di,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":rl(i),onSelect:J(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});Fg.displayName=Lg;var tl="MenuItemIndicator",[$g,SA]=vn(tl,{checked:!1}),zg=h.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=SA(tl,n);return u.jsx(Oe,{present:r||Ro(i.checked)||i.checked===!0,children:u.jsx(te.span,{...o,ref:t,"data-state":rl(i.checked)})})});zg.displayName=tl;var EA="MenuSeparator",Bg=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return u.jsx(te.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Bg.displayName=EA;var PA="MenuArrow",Vg=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Vr(n);return u.jsx($o,{...o,...r,ref:t})});Vg.displayName=PA;var nl="MenuSub",[RA,qg]=vn(nl),Gg=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=Zt(nl,t),a=Vr(t),[s,l]=h.useState(null),[c,d]=h.useState(null),f=lt(o);return h.useEffect(()=>(i.open===!1&&f(!1),()=>f(!1)),[i.open,f]),u.jsx(Nr,{...a,children:u.jsx(Rg,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:d,children:u.jsx(RA,{scope:t,contentId:Ee(),triggerId:Ee(),trigger:s,onTriggerChange:l,children:n})})})};Gg.displayName=nl;var pr="MenuSubTrigger",Ug=h.forwardRef((e,t)=>{const n=Zt(pr,e.__scopeMenu),r=qr(pr,e.__scopeMenu),o=qg(pr,e.__scopeMenu),i=Js(pr,e.__scopeMenu),a=h.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},d=h.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return h.useEffect(()=>d,[d]),h.useEffect(()=>{const f=s.current;return()=>{window.clearTimeout(f),l(null)}},[s,l]),u.jsx(Xs,{asChild:!0,...c,children:u.jsx(_g,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Kg(n.open),...e,ref:Tt(t,o.onTriggerChange),onClick:f=>{var m;(m=e.onClick)==null||m.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:J(e.onPointerMove,kr(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:J(e.onPointerLeave,kr(f=>{var p,v;d();const m=(p=n.content)==null?void 0:p.getBoundingClientRect();if(m){const g=(v=n.content)==null?void 0:v.dataset.side,x=g==="right",y=x?-5:5,b=m[x?"left":"right"],k=m[x?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+y,y:f.clientY},{x:b,y:m.top},{x:k,y:m.top},{x:k,y:m.bottom},{x:b,y:m.bottom}],side:g}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:J(e.onKeyDown,f=>{var p;const m=i.searchRef.current!=="";e.disabled||m&&f.key===" "||lA[r.dir].includes(f.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),f.preventDefault())})})})});Ug.displayName=pr;var Hg="MenuSubContent",Wg=h.forwardRef((e,t)=>{const n=Tg(ot,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Zt(ot,e.__scopeMenu),a=qr(ot,e.__scopeMenu),s=qg(Hg,e.__scopeMenu),l=h.useRef(null),c=de(t,l);return u.jsx(Cr.Provider,{scope:e.__scopeMenu,children:u.jsx(Oe,{present:r||i.open,children:u.jsx(Cr.Slot,{scope:e.__scopeMenu,children:u.jsx(Qs,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;a.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:J(e.onFocusOutside,d=>{d.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:J(e.onEscapeKeyDown,d=>{a.onClose(),d.preventDefault()}),onKeyDown:J(e.onKeyDown,d=>{var p;const f=d.currentTarget.contains(d.target),m=cA[a.dir].includes(d.key);f&&m&&(i.onOpenChange(!1),(p=s.trigger)==null||p.focus(),d.preventDefault())})})})})})});Wg.displayName=Hg;function Kg(e){return e?"open":"closed"}function Ro(e){return e==="indeterminate"}function rl(e){return Ro(e)?"indeterminate":e?"checked":"unchecked"}function NA(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function TA(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function IA(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=TA(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function jA(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,d=s.y,f=l.x,m=l.y;d>r!=m>r&&n<(f-c)*(r-d)/(m-d)+c&&(o=!o)}return o}function AA(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return jA(n,t)}function kr(e){return t=>t.pointerType==="mouse"?e(t):void 0}var _A=Ng,MA=Xs,OA=Ig,DA=jg,LA=el,FA=Ag,$A=di,zA=Mg,BA=Dg,VA=Fg,qA=zg,GA=Bg,UA=Vg,HA=Gg,WA=Ug,KA=Wg,fi="DropdownMenu",[YA,d2]=Ae(fi,[Eg]),Le=Eg(),[XA,Yg]=YA(fi),Xg=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=Le(t),c=h.useRef(null),[d,f]=je({prop:o,defaultProp:i??!1,onChange:a,caller:fi});return u.jsx(XA,{scope:t,triggerId:Ee(),triggerRef:c,contentId:Ee(),open:d,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(m=>!m),[f]),modal:s,children:u.jsx(_A,{...l,open:d,onOpenChange:f,dir:r,modal:s,children:n})})};Xg.displayName=fi;var Zg="DropdownMenuTrigger",Jg=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Yg(Zg,n),a=Le(n);return u.jsx(MA,{asChild:!0,...a,children:u.jsx(te.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Tt(t,i.triggerRef),onPointerDown:J(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:J(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Jg.displayName=Zg;var ZA="DropdownMenuPortal",Qg=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Le(t);return u.jsx(OA,{...r,...n})};Qg.displayName=ZA;var ev="DropdownMenuContent",tv=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Yg(ev,n),i=Le(n),a=h.useRef(!1);return u.jsx(DA,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:J(e.onCloseAutoFocus,s=>{var l;a.current||(l=o.triggerRef.current)==null||l.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:J(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;(!o.modal||d)&&(a.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)"}})});tv.displayName=ev;var JA="DropdownMenuGroup",nv=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Le(n);return u.jsx(LA,{...o,...r,ref:t})});nv.displayName=JA;var QA="DropdownMenuLabel",rv=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Le(n);return u.jsx(FA,{...o,...r,ref:t})});rv.displayName=QA;var e_="DropdownMenuItem",ov=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Le(n);return u.jsx($A,{...o,...r,ref:t})});ov.displayName=e_;var t_="DropdownMenuCheckboxItem",iv=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Le(n);return u.jsx(zA,{...o,...r,ref:t})});iv.displayName=t_;var n_="DropdownMenuRadioGroup",av=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Le(n);return u.jsx(BA,{...o,...r,ref:t})});av.displayName=n_;var r_="DropdownMenuRadioItem",sv=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Le(n);return u.jsx(VA,{...o,...r,ref:t})});sv.displayName=r_;var o_="DropdownMenuItemIndicator",lv=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Le(n);return u.jsx(qA,{...o,...r,ref:t})});lv.displayName=o_;var i_="DropdownMenuSeparator",cv=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Le(n);return u.jsx(GA,{...o,...r,ref:t})});cv.displayName=i_;var a_="DropdownMenuArrow",s_=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Le(n);return u.jsx(UA,{...o,...r,ref:t})});s_.displayName=a_;var l_=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=Le(t),[s,l]=je({prop:r,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return u.jsx(HA,{...a,open:s,onOpenChange:l,children:n})},c_="DropdownMenuSubTrigger",uv=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Le(n);return u.jsx(WA,{...o,...r,ref:t})});uv.displayName=c_;var u_="DropdownMenuSubContent",dv=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Le(n);return u.jsx(KA,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});dv.displayName=u_;var d_=Xg,f_=Jg,fv=Qg,pv=tv,p_=nv,mv=rv,hv=ov,gv=iv,m_=av,vv=sv,xv=lv,bv=cv,h_=l_,yv=uv,wv=dv;const g_=d_,v_=f_,x_=p_,b_=fv,y_=h_,w_=m_,Cv=h.forwardRef(({className:e,inset:t,children:n,...r},o)=>u.jsxs(yv,{ref:o,className:O("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),...r,children:[n,u.jsx(Au,{className:"ml-auto"})]}));Cv.displayName=yv.displayName;const kv=h.forwardRef(({className:e,...t},n)=>u.jsx(wv,{ref:n,className:O("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}));kv.displayName=wv.displayName;const Sv=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>u.jsx(fv,{children:u.jsx(pv,{ref:r,sideOffset:t,className:O("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),...n})}));Sv.displayName=pv.displayName;const ol=h.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(hv,{ref:r,className:O("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),...n}));ol.displayName=hv.displayName;const Ev=h.forwardRef(({className:e,children:t,checked:n,...r},o)=>u.jsxs(gv,{ref:o,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus: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:n,...r,children:[u.jsx("span",{className:"absolute right-3 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(xv,{children:u.jsx(Bn,{className:"h-4 w-4"})})}),t]}));Ev.displayName=gv.displayName;const Pv=h.forwardRef(({className:e,children:t,...n},r)=>u.jsxs(vv,{ref:r,className:O("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-[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),...n,children:[u.jsx("span",{className:"absolute right-3 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(xv,{children:u.jsx(Bn,{className:"h-[18px] w-[18px]"})})}),t]}));Pv.displayName=vv.displayName;const il=h.forwardRef(({className:e,inset:t,...n},r)=>u.jsx(mv,{ref:r,className:O("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));il.displayName=mv.displayName;const Jt=h.forwardRef(({className:e,...t},n)=>u.jsx(bv,{ref:n,className:O("-mx-1 my-1 h-px bg-purple-muted-500",e),...t}));Jt.displayName=bv.displayName;const Rv=({className:e,...t})=>u.jsx("span",{className:O("ml-auto text-xs tracking-widest [&>svg]:size-4 self-end",e),...t});Rv.displayName="DropdownMenuEndAndornment";const C_=({radioItem:e})=>u.jsxs(Pv,{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]}),k_=({radioGroupItem:e})=>u.jsxs(u.Fragment,{children:[u.jsx(w_,{value:e.value,onValueChange:e.onValueChange,children:e.radioItems.map((t,n)=>u.jsx(C_,{radioItem:t},`item-${n}`))}),e.separator&&u.jsx(Jt,{})]}),S_=({actionItem:e})=>u.jsxs("div",{className:"w-full [&>button]:w-full",children:[u.jsx(zr,{content:e.tooltip,providerProps:{delayDuration:200},children:u.jsx(ol,{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:u.jsxs("div",{className:"flex items-center gap-2 w-full",children:[e.loading&&u.jsx(Mu,{className:"h-4 w-4 motion-preset-spin motion-duration-1000"}),!e.loading&&e.icon,e.label,e.endAndornment&&u.jsx(Rv,{children:e.endAndornment})]})})}),e.separator&&u.jsx(Jt,{})]}),E_=({checkboxItem:e})=>u.jsxs(Ev,{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})=>u.jsxs(u.Fragment,{children:[u.jsx(x_,{children:e.checkboxes.map((t,n)=>u.jsx(E_,{checkboxItem:t},`item-${n}`))}),e.separator&&u.jsx(Jt,{})]}),R_=({subMenuItem:e})=>u.jsxs(u.Fragment,{children:[u.jsxs(y_,{children:[u.jsxs(Cv,{disabled:e.disabled,className:"m-0 rounded-none py-1.5 pl-3 pr-1",children:[e.icon,e.label]}),u.jsx(b_,{children:u.jsx(kv,{children:e.subItems.map((t,n)=>Nv(t,n))})})]}),e.separator&&u.jsx(Jt,{})]}),N_=({menuItem:e})=>u.jsx(il,{className:"text-purple-muted-300 px-3 font-normal",children:e.label}),T_=()=>u.jsx(Jt,{}),Nv=(e,t)=>{switch(e.type){case"ActionMenuItem":return u.jsx(S_,{actionItem:e},`item-${t}`);case"CheckboxGroup":return u.jsx(P_,{checkboxGroupItem:e},`item-${t}`);case"RadioGroup":return u.jsx(k_,{radioGroupItem:e},`item-${t}`);case"SubMenuItem":return u.jsx(R_,{subMenuItem:e},`item-${t}`);case"MenuLabel":return u.jsx(N_,{menuItem:e},`item-${t}`);case"Separator":return u.jsx(T_,{},`item-${t}`);default:return null}},I_={s:"min-w-[140px]",m:"min-w-[249px]",l:"min-w-[257px]"},j_=({header:e})=>u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx("span",{className:"text-purple-muted-300",children:e.title}),u.jsx("span",{children:e.label})]}),A_=({header:e})=>e?u.jsxs(u.Fragment,{children:[u.jsx(il,{className:"text-purple-100 font-normal px-3",children:e.type==="MenuTitleHeader"&&u.jsx(j_,{header:e})}),u.jsx(Jt,{className:"bg-purple-muted-500"})]}):null,__=({footer:e})=>e?u.jsxs(u.Fragment,{children:[u.jsx(Jt,{className:"bg-purple-muted-500"}),u.jsxs(ol,{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,Tv=({menuItems:e,header:t,footer:n,triggerElement:r,size:o="s",asChild:i=!1,side:a="bottom",modal:s=!1,disabled:l=!1,className:c=""})=>{const d=Iu(I_,{[o]:o,className:c},!1);return u.jsx("div",{className:O("qodo qodo-dropdown"),children:u.jsxs(g_,{modal:s,children:[u.jsx(v_,{asChild:i,className:"select-none outline-none flex items-center",disabled:l,children:r}),u.jsxs(Sv,{side:a,align:"end",className:d,children:[u.jsx(A_,{header:t}),e.filter(f=>!f.isHidden).map((f,m)=>Nv(f,m)),u.jsx(__,{footer:n})]})]})})},M_=({triggerAriaLabel:e="Open actions menu",className:t,...n})=>u.jsx(Nt,{variant:"ghost",size:"icon","aria-label":e,className:O("flex items-center justify-center h-4 w-4",t),...n,children:u.jsx(_u,{className:"h-4 w-4"})}),O_=({menuItems:e=[],triggerElement:t=M_,triggerProps:n={},className:r,size:o="s",asChild:i=!1,side:a="bottom",modal:s=!1})=>u.jsx("div",{className:r,onClick:l=>l.stopPropagation(),children:u.jsx(Tv,{triggerElement:u.jsx(t,{className:O("flex items-center justify-center",n==null?void 0:n.className),...n}),menuItems:e,size:o,asChild:i,side:a,modal:s,disabled:n==null?void 0:n.disabled})}),D_={"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"},mu={SMALL:"small",LARGE:"large"},L_={GHOST:"ghost"},F_=({containerClassName:e,className:t,searchSize:n=mu.SMALL,disabled:r=!1,disableFilterIcon:o=!0,...i})=>{const a=n===mu.LARGE?"pl-12 py-3 pr-4 h-[45px]":"pl-9 py-1.5 pr-2 h-[33px]",s=O("absolute top-1/2 h-4 w-4 -translate-y-1/2",r?"text-purple-muted-600":"text-purple-muted-400"),l=O("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":i.variant===L_.GHOST},{"pr-9":!o});return u.jsxs("div",{className:O("qodo qodo-search-input","relative",e),children:[u.jsx(Ou,{className:O(s,"left-3")}),u.jsx(Er,{className:O(a,l,t),disabled:r,...i,...D_}),!o&&u.jsx(Qx,{className:O(s,"right-3")})]})},$_=/^(([^<>()[\]\\.,;:\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,}))$/,z_=e=>e.split(/[,\s]+/).map(t=>t.trim()).filter(Boolean),B_=(e,t)=>{var r;if(!(t!=null&&t.length))return!0;const n=(r=e.split("@")[1])==null?void 0:r.toLowerCase();return t.some(o=>n===o.toLowerCase())},V_=(e,t)=>e.map(n=>{const r=$_.test(n),o=r?B_(n,t==null?void 0:t.domains):void 0;return{email:n,isValid:r&&o!==!1,isDomainValid:o}}),q_=(e,t,n)=>{const r=V_(e,n),o=[...t];for(const i of r)o.some(s=>s.email===i.email)||o.push(i);return o},G_=({onChange:e=()=>{},organization:t})=>{const[n,r]=R.useState([]),o=R.useCallback(c=>{e(c)},[e]),i=R.useCallback(c=>{r(c),o(c)},[o]),a=R.useCallback(c=>{const d=z_(c);if(d.length===0)return;const f=q_(d,n,t);i(f)},[n,i,t]),s=R.useCallback(()=>{i([])},[i]),l=R.useCallback(c=>{const d=n.filter(f=>f.email!==c);i(d)},[n,i]);return{emails:n,setEmails:i,addTokens:a,removeToken:l,clearAll:s,notify:o}},U_=e=>{const{draft:t,setDraft:n,addTokens:r,allSelected:o,setAllSelected:i,clearAll:a,emails:s,setEmails:l,notify:c}=e;return d=>{if((d.key==="a"||d.key==="A")&&(d.metaKey||d.ctrlKey)){d.preventDefault(),i(!0);return}if(o&&(d.key==="Backspace"||d.key==="Delete")){d.preventDefault(),i(!1),a(),n("");return}if(o&&d.key==="Escape"){d.preventDefault(),i(!1);return}if(o&&d.key.length===1&&!d.metaKey&&!d.ctrlKey&&!d.altKey&&(i(!1),a()),d.key==="Backspace"&&t.length===0&&s.length>0){d.preventDefault();const f=s[s.length-1],m=s.slice(0,-1);l(m),n(f.email),c(m);return}if(d.key==="Enter"){d.preventDefault(),t.trim()&&(r(t),n(""));return}[",",";"," "].includes(d.key)&&(d.preventDefault(),t.trim()&&(r(t),n("")))}},H_=({email:e,isValid:t,onRemove:n})=>{const r=o=>{o.stopPropagation(),n(e)};return u.jsxs(Ln,{className:"px-2 group whitespace-nowrap flex-shrink-0",variant:t?"success":"error",size:"sm",children:[u.jsx("span",{className:"max-w-[200px] truncate",children:e}),u.jsx("button",{onClick:r,className:"ml-1 opacity-70 hover:opacity-100 transition-opacity flex-shrink-0",type:"button",children:u.jsx(Io,{size:12})})]})},W_=({hasContent:e,onClearAll:t,emails:n,invalidEmailError:r,invalidDomainError:o})=>{const{formatErrors:i,domainErrors:a,totalInvalidCount:s}=R.useMemo(()=>{const p=n.filter(x=>!x.isValid),v=p.filter(x=>!x.email.includes("@")||x.isDomainValid===void 0),g=p.filter(x=>x.isDomainValid===!1);return{formatErrors:v,domainErrors:g,totalInvalidCount:p.length}},[n]),l=p=>{p.preventDefault(),p.stopPropagation()},c=p=>{l(p),t()},d=p=>{l(p)},f=p=>{p.stopPropagation()},m=(p,v)=>v.length===0?u.jsx(u.Fragment,{}):u.jsxs("div",{className:"space-y-1 text-purple-muted-200",children:[u.jsxs("span",{className:"font-medium border-b border-purple-muted-200",children:[p,":"]}),v.map((g,x)=>u.jsx("p",{className:"break-all",children:g.email},`${p}-${x}-${g.email}`))]});return u.jsxs(u.Fragment,{children:[e&&u.jsx("button",{type:"button",onClick:c,className:"absolute right-3 top-1/2 -translate-y-1/2 hover:text-purple-muted-100",children:u.jsx(db,{className:"h-4 w-4"})}),s>0&&u.jsx("div",{className:"absolute flex center align-center right-[34px] top-1/2 -translate-y-1/2 [&>button]:h-4",children:u.jsx(zr,{triggerProps:{asChild:!0},content:u.jsx("div",{onClick:d,onWheel:f,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:u.jsxs("div",{className:"flex flex-col gap-1 text-xs max-h-64 overflow-y-auto pr-1 no-scrollbar",children:[m(r,i),m(o,a)]})}),providerProps:{delayDuration:200},contentProps:{side:"bottom",align:"end",className:"border-0 bg-transparent p-0 m-0",disableArrow:!0},children:u.jsx("button",{type:"button","aria-label":`${s} invalid emails`,className:"text-red-400 hover:text-red-300",children:u.jsx(pb,{className:"size-[18px]"})})})})]})},K_=({onChange:e,disabled:t=!1,inviteMembersPlaceholder:n=({domain:d})=>`Enter email addresses (e.g., user@${d})`,inviteMembersDisabledTooltip:r="You don't have permission to modify email addresses",organization:o,inputClassName:i,chipClassName:a,wrapperClassName:s,invalidEmailError:l="Invalid email",invalidDomainError:c="Email domain is not allowed"})=>{const d=R.useRef(null),f=R.useRef(null),[m,p]=R.useState(""),[v,g]=R.useState(!1),{emails:x,setEmails:y,addTokens:b,removeToken:k,clearAll:P,notify:N}=G_({onChange:e,organization:o}),S=U_({draft:m,setDraft:p,addTokens:b,allSelected:v,setAllSelected:g,clearAll:P,emails:x,setEmails:y,notify:N}),I=()=>{var Q;const C=((Q=o==null?void 0:o.domains)==null?void 0:Q[0])||"example.com";return n({domain:C})},j=R.useCallback(C=>{p(C.target.value)},[]),q=R.useCallback(()=>{m.trim()&&(b(m),p("")),g(!1)},[m,b]),U=R.useCallback(C=>{const Q=C.clipboardData.getData("text");Q&&(C.preventDefault(),b(Q),p(""))},[b]),G=R.useCallback(()=>{var C;(C=f.current)==null||C.focus()},[f]),V=R.useCallback(()=>{g(!1)},[]),K=R.useCallback(C=>{var A;const Q=C.relatedTarget;Q&&((A=d.current)!=null&&A.contains(Q))||m.trim()&&(b(m),p(""))},[m,b]),L=x.length>0,T=!L&&m.length===0,_=L||m.length>0,F=O("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",L?"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},i),M=O("inline-flex items-center gap-1 no-scrollbar",L?"w-max":"w-full",a),B=O("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",s);return u.jsx(zr,{triggerProps:{asChild:!0},content:t?r:void 0,children:u.jsxs("div",{ref:d,className:B,onClick:G,onFocus:V,onBlur:K,children:[u.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-purple-muted-400",children:u.jsx(nb,{className:"w-4 h-4"})}),u.jsx("div",{className:"w-full text-start max-w-full min-w-0 overflow-x-auto overflow-y-hidden no-scrollbar",children:u.jsxs("div",{className:M,children:[x.map((C,Q)=>u.jsx(H_,{email:C.email,isValid:C.isValid,onRemove:k},`email-${Q}-${C.email}`)),u.jsx("input",{ref:f,value:m,onChange:j,onKeyDown:S,onBlur:q,onPaste:U,className:F,placeholder:T?I():"",disabled:t})]})}),u.jsx(W_,{hasContent:_,onClearAll:P,emails:x,invalidEmailError:l,invalidDomainError:c})]})})},oo={DEFAULT:"default",PRIMARY:"primary",ACTIVE:"active"},hu={SM:"sm",MD:"md"};function Y_({title:e,description:t,caption:n,additionalContent:r,titleClassName:o,descriptionClassName:i,variant:a=oo.DEFAULT,className:s,icon:l,iconClassName:c,size:d=hu.SM}){const f=O("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":d===hu.MD},s),m=O("p-0 m-0 text-xs","text-[var(--color-text-bg-neutral-mild)] dark:text-[var(--color-text-bg-neutral-mild)] font-normal",o),p=O("w-8 h-8 flex items-center justify-center","bg-purple-muted-600 rounded-full p-2.5",c),v=O("text-xl font-medium p-0 m-0 leading-5",{"text-muted-foreground dark:text-white":a===oo.DEFAULT,"text-purple-300 dark:text-purple-300":a===oo.PRIMARY,"text-[var(--color-text-tag-positive-idle)] dark:text-[var(--color-text-tag-positive-idle)]":a===oo.ACTIVE},i);return u.jsxs(ep,{className:f,children:[l&&u.jsx("div",{className:p,children:l}),u.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[u.jsx(tp,{className:"m-0 p-0 gap-0",children:u.jsx(np,{className:m,children:e})}),u.jsxs(op,{className:"m-0 p-0 flex flex-col gap-2",children:[t&&u.jsx(rp,{className:v,children:t}),n&&u.jsx("span",{className:"text-xs text-foreground dark:text-foreground tracking-[0.12px]",children:n}),r]})]})]})}exports.Accordion=G1;exports.AccordionContent=W1;exports.AccordionItem=U1;exports.AccordionTrigger=H1;exports.ActionsCell=O_;exports.Badge=Ln;exports.BadgeCell=rA;exports.BaseCell=Ma;exports.Button=Nt;exports.Card=ep;exports.CardAction=FC;exports.CardContent=op;exports.CardDescription=rp;exports.CardFooter=$C;exports.CardHeader=tp;exports.CardTitle=np;exports.Checkbox=Hs;exports.CheckboxGroup=Us;exports.ClassHelper=Iu;exports.Combobox=ns;exports.Dialog=mC;exports.DialogClose=gC;exports.DialogContent=vC;exports.DialogDescription=wC;exports.DialogFooter=bC;exports.DialogHeader=xC;exports.DialogOverlay=Lf;exports.DialogPortal=Df;exports.DialogTitle=yC;exports.DialogTrigger=hC;exports.Dropdown=Tv;exports.EmailChipsInput=K_;exports.Form=We;exports.FormProvider=Km;exports.Input=Er;exports.InsightCard=Y_;exports.MarkdownPreview=Fm;exports.NumberCell=oA;exports.PAGINATION_MODE=fr;exports.Progress=KC;exports.RadioGroup=Os;exports.RadioGroupItem=Ls;exports.SearchInput=F_;exports.Select=Xh;exports.SelectContent=nf;exports.SelectGroup=R0;exports.SelectItem=of;exports.SelectLabel=rf;exports.SelectScrollDownButton=Wa;exports.SelectScrollUpButton=Ha;exports.SelectSeparator=af;exports.SelectTrigger=tf;exports.SelectV1=P0;exports.SelectValue=N0;exports.Skeleton=cp;exports.SortableHeaderCell=iA;exports.Steps=Vj;exports.Switch=r1;exports.Table=nA;exports.Tabs=ek;exports.TabsContent=rk;exports.TabsList=tk;exports.TabsTrigger=nk;exports.TagsInput=Th;exports.Toggle=i1;exports.ToggleGroup=C1;exports.ToggleGroupItem=k1;exports.Tooltip=zr;exports.Typography=nm;exports.borderRadius=Vv;exports.cn=O;exports.colors=zv;exports.spacing=Bv;exports.typography=qv;exports.typographyVariants=tm;exports.useFormContext=Ym;
219
232
  //# sourceMappingURL=index.cjs.js.map