ui-arreya-components 0.0.3 → 0.0.5

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/ui.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(M,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(M=typeof globalThis<"u"?globalThis:M||self,te(M.ui={},M.React,M.ReactDOM))})(this,function(M,te,Gn){"use strict";function Un(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 l=Un(te),Yn=Un(Gn);var gt={exports:{}},st={};/**
1
+ (function(k,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(k=typeof globalThis<"u"?globalThis:k||self,te(k.ui={},k.React,k.ReactDOM))})(this,function(k,te,Gr){"use strict";function Ur(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=Ur(te),Yr=Ur(Gr);var gt={exports:{}},st={};/**
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 Kn;function Ka(){if(Kn)return st;Kn=1;var e=te,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,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,c,d){var f,p={},h=null,g=null;d!==void 0&&(h=""+d),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(g=c.ref);for(f in c)r.call(c,f)&&!a.hasOwnProperty(f)&&(p[f]=c[f]);if(s&&s.defaultProps)for(f in c=s.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:s,key:h,ref:g,props:p,_owner:o.current}}return st.Fragment=n,st.jsx=i,st.jsxs=i,st}var lt={};/**
9
+ */var Kr;function ti(){if(Kr)return st;Kr=1;var e=te,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,c,d){var f,p={},v=null,g=null;d!==void 0&&(v=""+d),c.key!==void 0&&(v=""+c.key),c.ref!==void 0&&(g=c.ref);for(f in c)n.call(c,f)&&!a.hasOwnProperty(f)&&(p[f]=c[f]);if(s&&s.defaultProps)for(f in c=s.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:s,key:v,ref:g,props:p,_owner:o.current}}return st.Fragment=r,st.jsx=i,st.jsxs=i,st}var lt={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,91 +14,101 @@
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 Xn;function Xa(){return Xn||(Xn=1,process.env.NODE_ENV!=="production"&&function(){var e=te,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.iterator,m="@@iterator";function y(u){if(u===null||typeof u!="object")return null;var E=b&&u[b]||u[m];return typeof E=="function"?E:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(u){{for(var E=arguments.length,A=new Array(E>1?E-1:0),D=1;D<E;D++)A[D-1]=arguments[D];C("error",u,A)}}function C(u,E,A){{var D=x.ReactDebugCurrentFrame,V=D.getStackAddendum();V!==""&&(E+="%s",A=A.concat([V]));var G=A.map(function(z){return String(z)});G.unshift("Warning: "+E),Function.prototype.apply.call(console[u],console,G)}}var R=!1,P=!1,S=!1,T=!1,B=!1,U;U=Symbol.for("react.module.reference");function H(u){return!!(typeof u=="string"||typeof u=="function"||u===r||u===a||B||u===o||u===d||u===f||T||u===g||R||P||S||typeof u=="object"&&u!==null&&(u.$$typeof===h||u.$$typeof===p||u.$$typeof===i||u.$$typeof===s||u.$$typeof===c||u.$$typeof===U||u.getModuleId!==void 0))}function J(u,E,A){var D=u.displayName;if(D)return D;var V=E.displayName||E.name||"";return V!==""?A+"("+V+")":A}function X(u){return u.displayName||"Context"}function $(u){if(u==null)return null;if(typeof u.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case s:var E=u;return X(E)+".Consumer";case i:var A=u;return X(A._context)+".Provider";case c:return J(u,u.render,"ForwardRef");case p:var D=u.displayName||null;return D!==null?D:$(u.type)||"Memo";case h:{var V=u,G=V._payload,z=V._init;try{return $(z(G))}catch{return null}}}return null}var I=Object.assign,Y=0,k,K,_,W,ee,be,Le;function Fe(){}Fe.__reactDisabledLog=!0;function Ne(){{if(Y===0){k=console.log,K=console.info,_=console.warn,W=console.error,ee=console.group,be=console.groupCollapsed,Le=console.groupEnd;var u={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}Y++}}function _e(){{if(Y--,Y===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},u,{value:k}),info:I({},u,{value:K}),warn:I({},u,{value:_}),error:I({},u,{value:W}),group:I({},u,{value:ee}),groupCollapsed:I({},u,{value:be}),groupEnd:I({},u,{value:Le})})}Y<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ee=x.ReactCurrentDispatcher,pe;function $e(u,E,A){{if(pe===void 0)try{throw Error()}catch(V){var D=V.stack.trim().match(/\n( *(at )?)/);pe=D&&D[1]||""}return`
18
- `+pe+u}}var rt=!1,ze;{var Vt=typeof WeakMap=="function"?WeakMap:Map;ze=new Vt}function mt(u,E){if(!u||rt)return"";{var A=ze.get(u);if(A!==void 0)return A}var D;rt=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var G;G=Ee.current,Ee.current=null,Ne();try{if(E){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(ae){D=ae}Reflect.construct(u,[],z)}else{try{z.call()}catch(ae){D=ae}u.call(z.prototype)}}else{try{throw Error()}catch(ae){D=ae}u()}}catch(ae){if(ae&&D&&typeof ae.stack=="string"){for(var F=ae.stack.split(`
19
- `),re=D.stack.split(`
20
- `),q=F.length-1,Z=re.length-1;q>=1&&Z>=0&&F[q]!==re[Z];)Z--;for(;q>=1&&Z>=0;q--,Z--)if(F[q]!==re[Z]){if(q!==1||Z!==1)do if(q--,Z--,Z<0||F[q]!==re[Z]){var le=`
21
- `+F[q].replace(" at new "," at ");return u.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",u.displayName)),typeof u=="function"&&ze.set(u,le),le}while(q>=1&&Z>=0);break}}}finally{rt=!1,Ee.current=G,_e(),Error.prepareStackTrace=V}var it=u?u.displayName||u.name:"",Ve=it?$e(it):"";return typeof u=="function"&&ze.set(u,Ve),Ve}function We(u,E,A){return mt(u,!1)}function Ht(u){var E=u.prototype;return!!(E&&E.isReactComponent)}function ot(u,E,A){if(u==null)return"";if(typeof u=="function")return mt(u,Ht(u));if(typeof u=="string")return $e(u);switch(u){case d:return $e("Suspense");case f:return $e("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case c:return We(u.render);case p:return ot(u.type,E,A);case h:{var D=u,V=D._payload,G=D._init;try{return ot(G(V),E,A)}catch{}}}return""}var Be=Object.prototype.hasOwnProperty,Gt={},Ut=x.ReactDebugCurrentFrame;function Se(u){if(u){var E=u._owner,A=ot(u.type,u._source,E?E.type:null);Ut.setExtraStackFrame(A)}else Ut.setExtraStackFrame(null)}function uu(u,E,A,D,V){{var G=Function.call.bind(Be);for(var z in u)if(G(u,z)){var F=void 0;try{if(typeof u[z]!="function"){var re=Error((D||"React class")+": "+A+" type `"+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw re.name="Invariant Violation",re}F=u[z](E,z,D,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(q){F=q}F&&!(F instanceof Error)&&(Se(V),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",D||"React class",A,z,typeof F),Se(null)),F instanceof Error&&!(F.message in Gt)&&(Gt[F.message]=!0,Se(V),w("Failed %s type: %s",A,F.message),Se(null))}}}var du=Array.isArray;function zn(u){return du(u)}function fu(u){{var E=typeof Symbol=="function"&&Symbol.toStringTag,A=E&&u[Symbol.toStringTag]||u.constructor.name||"Object";return A}}function pu(u){try{return Ia(u),!1}catch{return!0}}function Ia(u){return""+u}function La(u){if(pu(u))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",fu(u)),Ia(u)}var Fa=x.ReactCurrentOwner,mu={key:!0,ref:!0,__self:!0,__source:!0},$a,za;function gu(u){if(Be.call(u,"ref")){var E=Object.getOwnPropertyDescriptor(u,"ref").get;if(E&&E.isReactWarning)return!1}return u.ref!==void 0}function hu(u){if(Be.call(u,"key")){var E=Object.getOwnPropertyDescriptor(u,"key").get;if(E&&E.isReactWarning)return!1}return u.key!==void 0}function vu(u,E){typeof u.ref=="string"&&Fa.current}function bu(u,E){{var A=function(){$a||($a=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};A.isReactWarning=!0,Object.defineProperty(u,"key",{get:A,configurable:!0})}}function yu(u,E){{var A=function(){za||(za=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};A.isReactWarning=!0,Object.defineProperty(u,"ref",{get:A,configurable:!0})}}var xu=function(u,E,A,D,V,G,z){var F={$$typeof:t,type:u,key:E,ref:A,props:z,_owner:G};return F._store={},Object.defineProperty(F._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(F,"_self",{configurable:!1,enumerable:!1,writable:!1,value:D}),Object.defineProperty(F,"_source",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.freeze&&(Object.freeze(F.props),Object.freeze(F)),F};function wu(u,E,A,D,V){{var G,z={},F=null,re=null;A!==void 0&&(La(A),F=""+A),hu(E)&&(La(E.key),F=""+E.key),gu(E)&&(re=E.ref,vu(E,V));for(G in E)Be.call(E,G)&&!mu.hasOwnProperty(G)&&(z[G]=E[G]);if(u&&u.defaultProps){var q=u.defaultProps;for(G in q)z[G]===void 0&&(z[G]=q[G])}if(F||re){var Z=typeof u=="function"?u.displayName||u.name||"Unknown":u;F&&bu(z,Z),re&&yu(z,Z)}return xu(u,F,re,V,D,Fa.current,z)}}var Wn=x.ReactCurrentOwner,Wa=x.ReactDebugCurrentFrame;function at(u){if(u){var E=u._owner,A=ot(u.type,u._source,E?E.type:null);Wa.setExtraStackFrame(A)}else Wa.setExtraStackFrame(null)}var Bn;Bn=!1;function Vn(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}function Ba(){{if(Wn.current){var u=$(Wn.current.type);if(u)return`
17
+ */var Xr;function ri(){return Xr||(Xr=1,process.env.NODE_ENV!=="production"&&function(){var e=te,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.iterator,m="@@iterator";function y(u){if(u===null||typeof u!="object")return null;var E=b&&u[b]||u[m];return typeof E=="function"?E:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(u){{for(var E=arguments.length,A=new Array(E>1?E-1:0),j=1;j<E;j++)A[j-1]=arguments[j];C("error",u,A)}}function C(u,E,A){{var j=x.ReactDebugCurrentFrame,V=j.getStackAddendum();V!==""&&(E+="%s",A=A.concat([V]));var G=A.map(function(B){return String(B)});G.unshift("Warning: "+E),Function.prototype.apply.call(console[u],console,G)}}var R=!1,P=!1,S=!1,T=!1,W=!1,U;U=Symbol.for("react.module.reference");function H(u){return!!(typeof u=="string"||typeof u=="function"||u===n||u===a||W||u===o||u===d||u===f||T||u===g||R||P||S||typeof u=="object"&&u!==null&&(u.$$typeof===v||u.$$typeof===p||u.$$typeof===i||u.$$typeof===s||u.$$typeof===c||u.$$typeof===U||u.getModuleId!==void 0))}function J(u,E,A){var j=u.displayName;if(j)return j;var V=E.displayName||E.name||"";return V!==""?A+"("+V+")":A}function X(u){return u.displayName||"Context"}function $(u){if(u==null)return null;if(typeof u.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case n:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case s:var E=u;return X(E)+".Consumer";case i:var A=u;return X(A._context)+".Provider";case c:return J(u,u.render,"ForwardRef");case p:var j=u.displayName||null;return j!==null?j:$(u.type)||"Memo";case v:{var V=u,G=V._payload,B=V._init;try{return $(B(G))}catch{return null}}}return null}var I=Object.assign,Y=0,D,K,_,z,ee,ye,Le;function Fe(){}Fe.__reactDisabledLog=!0;function Oe(){{if(Y===0){D=console.log,K=console.info,_=console.warn,z=console.error,ee=console.group,ye=console.groupCollapsed,Le=console.groupEnd;var u={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}Y++}}function _e(){{if(Y--,Y===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},u,{value:D}),info:I({},u,{value:K}),warn:I({},u,{value:_}),error:I({},u,{value:z}),group:I({},u,{value:ee}),groupCollapsed:I({},u,{value:ye}),groupEnd:I({},u,{value:Le})})}Y<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ee=x.ReactCurrentDispatcher,pe;function $e(u,E,A){{if(pe===void 0)try{throw Error()}catch(V){var j=V.stack.trim().match(/\n( *(at )?)/);pe=j&&j[1]||""}return`
18
+ `+pe+u}}var nt=!1,Be;{var Ht=typeof WeakMap=="function"?WeakMap:Map;Be=new Ht}function mt(u,E){if(!u||nt)return"";{var A=Be.get(u);if(A!==void 0)return A}var j;nt=!0;var V=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var G;G=Ee.current,Ee.current=null,Oe();try{if(E){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(ae){j=ae}Reflect.construct(u,[],B)}else{try{B.call()}catch(ae){j=ae}u.call(B.prototype)}}else{try{throw Error()}catch(ae){j=ae}u()}}catch(ae){if(ae&&j&&typeof ae.stack=="string"){for(var F=ae.stack.split(`
19
+ `),ne=j.stack.split(`
20
+ `),q=F.length-1,Z=ne.length-1;q>=1&&Z>=0&&F[q]!==ne[Z];)Z--;for(;q>=1&&Z>=0;q--,Z--)if(F[q]!==ne[Z]){if(q!==1||Z!==1)do if(q--,Z--,Z<0||F[q]!==ne[Z]){var le=`
21
+ `+F[q].replace(" at new "," at ");return u.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",u.displayName)),typeof u=="function"&&Be.set(u,le),le}while(q>=1&&Z>=0);break}}}finally{nt=!1,Ee.current=G,_e(),Error.prepareStackTrace=V}var it=u?u.displayName||u.name:"",Ve=it?$e(it):"";return typeof u=="function"&&Be.set(u,Ve),Ve}function ze(u,E,A){return mt(u,!1)}function Gt(u){var E=u.prototype;return!!(E&&E.isReactComponent)}function ot(u,E,A){if(u==null)return"";if(typeof u=="function")return mt(u,Gt(u));if(typeof u=="string")return $e(u);switch(u){case d:return $e("Suspense");case f:return $e("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case c:return ze(u.render);case p:return ot(u.type,E,A);case v:{var j=u,V=j._payload,G=j._init;try{return ot(G(V),E,A)}catch{}}}return""}var We=Object.prototype.hasOwnProperty,Ut={},Yt=x.ReactDebugCurrentFrame;function Se(u){if(u){var E=u._owner,A=ot(u.type,u._source,E?E.type:null);Yt.setExtraStackFrame(A)}else Yt.setExtraStackFrame(null)}function yu(u,E,A,j,V){{var G=Function.call.bind(We);for(var B in u)if(G(u,B)){var F=void 0;try{if(typeof u[B]!="function"){var ne=Error((j||"React class")+": "+A+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ne.name="Invariant Violation",ne}F=u[B](E,B,j,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(q){F=q}F&&!(F instanceof Error)&&(Se(V),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",j||"React class",A,B,typeof F),Se(null)),F instanceof Error&&!(F.message in Ut)&&(Ut[F.message]=!0,Se(V),w("Failed %s type: %s",A,F.message),Se(null))}}}var xu=Array.isArray;function Br(u){return xu(u)}function wu(u){{var E=typeof Symbol=="function"&&Symbol.toStringTag,A=E&&u[Symbol.toStringTag]||u.constructor.name||"Object";return A}}function Eu(u){try{return Va(u),!1}catch{return!0}}function Va(u){return""+u}function Ha(u){if(Eu(u))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wu(u)),Va(u)}var Ga=x.ReactCurrentOwner,Su={key:!0,ref:!0,__self:!0,__source:!0},Ua,Ya;function Cu(u){if(We.call(u,"ref")){var E=Object.getOwnPropertyDescriptor(u,"ref").get;if(E&&E.isReactWarning)return!1}return u.ref!==void 0}function Ru(u){if(We.call(u,"key")){var E=Object.getOwnPropertyDescriptor(u,"key").get;if(E&&E.isReactWarning)return!1}return u.key!==void 0}function Pu(u,E){typeof u.ref=="string"&&Ga.current}function Au(u,E){{var A=function(){Ua||(Ua=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};A.isReactWarning=!0,Object.defineProperty(u,"key",{get:A,configurable:!0})}}function Tu(u,E){{var A=function(){Ya||(Ya=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",E))};A.isReactWarning=!0,Object.defineProperty(u,"ref",{get:A,configurable:!0})}}var Nu=function(u,E,A,j,V,G,B){var F={$$typeof:t,type:u,key:E,ref:A,props:B,_owner:G};return F._store={},Object.defineProperty(F._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(F,"_self",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.defineProperty(F,"_source",{configurable:!1,enumerable:!1,writable:!1,value:V}),Object.freeze&&(Object.freeze(F.props),Object.freeze(F)),F};function Ou(u,E,A,j,V){{var G,B={},F=null,ne=null;A!==void 0&&(Ha(A),F=""+A),Ru(E)&&(Ha(E.key),F=""+E.key),Cu(E)&&(ne=E.ref,Pu(E,V));for(G in E)We.call(E,G)&&!Su.hasOwnProperty(G)&&(B[G]=E[G]);if(u&&u.defaultProps){var q=u.defaultProps;for(G in q)B[G]===void 0&&(B[G]=q[G])}if(F||ne){var Z=typeof u=="function"?u.displayName||u.name||"Unknown":u;F&&Au(B,Z),ne&&Tu(B,Z)}return Nu(u,F,ne,V,j,Ga.current,B)}}var zr=x.ReactCurrentOwner,Ka=x.ReactDebugCurrentFrame;function at(u){if(u){var E=u._owner,A=ot(u.type,u._source,E?E.type:null);Ka.setExtraStackFrame(A)}else Ka.setExtraStackFrame(null)}var Wr;Wr=!1;function Vr(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}function Xa(){{if(zr.current){var u=$(zr.current.type);if(u)return`
22
22
 
23
- Check the render method of \``+u+"`."}return""}}function Eu(u){return""}var Va={};function Su(u){{var E=Ba();if(!E){var A=typeof u=="string"?u:u.displayName||u.name;A&&(E=`
23
+ Check the render method of \``+u+"`."}return""}}function _u(u){return""}var qa={};function ku(u){{var E=Xa();if(!E){var A=typeof u=="string"?u:u.displayName||u.name;A&&(E=`
24
24
 
25
- Check the top-level render call using <`+A+">.")}return E}}function Ha(u,E){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var A=Su(E);if(Va[A])return;Va[A]=!0;var D="";u&&u._owner&&u._owner!==Wn.current&&(D=" It was passed a child from "+$(u._owner.type)+"."),at(u),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',A,D),at(null)}}function Ga(u,E){{if(typeof u!="object")return;if(zn(u))for(var A=0;A<u.length;A++){var D=u[A];Vn(D)&&Ha(D,E)}else if(Vn(u))u._store&&(u._store.validated=!0);else if(u){var V=y(u);if(typeof V=="function"&&V!==u.entries)for(var G=V.call(u),z;!(z=G.next()).done;)Vn(z.value)&&Ha(z.value,E)}}}function Cu(u){{var E=u.type;if(E==null||typeof E=="string")return;var A;if(typeof E=="function")A=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===c||E.$$typeof===p))A=E.propTypes;else return;if(A){var D=$(E);uu(A,u.props,"prop",D,u)}else if(E.PropTypes!==void 0&&!Bn){Bn=!0;var V=$(E);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ru(u){{for(var E=Object.keys(u.props),A=0;A<E.length;A++){var D=E[A];if(D!=="children"&&D!=="key"){at(u),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",D),at(null);break}}u.ref!==null&&(at(u),w("Invalid attribute `ref` supplied to `React.Fragment`."),at(null))}}var Ua={};function Ya(u,E,A,D,V,G){{var z=H(u);if(!z){var F="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(F+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var re=Eu();re?F+=re:F+=Ba();var q;u===null?q="null":zn(u)?q="array":u!==void 0&&u.$$typeof===t?(q="<"+($(u.type)||"Unknown")+" />",F=" Did you accidentally export a JSX literal instead of a component?"):q=typeof u,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",q,F)}var Z=wu(u,E,A,V,G);if(Z==null)return Z;if(z){var le=E.children;if(le!==void 0)if(D)if(zn(le)){for(var it=0;it<le.length;it++)Ga(le[it],u);Object.freeze&&Object.freeze(le)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ga(le,u)}if(Be.call(E,"key")){var Ve=$(u),ae=Object.keys(E).filter(function(_u){return _u!=="key"}),Hn=ae.length>0?"{key: someKey, "+ae.join(": ..., ")+": ...}":"{key: someKey}";if(!Ua[Ve+Hn]){var Nu=ae.length>0?"{"+ae.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+A+">.")}return E}}function Ja(u,E){{if(!u._store||u._store.validated||u.key!=null)return;u._store.validated=!0;var A=ku(E);if(qa[A])return;qa[A]=!0;var j="";u&&u._owner&&u._owner!==zr.current&&(j=" It was passed a child from "+$(u._owner.type)+"."),at(u),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',A,j),at(null)}}function Za(u,E){{if(typeof u!="object")return;if(Br(u))for(var A=0;A<u.length;A++){var j=u[A];Vr(j)&&Ja(j,E)}else if(Vr(u))u._store&&(u._store.validated=!0);else if(u){var V=y(u);if(typeof V=="function"&&V!==u.entries)for(var G=V.call(u),B;!(B=G.next()).done;)Vr(B.value)&&Ja(B.value,E)}}}function Du(u){{var E=u.type;if(E==null||typeof E=="string")return;var A;if(typeof E=="function")A=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===c||E.$$typeof===p))A=E.propTypes;else return;if(A){var j=$(E);yu(A,u.props,"prop",j,u)}else if(E.PropTypes!==void 0&&!Wr){Wr=!0;var V=$(E);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",V||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Mu(u){{for(var E=Object.keys(u.props),A=0;A<E.length;A++){var j=E[A];if(j!=="children"&&j!=="key"){at(u),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",j),at(null);break}}u.ref!==null&&(at(u),w("Invalid attribute `ref` supplied to `React.Fragment`."),at(null))}}var Qa={};function ei(u,E,A,j,V,G){{var B=H(u);if(!B){var F="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(F+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ne=_u();ne?F+=ne:F+=Xa();var q;u===null?q="null":Br(u)?q="array":u!==void 0&&u.$$typeof===t?(q="<"+($(u.type)||"Unknown")+" />",F=" Did you accidentally export a JSX literal instead of a component?"):q=typeof u,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",q,F)}var Z=Ou(u,E,A,V,G);if(Z==null)return Z;if(B){var le=E.children;if(le!==void 0)if(j)if(Br(le)){for(var it=0;it<le.length;it++)Za(le[it],u);Object.freeze&&Object.freeze(le)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Za(le,u)}if(We.call(E,"key")){var Ve=$(u),ae=Object.keys(E).filter(function(Bu){return Bu!=="key"}),Hr=ae.length>0?"{key: someKey, "+ae.join(": ..., ")+": ...}":"{key: someKey}";if(!Qa[Ve+Hr]){var $u=ae.length>0?"{"+ae.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Hn,Ve,Nu,Ve),Ua[Ve+Hn]=!0}}return u===r?Ru(Z):Cu(Z),Z}}function Pu(u,E,A){return Ya(u,E,A,!0)}function Au(u,E,A){return Ya(u,E,A,!1)}var Tu=Au,Ou=Pu;lt.Fragment=r,lt.jsx=Tu,lt.jsxs=Ou}()),lt}var qn;function qa(){return qn||(qn=1,process.env.NODE_ENV==="production"?gt.exports=Ka():gt.exports=Xa()),gt.exports}var v=qa();function Jn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Zn(...e){return t=>{let n=!1;const r=e.map(o=>{const a=Jn(o,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let o=0;o<r.length;o++){const a=r[o];typeof a=="function"?a():Jn(e[o],null)}}}}function ce(...e){return l.useCallback(Zn(...e),e)}var ye=l.forwardRef((e,t)=>{const{children:n,...r}=e,o=l.Children.toArray(n),a=o.find(Ja);if(a){const i=a.props.children,s=o.map(c=>c===a?l.Children.count(i)>1?l.Children.only(null):l.isValidElement(i)?i.props.children:null:c);return v.jsx(Yt,{...r,ref:t,children:l.isValidElement(i)?l.cloneElement(i,void 0,s):null})}return v.jsx(Yt,{...r,ref:t,children:n})});ye.displayName="Slot";var Yt=l.forwardRef((e,t)=>{const{children:n,...r}=e;if(l.isValidElement(n)){const o=Qa(n),a=Za(r,n.props);return n.type!==l.Fragment&&(a.ref=t?Zn(t,o):o),l.cloneElement(n,a)}return l.Children.count(n)>1?l.Children.only(null):null});Yt.displayName="SlotClone";var Qn=({children:e})=>v.jsx(v.Fragment,{children:e});function Ja(e){return l.isValidElement(e)&&e.type===Qn}function Za(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...s)=>{a(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function Qa(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 er(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=er(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=er(e))&&(r&&(r+=" "),r+=t);return r}const nr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rr=tr,Kt=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return rr(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(d=>{const f=n==null?void 0:n[d],p=a==null?void 0:a[d];if(f===null)return null;const h=nr(f)||nr(p);return o[d][h]}),s=n&&Object.entries(n).reduce((d,f)=>{let[p,h]=f;return h===void 0||(d[p]=h),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:p,className:h,...g}=f;return Object.entries(g).every(b=>{let[m,y]=b;return Array.isArray(y)?y.includes({...a,...s}[m]):{...a,...s}[m]===y})?[...d,p,h]:d},[]);return rr(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)},Xt="-",ei=e=>{const t=ni(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const s=i.split(Xt);return s[0]===""&&s.length!==1&&s.shift(),or(s,t)||ti(i)},getConflictingClassGroupIds:(i,s)=>{const c=n[i]||[];return s&&r[i]?[...c,...r[i]]:c}}},or=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?or(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Xt);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},ar=/^\[(.+)\]$/,ti=e=>{if(ar.test(e)){const t=ar.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ni=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)qt(n[o],r,o,t);return r},qt=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:ir(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(ri(o)){qt(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,i])=>{qt(i,ir(t,a),n,r)})})},ir=(e,t)=>{let n=e;return t.split(Xt).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},ri=e=>e.isThemeGetter,oi=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=r.get(a))!==void 0)return o(a,i),i},set(a,i){n.has(a)?n.set(a,i):o(a,i)}}},Jt="!",Zt=":",ai=Zt.length,ii=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const a=[];let i=0,s=0,c=0,d;for(let b=0;b<o.length;b++){let m=o[b];if(i===0&&s===0){if(m===Zt){a.push(o.slice(c,b)),c=b+ai;continue}if(m==="/"){d=b;continue}}m==="["?i++:m==="]"?i--:m==="("?s++:m===")"&&s--}const f=a.length===0?o:o.substring(c),p=si(f),h=p!==f,g=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:g}};if(t){const o=t+Zt,a=r;r=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=a=>n({className:a,parseClassName:o})}return r},si=e=>e.endsWith(Jt)?e.substring(0,e.length-1):e.startsWith(Jt)?e.substring(1):e,li=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let a=[];return r.forEach(i=>{i[0]==="["||t[i]?(o.push(...a.sort(),i),a=[]):a.push(i)}),o.push(...a.sort()),o}},ci=e=>({cache:oi(e.cacheSize),parseClassName:ii(e),sortModifiers:li(e),...ei(e)}),ui=/\s+/,di=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(ui);let c="";for(let d=s.length-1;d>=0;d-=1){const f=s[d],{isExternal:p,modifiers:h,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:m}=n(f);if(p){c=f+(c.length>0?" "+c:c);continue}let y=!!m,x=r(y?b.substring(0,m):b);if(!x){if(!y){c=f+(c.length>0?" "+c:c);continue}if(x=r(b),!x){c=f+(c.length>0?" "+c:c);continue}y=!1}const w=a(h).join(":"),C=g?w+Jt:w,R=C+x;if(i.includes(R))continue;i.push(R);const P=o(x,y);for(let S=0;S<P.length;++S){const T=P[S];i.push(C+T)}c=f+(c.length>0?" "+c:c)}return c};function fi(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=sr(t))&&(r&&(r+=" "),r+=n);return r}const sr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=sr(e[r]))&&(n&&(n+=" "),n+=t);return n};function pi(e,...t){let n,r,o,a=i;function i(c){const d=t.reduce((f,p)=>p(f),e());return n=ci(d),r=n.cache.get,o=n.cache.set,a=s,s(c)}function s(c){const d=r(c);if(d)return d;const f=di(c,n);return o(c,f),f}return function(){return a(fi.apply(null,arguments))}}const Q=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},lr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,cr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,mi=/^\d+\/\d+$/,gi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hi=/\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$/,vi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,bi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>mi.test(e),L=e=>!!e&&!Number.isNaN(Number(e)),ke=e=>!!e&&Number.isInteger(Number(e)),ur=e=>e.endsWith("%")&&L(e.slice(0,-1)),Ce=e=>gi.test(e),xi=()=>!0,wi=e=>hi.test(e)&&!vi.test(e),Qt=()=>!1,Ei=e=>bi.test(e),Si=e=>yi.test(e),Ci=e=>!O(e)&&!N(e),Ri=e=>Ge(e,pr,Qt),O=e=>lr.test(e),De=e=>Ge(e,mr,wi),en=e=>Ge(e,Ii,L),Pi=e=>Ge(e,dr,Qt),Ai=e=>Ge(e,fr,Si),Ti=e=>Ge(e,Qt,Ei),N=e=>cr.test(e),ht=e=>Ue(e,mr),Oi=e=>Ue(e,Li),Ni=e=>Ue(e,dr),_i=e=>Ue(e,pr),ki=e=>Ue(e,fr),Di=e=>Ue(e,Fi,!0),Ge=(e,t,n)=>{const r=lr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ue=(e,t,n=!1)=>{const r=cr.exec(e);return r?r[1]?t(r[1]):n:!1},dr=e=>e==="position",Mi=new Set(["image","url"]),fr=e=>Mi.has(e),ji=new Set(["length","size","percentage"]),pr=e=>ji.has(e),mr=e=>e==="length",Ii=e=>e==="number",Li=e=>e==="family-name",Fi=e=>e==="shadow",$i=pi(()=>{const e=Q("color"),t=Q("font"),n=Q("text"),r=Q("font-weight"),o=Q("tracking"),a=Q("leading"),i=Q("breakpoint"),s=Q("container"),c=Q("spacing"),d=Q("radius"),f=Q("shadow"),p=Q("inset-shadow"),h=Q("drop-shadow"),g=Q("blur"),b=Q("perspective"),m=Q("aspect"),y=Q("ease"),x=Q("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],S=()=>[N,O,c],T=()=>[He,"full","auto",...S()],B=()=>[ke,"none","subgrid",N,O],U=()=>["auto",{span:["full",ke,N,O]},N,O],H=()=>[ke,"auto",N,O],J=()=>["auto","min","max","fr",N,O],X=()=>["start","end","center","between","around","evenly","stretch","baseline"],$=()=>["start","end","center","stretch"],I=()=>["auto",...S()],Y=()=>[He,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],k=()=>[e,N,O],K=()=>[ur,De],_=()=>["","none","full",d,N,O],W=()=>["",L,ht,De],ee=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Le=()=>["","none",g,N,O],Fe=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",N,O],Ne=()=>["none",L,N,O],_e=()=>["none",L,N,O],Ee=()=>[L,N,O],pe=()=>[He,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ce],breakpoint:[Ce],color:[xi],container:[Ce],"drop-shadow":[Ce],ease:["in","out","in-out"],font:[Ci],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ce],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ce],shadow:[Ce],spacing:["px",L],text:[Ce],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",He,O,N,m]}],container:["container"],columns:[{columns:[L,O,N,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...C(),O,N]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[ke,"auto",N,O]}],basis:[{basis:[He,"full","auto",s,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[L,He,"auto","initial","none",O]}],grow:[{grow:["",L,N,O]}],shrink:[{shrink:["",L,N,O]}],order:[{order:[ke,"first","last","none",N,O]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...X(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...X()]}],"align-items":[{items:[...$(),"baseline"]}],"align-self":[{self:["auto",...$(),"baseline"]}],"place-content":[{"place-content":X()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],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":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],w:[{w:[s,"screen",...Y()]}],"min-w":[{"min-w":[s,"screen","none",...Y()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...Y()]}],h:[{h:["screen",...Y()]}],"min-h":[{"min-h":["screen","none",...Y()]}],"max-h":[{"max-h":["screen",...Y()]}],"font-size":[{text:["base",n,ht,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,N,en]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ur,O]}],"font-family":[{font:[Oi,O,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,N,O]}],"line-clamp":[{"line-clamp":[L,"none",N,en]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":["none",N,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",N,O]}],"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:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[L,"from-font","auto",N,De]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[L,"auto",N,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N,O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...C(),Ni,Pi]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",_i,Ri]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ke,N,O],radial:["",N,O],conic:[ke,N,O]},ki,Ai]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"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:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[L,N,O]}],"outline-w":[{outline:["",L,ht,De]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",f,Di,Ti]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",N,O,p]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[L,De]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":k()}],opacity:[{opacity:[L,N,O]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],filter:[{filter:["","none",N,O]}],blur:[{blur:Le()}],brightness:[{brightness:[L,N,O]}],contrast:[{contrast:[L,N,O]}],"drop-shadow":[{"drop-shadow":["","none",h,N,O]}],grayscale:[{grayscale:["",L,N,O]}],"hue-rotate":[{"hue-rotate":[L,N,O]}],invert:[{invert:["",L,N,O]}],saturate:[{saturate:[L,N,O]}],sepia:[{sepia:["",L,N,O]}],"backdrop-filter":[{"backdrop-filter":["","none",N,O]}],"backdrop-blur":[{"backdrop-blur":Le()}],"backdrop-brightness":[{"backdrop-brightness":[L,N,O]}],"backdrop-contrast":[{"backdrop-contrast":[L,N,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",L,N,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,N,O]}],"backdrop-invert":[{"backdrop-invert":["",L,N,O]}],"backdrop-opacity":[{"backdrop-opacity":[L,N,O]}],"backdrop-saturate":[{"backdrop-saturate":[L,N,O]}],"backdrop-sepia":[{"backdrop-sepia":["",L,N,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",N,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[L,"initial",N,O]}],ease:[{ease:["linear","initial",y,N,O]}],delay:[{delay:[L,N,O]}],animate:[{animate:["none",x,N,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,N,O]}],"perspective-origin":[{"perspective-origin":Fe()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[N,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:Fe()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"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",N,O]}],"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":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",N,O]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[L,ht,De,en]}],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-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],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:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}});function j(...e){return $i(tr(e))}const zi=Kt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),tn=l.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const i=r?ye:"button";return v.jsx(i,{className:j(zi({variant:t,size:n,className:e})),ref:a,...o})});tn.displayName="Button";function oe(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 Wi(e,t){const n=l.createContext(t),r=a=>{const{children:i,...s}=a,c=l.useMemo(()=>s,Object.values(s));return v.jsx(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(a){const i=l.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,o]}function nn(e,t=[]){let n=[];function r(a,i){const s=l.createContext(i),c=n.length;n=[...n,i];const d=p=>{var x;const{scope:h,children:g,...b}=p,m=((x=h==null?void 0:h[e])==null?void 0:x[c])||s,y=l.useMemo(()=>b,Object.values(b));return v.jsx(m.Provider,{value:y,children:g})};d.displayName=a+"Provider";function f(p,h){var m;const g=((m=h==null?void 0:h[e])==null?void 0:m[c])||s,b=l.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=n.map(i=>l.createContext(i));return function(s){const c=(s==null?void 0:s[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,Bi(o,...t)]}function Bi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=r.reduce((s,{useScope:c,scopeName:d})=>{const p=c(a)[`__scope${d}`];return{...s,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Me=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},Vi=l.useId||(()=>{}),Hi=0;function vt(e){const[t,n]=l.useState(Vi());return Me(()=>{n(r=>r??String(Hi++))},[e]),e||(t?`radix-${t}`:"")}function Re(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function gr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Gi({defaultProp:t,onChange:n}),a=e!==void 0,i=a?e:r,s=Re(n),c=l.useCallback(d=>{if(a){const p=typeof d=="function"?d(e):d;p!==e&&s(p)}else o(d)},[a,e,o,s]);return[i,c]}function Gi({defaultProp:e,onChange:t}){const n=l.useState(e),[r]=n,o=l.useRef(r),a=Re(t);return l.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}var Ui=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ne=Ui.reduce((e,t)=>{const n=l.forwardRef((r,o)=>{const{asChild:a,...i}=r,s=a?ye:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(s,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Yi(e,t){e&&Yn.flushSync(()=>e.dispatchEvent(t))}function Ki(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e);l.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 Xi="DismissableLayer",rn="dismissableLayer.update",qi="dismissableLayer.pointerDownOutside",Ji="dismissableLayer.focusOutside",hr,vr=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),on=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,d=l.useContext(vr),[f,p]=l.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),b=ce(t,T=>p(T)),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(y),w=f?m.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,R=w>=x,P=es(T=>{const B=T.target,U=[...d.branches].some(H=>H.contains(B));!R||U||(o==null||o(T),i==null||i(T),T.defaultPrevented||s==null||s())},h),S=ts(T=>{const B=T.target;[...d.branches].some(H=>H.contains(B))||(a==null||a(T),i==null||i(T),T.defaultPrevented||s==null||s())},h);return Ki(T=>{w===d.layers.size-1&&(r==null||r(T),!T.defaultPrevented&&s&&(T.preventDefault(),s()))},h),l.useEffect(()=>{if(f)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(hr=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),br(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=hr)}},[f,h,n,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),br())},[f,d]),l.useEffect(()=>{const T=()=>g({});return document.addEventListener(rn,T),()=>document.removeEventListener(rn,T)},[]),v.jsx(ne.div,{...c,ref:b,style:{pointerEvents:C?R?"auto":"none":void 0,...e.style},onFocusCapture:oe(e.onFocusCapture,S.onFocusCapture),onBlurCapture:oe(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:oe(e.onPointerDownCapture,P.onPointerDownCapture)})});on.displayName=Xi;var Zi="DismissableLayerBranch",Qi=l.forwardRef((e,t)=>{const n=l.useContext(vr),r=l.useRef(null),o=ce(t,r);return l.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),v.jsx(ne.div,{...e,ref:o})});Qi.displayName=Zi;function es(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=s=>{if(s.target&&!r.current){let c=function(){yr(qi,n,d,{discrete:!0})};const d={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ts(e,t=globalThis==null?void 0:globalThis.document){const n=Re(e),r=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!r.current&&yr(Ji,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function br(){const e=new CustomEvent(rn);document.dispatchEvent(e)}function yr(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Yi(o,a):o.dispatchEvent(a)}var an="focusScope.autoFocusOnMount",sn="focusScope.autoFocusOnUnmount",xr={bubbles:!1,cancelable:!0},ns="FocusScope",wr=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=l.useState(null),d=Re(o),f=Re(a),p=l.useRef(null),h=ce(t,m=>c(m)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let m=function(C){if(g.paused||!s)return;const R=C.target;s.contains(R)?p.current=R:Pe(p.current,{select:!0})},y=function(C){if(g.paused||!s)return;const R=C.relatedTarget;R!==null&&(s.contains(R)||Pe(p.current,{select:!0}))},x=function(C){if(document.activeElement===document.body)for(const P of C)P.removedNodes.length>0&&Pe(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const w=new MutationObserver(x);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),w.disconnect()}}},[r,s,g.paused]),l.useEffect(()=>{if(s){Cr.add(g);const m=document.activeElement;if(!s.contains(m)){const x=new CustomEvent(an,xr);s.addEventListener(an,d),s.dispatchEvent(x),x.defaultPrevented||(rs(ls(Er(s)),{select:!0}),document.activeElement===m&&Pe(s))}return()=>{s.removeEventListener(an,d),setTimeout(()=>{const x=new CustomEvent(sn,xr);s.addEventListener(sn,f),s.dispatchEvent(x),x.defaultPrevented||Pe(m??document.body,{select:!0}),s.removeEventListener(sn,f),Cr.remove(g)},0)}}},[s,d,f,g]);const b=l.useCallback(m=>{if(!n&&!r||g.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(y&&x){const w=m.currentTarget,[C,R]=os(w);C&&R?!m.shiftKey&&x===R?(m.preventDefault(),n&&Pe(C,{select:!0})):m.shiftKey&&x===C&&(m.preventDefault(),n&&Pe(R,{select:!0})):x===w&&m.preventDefault()}},[n,r,g.paused]);return v.jsx(ne.div,{tabIndex:-1,...i,ref:h,onKeyDown:b})});wr.displayName=ns;function rs(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Pe(r,{select:t}),document.activeElement!==n)return}function os(e){const t=Er(e),n=Sr(t,e),r=Sr(t.reverse(),e);return[n,r]}function Er(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 Sr(e,t){for(const n of e)if(!as(n,{upTo:t}))return n}function as(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 is(e){return e instanceof HTMLInputElement&&"select"in e}function Pe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&is(e)&&t&&e.select()}}var Cr=ss();function ss(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Rr(e,t),e.unshift(t)},remove(t){var n;e=Rr(e,t),(n=e[0])==null||n.resume()}}}function Rr(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ls(e){return e.filter(t=>t.tagName!=="A")}var cs="Portal",ln=l.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,a]=l.useState(!1);Me(()=>a(!0),[]);const i=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Gn.createPortal(v.jsx(ne.div,{...r,ref:t}),i):null});ln.displayName=cs;function us(e,t){return l.useReducer((n,r)=>t[n][r]??n,e)}var Ye=e=>{const{present:t,children:n}=e,r=ds(t),o=typeof n=="function"?n({present:r.isPresent}):l.Children.only(n),a=ce(r.ref,fs(o));return typeof n=="function"||r.isPresent?l.cloneElement(o,{ref:a}):null};Ye.displayName="Presence";function ds(e){const[t,n]=l.useState(),r=l.useRef({}),o=l.useRef(e),a=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=us(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=bt(r.current);a.current=s==="mounted"?d:"none"},[s]),Me(()=>{const d=r.current,f=o.current;if(f!==e){const h=a.current,g=bt(d);e?c("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Me(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=g=>{const m=bt(r.current).includes(g.animationName);if(g.target===t&&m&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},h=g=>{g.target===t&&(a.current=bt(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function bt(e){return(e==null?void 0:e.animationName)||"none"}function fs(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 cn=0;function ps(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pr()),document.body.insertAdjacentElement("beforeend",e[1]??Pr()),cn++,()=>{cn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cn--}},[])}function Pr(){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 me=function(){return me=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},me.apply(this,arguments)};function Ar(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 ms(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var yt="right-scroll-bar-position",xt="width-before-scroll-bar",gs="with-scroll-bars-hidden",hs="--removed-body-scroll-bar-size";function un(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function vs(e,t){var n=te.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 bs=typeof window<"u"?l.useLayoutEffect:l.useEffect,Tr=new WeakMap;function ys(e,t){var n=vs(null,function(r){return e.forEach(function(o){return un(o,r)})});return bs(function(){var r=Tr.get(n);if(r){var o=new Set(r),a=new Set(e),i=n.current;o.forEach(function(s){a.has(s)||un(s,null)}),a.forEach(function(s){o.has(s)||un(s,i)})}Tr.set(n,e)},[e]),n}function xs(e){return e}function ws(e,t){t===void 0&&(t=xs);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,r);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(r=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){r=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var c=function(){var f=i;i=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),n}}}};return o}function Es(e){e===void 0&&(e={});var t=ws(null);return t.options=me({async:!0,ssr:!1},e),t}var Or=function(e){var t=e.sideCar,n=Ar(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 l.createElement(r,me({},n))};Or.isSideCarExport=!0;function Ss(e,t){return e.useMedium(t),Or}var Nr=Es(),dn=function(){},wt=l.forwardRef(function(e,t){var n=l.useRef(null),r=l.useState({onScrollCapture:dn,onWheelCapture:dn,onTouchMoveCapture:dn}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,h=e.sideCar,g=e.noIsolation,b=e.inert,m=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,C=Ar(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=h,P=ys([n,t]),S=me(me({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(R,{sideCar:Nr,removeScrollBar:d,shards:p,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!m,lockRef:n,gapMode:w}),i?l.cloneElement(l.Children.only(s),me(me({},S),{ref:P})):l.createElement(x,me({},S,{className:c,ref:P}),s))});wt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},wt.classNames={fullWidth:xt,zeroRight:yt};var Cs=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Rs(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Cs();return t&&e.setAttribute("nonce",t),e}function Ps(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function As(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ts=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Rs())&&(Ps(t,n),As(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Os=function(){var e=Ts();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},_r=function(){var e=Os(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ns={left:0,top:0,right:0,gap:0},fn=function(e){return parseInt(e||"",10)||0},_s=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[fn(n),fn(r),fn(o)]},ks=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ns;var t=_s(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])}},Ds=_r(),Ke="data-scroll-locked",Ms=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
31
- .`.concat(gs,` {
32
- overflow: hidden `).concat(r,`;
33
- padding-right: `).concat(s,"px ").concat(r,`;
30
+ <%s key={someKey} {...props} />`,Hr,Ve,$u,Ve),Qa[Ve+Hr]=!0}}return u===n?Mu(Z):Du(Z),Z}}function ju(u,E,A){return ei(u,E,A,!0)}function Iu(u,E,A){return ei(u,E,A,!1)}var Lu=Iu,Fu=ju;lt.Fragment=n,lt.jsx=Lu,lt.jsxs=Fu}()),lt}var qr;function ni(){return qr||(qr=1,process.env.NODE_ENV==="production"?gt.exports=ti():gt.exports=ri()),gt.exports}var h=ni();function Jr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Zr(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Jr(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():Jr(e[o],null)}}}}function ce(...e){return l.useCallback(Zr(...e),e)}var me=l.forwardRef((e,t)=>{const{children:r,...n}=e,o=l.Children.toArray(r),a=o.find(oi);if(a){const i=a.props.children,s=o.map(c=>c===a?l.Children.count(i)>1?l.Children.only(null):l.isValidElement(i)?i.props.children:null:c);return h.jsx(Kt,{...n,ref:t,children:l.isValidElement(i)?l.cloneElement(i,void 0,s):null})}return h.jsx(Kt,{...n,ref:t,children:r})});me.displayName="Slot";var Kt=l.forwardRef((e,t)=>{const{children:r,...n}=e;if(l.isValidElement(r)){const o=ii(r),a=ai(n,r.props);return r.type!==l.Fragment&&(a.ref=t?Zr(t,o):o),l.cloneElement(r,a)}return l.Children.count(r)>1?l.Children.only(null):null});Kt.displayName="SlotClone";var Qr=({children:e})=>h.jsx(h.Fragment,{children:e});function oi(e){return l.isValidElement(e)&&e.type===Qr}function ai(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{a(...s),o(...s)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ii(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 en(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=en(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function tn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=en(e))&&(n&&(n+=" "),n+=t);return n}const rn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,nn=tn,Xt=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return nn(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(d=>{const f=r==null?void 0:r[d],p=a==null?void 0:a[d];if(f===null)return null;const v=rn(f)||rn(p);return o[d][v]}),s=r&&Object.entries(r).reduce((d,f)=>{let[p,v]=f;return v===void 0||(d[p]=v),d},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,f)=>{let{class:p,className:v,...g}=f;return Object.entries(g).every(b=>{let[m,y]=b;return Array.isArray(y)?y.includes({...a,...s}[m]):{...a,...s}[m]===y})?[...d,p,v]:d},[]);return nn(e,i,c,r==null?void 0:r.class,r==null?void 0:r.className)},qt="-",si=e=>{const t=ci(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const s=i.split(qt);return s[0]===""&&s.length!==1&&s.shift(),on(s,t)||li(i)},getConflictingClassGroupIds:(i,s)=>{const c=r[i]||[];return s&&n[i]?[...c,...n[i]]:c}}},on=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?on(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(qt);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},an=/^\[(.+)\]$/,li=e=>{if(an.test(e)){const t=an.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ci=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Jt(r[o],n,o,t);return n},Jt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:sn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(ui(o)){Jt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{Jt(i,sn(t,a),r,n)})})},sn=(e,t)=>{let r=e;return t.split(qt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},ui=e=>e.isThemeGetter,di=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)}}},Zt="!",Qt=":",fi=Qt.length,pi=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,s=0,c=0,d;for(let b=0;b<o.length;b++){let m=o[b];if(i===0&&s===0){if(m===Qt){a.push(o.slice(c,b)),c=b+fi;continue}if(m==="/"){d=b;continue}}m==="["?i++:m==="]"?i--:m==="("?s++:m===")"&&s--}const f=a.length===0?o:o.substring(c),p=mi(f),v=p!==f,g=d&&d>c?d-c:void 0;return{modifiers:a,hasImportantModifier:v,baseClassName:p,maybePostfixModifierPosition:g}};if(t){const o=t+Qt,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},mi=e=>e.endsWith(Zt)?e.substring(0,e.length-1):e.startsWith(Zt)?e.substring(1):e,gi=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}},hi=e=>({cache:di(e.cacheSize),parseClassName:pi(e),sortModifiers:gi(e),...si(e)}),vi=/\s+/,bi=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(vi);let c="";for(let d=s.length-1;d>=0;d-=1){const f=s[d],{isExternal:p,modifiers:v,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:m}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let y=!!m,x=n(y?b.substring(0,m):b);if(!x){if(!y){c=f+(c.length>0?" "+c:c);continue}if(x=n(b),!x){c=f+(c.length>0?" "+c:c);continue}y=!1}const w=a(v).join(":"),C=g?w+Zt:w,R=C+x;if(i.includes(R))continue;i.push(R);const P=o(x,y);for(let S=0;S<P.length;++S){const T=P[S];i.push(C+T)}c=f+(c.length>0?" "+c:c)}return c};function yi(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ln(t))&&(n&&(n+=" "),n+=r);return n}const ln=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ln(e[n]))&&(r&&(r+=" "),r+=t);return r};function xi(e,...t){let r,n,o,a=i;function i(c){const d=t.reduce((f,p)=>p(f),e());return r=hi(d),n=r.cache.get,o=r.cache.set,a=s,s(c)}function s(c){const d=n(c);if(d)return d;const f=bi(c,r);return o(c,f),f}return function(){return a(yi.apply(null,arguments))}}const Q=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},cn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,un=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wi=/^\d+\/\d+$/,Ei=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Si=/\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$/,Ci=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ri=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,He=e=>wi.test(e),L=e=>!!e&&!Number.isNaN(Number(e)),ke=e=>!!e&&Number.isInteger(Number(e)),dn=e=>e.endsWith("%")&&L(e.slice(0,-1)),Ce=e=>Ei.test(e),Ai=()=>!0,Ti=e=>Si.test(e)&&!Ci.test(e),er=()=>!1,Ni=e=>Ri.test(e),Oi=e=>Pi.test(e),_i=e=>!N(e)&&!O(e),ki=e=>Ge(e,mn,er),N=e=>cn.test(e),De=e=>Ge(e,gn,Ti),tr=e=>Ge(e,Vi,L),Di=e=>Ge(e,fn,er),Mi=e=>Ge(e,pn,Oi),ji=e=>Ge(e,er,Ni),O=e=>un.test(e),ht=e=>Ue(e,gn),Ii=e=>Ue(e,Hi),Li=e=>Ue(e,fn),Fi=e=>Ue(e,mn),$i=e=>Ue(e,pn),Bi=e=>Ue(e,Gi,!0),Ge=(e,t,r)=>{const n=cn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ue=(e,t,r=!1)=>{const n=un.exec(e);return n?n[1]?t(n[1]):r:!1},fn=e=>e==="position",zi=new Set(["image","url"]),pn=e=>zi.has(e),Wi=new Set(["length","size","percentage"]),mn=e=>Wi.has(e),gn=e=>e==="length",Vi=e=>e==="number",Hi=e=>e==="family-name",Gi=e=>e==="shadow",Ui=xi(()=>{const e=Q("color"),t=Q("font"),r=Q("text"),n=Q("font-weight"),o=Q("tracking"),a=Q("leading"),i=Q("breakpoint"),s=Q("container"),c=Q("spacing"),d=Q("radius"),f=Q("shadow"),p=Q("inset-shadow"),v=Q("drop-shadow"),g=Q("blur"),b=Q("perspective"),m=Q("aspect"),y=Q("ease"),x=Q("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],S=()=>[O,N,c],T=()=>[He,"full","auto",...S()],W=()=>[ke,"none","subgrid",O,N],U=()=>["auto",{span:["full",ke,O,N]},O,N],H=()=>[ke,"auto",O,N],J=()=>["auto","min","max","fr",O,N],X=()=>["start","end","center","between","around","evenly","stretch","baseline"],$=()=>["start","end","center","stretch"],I=()=>["auto",...S()],Y=()=>[He,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],D=()=>[e,O,N],K=()=>[dn,De],_=()=>["","none","full",d,O,N],z=()=>["",L,ht,De],ee=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Le=()=>["","none",g,O,N],Fe=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O,N],Oe=()=>["none",L,O,N],_e=()=>["none",L,O,N],Ee=()=>[L,O,N],pe=()=>[He,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ce],breakpoint:[Ce],color:[Ai],container:[Ce],"drop-shadow":[Ce],ease:["in","out","in-out"],font:[_i],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ce],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ce],shadow:[Ce],spacing:["px",L],text:[Ce],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",He,N,O,m]}],container:["container"],columns:[{columns:[L,N,O,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...C(),N,O]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[ke,"auto",O,N]}],basis:[{basis:[He,"full","auto",s,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[L,He,"auto","initial","none",N]}],grow:[{grow:["",L,O,N]}],shrink:[{shrink:["",L,O,N]}],order:[{order:[ke,"first","last","none",O,N]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...X(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...X()]}],"align-items":[{items:[...$(),"baseline"]}],"align-self":[{self:["auto",...$(),"baseline"]}],"place-content":[{"place-content":X()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],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":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],w:[{w:[s,"screen",...Y()]}],"min-w":[{"min-w":[s,"screen","none",...Y()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...Y()]}],h:[{h:["screen",...Y()]}],"min-h":[{"min-h":["screen","none",...Y()]}],"max-h":[{"max-h":["screen",...Y()]}],"font-size":[{text:["base",r,ht,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,O,tr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dn,N]}],"font-family":[{font:[Ii,N,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,O,N]}],"line-clamp":[{"line-clamp":[L,"none",O,tr]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":["none",O,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[L,"from-font","auto",O,De]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[L,"auto",O,N]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O,N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...C(),Li,Di]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Fi,ki]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ke,O,N],radial:["",O,N],conic:[ke,O,N]},$i,Mi]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"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:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[L,O,N]}],"outline-w":[{outline:["",L,ht,De]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",f,Bi,ji]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",O,N,p]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[L,De]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":D()}],opacity:[{opacity:[L,O,N]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none",O,N]}],blur:[{blur:Le()}],brightness:[{brightness:[L,O,N]}],contrast:[{contrast:[L,O,N]}],"drop-shadow":[{"drop-shadow":["","none",v,O,N]}],grayscale:[{grayscale:["",L,O,N]}],"hue-rotate":[{"hue-rotate":[L,O,N]}],invert:[{invert:["",L,O,N]}],saturate:[{saturate:[L,O,N]}],sepia:[{sepia:["",L,O,N]}],"backdrop-filter":[{"backdrop-filter":["","none",O,N]}],"backdrop-blur":[{"backdrop-blur":Le()}],"backdrop-brightness":[{"backdrop-brightness":[L,O,N]}],"backdrop-contrast":[{"backdrop-contrast":[L,O,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",L,O,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,O,N]}],"backdrop-invert":[{"backdrop-invert":["",L,O,N]}],"backdrop-opacity":[{"backdrop-opacity":[L,O,N]}],"backdrop-saturate":[{"backdrop-saturate":[L,O,N]}],"backdrop-sepia":[{"backdrop-sepia":["",L,O,N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[L,"initial",O,N]}],ease:[{ease:["linear","initial",y,O,N]}],delay:[{delay:[L,O,N]}],animate:[{animate:["none",x,O,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,O,N]}],"perspective-origin":[{"perspective-origin":Fe()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[O,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:Fe()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"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",O,N]}],"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":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",O,N]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[L,ht,De,tr]}],stroke:[{stroke:["none",...D()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],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:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}});function M(...e){return Ui(tn(e))}const Yi=Xt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),rr=l.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},a)=>{const i=n?me:"button";return h.jsx(i,{className:M(Yi({variant:t,size:r,className:e})),ref:a,...o})});rr.displayName="Button";function oe(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 Ki(e,t){const r=l.createContext(t),n=a=>{const{children:i,...s}=a,c=l.useMemo(()=>s,Object.values(s));return h.jsx(r.Provider,{value:c,children:i})};n.displayName=e+"Provider";function o(a){const i=l.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 nr(e,t=[]){let r=[];function n(a,i){const s=l.createContext(i),c=r.length;r=[...r,i];const d=p=>{var x;const{scope:v,children:g,...b}=p,m=((x=v==null?void 0:v[e])==null?void 0:x[c])||s,y=l.useMemo(()=>b,Object.values(b));return h.jsx(m.Provider,{value:y,children:g})};d.displayName=a+"Provider";function f(p,v){var m;const g=((m=v==null?void 0:v[e])==null?void 0:m[c])||s,b=l.useContext(g);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return[d,f]}const o=()=>{const a=r.map(i=>l.createContext(i));return function(s){const c=(s==null?void 0:s[e])||a;return l.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[n,Xi(o,...t)]}function Xi(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((s,{useScope:c,scopeName:d})=>{const p=c(a)[`__scope${d}`];return{...s,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var Me=globalThis!=null&&globalThis.document?l.useLayoutEffect:()=>{},qi=l.useId||(()=>{}),Ji=0;function vt(e){const[t,r]=l.useState(qi());return Me(()=>{r(n=>n??String(Ji++))},[e]),e||(t?`radix-${t}`:"")}function Re(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function hn({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=Zi({defaultProp:t,onChange:r}),a=e!==void 0,i=a?e:n,s=Re(r),c=l.useCallback(d=>{if(a){const p=typeof d=="function"?d(e):d;p!==e&&s(p)}else o(d)},[a,e,o,s]);return[i,c]}function Zi({defaultProp:e,onChange:t}){const r=l.useState(e),[n]=r,o=l.useRef(n),a=Re(t);return l.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}var Qi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],re=Qi.reduce((e,t)=>{const r=l.forwardRef((n,o)=>{const{asChild:a,...i}=n,s=a?me:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(s,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function es(e,t){e&&Yr.flushSync(()=>e.dispatchEvent(t))}function ts(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var rs="DismissableLayer",or="dismissableLayer.update",ns="dismissableLayer.pointerDownOutside",os="dismissableLayer.focusOutside",vn,bn=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ar=l.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,d=l.useContext(bn),[f,p]=l.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=l.useState({}),b=ce(t,T=>p(T)),m=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),x=m.indexOf(y),w=f?m.indexOf(f):-1,C=d.layersWithOutsidePointerEventsDisabled.size>0,R=w>=x,P=ss(T=>{const W=T.target,U=[...d.branches].some(H=>H.contains(W));!R||U||(o==null||o(T),i==null||i(T),T.defaultPrevented||s==null||s())},v),S=ls(T=>{const W=T.target;[...d.branches].some(H=>H.contains(W))||(a==null||a(T),i==null||i(T),T.defaultPrevented||s==null||s())},v);return ts(T=>{w===d.layers.size-1&&(n==null||n(T),!T.defaultPrevented&&s&&(T.preventDefault(),s()))},v),l.useEffect(()=>{if(f)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(vn=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),yn(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=vn)}},[f,v,r,d]),l.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),yn())},[f,d]),l.useEffect(()=>{const T=()=>g({});return document.addEventListener(or,T),()=>document.removeEventListener(or,T)},[]),h.jsx(re.div,{...c,ref:b,style:{pointerEvents:C?R?"auto":"none":void 0,...e.style},onFocusCapture:oe(e.onFocusCapture,S.onFocusCapture),onBlurCapture:oe(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:oe(e.onPointerDownCapture,P.onPointerDownCapture)})});ar.displayName=rs;var as="DismissableLayerBranch",is=l.forwardRef((e,t)=>{const r=l.useContext(bn),n=l.useRef(null),o=ce(t,n);return l.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),h.jsx(re.div,{...e,ref:o})});is.displayName=as;function ss(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let c=function(){xn(ns,r,d,{discrete:!0})};const d={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function ls(e,t=globalThis==null?void 0:globalThis.document){const r=Re(e),n=l.useRef(!1);return l.useEffect(()=>{const o=a=>{a.target&&!n.current&&xn(os,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 yn(){const e=new CustomEvent(or);document.dispatchEvent(e)}function xn(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?es(o,a):o.dispatchEvent(a)}var ir="focusScope.autoFocusOnMount",sr="focusScope.autoFocusOnUnmount",wn={bubbles:!1,cancelable:!0},cs="FocusScope",En=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,c]=l.useState(null),d=Re(o),f=Re(a),p=l.useRef(null),v=ce(t,m=>c(m)),g=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let m=function(C){if(g.paused||!s)return;const R=C.target;s.contains(R)?p.current=R:Pe(p.current,{select:!0})},y=function(C){if(g.paused||!s)return;const R=C.relatedTarget;R!==null&&(s.contains(R)||Pe(p.current,{select:!0}))},x=function(C){if(document.activeElement===document.body)for(const P of C)P.removedNodes.length>0&&Pe(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);const w=new MutationObserver(x);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),w.disconnect()}}},[n,s,g.paused]),l.useEffect(()=>{if(s){Rn.add(g);const m=document.activeElement;if(!s.contains(m)){const x=new CustomEvent(ir,wn);s.addEventListener(ir,d),s.dispatchEvent(x),x.defaultPrevented||(us(gs(Sn(s)),{select:!0}),document.activeElement===m&&Pe(s))}return()=>{s.removeEventListener(ir,d),setTimeout(()=>{const x=new CustomEvent(sr,wn);s.addEventListener(sr,f),s.dispatchEvent(x),x.defaultPrevented||Pe(m??document.body,{select:!0}),s.removeEventListener(sr,f),Rn.remove(g)},0)}}},[s,d,f,g]);const b=l.useCallback(m=>{if(!r&&!n||g.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,x=document.activeElement;if(y&&x){const w=m.currentTarget,[C,R]=ds(w);C&&R?!m.shiftKey&&x===R?(m.preventDefault(),r&&Pe(C,{select:!0})):m.shiftKey&&x===C&&(m.preventDefault(),r&&Pe(R,{select:!0})):x===w&&m.preventDefault()}},[r,n,g.paused]);return h.jsx(re.div,{tabIndex:-1,...i,ref:v,onKeyDown:b})});En.displayName=cs;function us(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Pe(n,{select:t}),document.activeElement!==r)return}function ds(e){const t=Sn(e),r=Cn(t,e),n=Cn(t.reverse(),e);return[r,n]}function Sn(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 Cn(e,t){for(const r of e)if(!fs(r,{upTo:t}))return r}function fs(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 ps(e){return e instanceof HTMLInputElement&&"select"in e}function Pe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&ps(e)&&t&&e.select()}}var Rn=ms();function ms(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Pn(e,t),e.unshift(t)},remove(t){var r;e=Pn(e,t),(r=e[0])==null||r.resume()}}}function Pn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function gs(e){return e.filter(t=>t.tagName!=="A")}var hs="Portal",lr=l.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[o,a]=l.useState(!1);Me(()=>a(!0),[]);const i=r||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Gr.createPortal(h.jsx(re.div,{...n,ref:t}),i):null});lr.displayName=hs;function vs(e,t){return l.useReducer((r,n)=>t[r][n]??r,e)}var Ye=e=>{const{present:t,children:r}=e,n=bs(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),a=ce(n.ref,ys(o));return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:a}):null};Ye.displayName="Presence";function bs(e){const[t,r]=l.useState(),n=l.useRef({}),o=l.useRef(e),a=l.useRef("none"),i=e?"mounted":"unmounted",[s,c]=vs(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=bt(n.current);a.current=s==="mounted"?d:"none"},[s]),Me(()=>{const d=n.current,f=o.current;if(f!==e){const v=a.current,g=bt(d);e?c("MOUNT"):g==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&v!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Me(()=>{if(t){let d;const f=t.ownerDocument.defaultView??window,p=g=>{const m=bt(n.current).includes(g.animationName);if(g.target===t&&m&&(c("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",d=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},v=g=>{g.target===t&&(a.current=bt(n.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(d),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function bt(e){return(e==null?void 0:e.animationName)||"none"}function ys(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 cr=0;function xs(){l.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??An()),document.body.insertAdjacentElement("beforeend",e[1]??An()),cr++,()=>{cr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cr--}},[])}function An(){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 ge=function(){return ge=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},ge.apply(this,arguments)};function Tn(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 ws(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var yt="right-scroll-bar-position",xt="width-before-scroll-bar",Es="with-scroll-bars-hidden",Ss="--removed-body-scroll-bar-size";function ur(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Cs(e,t){var r=te.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 Rs=typeof window<"u"?l.useLayoutEffect:l.useEffect,Nn=new WeakMap;function Ps(e,t){var r=Cs(null,function(n){return e.forEach(function(o){return ur(o,n)})});return Rs(function(){var n=Nn.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||ur(s,null)}),a.forEach(function(s){o.has(s)||ur(s,i)})}Nn.set(r,e)},[e]),r}function As(e){return e}function Ts(e,t){t===void 0&&(t=As);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(a),i=r}var c=function(){var f=i;i=[],f.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){i.push(f),d()},filter:function(f){return i=i.filter(f),r}}}};return o}function Ns(e){e===void 0&&(e={});var t=Ts(null);return t.options=ge({async:!0,ssr:!1},e),t}var On=function(e){var t=e.sideCar,r=Tn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return l.createElement(n,ge({},r))};On.isSideCarExport=!0;function Os(e,t){return e.useMedium(t),On}var _n=Ns(),dr=function(){},wt=l.forwardRef(function(e,t){var r=l.useRef(null),n=l.useState({onScrollCapture:dr,onWheelCapture:dr,onTouchMoveCapture:dr}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,v=e.sideCar,g=e.noIsolation,b=e.inert,m=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,C=Tn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=v,P=Ps([r,t]),S=ge(ge({},C),o);return l.createElement(l.Fragment,null,f&&l.createElement(R,{sideCar:_n,removeScrollBar:d,shards:p,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!m,lockRef:r,gapMode:w}),i?l.cloneElement(l.Children.only(s),ge(ge({},S),{ref:P})):l.createElement(x,ge({},S,{className:c,ref:P}),s))});wt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},wt.classNames={fullWidth:xt,zeroRight:yt};var _s=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ks(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_s();return t&&e.setAttribute("nonce",t),e}function Ds(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ms(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var js=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ks())&&(Ds(t,r),Ms(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Is=function(){var e=js();return function(t,r){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},kn=function(){var e=Is(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Ls={left:0,top:0,right:0,gap:0},fr=function(e){return parseInt(e||"",10)||0},Fs=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[fr(r),fr(n),fr(o)]},$s=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ls;var t=Fs(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])}},Bs=kn(),Ke="data-scroll-locked",zs=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
31
+ .`.concat(Es,` {
32
+ overflow: hidden `).concat(n,`;
33
+ padding-right: `).concat(s,"px ").concat(n,`;
34
34
  }
35
35
  body[`).concat(Ke,`] {
36
- overflow: hidden `).concat(r,`;
36
+ overflow: hidden `).concat(n,`;
37
37
  overscroll-behavior: contain;
38
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
38
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
39
39
  padding-left: `.concat(o,`px;
40
40
  padding-top: `).concat(a,`px;
41
41
  padding-right: `).concat(i,`px;
42
42
  margin-left:0;
43
43
  margin-top:0;
44
- margin-right: `).concat(s,"px ").concat(r,`;
45
- `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
44
+ margin-right: `).concat(s,"px ").concat(n,`;
45
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
46
46
  }
47
47
 
48
48
  .`).concat(yt,` {
49
- right: `).concat(s,"px ").concat(r,`;
49
+ right: `).concat(s,"px ").concat(n,`;
50
50
  }
51
51
 
52
52
  .`).concat(xt,` {
53
- margin-right: `).concat(s,"px ").concat(r,`;
53
+ margin-right: `).concat(s,"px ").concat(n,`;
54
54
  }
55
55
 
56
56
  .`).concat(yt," .").concat(yt,` {
57
- right: 0 `).concat(r,`;
57
+ right: 0 `).concat(n,`;
58
58
  }
59
59
 
60
60
  .`).concat(xt," .").concat(xt,` {
61
- margin-right: 0 `).concat(r,`;
61
+ margin-right: 0 `).concat(n,`;
62
62
  }
63
63
 
64
64
  body[`).concat(Ke,`] {
65
- `).concat(hs,": ").concat(s,`px;
65
+ `).concat(Ss,": ").concat(s,`px;
66
66
  }
67
- `)},kr=function(){var e=parseInt(document.body.getAttribute(Ke)||"0",10);return isFinite(e)?e:0},js=function(){l.useEffect(function(){return document.body.setAttribute(Ke,(kr()+1).toString()),function(){var e=kr()-1;e<=0?document.body.removeAttribute(Ke):document.body.setAttribute(Ke,e.toString())}},[])},Is=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;js();var a=l.useMemo(function(){return ks(o)},[o]);return l.createElement(Ds,{styles:Ms(a,!t,o,n?"":"!important")})},pn=!1;if(typeof window<"u")try{var Et=Object.defineProperty({},"passive",{get:function(){return pn=!0,!0}});window.addEventListener("test",Et,Et),window.removeEventListener("test",Et,Et)}catch{pn=!1}var Xe=pn?{passive:!1}:!1,Ls=function(e){return e.tagName==="TEXTAREA"},Dr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ls(e)&&n[t]==="visible")},Fs=function(e){return Dr(e,"overflowY")},$s=function(e){return Dr(e,"overflowX")},Mr=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=jr(e,r);if(o){var a=Ir(e,r),i=a[1],s=a[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zs=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Ws=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},jr=function(e,t){return e==="v"?Fs(t):$s(t)},Ir=function(e,t){return e==="v"?zs(t):Ws(t)},Bs=function(e,t){return e==="h"&&t==="rtl"?-1:1},Vs=function(e,t,n,r,o){var a=Bs(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,c=t.contains(s),d=!1,f=i>0,p=0,h=0;do{var g=Ir(e,s),b=g[0],m=g[1],y=g[2],x=m-y-a*b;(b||x)&&jr(e,s)&&(p+=x,h+=b),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(f&&Math.abs(p)<1||!f&&Math.abs(h)<1)&&(d=!0),d},St=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Lr=function(e){return[e.deltaX,e.deltaY]},Fr=function(e){return e&&"current"in e?e.current:e},Hs=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Gs=function(e){return`
67
+ `)},Dn=function(){var e=parseInt(document.body.getAttribute(Ke)||"0",10);return isFinite(e)?e:0},Ws=function(){l.useEffect(function(){return document.body.setAttribute(Ke,(Dn()+1).toString()),function(){var e=Dn()-1;e<=0?document.body.removeAttribute(Ke):document.body.setAttribute(Ke,e.toString())}},[])},Vs=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Ws();var a=l.useMemo(function(){return $s(o)},[o]);return l.createElement(Bs,{styles:zs(a,!t,o,r?"":"!important")})},pr=!1;if(typeof window<"u")try{var Et=Object.defineProperty({},"passive",{get:function(){return pr=!0,!0}});window.addEventListener("test",Et,Et),window.removeEventListener("test",Et,Et)}catch{pr=!1}var Xe=pr?{passive:!1}:!1,Hs=function(e){return e.tagName==="TEXTAREA"},Mn=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Hs(e)&&r[t]==="visible")},Gs=function(e){return Mn(e,"overflowY")},Us=function(e){return Mn(e,"overflowX")},jn=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=In(e,n);if(o){var a=Ln(e,n),i=a[1],s=a[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Ys=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Ks=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},In=function(e,t){return e==="v"?Gs(t):Us(t)},Ln=function(e,t){return e==="v"?Ys(t):Ks(t)},Xs=function(e,t){return e==="h"&&t==="rtl"?-1:1},qs=function(e,t,r,n,o){var a=Xs(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,c=t.contains(s),d=!1,f=i>0,p=0,v=0;do{var g=Ln(e,s),b=g[0],m=g[1],y=g[2],x=m-y-a*b;(b||x)&&In(e,s)&&(p+=x,v+=b),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(f&&Math.abs(p)<1||!f&&Math.abs(v)<1)&&(d=!0),d},St=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fn=function(e){return[e.deltaX,e.deltaY]},$n=function(e){return e&&"current"in e?e.current:e},Js=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Zs=function(e){return`
68
68
  .block-interactivity-`.concat(e,` {pointer-events: none;}
69
69
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
70
- `)},Us=0,qe=[];function Ys(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(Us++)[0],a=l.useState(_r)[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=ms([e.lockRef.current],(e.shards||[]).map(Fr),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var x=St(m),w=n.current,C="deltaX"in m?m.deltaX:w[0]-x[0],R="deltaY"in m?m.deltaY:w[1]-x[1],P,S=m.target,T=Math.abs(C)>Math.abs(R)?"h":"v";if("touches"in m&&T==="h"&&S.type==="range")return!1;var B=Mr(T,S);if(!B)return!0;if(B?P=T:(P=T==="v"?"h":"v",B=Mr(T,S)),!B)return!1;if(!r.current&&"changedTouches"in m&&(C||R)&&(r.current=P),!P)return!0;var U=r.current||P;return Vs(U,y,m,U==="h"?C:R)},[]),c=l.useCallback(function(m){var y=m;if(!(!qe.length||qe[qe.length-1]!==a)){var x="deltaY"in y?Lr(y):St(y),w=t.current.filter(function(P){return P.name===y.type&&(P.target===y.target||y.target===P.shadowParent)&&Hs(P.delta,x)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var C=(i.current.shards||[]).map(Fr).filter(Boolean).filter(function(P){return P.contains(y.target)}),R=C.length>0?s(y,C[0]):!i.current.noIsolation;R&&y.cancelable&&y.preventDefault()}}},[]),d=l.useCallback(function(m,y,x,w){var C={name:m,delta:y,target:x,should:w,shadowParent:Ks(x)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(R){return R!==C})},1)},[]),f=l.useCallback(function(m){n.current=St(m),r.current=void 0},[]),p=l.useCallback(function(m){d(m.type,Lr(m),m.target,s(m,e.lockRef.current))},[]),h=l.useCallback(function(m){d(m.type,St(m),m.target,s(m,e.lockRef.current))},[]);l.useEffect(function(){return qe.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,Xe),document.addEventListener("touchmove",c,Xe),document.addEventListener("touchstart",f,Xe),function(){qe=qe.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Xe),document.removeEventListener("touchmove",c,Xe),document.removeEventListener("touchstart",f,Xe)}},[]);var g=e.removeScrollBar,b=e.inert;return l.createElement(l.Fragment,null,b?l.createElement(a,{styles:Gs(o)}):null,g?l.createElement(Is,{gapMode:e.gapMode}):null)}function Ks(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Xs=Ss(Nr,Ys);var $r=l.forwardRef(function(e,t){return l.createElement(wt,me({},e,{ref:t,sideCar:Xs}))});$r.classNames=wt.classNames;var qs=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Je=new WeakMap,Ct=new WeakMap,Rt={},mn=0,zr=function(e){return e&&(e.host||zr(e.parentNode))},Js=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=zr(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})},Zs=function(e,t,n,r){var o=Js(t,Array.isArray(e)?e:[e]);Rt[n]||(Rt[n]=new WeakMap);var a=Rt[n],i=[],s=new Set,c=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(h){if(s.has(h))f(h);else try{var g=h.getAttribute(r),b=g!==null&&g!=="false",m=(Je.get(h)||0)+1,y=(a.get(h)||0)+1;Je.set(h,m),a.set(h,y),i.push(h),m===1&&b&&Ct.set(h,!0),y===1&&h.setAttribute(n,"true"),b||h.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",h,x)}})};return f(t),s.clear(),mn++,function(){i.forEach(function(p){var h=Je.get(p)-1,g=a.get(p)-1;Je.set(p,h),a.set(p,g),h||(Ct.has(p)||p.removeAttribute(r),Ct.delete(p)),g||p.removeAttribute(n)}),mn--,mn||(Je=new WeakMap,Je=new WeakMap,Ct=new WeakMap,Rt={})}},Qs=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=qs(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Zs(r,o,n,"aria-hidden")):function(){return null}},gn="Dialog",[Wr,Du]=nn(gn),[el,ue]=Wr(gn),Br=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=l.useRef(null),c=l.useRef(null),[d=!1,f]=gr({prop:r,defaultProp:o,onChange:a});return v.jsx(el,{scope:t,triggerRef:s,contentRef:c,contentId:vt(),titleId:vt(),descriptionId:vt(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:i,children:n})};Br.displayName=gn;var Vr="DialogTrigger",Hr=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(Vr,n),a=ce(t,o.triggerRef);return v.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bn(o.open),...r,ref:a,onClick:oe(e.onClick,o.onOpenToggle)})});Hr.displayName=Vr;var hn="DialogPortal",[tl,Gr]=Wr(hn,{forceMount:void 0}),Ur=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=ue(hn,t);return v.jsx(tl,{scope:t,forceMount:n,children:l.Children.map(r,i=>v.jsx(Ye,{present:n||a.open,children:v.jsx(ln,{asChild:!0,container:o,children:i})}))})};Ur.displayName=hn;var Pt="DialogOverlay",Yr=l.forwardRef((e,t)=>{const n=Gr(Pt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ue(Pt,e.__scopeDialog);return a.modal?v.jsx(Ye,{present:r||a.open,children:v.jsx(nl,{...o,ref:t})}):null});Yr.displayName=Pt;var nl=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(Pt,n);return v.jsx($r,{as:ye,allowPinchZoom:!0,shards:[o.contentRef],children:v.jsx(ne.div,{"data-state":bn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),je="DialogContent",Kr=l.forwardRef((e,t)=>{const n=Gr(je,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ue(je,e.__scopeDialog);return v.jsx(Ye,{present:r||a.open,children:a.modal?v.jsx(rl,{...o,ref:t}):v.jsx(ol,{...o,ref:t})})});Kr.displayName=je;var rl=l.forwardRef((e,t)=>{const n=ue(je,e.__scopeDialog),r=l.useRef(null),o=ce(t,n.contentRef,r);return l.useEffect(()=>{const a=r.current;if(a)return Qs(a)},[]),v.jsx(Xr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oe(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:oe(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:oe(e.onFocusOutside,a=>a.preventDefault())})}),ol=l.forwardRef((e,t)=>{const n=ue(je,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return v.jsx(Xr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),a.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;((d=n.triggerRef.current)==null?void 0:d.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Xr=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=ue(je,n),c=l.useRef(null),d=ce(t,c);return ps(),v.jsxs(v.Fragment,{children:[v.jsx(wr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:v.jsx(on,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":bn(s.open),...i,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(al,{titleId:s.titleId}),v.jsx(sl,{contentRef:c,descriptionId:s.descriptionId})]})]})}),vn="DialogTitle",qr=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(vn,n);return v.jsx(ne.h2,{id:o.titleId,...r,ref:t})});qr.displayName=vn;var Jr="DialogDescription",Zr=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(Jr,n);return v.jsx(ne.p,{id:o.descriptionId,...r,ref:t})});Zr.displayName=Jr;var Qr="DialogClose",eo=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ue(Qr,n);return v.jsx(ne.button,{type:"button",...r,ref:t,onClick:oe(e.onClick,()=>o.onOpenChange(!1))})});eo.displayName=Qr;function bn(e){return e?"open":"closed"}var to="DialogTitleWarning",[Mu,no]=Wi(to,{contentName:je,titleName:vn,docsSlug:"dialog"}),al=({titleId:e})=>{const t=no(to),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
70
+ `)},Qs=0,qe=[];function el(e){var t=l.useRef([]),r=l.useRef([0,0]),n=l.useRef(),o=l.useState(Qs++)[0],a=l.useState(kn)[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=ws([e.lockRef.current],(e.shards||[]).map($n),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=l.useCallback(function(m,y){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var x=St(m),w=r.current,C="deltaX"in m?m.deltaX:w[0]-x[0],R="deltaY"in m?m.deltaY:w[1]-x[1],P,S=m.target,T=Math.abs(C)>Math.abs(R)?"h":"v";if("touches"in m&&T==="h"&&S.type==="range")return!1;var W=jn(T,S);if(!W)return!0;if(W?P=T:(P=T==="v"?"h":"v",W=jn(T,S)),!W)return!1;if(!n.current&&"changedTouches"in m&&(C||R)&&(n.current=P),!P)return!0;var U=n.current||P;return qs(U,y,m,U==="h"?C:R)},[]),c=l.useCallback(function(m){var y=m;if(!(!qe.length||qe[qe.length-1]!==a)){var x="deltaY"in y?Fn(y):St(y),w=t.current.filter(function(P){return P.name===y.type&&(P.target===y.target||y.target===P.shadowParent)&&Js(P.delta,x)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var C=(i.current.shards||[]).map($n).filter(Boolean).filter(function(P){return P.contains(y.target)}),R=C.length>0?s(y,C[0]):!i.current.noIsolation;R&&y.cancelable&&y.preventDefault()}}},[]),d=l.useCallback(function(m,y,x,w){var C={name:m,delta:y,target:x,should:w,shadowParent:tl(x)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(R){return R!==C})},1)},[]),f=l.useCallback(function(m){r.current=St(m),n.current=void 0},[]),p=l.useCallback(function(m){d(m.type,Fn(m),m.target,s(m,e.lockRef.current))},[]),v=l.useCallback(function(m){d(m.type,St(m),m.target,s(m,e.lockRef.current))},[]);l.useEffect(function(){return qe.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",c,Xe),document.addEventListener("touchmove",c,Xe),document.addEventListener("touchstart",f,Xe),function(){qe=qe.filter(function(m){return m!==a}),document.removeEventListener("wheel",c,Xe),document.removeEventListener("touchmove",c,Xe),document.removeEventListener("touchstart",f,Xe)}},[]);var g=e.removeScrollBar,b=e.inert;return l.createElement(l.Fragment,null,b?l.createElement(a,{styles:Zs(o)}):null,g?l.createElement(Vs,{gapMode:e.gapMode}):null)}function tl(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const rl=Os(_n,el);var Bn=l.forwardRef(function(e,t){return l.createElement(wt,ge({},e,{ref:t,sideCar:rl}))});Bn.classNames=wt.classNames;var nl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Je=new WeakMap,Ct=new WeakMap,Rt={},mr=0,zn=function(e){return e&&(e.host||zn(e.parentNode))},ol=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=zn(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})},al=function(e,t,r,n){var o=ol(t,Array.isArray(e)?e:[e]);Rt[r]||(Rt[r]=new WeakMap);var a=Rt[r],i=[],s=new Set,c=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(v){if(s.has(v))f(v);else try{var g=v.getAttribute(n),b=g!==null&&g!=="false",m=(Je.get(v)||0)+1,y=(a.get(v)||0)+1;Je.set(v,m),a.set(v,y),i.push(v),m===1&&b&&Ct.set(v,!0),y===1&&v.setAttribute(r,"true"),b||v.setAttribute(n,"true")}catch(x){console.error("aria-hidden: cannot operate on ",v,x)}})};return f(t),s.clear(),mr++,function(){i.forEach(function(p){var v=Je.get(p)-1,g=a.get(p)-1;Je.set(p,v),a.set(p,g),v||(Ct.has(p)||p.removeAttribute(n),Ct.delete(p)),g||p.removeAttribute(r)}),mr--,mr||(Je=new WeakMap,Je=new WeakMap,Ct=new WeakMap,Rt={})}},il=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=nl(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),al(n,o,r,"aria-hidden")):function(){return null}},gr="Dialog",[Wn,Wu]=nr(gr),[sl,ue]=Wn(gr),Vn=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=l.useRef(null),c=l.useRef(null),[d=!1,f]=hn({prop:n,defaultProp:o,onChange:a});return h.jsx(sl,{scope:t,triggerRef:s,contentRef:c,contentId:vt(),titleId:vt(),descriptionId:vt(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:i,children:r})};Vn.displayName=gr;var Hn="DialogTrigger",Gn=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ue(Hn,r),a=ce(t,o.triggerRef);return h.jsx(re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":br(o.open),...n,ref:a,onClick:oe(e.onClick,o.onOpenToggle)})});Gn.displayName=Hn;var hr="DialogPortal",[ll,Un]=Wn(hr,{forceMount:void 0}),Yn=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=ue(hr,t);return h.jsx(ll,{scope:t,forceMount:r,children:l.Children.map(n,i=>h.jsx(Ye,{present:r||a.open,children:h.jsx(lr,{asChild:!0,container:o,children:i})}))})};Yn.displayName=hr;var Pt="DialogOverlay",Kn=l.forwardRef((e,t)=>{const r=Un(Pt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ue(Pt,e.__scopeDialog);return a.modal?h.jsx(Ye,{present:n||a.open,children:h.jsx(cl,{...o,ref:t})}):null});Kn.displayName=Pt;var cl=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ue(Pt,r);return h.jsx(Bn,{as:me,allowPinchZoom:!0,shards:[o.contentRef],children:h.jsx(re.div,{"data-state":br(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),je="DialogContent",Xn=l.forwardRef((e,t)=>{const r=Un(je,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=ue(je,e.__scopeDialog);return h.jsx(Ye,{present:n||a.open,children:a.modal?h.jsx(ul,{...o,ref:t}):h.jsx(dl,{...o,ref:t})})});Xn.displayName=je;var ul=l.forwardRef((e,t)=>{const r=ue(je,e.__scopeDialog),n=l.useRef(null),o=ce(t,r.contentRef,n);return l.useEffect(()=>{const a=n.current;if(a)return il(a)},[]),h.jsx(qn,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:oe(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:oe(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:oe(e.onFocusOutside,a=>a.preventDefault())})}),dl=l.forwardRef((e,t)=>{const r=ue(je,e.__scopeDialog),n=l.useRef(!1),o=l.useRef(!1);return h.jsx(qn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var i,s;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||(s=r.triggerRef.current)==null||s.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{var c,d;(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;((d=r.triggerRef.current)==null?void 0:d.contains(i))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),qn=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=ue(je,r),c=l.useRef(null),d=ce(t,c);return xs(),h.jsxs(h.Fragment,{children:[h.jsx(En,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:h.jsx(ar,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":br(s.open),...i,ref:d,onDismiss:()=>s.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(fl,{titleId:s.titleId}),h.jsx(ml,{contentRef:c,descriptionId:s.descriptionId})]})]})}),vr="DialogTitle",Jn=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ue(vr,r);return h.jsx(re.h2,{id:o.titleId,...n,ref:t})});Jn.displayName=vr;var Zn="DialogDescription",Qn=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ue(Zn,r);return h.jsx(re.p,{id:o.descriptionId,...n,ref:t})});Qn.displayName=Zn;var eo="DialogClose",to=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=ue(eo,r);return h.jsx(re.button,{type:"button",...n,ref:t,onClick:oe(e.onClick,()=>o.onOpenChange(!1))})});to.displayName=eo;function br(e){return e?"open":"closed"}var ro="DialogTitleWarning",[Vu,no]=Ki(ro,{contentName:je,titleName:vr,docsSlug:"dialog"}),fl=({titleId:e})=>{const t=no(ro),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
71
71
 
72
72
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
73
73
 
74
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},il="DialogDescriptionWarning",sl=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${no(il).contentName}}.`;return l.useEffect(()=>{var a;const o=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ro=Br,ll=Hr,oo=Ur,At=Yr,Tt=Kr,Ot=qr,Nt=Zr,yn=eo;/**
74
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return l.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},pl="DialogDescriptionWarning",ml=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${no(pl).contentName}}.`;return l.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},oo=Vn,gl=Gn,ao=Yn,At=Kn,Tt=Xn,Nt=Jn,Ot=Qn,yr=to;/**
75
75
  * @license lucide-react v0.482.0 - ISC
76
76
  *
77
77
  * This source code is licensed under the ISC license.
78
78
  * See the LICENSE file in the root directory of this source tree.
79
- */const cl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ao=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
79
+ */const hl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),io=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
80
80
  * @license lucide-react v0.482.0 - ISC
81
81
  *
82
82
  * This source code is licensed under the ISC license.
83
83
  * See the LICENSE file in the root directory of this source tree.
84
- */var ul={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"};/**
84
+ */var vl={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"};/**
85
85
  * @license lucide-react v0.482.0 - ISC
86
86
  *
87
87
  * This source code is licensed under the ISC license.
88
88
  * See the LICENSE file in the root directory of this source tree.
89
- */const dl=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},c)=>te.createElement("svg",{ref:c,...ul,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ao("lucide",o),...s},[...i.map(([d,f])=>te.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
89
+ */const bl=te.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},c)=>te.createElement("svg",{ref:c,...vl,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:io("lucide",o),...s},[...i.map(([d,f])=>te.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
90
90
  * @license lucide-react v0.482.0 - ISC
91
91
  *
92
92
  * This source code is licensed under the ISC license.
93
93
  * See the LICENSE file in the root directory of this source tree.
94
- */const io=(e,t)=>{const n=te.forwardRef(({className:r,...o},a)=>te.createElement(dl,{ref:a,iconNode:t,className:ao(`lucide-${cl(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
94
+ */const _t=(e,t)=>{const r=te.forwardRef(({className:n,...o},a)=>te.createElement(bl,{ref:a,iconNode:t,className:io(`lucide-${hl(e)}`,n),...o}));return r.displayName=`${e}`,r};/**
95
95
  * @license lucide-react v0.482.0 - ISC
96
96
  *
97
97
  * This source code is licensed under the ISC license.
98
98
  * See the LICENSE file in the root directory of this source tree.
99
- */const fl=io("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
99
+ */const yl=_t("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
100
100
  * @license lucide-react v0.482.0 - ISC
101
101
  *
102
102
  * This source code is licensed under the ISC license.
103
103
  * See the LICENSE file in the root directory of this source tree.
104
- */const so=io("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),pl=ro,ml=ll,lo=oo,gl=yn,xn=l.forwardRef(({className:e,...t},n)=>v.jsx(At,{ref:n,className:j("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));xn.displayName=At.displayName;const co=l.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(lo,{children:[v.jsx(xn,{}),v.jsxs(Tt,{ref:r,className:j("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,v.jsxs(yn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[v.jsx(so,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));co.displayName=Tt.displayName;const uo=({className:e,...t})=>v.jsx("div",{className:j("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});uo.displayName="DialogHeader";const fo=({className:e,...t})=>v.jsx("div",{className:j("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});fo.displayName="DialogFooter";const po=l.forwardRef(({className:e,...t},n)=>v.jsx(Ot,{ref:n,className:j("text-lg font-semibold leading-none tracking-tight",e),...t}));po.displayName=Ot.displayName;const mo=l.forwardRef(({className:e,...t},n)=>v.jsx(Nt,{ref:n,className:j("text-sm text-muted-foreground",e),...t}));mo.displayName=Nt.displayName;const wn=768;function hl(){const[e,t]=l.useState(void 0);return l.useEffect(()=>{const n=window.matchMedia(`(max-width: ${wn-1}px)`),r=()=>{t(window.innerWidth<wn)};return n.addEventListener("change",r),t(window.innerWidth<wn),()=>n.removeEventListener("change",r)},[]),!!e}const go=l.forwardRef(({className:e,type:t,...n},r)=>v.jsx("input",{type:t,className:j("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));go.displayName="Input";var vl="Separator",ho="horizontal",bl=["horizontal","vertical"],vo=l.forwardRef((e,t)=>{const{decorative:n,orientation:r=ho,...o}=e,a=yl(r)?r:ho,s=n?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return v.jsx(ne.div,{"data-orientation":a,...s,...o,ref:t})});vo.displayName=vl;function yl(e){return bl.includes(e)}var bo=vo;const yo=l.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>v.jsx(bo,{ref:o,decorative:n,orientation:t,className:j("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));yo.displayName=bo.displayName;const xl=ro,wl=oo,xo=l.forwardRef(({className:e,...t},n)=>v.jsx(At,{className:j("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));xo.displayName=At.displayName;const El=Kt("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),wo=l.forwardRef(({side:e="right",className:t,children:n,...r},o)=>v.jsxs(wl,{children:[v.jsx(xo,{}),v.jsxs(Tt,{ref:o,className:j(El({side:e}),t),...r,children:[v.jsxs(yn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[v.jsx(so,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));wo.displayName=Tt.displayName;const Eo=({className:e,...t})=>v.jsx("div",{className:j("flex flex-col space-y-2 text-center sm:text-left",e),...t});Eo.displayName="SheetHeader";const So=l.forwardRef(({className:e,...t},n)=>v.jsx(Ot,{ref:n,className:j("text-lg font-semibold text-foreground",e),...t}));So.displayName=Ot.displayName;const Co=l.forwardRef(({className:e,...t},n)=>v.jsx(Nt,{ref:n,className:j("text-sm text-muted-foreground",e),...t}));Co.displayName=Nt.displayName;function Ro({className:e,...t}){return v.jsx("div",{className:j("animate-pulse rounded-md bg-primary/10",e),...t})}const Sl=["top","right","bottom","left"],Ae=Math.min,ie=Math.max,_t=Math.round,kt=Math.floor,ge=e=>({x:e,y:e}),Cl={left:"right",right:"left",bottom:"top",top:"bottom"},Rl={start:"end",end:"start"};function En(e,t,n){return ie(e,Ae(t,n))}function xe(e,t){return typeof e=="function"?e(t):e}function we(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function Sn(e){return e==="x"?"y":"x"}function Cn(e){return e==="y"?"height":"width"}function Te(e){return["top","bottom"].includes(we(e))?"y":"x"}function Rn(e){return Sn(Te(e))}function Pl(e,t,n){n===void 0&&(n=!1);const r=Ze(e),o=Rn(e),a=Cn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Dt(i)),[i,Dt(i)]}function Al(e){const t=Dt(e);return[Pn(e),t,Pn(t)]}function Pn(e){return e.replace(/start|end/g,t=>Rl[t])}function Tl(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:i;default:return[]}}function Ol(e,t,n,r){const o=Ze(e);let a=Tl(we(e),n==="start",r);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Pn)))),a}function Dt(e){return e.replace(/left|right|bottom|top/g,t=>Cl[t])}function Nl(e){return{top:0,right:0,bottom:0,left:0,...e}}function Po(e){return typeof e!="number"?Nl(e):{top:e,right:e,bottom:e,left:e}}function Mt(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 Ao(e,t,n){let{reference:r,floating:o}=e;const a=Te(t),i=Rn(t),s=Cn(i),c=we(t),d=a==="y",f=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,h=r[s]/2-o[s]/2;let g;switch(c){case"top":g={x:f,y:r.y-o.height};break;case"bottom":g={x:f,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(Ze(t)){case"start":g[i]-=h*(n&&d?-1:1);break;case"end":g[i]+=h*(n&&d?-1:1);break}return g}const _l=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Ao(d,r,c),h=r,g={},b=0;for(let m=0;m<s.length;m++){const{name:y,fn:x}=s[m],{x:w,y:C,data:R,reset:P}=await x({x:f,y:p,initialPlacement:r,placement:h,strategy:o,middlewareData:g,rects:d,platform:i,elements:{reference:e,floating:t}});f=w??f,p=C??p,g={...g,[y]:{...g[y],...R}},P&&b<=50&&(b++,typeof P=="object"&&(P.placement&&(h=P.placement),P.rects&&(d=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:f,y:p}=Ao(d,h,c)),m=-1)}return{x:f,y:p,placement:h,strategy:o,middlewareData:g}};async function ct(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:g=0}=xe(t,e),b=Po(g),y=s[h?p==="floating"?"reference":"floating":p],x=Mt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(y)))==null||n?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:c})),w=p==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),R=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},P=Mt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:C,strategy:c}):w);return{top:(x.top-P.top+b.top)/R.y,bottom:(P.bottom-x.bottom+b.bottom)/R.y,left:(x.left-P.left+b.left)/R.x,right:(P.right-x.right+b.right)/R.x}}const kl=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:d,padding:f=0}=xe(e,t)||{};if(d==null)return{};const p=Po(f),h={x:n,y:r},g=Rn(o),b=Cn(g),m=await i.getDimensions(d),y=g==="y",x=y?"top":"left",w=y?"bottom":"right",C=y?"clientHeight":"clientWidth",R=a.reference[b]+a.reference[g]-h[g]-a.floating[b],P=h[g]-a.reference[g],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let T=S?S[C]:0;(!T||!await(i.isElement==null?void 0:i.isElement(S)))&&(T=s.floating[C]||a.floating[b]);const B=R/2-P/2,U=T/2-m[b]/2-1,H=Ae(p[x],U),J=Ae(p[w],U),X=H,$=T-m[b]-J,I=T/2-m[b]/2+B,Y=En(X,I,$),k=!c.arrow&&Ze(o)!=null&&I!==Y&&a.reference[b]/2-(I<X?H:J)-m[b]/2<0,K=k?I<X?I-X:I-$:0;return{[g]:h[g]+K,data:{[g]:Y,centerOffset:I-Y-K,...k&&{alignmentOffset:K}},reset:k}}}),Dl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:m=!0,...y}=xe(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const x=we(o),w=Te(s),C=we(s)===s,R=await(c.isRTL==null?void 0:c.isRTL(d.floating)),P=h||(C||!m?[Dt(s)]:Al(s)),S=b!=="none";!h&&S&&P.push(...Ol(s,m,b,R));const T=[s,...P],B=await ct(t,y),U=[];let H=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&U.push(B[x]),p){const I=Pl(o,i,R);U.push(B[I[0]],B[I[1]])}if(H=[...H,{placement:o,overflows:U}],!U.every(I=>I<=0)){var J,X;const I=(((J=a.flip)==null?void 0:J.index)||0)+1,Y=T[I];if(Y)return{data:{index:I,overflows:H},reset:{placement:Y}};let k=(X=H.filter(K=>K.overflows[0]<=0).sort((K,_)=>K.overflows[1]-_.overflows[1])[0])==null?void 0:X.placement;if(!k)switch(g){case"bestFit":{var $;const K=($=H.filter(_=>{if(S){const W=Te(_.placement);return W===w||W==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(W=>W>0).reduce((W,ee)=>W+ee,0)]).sort((_,W)=>_[1]-W[1])[0])==null?void 0:$[0];K&&(k=K);break}case"initialPlacement":k=s;break}if(o!==k)return{reset:{placement:k}}}return{}}}};function To(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Oo(e){return Sl.some(t=>e[t]>=0)}const Ml=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=xe(e,t);switch(r){case"referenceHidden":{const a=await ct(t,{...o,elementContext:"reference"}),i=To(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Oo(i)}}}case"escaped":{const a=await ct(t,{...o,altBoundary:!0}),i=To(a,n.floating);return{data:{escapedOffsets:i,escaped:Oo(i)}}}default:return{}}}}};async function jl(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=we(n),s=Ze(n),c=Te(n)==="y",d=["left","top"].includes(i)?-1:1,f=a&&c?-1:1,p=xe(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),c?{x:g*f,y:h*d}:{x:h*d,y:g*f}}const Il=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await jl(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},Ll=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:y=>{let{x,y:w}=y;return{x,y:w}}},...c}=xe(e,t),d={x:n,y:r},f=await ct(t,c),p=Te(we(o)),h=Sn(p);let g=d[h],b=d[p];if(a){const y=h==="y"?"top":"left",x=h==="y"?"bottom":"right",w=g+f[y],C=g-f[x];g=En(w,g,C)}if(i){const y=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=b+f[y],C=b-f[x];b=En(w,b,C)}const m=s.fn({...t,[h]:g,[p]:b});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:a,[p]:i}}}}}},Fl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:d=!0}=xe(e,t),f={x:n,y:r},p=Te(o),h=Sn(p);let g=f[h],b=f[p];const m=xe(s,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const C=h==="y"?"height":"width",R=a.reference[h]-a.floating[C]+y.mainAxis,P=a.reference[h]+a.reference[C]-y.mainAxis;g<R?g=R:g>P&&(g=P)}if(d){var x,w;const C=h==="y"?"width":"height",R=["top","left"].includes(we(o)),P=a.reference[p]-a.floating[C]+(R&&((x=i.offset)==null?void 0:x[p])||0)+(R?0:y.crossAxis),S=a.reference[p]+a.reference[C]+(R?0:((w=i.offset)==null?void 0:w[p])||0)-(R?y.crossAxis:0);b<P?b=P:b>S&&(b=S)}return{[h]:g,[p]:b}}}},$l=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...d}=xe(e,t),f=await ct(t,d),p=we(o),h=Ze(o),g=Te(o)==="y",{width:b,height:m}=a.floating;let y,x;p==="top"||p==="bottom"?(y=p,x=h===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(x=p,y=h==="end"?"top":"bottom");const w=m-f.top-f.bottom,C=b-f.left-f.right,R=Ae(m-f[y],w),P=Ae(b-f[x],C),S=!t.middlewareData.shift;let T=R,B=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(B=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=w),S&&!h){const H=ie(f.left,0),J=ie(f.right,0),X=ie(f.top,0),$=ie(f.bottom,0);g?B=b-2*(H!==0||J!==0?H+J:ie(f.left,f.right)):T=m-2*(X!==0||$!==0?X+$:ie(f.top,f.bottom))}await c({...t,availableWidth:B,availableHeight:T});const U=await i.getDimensions(s.floating);return b!==U.width||m!==U.height?{reset:{rects:!0}}:{}}}};function jt(){return typeof window<"u"}function Qe(e){return No(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function he(e){var t;return(t=(No(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function No(e){return jt()?e instanceof Node||e instanceof se(e).Node:!1}function de(e){return jt()?e instanceof Element||e instanceof se(e).Element:!1}function ve(e){return jt()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function _o(e){return!jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function ut(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function zl(e){return["table","td","th"].includes(Qe(e))}function It(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function An(e){const t=Tn(),n=de(e)?fe(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Wl(e){let t=Oe(e);for(;ve(t)&&!et(t);){if(An(t))return t;if(It(t))return null;t=Oe(t)}return null}function Tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(e){return["html","body","#document"].includes(Qe(e))}function fe(e){return se(e).getComputedStyle(e)}function Lt(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(Qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_o(e)&&e.host||he(e);return _o(t)?t.host:t}function ko(e){const t=Oe(e);return et(t)?e.ownerDocument?e.ownerDocument.body:e.body:ve(t)&&ut(t)?t:ko(t)}function dt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ko(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=se(o);if(a){const s=On(i);return t.concat(i,i.visualViewport||[],ut(o)?o:[],s&&n?dt(s):[])}return t.concat(o,dt(o,[],n))}function On(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Do(e){const t=fe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ve(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=_t(n)!==a||_t(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function Nn(e){return de(e)?e:e.contextElement}function tt(e){const t=Nn(e);if(!ve(t))return ge(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Do(t);let i=(a?_t(n.width):n.width)/r,s=(a?_t(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Bl=ge(0);function Mo(e){const t=se(e);return!Tn()||!t.visualViewport?Bl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vl(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==se(e)?!1:t}function Ie(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Nn(e);let i=ge(1);t&&(r?de(r)&&(i=tt(r)):i=tt(e));const s=Vl(a,n,r)?Mo(a):ge(0);let c=(o.left+s.x)/i.x,d=(o.top+s.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(a){const h=se(a),g=r&&de(r)?se(r):r;let b=h,m=On(b);for(;m&&r&&g!==b;){const y=tt(m),x=m.getBoundingClientRect(),w=fe(m),C=x.left+(m.clientLeft+parseFloat(w.paddingLeft))*y.x,R=x.top+(m.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,d*=y.y,f*=y.x,p*=y.y,c+=C,d+=R,b=se(m),m=On(b)}}return Mt({width:f,height:p,x:c,y:d})}function _n(e,t){const n=Lt(e).scrollLeft;return t?t.left+n:Ie(he(e)).left+n}function jo(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:_n(e,r)),a=r.top+t.scrollTop;return{x:o,y:a}}function Hl(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=he(r),s=t?It(t.floating):!1;if(r===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},d=ge(1);const f=ge(0),p=ve(r);if((p||!p&&!a)&&((Qe(r)!=="body"||ut(i))&&(c=Lt(r)),ve(r))){const g=Ie(r);d=tt(r),f.x=g.x+r.clientLeft,f.y=g.y+r.clientTop}const h=i&&!p&&!a?jo(i,c,!0):ge(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+f.x+h.x,y:n.y*d.y-c.scrollTop*d.y+f.y+h.y}}function Gl(e){return Array.from(e.getClientRects())}function Ul(e){const t=he(e),n=Lt(e),r=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+_n(e);const s=-n.scrollTop;return fe(r).direction==="rtl"&&(i+=ie(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}function Yl(e,t){const n=se(e),r=he(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const d=Tn();(!d||d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}function Kl(e,t){const n=Ie(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=ve(e)?tt(e):ge(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,d=r*a.y;return{width:i,height:s,x:c,y:d}}function Io(e,t,n){let r;if(t==="viewport")r=Yl(e,n);else if(t==="document")r=Ul(he(e));else if(de(t))r=Kl(t,n);else{const o=Mo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Mt(r)}function Lo(e,t){const n=Oe(e);return n===t||!de(n)||et(n)?!1:fe(n).position==="fixed"||Lo(n,t)}function Xl(e,t){const n=t.get(e);if(n)return n;let r=dt(e,[],!1).filter(s=>de(s)&&Qe(s)!=="body"),o=null;const a=fe(e).position==="fixed";let i=a?Oe(e):e;for(;de(i)&&!et(i);){const s=fe(i),c=An(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ut(i)&&!c&&Lo(e,i))?r=r.filter(f=>f!==i):o=s,i=Oe(i)}return t.set(e,r),r}function ql(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?It(t)?[]:Xl(t,this._c):[].concat(n),r],s=i[0],c=i.reduce((d,f)=>{const p=Io(t,f,o);return d.top=ie(p.top,d.top),d.right=Ae(p.right,d.right),d.bottom=Ae(p.bottom,d.bottom),d.left=ie(p.left,d.left),d},Io(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Jl(e){const{width:t,height:n}=Do(e);return{width:t,height:n}}function Zl(e,t,n){const r=ve(t),o=he(t),a=n==="fixed",i=Ie(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=ge(0);if(r||!r&&!a)if((Qe(t)!=="body"||ut(o))&&(s=Lt(t)),r){const h=Ie(t,!0,a,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else o&&(c.x=_n(o));const d=o&&!r&&!a?jo(o,s):ge(0),f=i.left+s.scrollLeft-c.x-d.x,p=i.top+s.scrollTop-c.y-d.y;return{x:f,y:p,width:i.width,height:i.height}}function kn(e){return fe(e).position==="static"}function Fo(e,t){if(!ve(e)||fe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return he(e)===n&&(n=n.ownerDocument.body),n}function $o(e,t){const n=se(e);if(It(e))return n;if(!ve(e)){let o=Oe(e);for(;o&&!et(o);){if(de(o)&&!kn(o))return o;o=Oe(o)}return n}let r=Fo(e,t);for(;r&&zl(r)&&kn(r);)r=Fo(r,t);return r&&et(r)&&kn(r)&&!An(r)?n:r||Wl(e)||n}const Ql=async function(e){const t=this.getOffsetParent||$o,n=this.getDimensions,r=await n(e.floating);return{reference:Zl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ec(e){return fe(e).direction==="rtl"}const tc={convertOffsetParentRelativeRectToViewportRelativeRect:Hl,getDocumentElement:he,getClippingRect:ql,getOffsetParent:$o,getElementRects:Ql,getClientRects:Gl,getDimensions:Jl,getScale:tt,isElement:de,isRTL:ec};function zo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nc(e,t){let n=null,r;const o=he(e);function a(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:h,height:g}=d;if(s||t(),!h||!g)return;const b=kt(p),m=kt(o.clientWidth-(f+h)),y=kt(o.clientHeight-(p+g)),x=kt(f),C={rootMargin:-b+"px "+-m+"px "+-y+"px "+-x+"px",threshold:ie(0,Ae(1,c))||1};let R=!0;function P(S){const T=S[0].intersectionRatio;if(T!==c){if(!R)return i();T?i(!1,T):r=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!zo(d,e.getBoundingClientRect())&&i(),R=!1}try{n=new IntersectionObserver(P,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,C)}n.observe(e)}return i(!0),a}function rc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=Nn(e),f=o||a?[...d?dt(d):[],...dt(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),a&&x.addEventListener("resize",n)});const p=d&&s?nc(d,n):null;let h=-1,g=null;i&&(g=new ResizeObserver(x=>{let[w]=x;w&&w.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),n()}),d&&!c&&g.observe(d),g.observe(t));let b,m=c?Ie(e):null;c&&y();function y(){const x=Ie(e);m&&!zo(m,x)&&n(),m=x,b=requestAnimationFrame(y)}return n(),()=>{var x;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),p==null||p(),(x=g)==null||x.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const oc=Il,ac=Ll,ic=Dl,sc=$l,lc=Ml,Wo=kl,cc=Fl,uc=(e,t,n)=>{const r=new Map,o={platform:tc,...n},a={...o.platform,_c:r};return _l(e,t,{...o,platform:a})};var Ft=typeof document<"u"?te.useLayoutEffect:te.useEffect;function $t(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(!$t(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!$t(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Bo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vo(e,t){const n=Bo(e);return Math.round(t*n)/n}function Dn(e){const t=l.useRef(e);return Ft(()=>{t.current=e}),t}function dc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=l.useState(r);$t(h,r)||g(r);const[b,m]=l.useState(null),[y,x]=l.useState(null),w=l.useCallback(_=>{_!==S.current&&(S.current=_,m(_))},[]),C=l.useCallback(_=>{_!==T.current&&(T.current=_,x(_))},[]),R=a||b,P=i||y,S=l.useRef(null),T=l.useRef(null),B=l.useRef(f),U=c!=null,H=Dn(c),J=Dn(o),X=Dn(d),$=l.useCallback(()=>{if(!S.current||!T.current)return;const _={placement:t,strategy:n,middleware:h};J.current&&(_.platform=J.current),uc(S.current,T.current,_).then(W=>{const ee={...W,isPositioned:X.current!==!1};I.current&&!$t(B.current,ee)&&(B.current=ee,Yn.flushSync(()=>{p(ee)}))})},[h,t,n,J,X]);Ft(()=>{d===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,p(_=>({..._,isPositioned:!1})))},[d]);const I=l.useRef(!1);Ft(()=>(I.current=!0,()=>{I.current=!1}),[]),Ft(()=>{if(R&&(S.current=R),P&&(T.current=P),R&&P){if(H.current)return H.current(R,P,$);$()}},[R,P,$,H,U]);const Y=l.useMemo(()=>({reference:S,floating:T,setReference:w,setFloating:C}),[w,C]),k=l.useMemo(()=>({reference:R,floating:P}),[R,P]),K=l.useMemo(()=>{const _={position:n,left:0,top:0};if(!k.floating)return _;const W=Vo(k.floating,f.x),ee=Vo(k.floating,f.y);return s?{..._,transform:"translate("+W+"px, "+ee+"px)",...Bo(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:ee}},[n,s,k.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:$,refs:Y,elements:k,floatingStyles:K}),[f,$,Y,k,K])}const fc=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?Wo({element:r.current,padding:o}).fn(n):{}:r?Wo({element:r,padding:o}).fn(n):{}}}},pc=(e,t)=>({...oc(e),options:[e,t]}),mc=(e,t)=>({...ac(e),options:[e,t]}),gc=(e,t)=>({...cc(e),options:[e,t]}),hc=(e,t)=>({...ic(e),options:[e,t]}),vc=(e,t)=>({...sc(e),options:[e,t]}),bc=(e,t)=>({...lc(e),options:[e,t]}),yc=(e,t)=>({...fc(e),options:[e,t]});var xc="Arrow",Ho=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return v.jsx(ne.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ho.displayName=xc;var wc=Ho;function Ec(e){const[t,n]=l.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 a=o[0];let i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,s=d.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Mn="Popper",[Go,Uo]=nn(Mn),[Sc,Yo]=Go(Mn),Ko=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return v.jsx(Sc,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ko.displayName=Mn;var Xo="PopperAnchor",qo=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Yo(Xo,n),i=l.useRef(null),s=ce(t,i);return l.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:v.jsx(ne.div,{...o,ref:s})});qo.displayName=Xo;var jn="PopperContent",[Cc,Rc]=Go(jn),Jo=l.forwardRef((e,t)=>{var pe,$e,rt,ze,Vt,mt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:b,...m}=e,y=Yo(jn,n),[x,w]=l.useState(null),C=ce(t,We=>w(We)),[R,P]=l.useState(null),S=Ec(R),T=(S==null?void 0:S.width)??0,B=(S==null?void 0:S.height)??0,U=r+(a!=="center"?"-"+a:""),H=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},J=Array.isArray(d)?d:[d],X=J.length>0,$={padding:H,boundary:J.filter(Ac),altBoundary:X},{refs:I,floatingStyles:Y,placement:k,isPositioned:K,middlewareData:_}=dc({strategy:"fixed",placement:U,whileElementsMounted:(...We)=>rc(...We,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[pc({mainAxis:o+B,alignmentAxis:i}),c&&mc({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?gc():void 0,...$}),c&&hc({...$}),vc({...$,apply:({elements:We,rects:Ht,availableWidth:ot,availableHeight:Be})=>{const{width:Gt,height:Ut}=Ht.reference,Se=We.floating.style;Se.setProperty("--radix-popper-available-width",`${ot}px`),Se.setProperty("--radix-popper-available-height",`${Be}px`),Se.setProperty("--radix-popper-anchor-width",`${Gt}px`),Se.setProperty("--radix-popper-anchor-height",`${Ut}px`)}}),R&&yc({element:R,padding:s}),Tc({arrowWidth:T,arrowHeight:B}),h&&bc({strategy:"referenceHidden",...$})]}),[W,ee]=ea(k),be=Re(b);Me(()=>{K&&(be==null||be())},[K,be]);const Le=(pe=_.arrow)==null?void 0:pe.x,Fe=($e=_.arrow)==null?void 0:$e.y,Ne=((rt=_.arrow)==null?void 0:rt.centerOffset)!==0,[_e,Ee]=l.useState();return Me(()=>{x&&Ee(window.getComputedStyle(x).zIndex)},[x]),v.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:K?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[(ze=_.transformOrigin)==null?void 0:ze.x,(Vt=_.transformOrigin)==null?void 0:Vt.y].join(" "),...((mt=_.hide)==null?void 0:mt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(Cc,{scope:n,placedSide:W,onArrowChange:P,arrowX:Le,arrowY:Fe,shouldHideArrow:Ne,children:v.jsx(ne.div,{"data-side":W,"data-align":ee,...m,ref:C,style:{...m.style,animation:K?void 0:"none"}})})})});Jo.displayName=jn;var Zo="PopperArrow",Pc={top:"bottom",right:"left",bottom:"top",left:"right"},Qo=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Rc(Zo,r),i=Pc[a.placedSide];return v.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:v.jsx(wc,{...o,ref:n,style:{...o.style,display:"block"}})})});Qo.displayName=Zo;function Ac(e){return e!==null}var Tc=e=>({name:"transformOrigin",options:e,fn(t){var y,x,w;const{placement:n,rects:r,middlewareData:o}=t,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,f]=ea(n),p={start:"0%",center:"50%",end:"100%"}[f],h=(((x=o.arrow)==null?void 0:x.x)??0)+s/2,g=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let b="",m="";return d==="bottom"?(b=i?p:`${h}px`,m=`${-c}px`):d==="top"?(b=i?p:`${h}px`,m=`${r.floating.height+c}px`):d==="right"?(b=`${-c}px`,m=i?p:`${g}px`):d==="left"&&(b=`${r.floating.width+c}px`,m=i?p:`${g}px`),{data:{x:b,y:m}}}});function ea(e){const[t,n="center"]=e.split("-");return[t,n]}var Oc=Ko,Nc=qo,_c=Jo,kc=Qo,Dc="VisuallyHidden",ta=l.forwardRef((e,t)=>v.jsx(ne.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ta.displayName=Dc;var Mc=ta,[zt,Lu]=nn("Tooltip",[Uo]),Wt=Uo(),na="TooltipProvider",jc=700,In="tooltip.open",[Ic,Ln]=zt(na),ra=e=>{const{__scopeTooltip:t,delayDuration:n=jc,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=l.useState(!0),c=l.useRef(!1),d=l.useRef(0);return l.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),v.jsx(Ic,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:l.useCallback(()=>{window.clearTimeout(d.current),s(!1)},[]),onClose:l.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(f=>{c.current=f},[]),disableHoverableContent:o,children:a})};ra.displayName=na;var Bt="Tooltip",[Lc,ft]=zt(Bt),oa=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,c=Ln(Bt,e.__scopeTooltip),d=Wt(t),[f,p]=l.useState(null),h=vt(),g=l.useRef(0),b=i??c.disableHoverableContent,m=s??c.delayDuration,y=l.useRef(!1),[x=!1,w]=gr({prop:r,defaultProp:o,onChange:T=>{T?(c.onOpen(),document.dispatchEvent(new CustomEvent(In))):c.onClose(),a==null||a(T)}}),C=l.useMemo(()=>x?y.current?"delayed-open":"instant-open":"closed",[x]),R=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,w(!0)},[w]),P=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),S=l.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,w(!0),g.current=0},m)},[m,w]);return l.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),v.jsx(Oc,{...d,children:v.jsx(Lc,{scope:t,contentId:h,open:x,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayed?S():R()},[c.isOpenDelayed,S,R]),onTriggerLeave:l.useCallback(()=>{b?P():(window.clearTimeout(g.current),g.current=0)},[P,b]),onOpen:R,onClose:P,disableHoverableContent:b,children:n})})};oa.displayName=Bt;var Fn="TooltipTrigger",aa=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ft(Fn,n),a=Ln(Fn,n),i=Wt(n),s=l.useRef(null),c=ce(t,s,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),v.jsx(Nc,{asChild:!0,...i,children:v.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:oe(e.onPointerMove,h=>{h.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:oe(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:oe(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:oe(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:oe(e.onBlur,o.onClose),onClick:oe(e.onClick,o.onClose)})})});aa.displayName=Fn;var $n="TooltipPortal",[Fc,$c]=zt($n,{forceMount:void 0}),ia=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,a=ft($n,t);return v.jsx(Fc,{scope:t,forceMount:n,children:v.jsx(Ye,{present:n||a.open,children:v.jsx(ln,{asChild:!0,container:o,children:r})})})};ia.displayName=$n;var nt="TooltipContent",sa=l.forwardRef((e,t)=>{const n=$c(nt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=ft(nt,e.__scopeTooltip);return v.jsx(Ye,{present:r||i.open,children:i.disableHoverableContent?v.jsx(la,{side:o,...a,ref:t}):v.jsx(zc,{side:o,...a,ref:t})})}),zc=l.forwardRef((e,t)=>{const n=ft(nt,e.__scopeTooltip),r=Ln(nt,e.__scopeTooltip),o=l.useRef(null),a=ce(t,o),[i,s]=l.useState(null),{trigger:c,onClose:d}=n,f=o.current,{onPointerInTransitChange:p}=r,h=l.useCallback(()=>{s(null),p(!1)},[p]),g=l.useCallback((b,m)=>{const y=b.currentTarget,x={x:b.clientX,y:b.clientY},w=Hc(x,y.getBoundingClientRect()),C=Gc(x,w),R=Uc(m.getBoundingClientRect()),P=Kc([...C,...R]);s(P),p(!0)},[p]);return l.useEffect(()=>()=>h(),[h]),l.useEffect(()=>{if(c&&f){const b=y=>g(y,f),m=y=>g(y,c);return c.addEventListener("pointerleave",b),f.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",m)}}},[c,f,g,h]),l.useEffect(()=>{if(i){const b=m=>{const y=m.target,x={x:m.clientX,y:m.clientY},w=(c==null?void 0:c.contains(y))||(f==null?void 0:f.contains(y)),C=!Yc(x,i);w?h():C&&(h(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,f,i,d,h]),v.jsx(la,{...e,ref:a})}),[Wc,Bc]=zt(Bt,{isInside:!1}),la=l.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,c=ft(nt,n),d=Wt(n),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(In,f),()=>document.removeEventListener(In,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=h=>{const g=h.target;g!=null&&g.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),v.jsx(on,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:v.jsxs(_c,{"data-state":c.stateAttribute,...d,...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:[v.jsx(Qn,{children:r}),v.jsx(Wc,{scope:n,isInside:!0,children:v.jsx(Mc,{id:c.contentId,role:"tooltip",children:o||r})})]})})});sa.displayName=nt;var ca="TooltipArrow",Vc=l.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Wt(n);return Bc(ca,n).isInside?null:v.jsx(kc,{...o,...r,ref:t})});Vc.displayName=ca;function Hc(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Gc(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 Uc(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 Yc(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a].x,c=t[a].y,d=t[i].x,f=t[i].y;c>r!=f>r&&n<(d-s)*(r-c)/(f-c)+s&&(o=!o)}return o}function Kc(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),Xc(t)}function Xc(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 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 n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.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 qc=ra,Jc=oa,Zc=aa,Qc=ia,ua=sa;const eu=qc,tu=Jc,nu=Zc,da=l.forwardRef(({className:e,sideOffset:t=4,...n},r)=>v.jsx(Qc,{children:v.jsx(ua,{ref:r,sideOffset:t,className:j("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs 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 origin-[--radix-tooltip-content-transform-origin]",e),...n})}));da.displayName=ua.displayName;const ru="sidebar_state",ou=60*60*24*7,au="16rem",iu="18rem",su="3rem",lu="b",fa=l.createContext(null);function pt(){const e=l.useContext(fa);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const pa=l.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:a,...i},s)=>{const c=hl(),[d,f]=l.useState(!1),[p,h]=l.useState(e),g=t??p,b=l.useCallback(w=>{const C=typeof w=="function"?w(g):w;n?n(C):h(C),document.cookie=`${ru}=${C}; path=/; max-age=${ou}`},[n,g]),m=l.useCallback(()=>c?f(w=>!w):b(w=>!w),[c,b,f]);l.useEffect(()=>{const w=C=>{C.key===lu&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),m())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[m]);const y=g?"expanded":"collapsed",x=l.useMemo(()=>({state:y,open:g,setOpen:b,isMobile:c,openMobile:d,setOpenMobile:f,toggleSidebar:m}),[y,g,b,c,d,f,m]);return v.jsx(fa.Provider,{value:x,children:v.jsx(eu,{delayDuration:0,children:v.jsx("div",{style:{"--sidebar-width":au,"--sidebar-width-icon":su,...o},className:j("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...i,children:a})})})});pa.displayName="SidebarProvider";const ma=l.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...a},i)=>{const{isMobile:s,state:c,openMobile:d,setOpenMobile:f}=pt();return n==="none"?v.jsx("div",{className:j("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:i,...a,children:o}):s?v.jsx(xl,{open:d,onOpenChange:f,...a,children:v.jsxs(wo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":iu},side:e,children:[v.jsxs(Eo,{className:"sr-only",children:[v.jsx(So,{children:"Sidebar"}),v.jsx(Co,{children:"Displays the mobile sidebar."})]}),v.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):v.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?n:"","data-variant":t,"data-side":e,children:[v.jsx("div",{className:j("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),v.jsx("div",{className:j("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:v.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});ma.displayName="Sidebar";const ga=l.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=pt();return v.jsxs(tn,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:j("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...n,children:[v.jsx(fl,{}),v.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ga.displayName="SidebarTrigger";const ha=l.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=pt();return v.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:j("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});ha.displayName="SidebarRail";const va=l.forwardRef(({className:e,...t},n)=>v.jsx("main",{ref:n,className:j("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));va.displayName="SidebarInset";const ba=l.forwardRef(({className:e,...t},n)=>v.jsx(go,{ref:n,"data-sidebar":"input",className:j("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ba.displayName="SidebarInput";const ya=l.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"header",className:j("flex flex-col gap-2 p-2",e),...t}));ya.displayName="SidebarHeader";const xa=l.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"footer",className:j("flex flex-col gap-2 p-2",e),...t}));xa.displayName="SidebarFooter";const wa=l.forwardRef(({className:e,...t},n)=>v.jsx(yo,{ref:n,"data-sidebar":"separator",className:j("mx-2 w-auto bg-sidebar-border",e),...t}));wa.displayName="SidebarSeparator";const Ea=l.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"content",className:j("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Ea.displayName="SidebarContent";const Sa=l.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"group",className:j("relative flex w-full min-w-0 flex-col p-2",e),...t}));Sa.displayName="SidebarGroup";const Ca=l.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?ye:"div";return v.jsx(o,{ref:r,"data-sidebar":"group-label",className:j("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});Ca.displayName="SidebarGroupLabel";const Ra=l.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?ye:"button";return v.jsx(o,{ref:r,"data-sidebar":"group-action",className:j("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});Ra.displayName="SidebarGroupAction";const Pa=l.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"group-content",className:j("w-full text-sm",e),...t}));Pa.displayName="SidebarGroupContent";const Aa=l.forwardRef(({className:e,...t},n)=>v.jsx("ul",{ref:n,"data-sidebar":"menu",className:j("flex w-full min-w-0 flex-col gap-1",e),...t}));Aa.displayName="SidebarMenu";const Ta=l.forwardRef(({className:e,...t},n)=>v.jsx("li",{ref:n,"data-sidebar":"menu-item",className:j("group/menu-item relative",e),...t}));Ta.displayName="SidebarMenuItem";const cu=Kt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Oa=l.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:a,...i},s)=>{const c=e?ye:"button",{isMobile:d,state:f}=pt(),p=v.jsx(c,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:j(cu({variant:n,size:r}),a),...i});return o?(typeof o=="string"&&(o={children:o}),v.jsxs(tu,{children:[v.jsx(nu,{asChild:!0,children:p}),v.jsx(da,{side:"right",align:"center",hidden:f!=="collapsed"||d,...o})]})):p});Oa.displayName="SidebarMenuButton";const Na=l.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const a=t?ye:"button";return v.jsx(a,{ref:o,"data-sidebar":"menu-action",className:j("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});Na.displayName="SidebarMenuAction";const _a=l.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:j("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));_a.displayName="SidebarMenuBadge";const ka=l.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=l.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return v.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:j("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&v.jsx(Ro,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),v.jsx(Ro,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});ka.displayName="SidebarMenuSkeleton";const Da=l.forwardRef(({className:e,...t},n)=>v.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:j("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Da.displayName="SidebarMenuSub";const Ma=l.forwardRef(({...e},t)=>v.jsx("li",{ref:t,...e}));Ma.displayName="SidebarMenuSubItem";const ja=l.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},a)=>{const i=e?ye:"a";return v.jsx(i,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:j("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o})});ja.displayName="SidebarMenuSubButton",M.Button=tn,M.Dialog=pl,M.DialogClose=gl,M.DialogContent=co,M.DialogDescription=mo,M.DialogFooter=fo,M.DialogHeader=uo,M.DialogOverlay=xn,M.DialogPortal=lo,M.DialogTitle=po,M.DialogTrigger=ml,M.Sidebar=ma,M.SidebarContent=Ea,M.SidebarFooter=xa,M.SidebarGroup=Sa,M.SidebarGroupAction=Ra,M.SidebarGroupContent=Pa,M.SidebarGroupLabel=Ca,M.SidebarHeader=ya,M.SidebarInput=ba,M.SidebarInset=va,M.SidebarMenu=Aa,M.SidebarMenuAction=Na,M.SidebarMenuBadge=_a,M.SidebarMenuButton=Oa,M.SidebarMenuItem=Ta,M.SidebarMenuSkeleton=ka,M.SidebarMenuSub=Da,M.SidebarMenuSubButton=ja,M.SidebarMenuSubItem=Ma,M.SidebarProvider=pa,M.SidebarRail=ha,M.SidebarSeparator=wa,M.SidebarTrigger=ga,M.useSidebar=pt,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})});
104
+ */const xl=_t("Ellipsis",[["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"}]]);/**
105
+ * @license lucide-react v0.482.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const wl=_t("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
110
+ * @license lucide-react v0.482.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const so=_t("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),El=oo,Sl=gl,lo=ao,Cl=yr,xr=l.forwardRef(({className:e,...t},r)=>h.jsx(At,{ref:r,className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));xr.displayName=At.displayName;const co=l.forwardRef(({className:e,children:t,...r},n)=>h.jsxs(lo,{children:[h.jsx(xr,{}),h.jsxs(Tt,{ref:n,className:M("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,h.jsxs(yr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[h.jsx(so,{className:"h-4 w-4"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));co.displayName=Tt.displayName;const uo=({className:e,...t})=>h.jsx("div",{className:M("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});uo.displayName="DialogHeader";const fo=({className:e,...t})=>h.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});fo.displayName="DialogFooter";const po=l.forwardRef(({className:e,...t},r)=>h.jsx(Nt,{ref:r,className:M("text-lg font-semibold leading-none tracking-tight",e),...t}));po.displayName=Nt.displayName;const mo=l.forwardRef(({className:e,...t},r)=>h.jsx(Ot,{ref:r,className:M("text-sm text-muted-foreground",e),...t}));mo.displayName=Ot.displayName;const wr=768;function Rl(){const[e,t]=l.useState(void 0);return l.useEffect(()=>{const r=window.matchMedia(`(max-width: ${wr-1}px)`),n=()=>{t(window.innerWidth<wr)};return r.addEventListener("change",n),t(window.innerWidth<wr),()=>r.removeEventListener("change",n)},[]),!!e}const go=l.forwardRef(({className:e,type:t,...r},n)=>h.jsx("input",{type:t,className:M("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));go.displayName="Input";var Pl="Separator",ho="horizontal",Al=["horizontal","vertical"],vo=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=ho,...o}=e,a=Tl(n)?n:ho,s=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return h.jsx(re.div,{"data-orientation":a,...s,...o,ref:t})});vo.displayName=Pl;function Tl(e){return Al.includes(e)}var bo=vo;const yo=l.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>h.jsx(bo,{ref:o,decorative:r,orientation:t,className:M("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));yo.displayName=bo.displayName;const Nl=oo,Ol=ao,xo=l.forwardRef(({className:e,...t},r)=>h.jsx(At,{className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:r}));xo.displayName=At.displayName;const _l=Xt("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),wo=l.forwardRef(({side:e="right",className:t,children:r,...n},o)=>h.jsxs(Ol,{children:[h.jsx(xo,{}),h.jsxs(Tt,{ref:o,className:M(_l({side:e}),t),...n,children:[h.jsxs(yr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[h.jsx(so,{className:"h-4 w-4"}),h.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));wo.displayName=Tt.displayName;const Eo=({className:e,...t})=>h.jsx("div",{className:M("flex flex-col space-y-2 text-center sm:text-left",e),...t});Eo.displayName="SheetHeader";const So=l.forwardRef(({className:e,...t},r)=>h.jsx(Nt,{ref:r,className:M("text-lg font-semibold text-foreground",e),...t}));So.displayName=Nt.displayName;const Co=l.forwardRef(({className:e,...t},r)=>h.jsx(Ot,{ref:r,className:M("text-sm text-muted-foreground",e),...t}));Co.displayName=Ot.displayName;function Ro({className:e,...t}){return h.jsx("div",{className:M("animate-pulse rounded-md bg-primary/10",e),...t})}const kl=["top","right","bottom","left"],Ae=Math.min,ie=Math.max,kt=Math.round,Dt=Math.floor,he=e=>({x:e,y:e}),Dl={left:"right",right:"left",bottom:"top",top:"bottom"},Ml={start:"end",end:"start"};function Er(e,t,r){return ie(e,Ae(t,r))}function xe(e,t){return typeof e=="function"?e(t):e}function we(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function Sr(e){return e==="x"?"y":"x"}function Cr(e){return e==="y"?"height":"width"}function Te(e){return["top","bottom"].includes(we(e))?"y":"x"}function Rr(e){return Sr(Te(e))}function jl(e,t,r){r===void 0&&(r=!1);const n=Ze(e),o=Rr(e),a=Cr(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Mt(i)),[i,Mt(i)]}function Il(e){const t=Mt(e);return[Pr(e),t,Pr(t)]}function Pr(e){return e.replace(/start|end/g,t=>Ml[t])}function Ll(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:i;default:return[]}}function Fl(e,t,r,n){const o=Ze(e);let a=Ll(we(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Pr)))),a}function Mt(e){return e.replace(/left|right|bottom|top/g,t=>Dl[t])}function $l(e){return{top:0,right:0,bottom:0,left:0,...e}}function Po(e){return typeof e!="number"?$l(e):{top:e,right:e,bottom:e,left:e}}function jt(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 Ao(e,t,r){let{reference:n,floating:o}=e;const a=Te(t),i=Rr(t),s=Cr(i),c=we(t),d=a==="y",f=n.x+n.width/2-o.width/2,p=n.y+n.height/2-o.height/2,v=n[s]/2-o[s]/2;let g;switch(c){case"top":g={x:f,y:n.y-o.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:p};break;case"left":g={x:n.x-o.width,y:p};break;default:g={x:n.x,y:n.y}}switch(Ze(t)){case"start":g[i]-=v*(r&&d?-1:1);break;case"end":g[i]+=v*(r&&d?-1:1);break}return g}const Bl=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:p}=Ao(d,n,c),v=n,g={},b=0;for(let m=0;m<s.length;m++){const{name:y,fn:x}=s[m],{x:w,y:C,data:R,reset:P}=await x({x:f,y:p,initialPlacement:n,placement:v,strategy:o,middlewareData:g,rects:d,platform:i,elements:{reference:e,floating:t}});f=w??f,p=C??p,g={...g,[y]:{...g[y],...R}},P&&b<=50&&(b++,typeof P=="object"&&(P.placement&&(v=P.placement),P.rects&&(d=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:f,y:p}=Ao(d,v,c)),m=-1)}return{x:f,y:p,placement:v,strategy:o,middlewareData:g}};async function ct(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:v=!1,padding:g=0}=xe(t,e),b=Po(g),y=s[v?p==="floating"?"reference":"floating":p],x=jt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(y)))==null||r?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:c})),w=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(s.floating)),R=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},P=jt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:C,strategy:c}):w);return{top:(x.top-P.top+b.top)/R.y,bottom:(P.bottom-x.bottom+b.bottom)/R.y,left:(x.left-P.left+b.left)/R.x,right:(P.right-x.right+b.right)/R.x}}const zl=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:d,padding:f=0}=xe(e,t)||{};if(d==null)return{};const p=Po(f),v={x:r,y:n},g=Rr(o),b=Cr(g),m=await i.getDimensions(d),y=g==="y",x=y?"top":"left",w=y?"bottom":"right",C=y?"clientHeight":"clientWidth",R=a.reference[b]+a.reference[g]-v[g]-a.floating[b],P=v[g]-a.reference[g],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let T=S?S[C]:0;(!T||!await(i.isElement==null?void 0:i.isElement(S)))&&(T=s.floating[C]||a.floating[b]);const W=R/2-P/2,U=T/2-m[b]/2-1,H=Ae(p[x],U),J=Ae(p[w],U),X=H,$=T-m[b]-J,I=T/2-m[b]/2+W,Y=Er(X,I,$),D=!c.arrow&&Ze(o)!=null&&I!==Y&&a.reference[b]/2-(I<X?H:J)-m[b]/2<0,K=D?I<X?I-X:I-$:0;return{[g]:v[g]+K,data:{[g]:Y,centerOffset:I-Y-K,...D&&{alignmentOffset:K}},reset:D}}}),Wl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:m=!0,...y}=xe(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const x=we(o),w=Te(s),C=we(s)===s,R=await(c.isRTL==null?void 0:c.isRTL(d.floating)),P=v||(C||!m?[Mt(s)]:Il(s)),S=b!=="none";!v&&S&&P.push(...Fl(s,m,b,R));const T=[s,...P],W=await ct(t,y),U=[];let H=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&U.push(W[x]),p){const I=jl(o,i,R);U.push(W[I[0]],W[I[1]])}if(H=[...H,{placement:o,overflows:U}],!U.every(I=>I<=0)){var J,X;const I=(((J=a.flip)==null?void 0:J.index)||0)+1,Y=T[I];if(Y)return{data:{index:I,overflows:H},reset:{placement:Y}};let D=(X=H.filter(K=>K.overflows[0]<=0).sort((K,_)=>K.overflows[1]-_.overflows[1])[0])==null?void 0:X.placement;if(!D)switch(g){case"bestFit":{var $;const K=($=H.filter(_=>{if(S){const z=Te(_.placement);return z===w||z==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(z=>z>0).reduce((z,ee)=>z+ee,0)]).sort((_,z)=>_[1]-z[1])[0])==null?void 0:$[0];K&&(D=K);break}case"initialPlacement":D=s;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function To(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function No(e){return kl.some(t=>e[t]>=0)}const Vl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=xe(e,t);switch(n){case"referenceHidden":{const a=await ct(t,{...o,elementContext:"reference"}),i=To(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:No(i)}}}case"escaped":{const a=await ct(t,{...o,altBoundary:!0}),i=To(a,r.floating);return{data:{escapedOffsets:i,escaped:No(i)}}}default:return{}}}}};async function Hl(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=we(r),s=Ze(r),c=Te(r)==="y",d=["left","top"].includes(i)?-1:1,f=a&&c?-1:1,p=xe(t,e);let{mainAxis:v,crossAxis:g,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof b=="number"&&(g=s==="end"?b*-1:b),c?{x:g*f,y:v*d}:{x:v*d,y:g*f}}const Gl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,c=await Hl(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}},Ul=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:y=>{let{x,y:w}=y;return{x,y:w}}},...c}=xe(e,t),d={x:r,y:n},f=await ct(t,c),p=Te(we(o)),v=Sr(p);let g=d[v],b=d[p];if(a){const y=v==="y"?"top":"left",x=v==="y"?"bottom":"right",w=g+f[y],C=g-f[x];g=Er(w,g,C)}if(i){const y=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=b+f[y],C=b-f[x];b=Er(w,b,C)}const m=s.fn({...t,[v]:g,[p]:b});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[v]:a,[p]:i}}}}}},Yl=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:d=!0}=xe(e,t),f={x:r,y:n},p=Te(o),v=Sr(p);let g=f[v],b=f[p];const m=xe(s,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const C=v==="y"?"height":"width",R=a.reference[v]-a.floating[C]+y.mainAxis,P=a.reference[v]+a.reference[C]-y.mainAxis;g<R?g=R:g>P&&(g=P)}if(d){var x,w;const C=v==="y"?"width":"height",R=["top","left"].includes(we(o)),P=a.reference[p]-a.floating[C]+(R&&((x=i.offset)==null?void 0:x[p])||0)+(R?0:y.crossAxis),S=a.reference[p]+a.reference[C]+(R?0:((w=i.offset)==null?void 0:w[p])||0)-(R?y.crossAxis:0);b<P?b=P:b>S&&(b=S)}return{[v]:g,[p]:b}}}},Kl=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...d}=xe(e,t),f=await ct(t,d),p=we(o),v=Ze(o),g=Te(o)==="y",{width:b,height:m}=a.floating;let y,x;p==="top"||p==="bottom"?(y=p,x=v===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(x=p,y=v==="end"?"top":"bottom");const w=m-f.top-f.bottom,C=b-f.left-f.right,R=Ae(m-f[y],w),P=Ae(b-f[x],C),S=!t.middlewareData.shift;let T=R,W=P;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(W=C),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=w),S&&!v){const H=ie(f.left,0),J=ie(f.right,0),X=ie(f.top,0),$=ie(f.bottom,0);g?W=b-2*(H!==0||J!==0?H+J:ie(f.left,f.right)):T=m-2*(X!==0||$!==0?X+$:ie(f.top,f.bottom))}await c({...t,availableWidth:W,availableHeight:T});const U=await i.getDimensions(s.floating);return b!==U.width||m!==U.height?{reset:{rects:!0}}:{}}}};function It(){return typeof window<"u"}function Qe(e){return Oo(e)?(e.nodeName||"").toLowerCase():"#document"}function se(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(Oo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Oo(e){return It()?e instanceof Node||e instanceof se(e).Node:!1}function de(e){return It()?e instanceof Element||e instanceof se(e).Element:!1}function be(e){return It()?e instanceof HTMLElement||e instanceof se(e).HTMLElement:!1}function _o(e){return!It()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof se(e).ShadowRoot}function ut(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Xl(e){return["table","td","th"].includes(Qe(e))}function Lt(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ar(e){const t=Tr(),r=de(e)?fe(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function ql(e){let t=Ne(e);for(;be(t)&&!et(t);){if(Ar(t))return t;if(Lt(t))return null;t=Ne(t)}return null}function Tr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function et(e){return["html","body","#document"].includes(Qe(e))}function fe(e){return se(e).getComputedStyle(e)}function Ft(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ne(e){if(Qe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_o(e)&&e.host||ve(e);return _o(t)?t.host:t}function ko(e){const t=Ne(e);return et(t)?e.ownerDocument?e.ownerDocument.body:e.body:be(t)&&ut(t)?t:ko(t)}function dt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=ko(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=se(o);if(a){const s=Nr(i);return t.concat(i,i.visualViewport||[],ut(o)?o:[],s&&r?dt(s):[])}return t.concat(o,dt(o,[],r))}function Nr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Do(e){const t=fe(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=be(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=kt(r)!==a||kt(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function Or(e){return de(e)?e:e.contextElement}function tt(e){const t=Or(e);if(!be(t))return he(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Do(t);let i=(a?kt(r.width):r.width)/n,s=(a?kt(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Jl=he(0);function Mo(e){const t=se(e);return!Tr()||!t.visualViewport?Jl:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zl(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==se(e)?!1:t}function Ie(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Or(e);let i=he(1);t&&(n?de(n)&&(i=tt(n)):i=tt(e));const s=Zl(a,r,n)?Mo(a):he(0);let c=(o.left+s.x)/i.x,d=(o.top+s.y)/i.y,f=o.width/i.x,p=o.height/i.y;if(a){const v=se(a),g=n&&de(n)?se(n):n;let b=v,m=Nr(b);for(;m&&n&&g!==b;){const y=tt(m),x=m.getBoundingClientRect(),w=fe(m),C=x.left+(m.clientLeft+parseFloat(w.paddingLeft))*y.x,R=x.top+(m.clientTop+parseFloat(w.paddingTop))*y.y;c*=y.x,d*=y.y,f*=y.x,p*=y.y,c+=C,d+=R,b=se(m),m=Nr(b)}}return jt({width:f,height:p,x:c,y:d})}function _r(e,t){const r=Ft(e).scrollLeft;return t?t.left+r:Ie(ve(e)).left+r}function jo(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:_r(e,n)),a=n.top+t.scrollTop;return{x:o,y:a}}function Ql(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=ve(n),s=t?Lt(t.floating):!1;if(n===i||s&&a)return r;let c={scrollLeft:0,scrollTop:0},d=he(1);const f=he(0),p=be(n);if((p||!p&&!a)&&((Qe(n)!=="body"||ut(i))&&(c=Ft(n)),be(n))){const g=Ie(n);d=tt(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const v=i&&!p&&!a?jo(i,c,!0):he(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+f.x+v.x,y:r.y*d.y-c.scrollTop*d.y+f.y+v.y}}function ec(e){return Array.from(e.getClientRects())}function tc(e){const t=ve(e),r=Ft(e),n=e.ownerDocument.body,o=ie(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ie(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+_r(e);const s=-r.scrollTop;return fe(n).direction==="rtl"&&(i+=ie(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}function rc(e,t){const r=se(e),n=ve(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const d=Tr();(!d||d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:a,height:i,x:s,y:c}}function nc(e,t){const r=Ie(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=be(e)?tt(e):he(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,d=n*a.y;return{width:i,height:s,x:c,y:d}}function Io(e,t,r){let n;if(t==="viewport")n=rc(e,r);else if(t==="document")n=tc(ve(e));else if(de(t))n=nc(t,r);else{const o=Mo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return jt(n)}function Lo(e,t){const r=Ne(e);return r===t||!de(r)||et(r)?!1:fe(r).position==="fixed"||Lo(r,t)}function oc(e,t){const r=t.get(e);if(r)return r;let n=dt(e,[],!1).filter(s=>de(s)&&Qe(s)!=="body"),o=null;const a=fe(e).position==="fixed";let i=a?Ne(e):e;for(;de(i)&&!et(i);){const s=fe(i),c=Ar(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ut(i)&&!c&&Lo(e,i))?n=n.filter(f=>f!==i):o=s,i=Ne(i)}return t.set(e,n),n}function ac(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?Lt(t)?[]:oc(t,this._c):[].concat(r),n],s=i[0],c=i.reduce((d,f)=>{const p=Io(t,f,o);return d.top=ie(p.top,d.top),d.right=Ae(p.right,d.right),d.bottom=Ae(p.bottom,d.bottom),d.left=ie(p.left,d.left),d},Io(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ic(e){const{width:t,height:r}=Do(e);return{width:t,height:r}}function sc(e,t,r){const n=be(t),o=ve(t),a=r==="fixed",i=Ie(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=he(0);if(n||!n&&!a)if((Qe(t)!=="body"||ut(o))&&(s=Ft(t)),n){const v=Ie(t,!0,a,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&(c.x=_r(o));const d=o&&!n&&!a?jo(o,s):he(0),f=i.left+s.scrollLeft-c.x-d.x,p=i.top+s.scrollTop-c.y-d.y;return{x:f,y:p,width:i.width,height:i.height}}function kr(e){return fe(e).position==="static"}function Fo(e,t){if(!be(e)||fe(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ve(e)===r&&(r=r.ownerDocument.body),r}function $o(e,t){const r=se(e);if(Lt(e))return r;if(!be(e)){let o=Ne(e);for(;o&&!et(o);){if(de(o)&&!kr(o))return o;o=Ne(o)}return r}let n=Fo(e,t);for(;n&&Xl(n)&&kr(n);)n=Fo(n,t);return n&&et(n)&&kr(n)&&!Ar(n)?r:n||ql(e)||r}const lc=async function(e){const t=this.getOffsetParent||$o,r=this.getDimensions,n=await r(e.floating);return{reference:sc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function cc(e){return fe(e).direction==="rtl"}const uc={convertOffsetParentRelativeRectToViewportRelativeRect:Ql,getDocumentElement:ve,getClippingRect:ac,getOffsetParent:$o,getElementRects:lc,getClientRects:ec,getDimensions:ic,getScale:tt,isElement:de,isRTL:cc};function Bo(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function dc(e,t){let r=null,n;const o=ve(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const d=e.getBoundingClientRect(),{left:f,top:p,width:v,height:g}=d;if(s||t(),!v||!g)return;const b=Dt(p),m=Dt(o.clientWidth-(f+v)),y=Dt(o.clientHeight-(p+g)),x=Dt(f),C={rootMargin:-b+"px "+-m+"px "+-y+"px "+-x+"px",threshold:ie(0,Ae(1,c))||1};let R=!0;function P(S){const T=S[0].intersectionRatio;if(T!==c){if(!R)return i();T?i(!1,T):n=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!Bo(d,e.getBoundingClientRect())&&i(),R=!1}try{r=new IntersectionObserver(P,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(P,C)}r.observe(e)}return i(!0),a}function fc(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Or(e),f=o||a?[...d?dt(d):[],...dt(t)]:[];f.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),a&&x.addEventListener("resize",r)});const p=d&&s?dc(d,r):null;let v=-1,g=null;i&&(g=new ResizeObserver(x=>{let[w]=x;w&&w.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var C;(C=g)==null||C.observe(t)})),r()}),d&&!c&&g.observe(d),g.observe(t));let b,m=c?Ie(e):null;c&&y();function y(){const x=Ie(e);m&&!Bo(m,x)&&r(),m=x,b=requestAnimationFrame(y)}return r(),()=>{var x;f.forEach(w=>{o&&w.removeEventListener("scroll",r),a&&w.removeEventListener("resize",r)}),p==null||p(),(x=g)==null||x.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const pc=Gl,mc=Ul,gc=Wl,hc=Kl,vc=Vl,zo=zl,bc=Yl,yc=(e,t,r)=>{const n=new Map,o={platform:uc,...r},a={...o.platform,_c:n};return Bl(e,t,{...o,platform:a})};var $t=typeof document<"u"?te.useLayoutEffect:te.useEffect;function Bt(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(!Bt(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)&&!Bt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Wo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vo(e,t){const r=Wo(e);return Math.round(t*r)/r}function Dr(e){const t=l.useRef(e);return $t(()=>{t.current=e}),t}function xc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:d}=e,[f,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,g]=l.useState(n);Bt(v,n)||g(n);const[b,m]=l.useState(null),[y,x]=l.useState(null),w=l.useCallback(_=>{_!==S.current&&(S.current=_,m(_))},[]),C=l.useCallback(_=>{_!==T.current&&(T.current=_,x(_))},[]),R=a||b,P=i||y,S=l.useRef(null),T=l.useRef(null),W=l.useRef(f),U=c!=null,H=Dr(c),J=Dr(o),X=Dr(d),$=l.useCallback(()=>{if(!S.current||!T.current)return;const _={placement:t,strategy:r,middleware:v};J.current&&(_.platform=J.current),yc(S.current,T.current,_).then(z=>{const ee={...z,isPositioned:X.current!==!1};I.current&&!Bt(W.current,ee)&&(W.current=ee,Yr.flushSync(()=>{p(ee)}))})},[v,t,r,J,X]);$t(()=>{d===!1&&W.current.isPositioned&&(W.current.isPositioned=!1,p(_=>({..._,isPositioned:!1})))},[d]);const I=l.useRef(!1);$t(()=>(I.current=!0,()=>{I.current=!1}),[]),$t(()=>{if(R&&(S.current=R),P&&(T.current=P),R&&P){if(H.current)return H.current(R,P,$);$()}},[R,P,$,H,U]);const Y=l.useMemo(()=>({reference:S,floating:T,setReference:w,setFloating:C}),[w,C]),D=l.useMemo(()=>({reference:R,floating:P}),[R,P]),K=l.useMemo(()=>{const _={position:r,left:0,top:0};if(!D.floating)return _;const z=Vo(D.floating,f.x),ee=Vo(D.floating,f.y);return s?{..._,transform:"translate("+z+"px, "+ee+"px)",...Wo(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:z,top:ee}},[r,s,D.floating,f.x,f.y]);return l.useMemo(()=>({...f,update:$,refs:Y,elements:D,floatingStyles:K}),[f,$,Y,D,K])}const wc=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?zo({element:n.current,padding:o}).fn(r):{}:n?zo({element:n,padding:o}).fn(r):{}}}},Ec=(e,t)=>({...pc(e),options:[e,t]}),Sc=(e,t)=>({...mc(e),options:[e,t]}),Cc=(e,t)=>({...bc(e),options:[e,t]}),Rc=(e,t)=>({...gc(e),options:[e,t]}),Pc=(e,t)=>({...hc(e),options:[e,t]}),Ac=(e,t)=>({...vc(e),options:[e,t]}),Tc=(e,t)=>({...wc(e),options:[e,t]});var Nc="Arrow",Ho=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return h.jsx(re.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ho.displayName=Nc;var Oc=Ho;function _c(e){const[t,r]=l.useState(void 0);return Me(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,d=Array.isArray(c)?c[0]:c;i=d.inlineSize,s=d.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Mr="Popper",[Go,Uo]=nr(Mr),[kc,Yo]=Go(Mr),Ko=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return h.jsx(kc,{scope:t,anchor:n,onAnchorChange:o,children:r})};Ko.displayName=Mr;var Xo="PopperAnchor",qo=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Yo(Xo,r),i=l.useRef(null),s=ce(t,i);return l.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:h.jsx(re.div,{...o,ref:s})});qo.displayName=Xo;var jr="PopperContent",[Dc,Mc]=Go(jr),Jo=l.forwardRef((e,t)=>{var pe,$e,nt,Be,Ht,mt;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:g="optimized",onPlaced:b,...m}=e,y=Yo(jr,r),[x,w]=l.useState(null),C=ce(t,ze=>w(ze)),[R,P]=l.useState(null),S=_c(R),T=(S==null?void 0:S.width)??0,W=(S==null?void 0:S.height)??0,U=n+(a!=="center"?"-"+a:""),H=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},J=Array.isArray(d)?d:[d],X=J.length>0,$={padding:H,boundary:J.filter(Ic),altBoundary:X},{refs:I,floatingStyles:Y,placement:D,isPositioned:K,middlewareData:_}=xc({strategy:"fixed",placement:U,whileElementsMounted:(...ze)=>fc(...ze,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[Ec({mainAxis:o+W,alignmentAxis:i}),c&&Sc({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?Cc():void 0,...$}),c&&Rc({...$}),Pc({...$,apply:({elements:ze,rects:Gt,availableWidth:ot,availableHeight:We})=>{const{width:Ut,height:Yt}=Gt.reference,Se=ze.floating.style;Se.setProperty("--radix-popper-available-width",`${ot}px`),Se.setProperty("--radix-popper-available-height",`${We}px`),Se.setProperty("--radix-popper-anchor-width",`${Ut}px`),Se.setProperty("--radix-popper-anchor-height",`${Yt}px`)}}),R&&Tc({element:R,padding:s}),Lc({arrowWidth:T,arrowHeight:W}),v&&Ac({strategy:"referenceHidden",...$})]}),[z,ee]=ea(D),ye=Re(b);Me(()=>{K&&(ye==null||ye())},[K,ye]);const Le=(pe=_.arrow)==null?void 0:pe.x,Fe=($e=_.arrow)==null?void 0:$e.y,Oe=((nt=_.arrow)==null?void 0:nt.centerOffset)!==0,[_e,Ee]=l.useState();return Me(()=>{x&&Ee(window.getComputedStyle(x).zIndex)},[x]),h.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:K?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[(Be=_.transformOrigin)==null?void 0:Be.x,(Ht=_.transformOrigin)==null?void 0:Ht.y].join(" "),...((mt=_.hide)==null?void 0:mt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(Dc,{scope:r,placedSide:z,onArrowChange:P,arrowX:Le,arrowY:Fe,shouldHideArrow:Oe,children:h.jsx(re.div,{"data-side":z,"data-align":ee,...m,ref:C,style:{...m.style,animation:K?void 0:"none"}})})})});Jo.displayName=jr;var Zo="PopperArrow",jc={top:"bottom",right:"left",bottom:"top",left:"right"},Qo=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,a=Mc(Zo,n),i=jc[a.placedSide];return h.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:h.jsx(Oc,{...o,ref:r,style:{...o.style,display:"block"}})})});Qo.displayName=Zo;function Ic(e){return e!==null}var Lc=e=>({name:"transformOrigin",options:e,fn(t){var y,x,w;const{placement:r,rects:n,middlewareData:o}=t,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[d,f]=ea(r),p={start:"0%",center:"50%",end:"100%"}[f],v=(((x=o.arrow)==null?void 0:x.x)??0)+s/2,g=(((w=o.arrow)==null?void 0:w.y)??0)+c/2;let b="",m="";return d==="bottom"?(b=i?p:`${v}px`,m=`${-c}px`):d==="top"?(b=i?p:`${v}px`,m=`${n.floating.height+c}px`):d==="right"?(b=`${-c}px`,m=i?p:`${g}px`):d==="left"&&(b=`${n.floating.width+c}px`,m=i?p:`${g}px`),{data:{x:b,y:m}}}});function ea(e){const[t,r="center"]=e.split("-");return[t,r]}var Fc=Ko,$c=qo,Bc=Jo,zc=Qo,Wc="VisuallyHidden",ta=l.forwardRef((e,t)=>h.jsx(re.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));ta.displayName=Wc;var Vc=ta,[zt,Ku]=nr("Tooltip",[Uo]),Wt=Uo(),ra="TooltipProvider",Hc=700,Ir="tooltip.open",[Gc,Lr]=zt(ra),na=e=>{const{__scopeTooltip:t,delayDuration:r=Hc,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=e,[i,s]=l.useState(!0),c=l.useRef(!1),d=l.useRef(0);return l.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),h.jsx(Gc,{scope:t,isOpenDelayed:i,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(d.current),s(!1)},[]),onClose:l.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(f=>{c.current=f},[]),disableHoverableContent:o,children:a})};na.displayName=ra;var Vt="Tooltip",[Uc,ft]=zt(Vt),oa=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=e,c=Lr(Vt,e.__scopeTooltip),d=Wt(t),[f,p]=l.useState(null),v=vt(),g=l.useRef(0),b=i??c.disableHoverableContent,m=s??c.delayDuration,y=l.useRef(!1),[x=!1,w]=hn({prop:n,defaultProp:o,onChange:T=>{T?(c.onOpen(),document.dispatchEvent(new CustomEvent(Ir))):c.onClose(),a==null||a(T)}}),C=l.useMemo(()=>x?y.current?"delayed-open":"instant-open":"closed",[x]),R=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,y.current=!1,w(!0)},[w]),P=l.useCallback(()=>{window.clearTimeout(g.current),g.current=0,w(!1)},[w]),S=l.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{y.current=!0,w(!0),g.current=0},m)},[m,w]);return l.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),h.jsx(Fc,{...d,children:h.jsx(Uc,{scope:t,contentId:v,open:x,stateAttribute:C,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayed?S():R()},[c.isOpenDelayed,S,R]),onTriggerLeave:l.useCallback(()=>{b?P():(window.clearTimeout(g.current),g.current=0)},[P,b]),onOpen:R,onClose:P,disableHoverableContent:b,children:r})})};oa.displayName=Vt;var Fr="TooltipTrigger",aa=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=ft(Fr,r),a=Lr(Fr,r),i=Wt(r),s=l.useRef(null),c=ce(t,s,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),h.jsx($c,{asChild:!0,...i,children:h.jsx(re.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:c,onPointerMove:oe(e.onPointerMove,v=>{v.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:oe(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:oe(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:oe(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:oe(e.onBlur,o.onClose),onClick:oe(e.onClick,o.onClose)})})});aa.displayName=Fr;var $r="TooltipPortal",[Yc,Kc]=zt($r,{forceMount:void 0}),ia=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,a=ft($r,t);return h.jsx(Yc,{scope:t,forceMount:r,children:h.jsx(Ye,{present:r||a.open,children:h.jsx(lr,{asChild:!0,container:o,children:n})})})};ia.displayName=$r;var rt="TooltipContent",sa=l.forwardRef((e,t)=>{const r=Kc(rt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=ft(rt,e.__scopeTooltip);return h.jsx(Ye,{present:n||i.open,children:i.disableHoverableContent?h.jsx(la,{side:o,...a,ref:t}):h.jsx(Xc,{side:o,...a,ref:t})})}),Xc=l.forwardRef((e,t)=>{const r=ft(rt,e.__scopeTooltip),n=Lr(rt,e.__scopeTooltip),o=l.useRef(null),a=ce(t,o),[i,s]=l.useState(null),{trigger:c,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,v=l.useCallback(()=>{s(null),p(!1)},[p]),g=l.useCallback((b,m)=>{const y=b.currentTarget,x={x:b.clientX,y:b.clientY},w=Qc(x,y.getBoundingClientRect()),C=eu(x,w),R=tu(m.getBoundingClientRect()),P=nu([...C,...R]);s(P),p(!0)},[p]);return l.useEffect(()=>()=>v(),[v]),l.useEffect(()=>{if(c&&f){const b=y=>g(y,f),m=y=>g(y,c);return c.addEventListener("pointerleave",b),f.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",m)}}},[c,f,g,v]),l.useEffect(()=>{if(i){const b=m=>{const y=m.target,x={x:m.clientX,y:m.clientY},w=(c==null?void 0:c.contains(y))||(f==null?void 0:f.contains(y)),C=!ru(x,i);w?v():C&&(v(),d())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[c,f,i,d,v]),h.jsx(la,{...e,ref:a})}),[qc,Jc]=zt(Vt,{isInside:!1}),la=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,c=ft(rt,r),d=Wt(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(Ir,f),()=>document.removeEventListener(Ir,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=v=>{const g=v.target;g!=null&&g.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),h.jsx(ar,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:p=>p.preventDefault(),onDismiss:f,children:h.jsxs(Bc,{"data-state":c.stateAttribute,...d,...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:[h.jsx(Qr,{children:n}),h.jsx(qc,{scope:r,isInside:!0,children:h.jsx(Vc,{id:c.contentId,role:"tooltip",children:o||n})})]})})});sa.displayName=rt;var ca="TooltipArrow",Zc=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Wt(r);return Jc(ca,r).isInside?null:h.jsx(zc,{...o,...n,ref:t})});Zc.displayName=ca;function Qc(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 eu(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 tu(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 ru(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 s=t[a].x,c=t[a].y,d=t[i].x,f=t[i].y;c>n!=f>n&&r<(d-s)*(n-c)/(f-c)+s&&(o=!o)}return o}function nu(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),ou(t)}function ou(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 au=na,iu=oa,su=aa,lu=ia,ua=sa;const cu=au,uu=iu,du=su,da=l.forwardRef(({className:e,sideOffset:t=4,...r},n)=>h.jsx(lu,{children:h.jsx(ua,{ref:n,sideOffset:t,className:M("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs 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 origin-[--radix-tooltip-content-transform-origin]",e),...r})}));da.displayName=ua.displayName;const fu="sidebar_state",pu=60*60*24*7,mu="16rem",gu="18rem",hu="3rem",vu="b",fa=l.createContext(null);function pt(){const e=l.useContext(fa);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const pa=l.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:r,className:n,style:o,children:a,...i},s)=>{const c=Rl(),[d,f]=l.useState(!1),[p,v]=l.useState(e),g=t??p,b=l.useCallback(w=>{const C=typeof w=="function"?w(g):w;r?r(C):v(C),document.cookie=`${fu}=${C}; path=/; max-age=${pu}`},[r,g]),m=l.useCallback(()=>c?f(w=>!w):b(w=>!w),[c,b,f]);l.useEffect(()=>{const w=C=>{C.key===vu&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),m())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[m]);const y=g?"expanded":"collapsed",x=l.useMemo(()=>({state:y,open:g,setOpen:b,isMobile:c,openMobile:d,setOpenMobile:f,toggleSidebar:m}),[y,g,b,c,d,f,m]);return h.jsx(fa.Provider,{value:x,children:h.jsx(cu,{delayDuration:0,children:h.jsx("div",{style:{"--sidebar-width":mu,"--sidebar-width-icon":hu,...o},className:M("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",n),ref:s,...i,children:a})})})});pa.displayName="SidebarProvider";const ma=l.forwardRef(({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:n,children:o,...a},i)=>{const{isMobile:s,state:c,openMobile:d,setOpenMobile:f}=pt();return r==="none"?h.jsx("div",{className:M("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",n),ref:i,...a,children:o}):s?h.jsx(Nl,{open:d,onOpenChange:f,...a,children:h.jsxs(wo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":gu},side:e,children:[h.jsxs(Eo,{className:"sr-only",children:[h.jsx(So,{children:"Sidebar"}),h.jsx(Co,{children:"Displays the mobile sidebar."})]}),h.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):h.jsxs("div",{ref:i,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?r:"","data-variant":t,"data-side":e,children:[h.jsx("div",{className:M("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),h.jsx("div",{className:M("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",n),...a,children:h.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});ma.displayName="Sidebar";const ga=l.forwardRef(({className:e,onClick:t,...r},n)=>{const{toggleSidebar:o}=pt();return h.jsxs(rr,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:M("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},...r,children:[h.jsx(wl,{}),h.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ga.displayName="SidebarTrigger";const ha=l.forwardRef(({className:e,...t},r)=>{const{toggleSidebar:n}=pt();return h.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:M("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});ha.displayName="SidebarRail";const va=l.forwardRef(({className:e,...t},r)=>h.jsx("main",{ref:r,className:M("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));va.displayName="SidebarInset";const ba=l.forwardRef(({className:e,...t},r)=>h.jsx(go,{ref:r,"data-sidebar":"input",className:M("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ba.displayName="SidebarInput";const ya=l.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,"data-sidebar":"header",className:M("flex flex-col gap-2 p-2",e),...t}));ya.displayName="SidebarHeader";const xa=l.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,"data-sidebar":"footer",className:M("flex flex-col gap-2 p-2",e),...t}));xa.displayName="SidebarFooter";const wa=l.forwardRef(({className:e,...t},r)=>h.jsx(yo,{ref:r,"data-sidebar":"separator",className:M("mx-2 w-auto bg-sidebar-border",e),...t}));wa.displayName="SidebarSeparator";const Ea=l.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,"data-sidebar":"content",className:M("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Ea.displayName="SidebarContent";const Sa=l.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,"data-sidebar":"group",className:M("relative flex w-full min-w-0 flex-col p-2",e),...t}));Sa.displayName="SidebarGroup";const Ca=l.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?me:"div";return h.jsx(o,{ref:n,"data-sidebar":"group-label",className:M("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})});Ca.displayName="SidebarGroupLabel";const Ra=l.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?me:"button";return h.jsx(o,{ref:n,"data-sidebar":"group-action",className:M("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...r})});Ra.displayName="SidebarGroupAction";const Pa=l.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,"data-sidebar":"group-content",className:M("w-full text-sm",e),...t}));Pa.displayName="SidebarGroupContent";const Aa=l.forwardRef(({className:e,...t},r)=>h.jsx("ul",{ref:r,"data-sidebar":"menu",className:M("flex w-full min-w-0 flex-col gap-1",e),...t}));Aa.displayName="SidebarMenu";const Ta=l.forwardRef(({className:e,...t},r)=>h.jsx("li",{ref:r,"data-sidebar":"menu-item",className:M("group/menu-item relative",e),...t}));Ta.displayName="SidebarMenuItem";const bu=Xt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Na=l.forwardRef(({asChild:e=!1,isActive:t=!1,variant:r="default",size:n="default",tooltip:o,className:a,...i},s)=>{const c=e?me:"button",{isMobile:d,state:f}=pt(),p=h.jsx(c,{ref:s,"data-sidebar":"menu-button","data-size":n,"data-active":t,className:M(bu({variant:r,size:n}),a),...i});return o?(typeof o=="string"&&(o={children:o}),h.jsxs(uu,{children:[h.jsx(du,{asChild:!0,children:p}),h.jsx(da,{side:"right",align:"center",hidden:f!=="collapsed"||d,...o})]})):p});Na.displayName="SidebarMenuButton";const Oa=l.forwardRef(({className:e,asChild:t=!1,showOnHover:r=!1,...n},o)=>{const a=t?me:"button";return h.jsx(a,{ref:o,"data-sidebar":"menu-action",className:M("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...n})});Oa.displayName="SidebarMenuAction";const _a=l.forwardRef(({className:e,...t},r)=>h.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:M("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));_a.displayName="SidebarMenuBadge";const ka=l.forwardRef(({className:e,showIcon:t=!1,...r},n)=>{const o=l.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return h.jsxs("div",{ref:n,"data-sidebar":"menu-skeleton",className:M("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[t&&h.jsx(Ro,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),h.jsx(Ro,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});ka.displayName="SidebarMenuSkeleton";const Da=l.forwardRef(({className:e,...t},r)=>h.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:M("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Da.displayName="SidebarMenuSub";const Ma=l.forwardRef(({...e},t)=>h.jsx("li",{ref:t,...e}));Ma.displayName="SidebarMenuSubItem";const ja=l.forwardRef(({asChild:e=!1,size:t="md",isActive:r,className:n,...o},a)=>{const i=e?me:"a";return h.jsx(i,{ref:a,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:M("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...o})});ja.displayName="SidebarMenuSubButton";const Ia=l.forwardRef(({...e},t)=>h.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ia.displayName="Breadcrumb";const La=l.forwardRef(({className:e,...t},r)=>h.jsx("ol",{ref:r,className:M("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));La.displayName="BreadcrumbList";const Fa=l.forwardRef(({className:e,...t},r)=>h.jsx("li",{ref:r,className:M("inline-flex items-center gap-1.5",e),...t}));Fa.displayName="BreadcrumbItem";const $a=l.forwardRef(({asChild:e,className:t,...r},n)=>{const o=e?me:"a";return h.jsx(o,{ref:n,className:M("transition-colors hover:text-foreground",t),...r})});$a.displayName="BreadcrumbLink";const Ba=l.forwardRef(({className:e,...t},r)=>h.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:M("font-normal text-foreground",e),...t}));Ba.displayName="BreadcrumbPage";const za=({children:e,className:t,...r})=>h.jsx("li",{role:"presentation","aria-hidden":"true",className:M("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...r,children:e??h.jsx(yl,{})});za.displayName="BreadcrumbSeparator";const Wa=({className:e,...t})=>h.jsxs("span",{role:"presentation","aria-hidden":"true",className:M("flex h-9 w-9 items-center justify-center",e),...t,children:[h.jsx(xl,{className:"h-4 w-4"}),h.jsx("span",{className:"sr-only",children:"More"})]});Wa.displayName="BreadcrumbElipssis",k.Breadcrumb=Ia,k.BreadcrumbEllipsis=Wa,k.BreadcrumbItem=Fa,k.BreadcrumbLink=$a,k.BreadcrumbList=La,k.BreadcrumbPage=Ba,k.BreadcrumbSeparator=za,k.Button=rr,k.Dialog=El,k.DialogClose=Cl,k.DialogContent=co,k.DialogDescription=mo,k.DialogFooter=fo,k.DialogHeader=uo,k.DialogOverlay=xr,k.DialogPortal=lo,k.DialogTitle=po,k.DialogTrigger=Sl,k.Sidebar=ma,k.SidebarContent=Ea,k.SidebarFooter=xa,k.SidebarGroup=Sa,k.SidebarGroupAction=Ra,k.SidebarGroupContent=Pa,k.SidebarGroupLabel=Ca,k.SidebarHeader=ya,k.SidebarInput=ba,k.SidebarInset=va,k.SidebarMenu=Aa,k.SidebarMenuAction=Oa,k.SidebarMenuBadge=_a,k.SidebarMenuButton=Na,k.SidebarMenuItem=Ta,k.SidebarMenuSkeleton=ka,k.SidebarMenuSub=Da,k.SidebarMenuSubButton=ja,k.SidebarMenuSubItem=Ma,k.SidebarProvider=pa,k.SidebarRail=ha,k.SidebarSeparator=wa,k.SidebarTrigger=ga,k.useSidebar=pt,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});