@service_laboratory/auth 2.0.25 → 2.0.27

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.
@@ -1,18 +1,18 @@
1
- (function(ie,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],N):(ie=typeof globalThis<"u"?globalThis:ie||self,N(ie.autn={},ie.react))})(this,(function(ie,N){"use strict";function ds(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 p=ds(N);var Et={exports:{}},ot={};var Ln;function fs(){if(Ln)return ot;Ln=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return ot.Fragment=t,ot.jsx=r,ot.jsxs=r,ot}var at={};var Mn;function ps(){return Mn||(Mn=1,process.env.NODE_ENV!=="production"&&(function(){function e(v){if(v==null)return null;if(typeof v=="function")return v.$$typeof===U?null:v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case g:return"Fragment";case w:return"Profiler";case y:return"StrictMode";case R:return"Suspense";case C:return"SuspenseList";case I:return"Activity"}if(typeof v=="object")switch(typeof v.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case h:return"Portal";case E:return(v.displayName||"Context")+".Provider";case x:return(v._context.displayName||"Context")+".Consumer";case _:var O=v.render;return v=v.displayName,v||(v=O.displayName||O.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case T:return O=v.displayName||null,O!==null?O:e(v.type)||"Memo";case S:O=v._payload,v=v._init;try{return e(v(O))}catch{}}return null}function t(v){return""+v}function r(v){try{t(v);var O=!1}catch{O=!0}if(O){O=console;var M=O.error,P=typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return M.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P),t(v)}}function n(v){if(v===g)return"<>";if(typeof v=="object"&&v!==null&&v.$$typeof===S)return"<...>";try{var O=e(v);return O?"<"+O+">":"<...>"}catch{return"<...>"}}function o(){var v=G.A;return v===null?null:v.getOwner()}function a(){return Error("react-stack-top-frame")}function i(v){if(q.call(v,"key")){var O=Object.getOwnPropertyDescriptor(v,"key").get;if(O&&O.isReactWarning)return!1}return v.key!==void 0}function s(v,O){function M(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",O))}M.isReactWarning=!0,Object.defineProperty(v,"key",{get:M,configurable:!0})}function d(){var v=e(this.type);return H[v]||(H[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function l(v,O,M,P,K,X,ae,V){return M=X.ref,v={$$typeof:m,type:v,key:O,props:X,_owner:K},(M!==void 0?M:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:d}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function f(v,O,M,P,K,X,ae,V){var z=O.children;if(z!==void 0)if(P)if(Z(z)){for(P=0;P<z.length;P++)c(z[P]);Object.freeze&&Object.freeze(z)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(z);if(q.call(O,"key")){z=e(v);var ee=Object.keys(O).filter(function(Ce){return Ce!=="key"});P=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",D[z+P]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(oe,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],N):(oe=typeof globalThis<"u"?globalThis:oe||self,N(oe.autn={},oe.react))})(this,(function(oe,N){"use strict";function ds(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 p=ds(N);var kt={exports:{}},ot={};var Mn;function fs(){if(Mn)return ot;Mn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return ot.Fragment=t,ot.jsx=r,ot.jsxs=r,ot}var at={};var Pn;function ps(){return Pn||(Pn=1,process.env.NODE_ENV!=="production"&&(function(){function e(v){if(v==null)return null;if(typeof v=="function")return v.$$typeof===U?null:v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case g:return"Fragment";case w:return"Profiler";case y:return"StrictMode";case C:return"Suspense";case j:return"SuspenseList";case I:return"Activity"}if(typeof v=="object")switch(typeof v.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case h:return"Portal";case E:return(v.displayName||"Context")+".Provider";case x:return(v._context.displayName||"Context")+".Consumer";case _:var R=v.render;return v=v.displayName,v||(v=R.displayName||R.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case T:return R=v.displayName||null,R!==null?R:e(v.type)||"Memo";case S:R=v._payload,v=v._init;try{return e(v(R))}catch{}}return null}function t(v){return""+v}function r(v){try{t(v);var R=!1}catch{R=!0}if(R){R=console;var M=R.error,P=typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return M.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P),t(v)}}function n(v){if(v===g)return"<>";if(typeof v=="object"&&v!==null&&v.$$typeof===S)return"<...>";try{var R=e(v);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function o(){var v=G.A;return v===null?null:v.getOwner()}function a(){return Error("react-stack-top-frame")}function i(v){if(q.call(v,"key")){var R=Object.getOwnPropertyDescriptor(v,"key").get;if(R&&R.isReactWarning)return!1}return v.key!==void 0}function s(v,R){function M(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",R))}M.isReactWarning=!0,Object.defineProperty(v,"key",{get:M,configurable:!0})}function d(){var v=e(this.type);return H[v]||(H[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function l(v,R,M,P,K,X,ie,V){return M=X.ref,v={$$typeof:m,type:v,key:R,props:X,_owner:K},(M!==void 0?M:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:d}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ie}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function f(v,R,M,P,K,X,ie,V){var z=R.children;if(z!==void 0)if(P)if(Z(z)){for(P=0;P<z.length;P++)c(z[P]);Object.freeze&&Object.freeze(z)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(z);if(q.call(R,"key")){z=e(v);var ee=Object.keys(R).filter(function(Ce){return Ce!=="key"});P=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",D[z+P]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,P,z,ee,z),D[z+P]=!0)}if(z=null,M!==void 0&&(r(M),z=""+M),i(O)&&(r(O.key),z=""+O.key),"key"in O){M={};for(var le in O)le!=="key"&&(M[le]=O[le])}else M=O;return z&&s(M,typeof v=="function"?v.displayName||v.name||"Unknown":v),l(v,z,X,K,o(),M,ae,V)}function c(v){typeof v=="object"&&v!==null&&v.$$typeof===m&&v._store&&(v._store.validated=1)}var u=N,m=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),E=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),G=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,Z=Array.isArray,W=console.createTask?console.createTask:function(){return null};u={react_stack_bottom_frame:function(v){return v()}};var Y,H={},B=u.react_stack_bottom_frame.bind(u,a)(),k=W(n(a)),D={};at.Fragment=g,at.jsx=function(v,O,M,P,K){var X=1e4>G.recentlyCreatedOwnerStacks++;return f(v,O,M,!1,P,K,X?Error("react-stack-top-frame"):B,X?W(n(v)):k)},at.jsxs=function(v,O,M,P,K){var X=1e4>G.recentlyCreatedOwnerStacks++;return f(v,O,M,!0,P,K,X?Error("react-stack-top-frame"):B,X?W(n(v)):k)}})()),at}var Pn;function ms(){return Pn||(Pn=1,process.env.NODE_ENV==="production"?Et.exports=fs():Et.exports=ps()),Et.exports}var j=ms();function gs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fr={exports:{}},it={},In;function hs(){if(In)return it;In=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return it.Fragment=t,it.jsx=r,it.jsxs=r,it}var St={},Fn;function vs(){return Fn||(Fn=1,process.env.NODE_ENV!=="production"&&(function(){function e(v){if(v==null)return null;if(typeof v=="function")return v.$$typeof===U?null:v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case g:return"Fragment";case w:return"Profiler";case y:return"StrictMode";case R:return"Suspense";case C:return"SuspenseList";case I:return"Activity"}if(typeof v=="object")switch(typeof v.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case h:return"Portal";case E:return(v.displayName||"Context")+".Provider";case x:return(v._context.displayName||"Context")+".Consumer";case _:var O=v.render;return v=v.displayName,v||(v=O.displayName||O.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case T:return O=v.displayName||null,O!==null?O:e(v.type)||"Memo";case S:O=v._payload,v=v._init;try{return e(v(O))}catch{}}return null}function t(v){return""+v}function r(v){try{t(v);var O=!1}catch{O=!0}if(O){O=console;var M=O.error,P=typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return M.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P),t(v)}}function n(v){if(v===g)return"<>";if(typeof v=="object"&&v!==null&&v.$$typeof===S)return"<...>";try{var O=e(v);return O?"<"+O+">":"<...>"}catch{return"<...>"}}function o(){var v=G.A;return v===null?null:v.getOwner()}function a(){return Error("react-stack-top-frame")}function i(v){if(q.call(v,"key")){var O=Object.getOwnPropertyDescriptor(v,"key").get;if(O&&O.isReactWarning)return!1}return v.key!==void 0}function s(v,O){function M(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",O))}M.isReactWarning=!0,Object.defineProperty(v,"key",{get:M,configurable:!0})}function d(){var v=e(this.type);return H[v]||(H[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function l(v,O,M,P,K,X,ae,V){return M=X.ref,v={$$typeof:m,type:v,key:O,props:X,_owner:K},(M!==void 0?M:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:d}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ae}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function f(v,O,M,P,K,X,ae,V){var z=O.children;if(z!==void 0)if(P)if(Z(z)){for(P=0;P<z.length;P++)c(z[P]);Object.freeze&&Object.freeze(z)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(z);if(q.call(O,"key")){z=e(v);var ee=Object.keys(O).filter(function(Ce){return Ce!=="key"});P=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",D[z+P]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
6
+ <%s key={someKey} {...props} />`,P,z,ee,z),D[z+P]=!0)}if(z=null,M!==void 0&&(r(M),z=""+M),i(R)&&(r(R.key),z=""+R.key),"key"in R){M={};for(var le in R)le!=="key"&&(M[le]=R[le])}else M=R;return z&&s(M,typeof v=="function"?v.displayName||v.name||"Unknown":v),l(v,z,X,K,o(),M,ie,V)}function c(v){typeof v=="object"&&v!==null&&v.$$typeof===m&&v._store&&(v._store.validated=1)}var u=N,m=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),E=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),G=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,Z=Array.isArray,W=console.createTask?console.createTask:function(){return null};u={react_stack_bottom_frame:function(v){return v()}};var Y,H={},B=u.react_stack_bottom_frame.bind(u,a)(),O=W(n(a)),D={};at.Fragment=g,at.jsx=function(v,R,M,P,K){var X=1e4>G.recentlyCreatedOwnerStacks++;return f(v,R,M,!1,P,K,X?Error("react-stack-top-frame"):B,X?W(n(v)):O)},at.jsxs=function(v,R,M,P,K){var X=1e4>G.recentlyCreatedOwnerStacks++;return f(v,R,M,!0,P,K,X?Error("react-stack-top-frame"):B,X?W(n(v)):O)}})()),at}var In;function ms(){return In||(In=1,process.env.NODE_ENV==="production"?kt.exports=fs():kt.exports=ps()),kt.exports}var k=ms();function gs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mr={exports:{}},it={},Fn;function hs(){if(Fn)return it;Fn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return it.Fragment=t,it.jsx=r,it.jsxs=r,it}var Ot={},Vn;function vs(){return Vn||(Vn=1,process.env.NODE_ENV!=="production"&&(function(){function e(v){if(v==null)return null;if(typeof v=="function")return v.$$typeof===U?null:v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case g:return"Fragment";case w:return"Profiler";case y:return"StrictMode";case C:return"Suspense";case j:return"SuspenseList";case I:return"Activity"}if(typeof v=="object")switch(typeof v.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case h:return"Portal";case E:return(v.displayName||"Context")+".Provider";case x:return(v._context.displayName||"Context")+".Consumer";case _:var R=v.render;return v=v.displayName,v||(v=R.displayName||R.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case T:return R=v.displayName||null,R!==null?R:e(v.type)||"Memo";case S:R=v._payload,v=v._init;try{return e(v(R))}catch{}}return null}function t(v){return""+v}function r(v){try{t(v);var R=!1}catch{R=!0}if(R){R=console;var M=R.error,P=typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return M.call(R,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P),t(v)}}function n(v){if(v===g)return"<>";if(typeof v=="object"&&v!==null&&v.$$typeof===S)return"<...>";try{var R=e(v);return R?"<"+R+">":"<...>"}catch{return"<...>"}}function o(){var v=G.A;return v===null?null:v.getOwner()}function a(){return Error("react-stack-top-frame")}function i(v){if(q.call(v,"key")){var R=Object.getOwnPropertyDescriptor(v,"key").get;if(R&&R.isReactWarning)return!1}return v.key!==void 0}function s(v,R){function M(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",R))}M.isReactWarning=!0,Object.defineProperty(v,"key",{get:M,configurable:!0})}function d(){var v=e(this.type);return H[v]||(H[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function l(v,R,M,P,K,X,ie,V){return M=X.ref,v={$$typeof:m,type:v,key:R,props:X,_owner:K},(M!==void 0?M:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:d}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ie}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function f(v,R,M,P,K,X,ie,V){var z=R.children;if(z!==void 0)if(P)if(Z(z)){for(P=0;P<z.length;P++)c(z[P]);Object.freeze&&Object.freeze(z)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(z);if(q.call(R,"key")){z=e(v);var ee=Object.keys(R).filter(function(Ce){return Ce!=="key"});P=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",D[z+P]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
7
7
  let props = %s;
8
8
  <%s {...props} />
9
9
  React keys must be passed directly to JSX without using spread:
10
10
  let props = %s;
11
- <%s key={someKey} {...props} />`,P,z,ee,z),D[z+P]=!0)}if(z=null,M!==void 0&&(r(M),z=""+M),i(O)&&(r(O.key),z=""+O.key),"key"in O){M={};for(var le in O)le!=="key"&&(M[le]=O[le])}else M=O;return z&&s(M,typeof v=="function"?v.displayName||v.name||"Unknown":v),l(v,z,X,K,o(),M,ae,V)}function c(v){typeof v=="object"&&v!==null&&v.$$typeof===m&&v._store&&(v._store.validated=1)}var u=N,m=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),E=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),G=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,Z=Array.isArray,W=console.createTask?console.createTask:function(){return null};u={react_stack_bottom_frame:function(v){return v()}};var Y,H={},B=u.react_stack_bottom_frame.bind(u,a)(),k=W(n(a)),D={};St.Fragment=g,St.jsx=function(v,O,M,P,K){var X=1e4>G.recentlyCreatedOwnerStacks++;return f(v,O,M,!1,P,K,X?Error("react-stack-top-frame"):B,X?W(n(v)):k)},St.jsxs=function(v,O,M,P,K){var X=1e4>G.recentlyCreatedOwnerStacks++;return f(v,O,M,!0,P,K,X?Error("react-stack-top-frame"):B,X?W(n(v)):k)}})()),St}var Vn;function ys(){return Vn||(Vn=1,process.env.NODE_ENV==="production"?fr.exports=hs():fr.exports=vs()),fr.exports}var b=ys();function zn(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=zn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function $n(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=zn(e))&&(n&&(n+=" "),n+=t);return n}const Wn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Un=$n,bs=(e,t)=>r=>{var n;if(t?.variants==null)return Un(e,r?.class,r?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(l=>{const f=r?.[l],c=a?.[l];if(f===null)return null;const u=Wn(f)||Wn(c);return o[l][u]}),s=r&&Object.entries(r).reduce((l,f)=>{let[c,u]=f;return u===void 0||(l[c]=u),l},{}),d=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,f)=>{let{class:c,className:u,...m}=f;return Object.entries(m).every(h=>{let[g,y]=h;return Array.isArray(y)?y.includes({...a,...s}[g]):{...a,...s}[g]===y})?[...l,c,u]:l},[]);return Un(e,i,d,r?.class,r?.className)},pr="-",ws=e=>{const t=_s(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const a=o.split(pr);return a[0]===""&&a.length!==1&&a.shift(),Gn(a,t)||xs(o)},getConflictingClassGroupIds:(o,a)=>{const i=r[o]||[];return a&&n[o]?[...i,...n[o]]:i}}},Gn=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Gn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(pr);return t.validators.find(({validator:i})=>i(a))?.classGroupId},Hn=/^\[(.+)\]$/,xs=e=>{if(Hn.test(e)){const t=Hn.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},_s=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)mr(r[o],n,o,t);return n},mr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Bn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Es(o)){mr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{mr(i,Bn(t,a),r,n)})})},Bn=(e,t)=>{let r=e;return t.split(pr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Es=e=>e.isThemeGetter,Ss=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)}}},gr="!",hr=":",ks=hr.length,Os=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,s=0,d=0,l;for(let h=0;h<o.length;h++){let g=o[h];if(i===0&&s===0){if(g===hr){a.push(o.slice(d,h)),d=h+ks;continue}if(g==="/"){l=h;continue}}g==="["?i++:g==="]"?i--:g==="("?s++:g===")"&&s--}const f=a.length===0?o:o.substring(d),c=Rs(f),u=c!==f,m=l&&l>d?l-d:void 0;return{modifiers:a,hasImportantModifier:u,baseClassName:c,maybePostfixModifierPosition:m}};if(t){const o=t+hr,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},Rs=e=>e.endsWith(gr)?e.substring(0,e.length-1):e.startsWith(gr)?e.substring(1):e,Cs=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const n=[];let o=[];return r.forEach(a=>{a[0]==="["||t[a]?(n.push(...o.sort(),a),o=[]):o.push(a)}),n.push(...o.sort()),n}},Ts=e=>({cache:Ss(e.cacheSize),parseClassName:Os(e),sortModifiers:Cs(e),...ws(e)}),js=/\s+/,Ns=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(js);let d="";for(let l=s.length-1;l>=0;l-=1){const f=s[l],{isExternal:c,modifiers:u,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:g}=r(f);if(c){d=f+(d.length>0?" "+d:d);continue}let y=!!g,w=n(y?h.substring(0,g):h);if(!w){if(!y){d=f+(d.length>0?" "+d:d);continue}if(w=n(h),!w){d=f+(d.length>0?" "+d:d);continue}y=!1}const x=a(u).join(":"),E=m?x+gr:x,_=E+w;if(i.includes(_))continue;i.push(_);const R=o(w,y);for(let C=0;C<R.length;++C){const T=R[C];i.push(E+T)}d=f+(d.length>0?" "+d:d)}return d};function Ds(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Kn(t))&&(n&&(n+=" "),n+=r);return n}const Kn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Kn(e[n]))&&(r&&(r+=" "),r+=t);return r};function As(e,...t){let r,n,o,a=i;function i(d){const l=t.reduce((f,c)=>c(f),e());return r=Ts(l),n=r.cache.get,o=r.cache.set,a=s,s(d)}function s(d){const l=n(d);if(l)return l;const f=Ns(d,r);return o(d,f),f}return function(){return a(Ds.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Yn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ls=/^\d+\/\d+$/,Ms=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ps=/\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$/,Is=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$e=e=>Ls.test(e),$=e=>!!e&&!Number.isNaN(Number(e)),Te=e=>!!e&&Number.isInteger(Number(e)),vr=e=>e.endsWith("%")&&$(e.slice(0,-1)),_e=e=>Ms.test(e),zs=()=>!0,$s=e=>Ps.test(e)&&!Is.test(e),Xn=()=>!1,Ws=e=>Fs.test(e),Us=e=>Vs.test(e),Gs=e=>!A(e)&&!L(e),Hs=e=>We(e,to,Xn),A=e=>Yn.test(e),Le=e=>We(e,ro,$s),yr=e=>We(e,Xs,$),Zn=e=>We(e,Qn,Xn),Bs=e=>We(e,eo,Us),kt=e=>We(e,no,Ws),L=e=>qn.test(e),st=e=>Ue(e,ro),Ks=e=>Ue(e,Zs),Jn=e=>Ue(e,Qn),Ys=e=>Ue(e,to),qs=e=>Ue(e,eo),Ot=e=>Ue(e,no,!0),We=(e,t,r)=>{const n=Yn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ue=(e,t,r=!1)=>{const n=qn.exec(e);return n?n[1]?t(n[1]):r:!1},Qn=e=>e==="position"||e==="percentage",eo=e=>e==="image"||e==="url",to=e=>e==="length"||e==="size"||e==="bg-size",ro=e=>e==="length",Xs=e=>e==="number",Zs=e=>e==="family-name",no=e=>e==="shadow",Js=()=>{const e=te("color"),t=te("font"),r=te("text"),n=te("font-weight"),o=te("tracking"),a=te("leading"),i=te("breakpoint"),s=te("container"),d=te("spacing"),l=te("radius"),f=te("shadow"),c=te("inset-shadow"),u=te("text-shadow"),m=te("drop-shadow"),h=te("blur"),g=te("perspective"),y=te("aspect"),w=te("ease"),x=te("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[..._(),L,A],C=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],S=()=>[L,A,d],I=()=>[$e,"full","auto",...S()],U=()=>[Te,"none","subgrid",L,A],G=()=>["auto",{span:["full",Te,L,A]},Te,L,A],q=()=>[Te,"auto",L,A],Z=()=>["auto","min","max","fr",L,A],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...S()],B=()=>[$e,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],k=()=>[e,L,A],D=()=>[..._(),Jn,Zn,{position:[L,A]}],v=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",Ys,Hs,{size:[L,A]}],M=()=>[vr,st,Le],P=()=>["","none","full",l,L,A],K=()=>["",$,st,Le],X=()=>["solid","dashed","dotted","double"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>[$,vr,Jn,Zn],z=()=>["","none",h,L,A],ee=()=>["none",$,L,A],le=()=>["none",$,L,A],Ce=()=>[$,L,A],nt=()=>[$e,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[zs],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[Gs],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",$],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$e,A,L,y]}],container:["container"],columns:[{columns:[$,A,L,s]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Te,"auto",L,A]}],basis:[{basis:[$e,"full","auto",s,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$,$e,"auto","initial","none",A]}],grow:[{grow:["",$,L,A]}],shrink:[{shrink:["",$,L,A]}],order:[{order:[Te,"first","last","none",L,A]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],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:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[s,"screen",...B()]}],"min-w":[{"min-w":[s,"screen","none",...B()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",r,st,Le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,L,yr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vr,A]}],"font-family":[{font:[Ks,A,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,L,A]}],"line-clamp":[{"line-clamp":[$,"none",L,yr]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":["none",L,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,A]}],"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:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[$,"from-font","auto",L,Le]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[$,"auto",L,A]}],"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",L,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:v()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Te,L,A],radial:["",L,A],conic:[Te,L,A]},qs,Bs]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"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:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$,L,A]}],"outline-w":[{outline:["",$,st,Le]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",f,Ot,kt]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",c,Ot,kt]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[$,Le]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",u,Ot,kt]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[$,L,A]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[$]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[L,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[$]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:v()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,A]}],filter:[{filter:["","none",L,A]}],blur:[{blur:z()}],brightness:[{brightness:[$,L,A]}],contrast:[{contrast:[$,L,A]}],"drop-shadow":[{"drop-shadow":["","none",m,Ot,kt]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",$,L,A]}],"hue-rotate":[{"hue-rotate":[$,L,A]}],invert:[{invert:["",$,L,A]}],saturate:[{saturate:[$,L,A]}],sepia:[{sepia:["",$,L,A]}],"backdrop-filter":[{"backdrop-filter":["","none",L,A]}],"backdrop-blur":[{"backdrop-blur":z()}],"backdrop-brightness":[{"backdrop-brightness":[$,L,A]}],"backdrop-contrast":[{"backdrop-contrast":[$,L,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$,L,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$,L,A]}],"backdrop-invert":[{"backdrop-invert":["",$,L,A]}],"backdrop-opacity":[{"backdrop-opacity":[$,L,A]}],"backdrop-saturate":[{"backdrop-saturate":[$,L,A]}],"backdrop-sepia":[{"backdrop-sepia":["",$,L,A]}],"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",L,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$,"initial",L,A]}],ease:[{ease:["linear","initial",w,L,A]}],delay:[{delay:[$,L,A]}],animate:[{animate:["none",x,L,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,L,A]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[L,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:nt()}],"translate-x":[{"translate-x":nt()}],"translate-y":[{"translate-y":nt()}],"translate-z":[{"translate-z":nt()}],"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",L,A]}],"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",L,A]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[$,st,Le,yr]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Qs=As(Js);function ne(...e){return Qs($n(e))}function el(e,t){const r=p.createContext(t),n=a=>{const{children:i,...s}=a,d=p.useMemo(()=>s,Object.values(s));return b.jsx(r.Provider,{value:d,children:i})};n.displayName=e+"Provider";function o(a){const i=p.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 Ee(e,t=[]){let r=[];function n(a,i){const s=p.createContext(i),d=r.length;r=[...r,i];const l=c=>{const{scope:u,children:m,...h}=c,g=u?.[e]?.[d]||s,y=p.useMemo(()=>h,Object.values(h));return b.jsx(g.Provider,{value:y,children:m})};l.displayName=a+"Provider";function f(c,u){const m=u?.[e]?.[d]||s,h=p.useContext(m);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[l,f]}const o=()=>{const a=r.map(i=>p.createContext(i));return function(i){const s=i?.[e]||a;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:s}}),[i,s])}};return o.scopeName=e,[n,tl(o,...t)]}function tl(...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(o){const a=n.reduce((i,{useScope:s,scopeName:d})=>{const l=s(o)[`__scope${d}`];return{...i,...l}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function Se(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>t.current?.(...r),[])}var fe=globalThis?.document?p.useLayoutEffect:()=>{},Rt={exports:{}},re={},oo;function rl(){if(oo)return re;oo=1;var e=N;function t(d){var l="https://react.dev/errors/"+d;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+d+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(d,l,f){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:c==null?null:""+c,children:d,containerInfo:l,implementation:f}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(d,l){if(d==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}return re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,re.createPortal=function(d,l){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(t(299));return a(d,l,null,f)},re.flushSync=function(d){var l=i.T,f=n.p;try{if(i.T=null,n.p=2,d)return d()}finally{i.T=l,n.p=f,n.d.f()}},re.preconnect=function(d,l){typeof d=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,n.d.C(d,l))},re.prefetchDNS=function(d){typeof d=="string"&&n.d.D(d)},re.preinit=function(d,l){if(typeof d=="string"&&l&&typeof l.as=="string"){var f=l.as,c=s(f,l.crossOrigin),u=typeof l.integrity=="string"?l.integrity:void 0,m=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;f==="style"?n.d.S(d,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:c,integrity:u,fetchPriority:m}):f==="script"&&n.d.X(d,{crossOrigin:c,integrity:u,fetchPriority:m,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},re.preinitModule=function(d,l){if(typeof d=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var f=s(l.as,l.crossOrigin);n.d.M(d,{crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l==null&&n.d.M(d)},re.preload=function(d,l){if(typeof d=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var f=l.as,c=s(f,l.crossOrigin);n.d.L(d,f,{crossOrigin:c,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0})}},re.preloadModule=function(d,l){if(typeof d=="string")if(l){var f=s(l.as,l.crossOrigin);n.d.m(d,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else n.d.m(d)},re.requestFormReset=function(d){n.d.r(d)},re.unstable_batchedUpdates=function(d,l){return d(l)},re.useFormState=function(d,l,f){return i.H.useFormState(d,l,f)},re.useFormStatus=function(){return i.H.useHostTransitionStatus()},re.version="19.1.1",re}var oe={},ao;function nl(){return ao||(ao=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(c){return""+c}function r(c,u,m){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(h);var g=!1}catch{g=!0}return g&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object"),t(h)),{$$typeof:l,key:h==null?null:""+h,children:c,containerInfo:u,implementation:m}}function n(c,u){if(c==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}function o(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":'something with type "'+typeof c+'"'}function a(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":typeof c=="string"?JSON.stringify(c):typeof c=="number"?"`"+c+"`":'something with type "'+typeof c+'"'}function i(){var c=f.H;return c===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
11
+ <%s key={someKey} {...props} />`,P,z,ee,z),D[z+P]=!0)}if(z=null,M!==void 0&&(r(M),z=""+M),i(R)&&(r(R.key),z=""+R.key),"key"in R){M={};for(var le in R)le!=="key"&&(M[le]=R[le])}else M=R;return z&&s(M,typeof v=="function"?v.displayName||v.name||"Unknown":v),l(v,z,X,K,o(),M,ie,V)}function c(v){typeof v=="object"&&v!==null&&v.$$typeof===m&&v._store&&(v._store.validated=1)}var u=N,m=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),E=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),G=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,Z=Array.isArray,W=console.createTask?console.createTask:function(){return null};u={react_stack_bottom_frame:function(v){return v()}};var Y,H={},B=u.react_stack_bottom_frame.bind(u,a)(),O=W(n(a)),D={};Ot.Fragment=g,Ot.jsx=function(v,R,M,P,K){var X=1e4>G.recentlyCreatedOwnerStacks++;return f(v,R,M,!1,P,K,X?Error("react-stack-top-frame"):B,X?W(n(v)):O)},Ot.jsxs=function(v,R,M,P,K){var X=1e4>G.recentlyCreatedOwnerStacks++;return f(v,R,M,!0,P,K,X?Error("react-stack-top-frame"):B,X?W(n(v)):O)}})()),Ot}var zn;function ys(){return zn||(zn=1,process.env.NODE_ENV==="production"?mr.exports=hs():mr.exports=vs()),mr.exports}var b=ys();function $n(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=$n(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Wn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=$n(e))&&(n&&(n+=" "),n+=t);return n}const Un=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Gn=Wn,bs=(e,t)=>r=>{var n;if(t?.variants==null)return Gn(e,r?.class,r?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(l=>{const f=r?.[l],c=a?.[l];if(f===null)return null;const u=Un(f)||Un(c);return o[l][u]}),s=r&&Object.entries(r).reduce((l,f)=>{let[c,u]=f;return u===void 0||(l[c]=u),l},{}),d=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,f)=>{let{class:c,className:u,...m}=f;return Object.entries(m).every(h=>{let[g,y]=h;return Array.isArray(y)?y.includes({...a,...s}[g]):{...a,...s}[g]===y})?[...l,c,u]:l},[]);return Gn(e,i,d,r?.class,r?.className)},gr="-",ws=e=>{const t=_s(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const a=o.split(gr);return a[0]===""&&a.length!==1&&a.shift(),Hn(a,t)||xs(o)},getConflictingClassGroupIds:(o,a)=>{const i=r[o]||[];return a&&n[o]?[...i,...n[o]]:i}}},Hn=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Hn(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(gr);return t.validators.find(({validator:i})=>i(a))?.classGroupId},Bn=/^\[(.+)\]$/,xs=e=>{if(Bn.test(e)){const t=Bn.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},_s=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)hr(r[o],n,o,t);return n},hr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Kn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(Es(o)){hr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{hr(i,Kn(t,a),r,n)})})},Kn=(e,t)=>{let r=e;return t.split(gr).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Es=e=>e.isThemeGetter,Ss=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)}}},vr="!",yr=":",ks=yr.length,Os=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,s=0,d=0,l;for(let h=0;h<o.length;h++){let g=o[h];if(i===0&&s===0){if(g===yr){a.push(o.slice(d,h)),d=h+ks;continue}if(g==="/"){l=h;continue}}g==="["?i++:g==="]"?i--:g==="("?s++:g===")"&&s--}const f=a.length===0?o:o.substring(d),c=Rs(f),u=c!==f,m=l&&l>d?l-d:void 0;return{modifiers:a,hasImportantModifier:u,baseClassName:c,maybePostfixModifierPosition:m}};if(t){const o=t+yr,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},Rs=e=>e.endsWith(vr)?e.substring(0,e.length-1):e.startsWith(vr)?e.substring(1):e,Cs=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const n=[];let o=[];return r.forEach(a=>{a[0]==="["||t[a]?(n.push(...o.sort(),a),o=[]):o.push(a)}),n.push(...o.sort()),n}},js=e=>({cache:Ss(e.cacheSize),parseClassName:Os(e),sortModifiers:Cs(e),...ws(e)}),Ts=/\s+/,Ns=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(Ts);let d="";for(let l=s.length-1;l>=0;l-=1){const f=s[l],{isExternal:c,modifiers:u,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:g}=r(f);if(c){d=f+(d.length>0?" "+d:d);continue}let y=!!g,w=n(y?h.substring(0,g):h);if(!w){if(!y){d=f+(d.length>0?" "+d:d);continue}if(w=n(h),!w){d=f+(d.length>0?" "+d:d);continue}y=!1}const x=a(u).join(":"),E=m?x+vr:x,_=E+w;if(i.includes(_))continue;i.push(_);const C=o(w,y);for(let j=0;j<C.length;++j){const T=C[j];i.push(E+T)}d=f+(d.length>0?" "+d:d)}return d};function Ds(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Yn(t))&&(n&&(n+=" "),n+=r);return n}const Yn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Yn(e[n]))&&(r&&(r+=" "),r+=t);return r};function As(e,...t){let r,n,o,a=i;function i(d){const l=t.reduce((f,c)=>c(f),e());return r=js(l),n=r.cache.get,o=r.cache.set,a=s,s(d)}function s(d){const l=n(d);if(l)return l;const f=Ns(d,r);return o(d,f),f}return function(){return a(Ds.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},qn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ls=/^\d+\/\d+$/,Ms=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ps=/\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$/,Is=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$e=e=>Ls.test(e),$=e=>!!e&&!Number.isNaN(Number(e)),je=e=>!!e&&Number.isInteger(Number(e)),br=e=>e.endsWith("%")&&$(e.slice(0,-1)),_e=e=>Ms.test(e),zs=()=>!0,$s=e=>Ps.test(e)&&!Is.test(e),Zn=()=>!1,Ws=e=>Fs.test(e),Us=e=>Vs.test(e),Gs=e=>!A(e)&&!L(e),Hs=e=>We(e,ro,Zn),A=e=>qn.test(e),Le=e=>We(e,no,$s),wr=e=>We(e,Xs,$),Jn=e=>We(e,eo,Zn),Bs=e=>We(e,to,Us),Rt=e=>We(e,oo,Ws),L=e=>Xn.test(e),st=e=>Ue(e,no),Ks=e=>Ue(e,Zs),Qn=e=>Ue(e,eo),Ys=e=>Ue(e,ro),qs=e=>Ue(e,to),Ct=e=>Ue(e,oo,!0),We=(e,t,r)=>{const n=qn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ue=(e,t,r=!1)=>{const n=Xn.exec(e);return n?n[1]?t(n[1]):r:!1},eo=e=>e==="position"||e==="percentage",to=e=>e==="image"||e==="url",ro=e=>e==="length"||e==="size"||e==="bg-size",no=e=>e==="length",Xs=e=>e==="number",Zs=e=>e==="family-name",oo=e=>e==="shadow",Js=()=>{const e=te("color"),t=te("font"),r=te("text"),n=te("font-weight"),o=te("tracking"),a=te("leading"),i=te("breakpoint"),s=te("container"),d=te("spacing"),l=te("radius"),f=te("shadow"),c=te("inset-shadow"),u=te("text-shadow"),m=te("drop-shadow"),h=te("blur"),g=te("perspective"),y=te("aspect"),w=te("ease"),x=te("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[..._(),L,A],j=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],S=()=>[L,A,d],I=()=>[$e,"full","auto",...S()],U=()=>[je,"none","subgrid",L,A],G=()=>["auto",{span:["full",je,L,A]},je,L,A],q=()=>[je,"auto",L,A],Z=()=>["auto","min","max","fr",L,A],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...S()],B=()=>[$e,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],O=()=>[e,L,A],D=()=>[..._(),Qn,Jn,{position:[L,A]}],v=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",Ys,Hs,{size:[L,A]}],M=()=>[br,st,Le],P=()=>["","none","full",l,L,A],K=()=>["",$,st,Le],X=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>[$,br,Qn,Jn],z=()=>["","none",h,L,A],ee=()=>["none",$,L,A],le=()=>["none",$,L,A],Ce=()=>[$,L,A],nt=()=>[$e,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[zs],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[Gs],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",$],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$e,A,L,y]}],container:["container"],columns:[{columns:[$,A,L,s]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[je,"auto",L,A]}],basis:[{basis:[$e,"full","auto",s,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$,$e,"auto","initial","none",A]}],grow:[{grow:["",$,L,A]}],shrink:[{shrink:["",$,L,A]}],order:[{order:[je,"first","last","none",L,A]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],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:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[s,"screen",...B()]}],"min-w":[{"min-w":[s,"screen","none",...B()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",r,st,Le]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,L,wr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",br,A]}],"font-family":[{font:[Ks,A,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,L,A]}],"line-clamp":[{"line-clamp":[$,"none",L,wr]}],leading:[{leading:[a,...S()]}],"list-image":[{"list-image":["none",L,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[$,"from-font","auto",L,Le]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[$,"auto",L,A]}],"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",L,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",L,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:v()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},je,L,A],radial:["",L,A],conic:[je,L,A]},qs,Bs]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:P()}],"rounded-s":[{"rounded-s":P()}],"rounded-e":[{"rounded-e":P()}],"rounded-t":[{"rounded-t":P()}],"rounded-r":[{"rounded-r":P()}],"rounded-b":[{"rounded-b":P()}],"rounded-l":[{"rounded-l":P()}],"rounded-ss":[{"rounded-ss":P()}],"rounded-se":[{"rounded-se":P()}],"rounded-ee":[{"rounded-ee":P()}],"rounded-es":[{"rounded-es":P()}],"rounded-tl":[{"rounded-tl":P()}],"rounded-tr":[{"rounded-tr":P()}],"rounded-br":[{"rounded-br":P()}],"rounded-bl":[{"rounded-bl":P()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$,L,A]}],"outline-w":[{outline:["",$,st,Le]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",f,Ct,Rt]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",c,Ct,Rt]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[$,Le]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",u,Ct,Rt]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[$,L,A]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[$]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[L,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[$]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:v()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,A]}],filter:[{filter:["","none",L,A]}],blur:[{blur:z()}],brightness:[{brightness:[$,L,A]}],contrast:[{contrast:[$,L,A]}],"drop-shadow":[{"drop-shadow":["","none",m,Ct,Rt]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",$,L,A]}],"hue-rotate":[{"hue-rotate":[$,L,A]}],invert:[{invert:["",$,L,A]}],saturate:[{saturate:[$,L,A]}],sepia:[{sepia:["",$,L,A]}],"backdrop-filter":[{"backdrop-filter":["","none",L,A]}],"backdrop-blur":[{"backdrop-blur":z()}],"backdrop-brightness":[{"backdrop-brightness":[$,L,A]}],"backdrop-contrast":[{"backdrop-contrast":[$,L,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$,L,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$,L,A]}],"backdrop-invert":[{"backdrop-invert":["",$,L,A]}],"backdrop-opacity":[{"backdrop-opacity":[$,L,A]}],"backdrop-saturate":[{"backdrop-saturate":[$,L,A]}],"backdrop-sepia":[{"backdrop-sepia":["",$,L,A]}],"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",L,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$,"initial",L,A]}],ease:[{ease:["linear","initial",w,L,A]}],delay:[{delay:[$,L,A]}],animate:[{animate:["none",x,L,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,L,A]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[L,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:nt()}],"translate-x":[{"translate-x":nt()}],"translate-y":[{"translate-y":nt()}],"translate-z":[{"translate-z":nt()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"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",L,A]}],"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",L,A]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[$,st,Le,wr]}],stroke:[{stroke:["none",...O()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Qs=As(Js);function re(...e){return Qs(Wn(e))}function el(e,t){const r=p.createContext(t),n=a=>{const{children:i,...s}=a,d=p.useMemo(()=>s,Object.values(s));return b.jsx(r.Provider,{value:d,children:i})};n.displayName=e+"Provider";function o(a){const i=p.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 Ee(e,t=[]){let r=[];function n(a,i){const s=p.createContext(i),d=r.length;r=[...r,i];const l=c=>{const{scope:u,children:m,...h}=c,g=u?.[e]?.[d]||s,y=p.useMemo(()=>h,Object.values(h));return b.jsx(g.Provider,{value:y,children:m})};l.displayName=a+"Provider";function f(c,u){const m=u?.[e]?.[d]||s,h=p.useContext(m);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[l,f]}const o=()=>{const a=r.map(i=>p.createContext(i));return function(i){const s=i?.[e]||a;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:s}}),[i,s])}};return o.scopeName=e,[n,tl(o,...t)]}function tl(...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(o){const a=n.reduce((i,{useScope:s,scopeName:d})=>{const l=s(o)[`__scope${d}`];return{...i,...l}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function Se(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...r)=>t.current?.(...r),[])}var fe=globalThis?.document?p.useLayoutEffect:()=>{},jt={exports:{}},ne={},ao;function rl(){if(ao)return ne;ao=1;var e=N;function t(d){var l="https://react.dev/errors/"+d;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+d+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(d,l,f){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:c==null?null:""+c,children:d,containerInfo:l,implementation:f}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(d,l){if(d==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,ne.createPortal=function(d,l){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(t(299));return a(d,l,null,f)},ne.flushSync=function(d){var l=i.T,f=n.p;try{if(i.T=null,n.p=2,d)return d()}finally{i.T=l,n.p=f,n.d.f()}},ne.preconnect=function(d,l){typeof d=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,n.d.C(d,l))},ne.prefetchDNS=function(d){typeof d=="string"&&n.d.D(d)},ne.preinit=function(d,l){if(typeof d=="string"&&l&&typeof l.as=="string"){var f=l.as,c=s(f,l.crossOrigin),u=typeof l.integrity=="string"?l.integrity:void 0,m=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;f==="style"?n.d.S(d,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:c,integrity:u,fetchPriority:m}):f==="script"&&n.d.X(d,{crossOrigin:c,integrity:u,fetchPriority:m,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},ne.preinitModule=function(d,l){if(typeof d=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var f=s(l.as,l.crossOrigin);n.d.M(d,{crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l==null&&n.d.M(d)},ne.preload=function(d,l){if(typeof d=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var f=l.as,c=s(f,l.crossOrigin);n.d.L(d,f,{crossOrigin:c,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0})}},ne.preloadModule=function(d,l){if(typeof d=="string")if(l){var f=s(l.as,l.crossOrigin);n.d.m(d,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else n.d.m(d)},ne.requestFormReset=function(d){n.d.r(d)},ne.unstable_batchedUpdates=function(d,l){return d(l)},ne.useFormState=function(d,l,f){return i.H.useFormState(d,l,f)},ne.useFormStatus=function(){return i.H.useHostTransitionStatus()},ne.version="19.1.1",ne}var ae={},io;function nl(){return io||(io=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(c){return""+c}function r(c,u,m){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(h);var g=!1}catch{g=!0}return g&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object"),t(h)),{$$typeof:l,key:h==null?null:""+h,children:c,containerInfo:u,implementation:m}}function n(c,u){if(c==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}function o(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":'something with type "'+typeof c+'"'}function a(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":typeof c=="string"?JSON.stringify(c):typeof c=="number"?"`"+c+"`":'something with type "'+typeof c+'"'}function i(){var c=f.H;return c===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
12
12
  1. You might have mismatching versions of React and the renderer (such as React DOM)
13
13
  2. You might be breaking the Rules of Hooks
14
14
  3. You might have more than one copy of React in the same app
15
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=N,d={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},l=Symbol.for("react.portal"),f=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),oe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,oe.createPortal=function(c,u){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error("Target container is not a DOM element.");return r(c,u,null,m)},oe.flushSync=function(c){var u=f.T,m=d.p;try{if(f.T=null,d.p=2,c)return c()}finally{f.T=u,d.p=m,d.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},oe.preconnect=function(c,u){typeof c=="string"&&c?u!=null&&typeof u!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(u)):u!=null&&typeof u.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(u.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(c)),typeof c=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,d.d.C(c,u))},oe.prefetchDNS=function(c){if(typeof c!="string"||!c)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(c));else if(1<arguments.length){var u=arguments[1];typeof u=="object"&&u.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(u)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(u))}typeof c=="string"&&d.d.D(c)},oe.preinit=function(c,u){if(typeof c=="string"&&c?u==null||typeof u!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(u)):u.as!=="style"&&u.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(u.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(c)),typeof c=="string"&&u&&typeof u.as=="string"){var m=u.as,h=n(m,u.crossOrigin),g=typeof u.integrity=="string"?u.integrity:void 0,y=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;m==="style"?d.d.S(c,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:g,fetchPriority:y}):m==="script"&&d.d.X(c,{crossOrigin:h,integrity:g,fetchPriority:y,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},oe.preinitModule=function(c,u){var m="";typeof c=="string"&&c||(m+=" The `href` argument encountered was "+o(c)+"."),u!==void 0&&typeof u!="object"?m+=" The `options` argument encountered was "+o(u)+".":u&&"as"in u&&u.as!=="script"&&(m+=" The `as` option encountered was "+a(u.as)+"."),m?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",m):(m=u&&typeof u.as=="string"?u.as:"script",m)==="script"||(m=a(m),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',m,c)),typeof c=="string"&&(typeof u=="object"&&u!==null?(u.as==null||u.as==="script")&&(m=n(u.as,u.crossOrigin),d.d.M(c,{crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})):u==null&&d.d.M(c))},oe.preload=function(c,u){var m="";if(typeof c=="string"&&c||(m+=" The `href` argument encountered was "+o(c)+"."),u==null||typeof u!="object"?m+=" The `options` argument encountered was "+o(u)+".":typeof u.as=="string"&&u.as||(m+=" The `as` option encountered was "+o(u.as)+"."),m&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',m),typeof c=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){m=u.as;var h=n(m,u.crossOrigin);d.d.L(c,m,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},oe.preloadModule=function(c,u){var m="";typeof c=="string"&&c||(m+=" The `href` argument encountered was "+o(c)+"."),u!==void 0&&typeof u!="object"?m+=" The `options` argument encountered was "+o(u)+".":u&&"as"in u&&typeof u.as!="string"&&(m+=" The `as` option encountered was "+o(u.as)+"."),m&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',m),typeof c=="string"&&(u?(m=n(u.as,u.crossOrigin),d.d.m(c,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0})):d.d.m(c))},oe.requestFormReset=function(c){d.d.r(c)},oe.unstable_batchedUpdates=function(c,u){return c(u)},oe.useFormState=function(c,u,m){return i().useFormState(c,u,m)},oe.useFormStatus=function(){return i().useHostTransitionStatus()},oe.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),oe}var io;function ol(){if(io)return Rt.exports;io=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),Rt.exports=rl()):Rt.exports=nl(),Rt.exports}var br=ol();const al=gs(br);function so(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lt(...e){return t=>{let r=!1;const n=e.map(o=>{const a=so(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():so(e[o],null)}}}}function Q(...e){return p.useCallback(lt(...e),e)}function Ge(e){const t=il(e),r=p.forwardRef((n,o)=>{const{children:a,...i}=n,s=p.Children.toArray(a),d=s.find(ll);if(d){const l=d.props.children,f=s.map(c=>c===d?p.Children.count(l)>1?p.Children.only(null):p.isValidElement(l)?l.props.children:null:c);return b.jsx(t,{...i,ref:o,children:p.isValidElement(l)?p.cloneElement(l,void 0,f):null})}return b.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var lo=Ge("Slot");function il(e){const t=p.forwardRef((r,n)=>{const{children:o,...a}=r;if(p.isValidElement(o)){const i=ul(o),s=cl(a,o.props);return o.type!==p.Fragment&&(s.ref=n?lt(n,i):i),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var co=Symbol("radix.slottable");function sl(e){const t=({children:r})=>b.jsx(b.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=co,t}function ll(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===co}function cl(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const s=a(...i);return o(...i),s}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ul(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var dl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=dl.reduce((e,t)=>{const r=Ge(`Primitive.${t}`),n=p.forwardRef((o,a)=>{const{asChild:i,...s}=o,d=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(d,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function uo(e,t){e&&br.flushSync(()=>e.dispatchEvent(t))}var wr={exports:{}},xr={},fo;function fl(){if(fo)return xr;fo=1;var e=N;function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(c,u){var m=u(),h=n({inst:{value:m,getSnapshot:u}}),g=h[0].inst,y=h[1];return a(function(){g.value=m,g.getSnapshot=u,d(g)&&y({inst:g})},[c,m,u]),o(function(){return d(g)&&y({inst:g}),c(function(){d(g)&&y({inst:g})})},[c]),i(m),m}function d(c){var u=c.getSnapshot;c=c.value;try{var m=u();return!r(c,m)}catch{return!0}}function l(c,u){return u()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:s;return xr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,xr}var po={},mo;function pl(){return mo||(mo=1,process.env.NODE_ENV!=="production"&&(function(){function e(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}function t(m,h){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=h();if(!c){var y=h();a(g,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}y=i({inst:{value:g,getSnapshot:h}});var w=y[0].inst,x=y[1];return d(function(){w.value=g,w.getSnapshot=h,r(w)&&x({inst:w})},[m,g,h]),s(function(){return r(w)&&x({inst:w}),m(function(){r(w)&&x({inst:w})})},[m]),l(g),g}function r(m){var h=m.getSnapshot;m=m.value;try{var g=h();return!a(m,g)}catch{return!0}}function n(m,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=N,a=typeof Object.is=="function"?Object.is:e,i=o.useState,s=o.useEffect,d=o.useLayoutEffect,l=o.useDebugValue,f=!1,c=!1,u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;po.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),po}var go;function ml(){return go||(go=1,process.env.NODE_ENV==="production"?wr.exports=fl():wr.exports=pl()),wr.exports}var gl=ml();function hl(){return gl.useSyncExternalStore(vl,()=>!0,()=>!1)}function vl(){return()=>{}}var _r="Avatar",[yl,Tm]=Ee(_r),[bl,ho]=yl(_r),wl=p.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=p.useState("idle");return b.jsx(bl,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:b.jsx(J.span,{...n,ref:t})})});wl.displayName=_r;var vo="AvatarImage",xl=p.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,i=ho(vo,r),s=El(n,a),d=Se(l=>{o(l),i.onImageLoadingStatusChange(l)});return fe(()=>{s!=="idle"&&d(s)},[s,d]),s==="loaded"?b.jsx(J.img,{...a,ref:t,src:n}):null});xl.displayName=vo;var yo="AvatarFallback",_l=p.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=ho(yo,r),[i,s]=p.useState(n===void 0);return p.useEffect(()=>{if(n!==void 0){const d=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(d)}},[n]),i&&a.imageLoadingStatus!=="loaded"?b.jsx(J.span,{...o,ref:t}):null});_l.displayName=yo;function bo(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function El(e,{referrerPolicy:t,crossOrigin:r}){const n=hl(),o=p.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[i,s]=p.useState(()=>bo(a,e));return fe(()=>{s(bo(a,e))},[a,e]),fe(()=>{const d=c=>()=>{s(c)};if(!a)return;const l=d("loaded"),f=d("error");return a.addEventListener("load",l),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",l),a.removeEventListener("error",f)}},[a,r,t]),i}const Sl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),wo=e=>{const t=kl(e);return t.charAt(0).toUpperCase()+t.slice(1)},xo=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Ol=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Rl={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"};const Cl=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},d)=>N.createElement("svg",{ref:d,...Rl,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:xo("lucide",o),...!a&&!Ol(s)&&{"aria-hidden":"true"},...s},[...i.map(([l,f])=>N.createElement(l,f)),...Array.isArray(a)?a:[a]])),He=(e,t)=>{const r=N.forwardRef(({className:n,...o},a)=>N.createElement(Cl,{ref:a,iconNode:t,className:xo(`lucide-${Sl(wo(e))}`,`lucide-${e}`,n),...o}));return r.displayName=wo(e),r};He("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),He("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),He("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),He("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"}]]),He("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),He("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);const Tl=bs("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Er({className:e,variant:t="default",size:r="default",asChild:n=!1,...o}){const a=n?lo:"button";return b.jsx(a,{"data-slot":"button","data-variant":t,"data-size":r,className:ne(Tl({variant:t,size:r,className:e})),...o})}function Sr({className:e,...t}){return b.jsx("div",{"data-slot":"card",className:ne("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function kr({className:e,...t}){return b.jsx("div",{"data-slot":"card-header",className:ne("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Or({className:e,...t}){return b.jsx("div",{"data-slot":"card-title",className:ne("leading-none font-semibold",e),...t})}function Rr({className:e,...t}){return b.jsx("div",{"data-slot":"card-description",className:ne("text-muted-foreground text-sm",e),...t})}function Cr({className:e,...t}){return b.jsx("div",{"data-slot":"card-content",className:ne("px-6",e),...t})}function F(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var jl=p[" useInsertionEffect ".trim().toString()]||fe;function _o({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,i]=Nl({defaultProp:t,onChange:r}),s=e!==void 0,d=s?e:o;{const f=p.useRef(e!==void 0);p.useEffect(()=>{const c=f.current;c!==s&&console.warn(`${n} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=s},[s,n])}const l=p.useCallback(f=>{if(s){const c=Dl(f)?f(e):f;c!==e&&i.current?.(c)}else a(f)},[s,e,a,i]);return[d,l]}function Nl({defaultProp:e,onChange:t}){const[r,n]=p.useState(e),o=p.useRef(r),a=p.useRef(t);return jl(()=>{a.current=t},[t]),p.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function Dl(e){return typeof e=="function"}function Al(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var je=e=>{const{present:t,children:r}=e,n=Ll(t),o=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),a=Q(n.ref,Ml(o));return typeof r=="function"||n.isPresent?p.cloneElement(o,{ref:a}):null};je.displayName="Presence";function Ll(e){const[t,r]=p.useState(),n=p.useRef(null),o=p.useRef(e),a=p.useRef("none"),i=e?"mounted":"unmounted",[s,d]=Al(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const l=Ct(n.current);a.current=s==="mounted"?l:"none"},[s]),fe(()=>{const l=n.current,f=o.current;if(f!==e){const c=a.current,u=Ct(l);e?d("MOUNT"):u==="none"||l?.display==="none"?d("UNMOUNT"):d(f&&c!==u?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),fe(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,c=m=>{const h=Ct(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&h&&(d("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},u=m=>{m.target===t&&(a.current=Ct(n.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:p.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Ct(e){return e?.animationName||"none"}function Ml(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Pl=p[" useId ".trim().toString()]||(()=>{}),Il=0;function Eo(e){const[t,r]=p.useState(Pl());return fe(()=>{r(n=>n??String(Il++))},[e]),e||(t?`radix-${t}`:"")}var Tt="Collapsible",[Fl,Pm]=Ee(Tt),[Vl,Tr]=Fl(Tt),zl=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[d,l]=_o({prop:n,defaultProp:o??!1,onChange:i,caller:Tt});return b.jsx(Vl,{scope:r,disabled:a,contentId:Eo(),open:d,onOpenToggle:p.useCallback(()=>l(f=>!f),[l]),children:b.jsx(J.div,{"data-state":Nr(d),"data-disabled":a?"":void 0,...s,ref:t})})});zl.displayName=Tt;var So="CollapsibleTrigger",$l=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Tr(So,r);return b.jsx(J.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Nr(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:F(e.onClick,o.onOpenToggle)})});$l.displayName=So;var jr="CollapsibleContent",Wl=p.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Tr(jr,e.__scopeCollapsible);return b.jsx(je,{present:r||o.open,children:({present:a})=>b.jsx(Ul,{...n,ref:t,present:a})})});Wl.displayName=jr;var Ul=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,i=Tr(jr,r),[s,d]=p.useState(n),l=p.useRef(null),f=Q(t,l),c=p.useRef(0),u=c.current,m=p.useRef(0),h=m.current,g=i.open||s,y=p.useRef(g),w=p.useRef(void 0);return p.useEffect(()=>{const x=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(x)},[]),fe(()=>{const x=l.current;if(x){w.current=w.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const E=x.getBoundingClientRect();c.current=E.height,m.current=E.width,y.current||(x.style.transitionDuration=w.current.transitionDuration,x.style.animationName=w.current.animationName),d(n)}},[i.open,n]),b.jsx(J.div,{"data-state":Nr(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...a,ref:f,style:{"--radix-collapsible-content-height":u?`${u}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:g&&o})});function Nr(e){return e?"open":"closed"}function ko(e){const t=e+"CollectionProvider",[r,n]=Ee(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:y,children:w}=g,x=N.useRef(null),E=N.useRef(new Map).current;return b.jsx(o,{scope:y,itemMap:E,collectionRef:x,children:w})};i.displayName=t;const s=e+"CollectionSlot",d=Ge(s),l=N.forwardRef((g,y)=>{const{scope:w,children:x}=g,E=a(s,w),_=Q(y,E.collectionRef);return b.jsx(d,{ref:_,children:x})});l.displayName=s;const f=e+"CollectionItemSlot",c="data-radix-collection-item",u=Ge(f),m=N.forwardRef((g,y)=>{const{scope:w,children:x,...E}=g,_=N.useRef(null),R=Q(y,_),C=a(f,w);return N.useEffect(()=>(C.itemMap.set(_,{ref:_,...E}),()=>{C.itemMap.delete(_)})),b.jsx(u,{[c]:"",ref:R,children:x})});m.displayName=f;function h(g){const y=a(e+"CollectionConsumer",g);return N.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${c}]`));return Array.from(y.itemMap.values()).sort((E,_)=>x.indexOf(E.ref.current)-x.indexOf(_.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},h,n]}var Gl=p.createContext(void 0);function Hl(e){const t=p.useContext(Gl);return e||t||"ltr"}function Bl(e,t=globalThis?.document){const r=Se(e);p.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 Kl="DismissableLayer",Dr="dismissableLayer.update",Yl="dismissableLayer.pointerDownOutside",ql="dismissableLayer.focusOutside",Oo,Ro=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jt=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...d}=e,l=p.useContext(Ro),[f,c]=p.useState(null),u=f?.ownerDocument??globalThis?.document,[,m]=p.useState({}),h=Q(t,T=>c(T)),g=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(y),x=f?g.indexOf(f):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,_=x>=w,R=Jl(T=>{const S=T.target,I=[...l.branches].some(U=>U.contains(S));!_||I||(o?.(T),i?.(T),T.defaultPrevented||s?.())},u),C=Ql(T=>{const S=T.target;[...l.branches].some(I=>I.contains(S))||(a?.(T),i?.(T),T.defaultPrevented||s?.())},u);return Bl(T=>{x===l.layers.size-1&&(n?.(T),!T.defaultPrevented&&s&&(T.preventDefault(),s()))},u),p.useEffect(()=>{if(f)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Oo=u.body.style.pointerEvents,u.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Co(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(u.body.style.pointerEvents=Oo)}},[f,u,r,l]),p.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Co())},[f,l]),p.useEffect(()=>{const T=()=>m({});return document.addEventListener(Dr,T),()=>document.removeEventListener(Dr,T)},[]),b.jsx(J.div,{...d,ref:h,style:{pointerEvents:E?_?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,C.onFocusCapture),onBlurCapture:F(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,R.onPointerDownCapture)})});jt.displayName=Kl;var Xl="DismissableLayerBranch",Zl=p.forwardRef((e,t)=>{const r=p.useContext(Ro),n=p.useRef(null),o=Q(t,n);return p.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),b.jsx(J.div,{...e,ref:o})});Zl.displayName=Xl;function Jl(e,t=globalThis?.document){const r=Se(e),n=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let d=function(){To(Yl,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);n.current=!1},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 Ql(e,t=globalThis?.document){const r=Se(e),n=p.useRef(!1);return p.useEffect(()=>{const o=a=>{a.target&&!n.current&&To(ql,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 Co(){const e=new CustomEvent(Dr);document.dispatchEvent(e)}function To(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?uo(o,a):o.dispatchEvent(a)}var Ar=0;function jo(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??No()),document.body.insertAdjacentElement("beforeend",e[1]??No()),Ar++,()=>{Ar===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ar--}},[])}function No(){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 Lr="focusScope.autoFocusOnMount",Mr="focusScope.autoFocusOnUnmount",Do={bubbles:!1,cancelable:!0},ec="FocusScope",Pr=p.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,d]=p.useState(null),l=Se(o),f=Se(a),c=p.useRef(null),u=Q(t,g=>d(g)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let g=function(E){if(m.paused||!s)return;const _=E.target;s.contains(_)?c.current=_:Ne(c.current,{select:!0})},y=function(E){if(m.paused||!s)return;const _=E.relatedTarget;_!==null&&(s.contains(_)||Ne(c.current,{select:!0}))},w=function(E){if(document.activeElement===document.body)for(const _ of E)_.removedNodes.length>0&&Ne(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",y);const x=new MutationObserver(w);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),x.disconnect()}}},[n,s,m.paused]),p.useEffect(()=>{if(s){Mo.add(m);const g=document.activeElement;if(!s.contains(g)){const y=new CustomEvent(Lr,Do);s.addEventListener(Lr,l),s.dispatchEvent(y),y.defaultPrevented||(tc(ic(Ao(s)),{select:!0}),document.activeElement===g&&Ne(s))}return()=>{s.removeEventListener(Lr,l),setTimeout(()=>{const y=new CustomEvent(Mr,Do);s.addEventListener(Mr,f),s.dispatchEvent(y),y.defaultPrevented||Ne(g??document.body,{select:!0}),s.removeEventListener(Mr,f),Mo.remove(m)},0)}}},[s,l,f,m]);const h=p.useCallback(g=>{if(!r&&!n||m.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(y&&w){const x=g.currentTarget,[E,_]=rc(x);E&&_?!g.shiftKey&&w===_?(g.preventDefault(),r&&Ne(E,{select:!0})):g.shiftKey&&w===E&&(g.preventDefault(),r&&Ne(_,{select:!0})):w===x&&g.preventDefault()}},[r,n,m.paused]);return b.jsx(J.div,{tabIndex:-1,...i,ref:u,onKeyDown:h})});Pr.displayName=ec;function tc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ne(n,{select:t}),document.activeElement!==r)return}function rc(e){const t=Ao(e),r=Lo(t,e),n=Lo(t.reverse(),e);return[r,n]}function Ao(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 Lo(e,t){for(const r of e)if(!nc(r,{upTo:t}))return r}function nc(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 oc(e){return e instanceof HTMLInputElement&&"select"in e}function Ne(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&oc(e)&&t&&e.select()}}var Mo=ac();function ac(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Po(e,t),e.unshift(t)},remove(t){e=Po(e,t),e[0]?.resume()}}}function Po(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function ic(e){return e.filter(t=>t.tagName!=="A")}const sc=["top","right","bottom","left"],De=Math.min,ce=Math.max,Nt=Math.round,Dt=Math.floor,he=e=>({x:e,y:e}),lc={left:"right",right:"left",bottom:"top",top:"bottom"},cc={start:"end",end:"start"};function Ir(e,t,r){return ce(e,De(t,r))}function ke(e,t){return typeof e=="function"?e(t):e}function Oe(e){return e.split("-")[0]}function Be(e){return e.split("-")[1]}function Fr(e){return e==="x"?"y":"x"}function Vr(e){return e==="y"?"height":"width"}const uc=new Set(["top","bottom"]);function ve(e){return uc.has(Oe(e))?"y":"x"}function zr(e){return Fr(ve(e))}function dc(e,t,r){r===void 0&&(r=!1);const n=Be(e),o=zr(e),a=Vr(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=At(i)),[i,At(i)]}function fc(e){const t=At(e);return[$r(e),t,$r(t)]}function $r(e){return e.replace(/start|end/g,t=>cc[t])}const Io=["left","right"],Fo=["right","left"],pc=["top","bottom"],mc=["bottom","top"];function gc(e,t,r){switch(e){case"top":case"bottom":return r?t?Fo:Io:t?Io:Fo;case"left":case"right":return t?pc:mc;default:return[]}}function hc(e,t,r,n){const o=Be(e);let a=gc(Oe(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map($r)))),a}function At(e){return e.replace(/left|right|bottom|top/g,t=>lc[t])}function vc(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vo(e){return typeof e!="number"?vc(e):{top:e,right:e,bottom:e,left:e}}function Lt(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 zo(e,t,r){let{reference:n,floating:o}=e;const a=ve(t),i=zr(t),s=Vr(i),d=Oe(t),l=a==="y",f=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2,u=n[s]/2-o[s]/2;let m;switch(d){case"top":m={x:f,y:n.y-o.height};break;case"bottom":m={x:f,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:c};break;case"left":m={x:n.x-o.width,y:c};break;default:m={x:n.x,y:n.y}}switch(Be(t)){case"start":m[i]-=u*(r&&l?-1:1);break;case"end":m[i]+=u*(r&&l?-1:1);break}return m}const yc=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=zo(l,n,d),u=n,m={},h=0;for(let g=0;g<s.length;g++){const{name:y,fn:w}=s[g],{x,y:E,data:_,reset:R}=await w({x:f,y:c,initialPlacement:n,placement:u,strategy:o,middlewareData:m,rects:l,platform:i,elements:{reference:e,floating:t}});f=x??f,c=E??c,m={...m,[y]:{...m[y],..._}},R&&h<=50&&(h++,typeof R=="object"&&(R.placement&&(u=R.placement),R.rects&&(l=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:f,y:c}=zo(l,u,d)),g=-1)}return{x:f,y:c,placement:u,strategy:o,middlewareData:m}};async function ct(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:d}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:u=!1,padding:m=0}=ke(t,e),h=Vo(m),g=s[u?c==="floating"?"reference":"floating":c],y=Lt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(g)))==null||r?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:d})),w=c==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),E=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},_=Lt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:d}):w);return{top:(y.top-_.top+h.top)/E.y,bottom:(_.bottom-y.bottom+h.bottom)/E.y,left:(y.left-_.left+h.left)/E.x,right:(_.right-y.right+h.right)/E.x}}const bc=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:d}=t,{element:l,padding:f=0}=ke(e,t)||{};if(l==null)return{};const c=Vo(f),u={x:r,y:n},m=zr(o),h=Vr(m),g=await i.getDimensions(l),y=m==="y",w=y?"top":"left",x=y?"bottom":"right",E=y?"clientHeight":"clientWidth",_=a.reference[h]+a.reference[m]-u[m]-a.floating[h],R=u[m]-a.reference[m],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let T=C?C[E]:0;(!T||!await(i.isElement==null?void 0:i.isElement(C)))&&(T=s.floating[E]||a.floating[h]);const S=_/2-R/2,I=T/2-g[h]/2-1,U=De(c[w],I),G=De(c[x],I),q=U,Z=T-g[h]-G,W=T/2-g[h]/2+S,Y=Ir(q,W,Z),H=!d.arrow&&Be(o)!=null&&W!==Y&&a.reference[h]/2-(W<q?U:G)-g[h]/2<0,B=H?W<q?W-q:W-Z:0;return{[m]:u[m]+B,data:{[m]:Y,centerOffset:W-Y-B,...H&&{alignmentOffset:B}},reset:H}}}),wc=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:d,elements:l}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:u,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=ke(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const w=Oe(o),x=ve(s),E=Oe(s)===s,_=await(d.isRTL==null?void 0:d.isRTL(l.floating)),R=u||(E||!g?[At(s)]:fc(s)),C=h!=="none";!u&&C&&R.push(...hc(s,g,h,_));const T=[s,...R],S=await ct(t,y),I=[];let U=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&I.push(S[w]),c){const W=dc(o,i,_);I.push(S[W[0]],S[W[1]])}if(U=[...U,{placement:o,overflows:I}],!I.every(W=>W<=0)){var G,q;const W=(((G=a.flip)==null?void 0:G.index)||0)+1,Y=T[W];if(Y&&(!(c==="alignment"&&x!==ve(Y))||U.every(B=>ve(B.placement)===x?B.overflows[0]>0:!0)))return{data:{index:W,overflows:U},reset:{placement:Y}};let H=(q=U.filter(B=>B.overflows[0]<=0).sort((B,k)=>B.overflows[1]-k.overflows[1])[0])==null?void 0:q.placement;if(!H)switch(m){case"bestFit":{var Z;const B=(Z=U.filter(k=>{if(C){const D=ve(k.placement);return D===x||D==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(D=>D>0).reduce((D,v)=>D+v,0)]).sort((k,D)=>k[1]-D[1])[0])==null?void 0:Z[0];B&&(H=B);break}case"initialPlacement":H=s;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function $o(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wo(e){return sc.some(t=>e[t]>=0)}const xc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=ke(e,t);switch(n){case"referenceHidden":{const a=await ct(t,{...o,elementContext:"reference"}),i=$o(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Wo(i)}}}case"escaped":{const a=await ct(t,{...o,altBoundary:!0}),i=$o(a,r.floating);return{data:{escapedOffsets:i,escaped:Wo(i)}}}default:return{}}}}},Uo=new Set(["left","top"]);async function _c(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Oe(r),s=Be(r),d=ve(r)==="y",l=Uo.has(i)?-1:1,f=a&&d?-1:1,c=ke(t,e);let{mainAxis:u,crossAxis:m,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof h=="number"&&(m=s==="end"?h*-1:h),d?{x:m*f,y:u*l}:{x:u*l,y:m*f}}const Ec=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,d=await _c(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:i}}}}},Sc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:y=>{let{x:w,y:x}=y;return{x:w,y:x}}},...d}=ke(e,t),l={x:r,y:n},f=await ct(t,d),c=ve(Oe(o)),u=Fr(c);let m=l[u],h=l[c];if(a){const y=u==="y"?"top":"left",w=u==="y"?"bottom":"right",x=m+f[y],E=m-f[w];m=Ir(x,m,E)}if(i){const y=c==="y"?"top":"left",w=c==="y"?"bottom":"right",x=h+f[y],E=h-f[w];h=Ir(x,h,E)}const g=s.fn({...t,[u]:m,[c]:h});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[u]:a,[c]:i}}}}}},kc=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:d=!0,crossAxis:l=!0}=ke(e,t),f={x:r,y:n},c=ve(o),u=Fr(c);let m=f[u],h=f[c];const g=ke(s,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(d){const E=u==="y"?"height":"width",_=a.reference[u]-a.floating[E]+y.mainAxis,R=a.reference[u]+a.reference[E]-y.mainAxis;m<_?m=_:m>R&&(m=R)}if(l){var w,x;const E=u==="y"?"width":"height",_=Uo.has(Oe(o)),R=a.reference[c]-a.floating[E]+(_&&((w=i.offset)==null?void 0:w[c])||0)+(_?0:y.crossAxis),C=a.reference[c]+a.reference[E]+(_?0:((x=i.offset)==null?void 0:x[c])||0)-(_?y.crossAxis:0);h<R?h=R:h>C&&(h=C)}return{[u]:m,[c]:h}}}},Oc=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:d=()=>{},...l}=ke(e,t),f=await ct(t,l),c=Oe(o),u=Be(o),m=ve(o)==="y",{width:h,height:g}=a.floating;let y,w;c==="top"||c==="bottom"?(y=c,w=u===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(w=c,y=u==="end"?"top":"bottom");const x=g-f.top-f.bottom,E=h-f.left-f.right,_=De(g-f[y],x),R=De(h-f[w],E),C=!t.middlewareData.shift;let T=_,S=R;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(S=E),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=x),C&&!u){const U=ce(f.left,0),G=ce(f.right,0),q=ce(f.top,0),Z=ce(f.bottom,0);m?S=h-2*(U!==0||G!==0?U+G:ce(f.left,f.right)):T=g-2*(q!==0||Z!==0?q+Z:ce(f.top,f.bottom))}await d({...t,availableWidth:S,availableHeight:T});const I=await i.getDimensions(s.floating);return h!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function Mt(){return typeof window<"u"}function Ke(e){return Go(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ye(e){var t;return(t=(Go(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Go(e){return Mt()?e instanceof Node||e instanceof ue(e).Node:!1}function me(e){return Mt()?e instanceof Element||e instanceof ue(e).Element:!1}function be(e){return Mt()?e instanceof HTMLElement||e instanceof ue(e).HTMLElement:!1}function Ho(e){return!Mt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}const Rc=new Set(["inline","contents"]);function ut(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Rc.has(o)}const Cc=new Set(["table","td","th"]);function Tc(e){return Cc.has(Ke(e))}const jc=[":popover-open",":modal"];function Pt(e){return jc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Nc=["transform","translate","scale","rotate","perspective"],Dc=["transform","translate","scale","rotate","perspective","filter"],Ac=["paint","layout","strict","content"];function Wr(e){const t=Ur(),r=me(e)?ge(e):e;return Nc.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)||Dc.some(n=>(r.willChange||"").includes(n))||Ac.some(n=>(r.contain||"").includes(n))}function Lc(e){let t=Ae(e);for(;be(t)&&!Ye(t);){if(Wr(t))return t;if(Pt(t))return null;t=Ae(t)}return null}function Ur(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Mc=new Set(["html","body","#document"]);function Ye(e){return Mc.has(Ke(e))}function ge(e){return ue(e).getComputedStyle(e)}function It(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(Ke(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ho(e)&&e.host||ye(e);return Ho(t)?t.host:t}function Bo(e){const t=Ae(e);return Ye(t)?e.ownerDocument?e.ownerDocument.body:e.body:be(t)&&ut(t)?t:Bo(t)}function dt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Bo(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=ue(o);if(a){const s=Gr(i);return t.concat(i,i.visualViewport||[],ut(o)?o:[],s&&r?dt(s):[])}return t.concat(o,dt(o,[],r))}function Gr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ko(e){const t=ge(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=Nt(r)!==a||Nt(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function Hr(e){return me(e)?e:e.contextElement}function qe(e){const t=Hr(e);if(!be(t))return he(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Ko(t);let i=(a?Nt(r.width):r.width)/n,s=(a?Nt(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Pc=he(0);function Yo(e){const t=ue(e);return!Ur()||!t.visualViewport?Pc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ic(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ue(e)?!1:t}function Me(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Hr(e);let i=he(1);t&&(n?me(n)&&(i=qe(n)):i=qe(e));const s=Ic(a,r,n)?Yo(a):he(0);let d=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,f=o.width/i.x,c=o.height/i.y;if(a){const u=ue(a),m=n&&me(n)?ue(n):n;let h=u,g=Gr(h);for(;g&&n&&m!==h;){const y=qe(g),w=g.getBoundingClientRect(),x=ge(g),E=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*y.x,_=w.top+(g.clientTop+parseFloat(x.paddingTop))*y.y;d*=y.x,l*=y.y,f*=y.x,c*=y.y,d+=E,l+=_,h=ue(g),g=Gr(h)}}return Lt({width:f,height:c,x:d,y:l})}function Ft(e,t){const r=It(e).scrollLeft;return t?t.left+r:Me(ye(e)).left+r}function qo(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Ft(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Fc(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=ye(n),s=t?Pt(t.floating):!1;if(n===i||s&&a)return r;let d={scrollLeft:0,scrollTop:0},l=he(1);const f=he(0),c=be(n);if((c||!c&&!a)&&((Ke(n)!=="body"||ut(i))&&(d=It(n)),be(n))){const m=Me(n);l=qe(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}const u=i&&!c&&!a?qo(i,d):he(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-d.scrollLeft*l.x+f.x+u.x,y:r.y*l.y-d.scrollTop*l.y+f.y+u.y}}function Vc(e){return Array.from(e.getClientRects())}function zc(e){const t=ye(e),r=It(e),n=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ce(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Ft(e);const s=-r.scrollTop;return ge(n).direction==="rtl"&&(i+=ce(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const Xo=25;function $c(e,t){const r=ue(e),n=ye(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,d=0;if(o){a=o.width,i=o.height;const f=Ur();(!f||f&&t==="fixed")&&(s=o.offsetLeft,d=o.offsetTop)}const l=Ft(n);if(l<=0){const f=n.ownerDocument,c=f.body,u=getComputedStyle(c),m=f.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,h=Math.abs(n.clientWidth-c.clientWidth-m);h<=Xo&&(a-=h)}else l<=Xo&&(a+=l);return{width:a,height:i,x:s,y:d}}const Wc=new Set(["absolute","fixed"]);function Uc(e,t){const r=Me(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=be(e)?qe(e):he(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,d=o*a.x,l=n*a.y;return{width:i,height:s,x:d,y:l}}function Zo(e,t,r){let n;if(t==="viewport")n=$c(e,r);else if(t==="document")n=zc(ye(e));else if(me(t))n=Uc(t,r);else{const o=Yo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Lt(n)}function Jo(e,t){const r=Ae(e);return r===t||!me(r)||Ye(r)?!1:ge(r).position==="fixed"||Jo(r,t)}function Gc(e,t){const r=t.get(e);if(r)return r;let n=dt(e,[],!1).filter(s=>me(s)&&Ke(s)!=="body"),o=null;const a=ge(e).position==="fixed";let i=a?Ae(e):e;for(;me(i)&&!Ye(i);){const s=ge(i),d=Wr(i);!d&&s.position==="fixed"&&(o=null),(a?!d&&!o:!d&&s.position==="static"&&o&&Wc.has(o.position)||ut(i)&&!d&&Jo(e,i))?n=n.filter(l=>l!==i):o=s,i=Ae(i)}return t.set(e,n),n}function Hc(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Pt(t)?[]:Gc(t,this._c):[].concat(r),n],i=a[0],s=a.reduce((d,l)=>{const f=Zo(t,l,o);return d.top=ce(f.top,d.top),d.right=De(f.right,d.right),d.bottom=De(f.bottom,d.bottom),d.left=ce(f.left,d.left),d},Zo(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Bc(e){const{width:t,height:r}=Ko(e);return{width:t,height:r}}function Kc(e,t,r){const n=be(t),o=ye(t),a=r==="fixed",i=Me(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const d=he(0);function l(){d.x=Ft(o)}if(n||!n&&!a)if((Ke(t)!=="body"||ut(o))&&(s=It(t)),n){const m=Me(t,!0,a,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&l();a&&!n&&o&&l();const f=o&&!n&&!a?qo(o,s):he(0),c=i.left+s.scrollLeft-d.x-f.x,u=i.top+s.scrollTop-d.y-f.y;return{x:c,y:u,width:i.width,height:i.height}}function Br(e){return ge(e).position==="static"}function Qo(e,t){if(!be(e)||ge(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ye(e)===r&&(r=r.ownerDocument.body),r}function ea(e,t){const r=ue(e);if(Pt(e))return r;if(!be(e)){let o=Ae(e);for(;o&&!Ye(o);){if(me(o)&&!Br(o))return o;o=Ae(o)}return r}let n=Qo(e,t);for(;n&&Tc(n)&&Br(n);)n=Qo(n,t);return n&&Ye(n)&&Br(n)&&!Wr(n)?r:n||Lc(e)||r}const Yc=async function(e){const t=this.getOffsetParent||ea,r=this.getDimensions,n=await r(e.floating);return{reference:Kc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function qc(e){return ge(e).direction==="rtl"}const Xc={convertOffsetParentRelativeRectToViewportRelativeRect:Fc,getDocumentElement:ye,getClippingRect:Hc,getOffsetParent:ea,getElementRects:Yc,getClientRects:Vc,getDimensions:Bc,getScale:qe,isElement:me,isRTL:qc};function ta(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zc(e,t){let r=null,n;const o=ye(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,d){s===void 0&&(s=!1),d===void 0&&(d=1),a();const l=e.getBoundingClientRect(),{left:f,top:c,width:u,height:m}=l;if(s||t(),!u||!m)return;const h=Dt(c),g=Dt(o.clientWidth-(f+u)),y=Dt(o.clientHeight-(c+m)),w=Dt(f),x={rootMargin:-h+"px "+-g+"px "+-y+"px "+-w+"px",threshold:ce(0,De(1,d))||1};let E=!0;function _(R){const C=R[0].intersectionRatio;if(C!==d){if(!E)return i();C?i(!1,C):n=setTimeout(()=>{i(!1,1e-7)},1e3)}C===1&&!ta(l,e.getBoundingClientRect())&&i(),E=!1}try{r=new IntersectionObserver(_,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(_,x)}r.observe(e)}return i(!0),a}function Jc(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:d=!1}=n,l=Hr(e),f=o||a?[...l?dt(l):[],...dt(t)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",r,{passive:!0}),a&&w.addEventListener("resize",r)});const c=l&&s?Zc(l,r):null;let u=-1,m=null;i&&(m=new ResizeObserver(w=>{let[x]=w;x&&x.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(t)})),r()}),l&&!d&&m.observe(l),m.observe(t));let h,g=d?Me(e):null;d&&y();function y(){const w=Me(e);g&&!ta(g,w)&&r(),g=w,h=requestAnimationFrame(y)}return r(),()=>{var w;f.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),c?.(),(w=m)==null||w.disconnect(),m=null,d&&cancelAnimationFrame(h)}}const Qc=Ec,eu=Sc,tu=wc,ru=Oc,nu=xc,ra=bc,ou=kc,au=(e,t,r)=>{const n=new Map,o={platform:Xc,...r},a={...o.platform,_c:n};return yc(e,t,{...o,platform:a})};var iu=typeof document<"u",su=function(){},Vt=iu?N.useLayoutEffect:su;function zt(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(!zt(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)&&!zt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function na(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function oa(e,t){const r=na(e);return Math.round(t*r)/r}function Kr(e){const t=p.useRef(e);return Vt(()=>{t.current=e}),t}function lu(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:d,open:l}=e,[f,c]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[u,m]=p.useState(n);zt(u,n)||m(n);const[h,g]=p.useState(null),[y,w]=p.useState(null),x=p.useCallback(k=>{k!==C.current&&(C.current=k,g(k))},[]),E=p.useCallback(k=>{k!==T.current&&(T.current=k,w(k))},[]),_=a||h,R=i||y,C=p.useRef(null),T=p.useRef(null),S=p.useRef(f),I=d!=null,U=Kr(d),G=Kr(o),q=Kr(l),Z=p.useCallback(()=>{if(!C.current||!T.current)return;const k={placement:t,strategy:r,middleware:u};G.current&&(k.platform=G.current),au(C.current,T.current,k).then(D=>{const v={...D,isPositioned:q.current!==!1};W.current&&!zt(S.current,v)&&(S.current=v,br.flushSync(()=>{c(v)}))})},[u,t,r,G,q]);Vt(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,c(k=>({...k,isPositioned:!1})))},[l]);const W=p.useRef(!1);Vt(()=>(W.current=!0,()=>{W.current=!1}),[]),Vt(()=>{if(_&&(C.current=_),R&&(T.current=R),_&&R){if(U.current)return U.current(_,R,Z);Z()}},[_,R,Z,U,I]);const Y=p.useMemo(()=>({reference:C,floating:T,setReference:x,setFloating:E}),[x,E]),H=p.useMemo(()=>({reference:_,floating:R}),[_,R]),B=p.useMemo(()=>{const k={position:r,left:0,top:0};if(!H.floating)return k;const D=oa(H.floating,f.x),v=oa(H.floating,f.y);return s?{...k,transform:"translate("+D+"px, "+v+"px)",...na(H.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:D,top:v}},[r,s,H.floating,f.x,f.y]);return p.useMemo(()=>({...f,update:Z,refs:Y,elements:H,floatingStyles:B}),[f,Z,Y,H,B])}const cu=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?ra({element:n.current,padding:o}).fn(r):{}:n?ra({element:n,padding:o}).fn(r):{}}}},uu=(e,t)=>({...Qc(e),options:[e,t]}),du=(e,t)=>({...eu(e),options:[e,t]}),fu=(e,t)=>({...ou(e),options:[e,t]}),pu=(e,t)=>({...tu(e),options:[e,t]}),mu=(e,t)=>({...ru(e),options:[e,t]}),gu=(e,t)=>({...nu(e),options:[e,t]}),hu=(e,t)=>({...cu(e),options:[e,t]});var vu="Arrow",aa=p.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return b.jsx(J.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});aa.displayName=vu;var yu=aa;function bu(e){const[t,r]=p.useState(void 0);return fe(()=>{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 d=a.borderBoxSize,l=Array.isArray(d)?d[0]:d;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var ia="Popper",[sa,$t]=Ee(ia),[Im,la]=sa(ia),ca="PopperAnchor",ua=p.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=la(ca,r),i=p.useRef(null),s=Q(t,i),d=p.useRef(null);return p.useEffect(()=>{const l=d.current;d.current=n?.current||i.current,l!==d.current&&a.onAnchorChange(d.current)}),n?null:b.jsx(J.div,{...o,ref:s})});ua.displayName=ca;var Yr="PopperContent",[wu,xu]=sa(Yr),da=p.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:d=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:c="partial",hideWhenDetached:u=!1,updatePositionStrategy:m="optimized",onPlaced:h,...g}=e,y=la(Yr,r),[w,x]=p.useState(null),E=Q(t,V=>x(V)),[_,R]=p.useState(null),C=bu(_),T=C?.width??0,S=C?.height??0,I=n+(a!=="center"?"-"+a:""),U=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},G=Array.isArray(l)?l:[l],q=G.length>0,Z={padding:U,boundary:G.filter(Eu),altBoundary:q},{refs:W,floatingStyles:Y,placement:H,isPositioned:B,middlewareData:k}=lu({strategy:"fixed",placement:I,whileElementsMounted:(...V)=>Jc(...V,{animationFrame:m==="always"}),elements:{reference:y.anchor},middleware:[uu({mainAxis:o+S,alignmentAxis:i}),d&&du({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?fu():void 0,...Z}),d&&pu({...Z}),mu({...Z,apply:({elements:V,rects:z,availableWidth:ee,availableHeight:le})=>{const{width:Ce,height:nt}=z.reference,dr=V.floating.style;dr.setProperty("--radix-popper-available-width",`${ee}px`),dr.setProperty("--radix-popper-available-height",`${le}px`),dr.setProperty("--radix-popper-anchor-width",`${Ce}px`),dr.setProperty("--radix-popper-anchor-height",`${nt}px`)}}),_&&hu({element:_,padding:s}),Su({arrowWidth:T,arrowHeight:S}),u&&gu({strategy:"referenceHidden",...Z})]}),[D,v]=ma(H),O=Se(h);fe(()=>{B&&O?.()},[B,O]);const M=k.arrow?.x,P=k.arrow?.y,K=k.arrow?.centerOffset!==0,[X,ae]=p.useState();return fe(()=>{w&&ae(window.getComputedStyle(w).zIndex)},[w]),b.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:B?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[k.transformOrigin?.x,k.transformOrigin?.y].join(" "),...k.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(wu,{scope:r,placedSide:D,onArrowChange:R,arrowX:M,arrowY:P,shouldHideArrow:K,children:b.jsx(J.div,{"data-side":D,"data-align":v,...g,ref:E,style:{...g.style,animation:B?void 0:"none"}})})})});da.displayName=Yr;var fa="PopperArrow",_u={top:"bottom",right:"left",bottom:"top",left:"right"},pa=p.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=xu(fa,r),a=_u[o.placedSide];return b.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:b.jsx(yu,{...n,ref:t,style:{...n.style,display:"block"}})})});pa.displayName=fa;function Eu(e){return e!==null}var Su=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[d,l]=ma(r),f={start:"0%",center:"50%",end:"100%"}[l],c=(o.arrow?.x??0)+i/2,u=(o.arrow?.y??0)+s/2;let m="",h="";return d==="bottom"?(m=a?f:`${c}px`,h=`${-s}px`):d==="top"?(m=a?f:`${c}px`,h=`${n.floating.height+s}px`):d==="right"?(m=`${-s}px`,h=a?f:`${u}px`):d==="left"&&(m=`${n.floating.width+s}px`,h=a?f:`${u}px`),{data:{x:m,y:h}}}});function ma(e){const[t,r="center"]=e.split("-");return[t,r]}var ga=ua,ha=da,va=pa,ku="Portal",Ou=p.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=p.useState(!1);fe(()=>a(!0),[]);const i=r||o&&globalThis?.document?.body;return i?al.createPortal(b.jsx(J.div,{...n,ref:t}),i):null});Ou.displayName=ku;var qr="rovingFocusGroup.onEntryFocus",Ru={bubbles:!1,cancelable:!0},ft="RovingFocusGroup",[Xr,ya,Cu]=ko(ft),[Tu,ba]=Ee(ft,[Cu]),[ju,Nu]=Tu(ft),wa=p.forwardRef((e,t)=>b.jsx(Xr.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Xr.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Du,{...e,ref:t})})}));wa.displayName=ft;var Du=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:d,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...c}=e,u=p.useRef(null),m=Q(t,u),h=Hl(a),[g,y]=_o({prop:i,defaultProp:s??null,onChange:d,caller:ft}),[w,x]=p.useState(!1),E=Se(l),_=ya(r),R=p.useRef(!1),[C,T]=p.useState(0);return p.useEffect(()=>{const S=u.current;if(S)return S.addEventListener(qr,E),()=>S.removeEventListener(qr,E)},[E]),b.jsx(ju,{scope:r,orientation:n,dir:h,loop:o,currentTabStopId:g,onItemFocus:p.useCallback(S=>y(S),[y]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>T(S=>S+1),[]),onFocusableItemRemove:p.useCallback(()=>T(S=>S-1),[]),children:b.jsx(J.div,{tabIndex:w||C===0?-1:0,"data-orientation":n,...c,ref:m,style:{outline:"none",...e.style},onMouseDown:F(e.onMouseDown,()=>{R.current=!0}),onFocus:F(e.onFocus,S=>{const I=!R.current;if(S.target===S.currentTarget&&I&&!w){const U=new CustomEvent(qr,Ru);if(S.currentTarget.dispatchEvent(U),!U.defaultPrevented){const G=_().filter(Y=>Y.focusable),q=G.find(Y=>Y.active),Z=G.find(Y=>Y.id===g),W=[q,Z,...G].filter(Boolean).map(Y=>Y.ref.current);Ea(W,f)}}R.current=!1}),onBlur:F(e.onBlur,()=>x(!1))})})}),xa="RovingFocusGroupItem",_a=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...s}=e,d=Eo(),l=a||d,f=Nu(xa,r),c=f.currentTabStopId===l,u=ya(r),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:g}=f;return p.useEffect(()=>{if(n)return m(),()=>h()},[n,m,h]),b.jsx(Xr.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:b.jsx(J.span,{tabIndex:c?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:F(e.onMouseDown,y=>{n?f.onItemFocus(l):y.preventDefault()}),onFocus:F(e.onFocus,()=>f.onItemFocus(l)),onKeyDown:F(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){f.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const w=Mu(y,f.orientation,f.dir);if(w!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let x=u().filter(E=>E.focusable).map(E=>E.ref.current);if(w==="last")x.reverse();else if(w==="prev"||w==="next"){w==="prev"&&x.reverse();const E=x.indexOf(y.currentTarget);x=f.loop?Pu(x,E+1):x.slice(E+1)}setTimeout(()=>Ea(x))}}),children:typeof i=="function"?i({isCurrentTabStop:c,hasTabStop:g!=null}):i})})});_a.displayName=xa;var Au={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Lu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Mu(e,t,r){const n=Lu(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Au[n]}function Ea(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Pu(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Iu=wa,Fu=_a,Vu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xe=new WeakMap,Wt=new WeakMap,Ut={},Zr=0,Sa=function(e){return e&&(e.host||Sa(e.parentNode))},zu=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Sa(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})},$u=function(e,t,r,n){var o=zu(t,Array.isArray(e)?e:[e]);Ut[r]||(Ut[r]=new WeakMap);var a=Ut[r],i=[],s=new Set,d=new Set(o),l=function(c){!c||s.has(c)||(s.add(c),l(c.parentNode))};o.forEach(l);var f=function(c){!c||d.has(c)||Array.prototype.forEach.call(c.children,function(u){if(s.has(u))f(u);else try{var m=u.getAttribute(n),h=m!==null&&m!=="false",g=(Xe.get(u)||0)+1,y=(a.get(u)||0)+1;Xe.set(u,g),a.set(u,y),i.push(u),g===1&&h&&Wt.set(u,!0),y===1&&u.setAttribute(r,"true"),h||u.setAttribute(n,"true")}catch(w){console.error("aria-hidden: cannot operate on ",u,w)}})};return f(t),s.clear(),Zr++,function(){i.forEach(function(c){var u=Xe.get(c)-1,m=a.get(c)-1;Xe.set(c,u),a.set(c,m),u||(Wt.has(c)||c.removeAttribute(n),Wt.delete(c)),m||c.removeAttribute(r)}),Zr--,Zr||(Xe=new WeakMap,Xe=new WeakMap,Wt=new WeakMap,Ut={})}},ka=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Vu(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),$u(n,o,r,"aria-hidden")):function(){return null}},we=function(){return we=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},we.apply(this,arguments)};function Oa(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 Wu(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Gt="right-scroll-bar-position",Ht="width-before-scroll-bar",Uu="with-scroll-bars-hidden",Gu="--removed-body-scroll-bar-size";function Jr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Hu(e,t){var r=N.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 Bu=typeof window<"u"?p.useLayoutEffect:p.useEffect,Ra=new WeakMap;function Ku(e,t){var r=Hu(null,function(n){return e.forEach(function(o){return Jr(o,n)})});return Bu(function(){var n=Ra.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||Jr(s,null)}),a.forEach(function(s){o.has(s)||Jr(s,i)})}Ra.set(r,e)},[e]),r}function Yu(e){return e}function qu(e,t){t===void 0&&(t=Yu);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 d=function(){var f=i;i=[],f.forEach(a)},l=function(){return Promise.resolve().then(d)};l(),r={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),r}}}};return o}function Xu(e){e===void 0&&(e={});var t=qu(null);return t.options=we({async:!0,ssr:!1},e),t}var Ca=function(e){var t=e.sideCar,r=Oa(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 p.createElement(n,we({},r))};Ca.isSideCarExport=!0;function Zu(e,t){return e.useMedium(t),Ca}var Ta=Xu(),Qr=function(){},Bt=p.forwardRef(function(e,t){var r=p.useRef(null),n=p.useState({onScrollCapture:Qr,onWheelCapture:Qr,onTouchMoveCapture:Qr}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,d=e.className,l=e.removeScrollBar,f=e.enabled,c=e.shards,u=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,y=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,E=e.gapMode,_=Oa(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=u,C=Ku([r,t]),T=we(we({},_),o);return p.createElement(p.Fragment,null,f&&p.createElement(R,{sideCar:Ta,removeScrollBar:l,shards:c,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:E}),i?p.cloneElement(p.Children.only(s),we(we({},T),{ref:C})):p.createElement(x,we({},T,{className:d,ref:C}),s))});Bt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Bt.classNames={fullWidth:Ht,zeroRight:Gt};var Ju=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Qu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ju();return t&&e.setAttribute("nonce",t),e}function ed(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function td(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var rd=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Qu())&&(ed(t,r),td(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nd=function(){var e=rd();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ja=function(){var e=nd(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},od={left:0,top:0,right:0,gap:0},en=function(e){return parseInt(e||"",10)||0},ad=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[en(r),en(n),en(o)]},id=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return od;var t=ad(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])}},sd=ja(),Ze="data-scroll-locked",ld=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
15
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=N,d={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},l=Symbol.for("react.portal"),f=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,ae.createPortal=function(c,u){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error("Target container is not a DOM element.");return r(c,u,null,m)},ae.flushSync=function(c){var u=f.T,m=d.p;try{if(f.T=null,d.p=2,c)return c()}finally{f.T=u,d.p=m,d.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},ae.preconnect=function(c,u){typeof c=="string"&&c?u!=null&&typeof u!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",a(u)):u!=null&&typeof u.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(u.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(c)),typeof c=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,d.d.C(c,u))},ae.prefetchDNS=function(c){if(typeof c!="string"||!c)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(c));else if(1<arguments.length){var u=arguments[1];typeof u=="object"&&u.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(u)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",a(u))}typeof c=="string"&&d.d.D(c)},ae.preinit=function(c,u){if(typeof c=="string"&&c?u==null||typeof u!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",a(u)):u.as!=="style"&&u.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',a(u.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(c)),typeof c=="string"&&u&&typeof u.as=="string"){var m=u.as,h=n(m,u.crossOrigin),g=typeof u.integrity=="string"?u.integrity:void 0,y=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;m==="style"?d.d.S(c,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:g,fetchPriority:y}):m==="script"&&d.d.X(c,{crossOrigin:h,integrity:g,fetchPriority:y,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},ae.preinitModule=function(c,u){var m="";typeof c=="string"&&c||(m+=" The `href` argument encountered was "+o(c)+"."),u!==void 0&&typeof u!="object"?m+=" The `options` argument encountered was "+o(u)+".":u&&"as"in u&&u.as!=="script"&&(m+=" The `as` option encountered was "+a(u.as)+"."),m?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",m):(m=u&&typeof u.as=="string"?u.as:"script",m)==="script"||(m=a(m),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',m,c)),typeof c=="string"&&(typeof u=="object"&&u!==null?(u.as==null||u.as==="script")&&(m=n(u.as,u.crossOrigin),d.d.M(c,{crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})):u==null&&d.d.M(c))},ae.preload=function(c,u){var m="";if(typeof c=="string"&&c||(m+=" The `href` argument encountered was "+o(c)+"."),u==null||typeof u!="object"?m+=" The `options` argument encountered was "+o(u)+".":typeof u.as=="string"&&u.as||(m+=" The `as` option encountered was "+o(u.as)+"."),m&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',m),typeof c=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){m=u.as;var h=n(m,u.crossOrigin);d.d.L(c,m,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},ae.preloadModule=function(c,u){var m="";typeof c=="string"&&c||(m+=" The `href` argument encountered was "+o(c)+"."),u!==void 0&&typeof u!="object"?m+=" The `options` argument encountered was "+o(u)+".":u&&"as"in u&&typeof u.as!="string"&&(m+=" The `as` option encountered was "+o(u.as)+"."),m&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',m),typeof c=="string"&&(u?(m=n(u.as,u.crossOrigin),d.d.m(c,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0})):d.d.m(c))},ae.requestFormReset=function(c){d.d.r(c)},ae.unstable_batchedUpdates=function(c,u){return c(u)},ae.useFormState=function(c,u,m){return i().useFormState(c,u,m)},ae.useFormStatus=function(){return i().useHostTransitionStatus()},ae.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ae}var so;function ol(){if(so)return jt.exports;so=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),jt.exports=rl()):jt.exports=nl(),jt.exports}var xr=ol();const al=gs(xr);function lo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lt(...e){return t=>{let r=!1;const n=e.map(o=>{const a=lo(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():lo(e[o],null)}}}}function Q(...e){return p.useCallback(lt(...e),e)}function Ge(e){const t=il(e),r=p.forwardRef((n,o)=>{const{children:a,...i}=n,s=p.Children.toArray(a),d=s.find(ll);if(d){const l=d.props.children,f=s.map(c=>c===d?p.Children.count(l)>1?p.Children.only(null):p.isValidElement(l)?l.props.children:null:c);return b.jsx(t,{...i,ref:o,children:p.isValidElement(l)?p.cloneElement(l,void 0,f):null})}return b.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var co=Ge("Slot");function il(e){const t=p.forwardRef((r,n)=>{const{children:o,...a}=r;if(p.isValidElement(o)){const i=ul(o),s=cl(a,o.props);return o.type!==p.Fragment&&(s.ref=n?lt(n,i):i),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uo=Symbol("radix.slottable");function sl(e){const t=({children:r})=>b.jsx(b.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=uo,t}function ll(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uo}function cl(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const s=a(...i);return o(...i),s}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function ul(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var dl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=dl.reduce((e,t)=>{const r=Ge(`Primitive.${t}`),n=p.forwardRef((o,a)=>{const{asChild:i,...s}=o,d=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(d,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function fo(e,t){e&&xr.flushSync(()=>e.dispatchEvent(t))}var _r={exports:{}},Er={},po;function fl(){if(po)return Er;po=1;var e=N;function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(c,u){var m=u(),h=n({inst:{value:m,getSnapshot:u}}),g=h[0].inst,y=h[1];return a(function(){g.value=m,g.getSnapshot=u,d(g)&&y({inst:g})},[c,m,u]),o(function(){return d(g)&&y({inst:g}),c(function(){d(g)&&y({inst:g})})},[c]),i(m),m}function d(c){var u=c.getSnapshot;c=c.value;try{var m=u();return!r(c,m)}catch{return!0}}function l(c,u){return u()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:s;return Er.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Er}var mo={},go;function pl(){return go||(go=1,process.env.NODE_ENV!=="production"&&(function(){function e(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}function t(m,h){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=h();if(!c){var y=h();a(g,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}y=i({inst:{value:g,getSnapshot:h}});var w=y[0].inst,x=y[1];return d(function(){w.value=g,w.getSnapshot=h,r(w)&&x({inst:w})},[m,g,h]),s(function(){return r(w)&&x({inst:w}),m(function(){r(w)&&x({inst:w})})},[m]),l(g),g}function r(m){var h=m.getSnapshot;m=m.value;try{var g=h();return!a(m,g)}catch{return!0}}function n(m,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=N,a=typeof Object.is=="function"?Object.is:e,i=o.useState,s=o.useEffect,d=o.useLayoutEffect,l=o.useDebugValue,f=!1,c=!1,u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;mo.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),mo}var ho;function ml(){return ho||(ho=1,process.env.NODE_ENV==="production"?_r.exports=fl():_r.exports=pl()),_r.exports}var gl=ml();function hl(){return gl.useSyncExternalStore(vl,()=>!0,()=>!1)}function vl(){return()=>{}}var Sr="Avatar",[yl,Dm]=Ee(Sr),[bl,vo]=yl(Sr),wl=p.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=p.useState("idle");return b.jsx(bl,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:b.jsx(J.span,{...n,ref:t})})});wl.displayName=Sr;var yo="AvatarImage",xl=p.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,i=vo(yo,r),s=El(n,a),d=Se(l=>{o(l),i.onImageLoadingStatusChange(l)});return fe(()=>{s!=="idle"&&d(s)},[s,d]),s==="loaded"?b.jsx(J.img,{...a,ref:t,src:n}):null});xl.displayName=yo;var bo="AvatarFallback",_l=p.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=vo(bo,r),[i,s]=p.useState(n===void 0);return p.useEffect(()=>{if(n!==void 0){const d=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(d)}},[n]),i&&a.imageLoadingStatus!=="loaded"?b.jsx(J.span,{...o,ref:t}):null});_l.displayName=bo;function wo(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function El(e,{referrerPolicy:t,crossOrigin:r}){const n=hl(),o=p.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[i,s]=p.useState(()=>wo(a,e));return fe(()=>{s(wo(a,e))},[a,e]),fe(()=>{const d=c=>()=>{s(c)};if(!a)return;const l=d("loaded"),f=d("error");return a.addEventListener("load",l),a.addEventListener("error",f),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",l),a.removeEventListener("error",f)}},[a,r,t]),i}const Sl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),xo=e=>{const t=kl(e);return t.charAt(0).toUpperCase()+t.slice(1)},_o=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Ol=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Rl={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"};const Cl=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},d)=>N.createElement("svg",{ref:d,...Rl,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:_o("lucide",o),...!a&&!Ol(s)&&{"aria-hidden":"true"},...s},[...i.map(([l,f])=>N.createElement(l,f)),...Array.isArray(a)?a:[a]])),He=(e,t)=>{const r=N.forwardRef(({className:n,...o},a)=>N.createElement(Cl,{ref:a,iconNode:t,className:_o(`lucide-${Sl(xo(e))}`,`lucide-${e}`,n),...o}));return r.displayName=xo(e),r};He("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),He("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),He("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),He("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"}]]),He("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),He("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);const jl=bs("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ct({className:e,variant:t="default",size:r="default",asChild:n=!1,...o}){const a=n?co:"button";return b.jsx(a,{"data-slot":"button","data-variant":t,"data-size":r,className:re(jl({variant:t,size:r,className:e})),...o})}function kr({className:e,...t}){return b.jsx("div",{"data-slot":"card",className:re("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function Or({className:e,...t}){return b.jsx("div",{"data-slot":"card-header",className:re("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Rr({className:e,...t}){return b.jsx("div",{"data-slot":"card-title",className:re("leading-none font-semibold",e),...t})}function Cr({className:e,...t}){return b.jsx("div",{"data-slot":"card-description",className:re("text-muted-foreground text-sm",e),...t})}function jr({className:e,...t}){return b.jsx("div",{"data-slot":"card-content",className:re("px-6",e),...t})}function F(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var Tl=p[" useInsertionEffect ".trim().toString()]||fe;function Eo({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,i]=Nl({defaultProp:t,onChange:r}),s=e!==void 0,d=s?e:o;{const f=p.useRef(e!==void 0);p.useEffect(()=>{const c=f.current;c!==s&&console.warn(`${n} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=s},[s,n])}const l=p.useCallback(f=>{if(s){const c=Dl(f)?f(e):f;c!==e&&i.current?.(c)}else a(f)},[s,e,a,i]);return[d,l]}function Nl({defaultProp:e,onChange:t}){const[r,n]=p.useState(e),o=p.useRef(r),a=p.useRef(t);return Tl(()=>{a.current=t},[t]),p.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function Dl(e){return typeof e=="function"}function Al(e,t){return p.useReducer((r,n)=>t[r][n]??r,e)}var Te=e=>{const{present:t,children:r}=e,n=Ll(t),o=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),a=Q(n.ref,Ml(o));return typeof r=="function"||n.isPresent?p.cloneElement(o,{ref:a}):null};Te.displayName="Presence";function Ll(e){const[t,r]=p.useState(),n=p.useRef(null),o=p.useRef(e),a=p.useRef("none"),i=e?"mounted":"unmounted",[s,d]=Al(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const l=Tt(n.current);a.current=s==="mounted"?l:"none"},[s]),fe(()=>{const l=n.current,f=o.current;if(f!==e){const c=a.current,u=Tt(l);e?d("MOUNT"):u==="none"||l?.display==="none"?d("UNMOUNT"):d(f&&c!==u?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),fe(()=>{if(t){let l;const f=t.ownerDocument.defaultView??window,c=m=>{const h=Tt(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&h&&(d("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},u=m=>{m.target===t&&(a.current=Tt(n.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{f.clearTimeout(l),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:p.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Tt(e){return e?.animationName||"none"}function Ml(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Pl=p[" useId ".trim().toString()]||(()=>{}),Il=0;function So(e){const[t,r]=p.useState(Pl());return fe(()=>{r(n=>n??String(Il++))},[e]),e||(t?`radix-${t}`:"")}var Nt="Collapsible",[Fl,Vm]=Ee(Nt),[Vl,Tr]=Fl(Nt),zl=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[d,l]=Eo({prop:n,defaultProp:o??!1,onChange:i,caller:Nt});return b.jsx(Vl,{scope:r,disabled:a,contentId:So(),open:d,onOpenToggle:p.useCallback(()=>l(f=>!f),[l]),children:b.jsx(J.div,{"data-state":Dr(d),"data-disabled":a?"":void 0,...s,ref:t})})});zl.displayName=Nt;var ko="CollapsibleTrigger",$l=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Tr(ko,r);return b.jsx(J.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Dr(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:F(e.onClick,o.onOpenToggle)})});$l.displayName=ko;var Nr="CollapsibleContent",Wl=p.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Tr(Nr,e.__scopeCollapsible);return b.jsx(Te,{present:r||o.open,children:({present:a})=>b.jsx(Ul,{...n,ref:t,present:a})})});Wl.displayName=Nr;var Ul=p.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,i=Tr(Nr,r),[s,d]=p.useState(n),l=p.useRef(null),f=Q(t,l),c=p.useRef(0),u=c.current,m=p.useRef(0),h=m.current,g=i.open||s,y=p.useRef(g),w=p.useRef(void 0);return p.useEffect(()=>{const x=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(x)},[]),fe(()=>{const x=l.current;if(x){w.current=w.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const E=x.getBoundingClientRect();c.current=E.height,m.current=E.width,y.current||(x.style.transitionDuration=w.current.transitionDuration,x.style.animationName=w.current.animationName),d(n)}},[i.open,n]),b.jsx(J.div,{"data-state":Dr(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...a,ref:f,style:{"--radix-collapsible-content-height":u?`${u}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:g&&o})});function Dr(e){return e?"open":"closed"}function Oo(e){const t=e+"CollectionProvider",[r,n]=Ee(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:y,children:w}=g,x=N.useRef(null),E=N.useRef(new Map).current;return b.jsx(o,{scope:y,itemMap:E,collectionRef:x,children:w})};i.displayName=t;const s=e+"CollectionSlot",d=Ge(s),l=N.forwardRef((g,y)=>{const{scope:w,children:x}=g,E=a(s,w),_=Q(y,E.collectionRef);return b.jsx(d,{ref:_,children:x})});l.displayName=s;const f=e+"CollectionItemSlot",c="data-radix-collection-item",u=Ge(f),m=N.forwardRef((g,y)=>{const{scope:w,children:x,...E}=g,_=N.useRef(null),C=Q(y,_),j=a(f,w);return N.useEffect(()=>(j.itemMap.set(_,{ref:_,...E}),()=>{j.itemMap.delete(_)})),b.jsx(u,{[c]:"",ref:C,children:x})});m.displayName=f;function h(g){const y=a(e+"CollectionConsumer",g);return N.useCallback(()=>{const w=y.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${c}]`));return Array.from(y.itemMap.values()).sort((E,_)=>x.indexOf(E.ref.current)-x.indexOf(_.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},h,n]}var Gl=p.createContext(void 0);function Hl(e){const t=p.useContext(Gl);return e||t||"ltr"}function Bl(e,t=globalThis?.document){const r=Se(e);p.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 Kl="DismissableLayer",Ar="dismissableLayer.update",Yl="dismissableLayer.pointerDownOutside",ql="dismissableLayer.focusOutside",Ro,Co=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dt=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...d}=e,l=p.useContext(Co),[f,c]=p.useState(null),u=f?.ownerDocument??globalThis?.document,[,m]=p.useState({}),h=Q(t,T=>c(T)),g=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(y),x=f?g.indexOf(f):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,_=x>=w,C=Jl(T=>{const S=T.target,I=[...l.branches].some(U=>U.contains(S));!_||I||(o?.(T),i?.(T),T.defaultPrevented||s?.())},u),j=Ql(T=>{const S=T.target;[...l.branches].some(I=>I.contains(S))||(a?.(T),i?.(T),T.defaultPrevented||s?.())},u);return Bl(T=>{x===l.layers.size-1&&(n?.(T),!T.defaultPrevented&&s&&(T.preventDefault(),s()))},u),p.useEffect(()=>{if(f)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Ro=u.body.style.pointerEvents,u.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),jo(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(u.body.style.pointerEvents=Ro)}},[f,u,r,l]),p.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),jo())},[f,l]),p.useEffect(()=>{const T=()=>m({});return document.addEventListener(Ar,T),()=>document.removeEventListener(Ar,T)},[]),b.jsx(J.div,{...d,ref:h,style:{pointerEvents:E?_?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,j.onFocusCapture),onBlurCapture:F(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,C.onPointerDownCapture)})});Dt.displayName=Kl;var Xl="DismissableLayerBranch",Zl=p.forwardRef((e,t)=>{const r=p.useContext(Co),n=p.useRef(null),o=Q(t,n);return p.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),b.jsx(J.div,{...e,ref:o})});Zl.displayName=Xl;function Jl(e,t=globalThis?.document){const r=Se(e),n=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let d=function(){To(Yl,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);n.current=!1},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 Ql(e,t=globalThis?.document){const r=Se(e),n=p.useRef(!1);return p.useEffect(()=>{const o=a=>{a.target&&!n.current&&To(ql,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 jo(){const e=new CustomEvent(Ar);document.dispatchEvent(e)}function To(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?fo(o,a):o.dispatchEvent(a)}var Lr=0;function No(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Do()),document.body.insertAdjacentElement("beforeend",e[1]??Do()),Lr++,()=>{Lr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Lr--}},[])}function Do(){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 Mr="focusScope.autoFocusOnMount",Pr="focusScope.autoFocusOnUnmount",Ao={bubbles:!1,cancelable:!0},ec="FocusScope",Ir=p.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,d]=p.useState(null),l=Se(o),f=Se(a),c=p.useRef(null),u=Q(t,g=>d(g)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let g=function(E){if(m.paused||!s)return;const _=E.target;s.contains(_)?c.current=_:Ne(c.current,{select:!0})},y=function(E){if(m.paused||!s)return;const _=E.relatedTarget;_!==null&&(s.contains(_)||Ne(c.current,{select:!0}))},w=function(E){if(document.activeElement===document.body)for(const _ of E)_.removedNodes.length>0&&Ne(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",y);const x=new MutationObserver(w);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y),x.disconnect()}}},[n,s,m.paused]),p.useEffect(()=>{if(s){Po.add(m);const g=document.activeElement;if(!s.contains(g)){const y=new CustomEvent(Mr,Ao);s.addEventListener(Mr,l),s.dispatchEvent(y),y.defaultPrevented||(tc(ic(Lo(s)),{select:!0}),document.activeElement===g&&Ne(s))}return()=>{s.removeEventListener(Mr,l),setTimeout(()=>{const y=new CustomEvent(Pr,Ao);s.addEventListener(Pr,f),s.dispatchEvent(y),y.defaultPrevented||Ne(g??document.body,{select:!0}),s.removeEventListener(Pr,f),Po.remove(m)},0)}}},[s,l,f,m]);const h=p.useCallback(g=>{if(!r&&!n||m.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(y&&w){const x=g.currentTarget,[E,_]=rc(x);E&&_?!g.shiftKey&&w===_?(g.preventDefault(),r&&Ne(E,{select:!0})):g.shiftKey&&w===E&&(g.preventDefault(),r&&Ne(_,{select:!0})):w===x&&g.preventDefault()}},[r,n,m.paused]);return b.jsx(J.div,{tabIndex:-1,...i,ref:u,onKeyDown:h})});Ir.displayName=ec;function tc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ne(n,{select:t}),document.activeElement!==r)return}function rc(e){const t=Lo(e),r=Mo(t,e),n=Mo(t.reverse(),e);return[r,n]}function Lo(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 Mo(e,t){for(const r of e)if(!nc(r,{upTo:t}))return r}function nc(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 oc(e){return e instanceof HTMLInputElement&&"select"in e}function Ne(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&oc(e)&&t&&e.select()}}var Po=ac();function ac(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Io(e,t),e.unshift(t)},remove(t){e=Io(e,t),e[0]?.resume()}}}function Io(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function ic(e){return e.filter(t=>t.tagName!=="A")}const sc=["top","right","bottom","left"],De=Math.min,ce=Math.max,At=Math.round,Lt=Math.floor,he=e=>({x:e,y:e}),lc={left:"right",right:"left",bottom:"top",top:"bottom"},cc={start:"end",end:"start"};function Fr(e,t,r){return ce(e,De(t,r))}function ke(e,t){return typeof e=="function"?e(t):e}function Oe(e){return e.split("-")[0]}function Be(e){return e.split("-")[1]}function Vr(e){return e==="x"?"y":"x"}function zr(e){return e==="y"?"height":"width"}const uc=new Set(["top","bottom"]);function ve(e){return uc.has(Oe(e))?"y":"x"}function $r(e){return Vr(ve(e))}function dc(e,t,r){r===void 0&&(r=!1);const n=Be(e),o=$r(e),a=zr(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 fc(e){const t=Mt(e);return[Wr(e),t,Wr(t)]}function Wr(e){return e.replace(/start|end/g,t=>cc[t])}const Fo=["left","right"],Vo=["right","left"],pc=["top","bottom"],mc=["bottom","top"];function gc(e,t,r){switch(e){case"top":case"bottom":return r?t?Vo:Fo:t?Fo:Vo;case"left":case"right":return t?pc:mc;default:return[]}}function hc(e,t,r,n){const o=Be(e);let a=gc(Oe(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Wr)))),a}function Mt(e){return e.replace(/left|right|bottom|top/g,t=>lc[t])}function vc(e){return{top:0,right:0,bottom:0,left:0,...e}}function zo(e){return typeof e!="number"?vc(e):{top:e,right:e,bottom:e,left:e}}function Pt(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 $o(e,t,r){let{reference:n,floating:o}=e;const a=ve(t),i=$r(t),s=zr(i),d=Oe(t),l=a==="y",f=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2,u=n[s]/2-o[s]/2;let m;switch(d){case"top":m={x:f,y:n.y-o.height};break;case"bottom":m={x:f,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:c};break;case"left":m={x:n.x-o.width,y:c};break;default:m={x:n.x,y:n.y}}switch(Be(t)){case"start":m[i]-=u*(r&&l?-1:1);break;case"end":m[i]+=u*(r&&l?-1:1);break}return m}const yc=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),d=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:c}=$o(l,n,d),u=n,m={},h=0;for(let g=0;g<s.length;g++){const{name:y,fn:w}=s[g],{x,y:E,data:_,reset:C}=await w({x:f,y:c,initialPlacement:n,placement:u,strategy:o,middlewareData:m,rects:l,platform:i,elements:{reference:e,floating:t}});f=x??f,c=E??c,m={...m,[y]:{...m[y],..._}},C&&h<=50&&(h++,typeof C=="object"&&(C.placement&&(u=C.placement),C.rects&&(l=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:c}=$o(l,u,d)),g=-1)}return{x:f,y:c,placement:u,strategy:o,middlewareData:m}};async function ut(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:d}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:u=!1,padding:m=0}=ke(t,e),h=zo(m),g=s[u?c==="floating"?"reference":"floating":c],y=Pt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(g)))==null||r?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:d})),w=c==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),E=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},_=Pt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:d}):w);return{top:(y.top-_.top+h.top)/E.y,bottom:(_.bottom-y.bottom+h.bottom)/E.y,left:(y.left-_.left+h.left)/E.x,right:(_.right-y.right+h.right)/E.x}}const bc=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:d}=t,{element:l,padding:f=0}=ke(e,t)||{};if(l==null)return{};const c=zo(f),u={x:r,y:n},m=$r(o),h=zr(m),g=await i.getDimensions(l),y=m==="y",w=y?"top":"left",x=y?"bottom":"right",E=y?"clientHeight":"clientWidth",_=a.reference[h]+a.reference[m]-u[m]-a.floating[h],C=u[m]-a.reference[m],j=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let T=j?j[E]:0;(!T||!await(i.isElement==null?void 0:i.isElement(j)))&&(T=s.floating[E]||a.floating[h]);const S=_/2-C/2,I=T/2-g[h]/2-1,U=De(c[w],I),G=De(c[x],I),q=U,Z=T-g[h]-G,W=T/2-g[h]/2+S,Y=Fr(q,W,Z),H=!d.arrow&&Be(o)!=null&&W!==Y&&a.reference[h]/2-(W<q?U:G)-g[h]/2<0,B=H?W<q?W-q:W-Z:0;return{[m]:u[m]+B,data:{[m]:Y,centerOffset:W-Y-B,...H&&{alignmentOffset:B}},reset:H}}}),wc=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:d,elements:l}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:u,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...y}=ke(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const w=Oe(o),x=ve(s),E=Oe(s)===s,_=await(d.isRTL==null?void 0:d.isRTL(l.floating)),C=u||(E||!g?[Mt(s)]:fc(s)),j=h!=="none";!u&&j&&C.push(...hc(s,g,h,_));const T=[s,...C],S=await ut(t,y),I=[];let U=((n=a.flip)==null?void 0:n.overflows)||[];if(f&&I.push(S[w]),c){const W=dc(o,i,_);I.push(S[W[0]],S[W[1]])}if(U=[...U,{placement:o,overflows:I}],!I.every(W=>W<=0)){var G,q;const W=(((G=a.flip)==null?void 0:G.index)||0)+1,Y=T[W];if(Y&&(!(c==="alignment"&&x!==ve(Y))||U.every(B=>ve(B.placement)===x?B.overflows[0]>0:!0)))return{data:{index:W,overflows:U},reset:{placement:Y}};let H=(q=U.filter(B=>B.overflows[0]<=0).sort((B,O)=>B.overflows[1]-O.overflows[1])[0])==null?void 0:q.placement;if(!H)switch(m){case"bestFit":{var Z;const B=(Z=U.filter(O=>{if(j){const D=ve(O.placement);return D===x||D==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(D=>D>0).reduce((D,v)=>D+v,0)]).sort((O,D)=>O[1]-D[1])[0])==null?void 0:Z[0];B&&(H=B);break}case"initialPlacement":H=s;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function Wo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Uo(e){return sc.some(t=>e[t]>=0)}const xc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=ke(e,t);switch(n){case"referenceHidden":{const a=await ut(t,{...o,elementContext:"reference"}),i=Wo(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Uo(i)}}}case"escaped":{const a=await ut(t,{...o,altBoundary:!0}),i=Wo(a,r.floating);return{data:{escapedOffsets:i,escaped:Uo(i)}}}default:return{}}}}},Go=new Set(["left","top"]);async function _c(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Oe(r),s=Be(r),d=ve(r)==="y",l=Go.has(i)?-1:1,f=a&&d?-1:1,c=ke(t,e);let{mainAxis:u,crossAxis:m,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof h=="number"&&(m=s==="end"?h*-1:h),d?{x:m*f,y:u*l}:{x:u*l,y:m*f}}const Ec=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,d=await _c(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+d.x,y:a+d.y,data:{...d,placement:i}}}}},Sc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:y=>{let{x:w,y:x}=y;return{x:w,y:x}}},...d}=ke(e,t),l={x:r,y:n},f=await ut(t,d),c=ve(Oe(o)),u=Vr(c);let m=l[u],h=l[c];if(a){const y=u==="y"?"top":"left",w=u==="y"?"bottom":"right",x=m+f[y],E=m-f[w];m=Fr(x,m,E)}if(i){const y=c==="y"?"top":"left",w=c==="y"?"bottom":"right",x=h+f[y],E=h-f[w];h=Fr(x,h,E)}const g=s.fn({...t,[u]:m,[c]:h});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[u]:a,[c]:i}}}}}},kc=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:d=!0,crossAxis:l=!0}=ke(e,t),f={x:r,y:n},c=ve(o),u=Vr(c);let m=f[u],h=f[c];const g=ke(s,t),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(d){const E=u==="y"?"height":"width",_=a.reference[u]-a.floating[E]+y.mainAxis,C=a.reference[u]+a.reference[E]-y.mainAxis;m<_?m=_:m>C&&(m=C)}if(l){var w,x;const E=u==="y"?"width":"height",_=Go.has(Oe(o)),C=a.reference[c]-a.floating[E]+(_&&((w=i.offset)==null?void 0:w[c])||0)+(_?0:y.crossAxis),j=a.reference[c]+a.reference[E]+(_?0:((x=i.offset)==null?void 0:x[c])||0)-(_?y.crossAxis:0);h<C?h=C:h>j&&(h=j)}return{[u]:m,[c]:h}}}},Oc=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:d=()=>{},...l}=ke(e,t),f=await ut(t,l),c=Oe(o),u=Be(o),m=ve(o)==="y",{width:h,height:g}=a.floating;let y,w;c==="top"||c==="bottom"?(y=c,w=u===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(w=c,y=u==="end"?"top":"bottom");const x=g-f.top-f.bottom,E=h-f.left-f.right,_=De(g-f[y],x),C=De(h-f[w],E),j=!t.middlewareData.shift;let T=_,S=C;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(S=E),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=x),j&&!u){const U=ce(f.left,0),G=ce(f.right,0),q=ce(f.top,0),Z=ce(f.bottom,0);m?S=h-2*(U!==0||G!==0?U+G:ce(f.left,f.right)):T=g-2*(q!==0||Z!==0?q+Z:ce(f.top,f.bottom))}await d({...t,availableWidth:S,availableHeight:T});const I=await i.getDimensions(s.floating);return h!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function It(){return typeof window<"u"}function Ke(e){return Ho(e)?(e.nodeName||"").toLowerCase():"#document"}function ue(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ye(e){var t;return(t=(Ho(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ho(e){return It()?e instanceof Node||e instanceof ue(e).Node:!1}function me(e){return It()?e instanceof Element||e instanceof ue(e).Element:!1}function be(e){return It()?e instanceof HTMLElement||e instanceof ue(e).HTMLElement:!1}function Bo(e){return!It()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ue(e).ShadowRoot}const Rc=new Set(["inline","contents"]);function dt(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Rc.has(o)}const Cc=new Set(["table","td","th"]);function jc(e){return Cc.has(Ke(e))}const Tc=[":popover-open",":modal"];function Ft(e){return Tc.some(t=>{try{return e.matches(t)}catch{return!1}})}const Nc=["transform","translate","scale","rotate","perspective"],Dc=["transform","translate","scale","rotate","perspective","filter"],Ac=["paint","layout","strict","content"];function Ur(e){const t=Gr(),r=me(e)?ge(e):e;return Nc.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)||Dc.some(n=>(r.willChange||"").includes(n))||Ac.some(n=>(r.contain||"").includes(n))}function Lc(e){let t=Ae(e);for(;be(t)&&!Ye(t);){if(Ur(t))return t;if(Ft(t))return null;t=Ae(t)}return null}function Gr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Mc=new Set(["html","body","#document"]);function Ye(e){return Mc.has(Ke(e))}function ge(e){return ue(e).getComputedStyle(e)}function Vt(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ae(e){if(Ke(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bo(e)&&e.host||ye(e);return Bo(t)?t.host:t}function Ko(e){const t=Ae(e);return Ye(t)?e.ownerDocument?e.ownerDocument.body:e.body:be(t)&&dt(t)?t:Ko(t)}function ft(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=ue(o);if(a){const s=Hr(i);return t.concat(i,i.visualViewport||[],dt(o)?o:[],s&&r?ft(s):[])}return t.concat(o,ft(o,[],r))}function Hr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yo(e){const t=ge(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=At(r)!==a||At(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function Br(e){return me(e)?e:e.contextElement}function qe(e){const t=Br(e);if(!be(t))return he(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Yo(t);let i=(a?At(r.width):r.width)/n,s=(a?At(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Pc=he(0);function qo(e){const t=ue(e);return!Gr()||!t.visualViewport?Pc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ic(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ue(e)?!1:t}function Me(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Br(e);let i=he(1);t&&(n?me(n)&&(i=qe(n)):i=qe(e));const s=Ic(a,r,n)?qo(a):he(0);let d=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,f=o.width/i.x,c=o.height/i.y;if(a){const u=ue(a),m=n&&me(n)?ue(n):n;let h=u,g=Hr(h);for(;g&&n&&m!==h;){const y=qe(g),w=g.getBoundingClientRect(),x=ge(g),E=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*y.x,_=w.top+(g.clientTop+parseFloat(x.paddingTop))*y.y;d*=y.x,l*=y.y,f*=y.x,c*=y.y,d+=E,l+=_,h=ue(g),g=Hr(h)}}return Pt({width:f,height:c,x:d,y:l})}function zt(e,t){const r=Vt(e).scrollLeft;return t?t.left+r:Me(ye(e)).left+r}function Xo(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-zt(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Fc(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=ye(n),s=t?Ft(t.floating):!1;if(n===i||s&&a)return r;let d={scrollLeft:0,scrollTop:0},l=he(1);const f=he(0),c=be(n);if((c||!c&&!a)&&((Ke(n)!=="body"||dt(i))&&(d=Vt(n)),be(n))){const m=Me(n);l=qe(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}const u=i&&!c&&!a?Xo(i,d):he(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-d.scrollLeft*l.x+f.x+u.x,y:r.y*l.y-d.scrollTop*l.y+f.y+u.y}}function Vc(e){return Array.from(e.getClientRects())}function zc(e){const t=ye(e),r=Vt(e),n=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=ce(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+zt(e);const s=-r.scrollTop;return ge(n).direction==="rtl"&&(i+=ce(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const Zo=25;function $c(e,t){const r=ue(e),n=ye(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,d=0;if(o){a=o.width,i=o.height;const f=Gr();(!f||f&&t==="fixed")&&(s=o.offsetLeft,d=o.offsetTop)}const l=zt(n);if(l<=0){const f=n.ownerDocument,c=f.body,u=getComputedStyle(c),m=f.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,h=Math.abs(n.clientWidth-c.clientWidth-m);h<=Zo&&(a-=h)}else l<=Zo&&(a+=l);return{width:a,height:i,x:s,y:d}}const Wc=new Set(["absolute","fixed"]);function Uc(e,t){const r=Me(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=be(e)?qe(e):he(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,d=o*a.x,l=n*a.y;return{width:i,height:s,x:d,y:l}}function Jo(e,t,r){let n;if(t==="viewport")n=$c(e,r);else if(t==="document")n=zc(ye(e));else if(me(t))n=Uc(t,r);else{const o=qo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Pt(n)}function Qo(e,t){const r=Ae(e);return r===t||!me(r)||Ye(r)?!1:ge(r).position==="fixed"||Qo(r,t)}function Gc(e,t){const r=t.get(e);if(r)return r;let n=ft(e,[],!1).filter(s=>me(s)&&Ke(s)!=="body"),o=null;const a=ge(e).position==="fixed";let i=a?Ae(e):e;for(;me(i)&&!Ye(i);){const s=ge(i),d=Ur(i);!d&&s.position==="fixed"&&(o=null),(a?!d&&!o:!d&&s.position==="static"&&o&&Wc.has(o.position)||dt(i)&&!d&&Qo(e,i))?n=n.filter(l=>l!==i):o=s,i=Ae(i)}return t.set(e,n),n}function Hc(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Ft(t)?[]:Gc(t,this._c):[].concat(r),n],i=a[0],s=a.reduce((d,l)=>{const f=Jo(t,l,o);return d.top=ce(f.top,d.top),d.right=De(f.right,d.right),d.bottom=De(f.bottom,d.bottom),d.left=ce(f.left,d.left),d},Jo(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Bc(e){const{width:t,height:r}=Yo(e);return{width:t,height:r}}function Kc(e,t,r){const n=be(t),o=ye(t),a=r==="fixed",i=Me(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const d=he(0);function l(){d.x=zt(o)}if(n||!n&&!a)if((Ke(t)!=="body"||dt(o))&&(s=Vt(t)),n){const m=Me(t,!0,a,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&l();a&&!n&&o&&l();const f=o&&!n&&!a?Xo(o,s):he(0),c=i.left+s.scrollLeft-d.x-f.x,u=i.top+s.scrollTop-d.y-f.y;return{x:c,y:u,width:i.width,height:i.height}}function Kr(e){return ge(e).position==="static"}function ea(e,t){if(!be(e)||ge(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ye(e)===r&&(r=r.ownerDocument.body),r}function ta(e,t){const r=ue(e);if(Ft(e))return r;if(!be(e)){let o=Ae(e);for(;o&&!Ye(o);){if(me(o)&&!Kr(o))return o;o=Ae(o)}return r}let n=ea(e,t);for(;n&&jc(n)&&Kr(n);)n=ea(n,t);return n&&Ye(n)&&Kr(n)&&!Ur(n)?r:n||Lc(e)||r}const Yc=async function(e){const t=this.getOffsetParent||ta,r=this.getDimensions,n=await r(e.floating);return{reference:Kc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function qc(e){return ge(e).direction==="rtl"}const Xc={convertOffsetParentRelativeRectToViewportRelativeRect:Fc,getDocumentElement:ye,getClippingRect:Hc,getOffsetParent:ta,getElementRects:Yc,getClientRects:Vc,getDimensions:Bc,getScale:qe,isElement:me,isRTL:qc};function ra(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zc(e,t){let r=null,n;const o=ye(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,d){s===void 0&&(s=!1),d===void 0&&(d=1),a();const l=e.getBoundingClientRect(),{left:f,top:c,width:u,height:m}=l;if(s||t(),!u||!m)return;const h=Lt(c),g=Lt(o.clientWidth-(f+u)),y=Lt(o.clientHeight-(c+m)),w=Lt(f),x={rootMargin:-h+"px "+-g+"px "+-y+"px "+-w+"px",threshold:ce(0,De(1,d))||1};let E=!0;function _(C){const j=C[0].intersectionRatio;if(j!==d){if(!E)return i();j?i(!1,j):n=setTimeout(()=>{i(!1,1e-7)},1e3)}j===1&&!ra(l,e.getBoundingClientRect())&&i(),E=!1}try{r=new IntersectionObserver(_,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(_,x)}r.observe(e)}return i(!0),a}function Jc(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:d=!1}=n,l=Br(e),f=o||a?[...l?ft(l):[],...ft(t)]:[];f.forEach(w=>{o&&w.addEventListener("scroll",r,{passive:!0}),a&&w.addEventListener("resize",r)});const c=l&&s?Zc(l,r):null;let u=-1,m=null;i&&(m=new ResizeObserver(w=>{let[x]=w;x&&x.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(t)})),r()}),l&&!d&&m.observe(l),m.observe(t));let h,g=d?Me(e):null;d&&y();function y(){const w=Me(e);g&&!ra(g,w)&&r(),g=w,h=requestAnimationFrame(y)}return r(),()=>{var w;f.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),c?.(),(w=m)==null||w.disconnect(),m=null,d&&cancelAnimationFrame(h)}}const Qc=Ec,eu=Sc,tu=wc,ru=Oc,nu=xc,na=bc,ou=kc,au=(e,t,r)=>{const n=new Map,o={platform:Xc,...r},a={...o.platform,_c:n};return yc(e,t,{...o,platform:a})};var iu=typeof document<"u",su=function(){},$t=iu?N.useLayoutEffect:su;function Wt(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(!Wt(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)&&!Wt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function oa(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function aa(e,t){const r=oa(e);return Math.round(t*r)/r}function Yr(e){const t=p.useRef(e);return $t(()=>{t.current=e}),t}function lu(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:d,open:l}=e,[f,c]=p.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[u,m]=p.useState(n);Wt(u,n)||m(n);const[h,g]=p.useState(null),[y,w]=p.useState(null),x=p.useCallback(O=>{O!==j.current&&(j.current=O,g(O))},[]),E=p.useCallback(O=>{O!==T.current&&(T.current=O,w(O))},[]),_=a||h,C=i||y,j=p.useRef(null),T=p.useRef(null),S=p.useRef(f),I=d!=null,U=Yr(d),G=Yr(o),q=Yr(l),Z=p.useCallback(()=>{if(!j.current||!T.current)return;const O={placement:t,strategy:r,middleware:u};G.current&&(O.platform=G.current),au(j.current,T.current,O).then(D=>{const v={...D,isPositioned:q.current!==!1};W.current&&!Wt(S.current,v)&&(S.current=v,xr.flushSync(()=>{c(v)}))})},[u,t,r,G,q]);$t(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,c(O=>({...O,isPositioned:!1})))},[l]);const W=p.useRef(!1);$t(()=>(W.current=!0,()=>{W.current=!1}),[]),$t(()=>{if(_&&(j.current=_),C&&(T.current=C),_&&C){if(U.current)return U.current(_,C,Z);Z()}},[_,C,Z,U,I]);const Y=p.useMemo(()=>({reference:j,floating:T,setReference:x,setFloating:E}),[x,E]),H=p.useMemo(()=>({reference:_,floating:C}),[_,C]),B=p.useMemo(()=>{const O={position:r,left:0,top:0};if(!H.floating)return O;const D=aa(H.floating,f.x),v=aa(H.floating,f.y);return s?{...O,transform:"translate("+D+"px, "+v+"px)",...oa(H.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:D,top:v}},[r,s,H.floating,f.x,f.y]);return p.useMemo(()=>({...f,update:Z,refs:Y,elements:H,floatingStyles:B}),[f,Z,Y,H,B])}const cu=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?na({element:n.current,padding:o}).fn(r):{}:n?na({element:n,padding:o}).fn(r):{}}}},uu=(e,t)=>({...Qc(e),options:[e,t]}),du=(e,t)=>({...eu(e),options:[e,t]}),fu=(e,t)=>({...ou(e),options:[e,t]}),pu=(e,t)=>({...tu(e),options:[e,t]}),mu=(e,t)=>({...ru(e),options:[e,t]}),gu=(e,t)=>({...nu(e),options:[e,t]}),hu=(e,t)=>({...cu(e),options:[e,t]});var vu="Arrow",ia=p.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return b.jsx(J.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});ia.displayName=vu;var yu=ia;function bu(e){const[t,r]=p.useState(void 0);return fe(()=>{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 d=a.borderBoxSize,l=Array.isArray(d)?d[0]:d;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var sa="Popper",[la,Ut]=Ee(sa),[zm,ca]=la(sa),ua="PopperAnchor",da=p.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=ca(ua,r),i=p.useRef(null),s=Q(t,i),d=p.useRef(null);return p.useEffect(()=>{const l=d.current;d.current=n?.current||i.current,l!==d.current&&a.onAnchorChange(d.current)}),n?null:b.jsx(J.div,{...o,ref:s})});da.displayName=ua;var qr="PopperContent",[wu,xu]=la(qr),fa=p.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:d=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:c="partial",hideWhenDetached:u=!1,updatePositionStrategy:m="optimized",onPlaced:h,...g}=e,y=ca(qr,r),[w,x]=p.useState(null),E=Q(t,V=>x(V)),[_,C]=p.useState(null),j=bu(_),T=j?.width??0,S=j?.height??0,I=n+(a!=="center"?"-"+a:""),U=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},G=Array.isArray(l)?l:[l],q=G.length>0,Z={padding:U,boundary:G.filter(Eu),altBoundary:q},{refs:W,floatingStyles:Y,placement:H,isPositioned:B,middlewareData:O}=lu({strategy:"fixed",placement:I,whileElementsMounted:(...V)=>Jc(...V,{animationFrame:m==="always"}),elements:{reference:y.anchor},middleware:[uu({mainAxis:o+S,alignmentAxis:i}),d&&du({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?fu():void 0,...Z}),d&&pu({...Z}),mu({...Z,apply:({elements:V,rects:z,availableWidth:ee,availableHeight:le})=>{const{width:Ce,height:nt}=z.reference,pr=V.floating.style;pr.setProperty("--radix-popper-available-width",`${ee}px`),pr.setProperty("--radix-popper-available-height",`${le}px`),pr.setProperty("--radix-popper-anchor-width",`${Ce}px`),pr.setProperty("--radix-popper-anchor-height",`${nt}px`)}}),_&&hu({element:_,padding:s}),Su({arrowWidth:T,arrowHeight:S}),u&&gu({strategy:"referenceHidden",...Z})]}),[D,v]=ga(H),R=Se(h);fe(()=>{B&&R?.()},[B,R]);const M=O.arrow?.x,P=O.arrow?.y,K=O.arrow?.centerOffset!==0,[X,ie]=p.useState();return fe(()=>{w&&ie(window.getComputedStyle(w).zIndex)},[w]),b.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:B?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(wu,{scope:r,placedSide:D,onArrowChange:C,arrowX:M,arrowY:P,shouldHideArrow:K,children:b.jsx(J.div,{"data-side":D,"data-align":v,...g,ref:E,style:{...g.style,animation:B?void 0:"none"}})})})});fa.displayName=qr;var pa="PopperArrow",_u={top:"bottom",right:"left",bottom:"top",left:"right"},ma=p.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=xu(pa,r),a=_u[o.placedSide];return b.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:b.jsx(yu,{...n,ref:t,style:{...n.style,display:"block"}})})});ma.displayName=pa;function Eu(e){return e!==null}var Su=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[d,l]=ga(r),f={start:"0%",center:"50%",end:"100%"}[l],c=(o.arrow?.x??0)+i/2,u=(o.arrow?.y??0)+s/2;let m="",h="";return d==="bottom"?(m=a?f:`${c}px`,h=`${-s}px`):d==="top"?(m=a?f:`${c}px`,h=`${n.floating.height+s}px`):d==="right"?(m=`${-s}px`,h=a?f:`${u}px`):d==="left"&&(m=`${n.floating.width+s}px`,h=a?f:`${u}px`),{data:{x:m,y:h}}}});function ga(e){const[t,r="center"]=e.split("-");return[t,r]}var ha=da,va=fa,ya=ma,ku="Portal",Ou=p.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=p.useState(!1);fe(()=>a(!0),[]);const i=r||o&&globalThis?.document?.body;return i?al.createPortal(b.jsx(J.div,{...n,ref:t}),i):null});Ou.displayName=ku;var Xr="rovingFocusGroup.onEntryFocus",Ru={bubbles:!1,cancelable:!0},pt="RovingFocusGroup",[Zr,ba,Cu]=Oo(pt),[ju,wa]=Ee(pt,[Cu]),[Tu,Nu]=ju(pt),xa=p.forwardRef((e,t)=>b.jsx(Zr.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Zr.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Du,{...e,ref:t})})}));xa.displayName=pt;var Du=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:d,onEntryFocus:l,preventScrollOnEntryFocus:f=!1,...c}=e,u=p.useRef(null),m=Q(t,u),h=Hl(a),[g,y]=Eo({prop:i,defaultProp:s??null,onChange:d,caller:pt}),[w,x]=p.useState(!1),E=Se(l),_=ba(r),C=p.useRef(!1),[j,T]=p.useState(0);return p.useEffect(()=>{const S=u.current;if(S)return S.addEventListener(Xr,E),()=>S.removeEventListener(Xr,E)},[E]),b.jsx(Tu,{scope:r,orientation:n,dir:h,loop:o,currentTabStopId:g,onItemFocus:p.useCallback(S=>y(S),[y]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>T(S=>S+1),[]),onFocusableItemRemove:p.useCallback(()=>T(S=>S-1),[]),children:b.jsx(J.div,{tabIndex:w||j===0?-1:0,"data-orientation":n,...c,ref:m,style:{outline:"none",...e.style},onMouseDown:F(e.onMouseDown,()=>{C.current=!0}),onFocus:F(e.onFocus,S=>{const I=!C.current;if(S.target===S.currentTarget&&I&&!w){const U=new CustomEvent(Xr,Ru);if(S.currentTarget.dispatchEvent(U),!U.defaultPrevented){const G=_().filter(Y=>Y.focusable),q=G.find(Y=>Y.active),Z=G.find(Y=>Y.id===g),W=[q,Z,...G].filter(Boolean).map(Y=>Y.ref.current);Sa(W,f)}}C.current=!1}),onBlur:F(e.onBlur,()=>x(!1))})})}),_a="RovingFocusGroupItem",Ea=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...s}=e,d=So(),l=a||d,f=Nu(_a,r),c=f.currentTabStopId===l,u=ba(r),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:g}=f;return p.useEffect(()=>{if(n)return m(),()=>h()},[n,m,h]),b.jsx(Zr.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:b.jsx(J.span,{tabIndex:c?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:F(e.onMouseDown,y=>{n?f.onItemFocus(l):y.preventDefault()}),onFocus:F(e.onFocus,()=>f.onItemFocus(l)),onKeyDown:F(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){f.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const w=Mu(y,f.orientation,f.dir);if(w!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let x=u().filter(E=>E.focusable).map(E=>E.ref.current);if(w==="last")x.reverse();else if(w==="prev"||w==="next"){w==="prev"&&x.reverse();const E=x.indexOf(y.currentTarget);x=f.loop?Pu(x,E+1):x.slice(E+1)}setTimeout(()=>Sa(x))}}),children:typeof i=="function"?i({isCurrentTabStop:c,hasTabStop:g!=null}):i})})});Ea.displayName=_a;var Au={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Lu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Mu(e,t,r){const n=Lu(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Au[n]}function Sa(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Pu(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Iu=xa,Fu=Ea,Vu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xe=new WeakMap,Gt=new WeakMap,Ht={},Jr=0,ka=function(e){return e&&(e.host||ka(e.parentNode))},zu=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ka(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})},$u=function(e,t,r,n){var o=zu(t,Array.isArray(e)?e:[e]);Ht[r]||(Ht[r]=new WeakMap);var a=Ht[r],i=[],s=new Set,d=new Set(o),l=function(c){!c||s.has(c)||(s.add(c),l(c.parentNode))};o.forEach(l);var f=function(c){!c||d.has(c)||Array.prototype.forEach.call(c.children,function(u){if(s.has(u))f(u);else try{var m=u.getAttribute(n),h=m!==null&&m!=="false",g=(Xe.get(u)||0)+1,y=(a.get(u)||0)+1;Xe.set(u,g),a.set(u,y),i.push(u),g===1&&h&&Gt.set(u,!0),y===1&&u.setAttribute(r,"true"),h||u.setAttribute(n,"true")}catch(w){console.error("aria-hidden: cannot operate on ",u,w)}})};return f(t),s.clear(),Jr++,function(){i.forEach(function(c){var u=Xe.get(c)-1,m=a.get(c)-1;Xe.set(c,u),a.set(c,m),u||(Gt.has(c)||c.removeAttribute(n),Gt.delete(c)),m||c.removeAttribute(r)}),Jr--,Jr||(Xe=new WeakMap,Xe=new WeakMap,Gt=new WeakMap,Ht={})}},Oa=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Vu(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),$u(n,o,r,"aria-hidden")):function(){return null}},we=function(){return we=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},we.apply(this,arguments)};function Ra(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 Wu(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Bt="right-scroll-bar-position",Kt="width-before-scroll-bar",Uu="with-scroll-bars-hidden",Gu="--removed-body-scroll-bar-size";function Qr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Hu(e,t){var r=N.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 Bu=typeof window<"u"?p.useLayoutEffect:p.useEffect,Ca=new WeakMap;function Ku(e,t){var r=Hu(null,function(n){return e.forEach(function(o){return Qr(o,n)})});return Bu(function(){var n=Ca.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||Qr(s,null)}),a.forEach(function(s){o.has(s)||Qr(s,i)})}Ca.set(r,e)},[e]),r}function Yu(e){return e}function qu(e,t){t===void 0&&(t=Yu);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 d=function(){var f=i;i=[],f.forEach(a)},l=function(){return Promise.resolve().then(d)};l(),r={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),r}}}};return o}function Xu(e){e===void 0&&(e={});var t=qu(null);return t.options=we({async:!0,ssr:!1},e),t}var ja=function(e){var t=e.sideCar,r=Ra(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 p.createElement(n,we({},r))};ja.isSideCarExport=!0;function Zu(e,t){return e.useMedium(t),ja}var Ta=Xu(),en=function(){},Yt=p.forwardRef(function(e,t){var r=p.useRef(null),n=p.useState({onScrollCapture:en,onWheelCapture:en,onTouchMoveCapture:en}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,d=e.className,l=e.removeScrollBar,f=e.enabled,c=e.shards,u=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,y=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,E=e.gapMode,_=Ra(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=u,j=Ku([r,t]),T=we(we({},_),o);return p.createElement(p.Fragment,null,f&&p.createElement(C,{sideCar:Ta,removeScrollBar:l,shards:c,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:E}),i?p.cloneElement(p.Children.only(s),we(we({},T),{ref:j})):p.createElement(x,we({},T,{className:d,ref:j}),s))});Yt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Yt.classNames={fullWidth:Kt,zeroRight:Bt};var Ju=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Qu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ju();return t&&e.setAttribute("nonce",t),e}function ed(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function td(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var rd=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Qu())&&(ed(t,r),td(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nd=function(){var e=rd();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Na=function(){var e=nd(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},od={left:0,top:0,right:0,gap:0},tn=function(e){return parseInt(e||"",10)||0},ad=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[tn(r),tn(n),tn(o)]},id=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return od;var t=ad(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])}},sd=Na(),Ze="data-scroll-locked",ld=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
16
16
  .`.concat(Uu,` {
17
17
  overflow: hidden `).concat(n,`;
18
18
  padding-right: `).concat(s,"px ").concat(n,`;
@@ -30,35 +30,35 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
30
30
  `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
31
31
  }
32
32
 
33
- .`).concat(Gt,` {
33
+ .`).concat(Bt,` {
34
34
  right: `).concat(s,"px ").concat(n,`;
35
35
  }
36
36
 
37
- .`).concat(Ht,` {
37
+ .`).concat(Kt,` {
38
38
  margin-right: `).concat(s,"px ").concat(n,`;
39
39
  }
40
40
 
41
- .`).concat(Gt," .").concat(Gt,` {
41
+ .`).concat(Bt," .").concat(Bt,` {
42
42
  right: 0 `).concat(n,`;
43
43
  }
44
44
 
45
- .`).concat(Ht," .").concat(Ht,` {
45
+ .`).concat(Kt," .").concat(Kt,` {
46
46
  margin-right: 0 `).concat(n,`;
47
47
  }
48
48
 
49
49
  body[`).concat(Ze,`] {
50
50
  `).concat(Gu,": ").concat(s,`px;
51
51
  }
52
- `)},Na=function(){var e=parseInt(document.body.getAttribute(Ze)||"0",10);return isFinite(e)?e:0},cd=function(){p.useEffect(function(){return document.body.setAttribute(Ze,(Na()+1).toString()),function(){var e=Na()-1;e<=0?document.body.removeAttribute(Ze):document.body.setAttribute(Ze,e.toString())}},[])},ud=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;cd();var a=p.useMemo(function(){return id(o)},[o]);return p.createElement(sd,{styles:ld(a,!t,o,r?"":"!important")})},tn=!1;if(typeof window<"u")try{var Kt=Object.defineProperty({},"passive",{get:function(){return tn=!0,!0}});window.addEventListener("test",Kt,Kt),window.removeEventListener("test",Kt,Kt)}catch{tn=!1}var Je=tn?{passive:!1}:!1,dd=function(e){return e.tagName==="TEXTAREA"},Da=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!dd(e)&&r[t]==="visible")},fd=function(e){return Da(e,"overflowY")},pd=function(e){return Da(e,"overflowX")},Aa=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=La(e,n);if(o){var a=Ma(e,n),i=a[1],s=a[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},md=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},gd=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},La=function(e,t){return e==="v"?fd(t):pd(t)},Ma=function(e,t){return e==="v"?md(t):gd(t)},hd=function(e,t){return e==="h"&&t==="rtl"?-1:1},vd=function(e,t,r,n,o){var a=hd(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,d=t.contains(s),l=!1,f=i>0,c=0,u=0;do{if(!s)break;var m=Ma(e,s),h=m[0],g=m[1],y=m[2],w=g-y-a*h;(h||w)&&La(e,s)&&(c+=w,u+=h);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!d&&s!==document.body||d&&(t.contains(s)||t===s));return(f&&Math.abs(c)<1||!f&&Math.abs(u)<1)&&(l=!0),l},Yt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pa=function(e){return[e.deltaX,e.deltaY]},Ia=function(e){return e&&"current"in e?e.current:e},yd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bd=function(e){return`
52
+ `)},Da=function(){var e=parseInt(document.body.getAttribute(Ze)||"0",10);return isFinite(e)?e:0},cd=function(){p.useEffect(function(){return document.body.setAttribute(Ze,(Da()+1).toString()),function(){var e=Da()-1;e<=0?document.body.removeAttribute(Ze):document.body.setAttribute(Ze,e.toString())}},[])},ud=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;cd();var a=p.useMemo(function(){return id(o)},[o]);return p.createElement(sd,{styles:ld(a,!t,o,r?"":"!important")})},rn=!1;if(typeof window<"u")try{var qt=Object.defineProperty({},"passive",{get:function(){return rn=!0,!0}});window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch{rn=!1}var Je=rn?{passive:!1}:!1,dd=function(e){return e.tagName==="TEXTAREA"},Aa=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!dd(e)&&r[t]==="visible")},fd=function(e){return Aa(e,"overflowY")},pd=function(e){return Aa(e,"overflowX")},La=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Ma(e,n);if(o){var a=Pa(e,n),i=a[1],s=a[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},md=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},gd=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Ma=function(e,t){return e==="v"?fd(t):pd(t)},Pa=function(e,t){return e==="v"?md(t):gd(t)},hd=function(e,t){return e==="h"&&t==="rtl"?-1:1},vd=function(e,t,r,n,o){var a=hd(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,d=t.contains(s),l=!1,f=i>0,c=0,u=0;do{if(!s)break;var m=Pa(e,s),h=m[0],g=m[1],y=m[2],w=g-y-a*h;(h||w)&&Ma(e,s)&&(c+=w,u+=h);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!d&&s!==document.body||d&&(t.contains(s)||t===s));return(f&&Math.abs(c)<1||!f&&Math.abs(u)<1)&&(l=!0),l},Xt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ia=function(e){return[e.deltaX,e.deltaY]},Fa=function(e){return e&&"current"in e?e.current:e},yd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bd=function(e){return`
53
53
  .block-interactivity-`.concat(e,` {pointer-events: none;}
54
54
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
55
- `)},wd=0,Qe=[];function xd(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),o=p.useState(wd++)[0],a=p.useState(ja)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Wu([e.lockRef.current],(e.shards||[]).map(Ia)).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=p.useCallback(function(g,y){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var w=Yt(g),x=r.current,E="deltaX"in g?g.deltaX:x[0]-w[0],_="deltaY"in g?g.deltaY:x[1]-w[1],R,C=g.target,T=Math.abs(E)>Math.abs(_)?"h":"v";if("touches"in g&&T==="h"&&C.type==="range")return!1;var S=window.getSelection(),I=S&&S.anchorNode,U=I?I===C||I.contains(C):!1;if(U)return!1;var G=Aa(T,C);if(!G)return!0;if(G?R=T:(R=T==="v"?"h":"v",G=Aa(T,C)),!G)return!1;if(!n.current&&"changedTouches"in g&&(E||_)&&(n.current=R),!R)return!0;var q=n.current||R;return vd(q,y,g,q==="h"?E:_)},[]),d=p.useCallback(function(g){var y=g;if(!(!Qe.length||Qe[Qe.length-1]!==a)){var w="deltaY"in y?Pa(y):Yt(y),x=t.current.filter(function(R){return R.name===y.type&&(R.target===y.target||y.target===R.shadowParent)&&yd(R.delta,w)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var E=(i.current.shards||[]).map(Ia).filter(Boolean).filter(function(R){return R.contains(y.target)}),_=E.length>0?s(y,E[0]):!i.current.noIsolation;_&&y.cancelable&&y.preventDefault()}}},[]),l=p.useCallback(function(g,y,w,x){var E={name:g,delta:y,target:w,should:x,shadowParent:_d(w)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(_){return _!==E})},1)},[]),f=p.useCallback(function(g){r.current=Yt(g),n.current=void 0},[]),c=p.useCallback(function(g){l(g.type,Pa(g),g.target,s(g,e.lockRef.current))},[]),u=p.useCallback(function(g){l(g.type,Yt(g),g.target,s(g,e.lockRef.current))},[]);p.useEffect(function(){return Qe.push(a),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:u}),document.addEventListener("wheel",d,Je),document.addEventListener("touchmove",d,Je),document.addEventListener("touchstart",f,Je),function(){Qe=Qe.filter(function(g){return g!==a}),document.removeEventListener("wheel",d,Je),document.removeEventListener("touchmove",d,Je),document.removeEventListener("touchstart",f,Je)}},[]);var m=e.removeScrollBar,h=e.inert;return p.createElement(p.Fragment,null,h?p.createElement(a,{styles:bd(o)}):null,m?p.createElement(ud,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _d(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ed=Zu(Ta,xd);var rn=p.forwardRef(function(e,t){return p.createElement(Bt,we({},e,{ref:t,sideCar:Ed}))});rn.classNames=Bt.classNames;var nn=["Enter"," "],Sd=["ArrowDown","PageUp","Home"],Fa=["ArrowUp","PageDown","End"],kd=[...Sd,...Fa],Od={ltr:[...nn,"ArrowRight"],rtl:[...nn,"ArrowLeft"]},Rd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},qt="Menu",[pt,Cd,Td]=ko(qt),[Pe,Va]=Ee(qt,[Td,$t,ba]),on=$t(),za=ba(),[Fm,et]=Pe(qt),[Vm,mt]=Pe(qt),jd="MenuAnchor",an=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=on(r);return b.jsx(ga,{...o,...n,ref:t})});an.displayName=jd;var Nd="MenuPortal",[zm,$a]=Pe(Nd,{forceMount:void 0}),pe="MenuContent",[Dd,sn]=Pe(pe),Wa=p.forwardRef((e,t)=>{const r=$a(pe,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=et(pe,e.__scopeMenu),i=mt(pe,e.__scopeMenu);return b.jsx(pt.Provider,{scope:e.__scopeMenu,children:b.jsx(je,{present:n||a.open,children:b.jsx(pt.Slot,{scope:e.__scopeMenu,children:i.modal?b.jsx(Ad,{...o,ref:t}):b.jsx(Ld,{...o,ref:t})})})})}),Ad=p.forwardRef((e,t)=>{const r=et(pe,e.__scopeMenu),n=p.useRef(null),o=Q(t,n);return p.useEffect(()=>{const a=n.current;if(a)return ka(a)},[]),b.jsx(ln,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:F(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Ld=p.forwardRef((e,t)=>{const r=et(pe,e.__scopeMenu);return b.jsx(ln,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Md=Ge("MenuContent.ScrollLock"),ln=p.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:d,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:u,onDismiss:m,disableOutsideScroll:h,...g}=e,y=et(pe,r),w=mt(pe,r),x=on(r),E=za(r),_=Cd(r),[R,C]=p.useState(null),T=p.useRef(null),S=Q(t,T,y.onContentChange),I=p.useRef(0),U=p.useRef(""),G=p.useRef(0),q=p.useRef(null),Z=p.useRef("right"),W=p.useRef(0),Y=h?rn:p.Fragment,H=h?{as:Md,allowPinchZoom:!0}:void 0,B=D=>{const v=U.current+D,O=_().filter(V=>!V.disabled),M=document.activeElement,P=O.find(V=>V.ref.current===M)?.textValue,K=O.map(V=>V.textValue),X=Kd(K,v,P),ae=O.find(V=>V.textValue===X)?.ref.current;(function V(z){U.current=z,window.clearTimeout(I.current),z!==""&&(I.current=window.setTimeout(()=>V(""),1e3))})(v),ae&&setTimeout(()=>ae.focus())};p.useEffect(()=>()=>window.clearTimeout(I.current),[]),jo();const k=p.useCallback(D=>Z.current===q.current?.side&&qd(D,q.current?.area),[]);return b.jsx(Dd,{scope:r,searchRef:U,onItemEnter:p.useCallback(D=>{k(D)&&D.preventDefault()},[k]),onItemLeave:p.useCallback(D=>{k(D)||(T.current?.focus(),C(null))},[k]),onTriggerLeave:p.useCallback(D=>{k(D)&&D.preventDefault()},[k]),pointerGraceTimerRef:G,onPointerGraceIntentChange:p.useCallback(D=>{q.current=D},[]),children:b.jsx(Y,{...H,children:b.jsx(Pr,{asChild:!0,trapped:o,onMountAutoFocus:F(a,D=>{D.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:b.jsx(jt,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:u,onDismiss:m,children:b.jsx(Iu,{asChild:!0,...E,dir:w.dir,orientation:"vertical",loop:n,currentTabStopId:R,onCurrentTabStopIdChange:C,onEntryFocus:F(d,D=>{w.isUsingKeyboardRef.current||D.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(ha,{role:"menu","aria-orientation":"vertical","data-state":ai(y.open),"data-radix-menu-content":"",dir:w.dir,...x,...g,ref:S,style:{outline:"none",...g.style},onKeyDown:F(g.onKeyDown,D=>{const v=D.target.closest("[data-radix-menu-content]")===D.currentTarget,O=D.ctrlKey||D.altKey||D.metaKey,M=D.key.length===1;v&&(D.key==="Tab"&&D.preventDefault(),!O&&M&&B(D.key));const P=T.current;if(D.target!==P||!kd.includes(D.key))return;D.preventDefault();const K=_().filter(X=>!X.disabled).map(X=>X.ref.current);Fa.includes(D.key)&&K.reverse(),Hd(K)}),onBlur:F(e.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(I.current),U.current="")}),onPointerMove:F(e.onPointerMove,ht(D=>{const v=D.target,O=W.current!==D.clientX;if(D.currentTarget.contains(v)&&O){const M=D.clientX>W.current?"right":"left";Z.current=M,W.current=D.clientX}}))})})})})})})});Wa.displayName=pe;var Pd="MenuGroup",cn=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(J.div,{role:"group",...n,ref:t})});cn.displayName=Pd;var Id="MenuLabel",Ua=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(J.div,{...n,ref:t})});Ua.displayName=Id;var Xt="MenuItem",Ga="menu.itemSelect",Zt=p.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=p.useRef(null),i=mt(Xt,e.__scopeMenu),s=sn(Xt,e.__scopeMenu),d=Q(t,a),l=p.useRef(!1),f=()=>{const c=a.current;if(!r&&c){const u=new CustomEvent(Ga,{bubbles:!0,cancelable:!0});c.addEventListener(Ga,m=>n?.(m),{once:!0}),uo(c,u),u.defaultPrevented?l.current=!1:i.onClose()}};return b.jsx(Ha,{...o,ref:d,disabled:r,onClick:F(e.onClick,f),onPointerDown:c=>{e.onPointerDown?.(c),l.current=!0},onPointerUp:F(e.onPointerUp,c=>{l.current||c.currentTarget?.click()}),onKeyDown:F(e.onKeyDown,c=>{const u=s.searchRef.current!=="";r||u&&c.key===" "||nn.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});Zt.displayName=Xt;var Ha=p.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,i=sn(Xt,r),s=za(r),d=p.useRef(null),l=Q(t,d),[f,c]=p.useState(!1),[u,m]=p.useState("");return p.useEffect(()=>{const h=d.current;h&&m((h.textContent??"").trim())},[a.children]),b.jsx(pt.ItemSlot,{scope:r,disabled:n,textValue:o??u,children:b.jsx(Fu,{asChild:!0,...s,focusable:!n,children:b.jsx(J.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:l,onPointerMove:F(e.onPointerMove,ht(h=>{n?i.onItemLeave(h):(i.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:F(e.onPointerLeave,ht(h=>i.onItemLeave(h))),onFocus:F(e.onFocus,()=>c(!0)),onBlur:F(e.onBlur,()=>c(!1))})})})}),Fd="MenuCheckboxItem",Ba=p.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return b.jsx(Za,{scope:e.__scopeMenu,checked:r,children:b.jsx(Zt,{role:"menuitemcheckbox","aria-checked":Jt(r)?"mixed":r,...o,ref:t,"data-state":dn(r),onSelect:F(o.onSelect,()=>n?.(Jt(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Ba.displayName=Fd;var Ka="MenuRadioGroup",[Vd,zd]=Pe(Ka,{value:void 0,onValueChange:()=>{}}),Ya=p.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=Se(n);return b.jsx(Vd,{scope:e.__scopeMenu,value:r,onValueChange:a,children:b.jsx(cn,{...o,ref:t})})});Ya.displayName=Ka;var qa="MenuRadioItem",Xa=p.forwardRef((e,t)=>{const{value:r,...n}=e,o=zd(qa,e.__scopeMenu),a=r===o.value;return b.jsx(Za,{scope:e.__scopeMenu,checked:a,children:b.jsx(Zt,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":dn(a),onSelect:F(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});Xa.displayName=qa;var un="MenuItemIndicator",[Za,$d]=Pe(un,{checked:!1}),Ja=p.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=$d(un,r);return b.jsx(je,{present:n||Jt(a.checked)||a.checked===!0,children:b.jsx(J.span,{...o,ref:t,"data-state":dn(a.checked)})})});Ja.displayName=un;var Wd="MenuSeparator",Qa=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(J.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});Qa.displayName=Wd;var Ud="MenuArrow",ei=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=on(r);return b.jsx(va,{...o,...n,ref:t})});ei.displayName=Ud;var Gd="MenuSub",[$m,ti]=Pe(Gd),gt="MenuSubTrigger",ri=p.forwardRef((e,t)=>{const r=et(gt,e.__scopeMenu),n=mt(gt,e.__scopeMenu),o=ti(gt,e.__scopeMenu),a=sn(gt,e.__scopeMenu),i=p.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=a,l={__scopeMenu:e.__scopeMenu},f=p.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return p.useEffect(()=>f,[f]),p.useEffect(()=>{const c=s.current;return()=>{window.clearTimeout(c),d(null)}},[s,d]),b.jsx(an,{asChild:!0,...l,children:b.jsx(Ha,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":ai(r.open),...e,ref:lt(t,o.onTriggerChange),onClick:c=>{e.onClick?.(c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:F(e.onPointerMove,ht(c=>{a.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:F(e.onPointerLeave,ht(c=>{f();const u=r.content?.getBoundingClientRect();if(u){const m=r.content?.dataset.side,h=m==="right",g=h?-5:5,y=u[h?"left":"right"],w=u[h?"right":"left"];a.onPointerGraceIntentChange({area:[{x:c.clientX+g,y:c.clientY},{x:y,y:u.top},{x:w,y:u.top},{x:w,y:u.bottom},{x:y,y:u.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(c),c.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:F(e.onKeyDown,c=>{const u=a.searchRef.current!=="";e.disabled||u&&c.key===" "||Od[n.dir].includes(c.key)&&(r.onOpenChange(!0),r.content?.focus(),c.preventDefault())})})})});ri.displayName=gt;var ni="MenuSubContent",oi=p.forwardRef((e,t)=>{const r=$a(pe,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=et(pe,e.__scopeMenu),i=mt(pe,e.__scopeMenu),s=ti(ni,e.__scopeMenu),d=p.useRef(null),l=Q(t,d);return b.jsx(pt.Provider,{scope:e.__scopeMenu,children:b.jsx(je,{present:n||a.open,children:b.jsx(pt.Slot,{scope:e.__scopeMenu,children:b.jsx(ln,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{i.isUsingKeyboardRef.current&&d.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:F(e.onFocusOutside,f=>{f.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:F(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:F(e.onKeyDown,f=>{const c=f.currentTarget.contains(f.target),u=Rd[i.dir].includes(f.key);c&&u&&(a.onOpenChange(!1),s.trigger?.focus(),f.preventDefault())})})})})})});oi.displayName=ni;function ai(e){return e?"open":"closed"}function Jt(e){return e==="indeterminate"}function dn(e){return Jt(e)?"indeterminate":e?"checked":"unchecked"}function Hd(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Bd(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Kd(e,t,r){const n=t.length>1&&Array.from(t).every(s=>s===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=Bd(e,Math.max(o,0));n.length===1&&(a=a.filter(s=>s!==r));const i=a.find(s=>s.toLowerCase().startsWith(n.toLowerCase()));return i!==r?i:void 0}function Yd(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],d=t[i],l=s.x,f=s.y,c=d.x,u=d.y;f>n!=u>n&&r<(c-l)*(n-f)/(u-f)+l&&(o=!o)}return o}function qd(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return Yd(r,t)}function ht(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Xd=an,Zd=Wa,Jd=cn,Qd=Ua,ef=Zt,tf=Ba,rf=Ya,nf=Xa,of=Ja,af=Qa,sf=ei,lf=ri,cf=oi,ii="DropdownMenu",[uf,Wm]=Ee(ii,[Va]),de=Va(),[Um,si]=uf(ii),li="DropdownMenuTrigger",df=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=si(li,r),i=de(r);return b.jsx(Xd,{asChild:!0,...i,children:b.jsx(J.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:lt(t,a.triggerRef),onPointerDown:F(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:F(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});df.displayName=li;var ci="DropdownMenuContent",ff=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=si(ci,r),a=de(r),i=p.useRef(!1);return b.jsx(Zd,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:F(e.onCloseAutoFocus,s=>{i.current||o.triggerRef.current?.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:F(e.onInteractOutside,s=>{const d=s.detail.originalEvent,l=d.button===0&&d.ctrlKey===!0,f=d.button===2||l;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ff.displayName=ci;var pf="DropdownMenuGroup",mf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(Jd,{...o,...n,ref:t})});mf.displayName=pf;var gf="DropdownMenuLabel",hf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(Qd,{...o,...n,ref:t})});hf.displayName=gf;var vf="DropdownMenuItem",yf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(ef,{...o,...n,ref:t})});yf.displayName=vf;var bf="DropdownMenuCheckboxItem",wf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(tf,{...o,...n,ref:t})});wf.displayName=bf;var xf="DropdownMenuRadioGroup",_f=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(rf,{...o,...n,ref:t})});_f.displayName=xf;var Ef="DropdownMenuRadioItem",Sf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(nf,{...o,...n,ref:t})});Sf.displayName=Ef;var kf="DropdownMenuItemIndicator",Of=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(of,{...o,...n,ref:t})});Of.displayName=kf;var Rf="DropdownMenuSeparator",Cf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(af,{...o,...n,ref:t})});Cf.displayName=Rf;var Tf="DropdownMenuArrow",jf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(sf,{...o,...n,ref:t})});jf.displayName=Tf;var Nf="DropdownMenuSubTrigger",Df=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(lf,{...o,...n,ref:t})});Df.displayName=Nf;var Af="DropdownMenuSubContent",Lf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(cf,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Lf.displayName=Af;var Mf="Label",ui=p.forwardRef((e,t)=>b.jsx(J.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));ui.displayName=Mf;var Pf=ui;function vt({className:e,...t}){return b.jsx(Pf,{"data-slot":"label",className:ne("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}var If=Symbol.for("react.lazy"),Qt=p[" use ".trim().toString()];function Ff(e){return typeof e=="object"&&e!==null&&"then"in e}function di(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===If&&"_payload"in e&&Ff(e._payload)}function Vf(e){const t=zf(e),r=p.forwardRef((n,o)=>{let{children:a,...i}=n;di(a)&&typeof Qt=="function"&&(a=Qt(a._payload));const s=p.Children.toArray(a),d=s.find(Wf);if(d){const l=d.props.children,f=s.map(c=>c===d?p.Children.count(l)>1?p.Children.only(null):p.isValidElement(l)?l.props.children:null:c);return b.jsx(t,{...i,ref:o,children:p.isValidElement(l)?p.cloneElement(l,void 0,f):null})}return b.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function zf(e){const t=p.forwardRef((r,n)=>{let{children:o,...a}=r;if(di(o)&&typeof Qt=="function"&&(o=Qt(o._payload)),p.isValidElement(o)){const i=Gf(o),s=Uf(a,o.props);return o.type!==p.Fragment&&(s.ref=n?lt(n,i):i),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $f=Symbol("radix.slottable");function Wf(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$f}function Uf(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const s=a(...i);return o(...i),s}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Gf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Hf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fn=Hf.reduce((e,t)=>{const r=Vf(`Primitive.${t}`),n=p.forwardRef((o,a)=>{const{asChild:i,...s}=o,d=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(d,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Bf="Separator",fi="horizontal",Kf=["horizontal","vertical"],Yf=p.forwardRef((e,t)=>{const{decorative:r,orientation:n=fi,...o}=e,a=qf(n)?n:fi,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return b.jsx(fn.div,{"data-orientation":a,...i,...o,ref:t})});Yf.displayName=Bf;function qf(e){return Kf.includes(e)}function pn({className:e,...t}){return b.jsx("p",{"data-slot":"field-description",className:ne("text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})}function Xf({className:e,children:t,errors:r,...n}){const o=N.useMemo(()=>{if(t)return t;if(!r?.length)return null;const a=[...new Map(r.map(i=>[i?.message,i])).values()];return a?.length==1?a[0]?.message:b.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:a.map((i,s)=>i?.message&&b.jsx("li",{children:i.message},s))})},[t,r]);return o?b.jsx("div",{role:"alert","data-slot":"field-error",className:ne("text-destructive text-sm font-normal",e),...n,children:o}):null}var Zf=e=>e.type==="checkbox",yt=e=>e instanceof Date,mn=e=>e==null;const pi=e=>typeof e=="object";var Ie=e=>!mn(e)&&!Array.isArray(e)&&pi(e)&&!yt(e),Jf=e=>Ie(e)&&e.target?Zf(e.target)?e.target.checked:e.target.value:e,Qf=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ep=(e,t)=>e.has(Qf(t)),tp=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},rp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function mi(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(rp&&(e instanceof Blob||n))&&(r||Ie(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!tp(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=mi(e[o]));else return e;return t}var gi=e=>/^\w*$/.test(e),gn=e=>e===void 0,np=e=>Array.isArray(e)?e.filter(Boolean):[],hi=e=>np(e.replace(/["|']|\]/g,"").split(/\.|\[/)),se=(e,t,r)=>{if(!t||!Ie(e))return r;const n=(gi(t)?[t]:hi(t)).reduce((o,a)=>mn(o)?o:o[a],e);return gn(n)||n===e?gn(e[t])?r:e[t]:n},hn=e=>typeof e=="boolean",vi=(e,t,r)=>{let n=-1;const o=gi(t)?[t]:hi(t),a=o.length,i=a-1;for(;++n<a;){const s=o[n];let d=r;if(n!==i){const l=e[s];d=Ie(l)||Array.isArray(l)?l:isNaN(+o[n+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=d,e=e[s]}};const yi={BLUR:"blur",CHANGE:"change"},bi={all:"all"},vn=N.createContext(null);vn.displayName="HookFormContext";const er=()=>N.useContext(vn),op=e=>{const{children:t,...r}=e;return N.createElement(vn.Provider,{value:r},t)};var ap=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==bi.all&&(t._proxyFormState[i]=!n||bi.all),r&&(r[i]=!0),e[i]}});return o};const wi=typeof window<"u"?N.useLayoutEffect:N.useEffect;function xi(e){const t=er(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=N.useState(r._formState),d=N.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return wi(()=>r._subscribe({name:o,formState:d.current,exact:a,callback:l=>{!n&&s({...r._formState,...l})}}),[o,n,a]),N.useEffect(()=>{d.current.isValid&&r._setValid(!0)},[r]),N.useMemo(()=>ap(i,r,d.current,!1),[i,r])}var ip=e=>typeof e=="string",_i=(e,t,r,n,o)=>ip(e)?se(r,e,o):Array.isArray(e)?e.map(a=>se(r,a)):r,Ei=e=>mn(e)||!pi(e);function tr(e,t,r=new WeakSet){if(Ei(e)||Ei(t))return Object.is(e,t);if(yt(e)&&yt(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const s=t[a];if(yt(i)&&yt(s)||Ie(i)&&Ie(s)||Array.isArray(i)&&Array.isArray(s)?!tr(i,s,r):!Object.is(i,s))return!1}}return!0}function sp(e){const t=er(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i,compute:s}=e||{},d=N.useRef(o),l=N.useRef(s),f=N.useRef(void 0),c=N.useRef(r),u=N.useRef(n);l.current=s;const[m,h]=N.useState(()=>{const _=r._getWatch(n,d.current);return l.current?l.current(_):_}),g=N.useCallback(_=>{const R=_i(n,r._names,_||r._formValues,!1,d.current);return l.current?l.current(R):R},[r._formValues,r._names,n]),y=N.useCallback(_=>{if(!a){const R=_i(n,r._names,_||r._formValues,!1,d.current);if(l.current){const C=l.current(R);tr(C,f.current)||(h(C),f.current=C)}else h(R)}},[r._formValues,r._names,a,n]);wi(()=>((c.current!==r||!tr(u.current,n))&&(c.current=r,u.current=n,y()),r._subscribe({name:n,formState:{values:!0},exact:i,callback:_=>{y(_.values)}})),[r,i,n,y]),N.useEffect(()=>r._removeUnmounted());const w=c.current!==r,x=u.current,E=N.useMemo(()=>{if(a)return null;const _=!w&&!tr(x,n);return w||_?g():null},[a,w,n,x,g]);return E!==null?E:m}function lp(e){const t=er(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a,defaultValue:i,exact:s=!0}=e,d=ep(o._names.array,r),l=N.useMemo(()=>se(o._formValues,r,se(o._defaultValues,r,i)),[o,r,i]),f=sp({control:o,name:r,defaultValue:l,exact:s}),c=xi({control:o,name:r,exact:s}),u=N.useRef(e),m=N.useRef(void 0),h=N.useRef(o.register(r,{...e.rules,value:f,...hn(e.disabled)?{disabled:e.disabled}:{}}));u.current=e;const g=N.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!se(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!se(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!se(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!se(c.validatingFields,r)},error:{enumerable:!0,get:()=>se(c.errors,r)}}),[c,r]),y=N.useCallback(_=>h.current.onChange({target:{value:Jf(_),name:r},type:yi.CHANGE}),[r]),w=N.useCallback(()=>h.current.onBlur({target:{value:se(o._formValues,r),name:r},type:yi.BLUR}),[r,o._formValues]),x=N.useCallback(_=>{const R=se(o._fields,r);R&&_&&(R._f.ref={focus:()=>_.focus&&_.focus(),select:()=>_.select&&_.select(),setCustomValidity:C=>_.setCustomValidity(C),reportValidity:()=>_.reportValidity()})},[o._fields,r]),E=N.useMemo(()=>({name:r,value:f,...hn(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:y,onBlur:w,ref:x}),[r,n,c.disabled,y,w,x,f]);return N.useEffect(()=>{const _=o._options.shouldUnregister||a,R=m.current;R&&R!==r&&!d&&o.unregister(R),o.register(r,{...u.current.rules,...hn(u.current.disabled)?{disabled:u.current.disabled}:{}});const C=(T,S)=>{const I=se(o._fields,T);I&&I._f&&(I._f.mount=S)};if(C(r,!0),_){const T=mi(se(o._options.defaultValues,r,u.current.defaultValue));vi(o._defaultValues,r,T),gn(se(o._formValues,r))&&vi(o._formValues,r,T)}return!d&&o.register(r),m.current=r,()=>{(d?_&&!o._state.action:_)?o.unregister(r):C(r,!1)}},[r,o,d,a]),N.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),N.useMemo(()=>({field:E,formState:c,fieldState:g}),[E,c,g])}const cp=e=>e.render(lp(e)),yn=op,Si=p.createContext({}),bt=({...e})=>b.jsx(Si.Provider,{value:{name:e.name},children:b.jsx(cp,{...e})}),ki=()=>{const e=p.useContext(Si),t=p.useContext(Oi),{getFieldState:r}=er(),n=xi({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Oi=p.createContext({});function wt({className:e,...t}){const r=p.useId();return b.jsx(Oi.Provider,{value:{id:r},children:b.jsx("div",{"data-slot":"form-item",className:ne("grid gap-2",e),...t})})}function xt({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=ki();return b.jsx(lo,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function Ri({className:e,...t}){const{error:r,formMessageId:n}=ki(),o=r?String(r?.message??""):t.children;return o?b.jsx("p",{"data-slot":"form-message",id:n,className:ne("text-destructive text-sm",e),...t,children:o}):null}function _t({className:e,type:t,...r}){return b.jsx("input",{type:t,"data-slot":"input",className:ne("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}function up(e,t=[]){let r=[];function n(a,i){const s=p.createContext(i);s.displayName=a+"Context";const d=r.length;r=[...r,i];const l=c=>{const{scope:u,children:m,...h}=c,g=u?.[e]?.[d]||s,y=p.useMemo(()=>h,Object.values(h));return b.jsx(g.Provider,{value:y,children:m})};l.displayName=a+"Provider";function f(c,u){const m=u?.[e]?.[d]||s,h=p.useContext(m);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[l,f]}const o=()=>{const a=r.map(i=>p.createContext(i));return function(i){const s=i?.[e]||a;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:s}}),[i,s])}};return o.scopeName=e,[n,dp(o,...t)]}function dp(...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(o){const a=n.reduce((i,{useScope:s,scopeName:d})=>{const l=s(o)[`__scope${d}`];return{...i,...l}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var bn="Progress",wn=100,[fp,Gm]=up(bn),[pp,mp]=fp(bn),Ci=p.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:a=gp,...i}=e;(o||o===0)&&!Di(o)&&console.error(hp(`${o}`,"Progress"));const s=Di(o)?o:wn;n!==null&&!Ai(n,s)&&console.error(vp(`${n}`,"Progress"));const d=Ai(n,s)?n:null,l=rr(d)?a(d,s):void 0;return b.jsx(pp,{scope:r,value:d,max:s,children:b.jsx(fn.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":rr(d)?d:void 0,"aria-valuetext":l,role:"progressbar","data-state":Ni(d,s),"data-value":d??void 0,"data-max":s,...i,ref:t})})});Ci.displayName=bn;var Ti="ProgressIndicator",ji=p.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=mp(Ti,r);return b.jsx(fn.div,{"data-state":Ni(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});ji.displayName=Ti;function gp(e,t){return`${Math.round(e/t*100)}%`}function Ni(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function rr(e){return typeof e=="number"}function Di(e){return rr(e)&&!isNaN(e)&&e>0}function Ai(e,t){return rr(e)&&!isNaN(e)&&e<=t&&e>=0}function hp(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${wn}\`.`}function vp(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
55
+ `)},wd=0,Qe=[];function xd(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),o=p.useState(wd++)[0],a=p.useState(Na)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Wu([e.lockRef.current],(e.shards||[]).map(Fa)).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=p.useCallback(function(g,y){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var w=Xt(g),x=r.current,E="deltaX"in g?g.deltaX:x[0]-w[0],_="deltaY"in g?g.deltaY:x[1]-w[1],C,j=g.target,T=Math.abs(E)>Math.abs(_)?"h":"v";if("touches"in g&&T==="h"&&j.type==="range")return!1;var S=window.getSelection(),I=S&&S.anchorNode,U=I?I===j||I.contains(j):!1;if(U)return!1;var G=La(T,j);if(!G)return!0;if(G?C=T:(C=T==="v"?"h":"v",G=La(T,j)),!G)return!1;if(!n.current&&"changedTouches"in g&&(E||_)&&(n.current=C),!C)return!0;var q=n.current||C;return vd(q,y,g,q==="h"?E:_)},[]),d=p.useCallback(function(g){var y=g;if(!(!Qe.length||Qe[Qe.length-1]!==a)){var w="deltaY"in y?Ia(y):Xt(y),x=t.current.filter(function(C){return C.name===y.type&&(C.target===y.target||y.target===C.shadowParent)&&yd(C.delta,w)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var E=(i.current.shards||[]).map(Fa).filter(Boolean).filter(function(C){return C.contains(y.target)}),_=E.length>0?s(y,E[0]):!i.current.noIsolation;_&&y.cancelable&&y.preventDefault()}}},[]),l=p.useCallback(function(g,y,w,x){var E={name:g,delta:y,target:w,should:x,shadowParent:_d(w)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(_){return _!==E})},1)},[]),f=p.useCallback(function(g){r.current=Xt(g),n.current=void 0},[]),c=p.useCallback(function(g){l(g.type,Ia(g),g.target,s(g,e.lockRef.current))},[]),u=p.useCallback(function(g){l(g.type,Xt(g),g.target,s(g,e.lockRef.current))},[]);p.useEffect(function(){return Qe.push(a),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:u}),document.addEventListener("wheel",d,Je),document.addEventListener("touchmove",d,Je),document.addEventListener("touchstart",f,Je),function(){Qe=Qe.filter(function(g){return g!==a}),document.removeEventListener("wheel",d,Je),document.removeEventListener("touchmove",d,Je),document.removeEventListener("touchstart",f,Je)}},[]);var m=e.removeScrollBar,h=e.inert;return p.createElement(p.Fragment,null,h?p.createElement(a,{styles:bd(o)}):null,m?p.createElement(ud,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _d(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ed=Zu(Ta,xd);var nn=p.forwardRef(function(e,t){return p.createElement(Yt,we({},e,{ref:t,sideCar:Ed}))});nn.classNames=Yt.classNames;var on=["Enter"," "],Sd=["ArrowDown","PageUp","Home"],Va=["ArrowUp","PageDown","End"],kd=[...Sd,...Va],Od={ltr:[...on,"ArrowRight"],rtl:[...on,"ArrowLeft"]},Rd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Zt="Menu",[mt,Cd,jd]=Oo(Zt),[Pe,za]=Ee(Zt,[jd,Ut,wa]),an=Ut(),$a=wa(),[$m,et]=Pe(Zt),[Wm,gt]=Pe(Zt),Td="MenuAnchor",sn=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=an(r);return b.jsx(ha,{...o,...n,ref:t})});sn.displayName=Td;var Nd="MenuPortal",[Um,Wa]=Pe(Nd,{forceMount:void 0}),pe="MenuContent",[Dd,ln]=Pe(pe),Ua=p.forwardRef((e,t)=>{const r=Wa(pe,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=et(pe,e.__scopeMenu),i=gt(pe,e.__scopeMenu);return b.jsx(mt.Provider,{scope:e.__scopeMenu,children:b.jsx(Te,{present:n||a.open,children:b.jsx(mt.Slot,{scope:e.__scopeMenu,children:i.modal?b.jsx(Ad,{...o,ref:t}):b.jsx(Ld,{...o,ref:t})})})})}),Ad=p.forwardRef((e,t)=>{const r=et(pe,e.__scopeMenu),n=p.useRef(null),o=Q(t,n);return p.useEffect(()=>{const a=n.current;if(a)return Oa(a)},[]),b.jsx(cn,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:F(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Ld=p.forwardRef((e,t)=>{const r=et(pe,e.__scopeMenu);return b.jsx(cn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Md=Ge("MenuContent.ScrollLock"),cn=p.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:d,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:u,onDismiss:m,disableOutsideScroll:h,...g}=e,y=et(pe,r),w=gt(pe,r),x=an(r),E=$a(r),_=Cd(r),[C,j]=p.useState(null),T=p.useRef(null),S=Q(t,T,y.onContentChange),I=p.useRef(0),U=p.useRef(""),G=p.useRef(0),q=p.useRef(null),Z=p.useRef("right"),W=p.useRef(0),Y=h?nn:p.Fragment,H=h?{as:Md,allowPinchZoom:!0}:void 0,B=D=>{const v=U.current+D,R=_().filter(V=>!V.disabled),M=document.activeElement,P=R.find(V=>V.ref.current===M)?.textValue,K=R.map(V=>V.textValue),X=Kd(K,v,P),ie=R.find(V=>V.textValue===X)?.ref.current;(function V(z){U.current=z,window.clearTimeout(I.current),z!==""&&(I.current=window.setTimeout(()=>V(""),1e3))})(v),ie&&setTimeout(()=>ie.focus())};p.useEffect(()=>()=>window.clearTimeout(I.current),[]),No();const O=p.useCallback(D=>Z.current===q.current?.side&&qd(D,q.current?.area),[]);return b.jsx(Dd,{scope:r,searchRef:U,onItemEnter:p.useCallback(D=>{O(D)&&D.preventDefault()},[O]),onItemLeave:p.useCallback(D=>{O(D)||(T.current?.focus(),j(null))},[O]),onTriggerLeave:p.useCallback(D=>{O(D)&&D.preventDefault()},[O]),pointerGraceTimerRef:G,onPointerGraceIntentChange:p.useCallback(D=>{q.current=D},[]),children:b.jsx(Y,{...H,children:b.jsx(Ir,{asChild:!0,trapped:o,onMountAutoFocus:F(a,D=>{D.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:b.jsx(Dt,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:u,onDismiss:m,children:b.jsx(Iu,{asChild:!0,...E,dir:w.dir,orientation:"vertical",loop:n,currentTabStopId:C,onCurrentTabStopIdChange:j,onEntryFocus:F(d,D=>{w.isUsingKeyboardRef.current||D.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(va,{role:"menu","aria-orientation":"vertical","data-state":ii(y.open),"data-radix-menu-content":"",dir:w.dir,...x,...g,ref:S,style:{outline:"none",...g.style},onKeyDown:F(g.onKeyDown,D=>{const v=D.target.closest("[data-radix-menu-content]")===D.currentTarget,R=D.ctrlKey||D.altKey||D.metaKey,M=D.key.length===1;v&&(D.key==="Tab"&&D.preventDefault(),!R&&M&&B(D.key));const P=T.current;if(D.target!==P||!kd.includes(D.key))return;D.preventDefault();const K=_().filter(X=>!X.disabled).map(X=>X.ref.current);Va.includes(D.key)&&K.reverse(),Hd(K)}),onBlur:F(e.onBlur,D=>{D.currentTarget.contains(D.target)||(window.clearTimeout(I.current),U.current="")}),onPointerMove:F(e.onPointerMove,vt(D=>{const v=D.target,R=W.current!==D.clientX;if(D.currentTarget.contains(v)&&R){const M=D.clientX>W.current?"right":"left";Z.current=M,W.current=D.clientX}}))})})})})})})});Ua.displayName=pe;var Pd="MenuGroup",un=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(J.div,{role:"group",...n,ref:t})});un.displayName=Pd;var Id="MenuLabel",Ga=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(J.div,{...n,ref:t})});Ga.displayName=Id;var Jt="MenuItem",Ha="menu.itemSelect",Qt=p.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=p.useRef(null),i=gt(Jt,e.__scopeMenu),s=ln(Jt,e.__scopeMenu),d=Q(t,a),l=p.useRef(!1),f=()=>{const c=a.current;if(!r&&c){const u=new CustomEvent(Ha,{bubbles:!0,cancelable:!0});c.addEventListener(Ha,m=>n?.(m),{once:!0}),fo(c,u),u.defaultPrevented?l.current=!1:i.onClose()}};return b.jsx(Ba,{...o,ref:d,disabled:r,onClick:F(e.onClick,f),onPointerDown:c=>{e.onPointerDown?.(c),l.current=!0},onPointerUp:F(e.onPointerUp,c=>{l.current||c.currentTarget?.click()}),onKeyDown:F(e.onKeyDown,c=>{const u=s.searchRef.current!=="";r||u&&c.key===" "||on.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});Qt.displayName=Jt;var Ba=p.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,i=ln(Jt,r),s=$a(r),d=p.useRef(null),l=Q(t,d),[f,c]=p.useState(!1),[u,m]=p.useState("");return p.useEffect(()=>{const h=d.current;h&&m((h.textContent??"").trim())},[a.children]),b.jsx(mt.ItemSlot,{scope:r,disabled:n,textValue:o??u,children:b.jsx(Fu,{asChild:!0,...s,focusable:!n,children:b.jsx(J.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:l,onPointerMove:F(e.onPointerMove,vt(h=>{n?i.onItemLeave(h):(i.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:F(e.onPointerLeave,vt(h=>i.onItemLeave(h))),onFocus:F(e.onFocus,()=>c(!0)),onBlur:F(e.onBlur,()=>c(!1))})})})}),Fd="MenuCheckboxItem",Ka=p.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return b.jsx(Ja,{scope:e.__scopeMenu,checked:r,children:b.jsx(Qt,{role:"menuitemcheckbox","aria-checked":er(r)?"mixed":r,...o,ref:t,"data-state":fn(r),onSelect:F(o.onSelect,()=>n?.(er(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Ka.displayName=Fd;var Ya="MenuRadioGroup",[Vd,zd]=Pe(Ya,{value:void 0,onValueChange:()=>{}}),qa=p.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=Se(n);return b.jsx(Vd,{scope:e.__scopeMenu,value:r,onValueChange:a,children:b.jsx(un,{...o,ref:t})})});qa.displayName=Ya;var Xa="MenuRadioItem",Za=p.forwardRef((e,t)=>{const{value:r,...n}=e,o=zd(Xa,e.__scopeMenu),a=r===o.value;return b.jsx(Ja,{scope:e.__scopeMenu,checked:a,children:b.jsx(Qt,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":fn(a),onSelect:F(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});Za.displayName=Xa;var dn="MenuItemIndicator",[Ja,$d]=Pe(dn,{checked:!1}),Qa=p.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=$d(dn,r);return b.jsx(Te,{present:n||er(a.checked)||a.checked===!0,children:b.jsx(J.span,{...o,ref:t,"data-state":fn(a.checked)})})});Qa.displayName=dn;var Wd="MenuSeparator",ei=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(J.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});ei.displayName=Wd;var Ud="MenuArrow",ti=p.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=an(r);return b.jsx(ya,{...o,...n,ref:t})});ti.displayName=Ud;var Gd="MenuSub",[Gm,ri]=Pe(Gd),ht="MenuSubTrigger",ni=p.forwardRef((e,t)=>{const r=et(ht,e.__scopeMenu),n=gt(ht,e.__scopeMenu),o=ri(ht,e.__scopeMenu),a=ln(ht,e.__scopeMenu),i=p.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=a,l={__scopeMenu:e.__scopeMenu},f=p.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return p.useEffect(()=>f,[f]),p.useEffect(()=>{const c=s.current;return()=>{window.clearTimeout(c),d(null)}},[s,d]),b.jsx(sn,{asChild:!0,...l,children:b.jsx(Ba,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":ii(r.open),...e,ref:lt(t,o.onTriggerChange),onClick:c=>{e.onClick?.(c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:F(e.onPointerMove,vt(c=>{a.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:F(e.onPointerLeave,vt(c=>{f();const u=r.content?.getBoundingClientRect();if(u){const m=r.content?.dataset.side,h=m==="right",g=h?-5:5,y=u[h?"left":"right"],w=u[h?"right":"left"];a.onPointerGraceIntentChange({area:[{x:c.clientX+g,y:c.clientY},{x:y,y:u.top},{x:w,y:u.top},{x:w,y:u.bottom},{x:y,y:u.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(c),c.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:F(e.onKeyDown,c=>{const u=a.searchRef.current!=="";e.disabled||u&&c.key===" "||Od[n.dir].includes(c.key)&&(r.onOpenChange(!0),r.content?.focus(),c.preventDefault())})})})});ni.displayName=ht;var oi="MenuSubContent",ai=p.forwardRef((e,t)=>{const r=Wa(pe,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=et(pe,e.__scopeMenu),i=gt(pe,e.__scopeMenu),s=ri(oi,e.__scopeMenu),d=p.useRef(null),l=Q(t,d);return b.jsx(mt.Provider,{scope:e.__scopeMenu,children:b.jsx(Te,{present:n||a.open,children:b.jsx(mt.Slot,{scope:e.__scopeMenu,children:b.jsx(cn,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{i.isUsingKeyboardRef.current&&d.current?.focus(),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:F(e.onFocusOutside,f=>{f.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:F(e.onEscapeKeyDown,f=>{i.onClose(),f.preventDefault()}),onKeyDown:F(e.onKeyDown,f=>{const c=f.currentTarget.contains(f.target),u=Rd[i.dir].includes(f.key);c&&u&&(a.onOpenChange(!1),s.trigger?.focus(),f.preventDefault())})})})})})});ai.displayName=oi;function ii(e){return e?"open":"closed"}function er(e){return e==="indeterminate"}function fn(e){return er(e)?"indeterminate":e?"checked":"unchecked"}function Hd(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Bd(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Kd(e,t,r){const n=t.length>1&&Array.from(t).every(s=>s===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=Bd(e,Math.max(o,0));n.length===1&&(a=a.filter(s=>s!==r));const i=a.find(s=>s.toLowerCase().startsWith(n.toLowerCase()));return i!==r?i:void 0}function Yd(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],d=t[i],l=s.x,f=s.y,c=d.x,u=d.y;f>n!=u>n&&r<(c-l)*(n-f)/(u-f)+l&&(o=!o)}return o}function qd(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return Yd(r,t)}function vt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Xd=sn,Zd=Ua,Jd=un,Qd=Ga,ef=Qt,tf=Ka,rf=qa,nf=Za,of=Qa,af=ei,sf=ti,lf=ni,cf=ai,si="DropdownMenu",[uf,Hm]=Ee(si,[za]),de=za(),[Bm,li]=uf(si),ci="DropdownMenuTrigger",df=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=li(ci,r),i=de(r);return b.jsx(Xd,{asChild:!0,...i,children:b.jsx(J.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:lt(t,a.triggerRef),onPointerDown:F(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:F(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});df.displayName=ci;var ui="DropdownMenuContent",ff=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=li(ui,r),a=de(r),i=p.useRef(!1);return b.jsx(Zd,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:F(e.onCloseAutoFocus,s=>{i.current||o.triggerRef.current?.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:F(e.onInteractOutside,s=>{const d=s.detail.originalEvent,l=d.button===0&&d.ctrlKey===!0,f=d.button===2||l;(!o.modal||f)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ff.displayName=ui;var pf="DropdownMenuGroup",mf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(Jd,{...o,...n,ref:t})});mf.displayName=pf;var gf="DropdownMenuLabel",hf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(Qd,{...o,...n,ref:t})});hf.displayName=gf;var vf="DropdownMenuItem",yf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(ef,{...o,...n,ref:t})});yf.displayName=vf;var bf="DropdownMenuCheckboxItem",wf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(tf,{...o,...n,ref:t})});wf.displayName=bf;var xf="DropdownMenuRadioGroup",_f=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(rf,{...o,...n,ref:t})});_f.displayName=xf;var Ef="DropdownMenuRadioItem",Sf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(nf,{...o,...n,ref:t})});Sf.displayName=Ef;var kf="DropdownMenuItemIndicator",Of=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(of,{...o,...n,ref:t})});Of.displayName=kf;var Rf="DropdownMenuSeparator",Cf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(af,{...o,...n,ref:t})});Cf.displayName=Rf;var jf="DropdownMenuArrow",Tf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(sf,{...o,...n,ref:t})});Tf.displayName=jf;var Nf="DropdownMenuSubTrigger",Df=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(lf,{...o,...n,ref:t})});Df.displayName=Nf;var Af="DropdownMenuSubContent",Lf=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=de(r);return b.jsx(cf,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Lf.displayName=Af;var Mf="Label",di=p.forwardRef((e,t)=>b.jsx(J.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));di.displayName=Mf;var Pf=di;function yt({className:e,...t}){return b.jsx(Pf,{"data-slot":"label",className:re("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}var If=Symbol.for("react.lazy"),tr=p[" use ".trim().toString()];function Ff(e){return typeof e=="object"&&e!==null&&"then"in e}function fi(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===If&&"_payload"in e&&Ff(e._payload)}function Vf(e){const t=zf(e),r=p.forwardRef((n,o)=>{let{children:a,...i}=n;fi(a)&&typeof tr=="function"&&(a=tr(a._payload));const s=p.Children.toArray(a),d=s.find(Wf);if(d){const l=d.props.children,f=s.map(c=>c===d?p.Children.count(l)>1?p.Children.only(null):p.isValidElement(l)?l.props.children:null:c);return b.jsx(t,{...i,ref:o,children:p.isValidElement(l)?p.cloneElement(l,void 0,f):null})}return b.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function zf(e){const t=p.forwardRef((r,n)=>{let{children:o,...a}=r;if(fi(o)&&typeof tr=="function"&&(o=tr(o._payload)),p.isValidElement(o)){const i=Gf(o),s=Uf(a,o.props);return o.type!==p.Fragment&&(s.ref=n?lt(n,i):i),p.cloneElement(o,s)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $f=Symbol("radix.slottable");function Wf(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$f}function Uf(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const s=a(...i);return o(...i),s}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Gf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Hf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pn=Hf.reduce((e,t)=>{const r=Vf(`Primitive.${t}`),n=p.forwardRef((o,a)=>{const{asChild:i,...s}=o,d=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(d,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Bf="Separator",pi="horizontal",Kf=["horizontal","vertical"],Yf=p.forwardRef((e,t)=>{const{decorative:r,orientation:n=pi,...o}=e,a=qf(n)?n:pi,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return b.jsx(pn.div,{"data-orientation":a,...i,...o,ref:t})});Yf.displayName=Bf;function qf(e){return Kf.includes(e)}function mn({className:e,...t}){return b.jsx("p",{"data-slot":"field-description",className:re("text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",e),...t})}function Xf({className:e,children:t,errors:r,...n}){const o=N.useMemo(()=>{if(t)return t;if(!r?.length)return null;const a=[...new Map(r.map(i=>[i?.message,i])).values()];return a?.length==1?a[0]?.message:b.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:a.map((i,s)=>i?.message&&b.jsx("li",{children:i.message},s))})},[t,r]);return o?b.jsx("div",{role:"alert","data-slot":"field-error",className:re("text-destructive text-sm font-normal",e),...n,children:o}):null}var Zf=e=>e.type==="checkbox",bt=e=>e instanceof Date,gn=e=>e==null;const mi=e=>typeof e=="object";var Ie=e=>!gn(e)&&!Array.isArray(e)&&mi(e)&&!bt(e),Jf=e=>Ie(e)&&e.target?Zf(e.target)?e.target.checked:e.target.value:e,Qf=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ep=(e,t)=>e.has(Qf(t)),tp=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},rp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function gi(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(rp&&(e instanceof Blob||n))&&(r||Ie(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!tp(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=gi(e[o]));else return e;return t}var hi=e=>/^\w*$/.test(e),hn=e=>e===void 0,np=e=>Array.isArray(e)?e.filter(Boolean):[],vi=e=>np(e.replace(/["|']|\]/g,"").split(/\.|\[/)),se=(e,t,r)=>{if(!t||!Ie(e))return r;const n=(hi(t)?[t]:vi(t)).reduce((o,a)=>gn(o)?o:o[a],e);return hn(n)||n===e?hn(e[t])?r:e[t]:n},vn=e=>typeof e=="boolean",yi=(e,t,r)=>{let n=-1;const o=hi(t)?[t]:vi(t),a=o.length,i=a-1;for(;++n<a;){const s=o[n];let d=r;if(n!==i){const l=e[s];d=Ie(l)||Array.isArray(l)?l:isNaN(+o[n+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=d,e=e[s]}};const bi={BLUR:"blur",CHANGE:"change"},wi={all:"all"},yn=N.createContext(null);yn.displayName="HookFormContext";const rr=()=>N.useContext(yn),op=e=>{const{children:t,...r}=e;return N.createElement(yn.Provider,{value:r},t)};var ap=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==wi.all&&(t._proxyFormState[i]=!n||wi.all),r&&(r[i]=!0),e[i]}});return o};const xi=typeof window<"u"?N.useLayoutEffect:N.useEffect;function _i(e){const t=rr(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=N.useState(r._formState),d=N.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return xi(()=>r._subscribe({name:o,formState:d.current,exact:a,callback:l=>{!n&&s({...r._formState,...l})}}),[o,n,a]),N.useEffect(()=>{d.current.isValid&&r._setValid(!0)},[r]),N.useMemo(()=>ap(i,r,d.current,!1),[i,r])}var ip=e=>typeof e=="string",Ei=(e,t,r,n,o)=>ip(e)?se(r,e,o):Array.isArray(e)?e.map(a=>se(r,a)):r,Si=e=>gn(e)||!mi(e);function nr(e,t,r=new WeakSet){if(Si(e)||Si(t))return Object.is(e,t);if(bt(e)&&bt(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const s=t[a];if(bt(i)&&bt(s)||Ie(i)&&Ie(s)||Array.isArray(i)&&Array.isArray(s)?!nr(i,s,r):!Object.is(i,s))return!1}}return!0}function sp(e){const t=rr(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i,compute:s}=e||{},d=N.useRef(o),l=N.useRef(s),f=N.useRef(void 0),c=N.useRef(r),u=N.useRef(n);l.current=s;const[m,h]=N.useState(()=>{const _=r._getWatch(n,d.current);return l.current?l.current(_):_}),g=N.useCallback(_=>{const C=Ei(n,r._names,_||r._formValues,!1,d.current);return l.current?l.current(C):C},[r._formValues,r._names,n]),y=N.useCallback(_=>{if(!a){const C=Ei(n,r._names,_||r._formValues,!1,d.current);if(l.current){const j=l.current(C);nr(j,f.current)||(h(j),f.current=j)}else h(C)}},[r._formValues,r._names,a,n]);xi(()=>((c.current!==r||!nr(u.current,n))&&(c.current=r,u.current=n,y()),r._subscribe({name:n,formState:{values:!0},exact:i,callback:_=>{y(_.values)}})),[r,i,n,y]),N.useEffect(()=>r._removeUnmounted());const w=c.current!==r,x=u.current,E=N.useMemo(()=>{if(a)return null;const _=!w&&!nr(x,n);return w||_?g():null},[a,w,n,x,g]);return E!==null?E:m}function lp(e){const t=rr(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a,defaultValue:i,exact:s=!0}=e,d=ep(o._names.array,r),l=N.useMemo(()=>se(o._formValues,r,se(o._defaultValues,r,i)),[o,r,i]),f=sp({control:o,name:r,defaultValue:l,exact:s}),c=_i({control:o,name:r,exact:s}),u=N.useRef(e),m=N.useRef(void 0),h=N.useRef(o.register(r,{...e.rules,value:f,...vn(e.disabled)?{disabled:e.disabled}:{}}));u.current=e;const g=N.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!se(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!se(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!se(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!se(c.validatingFields,r)},error:{enumerable:!0,get:()=>se(c.errors,r)}}),[c,r]),y=N.useCallback(_=>h.current.onChange({target:{value:Jf(_),name:r},type:bi.CHANGE}),[r]),w=N.useCallback(()=>h.current.onBlur({target:{value:se(o._formValues,r),name:r},type:bi.BLUR}),[r,o._formValues]),x=N.useCallback(_=>{const C=se(o._fields,r);C&&_&&(C._f.ref={focus:()=>_.focus&&_.focus(),select:()=>_.select&&_.select(),setCustomValidity:j=>_.setCustomValidity(j),reportValidity:()=>_.reportValidity()})},[o._fields,r]),E=N.useMemo(()=>({name:r,value:f,...vn(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:y,onBlur:w,ref:x}),[r,n,c.disabled,y,w,x,f]);return N.useEffect(()=>{const _=o._options.shouldUnregister||a,C=m.current;C&&C!==r&&!d&&o.unregister(C),o.register(r,{...u.current.rules,...vn(u.current.disabled)?{disabled:u.current.disabled}:{}});const j=(T,S)=>{const I=se(o._fields,T);I&&I._f&&(I._f.mount=S)};if(j(r,!0),_){const T=gi(se(o._options.defaultValues,r,u.current.defaultValue));yi(o._defaultValues,r,T),hn(se(o._formValues,r))&&yi(o._formValues,r,T)}return!d&&o.register(r),m.current=r,()=>{(d?_&&!o._state.action:_)?o.unregister(r):j(r,!1)}},[r,o,d,a]),N.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),N.useMemo(()=>({field:E,formState:c,fieldState:g}),[E,c,g])}const cp=e=>e.render(lp(e)),bn=op,ki=p.createContext({}),wt=({...e})=>b.jsx(ki.Provider,{value:{name:e.name},children:b.jsx(cp,{...e})}),Oi=()=>{const e=p.useContext(ki),t=p.useContext(Ri),{getFieldState:r}=rr(),n=_i({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},Ri=p.createContext({});function xt({className:e,...t}){const r=p.useId();return b.jsx(Ri.Provider,{value:{id:r},children:b.jsx("div",{"data-slot":"form-item",className:re("grid gap-2",e),...t})})}function _t({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=Oi();return b.jsx(co,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function Ci({className:e,...t}){const{error:r,formMessageId:n}=Oi(),o=r?String(r?.message??""):t.children;return o?b.jsx("p",{"data-slot":"form-message",id:n,className:re("text-destructive text-sm",e),...t,children:o}):null}function Et({className:e,type:t,...r}){return b.jsx("input",{type:t,"data-slot":"input",className:re("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}function up(e,t=[]){let r=[];function n(a,i){const s=p.createContext(i);s.displayName=a+"Context";const d=r.length;r=[...r,i];const l=c=>{const{scope:u,children:m,...h}=c,g=u?.[e]?.[d]||s,y=p.useMemo(()=>h,Object.values(h));return b.jsx(g.Provider,{value:y,children:m})};l.displayName=a+"Provider";function f(c,u){const m=u?.[e]?.[d]||s,h=p.useContext(m);if(h)return h;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[l,f]}const o=()=>{const a=r.map(i=>p.createContext(i));return function(i){const s=i?.[e]||a;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:s}}),[i,s])}};return o.scopeName=e,[n,dp(o,...t)]}function dp(...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(o){const a=n.reduce((i,{useScope:s,scopeName:d})=>{const l=s(o)[`__scope${d}`];return{...i,...l}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var wn="Progress",xn=100,[fp,Km]=up(wn),[pp,mp]=fp(wn),ji=p.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:a=gp,...i}=e;(o||o===0)&&!Ai(o)&&console.error(hp(`${o}`,"Progress"));const s=Ai(o)?o:xn;n!==null&&!Li(n,s)&&console.error(vp(`${n}`,"Progress"));const d=Li(n,s)?n:null,l=or(d)?a(d,s):void 0;return b.jsx(pp,{scope:r,value:d,max:s,children:b.jsx(pn.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":or(d)?d:void 0,"aria-valuetext":l,role:"progressbar","data-state":Di(d,s),"data-value":d??void 0,"data-max":s,...i,ref:t})})});ji.displayName=wn;var Ti="ProgressIndicator",Ni=p.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=mp(Ti,r);return b.jsx(pn.div,{"data-state":Di(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});Ni.displayName=Ti;function gp(e,t){return`${Math.round(e/t*100)}%`}function Di(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function or(e){return typeof e=="number"}function Ai(e){return or(e)&&!isNaN(e)&&e>0}function Li(e,t){return or(e)&&!isNaN(e)&&e<=t&&e>=0}function hp(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${xn}\`.`}function vp(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
56
56
  - a positive number
57
- - less than the value passed to \`max\` (or ${wn} if no \`max\` prop is set)
57
+ - less than the value passed to \`max\` (or ${xn} if no \`max\` prop is set)
58
58
  - \`null\` or \`undefined\` if the progress is indeterminate.
59
59
 
60
- Defaulting to \`null\`.`}var yp=Ci,bp=ji;function wp({className:e,value:t,...r}){return b.jsx(yp,{"data-slot":"progress",className:ne("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...r,children:b.jsx(bp,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}var Li="Dialog",[Mi,Hm]=Ee(Li),[Bm,xe]=Mi(Li),Pi="DialogTrigger",xp=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(Pi,r),a=Q(t,o.triggerRef);return b.jsx(J.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_n(o.open),...n,ref:a,onClick:F(e.onClick,o.onOpenToggle)})});xp.displayName=Pi;var _p="DialogPortal",[Km,Ii]=Mi(_p,{forceMount:void 0}),nr="DialogOverlay",Ep=p.forwardRef((e,t)=>{const r=Ii(nr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=xe(nr,e.__scopeDialog);return a.modal?b.jsx(je,{present:n||a.open,children:b.jsx(kp,{...o,ref:t})}):null});Ep.displayName=nr;var Sp=Ge("DialogOverlay.RemoveScroll"),kp=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(nr,r);return b.jsx(rn,{as:Sp,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(J.div,{"data-state":_n(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Fe="DialogContent",Op=p.forwardRef((e,t)=>{const r=Ii(Fe,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=xe(Fe,e.__scopeDialog);return b.jsx(je,{present:n||a.open,children:a.modal?b.jsx(Rp,{...o,ref:t}):b.jsx(Cp,{...o,ref:t})})});Op.displayName=Fe;var Rp=p.forwardRef((e,t)=>{const r=xe(Fe,e.__scopeDialog),n=p.useRef(null),o=Q(t,r.contentRef,n);return p.useEffect(()=>{const a=n.current;if(a)return ka(a)},[]),b.jsx(Fi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:F(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:F(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:F(e.onFocusOutside,a=>a.preventDefault())})}),Cp=p.forwardRef((e,t)=>{const r=xe(Fe,e.__scopeDialog),n=p.useRef(!1),o=p.useRef(!1);return b.jsx(Fi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;r.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Fi=p.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=xe(Fe,r),d=p.useRef(null),l=Q(t,d);return jo(),b.jsxs(b.Fragment,{children:[b.jsx(Pr,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:b.jsx(jt,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":_n(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(Dp,{titleId:s.titleId}),b.jsx(Lp,{contentRef:d,descriptionId:s.descriptionId})]})]})}),xn="DialogTitle",Tp=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(xn,r);return b.jsx(J.h2,{id:o.titleId,...n,ref:t})});Tp.displayName=xn;var Vi="DialogDescription",jp=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(Vi,r);return b.jsx(J.p,{id:o.descriptionId,...n,ref:t})});jp.displayName=Vi;var zi="DialogClose",Np=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(zi,r);return b.jsx(J.button,{type:"button",...n,ref:t,onClick:F(e.onClick,()=>o.onOpenChange(!1))})});Np.displayName=zi;function _n(e){return e?"open":"closed"}var $i="DialogTitleWarning",[Ym,Wi]=el($i,{contentName:Fe,titleName:xn,docsSlug:"dialog"}),Dp=({titleId:e})=>{const t=Wi($i),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
60
+ Defaulting to \`null\`.`}var yp=ji,bp=Ni;function wp({className:e,value:t,...r}){return b.jsx(yp,{"data-slot":"progress",className:re("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...r,children:b.jsx(bp,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}var Mi="Dialog",[Pi,Ym]=Ee(Mi),[qm,xe]=Pi(Mi),Ii="DialogTrigger",xp=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(Ii,r),a=Q(t,o.triggerRef);return b.jsx(J.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":En(o.open),...n,ref:a,onClick:F(e.onClick,o.onOpenToggle)})});xp.displayName=Ii;var _p="DialogPortal",[Xm,Fi]=Pi(_p,{forceMount:void 0}),ar="DialogOverlay",Ep=p.forwardRef((e,t)=>{const r=Fi(ar,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=xe(ar,e.__scopeDialog);return a.modal?b.jsx(Te,{present:n||a.open,children:b.jsx(kp,{...o,ref:t})}):null});Ep.displayName=ar;var Sp=Ge("DialogOverlay.RemoveScroll"),kp=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(ar,r);return b.jsx(nn,{as:Sp,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(J.div,{"data-state":En(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Fe="DialogContent",Op=p.forwardRef((e,t)=>{const r=Fi(Fe,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=xe(Fe,e.__scopeDialog);return b.jsx(Te,{present:n||a.open,children:a.modal?b.jsx(Rp,{...o,ref:t}):b.jsx(Cp,{...o,ref:t})})});Op.displayName=Fe;var Rp=p.forwardRef((e,t)=>{const r=xe(Fe,e.__scopeDialog),n=p.useRef(null),o=Q(t,r.contentRef,n);return p.useEffect(()=>{const a=n.current;if(a)return Oa(a)},[]),b.jsx(Vi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:F(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:F(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:F(e.onFocusOutside,a=>a.preventDefault())})}),Cp=p.forwardRef((e,t)=>{const r=xe(Fe,e.__scopeDialog),n=p.useRef(!1),o=p.useRef(!1);return b.jsx(Vi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;r.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Vi=p.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=xe(Fe,r),d=p.useRef(null),l=Q(t,d);return No(),b.jsxs(b.Fragment,{children:[b.jsx(Ir,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:b.jsx(Dt,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":En(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(Dp,{titleId:s.titleId}),b.jsx(Lp,{contentRef:d,descriptionId:s.descriptionId})]})]})}),_n="DialogTitle",jp=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(_n,r);return b.jsx(J.h2,{id:o.titleId,...n,ref:t})});jp.displayName=_n;var zi="DialogDescription",Tp=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(zi,r);return b.jsx(J.p,{id:o.descriptionId,...n,ref:t})});Tp.displayName=zi;var $i="DialogClose",Np=p.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe($i,r);return b.jsx(J.button,{type:"button",...n,ref:t,onClick:F(e.onClick,()=>o.onOpenChange(!1))})});Np.displayName=$i;function En(e){return e?"open":"closed"}var Wi="DialogTitleWarning",[Zm,Ui]=el(Wi,{contentName:Fe,titleName:_n,docsSlug:"dialog"}),Dp=({titleId:e})=>{const t=Ui(Wi),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
61
61
 
62
62
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
63
63
 
64
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Ap="DialogDescriptionWarning",Lp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Wi(Ap).contentName}}.`;return p.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Mp=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Pp="VisuallyHidden",Ui=p.forwardRef((e,t)=>b.jsx(J.span,{...e,ref:t,style:{...Mp,...e.style}}));Ui.displayName=Pp;var Ip=Ui,[or,qm]=Ee("Tooltip",[$t]),En=$t(),Fp="TooltipProvider",Gi="tooltip.open",[Xm,Hi]=or(Fp),Bi="Tooltip",[Zm,ar]=or(Bi),Sn="TooltipTrigger",Vp=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=ar(Sn,r),a=Hi(Sn,r),i=En(r),s=p.useRef(null),d=Q(t,s,o.onTriggerChange),l=p.useRef(!1),f=p.useRef(!1),c=p.useCallback(()=>l.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),b.jsx(ga,{asChild:!0,...i,children:b.jsx(J.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:d,onPointerMove:F(e.onPointerMove,u=>{u.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:F(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:F(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:F(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:F(e.onBlur,o.onClose),onClick:F(e.onClick,o.onClose)})})});Vp.displayName=Sn;var zp="TooltipPortal",[Jm,$p]=or(zp,{forceMount:void 0}),tt="TooltipContent",Wp=p.forwardRef((e,t)=>{const r=$p(tt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=ar(tt,e.__scopeTooltip);return b.jsx(je,{present:n||i.open,children:i.disableHoverableContent?b.jsx(Ki,{side:o,...a,ref:t}):b.jsx(Up,{side:o,...a,ref:t})})}),Up=p.forwardRef((e,t)=>{const r=ar(tt,e.__scopeTooltip),n=Hi(tt,e.__scopeTooltip),o=p.useRef(null),a=Q(t,o),[i,s]=p.useState(null),{trigger:d,onClose:l}=r,f=o.current,{onPointerInTransitChange:c}=n,u=p.useCallback(()=>{s(null),c(!1)},[c]),m=p.useCallback((h,g)=>{const y=h.currentTarget,w={x:h.clientX,y:h.clientY},x=Yp(w,y.getBoundingClientRect()),E=qp(w,x),_=Xp(g.getBoundingClientRect()),R=Jp([...E,..._]);s(R),c(!0)},[c]);return p.useEffect(()=>()=>u(),[u]),p.useEffect(()=>{if(d&&f){const h=y=>m(y,f),g=y=>m(y,d);return d.addEventListener("pointerleave",h),f.addEventListener("pointerleave",g),()=>{d.removeEventListener("pointerleave",h),f.removeEventListener("pointerleave",g)}}},[d,f,m,u]),p.useEffect(()=>{if(i){const h=g=>{const y=g.target,w={x:g.clientX,y:g.clientY},x=d?.contains(y)||f?.contains(y),E=!Zp(w,i);x?u():E&&(u(),l())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[d,f,i,l,u]),b.jsx(Ki,{...e,ref:a})}),[Gp,Hp]=or(Bi,{isInside:!1}),Bp=sl("TooltipContent"),Ki=p.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,d=ar(tt,r),l=En(r),{onClose:f}=d;return p.useEffect(()=>(document.addEventListener(Gi,f),()=>document.removeEventListener(Gi,f)),[f]),p.useEffect(()=>{if(d.trigger){const c=u=>{u.target?.contains(d.trigger)&&f()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[d.trigger,f]),b.jsx(jt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:c=>c.preventDefault(),onDismiss:f,children:b.jsxs(ha,{"data-state":d.stateAttribute,...l,...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:[b.jsx(Bp,{children:n}),b.jsx(Gp,{scope:r,isInside:!0,children:b.jsx(Ip,{id:d.contentId,role:"tooltip",children:o||n})})]})})});Wp.displayName=tt;var Yi="TooltipArrow",Kp=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=En(r);return Hp(Yi,r).isInside?null:b.jsx(va,{...o,...n,ref:t})});Kp.displayName=Yi;function Yp(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 qp(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 Xp(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 Zp(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],d=t[i],l=s.x,f=s.y,c=d.x,u=d.y;f>n!=u>n&&r<(c-l)*(n-f)/(u-f)+l&&(o=!o)}return o}function Jp(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),Qp(t)}function Qp(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)}p.createContext(null);var em=process.env.NODE_ENV==="production";function tm(e,t){if(!em){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var ir={exports:{}},kn={},sr={exports:{}},On={};var qi;function rm(){if(qi)return On;qi=1;var e=N;function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(c,u){var m=u(),h=n({inst:{value:m,getSnapshot:u}}),g=h[0].inst,y=h[1];return a(function(){g.value=m,g.getSnapshot=u,d(g)&&y({inst:g})},[c,m,u]),o(function(){return d(g)&&y({inst:g}),c(function(){d(g)&&y({inst:g})})},[c]),i(m),m}function d(c){var u=c.getSnapshot;c=c.value;try{var m=u();return!r(c,m)}catch{return!0}}function l(c,u){return u()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:s;return On.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,On}var Rn={};var Xi;function nm(){return Xi||(Xi=1,process.env.NODE_ENV!=="production"&&(function(){function e(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}function t(m,h){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=h();if(!c){var y=h();a(g,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}y=i({inst:{value:g,getSnapshot:h}});var w=y[0].inst,x=y[1];return d(function(){w.value=g,w.getSnapshot=h,r(w)&&x({inst:w})},[m,g,h]),s(function(){return r(w)&&x({inst:w}),m(function(){r(w)&&x({inst:w})})},[m]),l(g),g}function r(m){var h=m.getSnapshot;m=m.value;try{var g=h();return!a(m,g)}catch{return!0}}function n(m,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=N,a=typeof Object.is=="function"?Object.is:e,i=o.useState,s=o.useEffect,d=o.useLayoutEffect,l=o.useDebugValue,f=!1,c=!1,u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Rn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Rn}var Zi;function Ji(){return Zi||(Zi=1,process.env.NODE_ENV==="production"?sr.exports=rm():sr.exports=nm()),sr.exports}var Qi;function om(){if(Qi)return kn;Qi=1;var e=N,t=Ji();function r(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var n=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,a=e.useRef,i=e.useEffect,s=e.useMemo,d=e.useDebugValue;return kn.useSyncExternalStoreWithSelector=function(l,f,c,u,m){var h=a(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function w(C){if(!x){if(x=!0,E=C,C=u(C),m!==void 0&&g.hasValue){var T=g.value;if(m(T,C))return _=T}return _=C}if(T=_,n(E,C))return T;var S=u(C);return m!==void 0&&m(T,S)?(E=C,T):(E=C,_=S)}var x=!1,E,_,R=c===void 0?null:c;return[function(){return w(f())},R===null?void 0:function(){return w(R())}]},[f,c,u,m]);var y=o(l,h[0],h[1]);return i(function(){g.hasValue=!0,g.value=y},[y]),d(y),y},kn}var Cn={};var es;function am(){return es||(es=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=N,r=Ji(),n=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,a=t.useRef,i=t.useEffect,s=t.useMemo,d=t.useDebugValue;Cn.useSyncExternalStoreWithSelector=function(l,f,c,u,m){var h=a(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function w(C){if(!x){if(x=!0,E=C,C=u(C),m!==void 0&&g.hasValue){var T=g.value;if(m(T,C))return _=T}return _=C}if(T=_,n(E,C))return T;var S=u(C);return m!==void 0&&m(T,S)?(E=C,T):(E=C,_=S)}var x=!1,E,_,R=c===void 0?null:c;return[function(){return w(f())},R===null?void 0:function(){return w(R())}]},[f,c,u,m]);var y=o(l,h[0],h[1]);return i(function(){g.hasValue=!0,g.value=y},[y]),d(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Cn}var ts;function im(){return ts||(ts=1,process.env.NODE_ENV==="production"?ir.exports=om():ir.exports=am()),ir.exports}var sm=im();function lm(e,t=n=>n,r={}){const n=r.equal??cm;return sm.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,n)}function cm(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,o]of e)if(!t.has(n)||!Object.is(o,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const r=rs(e);if(r.length!==rs(t).length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Object.is(e[r[n]],t[r[n]]))return!1;return!0}function rs(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const Tn=p.createContext(null);function um(){return typeof document>"u"?Tn:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Tn,Tn)}function dm(e){const t=p.useContext(um());return tm(!!t,"useRouter must be used inside a <RouterProvider> component!"),t}function fm(e){const t=dm();return p.useCallback(r=>t.navigate({...r,from:r.from??e?.from}),[e?.from,t])}const pm=({auth:e,children:t})=>{const r=fm(),{isLoaded:n,isAuthenticated:o}=lm(e.accountStore,s=>s),[a,i]=N.useState(0);return N.useEffect(()=>{const s=setInterval(()=>{i(d=>d===100?(clearInterval(s),d):d+1)},100);return()=>clearInterval(s)},[]),N.useEffect(()=>{e.initAuthData(),e.load()},[e]),N.useEffect(()=>{n&&!o&&r({to:"/auth/login"})},[n,o,r]),n&&o?t:a>5?j.jsx("div",{className:"flex items-center justify-center h-screen",children:j.jsxs("div",{className:"p-4 rounded w-1/2",children:[j.jsx("h2",{className:"text-center",children:"account loading..."}),j.jsx(wp,{value:a})]})}):null},Re={loginForm:{emailInput:"login-form-email-input",passwordInput:"login-form-password-input",submitButton:"login-form-submit-button",signUpFormLink:"login-form-signup-link"},signupForm:{emailInput:"signup-form-email-input",passwordInput:"signup-form-password-input",submitButton:"signup-form-submit-button"},verifyEmailForm:{authCodeInput:"verify-email-form-auth-code-input",submitButton:"verify-email-form-submit-button"}};const mm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),ns=e=>{const t=gm(e);return t.charAt(0).toUpperCase()+t.slice(1)},os=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),hm=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var vm={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"};const ym=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},d)=>N.createElement("svg",{ref:d,...vm,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:os("lucide",o),...!a&&!hm(s)&&{"aria-hidden":"true"},...s},[...i.map(([l,f])=>N.createElement(l,f)),...Array.isArray(a)?a:[a]]));const jn=(e,t)=>{const r=N.forwardRef(({className:n,...o},a)=>N.createElement(ym,{ref:a,iconNode:t,className:os(`lucide-${mm(ns(e))}`,`lucide-${e}`,n),...o}));return r.displayName=ns(e),r};const as=jn("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const is=jn("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const ss=jn("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function bm(e){const[t,r]=N.useState(!1);return j.jsx("div",{className:"flex flex-col gap-6",children:j.jsxs(Sr,{className:ne("transition-opacity",{"opacity-50":e.form.formState.isSubmitting}),children:[j.jsxs(kr,{children:[j.jsx(Or,{className:"text-2xl",children:e.loginFormTitle}),j.jsx(Rr,{children:e.loginFormDescription})]}),j.jsx(Cr,{children:j.jsx(yn,{...e.form,children:j.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:j.jsxs("div",{className:"flex flex-col gap-6",children:[j.jsxs("div",{className:"grid gap-2",children:[j.jsx(vt,{htmlFor:"email",children:e.emailLabel}),j.jsx(bt,{control:e.form.control,name:"email",render:({field:n})=>j.jsxs(wt,{children:[j.jsx(xt,{children:j.jsx(_t,{disabled:e.form.formState.isSubmitting,type:"email",placeholder:"m@example.com",required:!0,"data-testid":Re.loginForm.emailInput,...n})}),j.jsx(Ri,{})]})})]}),j.jsxs("div",{className:"grid gap-2",children:[j.jsxs("div",{className:"flex items-center",children:[j.jsx(vt,{htmlFor:"password",children:e.passwordLabel}),e.resetPasswordLinkComponent?e.resetPasswordLinkComponent():null]}),j.jsx(bt,{control:e.form.control,name:"password",render:({field:n})=>j.jsxs(wt,{children:[j.jsx(xt,{className:"relative",children:j.jsxs("div",{className:"relative",children:[t?j.jsx(as,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!1)}}):j.jsx(is,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!0)}}),j.jsx(_t,{placeholder:"********",disabled:e.form.formState.isSubmitting,"data-testid":Re.loginForm.passwordInput,...n,className:"pr-10","aria-invalid":!!e.form.formState.errors?.password,type:t?"text":"password"})]})}),j.jsx(Ri,{})]})})]}),j.jsxs(Er,{type:"submit",className:"w-full cursor-pointer",disabled:e.form.formState.isSubmitting,"data-testid":Re.loginForm.submitButton,children:[e.submitButtonLabel,e.form.formState.isSubmitting&&j.jsx(ss,{className:"animate-spin"})]}),e.signUpLinkComponent?j.jsx(pn,{className:"text-center",children:e.signUpLinkComponent()}):null]})})})})]})})}function wm(e){const[t,r]=N.useState(!1);return j.jsx("div",{className:"flex flex-col gap-6",children:j.jsxs(Sr,{className:ne({"opacity-50":e.form.formState.isSubmitting}),children:[j.jsxs(kr,{children:[j.jsx(Or,{className:"text-2xl",children:e.signUpFormTitle}),j.jsx(Rr,{children:e.signUpFormDescription})]}),j.jsx(Cr,{children:j.jsx(yn,{...e.form,children:j.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:j.jsxs("div",{className:"flex flex-col gap-6",children:[j.jsxs("div",{className:"grid gap-2",children:[j.jsx(vt,{children:e.emailLabel}),j.jsx(bt,{control:e.form.control,name:"email",render:({field:n})=>j.jsx(wt,{children:j.jsx(xt,{children:j.jsx(_t,{disabled:e.form.formState.isSubmitting,type:"email","data-testid":Re.signupForm.emailInput,placeholder:"m@example.com",required:!0,...n})})})})]}),j.jsxs("div",{className:"grid gap-2",children:[j.jsxs("div",{className:"flex items-center",children:[j.jsx(vt,{children:e.passwordLabel}),e.resetPasswordLinkComponent?e.resetPasswordLinkComponent():null]}),j.jsx(bt,{control:e.form.control,name:"password",render:({field:n,fieldState:o})=>j.jsx(wt,{children:j.jsx(xt,{className:"relative",children:j.jsxs(j.Fragment,{children:[j.jsxs("div",{className:"relative",children:[t?j.jsx(as,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!1)}}):j.jsx(is,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!0)}}),j.jsx(_t,{disabled:e.form.formState.isSubmitting,type:t?"text":"password",placeholder:"********","aria-invalid":!!e.form.formState.errors?.password,"data-testid":Re.signupForm.passwordInput,...n,className:"pr-10"})]}),o.invalid&&j.jsx(Xf,{errors:[o.error]})]})})})})]}),j.jsxs(Er,{type:"submit",className:"w-full cursor-pointer",disabled:e.form.formState.isSubmitting,"data-testid":Re.signupForm.submitButton,children:[e.submitButtonLabel,e.form.formState.isSubmitting&&j.jsx(ss,{className:"animate-spin"})]}),e.loginLinkComponent?j.jsx(pn,{className:"text-center",children:e.loginLinkComponent()}):null]})})})})]})})}function xm(e){return j.jsx("div",{className:"flex flex-col gap-6",children:j.jsxs(Sr,{children:[j.jsxs(kr,{children:[j.jsx(Or,{className:"text-2xl",children:e.verifyEmailTitle}),j.jsx(Rr,{children:e.verifyEmailDescription})]}),j.jsx(Cr,{children:j.jsx(yn,{...e.form,children:j.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:j.jsxs("div",{className:"flex flex-col gap-6",children:[j.jsxs("div",{className:"grid gap-2",children:[j.jsx(vt,{children:e.codeLabel}),j.jsx(bt,{control:e.form.control,name:"code",render:({field:t})=>j.jsx(wt,{children:j.jsx(xt,{children:j.jsx(_t,{type:"text",placeholder:"00001234","data-testid":Re.verifyEmailForm.authCodeInput,required:!0,...t})})})})]}),j.jsx(Er,{type:"submit",className:"w-full cursor-pointer","data-testid":Re.verifyEmailForm.submitButton,children:e.submitButtonLabel}),e.loginLinkComponent?j.jsx(pn,{className:"text-center",children:e.loginLinkComponent()}):null]})})})})]})})}const rt=new WeakMap,lr=new WeakMap,cr={current:[]};let Nn=!1;const ur=new Set,ls=new Map;function cs(e){const t=Array.from(e).sort((r,n)=>r instanceof Ve&&r.options.deps.includes(n)?1:n instanceof Ve&&n.options.deps.includes(r)?-1:0);for(const r of t){if(cr.current.includes(r))continue;cr.current.push(r),r.recompute();const n=lr.get(r);if(n)for(const o of n){const a=rt.get(o);a&&cs(a)}}}function _m(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function Em(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function Sm(e){if(ur.add(e),!Nn)try{for(Nn=!0;ur.size>0;){const t=Array.from(ur);ur.clear();for(const r of t){const n=ls.get(r)??r.prevState;r.prevState=n,_m(r)}for(const r of t){const n=rt.get(r);n&&(cr.current.push(r),cs(n))}for(const r of t){const n=rt.get(r);if(n)for(const o of n)Em(o)}}}finally{Nn=!1,cr.current=[],ls.clear()}}function km(e){return typeof e=="function"}class Dn{constructor(t,r){this.listeners=new Set,this.subscribe=n=>{var o,a;this.listeners.add(n);const i=(a=(o=this.options)==null?void 0:o.onSubscribe)==null?void 0:a.call(o,n,this);return()=>{this.listeners.delete(n),i?.()}},this.prevState=t,this.state=t,this.options=r}setState(t){var r,n,o;this.prevState=this.state,(r=this.options)!=null&&r.updateFn?this.state=this.options.updateFn(this.prevState)(t):km(t)?this.state=t(this.prevState):this.state=t,(o=(n=this.options)==null?void 0:n.onUpdate)==null||o.call(n),Sm(this)}}class Ve{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const r=[],n=[];for(const o of this.options.deps)r.push(o.prevState),n.push(o.state);return this.lastSeenDepValues=n,{prevDepVals:r,currDepVals:n,prevVal:this.prevState??void 0}},this.recompute=()=>{var r,n;this.prevState=this.state;const{prevDepVals:o,currDepVals:a,prevVal:i}=this.getDepVals();this.state=this.options.fn({prevDepVals:o,currDepVals:a,prevVal:i}),(n=(r=this.options).onUpdate)==null||n.call(r)},this.checkIfRecalculationNeededDeeply=()=>{for(const a of this.options.deps)a instanceof Ve&&a.checkIfRecalculationNeededDeeply();let r=!1;const n=this.lastSeenDepValues,{currDepVals:o}=this.getDepVals();for(let a=0;a<o.length;a++)if(o[a]!==n[a]){r=!0;break}r&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const r of this._subscriptions)r()}),this.subscribe=r=>{var n,o;this.listeners.add(r);const a=(o=(n=this.options).onSubscribe)==null?void 0:o.call(n,r,this);return()=>{this.listeners.delete(r),a?.()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const r of t)if(r instanceof Ve)r.registerOnGraph(),this.registerOnGraph(r.options.deps);else if(r instanceof Dn){let n=rt.get(r);n||(n=new Set,rt.set(r,n)),n.add(this);let o=lr.get(this);o||(o=new Set,lr.set(this,o)),o.add(r)}}unregisterFromGraph(t=this.options.deps){for(const r of t)if(r instanceof Ve)this.unregisterFromGraph(r.options.deps);else if(r instanceof Dn){const n=rt.get(r);n&&n.delete(this);const o=lr.get(this);o&&o.delete(r)}}}const An="Authorization",us=()=>({user:{id:null,email:null,roles:[],is_enabled:!1,is_email_verified:!1},sessionID:null,isAuthenticated:!1,isLoaded:!1}),ze=new Dn(us()),Om=new Ve({fn:()=>!!ze.state.user?.roles.find(e=>e.name==="admin"),deps:[ze]});class Rm{accountStore;httpClient;constructor(t){this.httpClient=t,this.accountStore=ze}initAuthData(){const t=localStorage.getItem("token");t&&(this.httpClient.defaults.headers.common[An]=t)}async load(){try{const{data:t}=await this.httpClient.get("/api/auth/account/me");ze.setState(()=>({user:t.user,sessionID:t.session_id,isAuthenticated:!0,isLoaded:!0}))}catch{ze.setState(t=>({...t,isLoaded:!0}))}}async login(t){const r=await this.httpClient.post("/api/auth/account/login",t),{user:n,token:o,session_id:a}=r.data;return this._initUserData({user:n,token:o,sessionID:a}),n}signup(t){return this.httpClient.post("/api/auth/account/signup",t)}async verifyEmail(t){const r=await this.httpClient.post("/api/auth/account/verify-email",t);this._initUserData(r.data)}logout(){ze.setState(()=>({...us(),isLoaded:!0})),this._clearAuthData()}startResetPassword(t){return this.httpClient.post("/api/auth/account/start-reset-password",t)}async resetPassword(t){const r=await this.httpClient.post("/api/auth/account/reset-password",t);this._initUserData(r.data)}_initUserData({user:t,token:r,sessionID:n}){this._setAuthData(r),ze.setState(()=>({user:t,isAuthenticated:!0,isLoaded:!0,sessionID:n}))}_setAuthData(t){localStorage.setItem("token",t),this.httpClient.defaults.headers.common[An]=t}_clearAuthData(){localStorage.removeItem("token"),delete this.httpClient.defaults.headers.common[An]}}const Cm={notificationsErrorsMap:{"User is not enabled":"auth.loginForm.errors.notifications.userIsNotEnabled","Email not verified":"auth.loginForm.errors.notifications.emailNotVerified","Email not found":"auth.loginForm.errors.notifications.emailNotFound","Invalid password":"auth.loginForm.errors.notifications.invalidPassword","Email is already used":"auth.signUpForm.errors.notifications.emailAlreadyExists","Wrong verification code":"auth.verifyEmailForm.errors.notifications.wrongAuthCode"},fieldsErrorsMap:{"User is not enabled":"email","Email not verified":"email","Email not found":"email","Invalid password":"password","Email is already used":"email"},ru:{verifyEmailForm:{form:{title:"Подтверждение почты",submitButtonLabel:"Подтвердить",codeLabel:"Код подтверждения",verifyEmailDescription:"Введите код подтверждения, отправленный на вашу почту.",loginLinkMessage:"Почта уже подтверждена?",loginLink:"Войти"},success:{notifications:{verifyEmailSuccess:"Почта успешно подтверждена"}},errors:{notifications:{wrongAuthCode:"Неверный код подтверждения",unknownError:"Неизвестная ошибка",unknownErrorDescription:"Пожалуйста, попробуйте еще раз, либо обратитесь в службу поддержки"}}},loginForm:{form:{title:"Вход",description:"Введите данные для входа",emailLabel:"Email",passwordLabel:"Пароль",forgotPasswordMessage:"Забыли пароль?",submitButtonLabel:"Войти",dontHaveAccountMessage:"Нет аккаунта?",dontHaveAccountLink:"Зарегистрироваться"},errors:{notifications:{emailNotFound:"Пользователь с email {{email}} не найден",userIsNotEnabled:"Пользователь не активирован",emailNotVerified:"Почта не подтверждена",invalidPassword:"Неверный пароль",unknownError:"Не удалось войти в систему",unknownErrorDescription:"Попробуйте войти позже, либо обратитесь в службу поддержки"}},success:{notifications:{loginSuccess:"Вы успешно вошли в систему"}}},signUpForm:{form:{title:"Регистрация",description:"Введите данные для регистрации",emailLabel:"Email",passwordLabel:"Пароль",submitButtonLabel:"Зарегистрироваться",forgotPasswordMessage:"Забыли пароль?",loginLinkMessage:"Уже есть аккаунт?",loginLink:"Войти"},errors:{notifications:{unknownError:"Ошибка регистрации",unknownErrorDescription:"Пожалуйста, попробуйте еще раз или обратитесь к администратору",emailAlreadyExists:"Пользователь с email {{email}} уже существует"},fields:{passwordToSmall:"Минимальная длина пароля - 8 символов"}},success:{notifications:{signUpSuccess:"Вы успешно зарегистрированы"}}}},en:{verifyEmailForm:{form:{title:"Verify email",submitButtonLabel:"Verify",codeLabel:"Verification code",verifyEmailDescription:"Enter the verification code sent to your email.",loginLinkMessage:"Email already verified?",loginLink:"Login"},success:{notifications:{verifyEmailSuccess:"Email successfully verified"}},errors:{notifications:{wrongAuthCode:"Wrong verification code",unknownError:"Unknown error",unknownErrorDescription:"Please try again or contact support"}}},loginForm:{form:{title:"Login",description:"Enter your login details",emailLabel:"Email",passwordLabel:"Password",forgotPasswordMessage:"Forgot password?",submitButtonLabel:"Login",dontHaveAccountMessage:"Don't have an account?",dontHaveAccountLink:"Register"},errors:{notifications:{emailNotFound:"User with email {{email}} not found",userIsNotEnabled:"User is not enabled",emailNotVerified:"Email not verified",invalidPassword:"Invalid password"}},success:{notifications:{loginSuccess:"You have successfully logged in"}}},signUpForm:{form:{title:"Registration",description:"Enter your registration details",emailLabel:"Email",passwordLabel:"Password",submitButtonLabel:"Register",forgotPasswordMessage:"Forgot password?",loginLinkMessage:"Already have an account?",loginLink:"Login"},errors:{notifications:{unknownError:"Signup failed",unknownErrorDescription:"Please try again or contact the administrator",emailAlreadyExists:"User with email {{email}} already exists"}},success:{notifications:{signUpSuccess:"You have successfully registered"}}}}};ie.Auth=Rm,ie.AuthWrapper=pm,ie.LoginForm=bm,ie.SignUpForm=wm,ie.VerifyEmailForm=xm,ie.authE2EConfig=Re,ie.isAdmin=Om,ie.locale=Cm,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})}));
64
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Ap="DialogDescriptionWarning",Lp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ui(Ap).contentName}}.`;return p.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Mp=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Pp="VisuallyHidden",Gi=p.forwardRef((e,t)=>b.jsx(J.span,{...e,ref:t,style:{...Mp,...e.style}}));Gi.displayName=Pp;var Ip=Gi,[ir,Jm]=Ee("Tooltip",[Ut]),Sn=Ut(),Fp="TooltipProvider",Hi="tooltip.open",[Qm,Bi]=ir(Fp),Ki="Tooltip",[eg,sr]=ir(Ki),kn="TooltipTrigger",Vp=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=sr(kn,r),a=Bi(kn,r),i=Sn(r),s=p.useRef(null),d=Q(t,s,o.onTriggerChange),l=p.useRef(!1),f=p.useRef(!1),c=p.useCallback(()=>l.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),b.jsx(ha,{asChild:!0,...i,children:b.jsx(J.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:d,onPointerMove:F(e.onPointerMove,u=>{u.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:F(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:F(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:F(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:F(e.onBlur,o.onClose),onClick:F(e.onClick,o.onClose)})})});Vp.displayName=kn;var zp="TooltipPortal",[tg,$p]=ir(zp,{forceMount:void 0}),tt="TooltipContent",Wp=p.forwardRef((e,t)=>{const r=$p(tt,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=sr(tt,e.__scopeTooltip);return b.jsx(Te,{present:n||i.open,children:i.disableHoverableContent?b.jsx(Yi,{side:o,...a,ref:t}):b.jsx(Up,{side:o,...a,ref:t})})}),Up=p.forwardRef((e,t)=>{const r=sr(tt,e.__scopeTooltip),n=Bi(tt,e.__scopeTooltip),o=p.useRef(null),a=Q(t,o),[i,s]=p.useState(null),{trigger:d,onClose:l}=r,f=o.current,{onPointerInTransitChange:c}=n,u=p.useCallback(()=>{s(null),c(!1)},[c]),m=p.useCallback((h,g)=>{const y=h.currentTarget,w={x:h.clientX,y:h.clientY},x=Yp(w,y.getBoundingClientRect()),E=qp(w,x),_=Xp(g.getBoundingClientRect()),C=Jp([...E,..._]);s(C),c(!0)},[c]);return p.useEffect(()=>()=>u(),[u]),p.useEffect(()=>{if(d&&f){const h=y=>m(y,f),g=y=>m(y,d);return d.addEventListener("pointerleave",h),f.addEventListener("pointerleave",g),()=>{d.removeEventListener("pointerleave",h),f.removeEventListener("pointerleave",g)}}},[d,f,m,u]),p.useEffect(()=>{if(i){const h=g=>{const y=g.target,w={x:g.clientX,y:g.clientY},x=d?.contains(y)||f?.contains(y),E=!Zp(w,i);x?u():E&&(u(),l())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[d,f,i,l,u]),b.jsx(Yi,{...e,ref:a})}),[Gp,Hp]=ir(Ki,{isInside:!1}),Bp=sl("TooltipContent"),Yi=p.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,d=sr(tt,r),l=Sn(r),{onClose:f}=d;return p.useEffect(()=>(document.addEventListener(Hi,f),()=>document.removeEventListener(Hi,f)),[f]),p.useEffect(()=>{if(d.trigger){const c=u=>{u.target?.contains(d.trigger)&&f()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[d.trigger,f]),b.jsx(Dt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:c=>c.preventDefault(),onDismiss:f,children:b.jsxs(va,{"data-state":d.stateAttribute,...l,...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:[b.jsx(Bp,{children:n}),b.jsx(Gp,{scope:r,isInside:!0,children:b.jsx(Ip,{id:d.contentId,role:"tooltip",children:o||n})})]})})});Wp.displayName=tt;var qi="TooltipArrow",Kp=p.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Sn(r);return Hp(qi,r).isInside?null:b.jsx(ya,{...o,...n,ref:t})});Kp.displayName=qi;function Yp(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 qp(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 Xp(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 Zp(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],d=t[i],l=s.x,f=s.y,c=d.x,u=d.y;f>n!=u>n&&r<(c-l)*(n-f)/(u-f)+l&&(o=!o)}return o}function Jp(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),Qp(t)}function Qp(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)}p.createContext(null);var em=process.env.NODE_ENV==="production";function tm(e,t){if(!em){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var lr={exports:{}},On={},cr={exports:{}},Rn={};var Xi;function rm(){if(Xi)return Rn;Xi=1;var e=N;function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(c,u){var m=u(),h=n({inst:{value:m,getSnapshot:u}}),g=h[0].inst,y=h[1];return a(function(){g.value=m,g.getSnapshot=u,d(g)&&y({inst:g})},[c,m,u]),o(function(){return d(g)&&y({inst:g}),c(function(){d(g)&&y({inst:g})})},[c]),i(m),m}function d(c){var u=c.getSnapshot;c=c.value;try{var m=u();return!r(c,m)}catch{return!0}}function l(c,u){return u()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:s;return Rn.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Rn}var Cn={};var Zi;function nm(){return Zi||(Zi=1,process.env.NODE_ENV!=="production"&&(function(){function e(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}function t(m,h){f||o.startTransition===void 0||(f=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=h();if(!c){var y=h();a(g,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}y=i({inst:{value:g,getSnapshot:h}});var w=y[0].inst,x=y[1];return d(function(){w.value=g,w.getSnapshot=h,r(w)&&x({inst:w})},[m,g,h]),s(function(){return r(w)&&x({inst:w}),m(function(){r(w)&&x({inst:w})})},[m]),l(g),g}function r(m){var h=m.getSnapshot;m=m.value;try{var g=h();return!a(m,g)}catch{return!0}}function n(m,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=N,a=typeof Object.is=="function"?Object.is:e,i=o.useState,s=o.useEffect,d=o.useLayoutEffect,l=o.useDebugValue,f=!1,c=!1,u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Cn.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Cn}var Ji;function Qi(){return Ji||(Ji=1,process.env.NODE_ENV==="production"?cr.exports=rm():cr.exports=nm()),cr.exports}var es;function om(){if(es)return On;es=1;var e=N,t=Qi();function r(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var n=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,a=e.useRef,i=e.useEffect,s=e.useMemo,d=e.useDebugValue;return On.useSyncExternalStoreWithSelector=function(l,f,c,u,m){var h=a(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function w(j){if(!x){if(x=!0,E=j,j=u(j),m!==void 0&&g.hasValue){var T=g.value;if(m(T,j))return _=T}return _=j}if(T=_,n(E,j))return T;var S=u(j);return m!==void 0&&m(T,S)?(E=j,T):(E=j,_=S)}var x=!1,E,_,C=c===void 0?null:c;return[function(){return w(f())},C===null?void 0:function(){return w(C())}]},[f,c,u,m]);var y=o(l,h[0],h[1]);return i(function(){g.hasValue=!0,g.value=y},[y]),d(y),y},On}var jn={};var ts;function am(){return ts||(ts=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=N,r=Qi(),n=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,a=t.useRef,i=t.useEffect,s=t.useMemo,d=t.useDebugValue;jn.useSyncExternalStoreWithSelector=function(l,f,c,u,m){var h=a(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function w(j){if(!x){if(x=!0,E=j,j=u(j),m!==void 0&&g.hasValue){var T=g.value;if(m(T,j))return _=T}return _=j}if(T=_,n(E,j))return T;var S=u(j);return m!==void 0&&m(T,S)?(E=j,T):(E=j,_=S)}var x=!1,E,_,C=c===void 0?null:c;return[function(){return w(f())},C===null?void 0:function(){return w(C())}]},[f,c,u,m]);var y=o(l,h[0],h[1]);return i(function(){g.hasValue=!0,g.value=y},[y]),d(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),jn}var rs;function im(){return rs||(rs=1,process.env.NODE_ENV==="production"?lr.exports=om():lr.exports=am()),lr.exports}var sm=im();function lm(e,t=n=>n,r={}){const n=r.equal??cm;return sm.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,n)}function cm(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[n,o]of e)if(!t.has(n)||!Object.is(o,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const r=ns(e);if(r.length!==ns(t).length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Object.is(e[r[n]],t[r[n]]))return!1;return!0}function ns(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const Tn=p.createContext(null);function um(){return typeof document>"u"?Tn:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Tn,Tn)}function dm(e){const t=p.useContext(um());return tm(!!t,"useRouter must be used inside a <RouterProvider> component!"),t}function fm(e){const t=dm();return p.useCallback(r=>t.navigate({...r,from:r.from??e?.from}),[e?.from,t])}const pm=({auth:e,children:t})=>{const r=fm(),{isLoaded:n,isAuthenticated:o}=lm(e.accountStore,s=>s),[a,i]=N.useState(0);return N.useEffect(()=>{const s=setInterval(()=>{i(d=>d===100?(clearInterval(s),d):d+1)},100);return()=>clearInterval(s)},[]),N.useEffect(()=>{e.initAuthData(),e.load()},[e]),N.useEffect(()=>{n&&!o&&r({to:"/auth/login"})},[n,o,r]),n&&o?t:a>5?k.jsx("div",{className:"flex items-center justify-center h-screen",children:k.jsxs("div",{className:"p-4 rounded w-1/2",children:[k.jsx("h2",{className:"text-center",children:"account loading..."}),k.jsx(wp,{value:a})]})}):null};const mm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gm=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),os=e=>{const t=gm(e);return t.charAt(0).toUpperCase()+t.slice(1)},as=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),hm=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var vm={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"};const ym=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},d)=>N.createElement("svg",{ref:d,...vm,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:as("lucide",o),...!a&&!hm(s)&&{"aria-hidden":"true"},...s},[...i.map(([l,f])=>N.createElement(l,f)),...Array.isArray(a)?a:[a]]));const St=(e,t)=>{const r=N.forwardRef(({className:n,...o},a)=>N.createElement(ym,{ref:a,iconNode:t,className:as(`lucide-${mm(os(e))}`,`lucide-${e}`,n),...o}));return r.displayName=os(e),r};const is=St("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const ss=St("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const Nn=St("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const bm=St("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);const wm=St("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),xm=({reset:e,processing:t})=>{const[r,n]=N.useState(!1);return k.jsxs("div",{className:re("fixed right-0 top-0 py-5 px-10 bg-white border-grey border-2 w-100 h-45 rounded-2xl",{"opacity-50 h-10 w-5 p-5":!r}),children:[k.jsx(ct,{onClick:()=>{n(!r)},variant:"ghost",className:"cursor-pointer absolute top-0 right-0",size:"icon",children:r?k.jsx(bm,{}):k.jsx(wm,{})}),r&&k.jsxs(k.Fragment,{children:[k.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Developer Panel"}),k.jsx("p",{className:"text-gray-500 mb-5",children:"Welcome to the developer panel!"}),k.jsx(ct,{onClick:e,className:"cursor-pointer relative w-20",variant:"destructive",disabled:t,children:t?k.jsx(Nn,{className:"animate-spin"}):"reset"})]})]})},Re={loginForm:{emailInput:"login-form-email-input",passwordInput:"login-form-password-input",submitButton:"login-form-submit-button",signUpFormLink:"login-form-signup-link"},signupForm:{emailInput:"signup-form-email-input",passwordInput:"signup-form-password-input",submitButton:"signup-form-submit-button"},verifyEmailForm:{authCodeInput:"verify-email-form-auth-code-input",submitButton:"verify-email-form-submit-button"}};function _m(e){const[t,r]=N.useState(!1);return k.jsx("div",{className:"flex flex-col gap-6",children:k.jsxs(kr,{className:re("transition-opacity",{"opacity-50":e.form.formState.isSubmitting}),children:[k.jsxs(Or,{children:[k.jsx(Rr,{className:"text-2xl",children:e.loginFormTitle}),k.jsx(Cr,{children:e.loginFormDescription})]}),k.jsx(jr,{children:k.jsx(bn,{...e.form,children:k.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:k.jsxs("div",{className:"flex flex-col gap-6",children:[k.jsxs("div",{className:"grid gap-2",children:[k.jsx(yt,{htmlFor:"email",children:e.emailLabel}),k.jsx(wt,{control:e.form.control,name:"email",render:({field:n})=>k.jsxs(xt,{children:[k.jsx(_t,{children:k.jsx(Et,{disabled:e.form.formState.isSubmitting,type:"email",placeholder:"m@example.com",required:!0,"data-testid":Re.loginForm.emailInput,...n})}),k.jsx(Ci,{})]})})]}),k.jsxs("div",{className:"grid gap-2",children:[k.jsxs("div",{className:"flex items-center",children:[k.jsx(yt,{htmlFor:"password",children:e.passwordLabel}),e.resetPasswordLinkComponent?e.resetPasswordLinkComponent():null]}),k.jsx(wt,{control:e.form.control,name:"password",render:({field:n})=>k.jsxs(xt,{children:[k.jsx(_t,{className:"relative",children:k.jsxs("div",{className:"relative",children:[t?k.jsx(is,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!1)}}):k.jsx(ss,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!0)}}),k.jsx(Et,{placeholder:"********",disabled:e.form.formState.isSubmitting,"data-testid":Re.loginForm.passwordInput,...n,className:"pr-10","aria-invalid":!!e.form.formState.errors?.password,type:t?"text":"password"})]})}),k.jsx(Ci,{})]})})]}),k.jsxs(ct,{type:"submit",className:"w-full cursor-pointer",disabled:e.form.formState.isSubmitting,"data-testid":Re.loginForm.submitButton,children:[e.submitButtonLabel,e.form.formState.isSubmitting&&k.jsx(Nn,{className:"animate-spin"})]}),e.signUpLinkComponent?k.jsx(mn,{className:"text-center",children:e.signUpLinkComponent()}):null]})})})})]})})}function Em(e){const[t,r]=N.useState(!1);return k.jsx("div",{className:"flex flex-col gap-6",children:k.jsxs(kr,{className:re({"opacity-50":e.form.formState.isSubmitting}),children:[k.jsxs(Or,{children:[k.jsx(Rr,{className:"text-2xl",children:e.signUpFormTitle}),k.jsx(Cr,{children:e.signUpFormDescription})]}),k.jsx(jr,{children:k.jsx(bn,{...e.form,children:k.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:k.jsxs("div",{className:"flex flex-col gap-6",children:[k.jsxs("div",{className:"grid gap-2",children:[k.jsx(yt,{children:e.emailLabel}),k.jsx(wt,{control:e.form.control,name:"email",render:({field:n})=>k.jsx(xt,{children:k.jsx(_t,{children:k.jsx(Et,{disabled:e.form.formState.isSubmitting,type:"email","data-testid":Re.signupForm.emailInput,placeholder:"m@example.com",required:!0,...n})})})})]}),k.jsxs("div",{className:"grid gap-2",children:[k.jsxs("div",{className:"flex items-center",children:[k.jsx(yt,{children:e.passwordLabel}),e.resetPasswordLinkComponent?e.resetPasswordLinkComponent():null]}),k.jsx(wt,{control:e.form.control,name:"password",render:({field:n,fieldState:o})=>k.jsx(xt,{children:k.jsx(_t,{className:"relative",children:k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"relative",children:[t?k.jsx(is,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!1)}}):k.jsx(ss,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!0)}}),k.jsx(Et,{disabled:e.form.formState.isSubmitting,type:t?"text":"password",placeholder:"********","aria-invalid":!!e.form.formState.errors?.password,"data-testid":Re.signupForm.passwordInput,...n,className:"pr-10"})]}),o.invalid&&k.jsx(Xf,{errors:[o.error]})]})})})})]}),k.jsxs(ct,{type:"submit",className:"w-full cursor-pointer",disabled:e.form.formState.isSubmitting,"data-testid":Re.signupForm.submitButton,children:[e.submitButtonLabel,e.form.formState.isSubmitting&&k.jsx(Nn,{className:"animate-spin"})]}),e.loginLinkComponent?k.jsx(mn,{className:"text-center",children:e.loginLinkComponent()}):null]})})})})]})})}function Sm(e){return k.jsx("div",{className:"flex flex-col gap-6",children:k.jsxs(kr,{children:[k.jsxs(Or,{children:[k.jsx(Rr,{className:"text-2xl",children:e.verifyEmailTitle}),k.jsx(Cr,{children:e.verifyEmailDescription})]}),k.jsx(jr,{children:k.jsx(bn,{...e.form,children:k.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:k.jsxs("div",{className:"flex flex-col gap-6",children:[k.jsxs("div",{className:"grid gap-2",children:[k.jsx(yt,{children:e.codeLabel}),k.jsx(wt,{control:e.form.control,name:"code",render:({field:t})=>k.jsx(xt,{children:k.jsx(_t,{children:k.jsx(Et,{type:"text",placeholder:"00001234","data-testid":Re.verifyEmailForm.authCodeInput,required:!0,...t})})})})]}),k.jsx(ct,{type:"submit",className:"w-full cursor-pointer","data-testid":Re.verifyEmailForm.submitButton,children:e.submitButtonLabel}),e.loginLinkComponent?k.jsx(mn,{className:"text-center",children:e.loginLinkComponent()}):null]})})})})]})})}const rt=new WeakMap,ur=new WeakMap,dr={current:[]};let Dn=!1;const fr=new Set,ls=new Map;function cs(e){const t=Array.from(e).sort((r,n)=>r instanceof Ve&&r.options.deps.includes(n)?1:n instanceof Ve&&n.options.deps.includes(r)?-1:0);for(const r of t){if(dr.current.includes(r))continue;dr.current.push(r),r.recompute();const n=ur.get(r);if(n)for(const o of n){const a=rt.get(o);a&&cs(a)}}}function km(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function Om(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function Rm(e){if(fr.add(e),!Dn)try{for(Dn=!0;fr.size>0;){const t=Array.from(fr);fr.clear();for(const r of t){const n=ls.get(r)??r.prevState;r.prevState=n,km(r)}for(const r of t){const n=rt.get(r);n&&(dr.current.push(r),cs(n))}for(const r of t){const n=rt.get(r);if(n)for(const o of n)Om(o)}}}finally{Dn=!1,dr.current=[],ls.clear()}}function Cm(e){return typeof e=="function"}class An{constructor(t,r){this.listeners=new Set,this.subscribe=n=>{var o,a;this.listeners.add(n);const i=(a=(o=this.options)==null?void 0:o.onSubscribe)==null?void 0:a.call(o,n,this);return()=>{this.listeners.delete(n),i?.()}},this.prevState=t,this.state=t,this.options=r}setState(t){var r,n,o;this.prevState=this.state,(r=this.options)!=null&&r.updateFn?this.state=this.options.updateFn(this.prevState)(t):Cm(t)?this.state=t(this.prevState):this.state=t,(o=(n=this.options)==null?void 0:n.onUpdate)==null||o.call(n),Rm(this)}}class Ve{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const r=[],n=[];for(const o of this.options.deps)r.push(o.prevState),n.push(o.state);return this.lastSeenDepValues=n,{prevDepVals:r,currDepVals:n,prevVal:this.prevState??void 0}},this.recompute=()=>{var r,n;this.prevState=this.state;const{prevDepVals:o,currDepVals:a,prevVal:i}=this.getDepVals();this.state=this.options.fn({prevDepVals:o,currDepVals:a,prevVal:i}),(n=(r=this.options).onUpdate)==null||n.call(r)},this.checkIfRecalculationNeededDeeply=()=>{for(const a of this.options.deps)a instanceof Ve&&a.checkIfRecalculationNeededDeeply();let r=!1;const n=this.lastSeenDepValues,{currDepVals:o}=this.getDepVals();for(let a=0;a<o.length;a++)if(o[a]!==n[a]){r=!0;break}r&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const r of this._subscriptions)r()}),this.subscribe=r=>{var n,o;this.listeners.add(r);const a=(o=(n=this.options).onSubscribe)==null?void 0:o.call(n,r,this);return()=>{this.listeners.delete(r),a?.()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const r of t)if(r instanceof Ve)r.registerOnGraph(),this.registerOnGraph(r.options.deps);else if(r instanceof An){let n=rt.get(r);n||(n=new Set,rt.set(r,n)),n.add(this);let o=ur.get(this);o||(o=new Set,ur.set(this,o)),o.add(r)}}unregisterFromGraph(t=this.options.deps){for(const r of t)if(r instanceof Ve)this.unregisterFromGraph(r.options.deps);else if(r instanceof An){const n=rt.get(r);n&&n.delete(this);const o=ur.get(this);o&&o.delete(r)}}}const Ln="Authorization",us=()=>({user:{id:null,email:null,roles:[],is_enabled:!1,is_email_verified:!1},sessionID:null,isAuthenticated:!1,isLoaded:!1}),ze=new An(us()),jm=new Ve({fn:()=>!!ze.state.user?.roles.find(e=>e.name==="admin"),deps:[ze]});class Tm{accountStore;httpClient;constructor(t){this.httpClient=t,this.accountStore=ze}initAuthData(){const t=localStorage.getItem("token");t&&(this.httpClient.defaults.headers.common[Ln]=t)}async load(){try{const{data:t}=await this.httpClient.get("/api/auth/account/me");ze.setState(()=>({user:t.user,sessionID:t.session_id,isAuthenticated:!0,isLoaded:!0}))}catch{ze.setState(t=>({...t,isLoaded:!0}))}}async login(t){const r=await this.httpClient.post("/api/auth/account/login",t),{user:n,token:o,session_id:a}=r.data;return this._initUserData({user:n,token:o,sessionID:a}),n}signup(t){return this.httpClient.post("/api/auth/account/signup",t)}async verifyEmail(t){const r=await this.httpClient.post("/api/auth/account/verify-email",t);this._initUserData(r.data)}logout(){ze.setState(()=>({...us(),isLoaded:!0})),this._clearAuthData()}startResetPassword(t){return this.httpClient.post("/api/auth/account/start-reset-password",t)}async resetPassword(t){const r=await this.httpClient.post("/api/auth/account/reset-password",t);this._initUserData(r.data)}_initUserData({user:t,token:r,sessionID:n}){this._setAuthData(r),ze.setState(()=>({user:t,isAuthenticated:!0,isLoaded:!0,sessionID:n}))}_setAuthData(t){localStorage.setItem("token",t),this.httpClient.defaults.headers.common[Ln]=t}_clearAuthData(){localStorage.removeItem("token"),delete this.httpClient.defaults.headers.common[Ln]}}const Nm={notificationsErrorsMap:{"User is not enabled":"auth.loginForm.errors.notifications.userIsNotEnabled","Email not verified":"auth.loginForm.errors.notifications.emailNotVerified","Email not found":"auth.loginForm.errors.notifications.emailNotFound","Invalid password":"auth.loginForm.errors.notifications.invalidPassword","Email is already used":"auth.signUpForm.errors.notifications.emailAlreadyExists","Wrong verification code":"auth.verifyEmailForm.errors.notifications.wrongAuthCode"},fieldsErrorsMap:{"User is not enabled":"email","Email not verified":"email","Email not found":"email","Invalid password":"password","Email is already used":"email"},ru:{verifyEmailForm:{form:{title:"Подтверждение почты",submitButtonLabel:"Подтвердить",codeLabel:"Код подтверждения",verifyEmailDescription:"Введите код подтверждения, отправленный на вашу почту.",loginLinkMessage:"Почта уже подтверждена?",loginLink:"Войти"},success:{notifications:{verifyEmailSuccess:"Почта успешно подтверждена"}},errors:{notifications:{wrongAuthCode:"Неверный код подтверждения",unknownError:"Неизвестная ошибка",unknownErrorDescription:"Пожалуйста, попробуйте еще раз, либо обратитесь в службу поддержки"}}},loginForm:{form:{title:"Вход",description:"Введите данные для входа",emailLabel:"Email",passwordLabel:"Пароль",forgotPasswordMessage:"Забыли пароль?",submitButtonLabel:"Войти",dontHaveAccountMessage:"Нет аккаунта?",dontHaveAccountLink:"Зарегистрироваться"},errors:{notifications:{emailNotFound:"Пользователь с email {{email}} не найден",userIsNotEnabled:"Пользователь не активирован",emailNotVerified:"Почта не подтверждена",invalidPassword:"Неверный пароль",unknownError:"Не удалось войти в систему",unknownErrorDescription:"Попробуйте войти позже, либо обратитесь в службу поддержки"}},success:{notifications:{loginSuccess:"Вы успешно вошли в систему"}}},signUpForm:{form:{title:"Регистрация",description:"Введите данные для регистрации",emailLabel:"Email",passwordLabel:"Пароль",submitButtonLabel:"Зарегистрироваться",forgotPasswordMessage:"Забыли пароль?",loginLinkMessage:"Уже есть аккаунт?",loginLink:"Войти"},errors:{notifications:{unknownError:"Ошибка регистрации",unknownErrorDescription:"Пожалуйста, попробуйте еще раз или обратитесь к администратору",emailAlreadyExists:"Пользователь с email {{email}} уже существует"},fields:{passwordToSmall:"Минимальная длина пароля - 8 символов"}},success:{notifications:{signUpSuccess:"Вы успешно зарегистрированы"}}}},en:{verifyEmailForm:{form:{title:"Verify email",submitButtonLabel:"Verify",codeLabel:"Verification code",verifyEmailDescription:"Enter the verification code sent to your email.",loginLinkMessage:"Email already verified?",loginLink:"Login"},success:{notifications:{verifyEmailSuccess:"Email successfully verified"}},errors:{notifications:{wrongAuthCode:"Wrong verification code",unknownError:"Unknown error",unknownErrorDescription:"Please try again or contact support"}}},loginForm:{form:{title:"Login",description:"Enter your login details",emailLabel:"Email",passwordLabel:"Password",forgotPasswordMessage:"Forgot password?",submitButtonLabel:"Login",dontHaveAccountMessage:"Don't have an account?",dontHaveAccountLink:"Register"},errors:{notifications:{emailNotFound:"User with email {{email}} not found",userIsNotEnabled:"User is not enabled",emailNotVerified:"Email not verified",invalidPassword:"Invalid password"}},success:{notifications:{loginSuccess:"You have successfully logged in"}}},signUpForm:{form:{title:"Registration",description:"Enter your registration details",emailLabel:"Email",passwordLabel:"Password",submitButtonLabel:"Register",forgotPasswordMessage:"Forgot password?",loginLinkMessage:"Already have an account?",loginLink:"Login"},errors:{notifications:{unknownError:"Signup failed",unknownErrorDescription:"Please try again or contact the administrator",emailAlreadyExists:"User with email {{email}} already exists"}},success:{notifications:{signUpSuccess:"You have successfully registered"}}}}};oe.Auth=Tm,oe.AuthWrapper=pm,oe.DevPanel=xm,oe.LoginForm=_m,oe.SignUpForm=Em,oe.VerifyEmailForm=Sm,oe.authE2EConfig=Re,oe.isAdmin=jm,oe.locale=Nm,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})}));