componentes-exagono 0.1.37 → 0.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(vt,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react"),require("@mui/material"),require("date-fns"),require("react-dom"),require("notistack")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","date-fns","react-dom","notistack"],x):(vt=typeof globalThis<"u"?globalThis:vt||self,x(vt.exagono={},vt.React,vt.MaterialUI,vt.dateFns,vt.ReactDOM,vt.notistack))})(this,(function(vt,x,$,w,ln,ya){"use strict";function Tc(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const j=Tc(x),ch=Tc(ln);function lh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Po={exports:{}},zn={};/**
1
+ (function(lt,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("@mui/material"),require("date-fns"),require("react-dom"),require("notistack")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","date-fns","react-dom","notistack"],w):(lt=typeof globalThis<"u"?globalThis:lt||self,w(lt.exagono={},lt.React,lt.MaterialUI,lt.dateFns,lt.ReactDOM,lt.notistack))})(this,(function(lt,w,E,y,zs,Wa){"use strict";function Bs(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const Z=Bs(w),qf=Bs(zs);function Kf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fo={exports:{}},xn={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Oc;function uh(){if(Oc)return zn;Oc=1;var e=x,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,l){var u,d={},f=null,m=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(m=c.ref);for(u in c)n.call(c,u)&&!i.hasOwnProperty(u)&&(d[u]=c[u]);if(s&&s.defaultProps)for(u in c=s.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:r,type:s,key:f,ref:m,props:d,_owner:o.current}}return zn.Fragment=t,zn.jsx=a,zn.jsxs=a,zn}var Bn={};/**
9
+ */var Vs;function Gf(){if(Vs)return xn;Vs=1;var e=w,n=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,c,l){var u,d={},f=null,m=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(m=c.ref);for(u in c)r.call(c,u)&&!a.hasOwnProperty(u)&&(d[u]=c[u]);if(s&&s.defaultProps)for(u in c=s.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:n,type:s,key:f,ref:m,props:d,_owner:o.current}}return xn.Fragment=t,xn.jsx=i,xn.jsxs=i,xn}var Sn={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,39 +14,39 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Mc;function dh(){return Mc||(Mc=1,process.env.NODE_ENV!=="production"&&(function(){var e=x,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function y(D){if(D===null||typeof D!="object")return null;var X=g&&D[g]||D[p];return typeof X=="function"?X:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(D){{for(var X=arguments.length,le=new Array(X>1?X-1:0),ye=1;ye<X;ye++)le[ye-1]=arguments[ye];k("error",D,le)}}function k(D,X,le){{var ye=S.ReactDebugCurrentFrame,Ne=ye.getStackAddendum();Ne!==""&&(X+="%s",le=le.concat([Ne]));var Fe=le.map(function(ke){return String(ke)});Fe.unshift("Warning: "+X),Function.prototype.apply.call(console[D],console,Fe)}}var E=!1,_=!1,O=!1,N=!1,q=!1,Z;Z=Symbol.for("react.module.reference");function L(D){return!!(typeof D=="string"||typeof D=="function"||D===n||D===i||q||D===o||D===l||D===u||N||D===m||E||_||O||typeof D=="object"&&D!==null&&(D.$$typeof===f||D.$$typeof===d||D.$$typeof===a||D.$$typeof===s||D.$$typeof===c||D.$$typeof===Z||D.getModuleId!==void 0))}function K(D,X,le){var ye=D.displayName;if(ye)return ye;var Ne=X.displayName||X.name||"";return Ne!==""?le+"("+Ne+")":le}function v(D){return D.displayName||"Context"}function I(D){if(D==null)return null;if(typeof D.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case n:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case s:var X=D;return v(X)+".Consumer";case a:var le=D;return v(le._context)+".Provider";case c:return K(D,D.render,"ForwardRef");case d:var ye=D.displayName||null;return ye!==null?ye:I(D.type)||"Memo";case f:{var Ne=D,Fe=Ne._payload,ke=Ne._init;try{return I(ke(Fe))}catch{return null}}}return null}var A=Object.assign,U=0,H,ee,re,se,V,G,ge;function ve(){}ve.__reactDisabledLog=!0;function he(){{if(U===0){H=console.log,ee=console.info,re=console.warn,se=console.error,V=console.group,G=console.groupCollapsed,ge=console.groupEnd;var D={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:D,log:D,warn:D,error:D,group:D,groupCollapsed:D,groupEnd:D})}U++}}function J(){{if(U--,U===0){var D={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},D,{value:H}),info:A({},D,{value:ee}),warn:A({},D,{value:re}),error:A({},D,{value:se}),group:A({},D,{value:V}),groupCollapsed:A({},D,{value:G}),groupEnd:A({},D,{value:ge})})}U<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=S.ReactCurrentDispatcher,ce;function ue(D,X,le){{if(ce===void 0)try{throw Error()}catch(Ne){var ye=Ne.stack.trim().match(/\n( *(at )?)/);ce=ye&&ye[1]||""}return`
18
- `+ce+D}}var F=!1,W;{var de=typeof WeakMap=="function"?WeakMap:Map;W=new de}function P(D,X){if(!D||F)return"";{var le=W.get(D);if(le!==void 0)return le}var ye;F=!0;var Ne=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Fe;Fe=Q.current,Q.current=null,he();try{if(X){var ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(Mt){ye=Mt}Reflect.construct(D,[],ke)}else{try{ke.call()}catch(Mt){ye=Mt}D.call(ke.prototype)}}else{try{throw Error()}catch(Mt){ye=Mt}D()}}catch(Mt){if(Mt&&ye&&typeof Mt.stack=="string"){for(var Ee=Mt.stack.split(`
19
- `),xt=ye.stack.split(`
20
- `),at=Ee.length-1,lt=xt.length-1;at>=1&&lt>=0&&Ee[at]!==xt[lt];)lt--;for(;at>=1&&lt>=0;at--,lt--)if(Ee[at]!==xt[lt]){if(at!==1||lt!==1)do if(at--,lt--,lt<0||Ee[at]!==xt[lt]){var Wt=`
21
- `+Ee[at].replace(" at new "," at ");return D.displayName&&Wt.includes("<anonymous>")&&(Wt=Wt.replace("<anonymous>",D.displayName)),typeof D=="function"&&W.set(D,Wt),Wt}while(at>=1&&lt>=0);break}}}finally{F=!1,Q.current=Fe,J(),Error.prepareStackTrace=Ne}var Ln=D?D.displayName||D.name:"",cn=Ln?ue(Ln):"";return typeof D=="function"&&W.set(D,cn),cn}function we(D,X,le){return P(D,!1)}function Qe(D){var X=D.prototype;return!!(X&&X.isReactComponent)}function wt(D,X,le){if(D==null)return"";if(typeof D=="function")return P(D,Qe(D));if(typeof D=="string")return ue(D);switch(D){case l:return ue("Suspense");case u:return ue("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case c:return we(D.render);case d:return wt(D.type,X,le);case f:{var ye=D,Ne=ye._payload,Fe=ye._init;try{return wt(Fe(Ne),X,le)}catch{}}}return""}var kr=Object.prototype.hasOwnProperty,Dr={},Tr=S.ReactDebugCurrentFrame;function Or(D){if(D){var X=D._owner,le=wt(D.type,D._source,X?X.type:null);Tr.setExtraStackFrame(le)}else Tr.setExtraStackFrame(null)}function T(D,X,le,ye,Ne){{var Fe=Function.call.bind(kr);for(var ke in D)if(Fe(D,ke)){var Ee=void 0;try{if(typeof D[ke]!="function"){var xt=Error((ye||"React class")+": "+le+" type `"+ke+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[ke]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw xt.name="Invariant Violation",xt}Ee=D[ke](X,ke,ye,le,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(at){Ee=at}Ee&&!(Ee instanceof Error)&&(Or(Ne),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ye||"React class",le,ke,typeof Ee),Or(null)),Ee instanceof Error&&!(Ee.message in Dr)&&(Dr[Ee.message]=!0,Or(Ne),C("Failed %s type: %s",le,Ee.message),Or(null))}}}var R=Array.isArray;function M(D){return R(D)}function ae(D){{var X=typeof Symbol=="function"&&Symbol.toStringTag,le=X&&D[Symbol.toStringTag]||D.constructor.name||"Object";return le}}function ne(D){try{return te(D),!1}catch{return!0}}function te(D){return""+D}function pe(D){if(ne(D))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ae(D)),te(D)}var De=S.ReactCurrentOwner,Ve={key:!0,ref:!0,__self:!0,__source:!0},_t,sn;function gr(D){if(kr.call(D,"ref")){var X=Object.getOwnPropertyDescriptor(D,"ref").get;if(X&&X.isReactWarning)return!1}return D.ref!==void 0}function xc(D){if(kr.call(D,"key")){var X=Object.getOwnPropertyDescriptor(D,"key").get;if(X&&X.isReactWarning)return!1}return D.key!==void 0}function Oo(D,X){typeof D.ref=="string"&&De.current}function Mo(D,X){{var le=function(){_t||(_t=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",X))};le.isReactWarning=!0,Object.defineProperty(D,"key",{get:le,configurable:!0})}}function Sc(D,X){{var le=function(){sn||(sn=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",X))};le.isReactWarning=!0,Object.defineProperty(D,"ref",{get:le,configurable:!0})}}var va=function(D,X,le,ye,Ne,Fe,ke){var Ee={$$typeof:r,type:D,key:X,ref:le,props:ke,_owner:Fe};return Ee._store={},Object.defineProperty(Ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ee,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ye}),Object.defineProperty(Ee,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ne}),Object.freeze&&(Object.freeze(Ee.props),Object.freeze(Ee)),Ee};function Cc(D,X,le,ye,Ne){{var Fe,ke={},Ee=null,xt=null;le!==void 0&&(pe(le),Ee=""+le),xc(X)&&(pe(X.key),Ee=""+X.key),gr(X)&&(xt=X.ref,Oo(X,Ne));for(Fe in X)kr.call(X,Fe)&&!Ve.hasOwnProperty(Fe)&&(ke[Fe]=X[Fe]);if(D&&D.defaultProps){var at=D.defaultProps;for(Fe in at)ke[Fe]===void 0&&(ke[Fe]=at[Fe])}if(Ee||xt){var lt=typeof D=="function"?D.displayName||D.name||"Unknown":D;Ee&&Mo(ke,lt),xt&&Sc(ke,lt)}return va(D,Ee,xt,Ne,ye,De.current,ke)}}var $n=S.ReactCurrentOwner,eh=S.ReactDebugCurrentFrame;function jn(D){if(D){var X=D._owner,le=wt(D.type,D._source,X?X.type:null);eh.setExtraStackFrame(le)}else eh.setExtraStackFrame(null)}var Ec;Ec=!1;function kc(D){return typeof D=="object"&&D!==null&&D.$$typeof===r}function th(){{if($n.current){var D=I($n.current.type);if(D)return`
17
+ */var Fs;function Qf(){return Fs||(Fs=1,process.env.NODE_ENV!=="production"&&(function(){var e=w,n=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function b(_){if(_===null||typeof _!="object")return null;var q=g&&_[g]||_[p];return typeof q=="function"?q:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(_){{for(var q=arguments.length,ie=new Array(q>1?q-1:0),ve=1;ve<q;ve++)ie[ve-1]=arguments[ve];T("error",_,ie)}}function T(_,q,ie){{var ve=x.ReactDebugCurrentFrame,Pe=ve.getStackAddendum();Pe!==""&&(q+="%s",ie=ie.concat([Pe]));var ze=ie.map(function(ke){return String(ke)});ze.unshift("Warning: "+q),Function.prototype.apply.call(console[_],console,ze)}}var D=!1,k=!1,O=!1,I=!1,W=!1,U;U=Symbol.for("react.module.reference");function $(_){return!!(typeof _=="string"||typeof _=="function"||_===r||_===a||W||_===o||_===l||_===u||I||_===m||D||k||O||typeof _=="object"&&_!==null&&(_.$$typeof===f||_.$$typeof===d||_.$$typeof===i||_.$$typeof===s||_.$$typeof===c||_.$$typeof===U||_.getModuleId!==void 0))}function Q(_,q,ie){var ve=_.displayName;if(ve)return ve;var Pe=q.displayName||q.name||"";return Pe!==""?ie+"("+Pe+")":ie}function v(_){return _.displayName||"Context"}function M(_){if(_==null)return null;if(typeof _.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case r:return"Fragment";case t:return"Portal";case a:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case s:var q=_;return v(q)+".Consumer";case i:var ie=_;return v(ie._context)+".Provider";case c:return Q(_,_.render,"ForwardRef");case d:var ve=_.displayName||null;return ve!==null?ve:M(_.type)||"Memo";case f:{var Pe=_,ze=Pe._payload,ke=Pe._init;try{return M(ke(ze))}catch{return null}}}return null}var P=Object.assign,H=0,Y,ee,ae,be,z,K,fe;function pe(){}pe.__reactDisabledLog=!0;function he(){{if(H===0){Y=console.log,ee=console.info,ae=console.warn,be=console.error,z=console.group,K=console.groupCollapsed,fe=console.groupEnd;var _={configurable:!0,enumerable:!0,value:pe,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}H++}}function G(){{if(H--,H===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},_,{value:Y}),info:P({},_,{value:ee}),warn:P({},_,{value:ae}),error:P({},_,{value:be}),group:P({},_,{value:z}),groupCollapsed:P({},_,{value:K}),groupEnd:P({},_,{value:fe})})}H<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var se=x.ReactCurrentDispatcher,de;function me(_,q,ie){{if(de===void 0)try{throw Error()}catch(Pe){var ve=Pe.stack.trim().match(/\n( *(at )?)/);de=ve&&ve[1]||""}return`
18
+ `+de+_}}var ye=!1,B;{var te=typeof WeakMap=="function"?WeakMap:Map;B=new te}function F(_,q){if(!_||ye)return"";{var ie=B.get(_);if(ie!==void 0)return ie}var ve;ye=!0;var Pe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ze;ze=se.current,se.current=null,he();try{if(q){var ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(St){ve=St}Reflect.construct(_,[],ke)}else{try{ke.call()}catch(St){ve=St}_.call(ke.prototype)}}else{try{throw Error()}catch(St){ve=St}_()}}catch(St){if(St&&ve&&typeof St.stack=="string"){for(var Ce=St.stack.split(`
19
+ `),vt=ve.stack.split(`
20
+ `),rt=Ce.length-1,at=vt.length-1;rt>=1&&at>=0&&Ce[rt]!==vt[at];)at--;for(;rt>=1&&at>=0;rt--,at--)if(Ce[rt]!==vt[at]){if(rt!==1||at!==1)do if(rt--,at--,at<0||Ce[rt]!==vt[at]){var jt=`
21
+ `+Ce[rt].replace(" at new "," at ");return _.displayName&&jt.includes("<anonymous>")&&(jt=jt.replace("<anonymous>",_.displayName)),typeof _=="function"&&B.set(_,jt),jt}while(rt>=1&&at>=0);break}}}finally{ye=!1,se.current=ze,G(),Error.prepareStackTrace=Pe}var _n=_?_.displayName||_.name:"",Wr=_n?me(_n):"";return typeof _=="function"&&B.set(_,Wr),Wr}function ge(_,q,ie){return F(_,!1)}function Fe(_){var q=_.prototype;return!!(q&&q.isReactComponent)}function or(_,q,ie){if(_==null)return"";if(typeof _=="function")return F(_,Fe(_));if(typeof _=="string")return me(_);switch(_){case l:return me("Suspense");case u:return me("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case c:return ge(_.render);case d:return or(_.type,q,ie);case f:{var ve=_,Pe=ve._payload,ze=ve._init;try{return or(ze(Pe),q,ie)}catch{}}}return""}var Yr=Object.prototype.hasOwnProperty,Ha={},Ps=x.ReactDebugCurrentFrame;function Hr(_){if(_){var q=_._owner,ie=or(_.type,_._source,q?q.type:null);Ps.setExtraStackFrame(ie)}else Ps.setExtraStackFrame(null)}function C(_,q,ie,ve,Pe){{var ze=Function.call.bind(Yr);for(var ke in _)if(ze(_,ke)){var Ce=void 0;try{if(typeof _[ke]!="function"){var vt=Error((ve||"React class")+": "+ie+" type `"+ke+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[ke]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw vt.name="Invariant Violation",vt}Ce=_[ke](q,ke,ve,ie,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(rt){Ce=rt}Ce&&!(Ce instanceof Error)&&(Hr(Pe),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ve||"React class",ie,ke,typeof Ce),Hr(null)),Ce instanceof Error&&!(Ce.message in Ha)&&(Ha[Ce.message]=!0,Hr(Pe),S("Failed %s type: %s",ie,Ce.message),Hr(null))}}}var A=Array.isArray;function L(_){return A(_)}function oe(_){{var q=typeof Symbol=="function"&&Symbol.toStringTag,ie=q&&_[Symbol.toStringTag]||_.constructor.name||"Object";return ie}}function X(_){try{return J(_),!1}catch{return!0}}function J(_){return""+_}function le(_){if(X(_))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",oe(_)),J(_)}var De=x.ReactCurrentOwner,Le={key:!0,ref:!0,__self:!0,__source:!0},gt,Ur;function ar(_){if(Yr.call(_,"ref")){var q=Object.getOwnPropertyDescriptor(_,"ref").get;if(q&&q.isReactWarning)return!1}return _.ref!==void 0}function Is(_){if(Yr.call(_,"key")){var q=Object.getOwnPropertyDescriptor(_,"key").get;if(q&&q.isReactWarning)return!1}return _.key!==void 0}function lo(_,q){typeof _.ref=="string"&&De.current}function uo(_,q){{var ie=function(){gt||(gt=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",q))};ie.isReactWarning=!0,Object.defineProperty(_,"key",{get:ie,configurable:!0})}}function Ns(_,q){{var ie=function(){Ur||(Ur=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",q))};ie.isReactWarning=!0,Object.defineProperty(_,"ref",{get:ie,configurable:!0})}}var Ua=function(_,q,ie,ve,Pe,ze,ke){var Ce={$$typeof:n,type:_,key:q,ref:ie,props:ke,_owner:ze};return Ce._store={},Object.defineProperty(Ce._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ce,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(Ce,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Pe}),Object.freeze&&(Object.freeze(Ce.props),Object.freeze(Ce)),Ce};function Rs(_,q,ie,ve,Pe){{var ze,ke={},Ce=null,vt=null;ie!==void 0&&(le(ie),Ce=""+ie),Is(q)&&(le(q.key),Ce=""+q.key),ar(q)&&(vt=q.ref,lo(q,Pe));for(ze in q)Yr.call(q,ze)&&!Le.hasOwnProperty(ze)&&(ke[ze]=q[ze]);if(_&&_.defaultProps){var rt=_.defaultProps;for(ze in rt)ke[ze]===void 0&&(ke[ze]=rt[ze])}if(Ce||vt){var at=typeof _=="function"?_.displayName||_.name||"Unknown":_;Ce&&uo(ke,at),vt&&Ns(ke,at)}return Ua(_,Ce,vt,Pe,ve,De.current,ke)}}var bn=x.ReactCurrentOwner,Bf=x.ReactDebugCurrentFrame;function wn(_){if(_){var q=_._owner,ie=or(_.type,_._source,q?q.type:null);Bf.setExtraStackFrame(ie)}else Bf.setExtraStackFrame(null)}var $s;$s=!1;function js(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function Vf(){{if(bn.current){var _=M(bn.current.type);if(_)return`
22
22
 
23
- Check the render method of \``+D+"`."}return""}}function QE(D){return""}var rh={};function XE(D){{var X=th();if(!X){var le=typeof D=="string"?D:D.displayName||D.name;le&&(X=`
23
+ Check the render method of \``+_+"`."}return""}}function VS(_){return""}var Ff={};function FS(_){{var q=Vf();if(!q){var ie=typeof _=="string"?_:_.displayName||_.name;ie&&(q=`
24
24
 
25
- Check the top-level render call using <`+le+">.")}return X}}function nh(D,X){{if(!D._store||D._store.validated||D.key!=null)return;D._store.validated=!0;var le=XE(X);if(rh[le])return;rh[le]=!0;var ye="";D&&D._owner&&D._owner!==$n.current&&(ye=" It was passed a child from "+I(D._owner.type)+"."),jn(D),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',le,ye),jn(null)}}function oh(D,X){{if(typeof D!="object")return;if(M(D))for(var le=0;le<D.length;le++){var ye=D[le];kc(ye)&&nh(ye,X)}else if(kc(D))D._store&&(D._store.validated=!0);else if(D){var Ne=y(D);if(typeof Ne=="function"&&Ne!==D.entries)for(var Fe=Ne.call(D),ke;!(ke=Fe.next()).done;)kc(ke.value)&&nh(ke.value,X)}}}function JE(D){{var X=D.type;if(X==null||typeof X=="string")return;var le;if(typeof X=="function")le=X.propTypes;else if(typeof X=="object"&&(X.$$typeof===c||X.$$typeof===d))le=X.propTypes;else return;if(le){var ye=I(X);T(le,D.props,"prop",ye,D)}else if(X.PropTypes!==void 0&&!Ec){Ec=!0;var Ne=I(X);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ne||"Unknown")}typeof X.getDefaultProps=="function"&&!X.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ek(D){{for(var X=Object.keys(D.props),le=0;le<X.length;le++){var ye=X[le];if(ye!=="children"&&ye!=="key"){jn(D),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ye),jn(null);break}}D.ref!==null&&(jn(D),C("Invalid attribute `ref` supplied to `React.Fragment`."),jn(null))}}var ih={};function ah(D,X,le,ye,Ne,Fe){{var ke=L(D);if(!ke){var Ee="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Ee+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var xt=QE();xt?Ee+=xt:Ee+=th();var at;D===null?at="null":M(D)?at="array":D!==void 0&&D.$$typeof===r?(at="<"+(I(D.type)||"Unknown")+" />",Ee=" Did you accidentally export a JSX literal instead of a component?"):at=typeof D,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",at,Ee)}var lt=Cc(D,X,le,Ne,Fe);if(lt==null)return lt;if(ke){var Wt=X.children;if(Wt!==void 0)if(ye)if(M(Wt)){for(var Ln=0;Ln<Wt.length;Ln++)oh(Wt[Ln],D);Object.freeze&&Object.freeze(Wt)}else C("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 oh(Wt,D)}if(kr.call(X,"key")){var cn=I(D),Mt=Object.keys(X).filter(function(ak){return ak!=="key"}),Dc=Mt.length>0?"{key: someKey, "+Mt.join(": ..., ")+": ...}":"{key: someKey}";if(!ih[cn+Dc]){var ik=Mt.length>0?"{"+Mt.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+ie+">.")}return q}}function Yf(_,q){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var ie=FS(q);if(Ff[ie])return;Ff[ie]=!0;var ve="";_&&_._owner&&_._owner!==bn.current&&(ve=" It was passed a child from "+M(_._owner.type)+"."),wn(_),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ie,ve),wn(null)}}function Hf(_,q){{if(typeof _!="object")return;if(L(_))for(var ie=0;ie<_.length;ie++){var ve=_[ie];js(ve)&&Yf(ve,q)}else if(js(_))_._store&&(_._store.validated=!0);else if(_){var Pe=b(_);if(typeof Pe=="function"&&Pe!==_.entries)for(var ze=Pe.call(_),ke;!(ke=ze.next()).done;)js(ke.value)&&Yf(ke.value,q)}}}function YS(_){{var q=_.type;if(q==null||typeof q=="string")return;var ie;if(typeof q=="function")ie=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===c||q.$$typeof===d))ie=q.propTypes;else return;if(ie){var ve=M(q);C(ie,_.props,"prop",ve,_)}else if(q.PropTypes!==void 0&&!$s){$s=!0;var Pe=M(q);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Pe||"Unknown")}typeof q.getDefaultProps=="function"&&!q.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function HS(_){{for(var q=Object.keys(_.props),ie=0;ie<q.length;ie++){var ve=q[ie];if(ve!=="children"&&ve!=="key"){wn(_),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),wn(null);break}}_.ref!==null&&(wn(_),S("Invalid attribute `ref` supplied to `React.Fragment`."),wn(null))}}var Uf={};function Wf(_,q,ie,ve,Pe,ze){{var ke=$(_);if(!ke){var Ce="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(Ce+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var vt=VS();vt?Ce+=vt:Ce+=Vf();var rt;_===null?rt="null":L(_)?rt="array":_!==void 0&&_.$$typeof===n?(rt="<"+(M(_.type)||"Unknown")+" />",Ce=" Did you accidentally export a JSX literal instead of a component?"):rt=typeof _,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",rt,Ce)}var at=Rs(_,q,ie,Pe,ze);if(at==null)return at;if(ke){var jt=q.children;if(jt!==void 0)if(ve)if(L(jt)){for(var _n=0;_n<jt.length;_n++)Hf(jt[_n],_);Object.freeze&&Object.freeze(jt)}else S("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 Hf(jt,_)}if(Yr.call(q,"key")){var Wr=M(_),St=Object.keys(q).filter(function(GS){return GS!=="key"}),Ls=St.length>0?"{key: someKey, "+St.join(": ..., ")+": ...}":"{key: someKey}";if(!Uf[Wr+Ls]){var KS=St.length>0?"{"+St.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Dc,cn,ik,cn),ih[cn+Dc]=!0}}return D===n?ek(lt):JE(lt),lt}}function tk(D,X,le){return ah(D,X,le,!0)}function rk(D,X,le){return ah(D,X,le,!1)}var nk=rk,ok=tk;Bn.Fragment=n,Bn.jsx=nk,Bn.jsxs=ok})()),Bn}var Pc;function fh(){return Pc||(Pc=1,process.env.NODE_ENV==="production"?Po.exports=uh():Po.exports=dh()),Po.exports}var h=fh();const Zt={dashboardContainer:"_dashboardContainer_1aedh_1",sidebar:"_sidebar_1aedh_21",sidebarContent:"_sidebarContent_1aedh_41",header:"_header_1aedh_51",mainContent:"_mainContent_1aedh_75",sidebarCollapsed:"_sidebarCollapsed_1aedh_93",collapseButton:"_collapseButton_1aedh_111",menuButton:"_menuButton_1aedh_131",overlay:"_overlay_1aedh_133",headerContent:"_headerContent_1aedh_143",sidebarOpen:"_sidebarOpen_1aedh_195"},Ac=e=>e,Ic=(()=>{let e=Ac;return{configure(r){e=r},generate(r){return e(r)},reset(){e=Ac}}})();function Mr(e,...r){const t=new URL(`https://mui.com/production-error/?code=${e}`);return r.forEach(n=>t.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${t} for the full message.`}function Ke(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ao={exports:{}},Io={exports:{}},Me={};/** @license React v16.13.1
30
+ <%s key={someKey} {...props} />`,Ls,Wr,KS,Wr),Uf[Wr+Ls]=!0}}return _===r?HS(at):YS(at),at}}function US(_,q,ie){return Wf(_,q,ie,!0)}function WS(_,q,ie){return Wf(_,q,ie,!1)}var ZS=WS,qS=US;Sn.Fragment=r,Sn.jsx=ZS,Sn.jsxs=qS})()),Sn}var Ys;function Jf(){return Ys||(Ys=1,process.env.NODE_ENV==="production"?fo.exports=Gf():fo.exports=Qf()),fo.exports}var h=Jf();const Lt={dashboardContainer:"_dashboardContainer_1aedh_1",sidebar:"_sidebar_1aedh_21",sidebarContent:"_sidebarContent_1aedh_41",header:"_header_1aedh_51",mainContent:"_mainContent_1aedh_75",sidebarCollapsed:"_sidebarCollapsed_1aedh_93",collapseButton:"_collapseButton_1aedh_111",menuButton:"_menuButton_1aedh_131",overlay:"_overlay_1aedh_133",headerContent:"_headerContent_1aedh_143",sidebarOpen:"_sidebarOpen_1aedh_195"},Hs=e=>e,Xf=(()=>{let e=Hs;return{configure(n){e=n},generate(n){return e(n)},reset(){e=Hs}}})();function mr(e,...n){const t=new URL(`https://mui.com/production-error/?code=${e}`);return n.forEach(r=>t.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${t} for the full message.`}function Ct(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var po={exports:{}},ho={exports:{}},Oe={};/** @license React v16.13.1
31
31
  * react-is.production.min.js
32
32
  *
33
33
  * Copyright (c) Facebook, Inc. and its affiliates.
34
34
  *
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
- */var Rc;function ph(){if(Rc)return Me;Rc=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function k(_){if(typeof _=="object"&&_!==null){var O=_.$$typeof;switch(O){case r:switch(_=_.type,_){case c:case l:case n:case i:case o:case d:return _;default:switch(_=_&&_.$$typeof,_){case s:case u:case g:case m:case a:return _;default:return O}}case t:return O}}}function E(_){return k(_)===l}return Me.AsyncMode=c,Me.ConcurrentMode=l,Me.ContextConsumer=s,Me.ContextProvider=a,Me.Element=r,Me.ForwardRef=u,Me.Fragment=n,Me.Lazy=g,Me.Memo=m,Me.Portal=t,Me.Profiler=i,Me.StrictMode=o,Me.Suspense=d,Me.isAsyncMode=function(_){return E(_)||k(_)===c},Me.isConcurrentMode=E,Me.isContextConsumer=function(_){return k(_)===s},Me.isContextProvider=function(_){return k(_)===a},Me.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===r},Me.isForwardRef=function(_){return k(_)===u},Me.isFragment=function(_){return k(_)===n},Me.isLazy=function(_){return k(_)===g},Me.isMemo=function(_){return k(_)===m},Me.isPortal=function(_){return k(_)===t},Me.isProfiler=function(_){return k(_)===i},Me.isStrictMode=function(_){return k(_)===o},Me.isSuspense=function(_){return k(_)===d},Me.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===l||_===i||_===o||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===a||_.$$typeof===s||_.$$typeof===u||_.$$typeof===y||_.$$typeof===S||_.$$typeof===C||_.$$typeof===p)},Me.typeOf=k,Me}var Pe={};/** @license React v16.13.1
37
+ */var Us;function ep(){if(Us)return Oe;Us=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function T(k){if(typeof k=="object"&&k!==null){var O=k.$$typeof;switch(O){case n:switch(k=k.type,k){case c:case l:case r:case a:case o:case d:return k;default:switch(k=k&&k.$$typeof,k){case s:case u:case g:case m:case i:return k;default:return O}}case t:return O}}}function D(k){return T(k)===l}return Oe.AsyncMode=c,Oe.ConcurrentMode=l,Oe.ContextConsumer=s,Oe.ContextProvider=i,Oe.Element=n,Oe.ForwardRef=u,Oe.Fragment=r,Oe.Lazy=g,Oe.Memo=m,Oe.Portal=t,Oe.Profiler=a,Oe.StrictMode=o,Oe.Suspense=d,Oe.isAsyncMode=function(k){return D(k)||T(k)===c},Oe.isConcurrentMode=D,Oe.isContextConsumer=function(k){return T(k)===s},Oe.isContextProvider=function(k){return T(k)===i},Oe.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===n},Oe.isForwardRef=function(k){return T(k)===u},Oe.isFragment=function(k){return T(k)===r},Oe.isLazy=function(k){return T(k)===g},Oe.isMemo=function(k){return T(k)===m},Oe.isPortal=function(k){return T(k)===t},Oe.isProfiler=function(k){return T(k)===a},Oe.isStrictMode=function(k){return T(k)===o},Oe.isSuspense=function(k){return T(k)===d},Oe.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===r||k===l||k===a||k===o||k===d||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===g||k.$$typeof===m||k.$$typeof===i||k.$$typeof===s||k.$$typeof===u||k.$$typeof===b||k.$$typeof===x||k.$$typeof===S||k.$$typeof===p)},Oe.typeOf=T,Oe}var Me={};/** @license React v16.13.1
38
38
  * react-is.development.js
39
39
  *
40
40
  * Copyright (c) Facebook, Inc. and its affiliates.
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var Nc;function hh(){return Nc||(Nc=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function k(P){return typeof P=="string"||typeof P=="function"||P===n||P===l||P===i||P===o||P===d||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===g||P.$$typeof===m||P.$$typeof===a||P.$$typeof===s||P.$$typeof===u||P.$$typeof===y||P.$$typeof===S||P.$$typeof===C||P.$$typeof===p)}function E(P){if(typeof P=="object"&&P!==null){var we=P.$$typeof;switch(we){case r:var Qe=P.type;switch(Qe){case c:case l:case n:case i:case o:case d:return Qe;default:var wt=Qe&&Qe.$$typeof;switch(wt){case s:case u:case g:case m:case a:return wt;default:return we}}case t:return we}}}var _=c,O=l,N=s,q=a,Z=r,L=u,K=n,v=g,I=m,A=t,U=i,H=o,ee=d,re=!1;function se(P){return re||(re=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(P)||E(P)===c}function V(P){return E(P)===l}function G(P){return E(P)===s}function ge(P){return E(P)===a}function ve(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}function he(P){return E(P)===u}function J(P){return E(P)===n}function Q(P){return E(P)===g}function ce(P){return E(P)===m}function ue(P){return E(P)===t}function F(P){return E(P)===i}function W(P){return E(P)===o}function de(P){return E(P)===d}Pe.AsyncMode=_,Pe.ConcurrentMode=O,Pe.ContextConsumer=N,Pe.ContextProvider=q,Pe.Element=Z,Pe.ForwardRef=L,Pe.Fragment=K,Pe.Lazy=v,Pe.Memo=I,Pe.Portal=A,Pe.Profiler=U,Pe.StrictMode=H,Pe.Suspense=ee,Pe.isAsyncMode=se,Pe.isConcurrentMode=V,Pe.isContextConsumer=G,Pe.isContextProvider=ge,Pe.isElement=ve,Pe.isForwardRef=he,Pe.isFragment=J,Pe.isLazy=Q,Pe.isMemo=ce,Pe.isPortal=ue,Pe.isProfiler=F,Pe.isStrictMode=W,Pe.isSuspense=de,Pe.isValidElementType=k,Pe.typeOf=E})()),Pe}var $c;function jc(){return $c||($c=1,process.env.NODE_ENV==="production"?Io.exports=ph():Io.exports=hh()),Io.exports}/*
44
+ */var Ws;function tp(){return Ws||(Ws=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function T(F){return typeof F=="string"||typeof F=="function"||F===r||F===l||F===a||F===o||F===d||F===f||typeof F=="object"&&F!==null&&(F.$$typeof===g||F.$$typeof===m||F.$$typeof===i||F.$$typeof===s||F.$$typeof===u||F.$$typeof===b||F.$$typeof===x||F.$$typeof===S||F.$$typeof===p)}function D(F){if(typeof F=="object"&&F!==null){var ge=F.$$typeof;switch(ge){case n:var Fe=F.type;switch(Fe){case c:case l:case r:case a:case o:case d:return Fe;default:var or=Fe&&Fe.$$typeof;switch(or){case s:case u:case g:case m:case i:return or;default:return ge}}case t:return ge}}}var k=c,O=l,I=s,W=i,U=n,$=u,Q=r,v=g,M=m,P=t,H=a,Y=o,ee=d,ae=!1;function be(F){return ae||(ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(F)||D(F)===c}function z(F){return D(F)===l}function K(F){return D(F)===s}function fe(F){return D(F)===i}function pe(F){return typeof F=="object"&&F!==null&&F.$$typeof===n}function he(F){return D(F)===u}function G(F){return D(F)===r}function se(F){return D(F)===g}function de(F){return D(F)===m}function me(F){return D(F)===t}function ye(F){return D(F)===a}function B(F){return D(F)===o}function te(F){return D(F)===d}Me.AsyncMode=k,Me.ConcurrentMode=O,Me.ContextConsumer=I,Me.ContextProvider=W,Me.Element=U,Me.ForwardRef=$,Me.Fragment=Q,Me.Lazy=v,Me.Memo=M,Me.Portal=P,Me.Profiler=H,Me.StrictMode=Y,Me.Suspense=ee,Me.isAsyncMode=be,Me.isConcurrentMode=z,Me.isContextConsumer=K,Me.isContextProvider=fe,Me.isElement=pe,Me.isForwardRef=he,Me.isFragment=G,Me.isLazy=se,Me.isMemo=de,Me.isPortal=me,Me.isProfiler=ye,Me.isStrictMode=B,Me.isSuspense=te,Me.isValidElementType=T,Me.typeOf=D})()),Me}var Zs;function qs(){return Zs||(Zs=1,process.env.NODE_ENV==="production"?ho.exports=ep():ho.exports=tp()),ho.exports}/*
45
45
  object-assign
46
46
  (c) Sindre Sorhus
47
47
  @license MIT
48
- */var ba,Lc;function mh(){if(Lc)return ba;Lc=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ba=o()?Object.assign:function(i,a){for(var s,c=n(i),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)r.call(s,d)&&(c[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)t.call(s,l[f])&&(c[l[f]]=s[l[f]])}}return c},ba}var wa,zc;function _a(){if(zc)return wa;zc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wa=e,wa}var xa,Bc;function Vc(){return Bc||(Bc=1,xa=Function.call.bind(Object.prototype.hasOwnProperty)),xa}var Sa,Fc;function gh(){if(Fc)return Sa;Fc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=_a(),t={},n=Vc();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in i)if(n(i,u)){var d;try{if(typeof i[u]!="function"){var f=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[u](a,u,c,s,null,r)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in t)){t[d.message]=!0;var m=l?l():"";e("Failed "+s+" type: "+d.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Sa=o,Sa}var Ca,Yc;function vh(){if(Yc)return Ca;Yc=1;var e=jc(),r=mh(),t=_a(),n=Vc(),o=gh(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Ca=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(V){var G=V&&(l&&V[l]||V[u]);if(typeof G=="function")return G}var f="<<anonymous>>",m={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:C(),arrayOf:k,element:E(),elementType:_(),instanceOf:O,node:L(),objectOf:q,oneOf:N,oneOfType:Z,shape:v,exact:I};function g(V,G){return V===G?V!==0||1/V===1/G:V!==V&&G!==G}function p(V,G){this.message=V,this.data=G&&typeof G=="object"?G:{},this.stack=""}p.prototype=Error.prototype;function y(V){if(process.env.NODE_ENV!=="production")var G={},ge=0;function ve(J,Q,ce,ue,F,W,de){if(ue=ue||f,W=W||ce,de!==t){if(c){var P=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var we=ue+":"+ce;!G[we]&&ge<3&&(i("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+ue+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),G[we]=!0,ge++)}}return Q[ce]==null?J?Q[ce]===null?new p("The "+F+" `"+W+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new p("The "+F+" `"+W+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:V(Q,ce,ue,F,W)}var he=ve.bind(null,!1);return he.isRequired=ve.bind(null,!0),he}function S(V){function G(ge,ve,he,J,Q,ce){var ue=ge[ve],F=H(ue);if(F!==V){var W=ee(ue);return new p("Invalid "+J+" `"+Q+"` of type "+("`"+W+"` supplied to `"+he+"`, expected ")+("`"+V+"`."),{expectedType:V})}return null}return y(G)}function C(){return y(a)}function k(V){function G(ge,ve,he,J,Q){if(typeof V!="function")return new p("Property `"+Q+"` of component `"+he+"` has invalid PropType notation inside arrayOf.");var ce=ge[ve];if(!Array.isArray(ce)){var ue=H(ce);return new p("Invalid "+J+" `"+Q+"` of type "+("`"+ue+"` supplied to `"+he+"`, expected an array."))}for(var F=0;F<ce.length;F++){var W=V(ce,F,he,J,Q+"["+F+"]",t);if(W instanceof Error)return W}return null}return y(G)}function E(){function V(G,ge,ve,he,J){var Q=G[ge];if(!s(Q)){var ce=H(Q);return new p("Invalid "+he+" `"+J+"` of type "+("`"+ce+"` supplied to `"+ve+"`, expected a single ReactElement."))}return null}return y(V)}function _(){function V(G,ge,ve,he,J){var Q=G[ge];if(!e.isValidElementType(Q)){var ce=H(Q);return new p("Invalid "+he+" `"+J+"` of type "+("`"+ce+"` supplied to `"+ve+"`, expected a single ReactElement type."))}return null}return y(V)}function O(V){function G(ge,ve,he,J,Q){if(!(ge[ve]instanceof V)){var ce=V.name||f,ue=se(ge[ve]);return new p("Invalid "+J+" `"+Q+"` of type "+("`"+ue+"` supplied to `"+he+"`, expected ")+("instance of `"+ce+"`."))}return null}return y(G)}function N(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function G(ge,ve,he,J,Q){for(var ce=ge[ve],ue=0;ue<V.length;ue++)if(g(ce,V[ue]))return null;var F=JSON.stringify(V,function(de,P){var we=ee(P);return we==="symbol"?String(P):P});return new p("Invalid "+J+" `"+Q+"` of value `"+String(ce)+"` "+("supplied to `"+he+"`, expected one of "+F+"."))}return y(G)}function q(V){function G(ge,ve,he,J,Q){if(typeof V!="function")return new p("Property `"+Q+"` of component `"+he+"` has invalid PropType notation inside objectOf.");var ce=ge[ve],ue=H(ce);if(ue!=="object")return new p("Invalid "+J+" `"+Q+"` of type "+("`"+ue+"` supplied to `"+he+"`, expected an object."));for(var F in ce)if(n(ce,F)){var W=V(ce,F,he,J,Q+"."+F,t);if(W instanceof Error)return W}return null}return y(G)}function Z(V){if(!Array.isArray(V))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var G=0;G<V.length;G++){var ge=V[G];if(typeof ge!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(ge)+" at index "+G+"."),a}function ve(he,J,Q,ce,ue){for(var F=[],W=0;W<V.length;W++){var de=V[W],P=de(he,J,Q,ce,ue,t);if(P==null)return null;P.data&&n(P.data,"expectedType")&&F.push(P.data.expectedType)}var we=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new p("Invalid "+ce+" `"+ue+"` supplied to "+("`"+Q+"`"+we+"."))}return y(ve)}function L(){function V(G,ge,ve,he,J){return A(G[ge])?null:new p("Invalid "+he+" `"+J+"` supplied to "+("`"+ve+"`, expected a ReactNode."))}return y(V)}function K(V,G,ge,ve,he){return new p((V||"React class")+": "+G+" type `"+ge+"."+ve+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+he+"`.")}function v(V){function G(ge,ve,he,J,Q){var ce=ge[ve],ue=H(ce);if(ue!=="object")return new p("Invalid "+J+" `"+Q+"` of type `"+ue+"` "+("supplied to `"+he+"`, expected `object`."));for(var F in V){var W=V[F];if(typeof W!="function")return K(he,J,Q,F,ee(W));var de=W(ce,F,he,J,Q+"."+F,t);if(de)return de}return null}return y(G)}function I(V){function G(ge,ve,he,J,Q){var ce=ge[ve],ue=H(ce);if(ue!=="object")return new p("Invalid "+J+" `"+Q+"` of type `"+ue+"` "+("supplied to `"+he+"`, expected `object`."));var F=r({},ge[ve],V);for(var W in F){var de=V[W];if(n(V,W)&&typeof de!="function")return K(he,J,Q,W,ee(de));if(!de)return new p("Invalid "+J+" `"+Q+"` key `"+W+"` supplied to `"+he+"`.\nBad object: "+JSON.stringify(ge[ve],null," ")+`
49
- Valid keys: `+JSON.stringify(Object.keys(V),null," "));var P=de(ce,W,he,J,Q+"."+W,t);if(P)return P}return null}return y(G)}function A(V){switch(typeof V){case"number":case"string":case"undefined":return!0;case"boolean":return!V;case"object":if(Array.isArray(V))return V.every(A);if(V===null||s(V))return!0;var G=d(V);if(G){var ge=G.call(V),ve;if(G!==V.entries){for(;!(ve=ge.next()).done;)if(!A(ve.value))return!1}else for(;!(ve=ge.next()).done;){var he=ve.value;if(he&&!A(he[1]))return!1}}else return!1;return!0;default:return!1}}function U(V,G){return V==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function H(V){var G=typeof V;return Array.isArray(V)?"array":V instanceof RegExp?"object":U(G,V)?"symbol":G}function ee(V){if(typeof V>"u"||V===null)return""+V;var G=H(V);if(G==="object"){if(V instanceof Date)return"date";if(V instanceof RegExp)return"regexp"}return G}function re(V){var G=ee(V);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function se(V){return!V.constructor||!V.constructor.name?f:V.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},Ca}var Ea,Uc;function yh(){if(Uc)return Ea;Uc=1;var e=_a();function r(){}function t(){}return t.resetWarningCache=r,Ea=function(){function n(a,s,c,l,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:r};return i.PropTypes=i,i},Ea}var Hc;function bh(){if(Hc)return Ao.exports;if(Hc=1,process.env.NODE_ENV!=="production"){var e=jc(),r=!0;Ao.exports=vh()(e.isElement,r)}else Ao.exports=yh()();return Ao.exports}var wh=bh();const b=lh(wh);function Wc(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(t=Wc(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function _e(){for(var e,r,t=0,n="",o=arguments.length;t<o;t++)(e=arguments[t])&&(r=Wc(e))&&(n&&(n+=" "),n+=r);return n}function Lt(e,r,t=void 0){const n={};for(const o in e){const i=e[o];let a="",s=!0;for(let c=0;c<i.length;c+=1){const l=i[c];l&&(a+=(s===!0?"":" ")+r(l),s=!1,t&&t[l]&&(a+=" "+t[l]))}n[o]=a}return n}var Ro={exports:{}},ze={};/**
48
+ */var Za,Ks;function rp(){if(Ks)return Za;Ks=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(i).map(function(u){return i[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Za=o()?Object.assign:function(a,i){for(var s,c=r(a),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)n.call(s,d)&&(c[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)t.call(s,l[f])&&(c[l[f]]=s[l[f]])}}return c},Za}var qa,Gs;function Ka(){if(Gs)return qa;Gs=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qa=e,qa}var Ga,Qs;function Js(){return Qs||(Qs=1,Ga=Function.call.bind(Object.prototype.hasOwnProperty)),Ga}var Qa,Xs;function np(){if(Xs)return Qa;Xs=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=Ka(),t={},r=Js();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in a)if(r(a,u)){var d;try{if(typeof a[u]!="function"){var f=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=a[u](i,u,c,s,null,n)}catch(g){d=g}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in t)){t[d.message]=!0;var m=l?l():"";e("Failed "+s+" type: "+d.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},Qa=o,Qa}var Ja,ec;function op(){if(ec)return Ja;ec=1;var e=qs(),n=rp(),t=Ka(),r=Js(),o=np(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return Ja=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(z){var K=z&&(l&&z[l]||z[u]);if(typeof K=="function")return K}var f="<<anonymous>>",m={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:S(),arrayOf:T,element:D(),elementType:k(),instanceOf:O,node:$(),objectOf:W,oneOf:I,oneOfType:U,shape:v,exact:M};function g(z,K){return z===K?z!==0||1/z===1/K:z!==z&&K!==K}function p(z,K){this.message=z,this.data=K&&typeof K=="object"?K:{},this.stack=""}p.prototype=Error.prototype;function b(z){if(process.env.NODE_ENV!=="production")var K={},fe=0;function pe(G,se,de,me,ye,B,te){if(me=me||f,B=B||de,te!==t){if(c){var F=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ge=me+":"+de;!K[ge]&&fe<3&&(a("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+me+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),K[ge]=!0,fe++)}}return se[de]==null?G?se[de]===null?new p("The "+ye+" `"+B+"` is marked as required "+("in `"+me+"`, but its value is `null`.")):new p("The "+ye+" `"+B+"` is marked as required in "+("`"+me+"`, but its value is `undefined`.")):null:z(se,de,me,ye,B)}var he=pe.bind(null,!1);return he.isRequired=pe.bind(null,!0),he}function x(z){function K(fe,pe,he,G,se,de){var me=fe[pe],ye=Y(me);if(ye!==z){var B=ee(me);return new p("Invalid "+G+" `"+se+"` of type "+("`"+B+"` supplied to `"+he+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return b(K)}function S(){return b(i)}function T(z){function K(fe,pe,he,G,se){if(typeof z!="function")return new p("Property `"+se+"` of component `"+he+"` has invalid PropType notation inside arrayOf.");var de=fe[pe];if(!Array.isArray(de)){var me=Y(de);return new p("Invalid "+G+" `"+se+"` of type "+("`"+me+"` supplied to `"+he+"`, expected an array."))}for(var ye=0;ye<de.length;ye++){var B=z(de,ye,he,G,se+"["+ye+"]",t);if(B instanceof Error)return B}return null}return b(K)}function D(){function z(K,fe,pe,he,G){var se=K[fe];if(!s(se)){var de=Y(se);return new p("Invalid "+he+" `"+G+"` of type "+("`"+de+"` supplied to `"+pe+"`, expected a single ReactElement."))}return null}return b(z)}function k(){function z(K,fe,pe,he,G){var se=K[fe];if(!e.isValidElementType(se)){var de=Y(se);return new p("Invalid "+he+" `"+G+"` of type "+("`"+de+"` supplied to `"+pe+"`, expected a single ReactElement type."))}return null}return b(z)}function O(z){function K(fe,pe,he,G,se){if(!(fe[pe]instanceof z)){var de=z.name||f,me=be(fe[pe]);return new p("Invalid "+G+" `"+se+"` of type "+("`"+me+"` supplied to `"+he+"`, expected ")+("instance of `"+de+"`."))}return null}return b(K)}function I(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function K(fe,pe,he,G,se){for(var de=fe[pe],me=0;me<z.length;me++)if(g(de,z[me]))return null;var ye=JSON.stringify(z,function(te,F){var ge=ee(F);return ge==="symbol"?String(F):F});return new p("Invalid "+G+" `"+se+"` of value `"+String(de)+"` "+("supplied to `"+he+"`, expected one of "+ye+"."))}return b(K)}function W(z){function K(fe,pe,he,G,se){if(typeof z!="function")return new p("Property `"+se+"` of component `"+he+"` has invalid PropType notation inside objectOf.");var de=fe[pe],me=Y(de);if(me!=="object")return new p("Invalid "+G+" `"+se+"` of type "+("`"+me+"` supplied to `"+he+"`, expected an object."));for(var ye in de)if(r(de,ye)){var B=z(de,ye,he,G,se+"."+ye,t);if(B instanceof Error)return B}return null}return b(K)}function U(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var K=0;K<z.length;K++){var fe=z[K];if(typeof fe!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ae(fe)+" at index "+K+"."),i}function pe(he,G,se,de,me){for(var ye=[],B=0;B<z.length;B++){var te=z[B],F=te(he,G,se,de,me,t);if(F==null)return null;F.data&&r(F.data,"expectedType")&&ye.push(F.data.expectedType)}var ge=ye.length>0?", expected one of type ["+ye.join(", ")+"]":"";return new p("Invalid "+de+" `"+me+"` supplied to "+("`"+se+"`"+ge+"."))}return b(pe)}function $(){function z(K,fe,pe,he,G){return P(K[fe])?null:new p("Invalid "+he+" `"+G+"` supplied to "+("`"+pe+"`, expected a ReactNode."))}return b(z)}function Q(z,K,fe,pe,he){return new p((z||"React class")+": "+K+" type `"+fe+"."+pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+he+"`.")}function v(z){function K(fe,pe,he,G,se){var de=fe[pe],me=Y(de);if(me!=="object")return new p("Invalid "+G+" `"+se+"` of type `"+me+"` "+("supplied to `"+he+"`, expected `object`."));for(var ye in z){var B=z[ye];if(typeof B!="function")return Q(he,G,se,ye,ee(B));var te=B(de,ye,he,G,se+"."+ye,t);if(te)return te}return null}return b(K)}function M(z){function K(fe,pe,he,G,se){var de=fe[pe],me=Y(de);if(me!=="object")return new p("Invalid "+G+" `"+se+"` of type `"+me+"` "+("supplied to `"+he+"`, expected `object`."));var ye=n({},fe[pe],z);for(var B in ye){var te=z[B];if(r(z,B)&&typeof te!="function")return Q(he,G,se,B,ee(te));if(!te)return new p("Invalid "+G+" `"+se+"` key `"+B+"` supplied to `"+he+"`.\nBad object: "+JSON.stringify(fe[pe],null," ")+`
49
+ Valid keys: `+JSON.stringify(Object.keys(z),null," "));var F=te(de,B,he,G,se+"."+B,t);if(F)return F}return null}return b(K)}function P(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(P);if(z===null||s(z))return!0;var K=d(z);if(K){var fe=K.call(z),pe;if(K!==z.entries){for(;!(pe=fe.next()).done;)if(!P(pe.value))return!1}else for(;!(pe=fe.next()).done;){var he=pe.value;if(he&&!P(he[1]))return!1}}else return!1;return!0;default:return!1}}function H(z,K){return z==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function Y(z){var K=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":H(K,z)?"symbol":K}function ee(z){if(typeof z>"u"||z===null)return""+z;var K=Y(z);if(K==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return K}function ae(z){var K=ee(z);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function be(z){return!z.constructor||!z.constructor.name?f:z.constructor.name}return m.checkPropTypes=o,m.resetWarningCache=o.resetWarningCache,m.PropTypes=m,m},Ja}var Xa,tc;function ap(){if(tc)return Xa;tc=1;var e=Ka();function n(){}function t(){}return t.resetWarningCache=n,Xa=function(){function r(i,s,c,l,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:n};return a.PropTypes=a,a},Xa}var rc;function ip(){if(rc)return po.exports;if(rc=1,process.env.NODE_ENV!=="production"){var e=qs(),n=!0;po.exports=op()(e.isElement,n)}else po.exports=ap()();return po.exports}var sp=ip();const N=Kf(sp);function nc(e){var n,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(t=nc(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Be(){for(var e,n,t=0,r="",o=arguments.length;t<o;t++)(e=arguments[t])&&(n=nc(e))&&(r&&(r+=" "),r+=n);return r}function gr(e,n,t=void 0){const r={};for(const o in e){const a=e[o];let i="",s=!0;for(let c=0;c<a.length;c+=1){const l=a[c];l&&(i+=(s===!0?"":" ")+n(l),s=!1,t&&t[l]&&(i+=" "+t[l]))}r[o]=i}return r}var mo={exports:{}},$e={};/**
50
50
  * @license React
51
51
  * react-is.production.js
52
52
  *
@@ -54,7 +54,7 @@ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var P=de(ce,W,he,J,Q+"."
54
54
  *
55
55
  * This source code is licensed under the MIT license found in the
56
56
  * LICENSE file in the root directory of this source tree.
57
- */var Zc;function _h(){if(Zc)return ze;Zc=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case t:case o:case n:case c:case l:case f:return p;default:switch(p=p&&p.$$typeof,p){case a:case s:case d:case u:return p;case i:return p;default:return y}}case r:return y}}}return ze.ContextConsumer=i,ze.ContextProvider=a,ze.Element=e,ze.ForwardRef=s,ze.Fragment=t,ze.Lazy=d,ze.Memo=u,ze.Portal=r,ze.Profiler=o,ze.StrictMode=n,ze.Suspense=c,ze.SuspenseList=l,ze.isContextConsumer=function(p){return g(p)===i},ze.isContextProvider=function(p){return g(p)===a},ze.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ze.isForwardRef=function(p){return g(p)===s},ze.isFragment=function(p){return g(p)===t},ze.isLazy=function(p){return g(p)===d},ze.isMemo=function(p){return g(p)===u},ze.isPortal=function(p){return g(p)===r},ze.isProfiler=function(p){return g(p)===o},ze.isStrictMode=function(p){return g(p)===n},ze.isSuspense=function(p){return g(p)===c},ze.isSuspenseList=function(p){return g(p)===l},ze.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===t||p===o||p===n||p===c||p===l||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===u||p.$$typeof===a||p.$$typeof===i||p.$$typeof===s||p.$$typeof===m||p.getModuleId!==void 0)},ze.typeOf=g,ze}var Be={};/**
57
+ */var oc;function cp(){if(oc)return $e;oc=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case t:case o:case r:case c:case l:case f:return p;default:switch(p=p&&p.$$typeof,p){case i:case s:case d:case u:return p;case a:return p;default:return b}}case n:return b}}}return $e.ContextConsumer=a,$e.ContextProvider=i,$e.Element=e,$e.ForwardRef=s,$e.Fragment=t,$e.Lazy=d,$e.Memo=u,$e.Portal=n,$e.Profiler=o,$e.StrictMode=r,$e.Suspense=c,$e.SuspenseList=l,$e.isContextConsumer=function(p){return g(p)===a},$e.isContextProvider=function(p){return g(p)===i},$e.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},$e.isForwardRef=function(p){return g(p)===s},$e.isFragment=function(p){return g(p)===t},$e.isLazy=function(p){return g(p)===d},$e.isMemo=function(p){return g(p)===u},$e.isPortal=function(p){return g(p)===n},$e.isProfiler=function(p){return g(p)===o},$e.isStrictMode=function(p){return g(p)===r},$e.isSuspense=function(p){return g(p)===c},$e.isSuspenseList=function(p){return g(p)===l},$e.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===t||p===o||p===r||p===c||p===l||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===u||p.$$typeof===i||p.$$typeof===a||p.$$typeof===s||p.$$typeof===m||p.getModuleId!==void 0)},$e.typeOf=g,$e}var je={};/**
58
58
  * @license React
59
59
  * react-is.development.js
60
60
  *
@@ -62,37 +62,23 @@ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var P=de(ce,W,he,J,Q+"."
62
62
  *
63
63
  * This source code is licensed under the MIT license found in the
64
64
  * LICENSE file in the root directory of this source tree.
65
- */var qc;function xh(){return qc||(qc=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case r:switch(p=p.type,p){case n:case i:case o:case l:case u:case m:return p;default:switch(p=p&&p.$$typeof,p){case s:case c:case f:case d:return p;case a:return p;default:return y}}case t:return y}}}var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Be.ContextConsumer=a,Be.ContextProvider=s,Be.Element=r,Be.ForwardRef=c,Be.Fragment=n,Be.Lazy=f,Be.Memo=d,Be.Portal=t,Be.Profiler=i,Be.StrictMode=o,Be.Suspense=l,Be.SuspenseList=u,Be.isContextConsumer=function(p){return e(p)===a},Be.isContextProvider=function(p){return e(p)===s},Be.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===r},Be.isForwardRef=function(p){return e(p)===c},Be.isFragment=function(p){return e(p)===n},Be.isLazy=function(p){return e(p)===f},Be.isMemo=function(p){return e(p)===d},Be.isPortal=function(p){return e(p)===t},Be.isProfiler=function(p){return e(p)===i},Be.isStrictMode=function(p){return e(p)===o},Be.isSuspense=function(p){return e(p)===l},Be.isSuspenseList=function(p){return e(p)===u},Be.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===i||p===o||p===l||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===s||p.$$typeof===a||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},Be.typeOf=e})()),Be}var Kc;function Sh(){return Kc||(Kc=1,process.env.NODE_ENV==="production"?Ro.exports=_h():Ro.exports=xh()),Ro.exports}var No=Sh();function nr(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Gc(e){if(j.isValidElement(e)||No.isValidElementType(e)||!nr(e))return e;const r={};return Object.keys(e).forEach(t=>{r[t]=Gc(e[t])}),r}function Pt(e,r,t={clone:!0}){const n=t.clone?{...e}:e;return nr(e)&&nr(r)&&Object.keys(r).forEach(o=>{j.isValidElement(r[o])||No.isValidElementType(r[o])?n[o]=r[o]:nr(r[o])&&Object.prototype.hasOwnProperty.call(e,o)&&nr(e[o])?n[o]=Pt(e[o],r[o],t):t.clone?n[o]=nr(r[o])?Gc(r[o]):r[o]:n[o]=r[o]}),n}function Vn(e,r){return r?Pt(e,r,{clone:!1}):e}const Pr=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.string,b.object,b.array]):{};function Qc(e,r){if(!e.containerQueries)return r;const t=Object.keys(r).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return t.length?t.reduce((n,o)=>{const i=r[o];return delete n[o],n[o]=i,n},{...r}):r}function Ch(e,r){return r==="@"||r.startsWith("@")&&(e.some(t=>r.startsWith(`@${t}`))||!!r.match(/^@\d/))}function Eh(e,r){const t=r.match(/^@([^/]+)?\/?(.+)?$/);if(!t){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${r})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
66
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Mr(18,`(${r})`));return null}const[,n,o]=t,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function kh(e){const r=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function t(i,a){i.up=(...s)=>r(e.breakpoints.up(...s),a),i.down=(...s)=>r(e.breakpoints.down(...s),a),i.between=(...s)=>r(e.breakpoints.between(...s),a),i.only=(...s)=>r(e.breakpoints.only(...s),a),i.not=(...s)=>{const c=r(e.breakpoints.not(...s),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const n={},o=i=>(t(n,i),n);return t(o),{...e,containerQueries:o}}const $o={xs:0,sm:600,md:900,lg:1200,xl:1536},Xc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${$o[e]}px)`},Dh={containerQueries:e=>({up:r=>{let t=typeof r=="number"?r:$o[r]||r;return typeof t=="number"&&(t=`${t}px`),e?`@container ${e} (min-width:${t})`:`@container (min-width:${t})`}})};function vr(e,r,t){const n=e.theme||{};if(Array.isArray(r)){const i=n.breakpoints||Xc;return r.reduce((a,s,c)=>(a[i.up(i.keys[c])]=t(r[c]),a),{})}if(typeof r=="object"){const i=n.breakpoints||Xc;return Object.keys(r).reduce((a,s)=>{if(Ch(i.keys,s)){const c=Eh(n.containerQueries?n:Dh,s);c&&(a[c]=t(r[s],s))}else if(Object.keys(i.values||$o).includes(s)){const c=i.up(s);a[c]=t(r[s],s)}else{const c=s;a[c]=r[c]}return a},{})}return t(r)}function Th(e={}){return e.keys?.reduce((t,n)=>{const o=e.up(n);return t[o]={},t},{})||{}}function Jc(e,r){return e.reduce((t,n)=>{const o=t[n];return(!o||Object.keys(o).length===0)&&delete t[n],t},r)}function jo(e,r,t=!0){if(!r||typeof r!="string")return null;if(e&&e.vars&&t){const n=`vars.${r}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return r.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Lo(e,r,t,n=t){let o;return typeof e=="function"?o=e(t):Array.isArray(e)?o=e[t]||n:o=jo(e,t)||n,r&&(o=r(o,n,e)),o}function tt(e){const{prop:r,cssProperty:t=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[r]==null)return null;const s=a[r],c=a.theme,l=jo(c,n)||{};return vr(a,s,d=>{let f=Lo(l,o,d);return d===f&&typeof d=="string"&&(f=Lo(l,o,`${r}${d==="default"?"":Ke(d)}`,d)),t===!1?f:{[t]:f}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[r]:Pr}:{},i.filterProps=[r],i}function Oh(e){const r={};return t=>(r[t]===void 0&&(r[t]=e(t)),r[t])}const Mh={m:"margin",p:"padding"},Ph={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},el={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ah=Oh(e=>{if(e.length>2)if(el[e])e=el[e];else return[e];const[r,t]=e.split(""),n=Mh[r],o=Ph[t]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),zo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Bo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ih=[...zo,...Bo];function Fn(e,r,t,n){const o=jo(e,r,!0)??t;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
67
- `)):console.error([`MUI: The \`theme.${r}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${r}\` as a number.`].join(`
68
- `)));const s=o[a];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${r}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
69
- `)),()=>{})}function ka(e){return Fn(e,"spacing",8,"spacing")}function Yn(e,r){return typeof r=="string"||r==null?r:e(r)}function Rh(e,r){return t=>e.reduce((n,o)=>(n[o]=Yn(r,t),n),{})}function Nh(e,r,t,n){if(!r.includes(t))return null;const o=Ah(t),i=Rh(o,n),a=e[t];return vr(e,a,i)}function tl(e,r){const t=ka(e.theme);return Object.keys(e).map(n=>Nh(e,r,n,t)).reduce(Vn,{})}function Xe(e){return tl(e,zo)}Xe.propTypes=process.env.NODE_ENV!=="production"?zo.reduce((e,r)=>(e[r]=Pr,e),{}):{},Xe.filterProps=zo;function Je(e){return tl(e,Bo)}Je.propTypes=process.env.NODE_ENV!=="production"?Bo.reduce((e,r)=>(e[r]=Pr,e),{}):{},Je.filterProps=Bo,process.env.NODE_ENV!=="production"&&Ih.reduce((e,r)=>(e[r]=Pr,e),{});function Vo(...e){const r=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),t=n=>Object.keys(n).reduce((o,i)=>r[i]?Vn(o,r[i](n)):o,{});return t.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},t.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),t}function zt(e){return typeof e!="number"?e:`${e}px solid`}function Bt(e,r){return tt({prop:e,themeKey:"borders",transform:r})}const $h=Bt("border",zt),jh=Bt("borderTop",zt),Lh=Bt("borderRight",zt),zh=Bt("borderBottom",zt),Bh=Bt("borderLeft",zt),Vh=Bt("borderColor"),Fh=Bt("borderTopColor"),Yh=Bt("borderRightColor"),Uh=Bt("borderBottomColor"),Hh=Bt("borderLeftColor"),Wh=Bt("outline",zt),Zh=Bt("outlineColor"),Fo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const r=Fn(e.theme,"shape.borderRadius",4,"borderRadius"),t=n=>({borderRadius:Yn(r,n)});return vr(e,e.borderRadius,t)}return null};Fo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Pr}:{},Fo.filterProps=["borderRadius"],Vo($h,jh,Lh,zh,Bh,Vh,Fh,Yh,Uh,Hh,Fo,Wh,Zh);const Yo=e=>{if(e.gap!==void 0&&e.gap!==null){const r=Fn(e.theme,"spacing",8,"gap"),t=n=>({gap:Yn(r,n)});return vr(e,e.gap,t)}return null};Yo.propTypes=process.env.NODE_ENV!=="production"?{gap:Pr}:{},Yo.filterProps=["gap"];const Uo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const r=Fn(e.theme,"spacing",8,"columnGap"),t=n=>({columnGap:Yn(r,n)});return vr(e,e.columnGap,t)}return null};Uo.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Pr}:{},Uo.filterProps=["columnGap"];const Ho=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const r=Fn(e.theme,"spacing",8,"rowGap"),t=n=>({rowGap:Yn(r,n)});return vr(e,e.rowGap,t)}return null};Ho.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Pr}:{},Ho.filterProps=["rowGap"];const qh=tt({prop:"gridColumn"}),Kh=tt({prop:"gridRow"}),Gh=tt({prop:"gridAutoFlow"}),Qh=tt({prop:"gridAutoColumns"}),Xh=tt({prop:"gridAutoRows"}),Jh=tt({prop:"gridTemplateColumns"}),em=tt({prop:"gridTemplateRows"}),tm=tt({prop:"gridTemplateAreas"}),rm=tt({prop:"gridArea"});Vo(Yo,Uo,Ho,qh,Kh,Gh,Qh,Xh,Jh,em,tm,rm);function un(e,r){return r==="grey"?r:e}const nm=tt({prop:"color",themeKey:"palette",transform:un}),om=tt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:un}),im=tt({prop:"backgroundColor",themeKey:"palette",transform:un});Vo(nm,om,im);function At(e){return e<=1&&e!==0?`${e*100}%`:e}const am=tt({prop:"width",transform:At}),Da=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const r=t=>{const n=e.theme?.breakpoints?.values?.[t]||$o[t];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:At(t)}};return vr(e,e.maxWidth,r)}return null};Da.filterProps=["maxWidth"];const sm=tt({prop:"minWidth",transform:At}),cm=tt({prop:"height",transform:At}),lm=tt({prop:"maxHeight",transform:At}),um=tt({prop:"minHeight",transform:At});tt({prop:"size",cssProperty:"width",transform:At}),tt({prop:"size",cssProperty:"height",transform:At});const dm=tt({prop:"boxSizing"});Vo(am,Da,sm,cm,lm,um,dm);const Un={border:{themeKey:"borders",transform:zt},borderTop:{themeKey:"borders",transform:zt},borderRight:{themeKey:"borders",transform:zt},borderBottom:{themeKey:"borders",transform:zt},borderLeft:{themeKey:"borders",transform:zt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fo},color:{themeKey:"palette",transform:un},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:un},backgroundColor:{themeKey:"palette",transform:un},p:{style:Je},pt:{style:Je},pr:{style:Je},pb:{style:Je},pl:{style:Je},px:{style:Je},py:{style:Je},padding:{style:Je},paddingTop:{style:Je},paddingRight:{style:Je},paddingBottom:{style:Je},paddingLeft:{style:Je},paddingX:{style:Je},paddingY:{style:Je},paddingInline:{style:Je},paddingInlineStart:{style:Je},paddingInlineEnd:{style:Je},paddingBlock:{style:Je},paddingBlockStart:{style:Je},paddingBlockEnd:{style:Je},m:{style:Xe},mt:{style:Xe},mr:{style:Xe},mb:{style:Xe},ml:{style:Xe},mx:{style:Xe},my:{style:Xe},margin:{style:Xe},marginTop:{style:Xe},marginRight:{style:Xe},marginBottom:{style:Xe},marginLeft:{style:Xe},marginX:{style:Xe},marginY:{style:Xe},marginInline:{style:Xe},marginInlineStart:{style:Xe},marginInlineEnd:{style:Xe},marginBlock:{style:Xe},marginBlockStart:{style:Xe},marginBlockEnd:{style:Xe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Yo},rowGap:{style:Ho},columnGap:{style:Uo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:At},maxWidth:{style:Da},minWidth:{transform:At},height:{transform:At},maxHeight:{transform:At},minHeight:{transform:At},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fm(...e){const r=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),t=new Set(r);return e.every(n=>t.size===Object.keys(n).length)}function pm(e,r){return typeof e=="function"?e(r):e}function hm(){function e(t,n,o,i){const a={[t]:n,theme:o},s=i[t];if(!s)return{[t]:n};const{cssProperty:c=t,themeKey:l,transform:u,style:d}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[t]:n};const f=jo(o,l)||{};return d?d(a):vr(a,n,g=>{let p=Lo(f,u,g);return g===p&&typeof g=="string"&&(p=Lo(f,u,`${t}${g==="default"?"":Ke(g)}`,g)),c===!1?p:{[c]:p}})}function r(t){const{sx:n,theme:o={},nested:i}=t||{};if(!n)return null;const a=o.unstable_sxConfig??Un;function s(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const u=Th(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(l).forEach(m=>{const g=pm(l[m],o);if(g!=null)if(typeof g=="object")if(a[m])f=Vn(f,e(m,g,o,a));else{const p=vr({theme:o},g,y=>({[m]:y}));fm(p,g)?f[m]=r({sx:g,theme:o,nested:!0}):f=Vn(f,p)}else f=Vn(f,e(m,g,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Qc(o,Jc(d,f))}:Qc(o,Jc(d,f))}return Array.isArray(n)?n.map(s):s(n)}return r}const zr=hm();zr.filterProps=["sx"];const mm=e=>{const r={systemProps:{},otherProps:{}},t=e?.theme?.unstable_sxConfig??Un;return Object.keys(e).forEach(n=>{t[n]?r.systemProps[n]=e[n]:r.otherProps[n]=e[n]}),r};function gm(e){const{sx:r,...t}=e,{systemProps:n,otherProps:o}=mm(t);let i;return Array.isArray(r)?i=[n,...r]:typeof r=="function"?i=(...a)=>{const s=r(...a);return nr(s)?{...n,...s}:n}:i={...n,...r},{...o,sx:i}}function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Wo.apply(null,arguments)}function vm(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function ym(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var bm=(function(){function e(t){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ym(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=vm(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),ht="-ms-",Zo="-moz-",Te="-webkit-",rl="comm",Ta="rule",Oa="decl",wm="@import",nl="@keyframes",_m="@layer",xm=Math.abs,qo=String.fromCharCode,Sm=Object.assign;function Cm(e,r){return ft(e,0)^45?(((r<<2^ft(e,0))<<2^ft(e,1))<<2^ft(e,2))<<2^ft(e,3):0}function ol(e){return e.trim()}function Em(e,r){return(e=r.exec(e))?e[0]:e}function Oe(e,r,t){return e.replace(r,t)}function Ma(e,r){return e.indexOf(r)}function ft(e,r){return e.charCodeAt(r)|0}function Hn(e,r,t){return e.slice(r,t)}function or(e){return e.length}function Pa(e){return e.length}function Ko(e,r){return r.push(e),e}function km(e,r){return e.map(r).join("")}var Go=1,dn=1,il=0,St=0,st=0,fn="";function Qo(e,r,t,n,o,i,a){return{value:e,root:r,parent:t,type:n,props:o,children:i,line:Go,column:dn,length:a,return:""}}function Wn(e,r){return Sm(Qo("",null,null,"",null,null,0),e,{length:-e.length},r)}function Dm(){return st}function Tm(){return st=St>0?ft(fn,--St):0,dn--,st===10&&(dn=1,Go--),st}function It(){return st=St<il?ft(fn,St++):0,dn++,st===10&&(dn=1,Go++),st}function ir(){return ft(fn,St)}function Xo(){return St}function Zn(e,r){return Hn(fn,e,r)}function qn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function al(e){return Go=dn=1,il=or(fn=e),St=0,[]}function sl(e){return fn="",e}function Jo(e){return ol(Zn(St-1,Aa(e===91?e+2:e===40?e+1:e)))}function Om(e){for(;(st=ir())&&st<33;)It();return qn(e)>2||qn(st)>3?"":" "}function Mm(e,r){for(;--r&&It()&&!(st<48||st>102||st>57&&st<65||st>70&&st<97););return Zn(e,Xo()+(r<6&&ir()==32&&It()==32))}function Aa(e){for(;It();)switch(st){case e:return St;case 34:case 39:e!==34&&e!==39&&Aa(st);break;case 40:e===41&&Aa(e);break;case 92:It();break}return St}function Pm(e,r){for(;It()&&e+st!==57;)if(e+st===84&&ir()===47)break;return"/*"+Zn(r,St-1)+"*"+qo(e===47?e:It())}function Am(e){for(;!qn(ir());)It();return Zn(e,St)}function Im(e){return sl(ei("",null,null,null,[""],e=al(e),0,[0],e))}function ei(e,r,t,n,o,i,a,s,c){for(var l=0,u=0,d=a,f=0,m=0,g=0,p=1,y=1,S=1,C=0,k="",E=o,_=i,O=n,N=k;y;)switch(g=C,C=It()){case 40:if(g!=108&&ft(N,d-1)==58){Ma(N+=Oe(Jo(C),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:N+=Jo(C);break;case 9:case 10:case 13:case 32:N+=Om(g);break;case 92:N+=Mm(Xo()-1,7);continue;case 47:switch(ir()){case 42:case 47:Ko(Rm(Pm(It(),Xo()),r,t),c);break;default:N+="/"}break;case 123*p:s[l++]=or(N)*S;case 125*p:case 59:case 0:switch(C){case 0:case 125:y=0;case 59+u:S==-1&&(N=Oe(N,/\f/g,"")),m>0&&or(N)-d&&Ko(m>32?ll(N+";",n,t,d-1):ll(Oe(N," ","")+";",n,t,d-2),c);break;case 59:N+=";";default:if(Ko(O=cl(N,r,t,l,u,o,s,k,E=[],_=[],d),i),C===123)if(u===0)ei(N,r,O,O,E,i,d,s,_);else switch(f===99&&ft(N,3)===110?100:f){case 100:case 108:case 109:case 115:ei(e,O,O,n&&Ko(cl(e,O,O,0,0,o,s,k,o,E=[],d),_),o,_,d,s,n?E:_);break;default:ei(N,O,O,O,[""],_,0,s,_)}}l=u=m=0,p=S=1,k=N="",d=a;break;case 58:d=1+or(N),m=g;default:if(p<1){if(C==123)--p;else if(C==125&&p++==0&&Tm()==125)continue}switch(N+=qo(C),C*p){case 38:S=u>0?1:(N+="\f",-1);break;case 44:s[l++]=(or(N)-1)*S,S=1;break;case 64:ir()===45&&(N+=Jo(It())),f=ir(),u=d=or(k=N+=Am(Xo())),C++;break;case 45:g===45&&or(N)==2&&(p=0)}}return i}function cl(e,r,t,n,o,i,a,s,c,l,u){for(var d=o-1,f=o===0?i:[""],m=Pa(f),g=0,p=0,y=0;g<n;++g)for(var S=0,C=Hn(e,d+1,d=xm(p=a[g])),k=e;S<m;++S)(k=ol(p>0?f[S]+" "+C:Oe(C,/&\f/g,f[S])))&&(c[y++]=k);return Qo(e,r,t,o===0?Ta:s,c,l,u)}function Rm(e,r,t){return Qo(e,r,t,rl,qo(Dm()),Hn(e,2,-2),0)}function ll(e,r,t,n){return Qo(e,r,t,Oa,Hn(e,0,n),Hn(e,n+1,-1),n)}function pn(e,r){for(var t="",n=Pa(e),o=0;o<n;o++)t+=r(e[o],o,e,r)||"";return t}function Nm(e,r,t,n){switch(e.type){case _m:if(e.children.length)break;case wm:case Oa:return e.return=e.return||e.value;case rl:return"";case nl:return e.return=e.value+"{"+pn(e.children,n)+"}";case Ta:e.value=e.props.join(",")}return or(t=pn(e.children,n))?e.return=e.value+"{"+t+"}":""}function $m(e){var r=Pa(e);return function(t,n,o,i){for(var a="",s=0;s<r;s++)a+=e[s](t,n,o,i)||"";return a}}function jm(e){return function(r){r.root||(r=r.return)&&e(r)}}function ul(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var Lm=function(r,t,n){for(var o=0,i=0;o=i,i=ir(),o===38&&i===12&&(t[n]=1),!qn(i);)It();return Zn(r,St)},zm=function(r,t){var n=-1,o=44;do switch(qn(o)){case 0:o===38&&ir()===12&&(t[n]=1),r[n]+=Lm(St-1,t,n);break;case 2:r[n]+=Jo(o);break;case 4:if(o===44){r[++n]=ir()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=qo(o)}while(o=It());return r},Bm=function(r,t){return sl(zm(al(r),t))},dl=new WeakMap,Vm=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,o=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!dl.get(n))&&!o){dl.set(r,!0);for(var i=[],a=Bm(t,i),s=n.props,c=0,l=0;c<a.length;c++)for(var u=0;u<s.length;u++,l++)r.props[l]=i[c]?a[c].replace(/&\f/g,s[u]):s[u]+" "+a[c]}}},Fm=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function fl(e,r){switch(Cm(e,r)){case 5103:return Te+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Te+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Te+e+Zo+e+ht+e+e;case 6828:case 4268:return Te+e+ht+e+e;case 6165:return Te+e+ht+"flex-"+e+e;case 5187:return Te+e+Oe(e,/(\w+).+(:[^]+)/,Te+"box-$1$2"+ht+"flex-$1$2")+e;case 5443:return Te+e+ht+"flex-item-"+Oe(e,/flex-|-self/,"")+e;case 4675:return Te+e+ht+"flex-line-pack"+Oe(e,/align-content|flex-|-self/,"")+e;case 5548:return Te+e+ht+Oe(e,"shrink","negative")+e;case 5292:return Te+e+ht+Oe(e,"basis","preferred-size")+e;case 6060:return Te+"box-"+Oe(e,"-grow","")+Te+e+ht+Oe(e,"grow","positive")+e;case 4554:return Te+Oe(e,/([^-])(transform)/g,"$1"+Te+"$2")+e;case 6187:return Oe(Oe(Oe(e,/(zoom-|grab)/,Te+"$1"),/(image-set)/,Te+"$1"),e,"")+e;case 5495:case 3959:return Oe(e,/(image-set\([^]*)/,Te+"$1$`$1");case 4968:return Oe(Oe(e,/(.+:)(flex-)?(.*)/,Te+"box-pack:$3"+ht+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Te+e+e;case 4095:case 3583:case 4068:case 2532:return Oe(e,/(.+)-inline(.+)/,Te+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(or(e)-1-r>6)switch(ft(e,r+1)){case 109:if(ft(e,r+4)!==45)break;case 102:return Oe(e,/(.+:)(.+)-([^]+)/,"$1"+Te+"$2-$3$1"+Zo+(ft(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Ma(e,"stretch")?fl(Oe(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(ft(e,r+1)!==115)break;case 6444:switch(ft(e,or(e)-3-(~Ma(e,"!important")&&10))){case 107:return Oe(e,":",":"+Te)+e;case 101:return Oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Te+(ft(e,14)===45?"inline-":"")+"box$3$1"+Te+"$2$3$1"+ht+"$2box$3")+e}break;case 5936:switch(ft(e,r+11)){case 114:return Te+e+ht+Oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Te+e+ht+Oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Te+e+ht+Oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Te+e+ht+e+e}return e}var Ym=function(r,t,n,o){if(r.length>-1&&!r.return)switch(r.type){case Oa:r.return=fl(r.value,r.length);break;case nl:return pn([Wn(r,{value:Oe(r.value,"@","@"+Te)})],o);case Ta:if(r.length)return km(r.props,function(i){switch(Em(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pn([Wn(r,{props:[Oe(i,/:(read-\w+)/,":"+Zo+"$1")]})],o);case"::placeholder":return pn([Wn(r,{props:[Oe(i,/:(plac\w+)/,":"+Te+"input-$1")]}),Wn(r,{props:[Oe(i,/:(plac\w+)/,":"+Zo+"$1")]}),Wn(r,{props:[Oe(i,/:(plac\w+)/,ht+"input-$1")]})],o)}return""})}},Um=[Ym],Hm=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=r.stylisPlugins||Um,i={},a,s=[];a=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),S=1;S<y.length;S++)i[y[S]]=!0;s.push(p)});var c,l=[Vm,Fm];{var u,d=[Nm,jm(function(p){u.insert(p)})],f=$m(l.concat(o,d)),m=function(y){return pn(Im(y),f)};c=function(y,S,C,k){u=C,m(y?y+"{"+S.styles+"}":S.styles),k&&(g.inserted[S.name]=!0)}}var g={key:t,sheet:new bm({key:t,container:a,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:c};return g.sheet.hydrate(s),g},ti={exports:{}},Ae={};/** @license React v16.13.1
70
- * react-is.production.min.js
71
- *
72
- * Copyright (c) Facebook, Inc. and its affiliates.
73
- *
74
- * This source code is licensed under the MIT license found in the
75
- * LICENSE file in the root directory of this source tree.
76
- */var pl;function Wm(){if(pl)return Ae;pl=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function k(_){if(typeof _=="object"&&_!==null){var O=_.$$typeof;switch(O){case r:switch(_=_.type,_){case c:case l:case n:case i:case o:case d:return _;default:switch(_=_&&_.$$typeof,_){case s:case u:case g:case m:case a:return _;default:return O}}case t:return O}}}function E(_){return k(_)===l}return Ae.AsyncMode=c,Ae.ConcurrentMode=l,Ae.ContextConsumer=s,Ae.ContextProvider=a,Ae.Element=r,Ae.ForwardRef=u,Ae.Fragment=n,Ae.Lazy=g,Ae.Memo=m,Ae.Portal=t,Ae.Profiler=i,Ae.StrictMode=o,Ae.Suspense=d,Ae.isAsyncMode=function(_){return E(_)||k(_)===c},Ae.isConcurrentMode=E,Ae.isContextConsumer=function(_){return k(_)===s},Ae.isContextProvider=function(_){return k(_)===a},Ae.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===r},Ae.isForwardRef=function(_){return k(_)===u},Ae.isFragment=function(_){return k(_)===n},Ae.isLazy=function(_){return k(_)===g},Ae.isMemo=function(_){return k(_)===m},Ae.isPortal=function(_){return k(_)===t},Ae.isProfiler=function(_){return k(_)===i},Ae.isStrictMode=function(_){return k(_)===o},Ae.isSuspense=function(_){return k(_)===d},Ae.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===l||_===i||_===o||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===m||_.$$typeof===a||_.$$typeof===s||_.$$typeof===u||_.$$typeof===y||_.$$typeof===S||_.$$typeof===C||_.$$typeof===p)},Ae.typeOf=k,Ae}var Ie={};/** @license React v16.13.1
77
- * react-is.development.js
78
- *
79
- * Copyright (c) Facebook, Inc. and its affiliates.
80
- *
81
- * This source code is licensed under the MIT license found in the
82
- * LICENSE file in the root directory of this source tree.
83
- */var hl;function Zm(){return hl||(hl=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function k(P){return typeof P=="string"||typeof P=="function"||P===n||P===l||P===i||P===o||P===d||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===g||P.$$typeof===m||P.$$typeof===a||P.$$typeof===s||P.$$typeof===u||P.$$typeof===y||P.$$typeof===S||P.$$typeof===C||P.$$typeof===p)}function E(P){if(typeof P=="object"&&P!==null){var we=P.$$typeof;switch(we){case r:var Qe=P.type;switch(Qe){case c:case l:case n:case i:case o:case d:return Qe;default:var wt=Qe&&Qe.$$typeof;switch(wt){case s:case u:case g:case m:case a:return wt;default:return we}}case t:return we}}}var _=c,O=l,N=s,q=a,Z=r,L=u,K=n,v=g,I=m,A=t,U=i,H=o,ee=d,re=!1;function se(P){return re||(re=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(P)||E(P)===c}function V(P){return E(P)===l}function G(P){return E(P)===s}function ge(P){return E(P)===a}function ve(P){return typeof P=="object"&&P!==null&&P.$$typeof===r}function he(P){return E(P)===u}function J(P){return E(P)===n}function Q(P){return E(P)===g}function ce(P){return E(P)===m}function ue(P){return E(P)===t}function F(P){return E(P)===i}function W(P){return E(P)===o}function de(P){return E(P)===d}Ie.AsyncMode=_,Ie.ConcurrentMode=O,Ie.ContextConsumer=N,Ie.ContextProvider=q,Ie.Element=Z,Ie.ForwardRef=L,Ie.Fragment=K,Ie.Lazy=v,Ie.Memo=I,Ie.Portal=A,Ie.Profiler=U,Ie.StrictMode=H,Ie.Suspense=ee,Ie.isAsyncMode=se,Ie.isConcurrentMode=V,Ie.isContextConsumer=G,Ie.isContextProvider=ge,Ie.isElement=ve,Ie.isForwardRef=he,Ie.isFragment=J,Ie.isLazy=Q,Ie.isMemo=ce,Ie.isPortal=ue,Ie.isProfiler=F,Ie.isStrictMode=W,Ie.isSuspense=de,Ie.isValidElementType=k,Ie.typeOf=E})()),Ie}var ml;function qm(){return ml||(ml=1,process.env.NODE_ENV==="production"?ti.exports=Wm():ti.exports=Zm()),ti.exports}var Ia,gl;function Km(){if(gl)return Ia;gl=1;var e=qm(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function a(g){return e.isMemo(g)?o:i[g.$$typeof]||r}var s=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function m(g,p,y){if(typeof p!="string"){if(f){var S=d(p);S&&S!==f&&m(g,S,y)}var C=c(p);l&&(C=C.concat(l(p)));for(var k=a(g),E=a(p),_=0;_<C.length;++_){var O=C[_];if(!t[O]&&!(y&&y[O])&&!(E&&E[O])&&!(k&&k[O])){var N=u(p,O);try{s(g,O,N)}catch{}}}}return g}return Ia=m,Ia}Km();var Gm=!0;function vl(e,r,t){var n="";return t.split(" ").forEach(function(o){e[o]!==void 0?r.push(e[o]+";"):o&&(n+=o+" ")}),n}var Ra=function(r,t,n){var o=r.key+"-"+t.name;(n===!1||Gm===!1)&&r.registered[o]===void 0&&(r.registered[o]=t.styles)},yl=function(r,t,n){Ra(r,t,n);var o=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i=t;do r.insert(t===i?"."+o:"",i,r.sheet,!0),i=i.next;while(i!==void 0)}};function Qm(e){for(var r=0,t,n=0,o=e.length;o>=4;++n,o-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Xm={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Jm=/[A-Z]|^ms/g,eg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bl=function(r){return r.charCodeAt(1)===45},wl=function(r){return r!=null&&typeof r!="boolean"},Na=ul(function(e){return bl(e)?e:e.replace(Jm,"-$&").toLowerCase()}),_l=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(eg,function(n,o,i){return ar={name:o,styles:i,next:ar},o})}return Xm[r]!==1&&!bl(r)&&typeof t=="number"&&t!==0?t+"px":t};function Kn(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var o=t;if(o.anim===1)return ar={name:o.name,styles:o.styles,next:ar},o.name;var i=t;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ar={name:a.name,styles:a.styles,next:ar},a=a.next;var s=i.styles+";";return s}return tg(e,r,t)}case"function":{if(e!==void 0){var c=ar,l=t(e);return ar=c,Kn(e,r,l)}break}}var u=t;if(r==null)return u;var d=r[u];return d!==void 0?d:u}function tg(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=Kn(e,r,t[o])+";";else for(var i in t){var a=t[i];if(typeof a!="object"){var s=a;r!=null&&r[s]!==void 0?n+=i+"{"+r[s]+"}":wl(s)&&(n+=Na(i)+":"+_l(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(r==null||r[a[0]]===void 0))for(var c=0;c<a.length;c++)wl(a[c])&&(n+=Na(i)+":"+_l(i,a[c])+";");else{var l=Kn(e,r,a);switch(i){case"animation":case"animationName":{n+=Na(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var xl=/label:\s*([^\s;{]+)\s*(;|$)/g,ar;function ri(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";ar=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Kn(t,r,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=Kn(t,r,e[s]),n){var c=i;o+=c[s]}xl.lastIndex=0;for(var l="",u;(u=xl.exec(o))!==null;)l+="-"+u[1];var d=Qm(o)+l;return{name:d,styles:o,next:ar}}var rg=function(r){return r()},ng=j.useInsertionEffect?j.useInsertionEffect:!1,Sl=ng||rg,Cl=j.createContext(typeof HTMLElement<"u"?Hm({key:"css"}):null);Cl.Provider;var El=function(r){return x.forwardRef(function(t,n){var o=x.useContext(Cl);return r(t,o,n)})},$a=j.createContext({}),ja={}.hasOwnProperty,La="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",og=function(r,t){var n={};for(var o in t)ja.call(t,o)&&(n[o]=t[o]);return n[La]=r,n},ig=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;return Ra(t,n,o),Sl(function(){return yl(t,n,o)}),null},ag=El(function(e,r,t){var n=e.css;typeof n=="string"&&r.registered[n]!==void 0&&(n=r.registered[n]);var o=e[La],i=[n],a="";typeof e.className=="string"?a=vl(r.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=ri(i,void 0,j.useContext($a));a+=r.key+"-"+s.name;var c={};for(var l in e)ja.call(e,l)&&l!=="css"&&l!==La&&(c[l]=e[l]);return c.className=a,t&&(c.ref=t),j.createElement(j.Fragment,null,j.createElement(ig,{cache:r,serialized:s,isStringTag:typeof o=="string"}),j.createElement(o,c))}),sg=ag,kl=function(r,t){var n=arguments;if(t==null||!ja.call(t,"css"))return j.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=sg,i[1]=og(r,t);for(var a=2;a<o;a++)i[a]=n[a];return j.createElement.apply(null,i)};(function(e){var r;r||(r=e.JSX||(e.JSX={}))})(kl||(kl={}));function za(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return ri(r)}function Gn(){var e=za.apply(void 0,arguments),r="animation-"+e.name;return{name:r,styles:"@keyframes "+r+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var cg=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,lg=ul(function(e){return cg.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ug=lg,dg=function(r){return r!=="theme"},Dl=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?ug:dg},Tl=function(r,t,n){var o;if(t){var i=t.shouldForwardProp;o=r.__emotion_forwardProp&&i?function(a){return r.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=r.__emotion_forwardProp),o},fg=function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;return Ra(t,n,o),Sl(function(){return yl(t,n,o)}),null},pg=function e(r,t){var n=r.__emotion_real===r,o=n&&r.__emotion_base||r,i,a;t!==void 0&&(i=t.label,a=t.target);var s=Tl(r,t,n),c=s||Dl(o),l=!c("as");return function(){var u=arguments,d=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var m=u.length,g=1;g<m;g++)d.push(u[g],f[g])}var p=El(function(y,S,C){var k=l&&y.as||o,E="",_=[],O=y;if(y.theme==null){O={};for(var N in y)O[N]=y[N];O.theme=j.useContext($a)}typeof y.className=="string"?E=vl(S.registered,_,y.className):y.className!=null&&(E=y.className+" ");var q=ri(d.concat(_),S.registered,O);E+=S.key+"-"+q.name,a!==void 0&&(E+=" "+a);var Z=l&&s===void 0?Dl(k):c,L={};for(var K in y)l&&K==="as"||Z(K)&&(L[K]=y[K]);return L.className=E,C&&(L.ref=C),j.createElement(j.Fragment,null,j.createElement(fg,{cache:S,serialized:q,isStringTag:typeof k=="string"}),j.createElement(k,L))});return p.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=r.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+a}}),p.withComponent=function(y,S){var C=e(y,Wo({},t,S,{shouldForwardProp:Tl(p,S,!0)}));return C.apply(void 0,d)},p}},hg=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ba=pg.bind(null);hg.forEach(function(e){Ba[e]=Ba(e)});/**
65
+ */var ac;function lp(){return ac||(ac=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case n:switch(p=p.type,p){case r:case a:case o:case l:case u:case m:return p;default:switch(p=p&&p.$$typeof,p){case s:case c:case f:case d:return p;case i:return p;default:return b}}case t:return b}}}var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");je.ContextConsumer=i,je.ContextProvider=s,je.Element=n,je.ForwardRef=c,je.Fragment=r,je.Lazy=f,je.Memo=d,je.Portal=t,je.Profiler=a,je.StrictMode=o,je.Suspense=l,je.SuspenseList=u,je.isContextConsumer=function(p){return e(p)===i},je.isContextProvider=function(p){return e(p)===s},je.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===n},je.isForwardRef=function(p){return e(p)===c},je.isFragment=function(p){return e(p)===r},je.isLazy=function(p){return e(p)===f},je.isMemo=function(p){return e(p)===d},je.isPortal=function(p){return e(p)===t},je.isProfiler=function(p){return e(p)===a},je.isStrictMode=function(p){return e(p)===o},je.isSuspense=function(p){return e(p)===l},je.isSuspenseList=function(p){return e(p)===u},je.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===a||p===o||p===l||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===s||p.$$typeof===i||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},je.typeOf=e})()),je}var ic;function up(){return ic||(ic=1,process.env.NODE_ENV==="production"?mo.exports=cp():mo.exports=lp()),mo.exports}var go=up();function ir(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function sc(e){if(Z.isValidElement(e)||go.isValidElementType(e)||!ir(e))return e;const n={};return Object.keys(e).forEach(t=>{n[t]=sc(e[t])}),n}function kt(e,n,t={clone:!0}){const r=t.clone?{...e}:e;return ir(e)&&ir(n)&&Object.keys(n).forEach(o=>{Z.isValidElement(n[o])||go.isValidElementType(n[o])?r[o]=n[o]:ir(n[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ir(e[o])?r[o]=kt(e[o],n[o],t):t.clone?r[o]=ir(n[o])?sc(n[o]):n[o]:r[o]=n[o]}),r}function Cn(e,n){return n?kt(e,n,{clone:!1}):e}const vr=process.env.NODE_ENV!=="production"?N.oneOfType([N.number,N.string,N.object,N.array]):{};function cc(e,n){if(!e.containerQueries)return n;const t=Object.keys(n).filter(r=>r.startsWith("@container")).sort((r,o)=>{const a=/min-width:\s*([0-9.]+)/;return+(r.match(a)?.[1]||0)-+(o.match(a)?.[1]||0)});return t.length?t.reduce((r,o)=>{const a=n[o];return delete r[o],r[o]=a,r},{...n}):n}function dp(e,n){return n==="@"||n.startsWith("@")&&(e.some(t=>n.startsWith(`@${t}`))||!!n.match(/^@\d/))}function fp(e,n){const t=n.match(/^@([^/]+)?\/?(.+)?$/);if(!t){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${n})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
66
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:mr(18,`(${n})`));return null}const[,r,o]=t,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function pp(e){const n=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function t(a,i){a.up=(...s)=>n(e.breakpoints.up(...s),i),a.down=(...s)=>n(e.breakpoints.down(...s),i),a.between=(...s)=>n(e.breakpoints.between(...s),i),a.only=(...s)=>n(e.breakpoints.only(...s),i),a.not=(...s)=>{const c=n(e.breakpoints.not(...s),i);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=a=>(t(r,a),r);return t(o),{...e,containerQueries:o}}const vo={xs:0,sm:600,md:900,lg:1200,xl:1536},lc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${vo[e]}px)`},hp={containerQueries:e=>({up:n=>{let t=typeof n=="number"?n:vo[n]||n;return typeof t=="number"&&(t=`${t}px`),e?`@container ${e} (min-width:${t})`:`@container (min-width:${t})`}})};function sr(e,n,t){const r=e.theme||{};if(Array.isArray(n)){const a=r.breakpoints||lc;return n.reduce((i,s,c)=>(i[a.up(a.keys[c])]=t(n[c]),i),{})}if(typeof n=="object"){const a=r.breakpoints||lc;return Object.keys(n).reduce((i,s)=>{if(dp(a.keys,s)){const c=fp(r.containerQueries?r:hp,s);c&&(i[c]=t(n[s],s))}else if(Object.keys(a.values||vo).includes(s)){const c=a.up(s);i[c]=t(n[s],s)}else{const c=s;i[c]=n[c]}return i},{})}return t(n)}function mp(e={}){return e.keys?.reduce((t,r)=>{const o=e.up(r);return t[o]={},t},{})||{}}function uc(e,n){return e.reduce((t,r)=>{const o=t[r];return(!o||Object.keys(o).length===0)&&delete t[r],t},n)}function yo(e,n,t=!0){if(!n||typeof n!="string")return null;if(e&&e.vars&&t){const r=`vars.${n}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return n.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function bo(e,n,t,r=t){let o;return typeof e=="function"?o=e(t):Array.isArray(e)?o=e[t]||r:o=yo(e,t)||r,n&&(o=n(o,r,e)),o}function Qe(e){const{prop:n,cssProperty:t=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[n]==null)return null;const s=i[n],c=i.theme,l=yo(c,r)||{};return sr(i,s,d=>{let f=bo(l,o,d);return d===f&&typeof d=="string"&&(f=bo(l,o,`${n}${d==="default"?"":Ct(d)}`,d)),t===!1?f:{[t]:f}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[n]:vr}:{},a.filterProps=[n],a}function gp(e){const n={};return t=>(n[t]===void 0&&(n[t]=e(t)),n[t])}const vp={m:"margin",p:"padding"},yp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},dc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bp=gp(e=>{if(e.length>2)if(dc[e])e=dc[e];else return[e];const[n,t]=e.split(""),r=vp[n],o=yp[t]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),wo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_o=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],wp=[...wo,..._o];function kn(e,n,t,r){const o=yo(e,n,!0)??t;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a):Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>o.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${i} > ${o.length-1}, you need to add the missing values.`].join(`
67
+ `)):console.error([`MUI: The \`theme.${n}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${n}\` as a number.`].join(`
68
+ `)));const s=o[i];return a>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${n}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
69
+ `)),()=>{})}function ei(e){return kn(e,"spacing",8,"spacing")}function Dn(e,n){return typeof n=="string"||n==null?n:e(n)}function _p(e,n){return t=>e.reduce((r,o)=>(r[o]=Dn(n,t),r),{})}function xp(e,n,t,r){if(!n.includes(t))return null;const o=bp(t),a=_p(o,r),i=e[t];return sr(e,i,a)}function fc(e,n){const t=ei(e.theme);return Object.keys(e).map(r=>xp(e,n,r,t)).reduce(Cn,{})}function qe(e){return fc(e,wo)}qe.propTypes=process.env.NODE_ENV!=="production"?wo.reduce((e,n)=>(e[n]=vr,e),{}):{},qe.filterProps=wo;function Ke(e){return fc(e,_o)}Ke.propTypes=process.env.NODE_ENV!=="production"?_o.reduce((e,n)=>(e[n]=vr,e),{}):{},Ke.filterProps=_o,process.env.NODE_ENV!=="production"&&wp.reduce((e,n)=>(e[n]=vr,e),{});function xo(...e){const n=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),t=r=>Object.keys(r).reduce((o,a)=>n[a]?Cn(o,n[a](r)):o,{});return t.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},t.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),t}function At(e){return typeof e!="number"?e:`${e}px solid`}function Pt(e,n){return Qe({prop:e,themeKey:"borders",transform:n})}const Sp=Pt("border",At),Cp=Pt("borderTop",At),kp=Pt("borderRight",At),Dp=Pt("borderBottom",At),Ep=Pt("borderLeft",At),Tp=Pt("borderColor"),Op=Pt("borderTopColor"),Mp=Pt("borderRightColor"),Ap=Pt("borderBottomColor"),Pp=Pt("borderLeftColor"),Ip=Pt("outline",At),Np=Pt("outlineColor"),So=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=kn(e.theme,"shape.borderRadius",4,"borderRadius"),t=r=>({borderRadius:Dn(n,r)});return sr(e,e.borderRadius,t)}return null};So.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:vr}:{},So.filterProps=["borderRadius"],xo(Sp,Cp,kp,Dp,Ep,Tp,Op,Mp,Ap,Pp,So,Ip,Np);const Co=e=>{if(e.gap!==void 0&&e.gap!==null){const n=kn(e.theme,"spacing",8,"gap"),t=r=>({gap:Dn(n,r)});return sr(e,e.gap,t)}return null};Co.propTypes=process.env.NODE_ENV!=="production"?{gap:vr}:{},Co.filterProps=["gap"];const ko=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=kn(e.theme,"spacing",8,"columnGap"),t=r=>({columnGap:Dn(n,r)});return sr(e,e.columnGap,t)}return null};ko.propTypes=process.env.NODE_ENV!=="production"?{columnGap:vr}:{},ko.filterProps=["columnGap"];const Do=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=kn(e.theme,"spacing",8,"rowGap"),t=r=>({rowGap:Dn(n,r)});return sr(e,e.rowGap,t)}return null};Do.propTypes=process.env.NODE_ENV!=="production"?{rowGap:vr}:{},Do.filterProps=["rowGap"];const Rp=Qe({prop:"gridColumn"}),$p=Qe({prop:"gridRow"}),jp=Qe({prop:"gridAutoFlow"}),Lp=Qe({prop:"gridAutoColumns"}),zp=Qe({prop:"gridAutoRows"}),Bp=Qe({prop:"gridTemplateColumns"}),Vp=Qe({prop:"gridTemplateRows"}),Fp=Qe({prop:"gridTemplateAreas"}),Yp=Qe({prop:"gridArea"});xo(Co,ko,Do,Rp,$p,jp,Lp,zp,Bp,Vp,Fp,Yp);function Zr(e,n){return n==="grey"?n:e}const Hp=Qe({prop:"color",themeKey:"palette",transform:Zr}),Up=Qe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zr}),Wp=Qe({prop:"backgroundColor",themeKey:"palette",transform:Zr});xo(Hp,Up,Wp);function Dt(e){return e<=1&&e!==0?`${e*100}%`:e}const Zp=Qe({prop:"width",transform:Dt}),ti=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=t=>{const r=e.theme?.breakpoints?.values?.[t]||vo[t];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Dt(t)}};return sr(e,e.maxWidth,n)}return null};ti.filterProps=["maxWidth"];const qp=Qe({prop:"minWidth",transform:Dt}),Kp=Qe({prop:"height",transform:Dt}),Gp=Qe({prop:"maxHeight",transform:Dt}),Qp=Qe({prop:"minHeight",transform:Dt});Qe({prop:"size",cssProperty:"width",transform:Dt}),Qe({prop:"size",cssProperty:"height",transform:Dt});const Jp=Qe({prop:"boxSizing"});xo(Zp,ti,qp,Kp,Gp,Qp,Jp);const Eo={border:{themeKey:"borders",transform:At},borderTop:{themeKey:"borders",transform:At},borderRight:{themeKey:"borders",transform:At},borderBottom:{themeKey:"borders",transform:At},borderLeft:{themeKey:"borders",transform:At},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:At},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:So},color:{themeKey:"palette",transform:Zr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zr},backgroundColor:{themeKey:"palette",transform:Zr},p:{style:Ke},pt:{style:Ke},pr:{style:Ke},pb:{style:Ke},pl:{style:Ke},px:{style:Ke},py:{style:Ke},padding:{style:Ke},paddingTop:{style:Ke},paddingRight:{style:Ke},paddingBottom:{style:Ke},paddingLeft:{style:Ke},paddingX:{style:Ke},paddingY:{style:Ke},paddingInline:{style:Ke},paddingInlineStart:{style:Ke},paddingInlineEnd:{style:Ke},paddingBlock:{style:Ke},paddingBlockStart:{style:Ke},paddingBlockEnd:{style:Ke},m:{style:qe},mt:{style:qe},mr:{style:qe},mb:{style:qe},ml:{style:qe},mx:{style:qe},my:{style:qe},margin:{style:qe},marginTop:{style:qe},marginRight:{style:qe},marginBottom:{style:qe},marginLeft:{style:qe},marginX:{style:qe},marginY:{style:qe},marginInline:{style:qe},marginInlineStart:{style:qe},marginInlineEnd:{style:qe},marginBlock:{style:qe},marginBlockStart:{style:qe},marginBlockEnd:{style:qe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Co},rowGap:{style:Do},columnGap:{style:ko},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Dt},maxWidth:{style:ti},minWidth:{transform:Dt},height:{transform:Dt},maxHeight:{transform:Dt},minHeight:{transform:Dt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Xp(...e){const n=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),t=new Set(n);return e.every(r=>t.size===Object.keys(r).length)}function eh(e,n){return typeof e=="function"?e(n):e}function th(){function e(t,r,o,a){const i={[t]:r,theme:o},s=a[t];if(!s)return{[t]:r};const{cssProperty:c=t,themeKey:l,transform:u,style:d}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[t]:r};const f=yo(o,l)||{};return d?d(i):sr(i,r,g=>{let p=bo(f,u,g);return g===p&&typeof g=="string"&&(p=bo(f,u,`${t}${g==="default"?"":Ct(g)}`,g)),c===!1?p:{[c]:p}})}function n(t){const{sx:r,theme:o={},nested:a}=t||{};if(!r)return null;const i=o.unstable_sxConfig??Eo;function s(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const u=mp(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(l).forEach(m=>{const g=eh(l[m],o);if(g!=null)if(typeof g=="object")if(i[m])f=Cn(f,e(m,g,o,i));else{const p=sr({theme:o},g,b=>({[m]:b}));Xp(p,g)?f[m]=n({sx:g,theme:o,nested:!0}):f=Cn(f,p)}else f=Cn(f,e(m,g,o,i))}),!a&&o.modularCssLayers?{"@layer sx":cc(o,uc(d,f))}:cc(o,uc(d,f))}return Array.isArray(r)?r.map(s):s(r)}return n}const qr=th();qr.filterProps=["sx"];function ri(){return ri=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ri.apply(null,arguments)}function rh(e){if(e.sheet)return e.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===e)return document.styleSheets[n]}function nh(e){var n=document.createElement("style");return n.setAttribute("data-emotion",e.key),e.nonce!==void 0&&n.setAttribute("nonce",e.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var oh=(function(){function e(t){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),r.tags.push(o)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var n=e.prototype;return n.hydrate=function(r){r.forEach(this._insertTag)},n.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(nh(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=rh(o);try{a.insertRule(r,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},n.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),ut="-ms-",To="-moz-",Ee="-webkit-",pc="comm",ni="rule",oi="decl",ah="@import",hc="@keyframes",ih="@layer",sh=Math.abs,Oo=String.fromCharCode,ch=Object.assign;function lh(e,n){return st(e,0)^45?(((n<<2^st(e,0))<<2^st(e,1))<<2^st(e,2))<<2^st(e,3):0}function mc(e){return e.trim()}function uh(e,n){return(e=n.exec(e))?e[0]:e}function Te(e,n,t){return e.replace(n,t)}function ai(e,n){return e.indexOf(n)}function st(e,n){return e.charCodeAt(n)|0}function En(e,n,t){return e.slice(n,t)}function Wt(e){return e.length}function ii(e){return e.length}function Mo(e,n){return n.push(e),e}function dh(e,n){return e.map(n).join("")}var Ao=1,Kr=1,gc=0,yt=0,nt=0,Gr="";function Po(e,n,t,r,o,a,i){return{value:e,root:n,parent:t,type:r,props:o,children:a,line:Ao,column:Kr,length:i,return:""}}function Tn(e,n){return ch(Po("",null,null,"",null,null,0),e,{length:-e.length},n)}function fh(){return nt}function ph(){return nt=yt>0?st(Gr,--yt):0,Kr--,nt===10&&(Kr=1,Ao--),nt}function Et(){return nt=yt<gc?st(Gr,yt++):0,Kr++,nt===10&&(Kr=1,Ao++),nt}function Zt(){return st(Gr,yt)}function Io(){return yt}function On(e,n){return En(Gr,e,n)}function Mn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vc(e){return Ao=Kr=1,gc=Wt(Gr=e),yt=0,[]}function yc(e){return Gr="",e}function No(e){return mc(On(yt-1,si(e===91?e+2:e===40?e+1:e)))}function hh(e){for(;(nt=Zt())&&nt<33;)Et();return Mn(e)>2||Mn(nt)>3?"":" "}function mh(e,n){for(;--n&&Et()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return On(e,Io()+(n<6&&Zt()==32&&Et()==32))}function si(e){for(;Et();)switch(nt){case e:return yt;case 34:case 39:e!==34&&e!==39&&si(nt);break;case 40:e===41&&si(e);break;case 92:Et();break}return yt}function gh(e,n){for(;Et()&&e+nt!==57;)if(e+nt===84&&Zt()===47)break;return"/*"+On(n,yt-1)+"*"+Oo(e===47?e:Et())}function vh(e){for(;!Mn(Zt());)Et();return On(e,yt)}function yh(e){return yc(Ro("",null,null,null,[""],e=vc(e),0,[0],e))}function Ro(e,n,t,r,o,a,i,s,c){for(var l=0,u=0,d=i,f=0,m=0,g=0,p=1,b=1,x=1,S=0,T="",D=o,k=a,O=r,I=T;b;)switch(g=S,S=Et()){case 40:if(g!=108&&st(I,d-1)==58){ai(I+=Te(No(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:I+=No(S);break;case 9:case 10:case 13:case 32:I+=hh(g);break;case 92:I+=mh(Io()-1,7);continue;case 47:switch(Zt()){case 42:case 47:Mo(bh(gh(Et(),Io()),n,t),c);break;default:I+="/"}break;case 123*p:s[l++]=Wt(I)*x;case 125*p:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+u:x==-1&&(I=Te(I,/\f/g,"")),m>0&&Wt(I)-d&&Mo(m>32?wc(I+";",r,t,d-1):wc(Te(I," ","")+";",r,t,d-2),c);break;case 59:I+=";";default:if(Mo(O=bc(I,n,t,l,u,o,s,T,D=[],k=[],d),a),S===123)if(u===0)Ro(I,n,O,O,D,a,d,s,k);else switch(f===99&&st(I,3)===110?100:f){case 100:case 108:case 109:case 115:Ro(e,O,O,r&&Mo(bc(e,O,O,0,0,o,s,T,o,D=[],d),k),o,k,d,s,r?D:k);break;default:Ro(I,O,O,O,[""],k,0,s,k)}}l=u=m=0,p=x=1,T=I="",d=i;break;case 58:d=1+Wt(I),m=g;default:if(p<1){if(S==123)--p;else if(S==125&&p++==0&&ph()==125)continue}switch(I+=Oo(S),S*p){case 38:x=u>0?1:(I+="\f",-1);break;case 44:s[l++]=(Wt(I)-1)*x,x=1;break;case 64:Zt()===45&&(I+=No(Et())),f=Zt(),u=d=Wt(T=I+=vh(Io())),S++;break;case 45:g===45&&Wt(I)==2&&(p=0)}}return a}function bc(e,n,t,r,o,a,i,s,c,l,u){for(var d=o-1,f=o===0?a:[""],m=ii(f),g=0,p=0,b=0;g<r;++g)for(var x=0,S=En(e,d+1,d=sh(p=i[g])),T=e;x<m;++x)(T=mc(p>0?f[x]+" "+S:Te(S,/&\f/g,f[x])))&&(c[b++]=T);return Po(e,n,t,o===0?ni:s,c,l,u)}function bh(e,n,t){return Po(e,n,t,pc,Oo(fh()),En(e,2,-2),0)}function wc(e,n,t,r){return Po(e,n,t,oi,En(e,0,r),En(e,r+1,-1),r)}function Qr(e,n){for(var t="",r=ii(e),o=0;o<r;o++)t+=n(e[o],o,e,n)||"";return t}function wh(e,n,t,r){switch(e.type){case ih:if(e.children.length)break;case ah:case oi:return e.return=e.return||e.value;case pc:return"";case hc:return e.return=e.value+"{"+Qr(e.children,r)+"}";case ni:e.value=e.props.join(",")}return Wt(t=Qr(e.children,r))?e.return=e.value+"{"+t+"}":""}function _h(e){var n=ii(e);return function(t,r,o,a){for(var i="",s=0;s<n;s++)i+=e[s](t,r,o,a)||"";return i}}function xh(e){return function(n){n.root||(n=n.return)&&e(n)}}function _c(e){var n=Object.create(null);return function(t){return n[t]===void 0&&(n[t]=e(t)),n[t]}}var Sh=function(n,t,r){for(var o=0,a=0;o=a,a=Zt(),o===38&&a===12&&(t[r]=1),!Mn(a);)Et();return On(n,yt)},Ch=function(n,t){var r=-1,o=44;do switch(Mn(o)){case 0:o===38&&Zt()===12&&(t[r]=1),n[r]+=Sh(yt-1,t,r);break;case 2:n[r]+=No(o);break;case 4:if(o===44){n[++r]=Zt()===58?"&\f":"",t[r]=n[r].length;break}default:n[r]+=Oo(o)}while(o=Et());return n},kh=function(n,t){return yc(Ch(vc(n),t))},xc=new WeakMap,Dh=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var t=n.value,r=n.parent,o=n.column===r.column&&n.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(n.props.length===1&&t.charCodeAt(0)!==58&&!xc.get(r))&&!o){xc.set(n,!0);for(var a=[],i=kh(t,a),s=r.props,c=0,l=0;c<i.length;c++)for(var u=0;u<s.length;u++,l++)n.props[l]=a[c]?i[c].replace(/&\f/g,s[u]):s[u]+" "+i[c]}}},Eh=function(n){if(n.type==="decl"){var t=n.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(n.return="",n.value="")}};function Sc(e,n){switch(lh(e,n)){case 5103:return Ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ee+e+To+e+ut+e+e;case 6828:case 4268:return Ee+e+ut+e+e;case 6165:return Ee+e+ut+"flex-"+e+e;case 5187:return Ee+e+Te(e,/(\w+).+(:[^]+)/,Ee+"box-$1$2"+ut+"flex-$1$2")+e;case 5443:return Ee+e+ut+"flex-item-"+Te(e,/flex-|-self/,"")+e;case 4675:return Ee+e+ut+"flex-line-pack"+Te(e,/align-content|flex-|-self/,"")+e;case 5548:return Ee+e+ut+Te(e,"shrink","negative")+e;case 5292:return Ee+e+ut+Te(e,"basis","preferred-size")+e;case 6060:return Ee+"box-"+Te(e,"-grow","")+Ee+e+ut+Te(e,"grow","positive")+e;case 4554:return Ee+Te(e,/([^-])(transform)/g,"$1"+Ee+"$2")+e;case 6187:return Te(Te(Te(e,/(zoom-|grab)/,Ee+"$1"),/(image-set)/,Ee+"$1"),e,"")+e;case 5495:case 3959:return Te(e,/(image-set\([^]*)/,Ee+"$1$`$1");case 4968:return Te(Te(e,/(.+:)(flex-)?(.*)/,Ee+"box-pack:$3"+ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ee+e+e;case 4095:case 3583:case 4068:case 2532:return Te(e,/(.+)-inline(.+)/,Ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Wt(e)-1-n>6)switch(st(e,n+1)){case 109:if(st(e,n+4)!==45)break;case 102:return Te(e,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+To+(st(e,n+3)==108?"$3":"$2-$3"))+e;case 115:return~ai(e,"stretch")?Sc(Te(e,"stretch","fill-available"),n)+e:e}break;case 4949:if(st(e,n+1)!==115)break;case 6444:switch(st(e,Wt(e)-3-(~ai(e,"!important")&&10))){case 107:return Te(e,":",":"+Ee)+e;case 101:return Te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ee+(st(e,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+ut+"$2box$3")+e}break;case 5936:switch(st(e,n+11)){case 114:return Ee+e+ut+Te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ee+e+ut+Te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ee+e+ut+Te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ee+e+ut+e+e}return e}var Th=function(n,t,r,o){if(n.length>-1&&!n.return)switch(n.type){case oi:n.return=Sc(n.value,n.length);break;case hc:return Qr([Tn(n,{value:Te(n.value,"@","@"+Ee)})],o);case ni:if(n.length)return dh(n.props,function(a){switch(uh(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qr([Tn(n,{props:[Te(a,/:(read-\w+)/,":"+To+"$1")]})],o);case"::placeholder":return Qr([Tn(n,{props:[Te(a,/:(plac\w+)/,":"+Ee+"input-$1")]}),Tn(n,{props:[Te(a,/:(plac\w+)/,":"+To+"$1")]}),Tn(n,{props:[Te(a,/:(plac\w+)/,ut+"input-$1")]})],o)}return""})}},Oh=[Th],Mh=function(n){var t=n.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var b=p.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=n.stylisPlugins||Oh,a={},i,s=[];i=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(p){for(var b=p.getAttribute("data-emotion").split(" "),x=1;x<b.length;x++)a[b[x]]=!0;s.push(p)});var c,l=[Dh,Eh];{var u,d=[wh,xh(function(p){u.insert(p)})],f=_h(l.concat(o,d)),m=function(b){return Qr(yh(b),f)};c=function(b,x,S,T){u=S,m(b?b+"{"+x.styles+"}":x.styles),T&&(g.inserted[x.name]=!0)}}var g={key:t,sheet:new oh({key:t,container:i,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:a,registered:{},insert:c};return g.sheet.hydrate(s),g},Ah=!0;function Ph(e,n,t){var r="";return t.split(" ").forEach(function(o){e[o]!==void 0?n.push(e[o]+";"):o&&(r+=o+" ")}),r}var Cc=function(n,t,r){var o=n.key+"-"+t.name;(r===!1||Ah===!1)&&n.registered[o]===void 0&&(n.registered[o]=t.styles)},Ih=function(n,t,r){Cc(n,t,r);var o=n.key+"-"+t.name;if(n.inserted[t.name]===void 0){var a=t;do n.insert(t===a?"."+o:"",a,n.sheet,!0),a=a.next;while(a!==void 0)}};function Nh(e){for(var n=0,t,r=0,o=e.length;o>=4;++r,o-=4)t=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,n=(t&65535)*1540483477+((t>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(e.charCodeAt(r+2)&255)<<16;case 2:n^=(e.charCodeAt(r+1)&255)<<8;case 1:n^=e.charCodeAt(r)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var Rh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$h=/[A-Z]|^ms/g,jh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kc=function(n){return n.charCodeAt(1)===45},Dc=function(n){return n!=null&&typeof n!="boolean"},ci=_c(function(e){return kc(e)?e:e.replace($h,"-$&").toLowerCase()}),Ec=function(n,t){switch(n){case"animation":case"animationName":if(typeof t=="string")return t.replace(jh,function(r,o,a){return qt={name:o,styles:a,next:qt},o})}return Rh[n]!==1&&!kc(n)&&typeof t=="number"&&t!==0?t+"px":t};function An(e,n,t){if(t==null)return"";var r=t;if(r.__emotion_styles!==void 0)return r;switch(typeof t){case"boolean":return"";case"object":{var o=t;if(o.anim===1)return qt={name:o.name,styles:o.styles,next:qt},o.name;var a=t;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)qt={name:i.name,styles:i.styles,next:qt},i=i.next;var s=a.styles+";";return s}return Lh(e,n,t)}case"function":{if(e!==void 0){var c=qt,l=t(e);return qt=c,An(e,n,l)}break}}var u=t;if(n==null)return u;var d=n[u];return d!==void 0?d:u}function Lh(e,n,t){var r="";if(Array.isArray(t))for(var o=0;o<t.length;o++)r+=An(e,n,t[o])+";";else for(var a in t){var i=t[a];if(typeof i!="object"){var s=i;n!=null&&n[s]!==void 0?r+=a+"{"+n[s]+"}":Dc(s)&&(r+=ci(a)+":"+Ec(a,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(n==null||n[i[0]]===void 0))for(var c=0;c<i.length;c++)Dc(i[c])&&(r+=ci(a)+":"+Ec(a,i[c])+";");else{var l=An(e,n,i);switch(a){case"animation":case"animationName":{r+=ci(a)+":"+l+";";break}default:r+=a+"{"+l+"}"}}}return r}var Tc=/label:\s*([^\s;{]+)\s*(;|$)/g,qt;function Oc(e,n,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";qt=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=An(t,n,a);else{var i=a;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=An(t,n,e[s]),r){var c=a;o+=c[s]}Tc.lastIndex=0;for(var l="",u;(u=Tc.exec(o))!==null;)l+="-"+u[1];var d=Nh(o)+l;return{name:d,styles:o,next:qt}}var zh=function(n){return n()},Bh=Z.useInsertionEffect?Z.useInsertionEffect:!1,Vh=Bh||zh,Mc=Z.createContext(typeof HTMLElement<"u"?Mh({key:"css"}):null);Mc.Provider;var Fh=function(n){return w.forwardRef(function(t,r){var o=w.useContext(Mc);return n(t,o,r)})},Ac=Z.createContext({}),Yh=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Hh=_c(function(e){return Yh.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Uh=Hh,Wh=function(n){return n!=="theme"},Pc=function(n){return typeof n=="string"&&n.charCodeAt(0)>96?Uh:Wh},Ic=function(n,t,r){var o;if(t){var a=t.shouldForwardProp;o=n.__emotion_forwardProp&&a?function(i){return n.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=n.__emotion_forwardProp),o},Zh=function(n){var t=n.cache,r=n.serialized,o=n.isStringTag;return Cc(t,r,o),Vh(function(){return Ih(t,r,o)}),null},qh=function e(n,t){var r=n.__emotion_real===n,o=r&&n.__emotion_base||n,a,i;t!==void 0&&(a=t.label,i=t.target);var s=Ic(n,t,r),c=s||Pc(o),l=!c("as");return function(){var u=arguments,d=r&&n.__emotion_styles!==void 0?n.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var m=u.length,g=1;g<m;g++)d.push(u[g],f[g])}var p=Fh(function(b,x,S){var T=l&&b.as||o,D="",k=[],O=b;if(b.theme==null){O={};for(var I in b)O[I]=b[I];O.theme=Z.useContext(Ac)}typeof b.className=="string"?D=Ph(x.registered,k,b.className):b.className!=null&&(D=b.className+" ");var W=Oc(d.concat(k),x.registered,O);D+=x.key+"-"+W.name,i!==void 0&&(D+=" "+i);var U=l&&s===void 0?Pc(T):c,$={};for(var Q in b)l&&Q==="as"||U(Q)&&($[Q]=b[Q]);return $.className=D,S&&($.ref=S),Z.createElement(Z.Fragment,null,Z.createElement(Zh,{cache:x,serialized:W,isStringTag:typeof T=="string"}),Z.createElement(T,$))});return p.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=n.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+i}}),p.withComponent=function(b,x){var S=e(b,ri({},t,x,{shouldForwardProp:Ic(p,x,!0)}));return S.apply(void 0,d)},p}},Kh=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],li=qh.bind(null);Kh.forEach(function(e){li[e]=li(e)});/**
84
70
  * @mui/styled-engine v7.3.2
85
71
  *
86
72
  * @license MIT
87
73
  * This source code is licensed under the MIT license found in the
88
74
  * LICENSE file in the root directory of this source tree.
89
- */function Ol(e,r){const t=Ba(e,r);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
90
- `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),t(...n)}:t}function mg(e,r){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))}const Ml=[];function Br(e){return Ml[0]=e,ri(Ml)}const gg=e=>{const r=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return r.sort((t,n)=>t.val-n.val),r.reduce((t,n)=>({...t,[n.key]:n.val}),{})};function vg(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5,...o}=e,i=gg(r),a=Object.keys(i);function s(f){return`@media (min-width:${typeof r[f]=="number"?r[f]:f}${t})`}function c(f){return`@media (max-width:${(typeof r[f]=="number"?r[f]:f)-n/100}${t})`}function l(f,m){const g=a.indexOf(m);return`@media (min-width:${typeof r[f]=="number"?r[f]:f}${t}) and (max-width:${(g!==-1&&typeof r[a[g]]=="number"?r[a[g]]:m)-n/100}${t})`}function u(f){return a.indexOf(f)+1<a.length?l(f,a[a.indexOf(f)+1]):s(f)}function d(f){const m=a.indexOf(f);return m===0?s(a[1]):m===a.length-1?c(a[m]):l(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:c,between:l,only:u,not:d,unit:t,...o}}const yg={borderRadius:4};function Pl(e=8,r=ka({spacing:e})){if(e.mui)return e;const t=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const a=r(i);return typeof a=="number"?`${a}px`:a}).join(" "));return t.mui=!0,t}function bg(e,r){const t=this;if(t.vars){if(!t.colorSchemes?.[e]||typeof t.getColorSchemeSelector!="function")return{};let n=t.getColorSchemeSelector(e);return n==="&"?r:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:r})}return t.palette.mode===e?r:{}}function Va(e={},...r){const{breakpoints:t={},palette:n={},spacing:o,shape:i={},...a}=e,s=vg(t),c=Pl(o);let l=Pt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...yg,...i}},a);return l=kh(l),l.applyStyles=bg,l=r.reduce((u,d)=>Pt(u,d),l),l.unstable_sxConfig={...Un,...a?.unstable_sxConfig},l.unstable_sx=function(d){return zr({sx:d,theme:this})},l}function wg(e){return Object.keys(e).length===0}function _g(e=null){const r=j.useContext($a);return!r||wg(r)?e:r}const xg=Va();function Al(e=xg){return _g(e)}function Sg(e={}){const{themeId:r,defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Ol("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(zr);return j.forwardRef(function(c,l){const u=Al(t),{className:d,component:f="div",...m}=gm(c);return h.jsx(i,{as:f,ref:l,className:_e(d,o?o(n):n),theme:r&&u[r]||u,...m})})}const Cg={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ct(e,r,t="Mui"){const n=Cg[r];return n?`${t}-${n}`:`${Ic.generate(e)}-${r}`}function Et(e,r,t="Mui"){const n={};return r.forEach(o=>{n[o]=Ct(e,o,t)}),n}function Il(e,r=""){return e.displayName||e.name||r}function Rl(e,r,t){const n=Il(r);return e.displayName||(n!==""?`${t}(${n})`:t)}function Eg(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Il(e,"Component");if(typeof e=="object")switch(e.$$typeof){case No.ForwardRef:return Rl(e,e.render,"ForwardRef");case No.Memo:return Rl(e,e.type,"memo");default:return}}}function Nl(e){const{variants:r,...t}=e,n={variants:r,style:Br(t),isProcessed:!0};return n.style===t||r&&r.forEach(o=>{typeof o.style!="function"&&(o.style=Br(o.style))}),n}const kg=Va();function Fa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Vr(e,r){return r&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${r}{${String(e.styles)}}`),e}function Dg(e){return e?(r,t)=>t[e]:null}function Tg(e,r,t){e.theme=Ag(e.theme)?t:e.theme[r]||e.theme}function ni(e,r,t){const n=typeof r=="function"?r(e):r;if(Array.isArray(n))return n.flatMap(o=>ni(e,o,t));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=t?Vr(n.style,t):n.style;else{const{variants:i,...a}=n;o=t?Vr(Br(a),t):a}return $l(e,n.variants,[o],t)}return n?.isProcessed?t?Vr(Br(n.style),t):n.style:t?Vr(Br(n),t):n}function $l(e,r,t=[],n=void 0){let o;e:for(let i=0;i<r.length;i+=1){const a=r[i];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},t.push(n?Vr(Br(a.style(o)),n):a.style(o))):t.push(n?Vr(Br(a.style),n):a.style)}return t}function Og(e={}){const{themeId:r,defaultTheme:t=kg,rootShouldForwardProp:n=Fa,slotShouldForwardProp:o=Fa}=e;function i(s){Tg(s,r,t)}return(s,c={})=>{mg(s,O=>O.filter(N=>N!==zr));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:m=Dg(jl(u)),...g}=c,p=l&&l.startsWith("Mui")||u?"components":"custom",y=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let C=Fa;u==="Root"||u==="root"?C=n:u?C=o:Ig(s)&&(C=void 0);const k=Ol(s,{shouldForwardProp:C,label:Pg(l,u),...g}),E=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(q){return ni(q,O,q.theme.modularCssLayers?p:void 0)};if(nr(O)){const N=Nl(O);return function(Z){return N.variants?ni(Z,N,Z.theme.modularCssLayers?p:void 0):Z.theme.modularCssLayers?Vr(N.style,p):N.style}}return O},_=(...O)=>{const N=[],q=O.map(E),Z=[];if(N.push(i),l&&m&&Z.push(function(I){const U=I.theme.components?.[l]?.styleOverrides;if(!U)return null;const H={};for(const ee in U)H[ee]=ni(I,U[ee],I.theme.modularCssLayers?"theme":void 0);return m(I,H)}),l&&!y&&Z.push(function(I){const U=I.theme?.components?.[l]?.variants;return U?$l(I,U,[],I.theme.modularCssLayers?"theme":void 0):null}),S||Z.push(zr),Array.isArray(q[0])){const v=q.shift(),I=new Array(N.length).fill(""),A=new Array(Z.length).fill("");let U;U=[...I,...v,...A],U.raw=[...I,...v.raw,...A],N.unshift(U)}const L=[...N,...q,...Z],K=k(...L);return s.muiName&&(K.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(K.displayName=Mg(l,u,s)),K};return k.withConfig&&(_.withConfig=k.withConfig),_}}function Mg(e,r,t){return e?`${e}${Ke(r||"")}`:`Styled(${Eg(t)})`}function Pg(e,r){let t;return process.env.NODE_ENV!=="production"&&e&&(t=`${e}-${jl(r||"Root")}`),t}function Ag(e){for(const r in e)return!1;return!0}function Ig(e){return typeof e=="string"&&e.charCodeAt(0)>96}function jl(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ya(e,r,t=!1){const n={...r};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],s=r[i];if(!s)n[i]=a||{};else if(!a)n[i]=s;else{n[i]={...s};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const l=c;n[i][l]=Ya(a[l],s[l],t)}}}else i==="className"&&t&&r.className?n.className=_e(e?.className,r?.className):i==="style"&&t&&r.style?n.style={...e?.style,...r?.style}:n[i]===void 0&&(n[i]=e[i])}return n}const Rg=typeof window<"u"?j.useLayoutEffect:j.useEffect;function Ng(e,r=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(e,t))}function Ua(e,r=0,t=1){return process.env.NODE_ENV!=="production"&&(e<r||e>t)&&console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`),Ng(e,r,t)}function $g(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let t=e.match(r);return t&&t[0].length===1&&(t=t.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),t?`rgb${t.length===4?"a":""}(${t.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ar(e){if(e.type)return e;if(e.charAt(0)==="#")return Ar($g(e));const r=e.indexOf("("),t=e.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(t))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
91
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Mr(9,e));let n=e.substring(r+1,e.length-1),o;if(t==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
92
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Mr(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:t,values:n,colorSpace:o}}const jg=e=>{const r=Ar(e);return r.values.slice(0,3).map((t,n)=>r.type.includes("hsl")&&n!==0?`${t}%`:t).join(" ")},Qn=(e,r)=>{try{return jg(e)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}};function oi(e){const{type:r,colorSpace:t}=e;let{values:n}=e;return r.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):r.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),r.includes("color")?n=`${t} ${n.join(" ")}`:n=`${n.join(", ")}`,`${r}(${n})`}function Ll(e){e=Ar(e);const{values:r}=e,t=r[0],n=r[1]/100,o=r[2]/100,i=n*Math.min(o,1-o),a=(l,u=(l+t/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",c.push(r[3])),oi({type:s,values:c})}function Ha(e){e=Ar(e);let r=e.type==="hsl"||e.type==="hsla"?Ar(Ll(e)).values:e.values;return r=r.map(t=>(e.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function zl(e,r){const t=Ha(e),n=Ha(r);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}function ii(e,r){return e=Ar(e),r=Ua(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,oi(e)}function Fr(e,r,t){try{return ii(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function ai(e,r){if(e=Ar(e),r=Ua(r),e.type.includes("hsl"))e.values[2]*=1-r;else if(e.type.includes("rgb")||e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]*=1-r;return oi(e)}function $e(e,r,t){try{return ai(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function si(e,r){if(e=Ar(e),r=Ua(r),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*r;else if(e.type.includes("rgb"))for(let t=0;t<3;t+=1)e.values[t]+=(255-e.values[t])*r;else if(e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]+=(1-e.values[t])*r;return oi(e)}function je(e,r,t){try{return si(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function Lg(e,r=.15){return Ha(e)>.5?ai(e,r):si(e,r)}function ci(e,r,t){try{return Lg(e,r)}catch{return e}}const zg=j.createContext(void 0);process.env.NODE_ENV!=="production"&&(b.node,b.object);function Bg(e){const{theme:r,name:t,props:n}=e;if(!r||!r.components||!r.components[t])return n;const o=r.components[t];return o.defaultProps?Ya(o.defaultProps,n,r.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Ya(o,n,r.components.mergeClassNameAndStyle):n}function Vg({props:e,name:r}){const t=j.useContext(zg);return Bg({props:e,name:r,theme:{components:t}})}let Bl=0;function Fg(e){const[r,t]=j.useState(e),n=e||r;return j.useEffect(()=>{r==null&&(Bl+=1,t(`mui-${Bl}`))},[r]),n}const Vl={...j}.useId;function Yg(e){if(Vl!==void 0){const r=Vl();return e??r}return Fg(e)}const Fl={theme:void 0};function Ug(e){let r,t;return function(o){let i=r;return(i===void 0||o.theme!==t)&&(Fl.theme=o.theme,i=Nl(e(Fl)),r=i,t=o.theme),i}}function Hg(e=""){function r(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${r(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${r(...o)})`}const Yl=(e,r,t,n=[])=>{let o=e;r.forEach((i,a)=>{a===r.length-1?Array.isArray(o)?o[Number(i)]=t:o&&typeof o=="object"&&(o[i]=t):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},Wg=(e,r,t)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([s,c])=>{(!t||t&&!t([...i,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...i,s],Array.isArray(c)?[...a,s]:a):r([...i,s],c,a))})}n(e)},Zg=(e,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function Wa(e,r){const{prefix:t,shouldSkipGeneratingVar:n}=r||{},o={},i={},a={};return Wg(e,(s,c,l)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(s,c))){const u=`--${t?`${t}-`:""}${s.join("-")}`,d=Zg(s,c);Object.assign(o,{[u]:d}),Yl(i,s,`var(${u})`,l),Yl(a,s,`var(${u}, ${d})`,l)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function qg(e,r={}){const{getSelector:t=S,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=r,{colorSchemes:a={},components:s,defaultColorScheme:c="light",...l}=e,{vars:u,css:d,varsWithDefaults:f}=Wa(l,r);let m=f;const g={},{[c]:p,...y}=a;if(Object.entries(y||{}).forEach(([E,_])=>{const{vars:O,css:N,varsWithDefaults:q}=Wa(_,r);m=Pt(m,q),g[E]={css:N,vars:O}}),p){const{css:E,vars:_,varsWithDefaults:O}=Wa(p,r);m=Pt(m,O),g[c]={css:E,vars:_}}function S(E,_){let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),E){if(O==="media")return e.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${a[E]?.palette?.mode||E})`]:{":root":_}};if(O)return e.defaultColorScheme===E?`:root, ${O.replace("%s",String(E))}`:O.replace("%s",String(E))}return":root"}return{vars:m,generateThemeVars:()=>{let E={...u};return Object.entries(g).forEach(([,{vars:_}])=>{E=Pt(E,_)}),E},generateStyleSheets:()=>{const E=[],_=e.defaultColorScheme||"light";function O(Z,L){Object.keys(L).length&&E.push(typeof Z=="string"?{[Z]:{...L}}:Z)}O(t(void 0,{...d}),d);const{[_]:N,...q}=g;if(N){const{css:Z}=N,L=a[_]?.palette?.mode,K=!n&&L?{colorScheme:L,...Z}:{...Z};O(t(_,{...K}),K)}return Object.entries(q).forEach(([Z,{css:L}])=>{const K=a[Z]?.palette?.mode,v=!n&&K?{colorScheme:K,...L}:{...L};O(t(Z,{...v}),v)}),i&&E.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),E}}}function Kg(e){return function(t){return e==="media"?(process.env.NODE_ENV!=="production"&&t!=="light"&&t!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const Xn={black:"#000",white:"#fff"},Gg={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},hn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},mn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Jn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},gn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},vn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},yn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Ul(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Xn.white,default:Xn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Hl=Ul();function Wl(){return{text:{primary:Xn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Xn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Za=Wl();function Zl(e,r,t,n){const o=n.light||n,i=n.dark||n*1.5;e[r]||(e.hasOwnProperty(t)?e[r]=e[t]:r==="light"?e.light=si(e.main,o):r==="dark"&&(e.dark=ai(e.main,i)))}function ql(e,r,t,n,o){const i=o.light||o,a=o.dark||o*1.5;r[t]||(r.hasOwnProperty(n)?r[t]=r[n]:t==="light"?r.light=`color-mix(in ${e}, ${r.main}, #fff ${(i*100).toFixed(0)}%)`:t==="dark"&&(r.dark=`color-mix(in ${e}, ${r.main}, #000 ${(a*100).toFixed(0)}%)`))}function Qg(e="light"){return e==="dark"?{main:gn[200],light:gn[50],dark:gn[400]}:{main:gn[700],light:gn[400],dark:gn[800]}}function Xg(e="light"){return e==="dark"?{main:hn[200],light:hn[50],dark:hn[400]}:{main:hn[500],light:hn[300],dark:hn[700]}}function Jg(e="light"){return e==="dark"?{main:mn[500],light:mn[300],dark:mn[700]}:{main:mn[700],light:mn[400],dark:mn[800]}}function e0(e="light"){return e==="dark"?{main:vn[400],light:vn[300],dark:vn[700]}:{main:vn[700],light:vn[500],dark:vn[900]}}function t0(e="light"){return e==="dark"?{main:yn[400],light:yn[300],dark:yn[700]}:{main:yn[800],light:yn[500],dark:yn[900]}}function r0(e="light"){return e==="dark"?{main:Jn[400],light:Jn[300],dark:Jn[700]}:{main:"#ed6c02",light:Jn[500],dark:Jn[900]}}function n0(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function qa(e){const{mode:r="light",contrastThreshold:t=3,tonalOffset:n=.2,colorSpace:o,...i}=e,a=e.primary||Qg(r),s=e.secondary||Xg(r),c=e.error||Jg(r),l=e.info||e0(r),u=e.success||t0(r),d=e.warning||r0(r);function f(y){if(o)return n0(y);const S=zl(y,Za.text.primary)>=t?Za.text.primary:Hl.text.primary;if(process.env.NODE_ENV!=="production"){const C=zl(y,S);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${S} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
93
- `))}return S}const m=({color:y,name:S,mainShade:C=500,lightShade:k=300,darkShade:E=700})=>{if(y={...y},!y.main&&y[C]&&(y.main=y[C]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
94
- The color object needs to have a \`main\` property or a \`${C}\` property.`:Mr(11,S?` (${S})`:"",C));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
95
- \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
75
+ */function Gh(e,n){const t=li(e,n);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
76
+ `)):r.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),t(...r)}:t}function Qh(e,n){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=n(e.__emotion_styles))}const Nc=[];function Er(e){return Nc[0]=e,Oc(Nc)}const Jh=e=>{const n=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return n.sort((t,r)=>t.val-r.val),n.reduce((t,r)=>({...t,[r.key]:r.val}),{})};function Xh(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:r=5,...o}=e,a=Jh(n),i=Object.keys(a);function s(f){return`@media (min-width:${typeof n[f]=="number"?n[f]:f}${t})`}function c(f){return`@media (max-width:${(typeof n[f]=="number"?n[f]:f)-r/100}${t})`}function l(f,m){const g=i.indexOf(m);return`@media (min-width:${typeof n[f]=="number"?n[f]:f}${t}) and (max-width:${(g!==-1&&typeof n[i[g]]=="number"?n[i[g]]:m)-r/100}${t})`}function u(f){return i.indexOf(f)+1<i.length?l(f,i[i.indexOf(f)+1]):s(f)}function d(f){const m=i.indexOf(f);return m===0?s(i[1]):m===i.length-1?c(i[m]):l(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:s,down:c,between:l,only:u,not:d,unit:t,...o}}const em={borderRadius:4};function Rc(e=8,n=ei({spacing:e})){if(e.mui)return e;const t=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(a=>{const i=n(a);return typeof i=="number"?`${i}px`:i}).join(" "));return t.mui=!0,t}function tm(e,n){const t=this;if(t.vars){if(!t.colorSchemes?.[e]||typeof t.getColorSchemeSelector!="function")return{};let r=t.getColorSchemeSelector(e);return r==="&"?n:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:n})}return t.palette.mode===e?n:{}}function ui(e={},...n){const{breakpoints:t={},palette:r={},spacing:o,shape:a={},...i}=e,s=Xh(t),c=Rc(o);let l=kt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...em,...a}},i);return l=pp(l),l.applyStyles=tm,l=n.reduce((u,d)=>kt(u,d),l),l.unstable_sxConfig={...Eo,...i?.unstable_sxConfig},l.unstable_sx=function(d){return qr({sx:d,theme:this})},l}function rm(e){return Object.keys(e).length===0}function nm(e=null){const n=Z.useContext(Ac);return!n||rm(n)?e:n}const om=ui();function am(e=om){return nm(e)}const im={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Kt(e,n,t="Mui"){const r=im[n];return r?`${t}-${r}`:`${Xf.generate(e)}-${n}`}function yr(e,n,t="Mui"){const r={};return n.forEach(o=>{r[o]=Kt(e,o,t)}),r}function $c(e,n=""){return e.displayName||e.name||n}function jc(e,n,t){const r=$c(n);return e.displayName||(r!==""?`${t}(${r})`:t)}function sm(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return $c(e,"Component");if(typeof e=="object")switch(e.$$typeof){case go.ForwardRef:return jc(e,e.render,"ForwardRef");case go.Memo:return jc(e,e.type,"memo");default:return}}}function Lc(e){const{variants:n,...t}=e,r={variants:n,style:Er(t),isProcessed:!0};return r.style===t||n&&n.forEach(o=>{typeof o.style!="function"&&(o.style=Er(o.style))}),r}const cm=ui();function di(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Tr(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function lm(e){return e?(n,t)=>t[e]:null}function um(e,n,t){e.theme=hm(e.theme)?t:e.theme[n]||e.theme}function $o(e,n,t){const r=typeof n=="function"?n(e):n;if(Array.isArray(r))return r.flatMap(o=>$o(e,o,t));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=t?Tr(r.style,t):r.style;else{const{variants:a,...i}=r;o=t?Tr(Er(i),t):i}return zc(e,r.variants,[o],t)}return r?.isProcessed?t?Tr(Er(r.style),t):r.style:t?Tr(Er(r),t):r}function zc(e,n,t=[],r=void 0){let o;e:for(let a=0;a<n.length;a+=1){const i=n[a];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const s in i.props)if(e[s]!==i.props[s]&&e.ownerState?.[s]!==i.props[s])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},t.push(r?Tr(Er(i.style(o)),r):i.style(o))):t.push(r?Tr(Er(i.style),r):i.style)}return t}function dm(e={}){const{themeId:n,defaultTheme:t=cm,rootShouldForwardProp:r=di,slotShouldForwardProp:o=di}=e;function a(s){um(s,n,t)}return(s,c={})=>{Qh(s,O=>O.filter(I=>I!==qr));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:m=lm(Bc(u)),...g}=c,p=l&&l.startsWith("Mui")||u?"components":"custom",b=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,x=f||!1;let S=di;u==="Root"||u==="root"?S=r:u?S=o:mm(s)&&(S=void 0);const T=Gh(s,{shouldForwardProp:S,label:pm(l,u),...g}),D=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(W){return $o(W,O,W.theme.modularCssLayers?p:void 0)};if(ir(O)){const I=Lc(O);return function(U){return I.variants?$o(U,I,U.theme.modularCssLayers?p:void 0):U.theme.modularCssLayers?Tr(I.style,p):I.style}}return O},k=(...O)=>{const I=[],W=O.map(D),U=[];if(I.push(a),l&&m&&U.push(function(M){const H=M.theme.components?.[l]?.styleOverrides;if(!H)return null;const Y={};for(const ee in H)Y[ee]=$o(M,H[ee],M.theme.modularCssLayers?"theme":void 0);return m(M,Y)}),l&&!b&&U.push(function(M){const H=M.theme?.components?.[l]?.variants;return H?zc(M,H,[],M.theme.modularCssLayers?"theme":void 0):null}),x||U.push(qr),Array.isArray(W[0])){const v=W.shift(),M=new Array(I.length).fill(""),P=new Array(U.length).fill("");let H;H=[...M,...v,...P],H.raw=[...M,...v.raw,...P],I.unshift(H)}const $=[...I,...W,...U],Q=T(...$);return s.muiName&&(Q.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(Q.displayName=fm(l,u,s)),Q};return T.withConfig&&(k.withConfig=T.withConfig),k}}function fm(e,n,t){return e?`${e}${Ct(n||"")}`:`Styled(${sm(t)})`}function pm(e,n){let t;return process.env.NODE_ENV!=="production"&&e&&(t=`${e}-${Bc(n||"Root")}`),t}function hm(e){for(const n in e)return!1;return!0}function mm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Bc(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function fi(e,n,t=!1){const r={...n};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const i=e[a],s=n[a];if(!s)r[a]=i||{};else if(!i)r[a]=s;else{r[a]={...s};for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){const l=c;r[a][l]=fi(i[l],s[l],t)}}}else a==="className"&&t&&n.className?r.className=Be(e?.className,n?.className):a==="style"&&t&&n.style?r.style={...e?.style,...n?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function gm(e,n=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(e,t))}function pi(e,n=0,t=1){return process.env.NODE_ENV!=="production"&&(e<n||e>t)&&console.error(`MUI: The value provided ${e} is out of range [${n}, ${t}].`),gm(e,n,t)}function vm(e){e=e.slice(1);const n=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let t=e.match(n);return t&&t[0].length===1&&(t=t.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),t?`rgb${t.length===4?"a":""}(${t.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function br(e){if(e.type)return e;if(e.charAt(0)==="#")return br(vm(e));const n=e.indexOf("("),t=e.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(t))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
77
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:mr(9,e));let r=e.substring(n+1,e.length-1),o;if(t==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
78
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:mr(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:t,values:r,colorSpace:o}}const ym=e=>{const n=br(e);return n.values.slice(0,3).map((t,r)=>n.type.includes("hsl")&&r!==0?`${t}%`:t).join(" ")},Pn=(e,n)=>{try{return ym(e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}};function jo(e){const{type:n,colorSpace:t}=e;let{values:r}=e;return n.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):n.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),n.includes("color")?r=`${t} ${r.join(" ")}`:r=`${r.join(", ")}`,`${n}(${r})`}function Vc(e){e=br(e);const{values:n}=e,t=n[0],r=n[1]/100,o=n[2]/100,a=r*Math.min(o,1-o),i=(l,u=(l+t/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",c.push(n[3])),jo({type:s,values:c})}function hi(e){e=br(e);let n=e.type==="hsl"||e.type==="hsla"?br(Vc(e)).values:e.values;return n=n.map(t=>(e.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function Fc(e,n){const t=hi(e),r=hi(n);return(Math.max(t,r)+.05)/(Math.min(t,r)+.05)}function Lo(e,n){return e=br(e),n=pi(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,jo(e)}function Or(e,n,t){try{return Lo(e,n)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function zo(e,n){if(e=br(e),n=pi(n),e.type.includes("hsl"))e.values[2]*=1-n;else if(e.type.includes("rgb")||e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]*=1-n;return jo(e)}function Ie(e,n,t){try{return zo(e,n)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function Bo(e,n){if(e=br(e),n=pi(n),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*n;else if(e.type.includes("rgb"))for(let t=0;t<3;t+=1)e.values[t]+=(255-e.values[t])*n;else if(e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]+=(1-e.values[t])*n;return jo(e)}function Ne(e,n,t){try{return Bo(e,n)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function bm(e,n=.15){return hi(e)>.5?zo(e,n):Bo(e,n)}function Vo(e,n,t){try{return bm(e,n)}catch{return e}}const wm=Z.createContext(void 0);process.env.NODE_ENV!=="production"&&(N.node,N.object);function _m(e){const{theme:n,name:t,props:r}=e;if(!n||!n.components||!n.components[t])return r;const o=n.components[t];return o.defaultProps?fi(o.defaultProps,r,n.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?fi(o,r,n.components.mergeClassNameAndStyle):r}function xm({props:e,name:n}){const t=Z.useContext(wm);return _m({props:e,name:n,theme:{components:t}})}const Yc={theme:void 0};function Sm(e){let n,t;return function(o){let a=n;return(a===void 0||o.theme!==t)&&(Yc.theme=o.theme,a=Lc(e(Yc)),n=a,t=o.theme),a}}function Cm(e=""){function n(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${n(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${n(...o)})`}const Hc=(e,n,t,r=[])=>{let o=e;n.forEach((a,i)=>{i===n.length-1?Array.isArray(o)?o[Number(a)]=t:o&&typeof o=="object"&&(o[a]=t):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},km=(e,n,t)=>{function r(o,a=[],i=[]){Object.entries(o).forEach(([s,c])=>{(!t||t&&!t([...a,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...a,s],Array.isArray(c)?[...i,s]:i):n([...a,s],c,i))})}r(e)},Dm=(e,n)=>typeof n=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?n:`${n}px`:n;function mi(e,n){const{prefix:t,shouldSkipGeneratingVar:r}=n||{},o={},a={},i={};return km(e,(s,c,l)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(s,c))){const u=`--${t?`${t}-`:""}${s.join("-")}`,d=Dm(s,c);Object.assign(o,{[u]:d}),Hc(a,s,`var(${u})`,l),Hc(i,s,`var(${u}, ${d})`,l)}},s=>s[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function Em(e,n={}){const{getSelector:t=x,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=n,{colorSchemes:i={},components:s,defaultColorScheme:c="light",...l}=e,{vars:u,css:d,varsWithDefaults:f}=mi(l,n);let m=f;const g={},{[c]:p,...b}=i;if(Object.entries(b||{}).forEach(([D,k])=>{const{vars:O,css:I,varsWithDefaults:W}=mi(k,n);m=kt(m,W),g[D]={css:I,vars:O}}),p){const{css:D,vars:k,varsWithDefaults:O}=mi(p,n);m=kt(m,O),g[c]={css:D,vars:k}}function x(D,k){let O=o;if(o==="class"&&(O=".%s"),o==="data"&&(O="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(O=`[${o}="%s"]`),D){if(O==="media")return e.defaultColorScheme===D?":root":{[`@media (prefers-color-scheme: ${i[D]?.palette?.mode||D})`]:{":root":k}};if(O)return e.defaultColorScheme===D?`:root, ${O.replace("%s",String(D))}`:O.replace("%s",String(D))}return":root"}return{vars:m,generateThemeVars:()=>{let D={...u};return Object.entries(g).forEach(([,{vars:k}])=>{D=kt(D,k)}),D},generateStyleSheets:()=>{const D=[],k=e.defaultColorScheme||"light";function O(U,$){Object.keys($).length&&D.push(typeof U=="string"?{[U]:{...$}}:U)}O(t(void 0,{...d}),d);const{[k]:I,...W}=g;if(I){const{css:U}=I,$=i[k]?.palette?.mode,Q=!r&&$?{colorScheme:$,...U}:{...U};O(t(k,{...Q}),Q)}return Object.entries(W).forEach(([U,{css:$}])=>{const Q=i[U]?.palette?.mode,v=!r&&Q?{colorScheme:Q,...$}:{...$};O(t(U,{...v}),v)}),a&&D.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),D}}}function Tm(e){return function(t){return e==="media"?(process.env.NODE_ENV!=="production"&&t!=="light"&&t!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const In={black:"#000",white:"#fff"},Om={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Jr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Xr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Nn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},en={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},tn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},rn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Uc(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:In.white,default:In.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Wc=Uc();function Zc(){return{text:{primary:In.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:In.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const gi=Zc();function qc(e,n,t,r){const o=r.light||r,a=r.dark||r*1.5;e[n]||(e.hasOwnProperty(t)?e[n]=e[t]:n==="light"?e.light=Bo(e.main,o):n==="dark"&&(e.dark=zo(e.main,a)))}function Kc(e,n,t,r,o){const a=o.light||o,i=o.dark||o*1.5;n[t]||(n.hasOwnProperty(r)?n[t]=n[r]:t==="light"?n.light=`color-mix(in ${e}, ${n.main}, #fff ${(a*100).toFixed(0)}%)`:t==="dark"&&(n.dark=`color-mix(in ${e}, ${n.main}, #000 ${(i*100).toFixed(0)}%)`))}function Mm(e="light"){return e==="dark"?{main:en[200],light:en[50],dark:en[400]}:{main:en[700],light:en[400],dark:en[800]}}function Am(e="light"){return e==="dark"?{main:Jr[200],light:Jr[50],dark:Jr[400]}:{main:Jr[500],light:Jr[300],dark:Jr[700]}}function Pm(e="light"){return e==="dark"?{main:Xr[500],light:Xr[300],dark:Xr[700]}:{main:Xr[700],light:Xr[400],dark:Xr[800]}}function Im(e="light"){return e==="dark"?{main:tn[400],light:tn[300],dark:tn[700]}:{main:tn[700],light:tn[500],dark:tn[900]}}function Nm(e="light"){return e==="dark"?{main:rn[400],light:rn[300],dark:rn[700]}:{main:rn[800],light:rn[500],dark:rn[900]}}function Rm(e="light"){return e==="dark"?{main:Nn[400],light:Nn[300],dark:Nn[700]}:{main:"#ed6c02",light:Nn[500],dark:Nn[900]}}function $m(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function vi(e){const{mode:n="light",contrastThreshold:t=3,tonalOffset:r=.2,colorSpace:o,...a}=e,i=e.primary||Mm(n),s=e.secondary||Am(n),c=e.error||Pm(n),l=e.info||Im(n),u=e.success||Nm(n),d=e.warning||Rm(n);function f(b){if(o)return $m(b);const x=Fc(b,gi.text.primary)>=t?gi.text.primary:Wc.text.primary;if(process.env.NODE_ENV!=="production"){const S=Fc(b,x);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${x} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
79
+ `))}return x}const m=({color:b,name:x,mainShade:S=500,lightShade:T=300,darkShade:D=700})=>{if(b={...b},!b.main&&b[S]&&(b.main=b[S]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
80
+ The color object needs to have a \`main\` property or a \`${S}\` property.`:mr(11,x?` (${x})`:"",S));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
81
+ \`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
96
82
 
97
83
  Did you intend to use one of the following approaches?
98
84
 
@@ -104,189 +90,87 @@ const theme1 = createTheme({ palette: {
104
90
 
105
91
  const theme2 = createTheme({ palette: {
106
92
  primary: { main: green[500] },
107
- } });`:Mr(12,S?` (${S})`:"",JSON.stringify(y.main)));return o?(ql(o,y,"light",k,n),ql(o,y,"dark",E,n)):(Zl(y,"light",k,n),Zl(y,"dark",E,n)),y.contrastText||(y.contrastText=f(y.main)),y};let g;return r==="light"?g=Ul():r==="dark"&&(g=Wl()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${r}\` is not supported.`)),Pt({common:{...Xn},mode:r,primary:m({color:a,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:d,name:"warning"}),info:m({color:l,name:"info"}),success:m({color:u,name:"success"}),grey:Gg,contrastThreshold:t,getContrastText:f,augmentColor:m,tonalOffset:n,...g},i)}function o0(e){const r={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(r[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),r}function i0(e,r){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...r}}function a0(e){return Math.round(e*1e5)/1e5}const Kl={textTransform:"uppercase"},Gl='"Roboto", "Helvetica", "Arial", sans-serif';function s0(e,r){const{fontFamily:t=Gl,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof r=="function"?r(e):r;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=n/14,m=u||(y=>`${y/c*f}rem`),g=(y,S,C,k,E)=>({fontFamily:t,fontWeight:y,fontSize:m(S),lineHeight:C,...t===Gl?{letterSpacing:`${a0(k/S)}em`}:{},...E,...l}),p={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,Kl),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,Kl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pt({htmlFontSize:c,pxToRem:m,fontFamily:t,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...p},d,{clone:!1})}const c0=.2,l0=.14,u0=.12;function He(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${c0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${l0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${u0})`].join(",")}const d0=["none",He(0,2,1,-1,0,1,1,0,0,1,3,0),He(0,3,1,-2,0,2,2,0,0,1,5,0),He(0,3,3,-2,0,3,4,0,0,1,8,0),He(0,2,4,-1,0,4,5,0,0,1,10,0),He(0,3,5,-1,0,5,8,0,0,1,14,0),He(0,3,5,-1,0,6,10,0,0,1,18,0),He(0,4,5,-2,0,7,10,1,0,2,16,1),He(0,5,5,-3,0,8,10,1,0,3,14,2),He(0,5,6,-3,0,9,12,1,0,3,16,2),He(0,6,6,-3,0,10,14,1,0,4,18,3),He(0,6,7,-4,0,11,15,1,0,4,20,3),He(0,7,8,-4,0,12,17,2,0,5,22,4),He(0,7,8,-4,0,13,19,2,0,5,24,4),He(0,7,9,-4,0,14,21,2,0,5,26,4),He(0,8,9,-5,0,15,22,2,0,6,28,5),He(0,8,10,-5,0,16,24,2,0,6,30,5),He(0,8,11,-5,0,17,26,2,0,6,32,5),He(0,9,11,-5,0,18,28,2,0,7,34,6),He(0,9,12,-6,0,19,29,2,0,7,36,6),He(0,10,13,-6,0,20,31,3,0,8,38,7),He(0,10,13,-6,0,21,33,3,0,8,40,7),He(0,10,14,-6,0,22,35,3,0,8,42,7),He(0,11,14,-7,0,23,36,3,0,9,44,8),He(0,11,15,-7,0,24,38,3,0,9,46,8)],f0={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ql={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xl(e){return`${Math.round(e)}ms`}function p0(e){if(!e)return 0;const r=e/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function h0(e){const r={...f0,...e.easing},t={...Ql,...e.duration};return{getAutoHeightDuration:p0,create:(o=["all"],i={})=>{const{duration:a=t.standard,easing:s=r.easeInOut,delay:c=0,...l}=i;if(process.env.NODE_ENV!=="production"){const u=f=>typeof f=="string",d=f=>!Number.isNaN(parseFloat(f));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!d(c)&&!u(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
108
- `)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:Xl(a)} ${s} ${typeof c=="string"?c:Xl(c)}`).join(",")},...e,easing:r,duration:t}}const m0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function g0(e){return nr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Jl(e={}){const r={...e};function t(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[a,s]=o[i];!g0(s)||a.startsWith("unstable_")?delete n[a]:nr(s)&&(n[a]={...s},t(n[a]))}}return t(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
93
+ } });`:mr(12,x?` (${x})`:"",JSON.stringify(b.main)));return o?(Kc(o,b,"light",T,r),Kc(o,b,"dark",D,r)):(qc(b,"light",T,r),qc(b,"dark",D,r)),b.contrastText||(b.contrastText=f(b.main)),b};let g;return n==="light"?g=Uc():n==="dark"&&(g=Zc()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${n}\` is not supported.`)),kt({common:{...In},mode:n,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:d,name:"warning"}),info:m({color:l,name:"info"}),success:m({color:u,name:"success"}),grey:Om,contrastThreshold:t,getContrastText:f,augmentColor:m,tonalOffset:r,...g},a)}function jm(e){const n={};return Object.entries(e).forEach(r=>{const[o,a]=r;typeof a=="object"&&(n[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),n}function Lm(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function zm(e){return Math.round(e*1e5)/1e5}const Gc={textTransform:"uppercase"},Qc='"Roboto", "Helvetica", "Arial", sans-serif';function Bm(e,n){const{fontFamily:t=Qc,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof n=="function"?n(e):n;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=r/14,m=u||(b=>`${b/c*f}rem`),g=(b,x,S,T,D)=>({fontFamily:t,fontWeight:b,fontSize:m(x),lineHeight:S,...t===Qc?{letterSpacing:`${zm(T/x)}em`}:{},...D,...l}),p={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(i,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(i,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(i,14,1.75,.4,Gc),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Gc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kt({htmlFontSize:c,pxToRem:m,fontFamily:t,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:s,...p},d,{clone:!1})}const Vm=.2,Fm=.14,Ym=.12;function He(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Vm})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Fm})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ym})`].join(",")}const Hm=["none",He(0,2,1,-1,0,1,1,0,0,1,3,0),He(0,3,1,-2,0,2,2,0,0,1,5,0),He(0,3,3,-2,0,3,4,0,0,1,8,0),He(0,2,4,-1,0,4,5,0,0,1,10,0),He(0,3,5,-1,0,5,8,0,0,1,14,0),He(0,3,5,-1,0,6,10,0,0,1,18,0),He(0,4,5,-2,0,7,10,1,0,2,16,1),He(0,5,5,-3,0,8,10,1,0,3,14,2),He(0,5,6,-3,0,9,12,1,0,3,16,2),He(0,6,6,-3,0,10,14,1,0,4,18,3),He(0,6,7,-4,0,11,15,1,0,4,20,3),He(0,7,8,-4,0,12,17,2,0,5,22,4),He(0,7,8,-4,0,13,19,2,0,5,24,4),He(0,7,9,-4,0,14,21,2,0,5,26,4),He(0,8,9,-5,0,15,22,2,0,6,28,5),He(0,8,10,-5,0,16,24,2,0,6,30,5),He(0,8,11,-5,0,17,26,2,0,6,32,5),He(0,9,11,-5,0,18,28,2,0,7,34,6),He(0,9,12,-6,0,19,29,2,0,7,36,6),He(0,10,13,-6,0,20,31,3,0,8,38,7),He(0,10,13,-6,0,21,33,3,0,8,40,7),He(0,10,14,-6,0,22,35,3,0,8,42,7),He(0,11,14,-7,0,23,36,3,0,9,44,8),He(0,11,15,-7,0,24,38,3,0,9,46,8)],Um={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Wm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jc(e){return`${Math.round(e)}ms`}function Zm(e){if(!e)return 0;const n=e/36;return Math.min(Math.round((4+15*n**.25+n/5)*10),3e3)}function qm(e){const n={...Um,...e.easing},t={...Wm,...e.duration};return{getAutoHeightDuration:Zm,create:(o=["all"],a={})=>{const{duration:i=t.standard,easing:s=n.easeInOut,delay:c=0,...l}=a;if(process.env.NODE_ENV!=="production"){const u=f=>typeof f=="string",d=f=>!Number.isNaN(parseFloat(f));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(i)&&!u(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!d(c)&&!u(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
94
+ `)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:Jc(i)} ${s} ${typeof c=="string"?c:Jc(c)}`).join(",")},...e,easing:n,duration:t}}const Km={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Gm(e){return ir(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Xc(e={}){const n={...e};function t(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[i,s]=o[a];!Gm(s)||i.startsWith("unstable_")?delete r[i]:ir(s)&&(r[i]={...s},t(r[i]))}}return t(n),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
109
95
 
110
- const theme = ${JSON.stringify(r,null,2)};
96
+ const theme = ${JSON.stringify(n,null,2)};
111
97
 
112
98
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
113
99
  theme.transitions = createTransitions(theme.transitions || {});
114
100
 
115
- export default theme;`}function eu(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const v0=e=>{if(!Number.isNaN(+e))return+e;const r=e.match(/\d*\.?\d+/g);if(!r)return 0;let t=0;for(let n=0;n<r.length;n+=1)t+=+r[n];return t};function y0(e){Object.assign(e,{alpha(r,t){const n=this||e;return n.colorSpace?`oklch(from ${r} l c h / ${typeof t=="string"?`calc(${t})`:t})`:n.vars?`rgba(${r.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof t=="string"?`calc(${t})`:t})`:ii(r,v0(t))},lighten(r,t){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${r}, #fff ${eu(t)})`:si(r,t)},darken(r,t){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${r}, #000 ${eu(t)})`:ai(r,t)}})}function Ka(e={},...r){const{breakpoints:t,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Mr(20));const d=qa({...i,colorSpace:l}),f=Va(e);let m=Pt(f,{mixins:i0(f.breakpoints,n),palette:d,shadows:d0.slice(),typography:s0(d,s),transitions:h0(a),zIndex:{...m0}});if(m=Pt(m,u),m=r.reduce((g,p)=>Pt(g,p),m),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(y,S)=>{let C;for(C in y){const k=y[C];if(g.includes(C)&&Object.keys(k).length>0){if(process.env.NODE_ENV!=="production"){const E=Ct("",C);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${E}' syntax:`,JSON.stringify({root:{[`&.${E}`]:k}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
116
- `))}y[C]={}}}};Object.keys(m.components).forEach(y=>{const S=m.components[y].styleOverrides;S&&y.startsWith("Mui")&&p(S,y)})}return m.unstable_sxConfig={...Un,...u?.unstable_sxConfig},m.unstable_sx=function(p){return zr({sx:p,theme:this})},m.toRuntimeSource=Jl,y0(m),m}function Ga(e){let r;return e<1?r=5.11916*e**2:r=4.5*Math.log(e+1)+2,Math.round(r*10)/1e3}const b0=[...Array(25)].map((e,r)=>{if(r===0)return"none";const t=Ga(r);return`linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`});function tu(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ru(e){return e==="dark"?b0:[]}function w0(e){const{palette:r={mode:"light"},opacity:t,overlays:n,colorSpace:o,...i}=e,a=qa({...r,colorSpace:o});return{palette:a,opacity:{...tu(a.mode),...t},overlays:n||ru(a.mode),...i}}function _0(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const x0=e=>[...[...Array(25)].map((r,t)=>`--${e?`${e}-`:""}overlays-${t}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],S0=e=>(r,t)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===r){if(r==="dark"){const a={};return x0(e.cssVarPrefix).forEach(s=>{a[s]=t[s],delete t[s]}),i==="media"?{[n]:t,"@media (prefers-color-scheme: dark)":{[n]:a}}:i?{[i.replace("%s",r)]:a,[`${n}, ${i.replace("%s",r)}`]:t}:{[n]:{...t,...a}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(r))}`}else if(r){if(i==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[n]:t}};if(i)return i.replace("%s",String(r))}return n};function C0(e,r){r.forEach(t=>{e[t]||(e[t]={})})}function B(e,r,t){!e[r]&&t&&(e[r]=t)}function eo(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ll(e)}function yr(e,r){`${r}Channel`in e||(e[`${r}Channel`]=Qn(eo(e[r]),`MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
117
- To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function E0(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const sr=e=>{try{return e()}catch{}},k0=(e="mui")=>Hg(e);function Qa(e,r,t,n,o){if(!t)return;t=t===!0?{}:t;const i=o==="dark"?"dark":"light";if(!n){r[o]=w0({...t,palette:{mode:i,...t?.palette},colorSpace:e});return}const{palette:a,...s}=Ka({...n,palette:{mode:i,...t?.palette},colorSpace:e});return r[o]={...t,palette:a,opacity:{...tu(i),...t?.opacity},overlays:t?.overlays||ru(i)},s}function D0(e={},...r){const{colorSchemes:t={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=_0,colorSchemeSelector:c=t.light&&t.dark?"media":void 0,rootSelector:l=":root",...u}=e,d=Object.keys(t)[0],f=n||(t.light&&d!=="light"?"light":d),m=k0(i),{[f]:g,light:p,dark:y,...S}=t,C={...S};let k=g;if((f==="dark"&&!("dark"in t)||f==="light"&&!("light"in t))&&(k=!0),!k)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Mr(21,f));let E;a&&(E="oklch");const _=Qa(E,C,k,u,f);p&&!C.light&&Qa(E,C,p,void 0,"light"),y&&!C.dark&&Qa(E,C,y,void 0,"dark");let O={defaultColorScheme:f,..._,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:m,colorSchemes:C,font:{...o0(_.typography),..._.font},spacing:E0(u.spacing)};Object.keys(O.colorSchemes).forEach(K=>{const v=O.colorSchemes[K].palette,I=U=>{const H=U.split("-"),ee=H[1],re=H[2];return m(U,v[ee][re])};v.mode==="light"&&(B(v.common,"background","#fff"),B(v.common,"onBackground","#000")),v.mode==="dark"&&(B(v.common,"background","#000"),B(v.common,"onBackground","#fff"));function A(U,H,ee){if(E){let re;return U===Fr&&(re=`transparent ${((1-ee)*100).toFixed(0)}%`),U===$e&&(re=`#000 ${(ee*100).toFixed(0)}%`),U===je&&(re=`#fff ${(ee*100).toFixed(0)}%`),`color-mix(in ${E}, ${H}, ${re})`}return U(H,ee)}if(C0(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){B(v.Alert,"errorColor",A($e,v.error.light,.6)),B(v.Alert,"infoColor",A($e,v.info.light,.6)),B(v.Alert,"successColor",A($e,v.success.light,.6)),B(v.Alert,"warningColor",A($e,v.warning.light,.6)),B(v.Alert,"errorFilledBg",I("palette-error-main")),B(v.Alert,"infoFilledBg",I("palette-info-main")),B(v.Alert,"successFilledBg",I("palette-success-main")),B(v.Alert,"warningFilledBg",I("palette-warning-main")),B(v.Alert,"errorFilledColor",sr(()=>v.getContrastText(v.error.main))),B(v.Alert,"infoFilledColor",sr(()=>v.getContrastText(v.info.main))),B(v.Alert,"successFilledColor",sr(()=>v.getContrastText(v.success.main))),B(v.Alert,"warningFilledColor",sr(()=>v.getContrastText(v.warning.main))),B(v.Alert,"errorStandardBg",A(je,v.error.light,.9)),B(v.Alert,"infoStandardBg",A(je,v.info.light,.9)),B(v.Alert,"successStandardBg",A(je,v.success.light,.9)),B(v.Alert,"warningStandardBg",A(je,v.warning.light,.9)),B(v.Alert,"errorIconColor",I("palette-error-main")),B(v.Alert,"infoIconColor",I("palette-info-main")),B(v.Alert,"successIconColor",I("palette-success-main")),B(v.Alert,"warningIconColor",I("palette-warning-main")),B(v.AppBar,"defaultBg",I("palette-grey-100")),B(v.Avatar,"defaultBg",I("palette-grey-400")),B(v.Button,"inheritContainedBg",I("palette-grey-300")),B(v.Button,"inheritContainedHoverBg",I("palette-grey-A100")),B(v.Chip,"defaultBorder",I("palette-grey-400")),B(v.Chip,"defaultAvatarColor",I("palette-grey-700")),B(v.Chip,"defaultIconColor",I("palette-grey-700")),B(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),B(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),B(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),B(v.LinearProgress,"primaryBg",A(je,v.primary.main,.62)),B(v.LinearProgress,"secondaryBg",A(je,v.secondary.main,.62)),B(v.LinearProgress,"errorBg",A(je,v.error.main,.62)),B(v.LinearProgress,"infoBg",A(je,v.info.main,.62)),B(v.LinearProgress,"successBg",A(je,v.success.main,.62)),B(v.LinearProgress,"warningBg",A(je,v.warning.main,.62)),B(v.Skeleton,"bg",E?A(Fr,v.text.primary,.11):`rgba(${I("palette-text-primaryChannel")} / 0.11)`),B(v.Slider,"primaryTrack",A(je,v.primary.main,.62)),B(v.Slider,"secondaryTrack",A(je,v.secondary.main,.62)),B(v.Slider,"errorTrack",A(je,v.error.main,.62)),B(v.Slider,"infoTrack",A(je,v.info.main,.62)),B(v.Slider,"successTrack",A(je,v.success.main,.62)),B(v.Slider,"warningTrack",A(je,v.warning.main,.62));const U=E?A($e,v.background.default,.6825):ci(v.background.default,.8);B(v.SnackbarContent,"bg",U),B(v.SnackbarContent,"color",sr(()=>E?Za.text.primary:v.getContrastText(U))),B(v.SpeedDialAction,"fabHoverBg",ci(v.background.paper,.15)),B(v.StepConnector,"border",I("palette-grey-400")),B(v.StepContent,"border",I("palette-grey-400")),B(v.Switch,"defaultColor",I("palette-common-white")),B(v.Switch,"defaultDisabledColor",I("palette-grey-100")),B(v.Switch,"primaryDisabledColor",A(je,v.primary.main,.62)),B(v.Switch,"secondaryDisabledColor",A(je,v.secondary.main,.62)),B(v.Switch,"errorDisabledColor",A(je,v.error.main,.62)),B(v.Switch,"infoDisabledColor",A(je,v.info.main,.62)),B(v.Switch,"successDisabledColor",A(je,v.success.main,.62)),B(v.Switch,"warningDisabledColor",A(je,v.warning.main,.62)),B(v.TableCell,"border",A(je,A(Fr,v.divider,1),.88)),B(v.Tooltip,"bg",A(Fr,v.grey[700],.92))}if(v.mode==="dark"){B(v.Alert,"errorColor",A(je,v.error.light,.6)),B(v.Alert,"infoColor",A(je,v.info.light,.6)),B(v.Alert,"successColor",A(je,v.success.light,.6)),B(v.Alert,"warningColor",A(je,v.warning.light,.6)),B(v.Alert,"errorFilledBg",I("palette-error-dark")),B(v.Alert,"infoFilledBg",I("palette-info-dark")),B(v.Alert,"successFilledBg",I("palette-success-dark")),B(v.Alert,"warningFilledBg",I("palette-warning-dark")),B(v.Alert,"errorFilledColor",sr(()=>v.getContrastText(v.error.dark))),B(v.Alert,"infoFilledColor",sr(()=>v.getContrastText(v.info.dark))),B(v.Alert,"successFilledColor",sr(()=>v.getContrastText(v.success.dark))),B(v.Alert,"warningFilledColor",sr(()=>v.getContrastText(v.warning.dark))),B(v.Alert,"errorStandardBg",A($e,v.error.light,.9)),B(v.Alert,"infoStandardBg",A($e,v.info.light,.9)),B(v.Alert,"successStandardBg",A($e,v.success.light,.9)),B(v.Alert,"warningStandardBg",A($e,v.warning.light,.9)),B(v.Alert,"errorIconColor",I("palette-error-main")),B(v.Alert,"infoIconColor",I("palette-info-main")),B(v.Alert,"successIconColor",I("palette-success-main")),B(v.Alert,"warningIconColor",I("palette-warning-main")),B(v.AppBar,"defaultBg",I("palette-grey-900")),B(v.AppBar,"darkBg",I("palette-background-paper")),B(v.AppBar,"darkColor",I("palette-text-primary")),B(v.Avatar,"defaultBg",I("palette-grey-600")),B(v.Button,"inheritContainedBg",I("palette-grey-800")),B(v.Button,"inheritContainedHoverBg",I("palette-grey-700")),B(v.Chip,"defaultBorder",I("palette-grey-700")),B(v.Chip,"defaultAvatarColor",I("palette-grey-300")),B(v.Chip,"defaultIconColor",I("palette-grey-300")),B(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),B(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),B(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),B(v.LinearProgress,"primaryBg",A($e,v.primary.main,.5)),B(v.LinearProgress,"secondaryBg",A($e,v.secondary.main,.5)),B(v.LinearProgress,"errorBg",A($e,v.error.main,.5)),B(v.LinearProgress,"infoBg",A($e,v.info.main,.5)),B(v.LinearProgress,"successBg",A($e,v.success.main,.5)),B(v.LinearProgress,"warningBg",A($e,v.warning.main,.5)),B(v.Skeleton,"bg",E?A(Fr,v.text.primary,.13):`rgba(${I("palette-text-primaryChannel")} / 0.13)`),B(v.Slider,"primaryTrack",A($e,v.primary.main,.5)),B(v.Slider,"secondaryTrack",A($e,v.secondary.main,.5)),B(v.Slider,"errorTrack",A($e,v.error.main,.5)),B(v.Slider,"infoTrack",A($e,v.info.main,.5)),B(v.Slider,"successTrack",A($e,v.success.main,.5)),B(v.Slider,"warningTrack",A($e,v.warning.main,.5));const U=E?A(je,v.background.default,.985):ci(v.background.default,.98);B(v.SnackbarContent,"bg",U),B(v.SnackbarContent,"color",sr(()=>E?Hl.text.primary:v.getContrastText(U))),B(v.SpeedDialAction,"fabHoverBg",ci(v.background.paper,.15)),B(v.StepConnector,"border",I("palette-grey-600")),B(v.StepContent,"border",I("palette-grey-600")),B(v.Switch,"defaultColor",I("palette-grey-300")),B(v.Switch,"defaultDisabledColor",I("palette-grey-600")),B(v.Switch,"primaryDisabledColor",A($e,v.primary.main,.55)),B(v.Switch,"secondaryDisabledColor",A($e,v.secondary.main,.55)),B(v.Switch,"errorDisabledColor",A($e,v.error.main,.55)),B(v.Switch,"infoDisabledColor",A($e,v.info.main,.55)),B(v.Switch,"successDisabledColor",A($e,v.success.main,.55)),B(v.Switch,"warningDisabledColor",A($e,v.warning.main,.55)),B(v.TableCell,"border",A($e,A(Fr,v.divider,1),.68)),B(v.Tooltip,"bg",A(Fr,v.grey[700],.92))}yr(v.background,"default"),yr(v.background,"paper"),yr(v.common,"background"),yr(v.common,"onBackground"),yr(v,"divider"),Object.keys(v).forEach(U=>{const H=v[U];U!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&B(v[U],"mainChannel",Qn(eo(H.main))),H.light&&B(v[U],"lightChannel",Qn(eo(H.light))),H.dark&&B(v[U],"darkChannel",Qn(eo(H.dark))),H.contrastText&&B(v[U],"contrastTextChannel",Qn(eo(H.contrastText))),U==="text"&&(yr(v[U],"primary"),yr(v[U],"secondary")),U==="action"&&(H.active&&yr(v[U],"active"),H.selected&&yr(v[U],"selected")))})}),O=r.reduce((K,v)=>Pt(K,v),O);const N={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:S0(O),enableContrastVars:a},{vars:q,generateThemeVars:Z,generateStyleSheets:L}=qg(O,N);return O.vars=q,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([K,v])=>{O[K]=v}),O.generateThemeVars=Z,O.generateStyleSheets=L,O.generateSpacing=function(){return Pl(u.spacing,ka(this))},O.getColorSchemeSelector=Kg(c),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=s,O.unstable_sxConfig={...Un,...u?.unstable_sxConfig},O.unstable_sx=function(v){return zr({sx:v,theme:this})},O.toRuntimeSource=Jl,O}function nu(e,r,t){e.colorSchemes&&t&&(e.colorSchemes[r]={...t!==!0&&t,palette:qa({...t===!0?{}:t.palette,mode:r})})}function ou(e={},...r){const{palette:t,cssVariables:n=!1,colorSchemes:o=t?void 0:{light:!0},defaultColorScheme:i=t?.mode,...a}=e,s=i||"light",c=o?.[s],l={...o,...t?{[s]:{...typeof c!="boolean"&&c,palette:t}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Ka(e,...r);let u=t;"palette"in e||l[s]&&(l[s]!==!0?u=l[s].palette:s==="dark"&&(u={mode:"dark"}));const d=Ka({...e,palette:u},...r);return d.defaultColorScheme=s,d.colorSchemes=l,d.palette.mode==="light"&&(d.colorSchemes.light={...l.light!==!0&&l.light,palette:d.palette},nu(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},nu(d,"light",l.light)),d}return!t&&!("light"in l)&&s==="light"&&(l.light=!0),D0({...a,colorSchemes:l,defaultColorScheme:s,...typeof n!="boolean"&&n},...r)}const iu=ou(),Xa="$$material";function au(){const e=Al(iu);return process.env.NODE_ENV!=="production"&&j.useDebugValue(e),e[Xa]||e}function T0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ut=Og({themeId:Xa,defaultTheme:iu,rootShouldForwardProp:e=>T0(e)&&e!=="classes"}),cr=Ug;process.env.NODE_ENV!=="production"&&(b.node,b.object.isRequired);function Rt(e){return Vg(e)}function O0(e){return Ct("MuiSvgIcon",e)}Et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const M0=e=>{const{color:r,fontSize:t,classes:n}=e,o={root:["root",r!=="inherit"&&`color${Ke(r)}`,`fontSize${Ke(t)}`]};return Lt(o,O0,n)},P0=ut("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color!=="inherit"&&r[`color${Ke(t.color)}`],r[`fontSize${Ke(t.fontSize)}`]]}})(cr(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:r=>!r.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,r])=>r&&r.main).map(([r])=>({props:{color:r},style:{color:(e.vars??e).palette?.[r]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),li=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...m}=n,g=j.isValidElement(o)&&o.type==="svg",p={...n,color:a,component:s,fontSize:c,instanceFontSize:r.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:g},y={};u||(y.viewBox=f);const S=M0(p);return h.jsxs(P0,{as:s,className:_e(S.root,i),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:t,...y,...m,...g&&o.props,ownerState:p,children:[g?o.props.children:o,d?h.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(li.propTypes={children:b.node,classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),b.string]),component:b.elementType,fontSize:b.oneOfType([b.oneOf(["inherit","large","medium","small"]),b.string]),htmlColor:b.string,inheritViewBox:b.bool,shapeRendering:b.string,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),titleAccess:b.string,viewBox:b.string}),li.muiName="SvgIcon";function qt(e,r){function t(n,o){return h.jsx(li,{"data-testid":process.env.NODE_ENV!=="production"?`${r}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(t.displayName=`${r}Icon`),t.muiName=li.muiName,j.memo(j.forwardRef(t))}function ui(e){const r=j.useRef(e);return Rg(()=>{r.current=e}),j.useRef((...t)=>(0,r.current)(...t)).current}function Ja(...e){const r=j.useRef(void 0),t=j.useCallback(n=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,s=a(n);return typeof s=="function"?s:()=>{a(null)}}return i.current=n,()=>{i.current=null}});return()=>{o.forEach(i=>i?.())}},e);return j.useMemo(()=>e.every(n=>n==null)?null:n=>{r.current&&(r.current(),r.current=void 0),n!=null&&(r.current=t(n))},e)}const A0=qt(h.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),I0=qt(h.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),R0=qt(h.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),N0=({header:e,sidebar:r,mainContent:t})=>{const[n,o]=x.useState(!1),[i,a]=x.useState(!1),s=()=>{o(!n)},c=()=>{a(!i)};return h.jsxs("div",{className:`${Zt.dashboardContainer} ${i?Zt.sidebarCollapsed:""}`,children:[h.jsxs("header",{className:Zt.header,children:[h.jsx($.IconButton,{onClick:s,className:Zt.menuButton,children:h.jsx(A0,{})}),h.jsx("div",{className:Zt.headerContent,children:e})]}),h.jsxs("aside",{className:`${Zt.sidebar} ${n?Zt.sidebarOpen:""}`,children:[h.jsx("div",{className:Zt.sidebarContent,children:r}),h.jsx($.IconButton,{onClick:c,className:Zt.collapseButton,style:{display:"none"},children:i?h.jsx(R0,{}):h.jsx(I0,{})})]}),h.jsx("main",{className:Zt.mainContent,children:t}),n&&h.jsx("div",{className:Zt.overlay,onClick:s})]})},Yr={headerContainer:"_headerContainer_9sslw_1",navAndDate:"_navAndDate_9sslw_17",navButton:"_navButton_9sslw_29",datePickerInput:"_datePickerInput_9sslw_61",datePickerButton:"_datePickerButton_9sslw_91",addEventButton:"_addEventButton_9sslw_135"};function di(){return typeof window<"u"}function bn(e){return su(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function lr(e){var r;return(r=(su(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function su(e){return di()?e instanceof Node||e instanceof Nt(e).Node:!1}function mt(e){return di()?e instanceof Element||e instanceof Nt(e).Element:!1}function ur(e){return di()?e instanceof HTMLElement||e instanceof Nt(e).HTMLElement:!1}function cu(e){return!di()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}const $0=new Set(["inline","contents"]);function to(e){const{overflow:r,overflowX:t,overflowY:n,display:o}=Vt(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+t)&&!$0.has(o)}const j0=new Set(["table","td","th"]);function L0(e){return j0.has(bn(e))}const z0=[":popover-open",":modal"];function fi(e){return z0.some(r=>{try{return e.matches(r)}catch{return!1}})}const B0=["transform","translate","scale","rotate","perspective"],V0=["transform","translate","scale","rotate","perspective","filter"],F0=["paint","layout","strict","content"];function es(e){const r=ts(),t=mt(e)?Vt(e):e;return B0.some(n=>t[n]?t[n]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!r&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!r&&(t.filter?t.filter!=="none":!1)||V0.some(n=>(t.willChange||"").includes(n))||F0.some(n=>(t.contain||"").includes(n))}function Y0(e){let r=Ir(e);for(;ur(r)&&!wn(r);){if(es(r))return r;if(fi(r))return null;r=Ir(r)}return null}function ts(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const U0=new Set(["html","body","#document"]);function wn(e){return U0.has(bn(e))}function Vt(e){return Nt(e).getComputedStyle(e)}function pi(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ir(e){if(bn(e)==="html")return e;const r=e.assignedSlot||e.parentNode||cu(e)&&e.host||lr(e);return cu(r)?r.host:r}function lu(e){const r=Ir(e);return wn(r)?e.ownerDocument?e.ownerDocument.body:e.body:ur(r)&&to(r)?r:lu(r)}function ro(e,r,t){var n;r===void 0&&(r=[]),t===void 0&&(t=!0);const o=lu(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Nt(o);if(i){const s=rs(a);return r.concat(a,a.visualViewport||[],to(o)?o:[],s&&t?ro(s):[])}return r.concat(o,ro(o,[],t))}function rs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const _n=Math.min,Ur=Math.max,hi=Math.round,mi=Math.floor,dr=e=>({x:e,y:e}),H0={left:"right",right:"left",bottom:"top",top:"bottom"},W0={start:"end",end:"start"};function Z0(e,r,t){return Ur(e,_n(r,t))}function gi(e,r){return typeof e=="function"?e(r):e}function xn(e){return e.split("-")[0]}function no(e){return e.split("-")[1]}function q0(e){return e==="x"?"y":"x"}function ns(e){return e==="y"?"height":"width"}const K0=new Set(["top","bottom"]);function Hr(e){return K0.has(xn(e))?"y":"x"}function os(e){return q0(Hr(e))}function G0(e,r,t){t===void 0&&(t=!1);const n=no(e),o=os(e),i=ns(o);let a=o==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(a=vi(a)),[a,vi(a)]}function Q0(e){const r=vi(e);return[is(e),r,is(r)]}function is(e){return e.replace(/start|end/g,r=>W0[r])}const uu=["left","right"],du=["right","left"],X0=["top","bottom"],J0=["bottom","top"];function ev(e,r,t){switch(e){case"top":case"bottom":return t?r?du:uu:r?uu:du;case"left":case"right":return r?X0:J0;default:return[]}}function tv(e,r,t,n){const o=no(e);let i=ev(xn(e),t==="start",n);return o&&(i=i.map(a=>a+"-"+o),r&&(i=i.concat(i.map(is)))),i}function vi(e){return e.replace(/left|right|bottom|top/g,r=>H0[r])}function rv(e){return{top:0,right:0,bottom:0,left:0,...e}}function fu(e){return typeof e!="number"?rv(e):{top:e,right:e,bottom:e,left:e}}function yi(e){const{x:r,y:t,width:n,height:o}=e;return{width:n,height:o,top:t,left:r,right:r+n,bottom:t+o,x:r,y:t}}var nv=typeof document<"u",ov=function(){},bi=nv?x.useLayoutEffect:ov;const iv={...j}.useInsertionEffect||(e=>e());function av(e){const r=j.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return iv(()=>{r.current=e}),j.useCallback(function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return r.current==null?void 0:r.current(...n)},[])}function pu(e,r,t){let{reference:n,floating:o}=e;const i=Hr(r),a=os(r),s=ns(a),c=xn(r),l=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let m;switch(c){case"top":m={x:u,y:n.y-o.height};break;case"bottom":m={x:u,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:d};break;case"left":m={x:n.x-o.width,y:d};break;default:m={x:n.x,y:n.y}}switch(no(r)){case"start":m[a]-=f*(t&&l?-1:1);break;case"end":m[a]+=f*(t&&l?-1:1);break}return m}const sv=async(e,r,t)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=t,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(r));let l=await a.getElementRects({reference:e,floating:r,strategy:o}),{x:u,y:d}=pu(l,n,c),f=n,m={},g=0;for(let p=0;p<s.length;p++){const{name:y,fn:S}=s[p],{x:C,y:k,data:E,reset:_}=await S({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:m,rects:l,platform:a,elements:{reference:e,floating:r}});u=C??u,d=k??d,m={...m,[y]:{...m[y],...E}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(l=_.rects===!0?await a.getElementRects({reference:e,floating:r,strategy:o}):_.rects),{x:u,y:d}=pu(l,f,c)),p=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}};async function cv(e,r){var t;r===void 0&&(r={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=gi(r,e),g=fu(m),y=s[f?d==="floating"?"reference":"floating":d],S=yi(await i.getClippingRect({element:(t=await(i.isElement==null?void 0:i.isElement(y)))==null||t?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),C=d==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),E=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},_=yi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:C,offsetParent:k,strategy:c}):C);return{top:(S.top-_.top+g.top)/E.y,bottom:(_.bottom-S.bottom+g.bottom)/E.y,left:(S.left-_.left+g.left)/E.x,right:(_.right-S.right+g.right)/E.x}}const lv=e=>({name:"arrow",options:e,async fn(r){const{x:t,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=r,{element:l,padding:u=0}=gi(e,r)||{};if(l==null)return{};const d=fu(u),f={x:t,y:n},m=os(o),g=ns(m),p=await a.getDimensions(l),y=m==="y",S=y?"top":"left",C=y?"bottom":"right",k=y?"clientHeight":"clientWidth",E=i.reference[g]+i.reference[m]-f[m]-i.floating[g],_=f[m]-i.reference[m],O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let N=O?O[k]:0;(!N||!await(a.isElement==null?void 0:a.isElement(O)))&&(N=s.floating[k]||i.floating[g]);const q=E/2-_/2,Z=N/2-p[g]/2-1,L=_n(d[S],Z),K=_n(d[C],Z),v=L,I=N-p[g]-K,A=N/2-p[g]/2+q,U=Z0(v,A,I),H=!c.arrow&&no(o)!=null&&A!==U&&i.reference[g]/2-(A<v?L:K)-p[g]/2<0,ee=H?A<v?A-v:A-I:0;return{[m]:f[m]+ee,data:{[m]:U,centerOffset:A-U-ee,...H&&{alignmentOffset:ee}},reset:H}}}),uv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var t,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=r,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...y}=gi(e,r);if((t=i.arrow)!=null&&t.alignmentOffset)return{};const S=xn(o),C=Hr(s),k=xn(s)===s,E=await(c.isRTL==null?void 0:c.isRTL(l.floating)),_=f||(k||!p?[vi(s)]:Q0(s)),O=g!=="none";!f&&O&&_.push(...tv(s,p,g,E));const N=[s,..._],q=await cv(r,y),Z=[];let L=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&Z.push(q[S]),d){const A=G0(o,a,E);Z.push(q[A[0]],q[A[1]])}if(L=[...L,{placement:o,overflows:Z}],!Z.every(A=>A<=0)){var K,v;const A=(((K=i.flip)==null?void 0:K.index)||0)+1,U=N[A];if(U&&(!(d==="alignment"?C!==Hr(U):!1)||L.every(re=>Hr(re.placement)===C?re.overflows[0]>0:!0)))return{data:{index:A,overflows:L},reset:{placement:U}};let H=(v=L.filter(ee=>ee.overflows[0]<=0).sort((ee,re)=>ee.overflows[1]-re.overflows[1])[0])==null?void 0:v.placement;if(!H)switch(m){case"bestFit":{var I;const ee=(I=L.filter(re=>{if(O){const se=Hr(re.placement);return se===C||se==="y"}return!0}).map(re=>[re.placement,re.overflows.filter(se=>se>0).reduce((se,V)=>se+V,0)]).sort((re,se)=>re[1]-se[1])[0])==null?void 0:I[0];ee&&(H=ee);break}case"initialPlacement":H=s;break}if(o!==H)return{reset:{placement:H}}}return{}}}},dv=new Set(["left","top"]);async function fv(e,r){const{placement:t,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=xn(t),s=no(t),c=Hr(t)==="y",l=dv.has(a)?-1:1,u=i&&c?-1:1,d=gi(r,e);let{mainAxis:f,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(m=s==="end"?g*-1:g),c?{x:m*u,y:f*l}:{x:f*l,y:m*u}}const pv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var t,n;const{x:o,y:i,placement:a,middlewareData:s}=r,c=await fv(r,e);return a===((t=s.offset)==null?void 0:t.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}};function hu(e){const r=Vt(e);let t=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const o=ur(e),i=o?e.offsetWidth:t,a=o?e.offsetHeight:n,s=hi(t)!==i||hi(n)!==a;return s&&(t=i,n=a),{width:t,height:n,$:s}}function as(e){return mt(e)?e:e.contextElement}function Sn(e){const r=as(e);if(!ur(r))return dr(1);const t=r.getBoundingClientRect(),{width:n,height:o,$:i}=hu(r);let a=(i?hi(t.width):t.width)/n,s=(i?hi(t.height):t.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const hv=dr(0);function mu(e){const r=Nt(e);return!ts()||!r.visualViewport?hv:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function mv(e,r,t){return r===void 0&&(r=!1),!t||r&&t!==Nt(e)?!1:r}function Wr(e,r,t,n){r===void 0&&(r=!1),t===void 0&&(t=!1);const o=e.getBoundingClientRect(),i=as(e);let a=dr(1);r&&(n?mt(n)&&(a=Sn(n)):a=Sn(e));const s=mv(i,t,n)?mu(i):dr(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const f=Nt(i),m=n&&mt(n)?Nt(n):n;let g=f,p=rs(g);for(;p&&n&&m!==g;){const y=Sn(p),S=p.getBoundingClientRect(),C=Vt(p),k=S.left+(p.clientLeft+parseFloat(C.paddingLeft))*y.x,E=S.top+(p.clientTop+parseFloat(C.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=k,l+=E,g=Nt(p),p=rs(g)}}return yi({width:u,height:d,x:c,y:l})}function wi(e,r){const t=pi(e).scrollLeft;return r?r.left+t:Wr(lr(e)).left+t}function gu(e,r){const t=e.getBoundingClientRect(),n=t.left+r.scrollLeft-wi(e,t),o=t.top+r.scrollTop;return{x:n,y:o}}function gv(e){let{elements:r,rect:t,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=lr(n),s=r?fi(r.floating):!1;if(n===a||s&&i)return t;let c={scrollLeft:0,scrollTop:0},l=dr(1);const u=dr(0),d=ur(n);if((d||!d&&!i)&&((bn(n)!=="body"||to(a))&&(c=pi(n)),ur(n))){const m=Wr(n);l=Sn(n),u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}const f=a&&!d&&!i?gu(a,c):dr(0);return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:t.y*l.y-c.scrollTop*l.y+u.y+f.y}}function vv(e){return Array.from(e.getClientRects())}function yv(e){const r=lr(e),t=pi(e),n=e.ownerDocument.body,o=Ur(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),i=Ur(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+wi(e);const s=-t.scrollTop;return Vt(n).direction==="rtl"&&(a+=Ur(r.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}const vu=25;function bv(e,r){const t=Nt(e),n=lr(e),o=t.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const u=ts();(!u||u&&r==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const l=wi(n);if(l<=0){const u=n.ownerDocument,d=u.body,f=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(n.clientWidth-d.clientWidth-m);g<=vu&&(i-=g)}else l<=vu&&(i+=l);return{width:i,height:a,x:s,y:c}}const wv=new Set(["absolute","fixed"]);function _v(e,r){const t=Wr(e,!0,r==="fixed"),n=t.top+e.clientTop,o=t.left+e.clientLeft,i=ur(e)?Sn(e):dr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,l=n*i.y;return{width:a,height:s,x:c,y:l}}function yu(e,r,t){let n;if(r==="viewport")n=bv(e,t);else if(r==="document")n=yv(lr(e));else if(mt(r))n=_v(r,t);else{const o=mu(e);n={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return yi(n)}function bu(e,r){const t=Ir(e);return t===r||!mt(t)||wn(t)?!1:Vt(t).position==="fixed"||bu(t,r)}function xv(e,r){const t=r.get(e);if(t)return t;let n=ro(e,[],!1).filter(s=>mt(s)&&bn(s)!=="body"),o=null;const i=Vt(e).position==="fixed";let a=i?Ir(e):e;for(;mt(a)&&!wn(a);){const s=Vt(a),c=es(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&wv.has(o.position)||to(a)&&!c&&bu(e,a))?n=n.filter(u=>u!==a):o=s,a=Ir(a)}return r.set(e,n),n}function Sv(e){let{element:r,boundary:t,rootBoundary:n,strategy:o}=e;const a=[...t==="clippingAncestors"?fi(r)?[]:xv(r,this._c):[].concat(t),n],s=a[0],c=a.reduce((l,u)=>{const d=yu(r,u,o);return l.top=Ur(d.top,l.top),l.right=_n(d.right,l.right),l.bottom=_n(d.bottom,l.bottom),l.left=Ur(d.left,l.left),l},yu(r,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Cv(e){const{width:r,height:t}=hu(e);return{width:r,height:t}}function Ev(e,r,t){const n=ur(r),o=lr(r),i=t==="fixed",a=Wr(e,!0,i,r);let s={scrollLeft:0,scrollTop:0};const c=dr(0);function l(){c.x=wi(o)}if(n||!n&&!i)if((bn(r)!=="body"||to(o))&&(s=pi(r)),n){const m=Wr(r,!0,i,r);c.x=m.x+r.clientLeft,c.y=m.y+r.clientTop}else o&&l();i&&!n&&o&&l();const u=o&&!n&&!i?gu(o,s):dr(0),d=a.left+s.scrollLeft-c.x-u.x,f=a.top+s.scrollTop-c.y-u.y;return{x:d,y:f,width:a.width,height:a.height}}function ss(e){return Vt(e).position==="static"}function wu(e,r){if(!ur(e)||Vt(e).position==="fixed")return null;if(r)return r(e);let t=e.offsetParent;return lr(e)===t&&(t=t.ownerDocument.body),t}function _u(e,r){const t=Nt(e);if(fi(e))return t;if(!ur(e)){let o=Ir(e);for(;o&&!wn(o);){if(mt(o)&&!ss(o))return o;o=Ir(o)}return t}let n=wu(e,r);for(;n&&L0(n)&&ss(n);)n=wu(n,r);return n&&wn(n)&&ss(n)&&!es(n)?t:n||Y0(e)||t}const kv=async function(e){const r=this.getOffsetParent||_u,t=this.getDimensions,n=await t(e.floating);return{reference:Ev(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Dv(e){return Vt(e).direction==="rtl"}const Tv={convertOffsetParentRelativeRectToViewportRelativeRect:gv,getDocumentElement:lr,getClippingRect:Sv,getOffsetParent:_u,getElementRects:kv,getClientRects:vv,getDimensions:Cv,getScale:Sn,isElement:mt,isRTL:Dv};function xu(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function Ov(e,r){let t=null,n;const o=lr(e);function i(){var s;clearTimeout(n),(s=t)==null||s.disconnect(),t=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=l;if(s||r(),!f||!m)return;const g=mi(d),p=mi(o.clientWidth-(u+f)),y=mi(o.clientHeight-(d+m)),S=mi(u),k={rootMargin:-g+"px "+-p+"px "+-y+"px "+-S+"px",threshold:Ur(0,_n(1,c))||1};let E=!0;function _(O){const N=O[0].intersectionRatio;if(N!==c){if(!E)return a();N?a(!1,N):n=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!xu(l,e.getBoundingClientRect())&&a(),E=!1}try{t=new IntersectionObserver(_,{...k,root:o.ownerDocument})}catch{t=new IntersectionObserver(_,k)}t.observe(e)}return a(!0),i}function Mv(e,r,t,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=as(e),u=o||i?[...l?ro(l):[],...ro(r)]:[];u.forEach(S=>{o&&S.addEventListener("scroll",t,{passive:!0}),i&&S.addEventListener("resize",t)});const d=l&&s?Ov(l,t):null;let f=-1,m=null;a&&(m=new ResizeObserver(S=>{let[C]=S;C&&C.target===l&&m&&(m.unobserve(r),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var k;(k=m)==null||k.observe(r)})),t()}),l&&!c&&m.observe(l),m.observe(r));let g,p=c?Wr(e):null;c&&y();function y(){const S=Wr(e);p&&!xu(p,S)&&t(),p=S,g=requestAnimationFrame(y)}return t(),()=>{var S;u.forEach(C=>{o&&C.removeEventListener("scroll",t),i&&C.removeEventListener("resize",t)}),d?.(),(S=m)==null||S.disconnect(),m=null,c&&cancelAnimationFrame(g)}}const Pv=pv,Av=uv,Su=lv,Iv=(e,r,t)=>{const n=new Map,o={platform:Tv,...t},i={...o.platform,_c:n};return sv(e,r,{...o,platform:i})};var Rv=typeof document<"u",Nv=function(){},_i=Rv?x.useLayoutEffect:Nv;function xi(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let t,n,o;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==r.length)return!1;for(n=t;n--!==0;)if(!xi(e[n],r[n]))return!1;return!0}if(o=Object.keys(e),t=o.length,t!==Object.keys(r).length)return!1;for(n=t;n--!==0;)if(!{}.hasOwnProperty.call(r,o[n]))return!1;for(n=t;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!xi(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function Cu(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Eu(e,r){const t=Cu(e);return Math.round(r*t)/t}function cs(e){const r=j.useRef(e);return _i(()=>{r.current=e}),r}function $v(e){e===void 0&&(e={});const{placement:r="bottom",strategy:t="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=j.useState({x:0,y:0,strategy:t,placement:r,middlewareData:{},isPositioned:!1}),[f,m]=j.useState(n);xi(f,n)||m(n);const[g,p]=j.useState(null),[y,S]=j.useState(null),C=j.useCallback(re=>{re!==O.current&&(O.current=re,p(re))},[]),k=j.useCallback(re=>{re!==N.current&&(N.current=re,S(re))},[]),E=i||g,_=a||y,O=j.useRef(null),N=j.useRef(null),q=j.useRef(u),Z=c!=null,L=cs(c),K=cs(o),v=cs(l),I=j.useCallback(()=>{if(!O.current||!N.current)return;const re={placement:r,strategy:t,middleware:f};K.current&&(re.platform=K.current),Iv(O.current,N.current,re).then(se=>{const V={...se,isPositioned:v.current!==!1};A.current&&!xi(q.current,V)&&(q.current=V,ch.flushSync(()=>{d(V)}))})},[f,r,t,K,v]);_i(()=>{l===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,d(re=>({...re,isPositioned:!1})))},[l]);const A=j.useRef(!1);_i(()=>(A.current=!0,()=>{A.current=!1}),[]),_i(()=>{if(E&&(O.current=E),_&&(N.current=_),E&&_){if(L.current)return L.current(E,_,I);I()}},[E,_,I,L,Z]);const U=j.useMemo(()=>({reference:O,floating:N,setReference:C,setFloating:k}),[C,k]),H=j.useMemo(()=>({reference:E,floating:_}),[E,_]),ee=j.useMemo(()=>{const re={position:t,left:0,top:0};if(!H.floating)return re;const se=Eu(H.floating,u.x),V=Eu(H.floating,u.y);return s?{...re,transform:"translate("+se+"px, "+V+"px)",...Cu(H.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:se,top:V}},[t,s,H.floating,u.x,u.y]);return j.useMemo(()=>({...u,update:I,refs:U,elements:H,floatingStyles:ee}),[u,I,U,H,ee])}const jv=e=>{function r(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:n,padding:o}=typeof e=="function"?e(t):e;return n&&r(n)?n.current!=null?Su({element:n.current,padding:o}).fn(t):{}:n?Su({element:n,padding:o}).fn(t):{}}}},Lv=(e,r)=>({...Pv(e),options:[e,r]}),zv=(e,r)=>({...Av(e),options:[e,r]}),Bv=(e,r)=>({...jv(e),options:[e,r]}),Vv={...j};let ku=!1,Fv=0;const Du=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Fv++;function Yv(){const[e,r]=j.useState(()=>ku?Du():void 0);return bi(()=>{e==null&&r(Du())},[]),j.useEffect(()=>{ku=!0},[]),e}const Tu=Vv.useId||Yv;let oo;process.env.NODE_ENV!=="production"&&(oo=new Set);function Uv(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];const o="Floating UI: "+t.join(" ");if(!((e=oo)!=null&&e.has(o))){var i;(i=oo)==null||i.add(o),console.warn(o)}}function Hv(){for(var e,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];const o="Floating UI: "+t.join(" ");if(!((e=oo)!=null&&e.has(o))){var i;(i=oo)==null||i.add(o),console.error(o)}}const Wv=j.forwardRef(function(r,t){const{context:{placement:n,elements:{floating:o},middlewareData:{arrow:i,shift:a}},width:s=14,height:c=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:d,stroke:f,d:m,style:{transform:g,...p}={},...y}=r;process.env.NODE_ENV!=="production"&&(t||Uv("The `ref` prop is required for `FloatingArrow`."));const S=Tu(),[C,k]=j.useState(!1);if(bi(()=>{if(!o)return;Vt(o).direction==="rtl"&&k(!0)},[o]),!o)return null;const[E,_]=n.split("-"),O=E==="top"||E==="bottom";let N=d;(O&&a!=null&&a.x||!O&&a!=null&&a.y)&&(N=null);const q=u*2,Z=q/2,L=s/2*(l/-8+1),K=c/2*l/4,v=!!m,I=N&&_==="end"?"bottom":"top";let A=N&&_==="end"?"right":"left";N&&C&&(A=_==="end"?"left":"right");const U=i?.x!=null?N||i.x:"",H=i?.y!=null?N||i.y:"",ee=m||"M0,0"+(" H"+s)+(" L"+(s-L)+","+(c-K))+(" Q"+s/2+","+c+" "+L+","+(c-K))+" Z",re={top:v?"rotate(180deg)":"",left:v?"rotate(90deg)":"rotate(-90deg)",bottom:v?"":"rotate(180deg)",right:v?"rotate(-90deg)":"rotate(90deg)"}[E];return h.jsxs("svg",{...y,"aria-hidden":!0,ref:t,width:v?s:s+q,height:s,viewBox:"0 0 "+s+" "+(c>s?c:s),style:{position:"absolute",pointerEvents:"none",[A]:U,[I]:H,[E]:O||v?"100%":"calc(100% - "+q/2+"px)",transform:[re,g].filter(se=>!!se).join(" "),...p},children:[q>0&&h.jsx("path",{clipPath:"url(#"+S+")",fill:"none",stroke:f,strokeWidth:q+(m?0:1),d:ee}),h.jsx("path",{stroke:q&&!m?y.fill:"none",d:ee}),h.jsx("clipPath",{id:S,children:h.jsx("rect",{x:-Z,y:Z*(v?-1:1),width:s+q,height:s})})]})});function Zv(){const e=new Map;return{emit(r,t){var n;(n=e.get(r))==null||n.forEach(o=>o(t))},on(r,t){e.has(r)||e.set(r,new Set),e.get(r).add(t)},off(r,t){var n;(n=e.get(r))==null||n.delete(t)}}}const qv=j.createContext(null),Kv=j.createContext(null),Gv=()=>{var e;return((e=j.useContext(qv))==null?void 0:e.id)||null},Qv=()=>j.useContext(Kv);function Xv(e){const{open:r=!1,onOpenChange:t,elements:n}=e,o=Tu(),i=j.useRef({}),[a]=j.useState(()=>Zv()),s=Gv()!=null;if(process.env.NODE_ENV!=="production"){const m=n.reference;m&&!mt(m)&&Hv("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,l]=j.useState(n.reference),u=av((m,g,p)=>{i.current.openEvent=m?g:void 0,a.emit("openchange",{open:m,event:g,reason:p,nested:s}),t?.(m,g,p)}),d=j.useMemo(()=>({setPositionReference:l}),[]),f=j.useMemo(()=>({reference:c||n.reference||null,floating:n.floating||null,domReference:n.reference}),[c,n.reference,n.floating]);return j.useMemo(()=>({dataRef:i,open:r,onOpenChange:u,elements:f,events:a,floatingId:o,refs:d}),[r,u,f,a,o,d])}function Jv(e){e===void 0&&(e={});const{nodeId:r}=e,t=Xv({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||t,o=n.elements,[i,a]=j.useState(null),[s,c]=j.useState(null),u=o?.domReference||i,d=j.useRef(null),f=Qv();bi(()=>{u&&(d.current=u)},[u]);const m=$v({...e,elements:{...o,...s&&{reference:s}}}),g=j.useCallback(k=>{const E=mt(k)?{getBoundingClientRect:()=>k.getBoundingClientRect(),getClientRects:()=>k.getClientRects(),contextElement:k}:k;c(E),m.refs.setReference(E)},[m.refs]),p=j.useCallback(k=>{(mt(k)||k===null)&&(d.current=k,a(k)),(mt(m.refs.reference.current)||m.refs.reference.current===null||k!==null&&!mt(k))&&m.refs.setReference(k)},[m.refs]),y=j.useMemo(()=>({...m.refs,setReference:p,setPositionReference:g,domReference:d}),[m.refs,p,g]),S=j.useMemo(()=>({...m.elements,domReference:u}),[m.elements,u]),C=j.useMemo(()=>({...m,...n,refs:y,elements:S,nodeId:r}),[m,y,S,r,n]);return bi(()=>{n.dataRef.current.floatingContext=C;const k=f?.nodesRef.current.find(E=>E.id===r);k&&(k.context=C)}),j.useMemo(()=>({...m,context:C,refs:y,elements:S}),[m,y,S,C])}/*!
101
+ export default theme;`}function el(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Qm=e=>{if(!Number.isNaN(+e))return+e;const n=e.match(/\d*\.?\d+/g);if(!n)return 0;let t=0;for(let r=0;r<n.length;r+=1)t+=+n[r];return t};function Jm(e){Object.assign(e,{alpha(n,t){const r=this||e;return r.colorSpace?`oklch(from ${n} l c h / ${typeof t=="string"?`calc(${t})`:t})`:r.vars?`rgba(${n.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof t=="string"?`calc(${t})`:t})`:Lo(n,Qm(t))},lighten(n,t){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${n}, #fff ${el(t)})`:Bo(n,t)},darken(n,t){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${n}, #000 ${el(t)})`:zo(n,t)}})}function yi(e={},...n){const{breakpoints:t,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":mr(20));const d=vi({...a,colorSpace:l}),f=ui(e);let m=kt(f,{mixins:Lm(f.breakpoints,r),palette:d,shadows:Hm.slice(),typography:Bm(d,s),transitions:qm(i),zIndex:{...Km}});if(m=kt(m,u),m=n.reduce((g,p)=>kt(g,p),m),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(b,x)=>{let S;for(S in b){const T=b[S];if(g.includes(S)&&Object.keys(T).length>0){if(process.env.NODE_ENV!=="production"){const D=Kt("",S);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${D}' syntax:`,JSON.stringify({root:{[`&.${D}`]:T}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
102
+ `))}b[S]={}}}};Object.keys(m.components).forEach(b=>{const x=m.components[b].styleOverrides;x&&b.startsWith("Mui")&&p(x,b)})}return m.unstable_sxConfig={...Eo,...u?.unstable_sxConfig},m.unstable_sx=function(p){return qr({sx:p,theme:this})},m.toRuntimeSource=Xc,Jm(m),m}function bi(e){let n;return e<1?n=5.11916*e**2:n=4.5*Math.log(e+1)+2,Math.round(n*10)/1e3}const Xm=[...Array(25)].map((e,n)=>{if(n===0)return"none";const t=bi(n);return`linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`});function tl(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function rl(e){return e==="dark"?Xm:[]}function e0(e){const{palette:n={mode:"light"},opacity:t,overlays:r,colorSpace:o,...a}=e,i=vi({...n,colorSpace:o});return{palette:i,opacity:{...tl(i.mode),...t},overlays:r||rl(i.mode),...a}}function t0(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const r0=e=>[...[...Array(25)].map((n,t)=>`--${e?`${e}-`:""}overlays-${t}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],n0=e=>(n,t)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===n){if(n==="dark"){const i={};return r0(e.cssVarPrefix).forEach(s=>{i[s]=t[s],delete t[s]}),a==="media"?{[r]:t,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace("%s",n)]:i,[`${r}, ${a.replace("%s",n)}`]:t}:{[r]:{...t,...i}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(n))}`}else if(n){if(a==="media")return{[`@media (prefers-color-scheme: ${String(n)})`]:{[r]:t}};if(a)return a.replace("%s",String(n))}return r};function o0(e,n){n.forEach(t=>{e[t]||(e[t]={})})}function j(e,n,t){!e[n]&&t&&(e[n]=t)}function Rn(e){return typeof e!="string"||!e.startsWith("hsl")?e:Vc(e)}function cr(e,n){`${n}Channel`in e||(e[`${n}Channel`]=Pn(Rn(e[n]),`MUI: Can't create \`palette.${n}Channel\` because \`palette.${n}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
103
+ To suppress this warning, you need to explicitly provide the \`palette.${n}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function a0(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Gt=e=>{try{return e()}catch{}},i0=(e="mui")=>Cm(e);function wi(e,n,t,r,o){if(!t)return;t=t===!0?{}:t;const a=o==="dark"?"dark":"light";if(!r){n[o]=e0({...t,palette:{mode:a,...t?.palette},colorSpace:e});return}const{palette:i,...s}=yi({...r,palette:{mode:a,...t?.palette},colorSpace:e});return n[o]={...t,palette:i,opacity:{...tl(a),...t?.opacity},overlays:t?.overlays||rl(a)},s}function s0(e={},...n){const{colorSchemes:t={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:i=!1,shouldSkipGeneratingVar:s=t0,colorSchemeSelector:c=t.light&&t.dark?"media":void 0,rootSelector:l=":root",...u}=e,d=Object.keys(t)[0],f=r||(t.light&&d!=="light"?"light":d),m=i0(a),{[f]:g,light:p,dark:b,...x}=t,S={...x};let T=g;if((f==="dark"&&!("dark"in t)||f==="light"&&!("light"in t))&&(T=!0),!T)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:mr(21,f));let D;i&&(D="oklch");const k=wi(D,S,T,u,f);p&&!S.light&&wi(D,S,p,void 0,"light"),b&&!S.dark&&wi(D,S,b,void 0,"dark");let O={defaultColorScheme:f,...k,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:m,colorSchemes:S,font:{...jm(k.typography),...k.font},spacing:a0(u.spacing)};Object.keys(O.colorSchemes).forEach(Q=>{const v=O.colorSchemes[Q].palette,M=H=>{const Y=H.split("-"),ee=Y[1],ae=Y[2];return m(H,v[ee][ae])};v.mode==="light"&&(j(v.common,"background","#fff"),j(v.common,"onBackground","#000")),v.mode==="dark"&&(j(v.common,"background","#000"),j(v.common,"onBackground","#fff"));function P(H,Y,ee){if(D){let ae;return H===Or&&(ae=`transparent ${((1-ee)*100).toFixed(0)}%`),H===Ie&&(ae=`#000 ${(ee*100).toFixed(0)}%`),H===Ne&&(ae=`#fff ${(ee*100).toFixed(0)}%`),`color-mix(in ${D}, ${Y}, ${ae})`}return H(Y,ee)}if(o0(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){j(v.Alert,"errorColor",P(Ie,v.error.light,.6)),j(v.Alert,"infoColor",P(Ie,v.info.light,.6)),j(v.Alert,"successColor",P(Ie,v.success.light,.6)),j(v.Alert,"warningColor",P(Ie,v.warning.light,.6)),j(v.Alert,"errorFilledBg",M("palette-error-main")),j(v.Alert,"infoFilledBg",M("palette-info-main")),j(v.Alert,"successFilledBg",M("palette-success-main")),j(v.Alert,"warningFilledBg",M("palette-warning-main")),j(v.Alert,"errorFilledColor",Gt(()=>v.getContrastText(v.error.main))),j(v.Alert,"infoFilledColor",Gt(()=>v.getContrastText(v.info.main))),j(v.Alert,"successFilledColor",Gt(()=>v.getContrastText(v.success.main))),j(v.Alert,"warningFilledColor",Gt(()=>v.getContrastText(v.warning.main))),j(v.Alert,"errorStandardBg",P(Ne,v.error.light,.9)),j(v.Alert,"infoStandardBg",P(Ne,v.info.light,.9)),j(v.Alert,"successStandardBg",P(Ne,v.success.light,.9)),j(v.Alert,"warningStandardBg",P(Ne,v.warning.light,.9)),j(v.Alert,"errorIconColor",M("palette-error-main")),j(v.Alert,"infoIconColor",M("palette-info-main")),j(v.Alert,"successIconColor",M("palette-success-main")),j(v.Alert,"warningIconColor",M("palette-warning-main")),j(v.AppBar,"defaultBg",M("palette-grey-100")),j(v.Avatar,"defaultBg",M("palette-grey-400")),j(v.Button,"inheritContainedBg",M("palette-grey-300")),j(v.Button,"inheritContainedHoverBg",M("palette-grey-A100")),j(v.Chip,"defaultBorder",M("palette-grey-400")),j(v.Chip,"defaultAvatarColor",M("palette-grey-700")),j(v.Chip,"defaultIconColor",M("palette-grey-700")),j(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),j(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),j(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),j(v.LinearProgress,"primaryBg",P(Ne,v.primary.main,.62)),j(v.LinearProgress,"secondaryBg",P(Ne,v.secondary.main,.62)),j(v.LinearProgress,"errorBg",P(Ne,v.error.main,.62)),j(v.LinearProgress,"infoBg",P(Ne,v.info.main,.62)),j(v.LinearProgress,"successBg",P(Ne,v.success.main,.62)),j(v.LinearProgress,"warningBg",P(Ne,v.warning.main,.62)),j(v.Skeleton,"bg",D?P(Or,v.text.primary,.11):`rgba(${M("palette-text-primaryChannel")} / 0.11)`),j(v.Slider,"primaryTrack",P(Ne,v.primary.main,.62)),j(v.Slider,"secondaryTrack",P(Ne,v.secondary.main,.62)),j(v.Slider,"errorTrack",P(Ne,v.error.main,.62)),j(v.Slider,"infoTrack",P(Ne,v.info.main,.62)),j(v.Slider,"successTrack",P(Ne,v.success.main,.62)),j(v.Slider,"warningTrack",P(Ne,v.warning.main,.62));const H=D?P(Ie,v.background.default,.6825):Vo(v.background.default,.8);j(v.SnackbarContent,"bg",H),j(v.SnackbarContent,"color",Gt(()=>D?gi.text.primary:v.getContrastText(H))),j(v.SpeedDialAction,"fabHoverBg",Vo(v.background.paper,.15)),j(v.StepConnector,"border",M("palette-grey-400")),j(v.StepContent,"border",M("palette-grey-400")),j(v.Switch,"defaultColor",M("palette-common-white")),j(v.Switch,"defaultDisabledColor",M("palette-grey-100")),j(v.Switch,"primaryDisabledColor",P(Ne,v.primary.main,.62)),j(v.Switch,"secondaryDisabledColor",P(Ne,v.secondary.main,.62)),j(v.Switch,"errorDisabledColor",P(Ne,v.error.main,.62)),j(v.Switch,"infoDisabledColor",P(Ne,v.info.main,.62)),j(v.Switch,"successDisabledColor",P(Ne,v.success.main,.62)),j(v.Switch,"warningDisabledColor",P(Ne,v.warning.main,.62)),j(v.TableCell,"border",P(Ne,P(Or,v.divider,1),.88)),j(v.Tooltip,"bg",P(Or,v.grey[700],.92))}if(v.mode==="dark"){j(v.Alert,"errorColor",P(Ne,v.error.light,.6)),j(v.Alert,"infoColor",P(Ne,v.info.light,.6)),j(v.Alert,"successColor",P(Ne,v.success.light,.6)),j(v.Alert,"warningColor",P(Ne,v.warning.light,.6)),j(v.Alert,"errorFilledBg",M("palette-error-dark")),j(v.Alert,"infoFilledBg",M("palette-info-dark")),j(v.Alert,"successFilledBg",M("palette-success-dark")),j(v.Alert,"warningFilledBg",M("palette-warning-dark")),j(v.Alert,"errorFilledColor",Gt(()=>v.getContrastText(v.error.dark))),j(v.Alert,"infoFilledColor",Gt(()=>v.getContrastText(v.info.dark))),j(v.Alert,"successFilledColor",Gt(()=>v.getContrastText(v.success.dark))),j(v.Alert,"warningFilledColor",Gt(()=>v.getContrastText(v.warning.dark))),j(v.Alert,"errorStandardBg",P(Ie,v.error.light,.9)),j(v.Alert,"infoStandardBg",P(Ie,v.info.light,.9)),j(v.Alert,"successStandardBg",P(Ie,v.success.light,.9)),j(v.Alert,"warningStandardBg",P(Ie,v.warning.light,.9)),j(v.Alert,"errorIconColor",M("palette-error-main")),j(v.Alert,"infoIconColor",M("palette-info-main")),j(v.Alert,"successIconColor",M("palette-success-main")),j(v.Alert,"warningIconColor",M("palette-warning-main")),j(v.AppBar,"defaultBg",M("palette-grey-900")),j(v.AppBar,"darkBg",M("palette-background-paper")),j(v.AppBar,"darkColor",M("palette-text-primary")),j(v.Avatar,"defaultBg",M("palette-grey-600")),j(v.Button,"inheritContainedBg",M("palette-grey-800")),j(v.Button,"inheritContainedHoverBg",M("palette-grey-700")),j(v.Chip,"defaultBorder",M("palette-grey-700")),j(v.Chip,"defaultAvatarColor",M("palette-grey-300")),j(v.Chip,"defaultIconColor",M("palette-grey-300")),j(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),j(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),j(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),j(v.LinearProgress,"primaryBg",P(Ie,v.primary.main,.5)),j(v.LinearProgress,"secondaryBg",P(Ie,v.secondary.main,.5)),j(v.LinearProgress,"errorBg",P(Ie,v.error.main,.5)),j(v.LinearProgress,"infoBg",P(Ie,v.info.main,.5)),j(v.LinearProgress,"successBg",P(Ie,v.success.main,.5)),j(v.LinearProgress,"warningBg",P(Ie,v.warning.main,.5)),j(v.Skeleton,"bg",D?P(Or,v.text.primary,.13):`rgba(${M("palette-text-primaryChannel")} / 0.13)`),j(v.Slider,"primaryTrack",P(Ie,v.primary.main,.5)),j(v.Slider,"secondaryTrack",P(Ie,v.secondary.main,.5)),j(v.Slider,"errorTrack",P(Ie,v.error.main,.5)),j(v.Slider,"infoTrack",P(Ie,v.info.main,.5)),j(v.Slider,"successTrack",P(Ie,v.success.main,.5)),j(v.Slider,"warningTrack",P(Ie,v.warning.main,.5));const H=D?P(Ne,v.background.default,.985):Vo(v.background.default,.98);j(v.SnackbarContent,"bg",H),j(v.SnackbarContent,"color",Gt(()=>D?Wc.text.primary:v.getContrastText(H))),j(v.SpeedDialAction,"fabHoverBg",Vo(v.background.paper,.15)),j(v.StepConnector,"border",M("palette-grey-600")),j(v.StepContent,"border",M("palette-grey-600")),j(v.Switch,"defaultColor",M("palette-grey-300")),j(v.Switch,"defaultDisabledColor",M("palette-grey-600")),j(v.Switch,"primaryDisabledColor",P(Ie,v.primary.main,.55)),j(v.Switch,"secondaryDisabledColor",P(Ie,v.secondary.main,.55)),j(v.Switch,"errorDisabledColor",P(Ie,v.error.main,.55)),j(v.Switch,"infoDisabledColor",P(Ie,v.info.main,.55)),j(v.Switch,"successDisabledColor",P(Ie,v.success.main,.55)),j(v.Switch,"warningDisabledColor",P(Ie,v.warning.main,.55)),j(v.TableCell,"border",P(Ie,P(Or,v.divider,1),.68)),j(v.Tooltip,"bg",P(Or,v.grey[700],.92))}cr(v.background,"default"),cr(v.background,"paper"),cr(v.common,"background"),cr(v.common,"onBackground"),cr(v,"divider"),Object.keys(v).forEach(H=>{const Y=v[H];H!=="tonalOffset"&&Y&&typeof Y=="object"&&(Y.main&&j(v[H],"mainChannel",Pn(Rn(Y.main))),Y.light&&j(v[H],"lightChannel",Pn(Rn(Y.light))),Y.dark&&j(v[H],"darkChannel",Pn(Rn(Y.dark))),Y.contrastText&&j(v[H],"contrastTextChannel",Pn(Rn(Y.contrastText))),H==="text"&&(cr(v[H],"primary"),cr(v[H],"secondary")),H==="action"&&(Y.active&&cr(v[H],"active"),Y.selected&&cr(v[H],"selected")))})}),O=n.reduce((Q,v)=>kt(Q,v),O);const I={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:n0(O),enableContrastVars:i},{vars:W,generateThemeVars:U,generateStyleSheets:$}=Em(O,I);return O.vars=W,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([Q,v])=>{O[Q]=v}),O.generateThemeVars=U,O.generateStyleSheets=$,O.generateSpacing=function(){return Rc(u.spacing,ei(this))},O.getColorSchemeSelector=Tm(c),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=s,O.unstable_sxConfig={...Eo,...u?.unstable_sxConfig},O.unstable_sx=function(v){return qr({sx:v,theme:this})},O.toRuntimeSource=Xc,O}function nl(e,n,t){e.colorSchemes&&t&&(e.colorSchemes[n]={...t!==!0&&t,palette:vi({...t===!0?{}:t.palette,mode:n})})}function c0(e={},...n){const{palette:t,cssVariables:r=!1,colorSchemes:o=t?void 0:{light:!0},defaultColorScheme:a=t?.mode,...i}=e,s=a||"light",c=o?.[s],l={...o,...t?{[s]:{...typeof c!="boolean"&&c,palette:t}}:void 0};if(r===!1){if(!("colorSchemes"in e))return yi(e,...n);let u=t;"palette"in e||l[s]&&(l[s]!==!0?u=l[s].palette:s==="dark"&&(u={mode:"dark"}));const d=yi({...e,palette:u},...n);return d.defaultColorScheme=s,d.colorSchemes=l,d.palette.mode==="light"&&(d.colorSchemes.light={...l.light!==!0&&l.light,palette:d.palette},nl(d,"dark",l.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:d.palette},nl(d,"light",l.light)),d}return!t&&!("light"in l)&&s==="light"&&(l.light=!0),s0({...i,colorSchemes:l,defaultColorScheme:s,...typeof r!="boolean"&&r},...n)}const ol=c0(),al="$$material";function l0(){const e=am(ol);return process.env.NODE_ENV!=="production"&&Z.useDebugValue(e),e[al]||e}function u0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const wr=dm({themeId:al,defaultTheme:ol,rootShouldForwardProp:e=>u0(e)&&e!=="classes"}),$n=Sm;process.env.NODE_ENV!=="production"&&(N.node,N.object.isRequired);function _r(e){return xm(e)}function d0(e){return Kt("MuiSvgIcon",e)}yr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const f0=e=>{const{color:n,fontSize:t,classes:r}=e,o={root:["root",n!=="inherit"&&`color${Ct(n)}`,`fontSize${Ct(t)}`]};return gr(o,d0,r)},p0=wr("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,t.color!=="inherit"&&n[`color${Ct(t.color)}`],n[`fontSize${Ct(t.fontSize)}`]]}})($n(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:n=>!n.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,n])=>n&&n.main).map(([n])=>({props:{color:n},style:{color:(e.vars??e).palette?.[n]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Fo=Z.forwardRef(function(n,t){const r=_r({props:n,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:s="svg",fontSize:c="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:d,viewBox:f="0 0 24 24",...m}=r,g=Z.isValidElement(o)&&o.type==="svg",p={...r,color:i,component:s,fontSize:c,instanceFontSize:n.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:g},b={};u||(b.viewBox=f);const x=f0(p);return h.jsxs(p0,{as:s,className:Be(x.root,a),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:t,...b,...m,...g&&o.props,ownerState:p,children:[g?o.props.children:o,d?h.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(Fo.propTypes={children:N.node,classes:N.object,className:N.string,color:N.oneOfType([N.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),N.string]),component:N.elementType,fontSize:N.oneOfType([N.oneOf(["inherit","large","medium","small"]),N.string]),htmlColor:N.string,inheritViewBox:N.bool,shapeRendering:N.string,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object]),titleAccess:N.string,viewBox:N.string}),Fo.muiName="SvgIcon";function lr(e,n){function t(r,o){return h.jsx(Fo,{"data-testid":process.env.NODE_ENV!=="production"?`${n}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(t.displayName=`${n}Icon`),t.muiName=Fo.muiName,Z.memo(Z.forwardRef(t))}const h0=lr(h.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),m0=lr(h.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),g0=lr(h.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),v0=({header:e,sidebar:n,mainContent:t})=>{const[r,o]=w.useState(!1),[a,i]=w.useState(!1),s=()=>{o(!r)},c=()=>{i(!a)};return h.jsxs("div",{className:`${Lt.dashboardContainer} ${a?Lt.sidebarCollapsed:""}`,children:[h.jsxs("header",{className:Lt.header,children:[h.jsx(E.IconButton,{onClick:s,className:Lt.menuButton,children:h.jsx(h0,{})}),h.jsx("div",{className:Lt.headerContent,children:e})]}),h.jsxs("aside",{className:`${Lt.sidebar} ${r?Lt.sidebarOpen:""}`,children:[h.jsx("div",{className:Lt.sidebarContent,children:n}),h.jsx(E.IconButton,{onClick:c,className:Lt.collapseButton,style:{display:"none"},children:a?h.jsx(g0,{}):h.jsx(m0,{})})]}),h.jsx("main",{className:Lt.mainContent,children:t}),r&&h.jsx("div",{className:Lt.overlay,onClick:s})]})},Mr={headerContainer:"_headerContainer_9sslw_1",navAndDate:"_navAndDate_9sslw_17",navButton:"_navButton_9sslw_29",datePickerInput:"_datePickerInput_9sslw_61",datePickerButton:"_datePickerButton_9sslw_91",addEventButton:"_addEventButton_9sslw_135"};function Yo(){return typeof window<"u"}function nn(e){return il(e)?(e.nodeName||"").toLowerCase():"#document"}function Tt(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Qt(e){var n;return(n=(il(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function il(e){return Yo()?e instanceof Node||e instanceof Tt(e).Node:!1}function dt(e){return Yo()?e instanceof Element||e instanceof Tt(e).Element:!1}function Jt(e){return Yo()?e instanceof HTMLElement||e instanceof Tt(e).HTMLElement:!1}function sl(e){return!Yo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Tt(e).ShadowRoot}const y0=new Set(["inline","contents"]);function jn(e){const{overflow:n,overflowX:t,overflowY:r,display:o}=It(e);return/auto|scroll|overlay|hidden|clip/.test(n+r+t)&&!y0.has(o)}const b0=new Set(["table","td","th"]);function w0(e){return b0.has(nn(e))}const _0=[":popover-open",":modal"];function Ho(e){return _0.some(n=>{try{return e.matches(n)}catch{return!1}})}const x0=["transform","translate","scale","rotate","perspective"],S0=["transform","translate","scale","rotate","perspective","filter"],C0=["paint","layout","strict","content"];function _i(e){const n=xi(),t=dt(e)?It(e):e;return x0.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!n&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!n&&(t.filter?t.filter!=="none":!1)||S0.some(r=>(t.willChange||"").includes(r))||C0.some(r=>(t.contain||"").includes(r))}function k0(e){let n=xr(e);for(;Jt(n)&&!on(n);){if(_i(n))return n;if(Ho(n))return null;n=xr(n)}return null}function xi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const D0=new Set(["html","body","#document"]);function on(e){return D0.has(nn(e))}function It(e){return Tt(e).getComputedStyle(e)}function Uo(e){return dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xr(e){if(nn(e)==="html")return e;const n=e.assignedSlot||e.parentNode||sl(e)&&e.host||Qt(e);return sl(n)?n.host:n}function cl(e){const n=xr(e);return on(n)?e.ownerDocument?e.ownerDocument.body:e.body:Jt(n)&&jn(n)?n:cl(n)}function Ln(e,n,t){var r;n===void 0&&(n=[]),t===void 0&&(t=!0);const o=cl(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),i=Tt(o);if(a){const s=Si(i);return n.concat(i,i.visualViewport||[],jn(o)?o:[],s&&t?Ln(s):[])}return n.concat(o,Ln(o,[],t))}function Si(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const an=Math.min,Ar=Math.max,Wo=Math.round,Zo=Math.floor,Xt=e=>({x:e,y:e}),E0={left:"right",right:"left",bottom:"top",top:"bottom"},T0={start:"end",end:"start"};function O0(e,n,t){return Ar(e,an(n,t))}function qo(e,n){return typeof e=="function"?e(n):e}function sn(e){return e.split("-")[0]}function zn(e){return e.split("-")[1]}function M0(e){return e==="x"?"y":"x"}function Ci(e){return e==="y"?"height":"width"}const A0=new Set(["top","bottom"]);function Pr(e){return A0.has(sn(e))?"y":"x"}function ki(e){return M0(Pr(e))}function P0(e,n,t){t===void 0&&(t=!1);const r=zn(e),o=ki(e),a=Ci(o);let i=o==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return n.reference[a]>n.floating[a]&&(i=Ko(i)),[i,Ko(i)]}function I0(e){const n=Ko(e);return[Di(e),n,Di(n)]}function Di(e){return e.replace(/start|end/g,n=>T0[n])}const ll=["left","right"],ul=["right","left"],N0=["top","bottom"],R0=["bottom","top"];function $0(e,n,t){switch(e){case"top":case"bottom":return t?n?ul:ll:n?ll:ul;case"left":case"right":return n?N0:R0;default:return[]}}function j0(e,n,t,r){const o=zn(e);let a=$0(sn(e),t==="start",r);return o&&(a=a.map(i=>i+"-"+o),n&&(a=a.concat(a.map(Di)))),a}function Ko(e){return e.replace(/left|right|bottom|top/g,n=>E0[n])}function L0(e){return{top:0,right:0,bottom:0,left:0,...e}}function dl(e){return typeof e!="number"?L0(e):{top:e,right:e,bottom:e,left:e}}function Go(e){const{x:n,y:t,width:r,height:o}=e;return{width:r,height:o,top:t,left:n,right:n+r,bottom:t+o,x:n,y:t}}var z0=typeof document<"u",B0=function(){},Qo=z0?w.useLayoutEffect:B0;const V0={...Z}.useInsertionEffect||(e=>e());function F0(e){const n=Z.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return V0(()=>{n.current=e}),Z.useCallback(function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return n.current==null?void 0:n.current(...r)},[])}function fl(e,n,t){let{reference:r,floating:o}=e;const a=Pr(n),i=ki(n),s=Ci(i),c=sn(n),l=a==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let m;switch(c){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch(zn(n)){case"start":m[i]-=f*(t&&l?-1:1);break;case"end":m[i]+=f*(t&&l?-1:1);break}return m}const Y0=async(e,n,t)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=t,s=a.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(n));let l=await i.getElementRects({reference:e,floating:n,strategy:o}),{x:u,y:d}=fl(l,r,c),f=r,m={},g=0;for(let p=0;p<s.length;p++){const{name:b,fn:x}=s[p],{x:S,y:T,data:D,reset:k}=await x({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:l,platform:i,elements:{reference:e,floating:n}});u=S??u,d=T??d,m={...m,[b]:{...m[b],...D}},k&&g<=50&&(g++,typeof k=="object"&&(k.placement&&(f=k.placement),k.rects&&(l=k.rects===!0?await i.getElementRects({reference:e,floating:n,strategy:o}):k.rects),{x:u,y:d}=fl(l,f,c)),p=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}};async function H0(e,n){var t;n===void 0&&(n={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=qo(n,e),g=dl(m),b=s[f?d==="floating"?"reference":"floating":d],x=Go(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(b)))==null||t?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),S=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),D=await(a.isElement==null?void 0:a.isElement(T))?await(a.getScale==null?void 0:a.getScale(T))||{x:1,y:1}:{x:1,y:1},k=Go(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:S,offsetParent:T,strategy:c}):S);return{top:(x.top-k.top+g.top)/D.y,bottom:(k.bottom-x.bottom+g.bottom)/D.y,left:(x.left-k.left+g.left)/D.x,right:(k.right-x.right+g.right)/D.x}}const U0=e=>({name:"arrow",options:e,async fn(n){const{x:t,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:c}=n,{element:l,padding:u=0}=qo(e,n)||{};if(l==null)return{};const d=dl(u),f={x:t,y:r},m=ki(o),g=Ci(m),p=await i.getDimensions(l),b=m==="y",x=b?"top":"left",S=b?"bottom":"right",T=b?"clientHeight":"clientWidth",D=a.reference[g]+a.reference[m]-f[m]-a.floating[g],k=f[m]-a.reference[m],O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let I=O?O[T]:0;(!I||!await(i.isElement==null?void 0:i.isElement(O)))&&(I=s.floating[T]||a.floating[g]);const W=D/2-k/2,U=I/2-p[g]/2-1,$=an(d[x],U),Q=an(d[S],U),v=$,M=I-p[g]-Q,P=I/2-p[g]/2+W,H=O0(v,P,M),Y=!c.arrow&&zn(o)!=null&&P!==H&&a.reference[g]/2-(P<v?$:Q)-p[g]/2<0,ee=Y?P<v?P-v:P-M:0;return{[m]:f[m]+ee,data:{[m]:H,centerOffset:P-H-ee,...Y&&{alignmentOffset:ee}},reset:Y}}}),W0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var t,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=n,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...b}=qo(e,n);if((t=a.arrow)!=null&&t.alignmentOffset)return{};const x=sn(o),S=Pr(s),T=sn(s)===s,D=await(c.isRTL==null?void 0:c.isRTL(l.floating)),k=f||(T||!p?[Ko(s)]:I0(s)),O=g!=="none";!f&&O&&k.push(...j0(s,p,g,D));const I=[s,...k],W=await H0(n,b),U=[];let $=((r=a.flip)==null?void 0:r.overflows)||[];if(u&&U.push(W[x]),d){const P=P0(o,i,D);U.push(W[P[0]],W[P[1]])}if($=[...$,{placement:o,overflows:U}],!U.every(P=>P<=0)){var Q,v;const P=(((Q=a.flip)==null?void 0:Q.index)||0)+1,H=I[P];if(H&&(!(d==="alignment"?S!==Pr(H):!1)||$.every(ae=>Pr(ae.placement)===S?ae.overflows[0]>0:!0)))return{data:{index:P,overflows:$},reset:{placement:H}};let Y=(v=$.filter(ee=>ee.overflows[0]<=0).sort((ee,ae)=>ee.overflows[1]-ae.overflows[1])[0])==null?void 0:v.placement;if(!Y)switch(m){case"bestFit":{var M;const ee=(M=$.filter(ae=>{if(O){const be=Pr(ae.placement);return be===S||be==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(be=>be>0).reduce((be,z)=>be+z,0)]).sort((ae,be)=>ae[1]-be[1])[0])==null?void 0:M[0];ee&&(Y=ee);break}case"initialPlacement":Y=s;break}if(o!==Y)return{reset:{placement:Y}}}return{}}}},Z0=new Set(["left","top"]);async function q0(e,n){const{placement:t,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=sn(t),s=zn(t),c=Pr(t)==="y",l=Z0.has(i)?-1:1,u=a&&c?-1:1,d=qo(n,e);let{mainAxis:f,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(m=s==="end"?g*-1:g),c?{x:m*u,y:f*l}:{x:f*l,y:m*u}}const K0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var t,r;const{x:o,y:a,placement:i,middlewareData:s}=n,c=await q0(n,e);return i===((t=s.offset)==null?void 0:t.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:{...c,placement:i}}}}};function pl(e){const n=It(e);let t=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const o=Jt(e),a=o?e.offsetWidth:t,i=o?e.offsetHeight:r,s=Wo(t)!==a||Wo(r)!==i;return s&&(t=a,r=i),{width:t,height:r,$:s}}function Ei(e){return dt(e)?e:e.contextElement}function cn(e){const n=Ei(e);if(!Jt(n))return Xt(1);const t=n.getBoundingClientRect(),{width:r,height:o,$:a}=pl(n);let i=(a?Wo(t.width):t.width)/r,s=(a?Wo(t.height):t.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const G0=Xt(0);function hl(e){const n=Tt(e);return!xi()||!n.visualViewport?G0:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Q0(e,n,t){return n===void 0&&(n=!1),!t||n&&t!==Tt(e)?!1:n}function Ir(e,n,t,r){n===void 0&&(n=!1),t===void 0&&(t=!1);const o=e.getBoundingClientRect(),a=Ei(e);let i=Xt(1);n&&(r?dt(r)&&(i=cn(r)):i=cn(e));const s=Q0(a,t,r)?hl(a):Xt(0);let c=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const f=Tt(a),m=r&&dt(r)?Tt(r):r;let g=f,p=Si(g);for(;p&&r&&m!==g;){const b=cn(p),x=p.getBoundingClientRect(),S=It(p),T=x.left+(p.clientLeft+parseFloat(S.paddingLeft))*b.x,D=x.top+(p.clientTop+parseFloat(S.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,d*=b.y,c+=T,l+=D,g=Tt(p),p=Si(g)}}return Go({width:u,height:d,x:c,y:l})}function Jo(e,n){const t=Uo(e).scrollLeft;return n?n.left+t:Ir(Qt(e)).left+t}function ml(e,n){const t=e.getBoundingClientRect(),r=t.left+n.scrollLeft-Jo(e,t),o=t.top+n.scrollTop;return{x:r,y:o}}function J0(e){let{elements:n,rect:t,offsetParent:r,strategy:o}=e;const a=o==="fixed",i=Qt(r),s=n?Ho(n.floating):!1;if(r===i||s&&a)return t;let c={scrollLeft:0,scrollTop:0},l=Xt(1);const u=Xt(0),d=Jt(r);if((d||!d&&!a)&&((nn(r)!=="body"||jn(i))&&(c=Uo(r)),Jt(r))){const m=Ir(r);l=cn(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const f=i&&!d&&!a?ml(i,c):Xt(0);return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:t.y*l.y-c.scrollTop*l.y+u.y+f.y}}function X0(e){return Array.from(e.getClientRects())}function eg(e){const n=Qt(e),t=Uo(e),r=e.ownerDocument.body,o=Ar(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),a=Ar(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let i=-t.scrollLeft+Jo(e);const s=-t.scrollTop;return It(r).direction==="rtl"&&(i+=Ar(n.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}const gl=25;function tg(e,n){const t=Tt(e),r=Qt(e),o=t.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,c=0;if(o){a=o.width,i=o.height;const u=xi();(!u||u&&n==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const l=Jo(r);if(l<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-m);g<=gl&&(a-=g)}else l<=gl&&(a+=l);return{width:a,height:i,x:s,y:c}}const rg=new Set(["absolute","fixed"]);function ng(e,n){const t=Ir(e,!0,n==="fixed"),r=t.top+e.clientTop,o=t.left+e.clientLeft,a=Jt(e)?cn(e):Xt(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=o*a.x,l=r*a.y;return{width:i,height:s,x:c,y:l}}function vl(e,n,t){let r;if(n==="viewport")r=tg(e,t);else if(n==="document")r=eg(Qt(e));else if(dt(n))r=ng(n,t);else{const o=hl(e);r={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return Go(r)}function yl(e,n){const t=xr(e);return t===n||!dt(t)||on(t)?!1:It(t).position==="fixed"||yl(t,n)}function og(e,n){const t=n.get(e);if(t)return t;let r=Ln(e,[],!1).filter(s=>dt(s)&&nn(s)!=="body"),o=null;const a=It(e).position==="fixed";let i=a?xr(e):e;for(;dt(i)&&!on(i);){const s=It(i),c=_i(i);!c&&s.position==="fixed"&&(o=null),(a?!c&&!o:!c&&s.position==="static"&&!!o&&rg.has(o.position)||jn(i)&&!c&&yl(e,i))?r=r.filter(u=>u!==i):o=s,i=xr(i)}return n.set(e,r),r}function ag(e){let{element:n,boundary:t,rootBoundary:r,strategy:o}=e;const i=[...t==="clippingAncestors"?Ho(n)?[]:og(n,this._c):[].concat(t),r],s=i[0],c=i.reduce((l,u)=>{const d=vl(n,u,o);return l.top=Ar(d.top,l.top),l.right=an(d.right,l.right),l.bottom=an(d.bottom,l.bottom),l.left=Ar(d.left,l.left),l},vl(n,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ig(e){const{width:n,height:t}=pl(e);return{width:n,height:t}}function sg(e,n,t){const r=Jt(n),o=Qt(n),a=t==="fixed",i=Ir(e,!0,a,n);let s={scrollLeft:0,scrollTop:0};const c=Xt(0);function l(){c.x=Jo(o)}if(r||!r&&!a)if((nn(n)!=="body"||jn(o))&&(s=Uo(n)),r){const m=Ir(n,!0,a,n);c.x=m.x+n.clientLeft,c.y=m.y+n.clientTop}else o&&l();a&&!r&&o&&l();const u=o&&!r&&!a?ml(o,s):Xt(0),d=i.left+s.scrollLeft-c.x-u.x,f=i.top+s.scrollTop-c.y-u.y;return{x:d,y:f,width:i.width,height:i.height}}function Ti(e){return It(e).position==="static"}function bl(e,n){if(!Jt(e)||It(e).position==="fixed")return null;if(n)return n(e);let t=e.offsetParent;return Qt(e)===t&&(t=t.ownerDocument.body),t}function wl(e,n){const t=Tt(e);if(Ho(e))return t;if(!Jt(e)){let o=xr(e);for(;o&&!on(o);){if(dt(o)&&!Ti(o))return o;o=xr(o)}return t}let r=bl(e,n);for(;r&&w0(r)&&Ti(r);)r=bl(r,n);return r&&on(r)&&Ti(r)&&!_i(r)?t:r||k0(e)||t}const cg=async function(e){const n=this.getOffsetParent||wl,t=this.getDimensions,r=await t(e.floating);return{reference:sg(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function lg(e){return It(e).direction==="rtl"}const ug={convertOffsetParentRelativeRectToViewportRelativeRect:J0,getDocumentElement:Qt,getClippingRect:ag,getOffsetParent:wl,getElementRects:cg,getClientRects:X0,getDimensions:ig,getScale:cn,isElement:dt,isRTL:lg};function _l(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function dg(e,n){let t=null,r;const o=Qt(e);function a(){var s;clearTimeout(r),(s=t)==null||s.disconnect(),t=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:m}=l;if(s||n(),!f||!m)return;const g=Zo(d),p=Zo(o.clientWidth-(u+f)),b=Zo(o.clientHeight-(d+m)),x=Zo(u),T={rootMargin:-g+"px "+-p+"px "+-b+"px "+-x+"px",threshold:Ar(0,an(1,c))||1};let D=!0;function k(O){const I=O[0].intersectionRatio;if(I!==c){if(!D)return i();I?i(!1,I):r=setTimeout(()=>{i(!1,1e-7)},1e3)}I===1&&!_l(l,e.getBoundingClientRect())&&i(),D=!1}try{t=new IntersectionObserver(k,{...T,root:o.ownerDocument})}catch{t=new IntersectionObserver(k,T)}t.observe(e)}return i(!0),a}function fg(e,n,t,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Ei(e),u=o||a?[...l?Ln(l):[],...Ln(n)]:[];u.forEach(x=>{o&&x.addEventListener("scroll",t,{passive:!0}),a&&x.addEventListener("resize",t)});const d=l&&s?dg(l,t):null;let f=-1,m=null;i&&(m=new ResizeObserver(x=>{let[S]=x;S&&S.target===l&&m&&(m.unobserve(n),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var T;(T=m)==null||T.observe(n)})),t()}),l&&!c&&m.observe(l),m.observe(n));let g,p=c?Ir(e):null;c&&b();function b(){const x=Ir(e);p&&!_l(p,x)&&t(),p=x,g=requestAnimationFrame(b)}return t(),()=>{var x;u.forEach(S=>{o&&S.removeEventListener("scroll",t),a&&S.removeEventListener("resize",t)}),d?.(),(x=m)==null||x.disconnect(),m=null,c&&cancelAnimationFrame(g)}}const pg=K0,hg=W0,xl=U0,mg=(e,n,t)=>{const r=new Map,o={platform:ug,...t},a={...o.platform,_c:r};return Y0(e,n,{...o,platform:a})};var gg=typeof document<"u",vg=function(){},Xo=gg?w.useLayoutEffect:vg;function ea(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let t,r,o;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(t=e.length,t!==n.length)return!1;for(r=t;r--!==0;)if(!ea(e[r],n[r]))return!1;return!0}if(o=Object.keys(e),t=o.length,t!==Object.keys(n).length)return!1;for(r=t;r--!==0;)if(!{}.hasOwnProperty.call(n,o[r]))return!1;for(r=t;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!ea(e[a],n[a]))return!1}return!0}return e!==e&&n!==n}function Sl(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cl(e,n){const t=Sl(e);return Math.round(n*t)/t}function Oi(e){const n=Z.useRef(e);return Xo(()=>{n.current=e}),n}function yg(e){e===void 0&&(e={});const{placement:n="bottom",strategy:t="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=Z.useState({x:0,y:0,strategy:t,placement:n,middlewareData:{},isPositioned:!1}),[f,m]=Z.useState(r);ea(f,r)||m(r);const[g,p]=Z.useState(null),[b,x]=Z.useState(null),S=Z.useCallback(ae=>{ae!==O.current&&(O.current=ae,p(ae))},[]),T=Z.useCallback(ae=>{ae!==I.current&&(I.current=ae,x(ae))},[]),D=a||g,k=i||b,O=Z.useRef(null),I=Z.useRef(null),W=Z.useRef(u),U=c!=null,$=Oi(c),Q=Oi(o),v=Oi(l),M=Z.useCallback(()=>{if(!O.current||!I.current)return;const ae={placement:n,strategy:t,middleware:f};Q.current&&(ae.platform=Q.current),mg(O.current,I.current,ae).then(be=>{const z={...be,isPositioned:v.current!==!1};P.current&&!ea(W.current,z)&&(W.current=z,qf.flushSync(()=>{d(z)}))})},[f,n,t,Q,v]);Xo(()=>{l===!1&&W.current.isPositioned&&(W.current.isPositioned=!1,d(ae=>({...ae,isPositioned:!1})))},[l]);const P=Z.useRef(!1);Xo(()=>(P.current=!0,()=>{P.current=!1}),[]),Xo(()=>{if(D&&(O.current=D),k&&(I.current=k),D&&k){if($.current)return $.current(D,k,M);M()}},[D,k,M,$,U]);const H=Z.useMemo(()=>({reference:O,floating:I,setReference:S,setFloating:T}),[S,T]),Y=Z.useMemo(()=>({reference:D,floating:k}),[D,k]),ee=Z.useMemo(()=>{const ae={position:t,left:0,top:0};if(!Y.floating)return ae;const be=Cl(Y.floating,u.x),z=Cl(Y.floating,u.y);return s?{...ae,transform:"translate("+be+"px, "+z+"px)",...Sl(Y.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:be,top:z}},[t,s,Y.floating,u.x,u.y]);return Z.useMemo(()=>({...u,update:M,refs:H,elements:Y,floatingStyles:ee}),[u,M,H,Y,ee])}const bg=e=>{function n(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:e,fn(t){const{element:r,padding:o}=typeof e=="function"?e(t):e;return r&&n(r)?r.current!=null?xl({element:r.current,padding:o}).fn(t):{}:r?xl({element:r,padding:o}).fn(t):{}}}},wg=(e,n)=>({...pg(e),options:[e,n]}),_g=(e,n)=>({...hg(e),options:[e,n]}),xg=(e,n)=>({...bg(e),options:[e,n]}),Sg={...Z};let kl=!1,Cg=0;const Dl=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Cg++;function kg(){const[e,n]=Z.useState(()=>kl?Dl():void 0);return Qo(()=>{e==null&&n(Dl())},[]),Z.useEffect(()=>{kl=!0},[]),e}const El=Sg.useId||kg;let Bn;process.env.NODE_ENV!=="production"&&(Bn=new Set);function Dg(){for(var e,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];const o="Floating UI: "+t.join(" ");if(!((e=Bn)!=null&&e.has(o))){var a;(a=Bn)==null||a.add(o),console.warn(o)}}function Eg(){for(var e,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];const o="Floating UI: "+t.join(" ");if(!((e=Bn)!=null&&e.has(o))){var a;(a=Bn)==null||a.add(o),console.error(o)}}const Tg=Z.forwardRef(function(n,t){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:a,shift:i}},width:s=14,height:c=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:d,stroke:f,d:m,style:{transform:g,...p}={},...b}=n;process.env.NODE_ENV!=="production"&&(t||Dg("The `ref` prop is required for `FloatingArrow`."));const x=El(),[S,T]=Z.useState(!1);if(Qo(()=>{if(!o)return;It(o).direction==="rtl"&&T(!0)},[o]),!o)return null;const[D,k]=r.split("-"),O=D==="top"||D==="bottom";let I=d;(O&&i!=null&&i.x||!O&&i!=null&&i.y)&&(I=null);const W=u*2,U=W/2,$=s/2*(l/-8+1),Q=c/2*l/4,v=!!m,M=I&&k==="end"?"bottom":"top";let P=I&&k==="end"?"right":"left";I&&S&&(P=k==="end"?"left":"right");const H=a?.x!=null?I||a.x:"",Y=a?.y!=null?I||a.y:"",ee=m||"M0,0"+(" H"+s)+(" L"+(s-$)+","+(c-Q))+(" Q"+s/2+","+c+" "+$+","+(c-Q))+" Z",ae={top:v?"rotate(180deg)":"",left:v?"rotate(90deg)":"rotate(-90deg)",bottom:v?"":"rotate(180deg)",right:v?"rotate(-90deg)":"rotate(90deg)"}[D];return h.jsxs("svg",{...b,"aria-hidden":!0,ref:t,width:v?s:s+W,height:s,viewBox:"0 0 "+s+" "+(c>s?c:s),style:{position:"absolute",pointerEvents:"none",[P]:H,[M]:Y,[D]:O||v?"100%":"calc(100% - "+W/2+"px)",transform:[ae,g].filter(be=>!!be).join(" "),...p},children:[W>0&&h.jsx("path",{clipPath:"url(#"+x+")",fill:"none",stroke:f,strokeWidth:W+(m?0:1),d:ee}),h.jsx("path",{stroke:W&&!m?b.fill:"none",d:ee}),h.jsx("clipPath",{id:x,children:h.jsx("rect",{x:-U,y:U*(v?-1:1),width:s+W,height:s})})]})});function Og(){const e=new Map;return{emit(n,t){var r;(r=e.get(n))==null||r.forEach(o=>o(t))},on(n,t){e.has(n)||e.set(n,new Set),e.get(n).add(t)},off(n,t){var r;(r=e.get(n))==null||r.delete(t)}}}const Mg=Z.createContext(null),Ag=Z.createContext(null),Pg=()=>{var e;return((e=Z.useContext(Mg))==null?void 0:e.id)||null},Ig=()=>Z.useContext(Ag);function Ng(e){const{open:n=!1,onOpenChange:t,elements:r}=e,o=El(),a=Z.useRef({}),[i]=Z.useState(()=>Og()),s=Pg()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!dt(m)&&Eg("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,l]=Z.useState(r.reference),u=F0((m,g,p)=>{a.current.openEvent=m?g:void 0,i.emit("openchange",{open:m,event:g,reason:p,nested:s}),t?.(m,g,p)}),d=Z.useMemo(()=>({setPositionReference:l}),[]),f=Z.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return Z.useMemo(()=>({dataRef:a,open:n,onOpenChange:u,elements:f,events:i,floatingId:o,refs:d}),[n,u,f,i,o,d])}function Rg(e){e===void 0&&(e={});const{nodeId:n}=e,t=Ng({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||t,o=r.elements,[a,i]=Z.useState(null),[s,c]=Z.useState(null),u=o?.domReference||a,d=Z.useRef(null),f=Ig();Qo(()=>{u&&(d.current=u)},[u]);const m=yg({...e,elements:{...o,...s&&{reference:s}}}),g=Z.useCallback(T=>{const D=dt(T)?{getBoundingClientRect:()=>T.getBoundingClientRect(),getClientRects:()=>T.getClientRects(),contextElement:T}:T;c(D),m.refs.setReference(D)},[m.refs]),p=Z.useCallback(T=>{(dt(T)||T===null)&&(d.current=T,i(T)),(dt(m.refs.reference.current)||m.refs.reference.current===null||T!==null&&!dt(T))&&m.refs.setReference(T)},[m.refs]),b=Z.useMemo(()=>({...m.refs,setReference:p,setPositionReference:g,domReference:d}),[m.refs,p,g]),x=Z.useMemo(()=>({...m.elements,domReference:u}),[m.elements,u]),S=Z.useMemo(()=>({...m,...r,refs:b,elements:x,nodeId:n}),[m,b,x,n,r]);return Qo(()=>{r.dataRef.current.floatingContext=S;const T=f?.nodesRef.current.find(D=>D.id===n);T&&(T.context=S)}),Z.useMemo(()=>({...m,context:S,refs:b,elements:x}),[m,b,x,S])}/*!
118
104
  react-datepicker v8.7.0
119
105
  https://github.com/Hacker0x01/react-datepicker
120
106
  Released under the MIT License.
121
- */var ls=function(r,t){return ls=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},ls(r,t)};function pt(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");ls(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var Se=function(){return Se=Object.assign||function(t){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Se.apply(this,arguments)};function fr(e,r,t){if(t||arguments.length===2)for(var n=0,o=r.length,i;n<o;n++)(i||!(n in r))&&(i||(i=Array.prototype.slice.call(r,0,n)),i[n]=r[n]);return e.concat(i||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;var ey=function(e){var r=e.showTimeSelectOnly,t=r===void 0?!1:r,n=e.showTime,o=n===void 0?!1:n,i=e.className,a=e.children,s=t?"Choose Time":"Choose Date".concat(o?" and Time":"");return x.createElement("div",{className:i,role:"dialog","aria-label":s,"aria-modal":"true"},a)},ty=function(e,r){var t=x.useRef(null),n=x.useRef(e);n.current=e;var o=x.useCallback(function(i){var a,s=i.composed&&i.composedPath&&i.composedPath().find(function(c){return c instanceof Node})||i.target;t.current&&!t.current.contains(s)&&(r&&s instanceof HTMLElement&&s.classList.contains(r)||(a=n.current)===null||a===void 0||a.call(n,i))},[r]);return x.useEffect(function(){return document.addEventListener("mousedown",o),function(){document.removeEventListener("mousedown",o)}},[o]),t},Si=function(e){var r=e.children,t=e.onClickOutside,n=e.className,o=e.containerRef,i=e.style,a=e.ignoreClass,s=ty(t,a);return x.createElement("div",{className:n,style:i,ref:function(c){s.current=c,o&&(o.current=c)}},r)},ie;(function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"})(ie||(ie={}));function Ou(){var e=typeof window<"u"?window:globalThis;return e}var io=12;function Re(e){if(e==null)return new Date;var r=typeof e=="string"?w.parseISO(e):w.toDate(e);return Ci(r)?r:new Date}function us(e,r,t,n,o){o===void 0&&(o=Re());for(var i=Cn(t)||Cn(fs()),a=Array.isArray(r)?r:[r],s=0,c=a;s<c.length;s++){var l=c[s],u=w.parse(e,l,o,{locale:i,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});if(Ci(u)&&(!n||e===Ue(u,l,t)))return u}return null}function Ci(e,r){return w.isValid(e)&&!w.isBefore(e,new Date("1/1/1800"))}function Ue(e,r,t){if(t==="en")return w.format(e,r,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var n=t?Cn(t):void 0;return t&&!n&&console.warn('A locale object was not found for the provided string ["'.concat(t,'"].')),n=n||Cn(fs()),w.format(e,r,{locale:n,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Ft(e,r){var t=r.dateFormat,n=r.locale,o=Array.isArray(t)&&t.length>0?t[0]:t;return e&&Ue(e,o,n)||""}var Mu=" - ";function ry(e,r,t){if(!e&&!r)return"";var n=e?Ft(e,t):"",o=r?Ft(r,t):"",i=t.rangeSeparator||Mu;return"".concat(n).concat(i).concat(o)}function ny(e,r){if(!e?.length)return"";var t=e[0]?Ft(e[0],r):"";if(e.length===1)return t;if(e.length===2&&e[1]){var n=Ft(e[1],r);return"".concat(t,", ").concat(n)}var o=e.length-1;return"".concat(t," (+").concat(o,")")}function ds(e,r){var t=r.hour,n=t===void 0?0:t,o=r.minute,i=o===void 0?0:o,a=r.second,s=a===void 0?0:a;return w.setHours(w.setMinutes(w.setSeconds(e,s),i),n)}function oy(e){return w.getISOWeek(e)}function iy(e,r){return Ue(e,"ddd",r)}function Ei(e){return w.startOfDay(e)}function Rr(e,r,t){var n=Cn(r||fs());return w.startOfWeek(e,{locale:n,weekStartsOn:t})}function br(e){return w.startOfMonth(e)}function ao(e){return w.startOfYear(e)}function Pu(e){return w.startOfQuarter(e)}function Au(){return w.startOfDay(Re())}function Iu(e){return w.endOfDay(e)}function ay(e){return w.endOfWeek(e)}function sy(e){return w.endOfMonth(e)}function pr(e,r){return e&&r?w.isSameYear(e,r):!e&&!r}function yt(e,r){return e&&r?w.isSameMonth(e,r):!e&&!r}function ki(e,r){return e&&r?w.isSameQuarter(e,r):!e&&!r}function Ce(e,r){return e&&r?w.isSameDay(e,r):!e&&!r}function Zr(e,r){return e&&r?w.isEqual(e,r):!e&&!r}function qr(e,r,t){var n,o=w.startOfDay(r),i=w.endOfDay(t);try{n=w.isWithinInterval(e,{start:o,end:i})}catch{n=!1}return n}function fs(){var e=Ou();return e.__localeId__}function Cn(e){if(typeof e=="string"){var r=Ou();return r.__localeData__?r.__localeData__[e]:void 0}else return e}function cy(e,r,t){return r(Ue(e,"EEEE",t))}function ly(e,r){return Ue(e,"EEEEEE",r)}function uy(e,r){return Ue(e,"EEE",r)}function ps(e,r){return Ue(w.setMonth(Re(),e),"LLLL",r)}function Ru(e,r){return Ue(w.setMonth(Re(),e),"LLL",r)}function dy(e,r){return Ue(w.setQuarter(Re(),e),"QQQ",r)}function Yt(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.excludeDateIntervals,s=t.includeDates,c=t.includeDateIntervals,l=t.filterDate;return so(e,{minDate:n,maxDate:o})||i&&i.some(function(u){return u instanceof Date?Ce(e,u):Ce(e,u.date)})||a&&a.some(function(u){var d=u.start,f=u.end;return w.isWithinInterval(e,{start:d,end:f})})||s&&!s.some(function(u){return Ce(e,u)})||c&&!c.some(function(u){var d=u.start,f=u.end;return w.isWithinInterval(e,{start:d,end:f})})||l&&!l(Re(e))||!1}function hs(e,r){var t=r===void 0?{}:r,n=t.excludeDates,o=t.excludeDateIntervals;return o&&o.length>0?o.some(function(i){var a=i.start,s=i.end;return w.isWithinInterval(e,{start:a,end:s})}):n&&n.some(function(i){var a;return i instanceof Date?Ce(e,i):Ce(e,(a=i.date)!==null&&a!==void 0?a:new Date)})||!1}function Nu(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates,s=t.filterDate;return so(e,{minDate:n?w.startOfMonth(n):void 0,maxDate:o?w.endOfMonth(o):void 0})||i?.some(function(c){return yt(e,c instanceof Date?c:c.date)})||a&&!a.some(function(c){return yt(e,c)})||s&&!s(Re(e))||!1}function Di(e,r,t,n){var o=w.getYear(e),i=w.getMonth(e),a=w.getYear(r),s=w.getMonth(r),c=w.getYear(n);return o===a&&o===c?i<=t&&t<=s:o<a?c===o&&i<=t||c===a&&s>=t||c<a&&c>o:!1}function fy(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates;return so(e,{minDate:n,maxDate:o})||i&&i.some(function(s){return yt(s instanceof Date?s:s.date,e)})||a&&!a.some(function(s){return yt(s,e)})||!1}function Ti(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates,s=t.filterDate;return so(e,{minDate:n,maxDate:o})||i?.some(function(c){return ki(e,c instanceof Date?c:c.date)})||a&&!a.some(function(c){return ki(e,c)})||s&&!s(Re(e))||!1}function Oi(e,r,t){if(!r||!t||!w.isValid(r)||!w.isValid(t))return!1;var n=w.getYear(r),o=w.getYear(t);return n<=e&&o>=e}function Mi(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.maxDate,i=t.excludeDates,a=t.includeDates,s=t.filterDate,c=new Date(e,0,1);return so(c,{minDate:n?w.startOfYear(n):void 0,maxDate:o?w.endOfYear(o):void 0})||i?.some(function(l){return pr(c,l instanceof Date?l:l.date)})||a&&!a.some(function(l){return pr(c,l)})||s&&!s(Re(c))||!1}function Pi(e,r,t,n){var o=w.getYear(e),i=w.getQuarter(e),a=w.getYear(r),s=w.getQuarter(r),c=w.getYear(n);return o===a&&o===c?i<=t&&t<=s:o<a?c===o&&i<=t||c===a&&s>=t||c<a&&c>o:!1}function so(e,r){var t,n=r===void 0?{}:r,o=n.minDate,i=n.maxDate;return(t=o&&w.differenceInCalendarDays(e,o)<0||i&&w.differenceInCalendarDays(e,i)>0)!==null&&t!==void 0?t:!1}function $u(e,r){return r.some(function(t){return w.getHours(t)===w.getHours(e)&&w.getMinutes(t)===w.getMinutes(e)&&w.getSeconds(t)===w.getSeconds(e)})}function ju(e,r){var t=r===void 0?{}:r,n=t.excludeTimes,o=t.includeTimes,i=t.filterTime;return n&&$u(e,n)||o&&!$u(e,o)||i&&!i(e)||!1}function Lu(e,r){var t=r.minTime,n=r.maxTime;if(!t||!n)throw new Error("Both minTime and maxTime props required");var o=Re();o=w.setHours(o,w.getHours(e)),o=w.setMinutes(o,w.getMinutes(e)),o=w.setSeconds(o,w.getSeconds(e));var i=Re();i=w.setHours(i,w.getHours(t)),i=w.setMinutes(i,w.getMinutes(t)),i=w.setSeconds(i,w.getSeconds(t));var a=Re();a=w.setHours(a,w.getHours(n)),a=w.setMinutes(a,w.getMinutes(n)),a=w.setSeconds(a,w.getSeconds(n));var s;try{s=!w.isWithinInterval(o,{start:i,end:a})}catch{s=!1}return s}function zu(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.includeDates,i=w.subMonths(e,1);return n&&w.differenceInCalendarMonths(n,i)>0||o&&o.every(function(a){return w.differenceInCalendarMonths(a,i)>0})||!1}function Bu(e,r){var t=r===void 0?{}:r,n=t.maxDate,o=t.includeDates,i=w.addMonths(e,1);return n&&w.differenceInCalendarMonths(i,n)>0||o&&o.every(function(a){return w.differenceInCalendarMonths(i,a)>0})||!1}function py(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.includeDates,i=w.startOfYear(e),a=w.subQuarters(i,1);return n&&w.differenceInCalendarQuarters(n,a)>0||o&&o.every(function(s){return w.differenceInCalendarQuarters(s,a)>0})||!1}function hy(e,r){var t=r===void 0?{}:r,n=t.maxDate,o=t.includeDates,i=w.endOfYear(e),a=w.addQuarters(i,1);return n&&w.differenceInCalendarQuarters(a,n)>0||o&&o.every(function(s){return w.differenceInCalendarQuarters(a,s)>0})||!1}function Vu(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.includeDates,i=w.subYears(e,1);return n&&w.differenceInCalendarYears(n,i)>0||o&&o.every(function(a){return w.differenceInCalendarYears(a,i)>0})||!1}function my(e,r){var t=r===void 0?{}:r,n=t.minDate,o=t.yearItemNumber,i=o===void 0?io:o,a=ao(w.subYears(e,i)),s=wr(a,i).endPeriod,c=n&&w.getYear(n);return c&&c>s||!1}function Fu(e,r){var t=r===void 0?{}:r,n=t.maxDate,o=t.includeDates,i=w.addYears(e,1);return n&&w.differenceInCalendarYears(i,n)>0||o&&o.every(function(a){return w.differenceInCalendarYears(i,a)>0})||!1}function gy(e,r){var t=r===void 0?{}:r,n=t.maxDate,o=t.yearItemNumber,i=o===void 0?io:o,a=w.addYears(e,i),s=wr(a,i).startPeriod,c=n&&w.getYear(n);return c&&c<s||!1}function Yu(e){var r=e.minDate,t=e.includeDates;if(t&&r){var n=t.filter(function(o){return w.differenceInCalendarDays(o,r)>=0});return w.min(n)}else return t?w.min(t):r}function Uu(e){var r=e.maxDate,t=e.includeDates;if(t&&r){var n=t.filter(function(o){return w.differenceInCalendarDays(o,r)<=0});return w.max(n)}else return t?w.max(t):r}function Hu(e,r){var t;e===void 0&&(e=[]),r===void 0&&(r="react-datepicker__day--highlighted");for(var n=new Map,o=0,i=e.length;o<i;o++){var a=e[o];if(w.isDate(a)){var s=Ue(a,"MM.dd.yyyy"),c=n.get(s)||[];c.includes(r)||(c.push(r),n.set(s,c))}else if(typeof a=="object"){var l=Object.keys(a),u=(t=l[0])!==null&&t!==void 0?t:"",d=a[u];if(typeof u=="string"&&Array.isArray(d))for(var f=0,m=d.length;f<m;f++){var g=d[f];if(g){var s=Ue(g,"MM.dd.yyyy"),c=n.get(s)||[];c.includes(u)||(c.push(u),n.set(s,c))}}}}return n}function vy(e,r){return e.length!==r.length?!1:e.every(function(t,n){return t===r[n]})}function yy(e,r){e===void 0&&(e=[]),r===void 0&&(r="react-datepicker__day--holidays");var t=new Map;return e.forEach(function(n){var o=n.date,i=n.holidayName;if(w.isDate(o)){var a=Ue(o,"MM.dd.yyyy"),s=t.get(a)||{className:"",holidayNames:[]};if(!("className"in s&&s.className===r&&vy(s.holidayNames,[i]))){s.className=r;var c=s.holidayNames;s.holidayNames=c?fr(fr([],c,!0),[i],!1):[i],t.set(a,s)}}}),t}function by(e,r,t,n,o){for(var i=o.length,a=[],s=0;s<i;s++){var c=e,l=o[s];l&&(c=w.addHours(c,w.getHours(l)),c=w.addMinutes(c,w.getMinutes(l)),c=w.addSeconds(c,w.getSeconds(l)));var u=w.addMinutes(e,(t+1)*n);w.isAfter(c,r)&&w.isBefore(c,u)&&l!=null&&a.push(l)}return a}function Wu(e){return e<10?"0".concat(e):"".concat(e)}function wr(e,r){r===void 0&&(r=io);var t=Math.ceil(w.getYear(e)/r)*r,n=t-(r-1);return{startPeriod:n,endPeriod:t}}function wy(e){var r=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+t-+r)/36e5)}function Zu(e){var r=e.getSeconds(),t=e.getMilliseconds();return w.toDate(e.getTime()-r*1e3-t)}function _y(e,r){return Zu(e).getTime()===Zu(r).getTime()}function qu(e){if(!w.isDate(e))throw new Error("Invalid date");var r=new Date(e);return r.setHours(0,0,0,0),r}function ms(e,r){if(!w.isDate(e)||!w.isDate(r))throw new Error("Invalid date received");var t=qu(e),n=qu(r);return w.isBefore(t,n)}function Ku(e){return e.key===ie.Space}var xy=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.inputRef=x.createRef(),n.onTimeChange=function(o){var i,a;n.setState({time:o});var s=n.props.date,c=s instanceof Date&&!isNaN(+s),l=c?s:new Date;if(o?.includes(":")){var u=o.split(":"),d=u[0],f=u[1];l.setHours(Number(d)),l.setMinutes(Number(f))}(a=(i=n.props).onChange)===null||a===void 0||a.call(i,l)},n.renderTimeInput=function(){var o=n.state.time,i=n.props,a=i.date,s=i.timeString,c=i.customTimeInput;return c?x.cloneElement(c,{date:a,value:o,onChange:n.onTimeChange}):x.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:n.inputRef,onClick:function(){var l;(l=n.inputRef.current)===null||l===void 0||l.focus()},required:!0,value:o,onChange:function(l){n.onTimeChange(l.target.value||s)}})},n.state={time:n.props.timeString},n}return r.getDerivedStateFromProps=function(t,n){return t.timeString!==n.time?{time:t.timeString}:null},r.prototype.render=function(){return x.createElement("div",{className:"react-datepicker__input-time-container"},x.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),x.createElement("div",{className:"react-datepicker-time__input-container"},x.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},r})(x.Component),Sy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dayEl=x.createRef(),t.handleClick=function(n){!t.isDisabled()&&t.props.onClick&&t.props.onClick(n)},t.handleMouseEnter=function(n){!t.isDisabled()&&t.props.onMouseEnter&&t.props.onMouseEnter(n)},t.handleOnKeyDown=function(n){var o,i,a=n.key;a===ie.Space&&(n.preventDefault(),n.key=ie.Enter),(i=(o=t.props).handleOnKeyDown)===null||i===void 0||i.call(o,n)},t.isSameDay=function(n){return Ce(t.props.day,n)},t.isKeyboardSelected=function(){var n;if(t.props.disabledKeyboardNavigation)return!1;var o=t.props.selectsMultiple?(n=t.props.selectedDates)===null||n===void 0?void 0:n.some(function(a){return t.isSameDayOrWeek(a)}):t.isSameDayOrWeek(t.props.selected),i=t.props.preSelection&&t.isDisabled(t.props.preSelection);return!o&&t.isSameDayOrWeek(t.props.preSelection)&&!i},t.isDisabled=function(n){return n===void 0&&(n=t.props.day),Yt(n,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(){return hs(t.props.day,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.isStartOfWeek=function(){return Ce(t.props.day,Rr(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameWeek=function(n){return t.props.showWeekPicker&&Ce(n,Rr(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameDayOrWeek=function(n){return t.isSameDay(n)||t.isSameWeek(n)},t.getHighLightedClass=function(){var n=t.props,o=n.day,i=n.highlightDates;if(!i)return!1;var a=Ue(o,"MM.dd.yyyy");return i.get(a)},t.getHolidaysClass=function(){var n,o=t.props,i=o.day,a=o.holidays;if(!a)return[void 0];var s=Ue(i,"MM.dd.yyyy");return a.has(s)?[(n=a.get(s))===null||n===void 0?void 0:n.className]:[void 0]},t.isInRange=function(){var n=t.props,o=n.day,i=n.startDate,a=n.endDate;return!i||!a?!1:qr(o,i,a)},t.isInSelectingRange=function(){var n,o=t.props,i=o.day,a=o.selectsStart,s=o.selectsEnd,c=o.selectsRange,l=o.selectsDisabledDaysInRange,u=o.startDate,d=o.swapRange,f=o.endDate,m=(n=t.props.selectingDate)!==null&&n!==void 0?n:t.props.preSelection;if(!(a||s||c)||!m||!l&&t.isDisabled())return!1;if(a&&f&&(w.isBefore(m,f)||Zr(m,f)))return qr(i,m,f);if(s&&u&&(w.isAfter(m,u)||Zr(m,u)))return qr(i,u,m);if(c&&u&&!f){if(Zr(m,u)||w.isAfter(m,u))return qr(i,u,m);if(d&&w.isBefore(m,u))return qr(i,m,u)}return!1},t.isSelectingRangeStart=function(){var n;if(!t.isInSelectingRange())return!1;var o=t.props,i=o.day,a=o.startDate,s=o.selectsStart,c=o.swapRange,l=o.selectsRange,u=(n=t.props.selectingDate)!==null&&n!==void 0?n:t.props.preSelection;return s?Ce(i,u):l&&c&&a&&u?Ce(i,w.isBefore(u,a)?u:a):Ce(i,a)},t.isSelectingRangeEnd=function(){var n;if(!t.isInSelectingRange())return!1;var o=t.props,i=o.day,a=o.endDate,s=o.selectsEnd,c=o.selectsRange,l=o.swapRange,u=o.startDate,d=(n=t.props.selectingDate)!==null&&n!==void 0?n:t.props.preSelection;return s?Ce(i,d):c&&l&&u&&d?Ce(i,w.isBefore(d,u)?u:d):c?Ce(i,d):Ce(i,a)},t.isRangeStart=function(){var n=t.props,o=n.day,i=n.startDate,a=n.endDate;return!i||!a?!1:Ce(i,o)},t.isRangeEnd=function(){var n=t.props,o=n.day,i=n.startDate,a=n.endDate;return!i||!a?!1:Ce(a,o)},t.isWeekend=function(){var n=w.getDay(t.props.day);return n===0||n===6},t.isAfterMonth=function(){return t.props.month!==void 0&&(t.props.month+1)%12===w.getMonth(t.props.day)},t.isBeforeMonth=function(){return t.props.month!==void 0&&(w.getMonth(t.props.day)+1)%12===t.props.month},t.isCurrentDay=function(){return t.isSameDay(Re())},t.isSelected=function(){var n;return t.props.selectsMultiple?(n=t.props.selectedDates)===null||n===void 0?void 0:n.some(function(o){return t.isSameDayOrWeek(o)}):t.isSameDayOrWeek(t.props.selected)},t.getClassNames=function(n){var o=t.props.dayClassName?t.props.dayClassName(n):void 0;return _e("react-datepicker__day",o,"react-datepicker__day--"+iy(t.props.day),{"react-datepicker__day--disabled":t.isDisabled(),"react-datepicker__day--excluded":t.isExcluded(),"react-datepicker__day--selected":t.isSelected(),"react-datepicker__day--keyboard-selected":t.isKeyboardSelected(),"react-datepicker__day--range-start":t.isRangeStart(),"react-datepicker__day--range-end":t.isRangeEnd(),"react-datepicker__day--in-range":t.isInRange(),"react-datepicker__day--in-selecting-range":t.isInSelectingRange(),"react-datepicker__day--selecting-range-start":t.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":t.isSelectingRangeEnd(),"react-datepicker__day--today":t.isCurrentDay(),"react-datepicker__day--weekend":t.isWeekend(),"react-datepicker__day--outside-month":t.isAfterMonth()||t.isBeforeMonth()},t.getHighLightedClass(),t.getHolidaysClass())},t.getAriaLabel=function(){var n=t.props,o=n.day,i=n.ariaLabelPrefixWhenEnabled,a=i===void 0?"Choose":i,s=n.ariaLabelPrefixWhenDisabled,c=s===void 0?"Not available":s,l=t.isDisabled()||t.isExcluded()?c:a;return"".concat(l," ").concat(Ue(o,"PPPP",t.props.locale))},t.getTitle=function(){var n=t.props,o=n.day,i=n.holidays,a=i===void 0?new Map:i,s=n.excludeDates,c=Ue(o,"MM.dd.yyyy"),l=[];return a.has(c)&&l.push.apply(l,a.get(c).holidayNames),t.isExcluded()&&l.push(s?.filter(function(u){return u instanceof Date?Ce(u,o):Ce(u?.date,o)}).map(function(u){if(!(u instanceof Date))return u?.message})),l.join(", ")},t.getTabIndex=function(){var n=t.props.selected,o=t.props.preSelection,i=!(t.props.showWeekPicker&&(t.props.showWeekNumber||!t.isStartOfWeek()))&&(t.isKeyboardSelected()||t.isSameDay(n)&&Ce(o,n))?0:-1;return i},t.handleFocusDay=function(){var n;t.shouldFocusDay()&&((n=t.dayEl.current)===null||n===void 0||n.focus({preventScroll:!0}))},t.renderDayContents=function(){return t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()||t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()?null:t.props.renderDayContents?t.props.renderDayContents(w.getDate(t.props.day),t.props.day):w.getDate(t.props.day)},t.render=function(){return x.createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.props.usePointerEvent?void 0:t.handleMouseEnter,onPointerEnter:t.props.usePointerEvent?t.handleMouseEnter:void 0,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"gridcell",title:t.getTitle(),"aria-disabled":t.isDisabled(),"aria-current":t.isCurrentDay()?"date":void 0,"aria-selected":t.isSelected()||t.isInRange()},t.renderDayContents(),t.getTitle()!==""&&x.createElement("span",{className:"overlay"},t.getTitle()))},t}return r.prototype.componentDidMount=function(){this.handleFocusDay()},r.prototype.componentDidUpdate=function(){this.handleFocusDay()},r.prototype.shouldFocusDay=function(){var t=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(t=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(t=!1),this.isDayActiveElement()&&(t=!0),this.isDuplicateDay()&&(t=!1)),t},r.prototype.isDayActiveElement=function(){var t,n,o;return((n=(t=this.props.containerRef)===null||t===void 0?void 0:t.current)===null||n===void 0?void 0:n.contains(document.activeElement))&&((o=document.activeElement)===null||o===void 0?void 0:o.classList.contains("react-datepicker__day"))},r.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},r})(x.Component),Cy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.weekNumberEl=x.createRef(),t.handleClick=function(n){t.props.onClick&&t.props.onClick(n)},t.handleOnKeyDown=function(n){var o,i,a=n.key;a===ie.Space&&(n.preventDefault(),n.key=ie.Enter),(i=(o=t.props).handleOnKeyDown)===null||i===void 0||i.call(o,n)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Ce(t.props.date,t.props.selected)&&Ce(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||Ce(t.props.date,t.props.selected)&&Ce(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(n){var o=!1;t.getTabIndex()===0&&!n?.isInputFocused&&Ce(t.props.date,t.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(o=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(o=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(o=!0)),o&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return Object.defineProperty(r,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},r.prototype.componentDidUpdate=function(t){this.handleFocusWeekNumber(t)},r.prototype.render=function(){var t=this.props,n=t.weekNumber,o=t.isWeekDisabled,i=t.ariaLabelPrefix,a=i===void 0?r.defaultProps.ariaLabelPrefix:i,s=t.onClick,c={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!s&&!o,"react-datepicker__week-number--selected":!!s&&Ce(this.props.date,this.props.selected)};return x.createElement("div",{ref:this.weekNumberEl,className:_e(c),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex(),role:"gridcell"},n)},r})(x.Component),Ey=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.isDisabled=function(n){return Yt(n,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.handleDayClick=function(n,o){t.props.onDayClick&&t.props.onDayClick(n,o)},t.handleDayMouseEnter=function(n){t.props.onDayMouseEnter&&t.props.onDayMouseEnter(n)},t.handleWeekClick=function(n,o,i){for(var a,s,c,l=new Date(n),u=0;u<7;u++){var d=new Date(n);d.setDate(d.getDate()+u);var f=!t.isDisabled(d);if(f){l=d;break}}typeof t.props.onWeekSelect=="function"&&t.props.onWeekSelect(l,o,i),t.props.showWeekPicker&&t.handleDayClick(l,i),((a=t.props.shouldCloseOnSelect)!==null&&a!==void 0?a:r.defaultProps.shouldCloseOnSelect)&&((c=(s=t.props).setOpen)===null||c===void 0||c.call(s,!1))},t.formatWeekNumber=function(n){return t.props.formatWeekNumber?t.props.formatWeekNumber(n):oy(n)},t.isWeekDisabled=function(){for(var n=t.startOfWeek(),o=w.addDays(n,6),i=new Date(n);i<=o;){if(!t.isDisabled(i))return!1;i=w.addDays(i,1)}return!0},t.renderDays=function(){var n=t.startOfWeek(),o=[],i=t.formatWeekNumber(n);if(t.props.showWeekNumber){var a=t.props.onWeekSelect||t.props.showWeekPicker?t.handleWeekClick.bind(t,n,i):void 0;o.push(x.createElement(Cy,Se({key:"W"},r.defaultProps,t.props,{weekNumber:i,isWeekDisabled:t.isWeekDisabled(),date:n,onClick:a})))}return o.concat([0,1,2,3,4,5,6].map(function(s){var c=w.addDays(n,s);return x.createElement(Sy,Se({},r.defaultProps,t.props,{ariaLabelPrefixWhenEnabled:t.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:t.props.disabledDayAriaLabelPrefix,key:c.valueOf(),day:c,onClick:t.handleDayClick.bind(t,c),onMouseEnter:t.handleDayMouseEnter.bind(t,c)}))}))},t.startOfWeek=function(){return Rr(t.props.day,t.props.locale,t.props.calendarStartDay)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Ce(t.startOfWeek(),t.props.selected)&&Ce(t.startOfWeek(),t.props.preSelection)},t}return Object.defineProperty(r,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),r.prototype.render=function(){var t={"react-datepicker__week":!0,"react-datepicker__week--selected":Ce(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()},n=this.props.weekClassName?this.props.weekClassName(this.startOfWeek()):void 0;return x.createElement("div",{className:_e(t,n),role:"row"},this.renderDays())},r})(x.Component),co,ky=6,En={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},gs=(co={},co[En.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},co[En.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},co[En.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},co),Ai=1;function Gu(e,r){return e?En.FOUR_COLUMNS:r?En.TWO_COLUMNS:En.THREE_COLUMNS}var Dy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.MONTH_REFS=fr([],Array(12),!0).map(function(){return x.createRef()}),t.QUARTER_REFS=fr([],Array(4),!0).map(function(){return x.createRef()}),t.isDisabled=function(n){return Yt(n,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(n){return hs(n,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.handleDayClick=function(n,o){var i,a;(a=(i=t.props).onDayClick)===null||a===void 0||a.call(i,n,o,t.props.orderInDisplay)},t.handleDayMouseEnter=function(n){var o,i;(i=(o=t.props).onDayMouseEnter)===null||i===void 0||i.call(o,n)},t.handleMouseLeave=function(){var n,o;(o=(n=t.props).onMouseLeave)===null||o===void 0||o.call(n)},t.isRangeStartMonth=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:yt(w.setMonth(i,n),a)},t.isRangeStartQuarter=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:ki(w.setQuarter(i,n),a)},t.isRangeEndMonth=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:yt(w.setMonth(i,n),s)},t.isRangeEndQuarter=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate;return!a||!s?!1:ki(w.setQuarter(i,n),s)},t.isInSelectingRangeMonth=function(n){var o,i=t.props,a=i.day,s=i.selectsStart,c=i.selectsEnd,l=i.selectsRange,u=i.startDate,d=i.endDate,f=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return!(s||c||l)||!f?!1:s&&d?Di(f,d,n,a):c&&u||l&&u&&!d?Di(u,f,n,a):!1},t.isSelectingMonthRangeStart=function(n){var o;if(!t.isInSelectingRangeMonth(n))return!1;var i=t.props,a=i.day,s=i.startDate,c=i.selectsStart,l=w.setMonth(a,n),u=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return c?yt(l,u):yt(l,s)},t.isSelectingMonthRangeEnd=function(n){var o;if(!t.isInSelectingRangeMonth(n))return!1;var i=t.props,a=i.day,s=i.endDate,c=i.selectsEnd,l=i.selectsRange,u=w.setMonth(a,n),d=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return c||l?yt(u,d):yt(u,s)},t.isInSelectingRangeQuarter=function(n){var o,i=t.props,a=i.day,s=i.selectsStart,c=i.selectsEnd,l=i.selectsRange,u=i.startDate,d=i.endDate,f=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return!(s||c||l)||!f?!1:s&&d?Pi(f,d,n,a):c&&u||l&&u&&!d?Pi(u,f,n,a):!1},t.isWeekInMonth=function(n){var o=t.props.day,i=w.addDays(n,6);return yt(n,o)||yt(i,o)},t.isCurrentMonth=function(n,o){return w.getYear(n)===w.getYear(Re())&&o===w.getMonth(Re())},t.isCurrentQuarter=function(n,o){return w.getYear(n)===w.getYear(Re())&&o===w.getQuarter(Re())},t.isSelectedMonth=function(n,o,i){return w.getMonth(i)===o&&w.getYear(n)===w.getYear(i)},t.isSelectMonthInList=function(n,o,i){return i.some(function(a){return t.isSelectedMonth(n,o,a)})},t.isSelectedQuarter=function(n,o,i){return w.getQuarter(n)===o&&w.getYear(n)===w.getYear(i)},t.isMonthSelected=function(){var n=t.props,o=n.day,i=n.selected,a=n.selectedDates,s=n.selectsMultiple,c=w.getMonth(o);return s?a?.some(function(l){return t.isSelectedMonth(o,c,l)}):!!i&&t.isSelectedMonth(o,c,i)},t.renderWeeks=function(){for(var n=[],o=t.props.fixedHeight,i=0,a=!1,s=Rr(br(t.props.day),t.props.locale,t.props.calendarStartDay),c=function(g){return t.props.showWeekPicker?Rr(g,t.props.locale,t.props.calendarStartDay):t.props.preSelection},l=function(g){return t.props.showWeekPicker?Rr(g,t.props.locale,t.props.calendarStartDay):t.props.selected},u=t.props.selected?l(t.props.selected):void 0,d=t.props.preSelection?c(t.props.preSelection):void 0;n.push(x.createElement(Ey,Se({},t.props,{ariaLabelPrefix:t.props.weekAriaLabelPrefix,key:i,day:s,month:w.getMonth(t.props.day),onDayClick:t.handleDayClick,onDayMouseEnter:t.handleDayMouseEnter,selected:u,preSelection:d,showWeekNumber:t.props.showWeekNumbers}))),!a;){i++,s=w.addWeeks(s,1);var f=o&&i>=ky,m=!o&&!t.isWeekInMonth(s);if(f||m)if(t.props.peekNextMonth)a=!0;else break}return n},t.onMonthClick=function(n,o){var i=t.isMonthDisabledForLabelDate(o),a=i.isDisabled,s=i.labelDate;a||t.handleDayClick(br(s),n)},t.onMonthMouseEnter=function(n){var o=t.isMonthDisabledForLabelDate(n),i=o.isDisabled,a=o.labelDate;i||t.handleDayMouseEnter(br(a))},t.handleMonthNavigation=function(n,o){var i,a,s,c;(a=(i=t.props).setPreSelection)===null||a===void 0||a.call(i,o),(c=(s=t.MONTH_REFS[n])===null||s===void 0?void 0:s.current)===null||c===void 0||c.focus()},t.handleKeyboardNavigation=function(n,o,i){var a,s=t.props,c=s.selected,l=s.preSelection,u=s.setPreSelection,d=s.minDate,f=s.maxDate,m=s.showFourColumnMonthYearPicker,g=s.showTwoColumnMonthYearPicker;if(l){var p=Gu(m,g),y=t.getVerticalOffset(p),S=(a=gs[p])===null||a===void 0?void 0:a.grid,C=function(N,q,Z){var L,K,v=q,I=Z;switch(N){case ie.ArrowRight:v=w.addMonths(q,Ai),I=Z===11?0:Z+Ai;break;case ie.ArrowLeft:v=w.subMonths(q,Ai),I=Z===0?11:Z-Ai;break;case ie.ArrowUp:v=w.subMonths(q,y),I=!((L=S?.[0])===null||L===void 0)&&L.includes(Z)?Z+12-y:Z-y;break;case ie.ArrowDown:v=w.addMonths(q,y),I=!((K=S?.[S.length-1])===null||K===void 0)&&K.includes(Z)?Z-12+y:Z+y;break}return{newCalculatedDate:v,newCalculatedMonth:I}},k=function(N,q,Z){for(var L=40,K=N,v=!1,I=0,A=C(K,q,Z),U=A.newCalculatedDate,H=A.newCalculatedMonth;!v;){if(I>=L){U=q,H=Z;break}if(d&&U<d){K=ie.ArrowRight;var ee=C(K,U,H);U=ee.newCalculatedDate,H=ee.newCalculatedMonth}if(f&&U>f){K=ie.ArrowLeft;var ee=C(K,U,H);U=ee.newCalculatedDate,H=ee.newCalculatedMonth}if(fy(U,t.props)){var ee=C(K,U,H);U=ee.newCalculatedDate,H=ee.newCalculatedMonth}else v=!0;I++}return{newCalculatedDate:U,newCalculatedMonth:H}};if(o===ie.Enter){t.isMonthDisabled(i)||(t.onMonthClick(n,i),u?.(c));return}var E=k(o,l,i),_=E.newCalculatedDate,O=E.newCalculatedMonth;switch(o){case ie.ArrowRight:case ie.ArrowLeft:case ie.ArrowUp:case ie.ArrowDown:t.handleMonthNavigation(O,_);break}}},t.getVerticalOffset=function(n){var o,i;return(i=(o=gs[n])===null||o===void 0?void 0:o.verticalNavigationOffset)!==null&&i!==void 0?i:0},t.onMonthKeyDown=function(n,o){var i=t.props,a=i.disabledKeyboardNavigation,s=i.handleOnMonthKeyDown,c=n.key;c!==ie.Tab&&n.preventDefault(),a||t.handleKeyboardNavigation(n,c,o),s&&s(n)},t.onQuarterClick=function(n,o){var i=w.setQuarter(t.props.day,o);Ti(i,t.props)||t.handleDayClick(Pu(i),n)},t.onQuarterMouseEnter=function(n){var o=w.setQuarter(t.props.day,n);Ti(o,t.props)||t.handleDayMouseEnter(Pu(o))},t.handleQuarterNavigation=function(n,o){var i,a,s,c;t.isDisabled(o)||t.isExcluded(o)||((a=(i=t.props).setPreSelection)===null||a===void 0||a.call(i,o),(c=(s=t.QUARTER_REFS[n-1])===null||s===void 0?void 0:s.current)===null||c===void 0||c.focus())},t.onQuarterKeyDown=function(n,o){var i,a,s=n.key;if(!t.props.disabledKeyboardNavigation)switch(s){case ie.Enter:t.onQuarterClick(n,o),(a=(i=t.props).setPreSelection)===null||a===void 0||a.call(i,t.props.selected);break;case ie.ArrowRight:if(!t.props.preSelection)break;t.handleQuarterNavigation(o===4?1:o+1,w.addQuarters(t.props.preSelection,1));break;case ie.ArrowLeft:if(!t.props.preSelection)break;t.handleQuarterNavigation(o===1?4:o-1,w.subQuarters(t.props.preSelection,1));break}},t.isMonthDisabledForLabelDate=function(n){var o,i=t.props,a=i.day,s=i.minDate,c=i.maxDate,l=i.excludeDates,u=i.includeDates,d=w.setMonth(a,n);return{isDisabled:(o=(s||c||l||u)&&Nu(d,t.props))!==null&&o!==void 0?o:!1,labelDate:d}},t.isMonthDisabled=function(n){var o=t.isMonthDisabledForLabelDate(n).isDisabled;return o},t.getMonthClassNames=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate,c=o.preSelection,l=o.monthClassName,u=l?l(w.setMonth(i,n)):void 0,d=t.getSelection();return _e("react-datepicker__month-text","react-datepicker__month-".concat(n),u,{"react-datepicker__month-text--disabled":t.isMonthDisabled(n),"react-datepicker__month-text--selected":d?t.isSelectMonthInList(i,n,d):void 0,"react-datepicker__month-text--keyboard-selected":!t.props.disabledKeyboardNavigation&&c&&t.isSelectedMonth(i,n,c)&&!t.isMonthSelected()&&!t.isMonthDisabled(n),"react-datepicker__month-text--in-selecting-range":t.isInSelectingRangeMonth(n),"react-datepicker__month-text--in-range":a&&s?Di(a,s,n,i):void 0,"react-datepicker__month-text--range-start":t.isRangeStartMonth(n),"react-datepicker__month-text--range-end":t.isRangeEndMonth(n),"react-datepicker__month-text--selecting-range-start":t.isSelectingMonthRangeStart(n),"react-datepicker__month-text--selecting-range-end":t.isSelectingMonthRangeEnd(n),"react-datepicker__month-text--today":t.isCurrentMonth(i,n)})},t.getTabIndex=function(n){if(t.props.preSelection==null)return"-1";var o=w.getMonth(t.props.preSelection),i=t.isMonthDisabledForLabelDate(o).isDisabled,a=n===o&&!(i||t.props.disabledKeyboardNavigation)?"0":"-1";return a},t.getQuarterTabIndex=function(n){if(t.props.preSelection==null)return"-1";var o=w.getQuarter(t.props.preSelection),i=Ti(t.props.day,t.props),a=n===o&&!(i||t.props.disabledKeyboardNavigation)?"0":"-1";return a},t.getAriaLabel=function(n){var o=t.props,i=o.chooseDayAriaLabelPrefix,a=i===void 0?"Choose":i,s=o.disabledDayAriaLabelPrefix,c=s===void 0?"Not available":s,l=o.day,u=o.locale,d=w.setMonth(l,n),f=t.isDisabled(d)||t.isExcluded(d)?c:a;return"".concat(f," ").concat(Ue(d,"MMMM yyyy",u))},t.getQuarterClassNames=function(n){var o=t.props,i=o.day,a=o.startDate,s=o.endDate,c=o.selected,l=o.minDate,u=o.maxDate,d=o.excludeDates,f=o.includeDates,m=o.filterDate,g=o.preSelection,p=o.disabledKeyboardNavigation,y=(l||u||d||f||m)&&Ti(w.setQuarter(i,n),t.props);return _e("react-datepicker__quarter-text","react-datepicker__quarter-".concat(n),{"react-datepicker__quarter-text--disabled":y,"react-datepicker__quarter-text--selected":c?t.isSelectedQuarter(i,n,c):void 0,"react-datepicker__quarter-text--keyboard-selected":!p&&g&&t.isSelectedQuarter(i,n,g)&&!y,"react-datepicker__quarter-text--in-selecting-range":t.isInSelectingRangeQuarter(n),"react-datepicker__quarter-text--in-range":a&&s?Pi(a,s,n,i):void 0,"react-datepicker__quarter-text--range-start":t.isRangeStartQuarter(n),"react-datepicker__quarter-text--range-end":t.isRangeEndQuarter(n),"react-datepicker__quarter-text--today":t.isCurrentQuarter(i,n)})},t.getMonthContent=function(n){var o=t.props,i=o.showFullMonthYearPicker,a=o.renderMonthContent,s=o.locale,c=o.day,l=Ru(n,s),u=ps(n,s);return a?a(n,l,u,c):i?u:l},t.getQuarterContent=function(n){var o,i=t.props,a=i.renderQuarterContent,s=i.locale,c=dy(n,s);return(o=a?.(n,c))!==null&&o!==void 0?o:c},t.renderMonths=function(){var n,o=t.props,i=o.showTwoColumnMonthYearPicker,a=o.showFourColumnMonthYearPicker,s=o.day,c=o.selected,l=(n=gs[Gu(a,i)])===null||n===void 0?void 0:n.grid;return l?.map(function(u,d){return x.createElement("div",{className:"react-datepicker__month-wrapper",key:d},u.map(function(f,m){return x.createElement("div",{ref:t.MONTH_REFS[f],key:m,onClick:function(g){t.onMonthClick(g,f)},onKeyDown:function(g){Ku(g)&&(g.preventDefault(),g.key=ie.Enter),t.onMonthKeyDown(g,f)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onMonthMouseEnter(f)},onPointerEnter:t.props.usePointerEvent?function(){return t.onMonthMouseEnter(f)}:void 0,tabIndex:Number(t.getTabIndex(f)),className:t.getMonthClassNames(f),"aria-disabled":t.isMonthDisabled(f),role:"option","aria-label":t.getAriaLabel(f),"aria-current":t.isCurrentMonth(s,f)?"date":void 0,"aria-selected":c?t.isSelectedMonth(s,f,c):void 0},t.getMonthContent(f))}))})},t.renderQuarters=function(){var n=t.props,o=n.day,i=n.selected,a=[1,2,3,4];return x.createElement("div",{className:"react-datepicker__quarter-wrapper"},a.map(function(s,c){return x.createElement("div",{key:c,ref:t.QUARTER_REFS[c],role:"option",onClick:function(l){t.onQuarterClick(l,s)},onKeyDown:function(l){t.onQuarterKeyDown(l,s)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onQuarterMouseEnter(s)},onPointerEnter:t.props.usePointerEvent?function(){return t.onQuarterMouseEnter(s)}:void 0,className:t.getQuarterClassNames(s),"aria-selected":i?t.isSelectedQuarter(o,s,i):void 0,tabIndex:Number(t.getQuarterTabIndex(s)),"aria-current":t.isCurrentQuarter(o,s)?"date":void 0},t.getQuarterContent(s))}))},t.getClassNames=function(){var n=t.props,o=n.selectingDate,i=n.selectsStart,a=n.selectsEnd,s=n.showMonthYearPicker,c=n.showQuarterYearPicker,l=n.showWeekPicker;return _e("react-datepicker__month",{"react-datepicker__month--selecting-range":o&&(i||a)},{"react-datepicker__monthPicker":s},{"react-datepicker__quarterPicker":c},{"react-datepicker__weekPicker":l})},t}return r.prototype.getSelection=function(){var t=this.props,n=t.selected,o=t.selectedDates,i=t.selectsMultiple;if(i)return o;if(n)return[n]},r.prototype.render=function(){var t=this.props,n=t.showMonthYearPicker,o=t.showQuarterYearPicker,i=t.day,a=t.ariaLabelPrefix,s=a===void 0?"Month ":a,c=s?s.trim()+" ":"",l=n||o;return l?x.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(c).concat(Ue(i,"MMMM, yyyy",this.props.locale)),role:"listbox"},n?this.renderMonths():this.renderQuarters()):x.createElement("div",{role:"table"},this.props.dayNamesHeader&&x.createElement("div",{role:"rowgroup"},this.props.dayNamesHeader),x.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(c).concat(Ue(i,"MMMM, yyyy",this.props.locale)),role:"rowgroup"},this.renderWeeks()))},r})(x.Component),Ty=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.monthOptionButtonsRef={},t.isSelectedMonth=function(n){return t.props.month===n},t.handleOptionKeyDown=function(n,o){var i;switch(o.key){case"Enter":o.preventDefault(),t.onChange(n);break;case"Escape":o.preventDefault(),t.props.onCancel();break;case"ArrowUp":case"ArrowDown":{o.preventDefault();var a=(n+(o.key==="ArrowUp"?-1:1)+t.props.monthNames.length)%t.props.monthNames.length;(i=t.monthOptionButtonsRef[a])===null||i===void 0||i.focus();break}}},t.renderOptions=function(){return t.monthOptionButtonsRef={},t.props.monthNames.map(function(n,o){return x.createElement("div",{ref:function(i){t.monthOptionButtonsRef[o]=i,t.isSelectedMonth(o)&&i?.focus()},role:"button",tabIndex:0,className:t.isSelectedMonth(o)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:n,onClick:t.onChange.bind(t,o),onKeyDown:t.handleOptionKeyDown.bind(t,o),"aria-selected":t.isSelectedMonth(o)?"true":void 0},t.isSelectedMonth(o)?x.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",n)})},t.onChange=function(n){return t.props.onChange(n)},t.handleClickOutside=function(){return t.props.onCancel()},t}return r.prototype.render=function(){return x.createElement(Si,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},r})(x.Component),Oy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(n){return n.map(function(o,i){return x.createElement("option",{key:o,value:i},o)})},t.renderSelectMode=function(n){return x.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(o){return t.onChange(parseInt(o.target.value))}},t.renderSelectOptions(n))},t.renderReadView=function(n,o){return x.createElement("button",{key:"read",type:"button",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},x.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),x.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},o[t.props.month]))},t.renderDropdown=function(n){return x.createElement(Ty,Se({key:"dropdown"},t.props,{monthNames:n,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(n){var o=t.state.dropdownVisible,i=[t.renderReadView(!o,n)];return o&&i.unshift(t.renderDropdown(n)),i},t.onChange=function(n){t.toggleDropdown(),n!==t.props.month&&t.props.onChange(n)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return r.prototype.render=function(){var t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(i){return Ru(i,t.props.locale)}:function(i){return ps(i,t.props.locale)}),o;switch(this.props.dropdownMode){case"scroll":o=this.renderScrollMode(n);break;case"select":o=this.renderSelectMode(n);break}return x.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},o)},r})(x.Component);function My(e,r){for(var t=[],n=br(e),o=br(r);!w.isAfter(n,o);)t.push(Re(n)),n=w.addMonths(n,1);return t}var Py=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.renderOptions=function(){return n.state.monthYearsList.map(function(o){var i=w.getTime(o),a=pr(n.props.date,o)&&yt(n.props.date,o);return x.createElement("div",{className:a?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:i,onClick:n.onChange.bind(n,i),"aria-selected":a?"true":void 0},a?x.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Ue(o,n.props.dateFormat,n.props.locale))})},n.onChange=function(o){return n.props.onChange(o)},n.handleClickOutside=function(){n.props.onCancel()},n.state={monthYearsList:My(n.props.minDate,n.props.maxDate)},n}return r.prototype.render=function(){var t=_e({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return x.createElement(Si,{className:t,onClickOutside:this.handleClickOutside},this.renderOptions())},r})(x.Component),Ay=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var n=br(t.props.minDate),o=br(t.props.maxDate),i=[];!w.isAfter(n,o);){var a=w.getTime(n);i.push(x.createElement("option",{key:a,value:a},Ue(n,t.props.dateFormat,t.props.locale))),n=w.addMonths(n,1)}return i},t.onSelectChange=function(n){t.onChange(parseInt(n.target.value))},t.renderSelectMode=function(){return x.createElement("select",{value:w.getTime(br(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(n){var o=Ue(t.props.date,t.props.dateFormat,t.props.locale);return x.createElement("div",{key:"read",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},x.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),x.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},o))},t.renderDropdown=function(){return x.createElement(Py,Se({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var n=t.state.dropdownVisible,o=[t.renderReadView(!n)];return n&&o.unshift(t.renderDropdown()),o},t.onChange=function(n){t.toggleDropdown();var o=Re(n);pr(t.props.date,o)&&yt(t.props.date,o)||t.props.onChange(o)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return r.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return x.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},t)},r})(x.Component),Iy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={height:null},t.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var n,o,i;t.list&&(t.list.scrollTop=(i=t.centerLi&&r.calcCenterPosition(t.props.monthRef?t.props.monthRef.clientHeight-((o=(n=t.header)===null||n===void 0?void 0:n.clientHeight)!==null&&o!==void 0?o:0):t.list.clientHeight,t.centerLi))!==null&&i!==void 0?i:0)})},t.handleClick=function(n){var o,i;(t.props.minTime||t.props.maxTime)&&Lu(n,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&ju(n,t.props)||(i=(o=t.props).onChange)===null||i===void 0||i.call(o,n)},t.isSelectedTime=function(n){return t.props.selected&&_y(t.props.selected,n)},t.isDisabledTime=function(n){return(t.props.minTime||t.props.maxTime)&&Lu(n,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&ju(n,t.props)},t.liClasses=function(n){var o,i=["react-datepicker__time-list-item",t.props.timeClassName?t.props.timeClassName(n):void 0];return t.isSelectedTime(n)&&i.push("react-datepicker__time-list-item--selected"),t.isDisabledTime(n)&&i.push("react-datepicker__time-list-item--disabled"),t.props.injectTimes&&(w.getHours(n)*3600+w.getMinutes(n)*60+w.getSeconds(n))%(((o=t.props.intervals)!==null&&o!==void 0?o:r.defaultProps.intervals)*60)!==0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")},t.handleOnKeyDown=function(n,o){var i,a;n.key===ie.Space&&(n.preventDefault(),n.key=ie.Enter),(n.key===ie.ArrowUp||n.key===ie.ArrowLeft)&&n.target instanceof HTMLElement&&n.target.previousSibling&&(n.preventDefault(),n.target.previousSibling instanceof HTMLElement&&n.target.previousSibling.focus()),(n.key===ie.ArrowDown||n.key===ie.ArrowRight)&&n.target instanceof HTMLElement&&n.target.nextSibling&&(n.preventDefault(),n.target.nextSibling instanceof HTMLElement&&n.target.nextSibling.focus()),n.key===ie.Enter&&t.handleClick(o),(a=(i=t.props).handleOnKeyDown)===null||a===void 0||a.call(i,n)},t.renderTimes=function(){for(var n,o=[],i=typeof t.props.format=="string"?t.props.format:"p",a=(n=t.props.intervals)!==null&&n!==void 0?n:r.defaultProps.intervals,s=t.props.selected||t.props.openToDate||Re(),c=Ei(s),l=t.props.injectTimes&&t.props.injectTimes.sort(function(y,S){return y.getTime()-S.getTime()}),u=60*wy(s),d=u/a,f=0;f<d;f++){var m=w.addMinutes(c,f*a);if(o.push(m),l){var g=by(c,m,f,a,l);o=o.concat(g)}}var p=o.reduce(function(y,S){return S.getTime()<=s.getTime()?S:y},o[0]);return o.map(function(y){return x.createElement("li",{key:y.valueOf(),onClick:t.handleClick.bind(t,y),className:t.liClasses(y),ref:function(S){y===p&&(t.centerLi=S)},onKeyDown:function(S){t.handleOnKeyDown(S,y)},tabIndex:y===p?0:-1,role:"option","aria-selected":t.isSelectedTime(y)?"true":void 0,"aria-disabled":t.isDisabledTime(y)?"true":void 0},Ue(y,i,t.props.locale))})},t.renderTimeCaption=function(){return t.props.showTimeCaption===!1?x.createElement(x.Fragment,null):x.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(t.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(n){t.header=n}},x.createElement("div",{className:"react-datepicker-time__header"},t.props.timeCaption))},t}return Object.defineProperty(r,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeightChanges()},r.prototype.componentWillUnmount=function(){var t;(t=this.resizeObserver)===null||t===void 0||t.disconnect()},r.prototype.observeDatePickerHeightChanges=function(){var t=this,n=this.props.monthRef;this.updateContainerHeight(),n&&(this.resizeObserver=new ResizeObserver(function(){t.updateContainerHeight()}),this.resizeObserver.observe(n))},r.prototype.updateContainerHeight=function(){this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},r.prototype.render=function(){var t=this,n,o=this.state.height;return x.createElement("div",{className:"react-datepicker__time-container ".concat(((n=this.props.todayButton)!==null&&n!==void 0?n:r.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),x.createElement("div",{className:"react-datepicker__time"},x.createElement("div",{className:"react-datepicker__time-box"},x.createElement("ul",{className:"react-datepicker__time-list",ref:function(i){t.list=i},style:o?{height:o}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},r.calcCenterPosition=function(t,n){return n.offsetTop-(t/2-n.clientHeight/2)},r})(x.Component),Qu=3,Ry=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.YEAR_REFS=fr([],Array(n.props.yearItemNumber),!0).map(function(){return x.createRef()}),n.isDisabled=function(o){return Yt(o,{minDate:n.props.minDate,maxDate:n.props.maxDate,excludeDates:n.props.excludeDates,includeDates:n.props.includeDates,filterDate:n.props.filterDate})},n.isExcluded=function(o){return hs(o,{excludeDates:n.props.excludeDates})},n.selectingDate=function(){var o;return(o=n.props.selectingDate)!==null&&o!==void 0?o:n.props.preSelection},n.updateFocusOnPaginate=function(o){var i=function(){var a,s;(s=(a=n.YEAR_REFS[o])===null||a===void 0?void 0:a.current)===null||s===void 0||s.focus()};window.requestAnimationFrame(i)},n.handleYearClick=function(o,i){n.props.onDayClick&&n.props.onDayClick(o,i)},n.handleYearNavigation=function(o,i){var a,s,c,l,u=n.props,d=u.date,f=u.yearItemNumber;if(!(d===void 0||f===void 0)){var m=wr(d,f).startPeriod;n.isDisabled(i)||n.isExcluded(i)||((s=(a=n.props).setPreSelection)===null||s===void 0||s.call(a,i),o-m<0?n.updateFocusOnPaginate(f-(m-o)):o-m>=f?n.updateFocusOnPaginate(Math.abs(f-(o-m))):(l=(c=n.YEAR_REFS[o-m])===null||c===void 0?void 0:c.current)===null||l===void 0||l.focus())}},n.isSameDay=function(o,i){return Ce(o,i)},n.isCurrentYear=function(o){return o===w.getYear(Re())},n.isRangeStart=function(o){return n.props.startDate&&n.props.endDate&&pr(w.setYear(Re(),o),n.props.startDate)},n.isRangeEnd=function(o){return n.props.startDate&&n.props.endDate&&pr(w.setYear(Re(),o),n.props.endDate)},n.isInRange=function(o){return Oi(o,n.props.startDate,n.props.endDate)},n.isInSelectingRange=function(o){var i=n.props,a=i.selectsStart,s=i.selectsEnd,c=i.selectsRange,l=i.startDate,u=i.endDate;return!(a||s||c)||!n.selectingDate()?!1:a&&u?Oi(o,n.selectingDate(),u):s&&l||c&&l&&!u?Oi(o,l,n.selectingDate()):!1},n.isSelectingRangeStart=function(o){var i;if(!n.isInSelectingRange(o))return!1;var a=n.props,s=a.startDate,c=a.selectsStart,l=w.setYear(Re(),o);return c?pr(l,(i=n.selectingDate())!==null&&i!==void 0?i:null):pr(l,s??null)},n.isSelectingRangeEnd=function(o){var i;if(!n.isInSelectingRange(o))return!1;var a=n.props,s=a.endDate,c=a.selectsEnd,l=a.selectsRange,u=w.setYear(Re(),o);return c||l?pr(u,(i=n.selectingDate())!==null&&i!==void 0?i:null):pr(u,s??null)},n.isKeyboardSelected=function(o){if(!(n.props.disabledKeyboardNavigation||n.props.date===void 0||n.props.preSelection==null)){var i=n.props,a=i.minDate,s=i.maxDate,c=i.excludeDates,l=i.includeDates,u=i.filterDate,d=i.selected,f=ao(w.setYear(n.props.date,o)),m=(a||s||c||l||u)&&Mi(o,n.props),g=!!d&&Ce(f,ao(d)),p=Ce(f,ao(n.props.preSelection));return!n.props.inline&&!g&&p&&!m}},n.isSelectedYear=function(o){var i=n.props,a=i.selectsMultiple,s=i.selected,c=i.selectedDates;return a?c?.some(function(l){return o===w.getYear(l)}):!!s&&o===w.getYear(s)},n.onYearClick=function(o,i){var a=n.props.date;a!==void 0&&n.handleYearClick(ao(w.setYear(a,i)),o)},n.onYearKeyDown=function(o,i){var a,s,c=o.key,l=n.props,u=l.date,d=l.yearItemNumber,f=l.handleOnKeyDown;if(c!==ie.Tab&&o.preventDefault(),!n.props.disabledKeyboardNavigation)switch(c){case ie.Enter:if(n.props.selected==null)break;n.onYearClick(o,i),(s=(a=n.props).setPreSelection)===null||s===void 0||s.call(a,n.props.selected);break;case ie.ArrowRight:if(n.props.preSelection==null)break;n.handleYearNavigation(i+1,w.addYears(n.props.preSelection,1));break;case ie.ArrowLeft:if(n.props.preSelection==null)break;n.handleYearNavigation(i-1,w.subYears(n.props.preSelection,1));break;case ie.ArrowUp:{if(u===void 0||d===void 0||n.props.preSelection==null)break;var m=wr(u,d).startPeriod,g=Qu,p=i-g;if(p<m){var y=d%g;i>=m&&i<m+y?g=y:g+=y,p=i-g}n.handleYearNavigation(p,w.subYears(n.props.preSelection,g));break}case ie.ArrowDown:{if(u===void 0||d===void 0||n.props.preSelection==null)break;var S=wr(u,d).endPeriod,g=Qu,p=i+g;if(p>S){var y=d%g;i<=S&&i>S-y?g=y:g+=y,p=i+g}n.handleYearNavigation(p,w.addYears(n.props.preSelection,g));break}}f&&f(o)},n.getYearClassNames=function(o){var i=n.props,a=i.date,s=i.minDate,c=i.maxDate,l=i.excludeDates,u=i.includeDates,d=i.filterDate,f=i.yearClassName;return _e("react-datepicker__year-text","react-datepicker__year-".concat(o),a?f?.(w.setYear(a,o)):void 0,{"react-datepicker__year-text--selected":n.isSelectedYear(o),"react-datepicker__year-text--disabled":(s||c||l||u||d)&&Mi(o,n.props),"react-datepicker__year-text--keyboard-selected":n.isKeyboardSelected(o),"react-datepicker__year-text--range-start":n.isRangeStart(o),"react-datepicker__year-text--range-end":n.isRangeEnd(o),"react-datepicker__year-text--in-range":n.isInRange(o),"react-datepicker__year-text--in-selecting-range":n.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":n.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":n.isSelectingRangeEnd(o),"react-datepicker__year-text--today":n.isCurrentYear(o)})},n.getYearTabIndex=function(o){if(n.props.disabledKeyboardNavigation||n.props.preSelection==null)return"-1";var i=w.getYear(n.props.preSelection),a=Mi(o,n.props);return o===i&&!a?"0":"-1"},n.getYearContent=function(o){return n.props.renderYearContent?n.props.renderYearContent(o):o},n}return r.prototype.render=function(){var t=this,n=[],o=this.props,i=o.date,a=o.yearItemNumber,s=o.onYearMouseEnter,c=o.onYearMouseLeave;if(i===void 0)return null;for(var l=wr(i,a),u=l.startPeriod,d=l.endPeriod,f=function(p){n.push(x.createElement("div",{ref:m.YEAR_REFS[p-u],onClick:function(y){t.onYearClick(y,p)},onKeyDown:function(y){Ku(y)&&(y.preventDefault(),y.key=ie.Enter),t.onYearKeyDown(y,p)},tabIndex:Number(m.getYearTabIndex(p)),className:m.getYearClassNames(p),onMouseEnter:m.props.usePointerEvent?void 0:function(y){return s(y,p)},onPointerEnter:m.props.usePointerEvent?function(y){return s(y,p)}:void 0,onMouseLeave:m.props.usePointerEvent?void 0:function(y){return c(y,p)},onPointerLeave:m.props.usePointerEvent?function(y){return c(y,p)}:void 0,key:p,"aria-current":m.isCurrentYear(p)?"date":void 0},m.getYearContent(p)))},m=this,g=u;g<=d;g++)f(g);return x.createElement("div",{className:"react-datepicker__year"},x.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},n))},r})(x.Component);function Ny(e,r,t,n){for(var o=[],i=0;i<2*r+1;i++){var a=e+r-i,s=!0;t&&(s=w.getYear(t)<=a),n&&s&&(s=w.getYear(n)>=a),s&&o.push(a)}return o}var $y=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;n.yearOptionButtonsRef={},n.handleOptionKeyDown=function(s,c){var l;switch(c.key){case"Enter":c.preventDefault(),n.onChange(s);break;case"Escape":c.preventDefault(),n.props.onCancel();break;case"ArrowUp":case"ArrowDown":{c.preventDefault();var u=s+(c.key==="ArrowUp"?1:-1);n.yearOptionButtonsRef[u]&&((l=n.yearOptionButtonsRef[u])===null||l===void 0||l.focus());break}}},n.renderOptions=function(){n.yearOptionButtonsRef={};var s=n.props.year,c=n.state.yearsList.map(function(d){return x.createElement("div",{ref:function(f){n.yearOptionButtonsRef[d]=f,d===s&&f?.focus()},role:"button",tabIndex:0,className:s===d?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:d,onClick:n.onChange.bind(n,d),onKeyDown:n.handleOptionKeyDown.bind(n,d),"aria-selected":s===d?"true":void 0},s===d?x.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",d)}),l=n.props.minDate?w.getYear(n.props.minDate):null,u=n.props.maxDate?w.getYear(n.props.maxDate):null;return(!u||!n.state.yearsList.find(function(d){return d===u}))&&c.unshift(x.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:n.incrementYears},x.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!l||!n.state.yearsList.find(function(d){return d===l}))&&c.push(x.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:n.decrementYears},x.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c},n.onChange=function(s){n.props.onChange(s)},n.handleClickOutside=function(){n.props.onCancel()},n.shiftYears=function(s){var c=n.state.yearsList.map(function(l){return l+s});n.setState({yearsList:c})},n.incrementYears=function(){return n.shiftYears(1)},n.decrementYears=function(){return n.shiftYears(-1)};var o=t.yearDropdownItemNumber,i=t.scrollableYearDropdown,a=o||(i?10:5);return n.state={yearsList:Ny(n.props.year,a,n.props.minDate,n.props.maxDate)},n.dropdownRef=x.createRef(),n}return r.prototype.componentDidMount=function(){var t=this.dropdownRef.current;if(t){var n=t.children?Array.from(t.children):null,o=n?n.find(function(i){return i.ariaSelected}):null;t.scrollTop=o&&o instanceof HTMLElement?o.offsetTop+(o.clientHeight-t.clientHeight)/2:(t.scrollHeight-t.clientHeight)/2}},r.prototype.render=function(){var t=_e({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return x.createElement(Si,{className:t,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},r})(x.Component),jy=(function(e){pt(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var n=t.props.minDate?w.getYear(t.props.minDate):1900,o=t.props.maxDate?w.getYear(t.props.maxDate):2100,i=[],a=n;a<=o;a++)i.push(x.createElement("option",{key:a,value:a},a));return i},t.onSelectChange=function(n){t.onChange(parseInt(n.target.value))},t.renderSelectMode=function(){return x.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(n){return x.createElement("button",{key:"read",type:"button",style:{visibility:n?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:t.toggleDropdown},x.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),x.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return x.createElement($y,Se({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var n=t.state.dropdownVisible,o=[t.renderReadView(!n)];return n&&o.unshift(t.renderDropdown()),o},t.onChange=function(n){t.toggleDropdown(),n!==t.props.year&&t.props.onChange(n)},t.toggleDropdown=function(n){t.setState({dropdownVisible:!t.state.dropdownVisible},function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,n)})},t.handleYearChange=function(n,o){var i;(i=t.onSelect)===null||i===void 0||i.call(t,n,o),t.setOpen()},t.onSelect=function(n,o){var i,a;(a=(i=t.props).onSelect)===null||a===void 0||a.call(i,n,o)},t.setOpen=function(){var n,o;(o=(n=t.props).setOpen)===null||o===void 0||o.call(n,!0)},t}return r.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return x.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},t)},r})(x.Component),Ly=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Xu="react-datepicker-ignore-onclickoutside",zy=function(e){var r=(e.className||"").split(/\s+/);return Ly.some(function(t){return r.indexOf(t)>=0})},By=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.monthContainer=void 0,n.handleClickOutside=function(o){n.props.onClickOutside(o)},n.setClickOutsideRef=function(){return n.containerRef.current},n.handleDropdownFocus=function(o){var i,a;zy(o.target)&&((a=(i=n.props).onDropdownFocus)===null||a===void 0||a.call(i,o))},n.getDateInView=function(){var o=n.props,i=o.preSelection,a=o.selected,s=o.openToDate,c=Yu(n.props),l=Uu(n.props),u=Re(),d=s||a||i;return d||(c&&w.isBefore(u,c)?c:l&&w.isAfter(u,l)?l:u)},n.increaseMonth=function(){n.setState(function(o){var i=o.date;return{date:w.addMonths(i,1)}},function(){return n.handleMonthChange(n.state.date)})},n.decreaseMonth=function(){n.setState(function(o){var i=o.date;return{date:w.subMonths(i,1)}},function(){return n.handleMonthChange(n.state.date)})},n.handleDayClick=function(o,i,a){n.props.onSelect(o,i,a),n.props.setPreSelection&&n.props.setPreSelection(o)},n.handleDayMouseEnter=function(o){n.setState({selectingDate:o}),n.props.onDayMouseEnter&&n.props.onDayMouseEnter(o)},n.handleMonthMouseLeave=function(){n.setState({selectingDate:void 0}),n.props.onMonthMouseLeave&&n.props.onMonthMouseLeave()},n.handleYearMouseEnter=function(o,i){n.setState({selectingDate:w.setYear(Re(),i)}),n.props.onYearMouseEnter&&n.props.onYearMouseEnter(o,i)},n.handleYearMouseLeave=function(o,i){n.props.onYearMouseLeave&&n.props.onYearMouseLeave(o,i)},n.handleYearChange=function(o){var i,a,s,c;(a=(i=n.props).onYearChange)===null||a===void 0||a.call(i,o),n.setState({isRenderAriaLiveMessage:!0}),n.props.adjustDateOnChange&&(n.props.onSelect(o),(c=(s=n.props).setOpen)===null||c===void 0||c.call(s,!0)),n.props.setPreSelection&&n.props.setPreSelection(o)},n.getEnabledPreSelectionDateForMonth=function(o){if(!Yt(o,n.props))return o;for(var i=br(o),a=sy(o),s=w.differenceInDays(a,i),c=null,l=0;l<=s;l++){var u=w.addDays(i,l);if(!Yt(u,n.props)){c=u;break}}return c},n.handleMonthChange=function(o){var i,a,s,c=(i=n.getEnabledPreSelectionDateForMonth(o))!==null&&i!==void 0?i:o;n.handleCustomMonthChange(c),n.props.adjustDateOnChange&&(n.props.onSelect(c),(s=(a=n.props).setOpen)===null||s===void 0||s.call(a,!0)),n.props.setPreSelection&&n.props.setPreSelection(c)},n.handleCustomMonthChange=function(o){var i,a;(a=(i=n.props).onMonthChange)===null||a===void 0||a.call(i,o),n.setState({isRenderAriaLiveMessage:!0})},n.handleMonthYearChange=function(o){n.handleYearChange(o),n.handleMonthChange(o)},n.changeYear=function(o){n.setState(function(i){var a=i.date;return{date:w.setYear(a,Number(o))}},function(){return n.handleYearChange(n.state.date)})},n.changeMonth=function(o){n.setState(function(i){var a=i.date;return{date:w.setMonth(a,Number(o))}},function(){return n.handleMonthChange(n.state.date)})},n.changeMonthYear=function(o){n.setState(function(i){var a=i.date;return{date:w.setYear(w.setMonth(a,w.getMonth(o)),w.getYear(o))}},function(){return n.handleMonthYearChange(n.state.date)})},n.header=function(o){o===void 0&&(o=n.state.date);var i=Rr(o,n.props.locale,n.props.calendarStartDay),a=[];return n.props.showWeekNumbers&&a.push(x.createElement("div",{key:"W",className:"react-datepicker__day-name",role:"columnheader"},x.createElement("span",{className:"react-datepicker__sr-only"},"Week number"),x.createElement("span",{"aria-hidden":"true"},n.props.weekLabel||"#"))),a.concat([0,1,2,3,4,5,6].map(function(s){var c=w.addDays(i,s),l=n.formatWeekday(c,n.props.locale),u=n.props.weekDayClassName?n.props.weekDayClassName(c):void 0;return x.createElement("div",{key:s,role:"columnheader",className:_e("react-datepicker__day-name",u)},x.createElement("span",{className:"react-datepicker__sr-only"},Ue(c,"EEEE",n.props.locale)),x.createElement("span",{"aria-hidden":"true"},l))}))},n.formatWeekday=function(o,i){return n.props.formatWeekDay?cy(o,n.props.formatWeekDay,i):n.props.useWeekdaysShort?uy(o,i):ly(o,i)},n.decreaseYear=function(){n.setState(function(o){var i,a=o.date;return{date:w.subYears(a,n.props.showYearPicker?(i=n.props.yearItemNumber)!==null&&i!==void 0?i:r.defaultProps.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})},n.clearSelectingDate=function(){n.setState({selectingDate:void 0})},n.renderPreviousButton=function(){var o,i,a;if(!n.props.renderCustomHeader){var s=(o=n.props.monthsShown)!==null&&o!==void 0?o:r.defaultProps.monthsShown,c=n.props.showPreviousMonths?s-1:0,l=(i=n.props.monthSelectedIn)!==null&&i!==void 0?i:c,u=w.subMonths(n.state.date,l),d;switch(!0){case n.props.showMonthYearPicker:d=Vu(n.state.date,n.props);break;case n.props.showYearPicker:d=my(n.state.date,n.props);break;case n.props.showQuarterYearPicker:d=py(n.state.date,n.props);break;default:d=zu(u,n.props);break}if(!(!((a=n.props.forceShowMonthNavigation)!==null&&a!==void 0?a:r.defaultProps.forceShowMonthNavigation)&&!n.props.showDisabledMonthNavigation&&d||n.props.showTimeSelectOnly)){var f=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],m=["react-datepicker__navigation","react-datepicker__navigation--previous"],g=n.decreaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(g=n.decreaseYear),d&&n.props.showDisabledMonthNavigation&&(m.push("react-datepicker__navigation--previous--disabled"),g=void 0);var p=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,y=n.props,S=y.previousMonthButtonLabel,C=S===void 0?r.defaultProps.previousMonthButtonLabel:S,k=y.previousYearButtonLabel,E=k===void 0?r.defaultProps.previousYearButtonLabel:k,_=n.props,O=_.previousMonthAriaLabel,N=O===void 0?typeof C=="string"?C:"Previous Month":O,q=_.previousYearAriaLabel,Z=q===void 0?typeof E=="string"?E:"Previous Year":q;return x.createElement("button",{type:"button",className:m.join(" "),onClick:g,onKeyDown:n.props.handleOnKeyDown,"aria-label":p?Z:N},x.createElement("span",{className:f.join(" ")},p?E:C))}}},n.increaseYear=function(){n.setState(function(o){var i,a=o.date;return{date:w.addYears(a,n.props.showYearPicker?(i=n.props.yearItemNumber)!==null&&i!==void 0?i:r.defaultProps.yearItemNumber:1)}},function(){return n.handleYearChange(n.state.date)})},n.renderNextButton=function(){var o;if(!n.props.renderCustomHeader){var i;switch(!0){case n.props.showMonthYearPicker:i=Fu(n.state.date,n.props);break;case n.props.showYearPicker:i=gy(n.state.date,n.props);break;case n.props.showQuarterYearPicker:i=hy(n.state.date,n.props);break;default:i=Bu(n.state.date,n.props);break}if(!(!((o=n.props.forceShowMonthNavigation)!==null&&o!==void 0?o:r.defaultProps.forceShowMonthNavigation)&&!n.props.showDisabledMonthNavigation&&i||n.props.showTimeSelectOnly)){var a=["react-datepicker__navigation","react-datepicker__navigation--next"],s=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];n.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),n.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var c=n.increaseMonth;(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker)&&(c=n.increaseYear),i&&n.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),c=void 0);var l=n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker,u=n.props,d=u.nextMonthButtonLabel,f=d===void 0?r.defaultProps.nextMonthButtonLabel:d,m=u.nextYearButtonLabel,g=m===void 0?r.defaultProps.nextYearButtonLabel:m,p=n.props,y=p.nextMonthAriaLabel,S=y===void 0?typeof f=="string"?f:"Next Month":y,C=p.nextYearAriaLabel,k=C===void 0?typeof g=="string"?g:"Next Year":C;return x.createElement("button",{type:"button",className:a.join(" "),onClick:c,onKeyDown:n.props.handleOnKeyDown,"aria-label":l?k:S},x.createElement("span",{className:s.join(" ")},l?g:f))}}},n.renderCurrentMonth=function(o){o===void 0&&(o=n.state.date);var i=["react-datepicker__current-month"];return n.props.showYearDropdown&&i.push("react-datepicker__current-month--hasYearDropdown"),n.props.showMonthDropdown&&i.push("react-datepicker__current-month--hasMonthDropdown"),n.props.showMonthYearDropdown&&i.push("react-datepicker__current-month--hasMonthYearDropdown"),x.createElement("h2",{className:i.join(" ")},Ue(o,n.props.dateFormat,n.props.locale))},n.renderYearDropdown=function(o){if(o===void 0&&(o=!1),!(!n.props.showYearDropdown||o))return x.createElement(jy,Se({},r.defaultProps,n.props,{date:n.state.date,onChange:n.changeYear,year:w.getYear(n.state.date)}))},n.renderMonthDropdown=function(o){if(o===void 0&&(o=!1),!(!n.props.showMonthDropdown||o))return x.createElement(Oy,Se({},r.defaultProps,n.props,{month:w.getMonth(n.state.date),onChange:n.changeMonth}))},n.renderMonthYearDropdown=function(o){if(o===void 0&&(o=!1),!(!n.props.showMonthYearDropdown||o))return x.createElement(Ay,Se({},r.defaultProps,n.props,{date:n.state.date,onChange:n.changeMonthYear}))},n.handleTodayButtonClick=function(o){n.props.onSelect(Au(),o),n.props.setPreSelection&&n.props.setPreSelection(Au())},n.renderTodayButton=function(){if(!(!n.props.todayButton||n.props.showTimeSelectOnly))return x.createElement("div",{className:"react-datepicker__today-button",onClick:n.handleTodayButtonClick},n.props.todayButton)},n.renderDayNamesHeader=function(o){return x.createElement("div",{className:"react-datepicker__day-names",role:"row"},n.header(o))},n.renderDefaultHeader=function(o){var i=o.monthDate,a=o.i;return x.createElement("div",{className:"react-datepicker__header ".concat(n.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},n.renderCurrentMonth(i),x.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(n.props.dropdownMode),onFocus:n.handleDropdownFocus},n.renderMonthDropdown(a!==0),n.renderMonthYearDropdown(a!==0),n.renderYearDropdown(a!==0)))},n.renderCustomHeader=function(o){var i,a,s=o.monthDate,c=o.i;if(n.props.showTimeSelect&&!n.state.monthContainer||n.props.showTimeSelectOnly)return null;var l=n.props,u=l.showYearPicker,d=l.yearItemNumber,f;if(u){var m=wr(s,d),g=m.startPeriod,p=m.endPeriod;f={startYear:g,endYear:p}}var y=zu(n.state.date,n.props),S=Bu(n.state.date,n.props),C=Vu(n.state.date,n.props),k=Fu(n.state.date,n.props);return x.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:n.props.onDropdownFocus},(a=(i=n.props).renderCustomHeader)===null||a===void 0?void 0:a.call(i,Se(Se(Se({},n.state),u&&{visibleYearsRange:f}),{customHeaderCount:c,monthDate:s,changeMonth:n.changeMonth,changeYear:n.changeYear,decreaseMonth:n.decreaseMonth,increaseMonth:n.increaseMonth,decreaseYear:n.decreaseYear,increaseYear:n.increaseYear,prevMonthButtonDisabled:y,nextMonthButtonDisabled:S,prevYearButtonDisabled:C,nextYearButtonDisabled:k})))},n.renderYearHeader=function(o){var i=o.monthDate,a=n.props,s=a.showYearPicker,c=a.yearItemNumber,l=c===void 0?r.defaultProps.yearItemNumber:c,u=wr(i,l),d=u.startPeriod,f=u.endPeriod;return x.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(d," - ").concat(f):w.getYear(i))},n.renderHeader=function(o){var i=o.monthDate,a=o.i,s=a===void 0?0:a,c={monthDate:i,i:s};switch(!0){case n.props.renderCustomHeader!==void 0:return n.renderCustomHeader(c);case(n.props.showMonthYearPicker||n.props.showQuarterYearPicker||n.props.showYearPicker):return n.renderYearHeader(c);default:return n.renderDefaultHeader(c)}},n.renderMonths=function(){var o,i;if(!(n.props.showTimeSelectOnly||n.props.showYearPicker)){for(var a=[],s=(o=n.props.monthsShown)!==null&&o!==void 0?o:r.defaultProps.monthsShown,c=n.props.showPreviousMonths?s-1:0,l=n.props.showMonthYearPicker||n.props.showQuarterYearPicker?w.addYears(n.state.date,c):w.subMonths(n.state.date,c),u=(i=n.props.monthSelectedIn)!==null&&i!==void 0?i:c,d=0;d<s;++d){var f=d-u+c,m=n.props.showMonthYearPicker||n.props.showQuarterYearPicker?w.addYears(l,f):w.addMonths(l,f),g="month-".concat(d),p=d<s-1,y=d>0;a.push(x.createElement("div",{key:g,ref:function(S){n.monthContainer=S??void 0},className:"react-datepicker__month-container"},n.renderHeader({monthDate:m,i:d}),x.createElement(Dy,Se({},r.defaultProps,n.props,{containerRef:n.containerRef,ariaLabelPrefix:n.props.monthAriaLabelPrefix,day:m,onDayClick:n.handleDayClick,handleOnKeyDown:n.props.handleOnDayKeyDown,handleOnMonthKeyDown:n.props.handleOnKeyDown,onDayMouseEnter:n.handleDayMouseEnter,onMouseLeave:n.handleMonthMouseLeave,orderInDisplay:d,selectingDate:n.state.selectingDate,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:y,dayNamesHeader:n.renderDayNamesHeader(m)}))))}return a}},n.renderYears=function(){if(!n.props.showTimeSelectOnly&&n.props.showYearPicker)return x.createElement("div",{className:"react-datepicker__year--container"},n.renderHeader({monthDate:n.state.date}),x.createElement(Ry,Se({},r.defaultProps,n.props,{selectingDate:n.state.selectingDate,date:n.state.date,onDayClick:n.handleDayClick,clearSelectingDate:n.clearSelectingDate,onYearMouseEnter:n.handleYearMouseEnter,onYearMouseLeave:n.handleYearMouseLeave})))},n.renderTimeSection=function(){if(n.props.showTimeSelect&&(n.state.monthContainer||n.props.showTimeSelectOnly))return x.createElement(Iy,Se({},r.defaultProps,n.props,{onChange:n.props.onTimeChange,format:n.props.timeFormat,intervals:n.props.timeIntervals,monthRef:n.state.monthContainer}))},n.renderInputTimeSection=function(){var o=n.props.selected?new Date(n.props.selected):void 0,i=o&&Ci(o)&&!!n.props.selected,a=i?"".concat(Wu(o.getHours()),":").concat(Wu(o.getMinutes())):"";if(n.props.showTimeInput)return x.createElement(xy,Se({},r.defaultProps,n.props,{date:o,timeString:a,onChange:n.props.onTimeChange}))},n.renderAriaLiveRegion=function(){var o,i=wr(n.state.date,(o=n.props.yearItemNumber)!==null&&o!==void 0?o:r.defaultProps.yearItemNumber),a=i.startPeriod,s=i.endPeriod,c;return n.props.showYearPicker?c="".concat(a," - ").concat(s):n.props.showMonthYearPicker||n.props.showQuarterYearPicker?c=w.getYear(n.state.date):c="".concat(ps(w.getMonth(n.state.date),n.props.locale)," ").concat(w.getYear(n.state.date)),x.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},n.state.isRenderAriaLiveMessage&&c)},n.renderChildren=function(){if(n.props.children)return x.createElement("div",{className:"react-datepicker__children-container"},n.props.children)},n.containerRef=x.createRef(),n.state={date:n.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},n}return Object.defineProperty(r,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,outsideClickIgnoreClass:Xu,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:io}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){var t=this;this.props.showTimeSelect&&(this.assignMonthContainer=(function(){t.setState({monthContainer:t.monthContainer})})())},r.prototype.componentDidUpdate=function(t){var n=this;if(this.props.preSelection&&(!Ce(this.props.preSelection,t.preSelection)||this.props.monthSelectedIn!==t.monthSelectedIn)){var o=!yt(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&n.handleCustomMonthChange(n.state.date)})}else this.props.openToDate&&!Ce(this.props.openToDate,t.openToDate)&&this.setState({date:this.props.openToDate})},r.prototype.render=function(){var t=this.props.container||ey;return x.createElement(Si,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},x.createElement("div",{style:{display:"contents"},ref:this.containerRef},x.createElement(t,{className:_e("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},r})(x.Component),Vy=function(e){var r=e.icon,t=e.className,n=t===void 0?"":t,o=e.onClick,i="react-datepicker__calendar-icon";if(typeof r=="string")return x.createElement("i",{className:"".concat(i," ").concat(r," ").concat(n),"aria-hidden":"true",onClick:o});if(x.isValidElement(r)){var a=r;return x.cloneElement(a,{className:"".concat(a.props.className||""," ").concat(i," ").concat(n),onClick:function(s){typeof a.props.onClick=="function"&&a.props.onClick(s),typeof o=="function"&&o(s)}})}return x.createElement("svg",{className:"".concat(i," ").concat(n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},x.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},Ju=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return r.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},r.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},r.prototype.render=function(){return ln.createPortal(this.props.children,this.el)},r})(x.Component),Fy="[tabindex], a, button, input, select, textarea",Yy=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&e.tabIndex!==-1},ed=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.getTabChildren=function(){var o;return Array.prototype.slice.call((o=n.tabLoopRef.current)===null||o===void 0?void 0:o.querySelectorAll(Fy),1,-1).filter(Yy)},n.handleFocusStart=function(){var o=n.getTabChildren();o&&o.length>1&&o[o.length-1].focus()},n.handleFocusEnd=function(){var o=n.getTabChildren();o&&o.length>1&&o[0].focus()},n.tabLoopRef=x.createRef(),n}return r.prototype.render=function(){var t;return((t=this.props.enableTabLoop)!==null&&t!==void 0?t:r.defaultProps.enableTabLoop)?x.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},x.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,x.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},r.defaultProps={enableTabLoop:!0},r})(x.Component);function Uy(e){function r(t){var n,o=typeof t.hidePopper=="boolean"?t.hidePopper:!0,i=x.useRef(null),a=Jv(Se({open:!o,whileElementsMounted:Mv,placement:t.popperPlacement,middleware:fr([zv({padding:15}),Lv(10),Bv({element:i})],(n=t.popperModifiers)!==null&&n!==void 0?n:[],!0)},t.popperProps)),s=Se(Se({},t),{hidePopper:o,popperProps:Se(Se({},a),{arrowRef:i})});return x.createElement(e,Se({},s))}return r.displayName="withFloating(".concat(e.displayName||e.name||"Component",")"),r}var Hy=function(e){var r=e.className,t=e.wrapperClassName,n=e.hidePopper,o=n===void 0?!0:n,i=e.popperComponent,a=e.targetComponent,s=e.enableTabLoop,c=e.popperOnKeyDown,l=e.portalId,u=e.portalHost,d=e.popperProps,f=e.showArrow,m=void 0;if(!o){var g=_e("react-datepicker-popper",r);m=x.createElement(ed,{enableTabLoop:s},x.createElement("div",{ref:d.refs.setFloating,style:d.floatingStyles,className:g,"data-placement":d.placement,onKeyDown:c},i,f&&x.createElement(Wv,{ref:d.arrowRef,context:d.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}e.popperContainer&&(m=x.createElement(e.popperContainer,{},m)),l&&!o&&(m=x.createElement(Ju,{portalId:l,portalHost:u},m));var p=_e("react-datepicker-wrapper",t);return x.createElement(x.Fragment,null,x.createElement("div",{ref:d.refs.setReference,className:p},a),m)},Wy=Uy(Hy);function Zy(e,r){return e&&r?w.getMonth(e)!==w.getMonth(r)||w.getYear(e)!==w.getYear(r):e!==r}var vs="Date input not valid.",qy=(function(e){pt(r,e);function r(t){var n=e.call(this,t)||this;return n.calendar=null,n.input=null,n.getPreSelection=function(){return n.props.openToDate?n.props.openToDate:n.props.selectsEnd&&n.props.startDate?n.props.startDate:n.props.selectsStart&&n.props.endDate?n.props.endDate:Re()},n.modifyHolidays=function(){var o;return(o=n.props.holidays)===null||o===void 0?void 0:o.reduce(function(i,a){var s=new Date(a.date);return Ci(s)?fr(fr([],i,!0),[Se(Se({},a),{date:s})],!1):i},[])},n.calcInitialState=function(){var o,i=n.getPreSelection(),a=Yu(n.props),s=Uu(n.props),c=a&&w.isBefore(i,Ei(a))?a:s&&w.isAfter(i,Iu(s))?s:i;return{open:n.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(o=n.props.selectsRange?n.props.startDate:n.props.selected)!==null&&o!==void 0?o:c,highlightDates:Hu(n.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},n.getInputValue=function(){var o,i=n.props,a=i.locale,s=i.startDate,c=i.endDate,l=i.rangeSeparator,u=i.selected,d=i.selectedDates,f=i.selectsMultiple,m=i.selectsRange,g=i.value,p=(o=n.props.dateFormat)!==null&&o!==void 0?o:r.defaultProps.dateFormat,y=n.state.inputValue;return typeof g=="string"?g:typeof y=="string"?y:m?ry(s,c,{dateFormat:p,locale:a,rangeSeparator:l}):f?ny(d??[],{dateFormat:p,locale:a}):Ft(u,{dateFormat:p,locale:a})},n.resetHiddenStatus=function(){n.setState(Se(Se({},n.state),{wasHidden:!1}))},n.setHiddenStatus=function(){n.setState(Se(Se({},n.state),{wasHidden:!0}))},n.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&n.setHiddenStatus()},n.clearPreventFocusTimeout=function(){n.preventFocusTimeout&&clearTimeout(n.preventFocusTimeout)},n.setFocus=function(){var o,i;(i=(o=n.input)===null||o===void 0?void 0:o.focus)===null||i===void 0||i.call(o,{preventScroll:!0})},n.setBlur=function(){var o,i;(i=(o=n.input)===null||o===void 0?void 0:o.blur)===null||i===void 0||i.call(o),n.cancelFocusInput()},n.deferBlur=function(){requestAnimationFrame(function(){n.setBlur()})},n.setOpen=function(o,i){i===void 0&&(i=!1),n.setState({open:o,preSelection:o&&n.state.open?n.state.preSelection:n.calcInitialState().preSelection,lastPreSelectChange:ys},function(){o||n.setState(function(a){return{focused:i?a.focused:!1}},function(){!i&&n.deferBlur(),n.setState({inputValue:null})})})},n.inputOk=function(){return w.isDate(n.state.preSelection)},n.isCalendarOpen=function(){return n.props.open===void 0?n.state.open&&!n.props.disabled&&!n.props.readOnly:n.props.open},n.handleFocus=function(o){var i,a,s=n.state.wasHidden,c=s?n.state.open:!0;s&&n.resetHiddenStatus(),n.state.preventFocus||((a=(i=n.props).onFocus)===null||a===void 0||a.call(i,o),c&&!n.props.preventOpenOnFocus&&!n.props.readOnly&&n.setOpen(!0)),n.setState({focused:!0})},n.sendFocusBackToInput=function(){n.preventFocusTimeout&&n.clearPreventFocusTimeout(),n.setState({preventFocus:!0},function(){n.preventFocusTimeout=setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})})},n.cancelFocusInput=function(){clearTimeout(n.inputFocusTimeout),n.inputFocusTimeout=void 0},n.deferFocusInput=function(){n.cancelFocusInput(),n.inputFocusTimeout=setTimeout(function(){return n.setFocus()},1)},n.handleDropdownFocus=function(){n.cancelFocusInput()},n.resetInputValue=function(){n.setState(Se(Se({},n.state),{inputValue:null}))},n.handleBlur=function(o){var i,a;(!n.state.open||n.props.withPortal||n.props.showTimeInput)&&((a=(i=n.props).onBlur)===null||a===void 0||a.call(i,o)),n.resetInputValue(),n.state.open&&n.props.open===!1&&n.setOpen(!1),n.setState({focused:!1})},n.handleCalendarClickOutside=function(o){var i,a;n.props.inline||n.setOpen(!1),(a=(i=n.props).onClickOutside)===null||a===void 0||a.call(i,o),n.props.withPortal&&o.preventDefault()},n.handleChange=function(){for(var o,i,a,s,c,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var d=l[0];if(!(n.props.onChangeRaw&&(n.props.onChangeRaw.apply(n,l),!d||typeof d.isDefaultPrevented!="function"||d.isDefaultPrevented()))){n.setState({inputValue:d?.target instanceof HTMLInputElement?d.target.value:null,lastPreSelectChange:Ky});var f=n.props,m=f.selectsRange,g=f.startDate,p=f.endDate,y=(o=n.props.dateFormat)!==null&&o!==void 0?o:r.defaultProps.dateFormat,S=(i=n.props.strictParsing)!==null&&i!==void 0?i:r.defaultProps.strictParsing,C=d?.target instanceof HTMLInputElement?d.target.value:"";if(m){var k=n.props.rangeSeparator,E=k.trim(),_=C.split(y.includes(E)?k:E,2).map(function(I){return I.trim()}),O=_[0],N=_[1],q=us(O??"",y,n.props.locale,S),Z=q?us(N??"",y,n.props.locale,S):null,L=g?.getTime()!==q?.getTime(),K=p?.getTime()!==Z?.getTime();if(!L&&!K||q&&Yt(q,n.props)||Z&&Yt(Z,n.props))return;(s=(a=n.props).onChange)===null||s===void 0||s.call(a,[q,Z],d)}else{var v=us(C,y,n.props.locale,S,(c=n.props.selected)!==null&&c!==void 0?c:void 0);(v||!C)&&n.setSelected(v,d,!0)}}},n.handleSelect=function(o,i,a){if(!n.props.readOnly){var s=n.props,c=s.selectsRange,l=s.startDate,u=s.endDate,d=s.swapRange,f=!c||l&&!u&&(d||!ms(o,l));n.props.shouldCloseOnSelect&&!n.props.showTimeSelect&&f&&n.sendFocusBackToInput(),n.props.onChangeRaw&&n.props.onChangeRaw(i),n.setSelected(o,i,!1,a),n.props.showDateSelect&&n.setState({isRenderAriaLiveMessage:!0}),!n.props.shouldCloseOnSelect||n.props.showTimeSelect?n.setPreSelection(o):f&&n.setOpen(!1)}},n.setSelected=function(o,i,a,s){var c,l,u=o;if(n.props.showYearPicker){if(u!==null&&Mi(w.getYear(u),n.props))return}else if(n.props.showMonthYearPicker){if(u!==null&&Nu(u,n.props))return}else if(u!==null&&Yt(u,n.props))return;var d=n.props,f=d.onChange,m=d.selectsRange,g=d.startDate,p=d.endDate,y=d.selectsMultiple,S=d.selectedDates,C=d.minTime,k=d.swapRange;if(!Zr(n.props.selected,u)||n.props.allowSameDay||m||y)if(u!==null&&(n.props.selected&&(!a||!n.props.showTimeSelect&&!n.props.showTimeSelectOnly&&!n.props.showTimeInput)&&(u=ds(u,{hour:w.getHours(n.props.selected),minute:w.getMinutes(n.props.selected),second:w.getSeconds(n.props.selected)})),!a&&(n.props.showTimeSelect||n.props.showTimeSelectOnly)&&C&&(u=ds(u,{hour:C.getHours(),minute:C.getMinutes(),second:C.getSeconds()})),n.props.inline||n.setState({preSelection:u}),n.props.focusSelectedMonth||n.setState({monthSelectedIn:s})),m){var E=!g&&!p,_=g&&!p,O=!g&&!!p,N=g&&p;E?f?.([u,null],i):_?u===null?f?.([null,null],i):ms(u,g)?f?.(k?[u,g]:[u,null],i):f?.([g,u],i):O&&(u&&ms(u,p)?f?.([u,p],i):f?.([u,null],i)),N&&f?.([u,null],i)}else if(y){if(u!==null)if(!S?.length)f?.([u],i);else{var q=S.some(function(L){return Ce(L,u)});if(q){var Z=S.filter(function(L){return!Ce(L,u)});f?.(Z,i)}else f?.(fr(fr([],S,!0),[u],!1),i)}}else f?.(u,i);a||((l=(c=n.props).onSelect)===null||l===void 0||l.call(c,u,i),n.setState({inputValue:null}))},n.setPreSelection=function(o){if(!n.props.readOnly){var i=w.isDate(n.props.minDate),a=w.isDate(n.props.maxDate),s=!0;if(o){var c=Ei(o);if(i&&a)s=qr(o,n.props.minDate,n.props.maxDate);else if(i){var l=Ei(n.props.minDate);s=w.isAfter(o,l)||Zr(c,l)}else if(a){var u=Iu(n.props.maxDate);s=w.isBefore(o,u)||Zr(c,u)}}s&&n.setState({preSelection:o})}},n.toggleCalendar=function(){n.setOpen(!n.state.open)},n.handleTimeChange=function(o){var i,a;if(!(n.props.selectsRange||n.props.selectsMultiple)){var s=n.props.selected?n.props.selected:n.getPreSelection(),c=n.props.selected?o:ds(s,{hour:w.getHours(o),minute:w.getMinutes(o)});n.setState({preSelection:c}),(a=(i=n.props).onChange)===null||a===void 0||a.call(i,c),n.props.shouldCloseOnSelect&&!n.props.showTimeInput&&(n.sendFocusBackToInput(),n.setOpen(!1)),n.props.showTimeInput&&n.setOpen(!0),(n.props.showTimeSelectOnly||n.props.showTimeSelect)&&n.setState({isRenderAriaLiveMessage:!0}),n.setState({inputValue:null})}},n.onInputClick=function(){var o,i;!n.props.disabled&&!n.props.readOnly&&n.setOpen(!0),(i=(o=n.props).onInputClick)===null||i===void 0||i.call(o)},n.onInputKeyDown=function(o){var i,a,s,c,l,u;(a=(i=n.props).onKeyDown)===null||a===void 0||a.call(i,o);var d=o.key;if(!n.state.open&&!n.props.inline&&!n.props.preventOpenOnFocus){(d===ie.ArrowDown||d===ie.ArrowUp||d===ie.Enter)&&((s=n.onInputClick)===null||s===void 0||s.call(n));return}if(n.state.open){if(d===ie.ArrowDown||d===ie.ArrowUp){o.preventDefault();var f=n.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":n.props.showWeekPicker&&n.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':n.props.showFullMonthYearPicker||n.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',m=((c=n.calendar)===null||c===void 0?void 0:c.containerRef.current)instanceof Element&&n.calendar.containerRef.current.querySelector(f);m instanceof HTMLElement&&m.focus({preventScroll:!0});return}var g=Re(n.state.preSelection);d===ie.Enter?(o.preventDefault(),o.target.blur(),n.inputOk()&&n.state.lastPreSelectChange===ys?(n.handleSelect(g,o),!n.props.shouldCloseOnSelect&&n.setPreSelection(g)):n.setOpen(!1)):d===ie.Escape?(o.preventDefault(),o.target.blur(),n.sendFocusBackToInput(),n.setOpen(!1)):d===ie.Tab&&n.setOpen(!1),n.inputOk()||(u=(l=n.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:vs})}},n.onPortalKeyDown=function(o){var i=o.key;i===ie.Escape&&(o.preventDefault(),n.setState({preventFocus:!0},function(){n.setOpen(!1),setTimeout(function(){n.setFocus(),n.setState({preventFocus:!1})})}))},n.onDayKeyDown=function(o){var i,a,s,c,l,u,d=n.props,f=d.minDate,m=d.maxDate,g=d.disabledKeyboardNavigation,p=d.showWeekPicker,y=d.shouldCloseOnSelect,S=d.locale,C=d.calendarStartDay,k=d.adjustDateOnChange,E=d.inline;if((a=(i=n.props).onKeyDown)===null||a===void 0||a.call(i,o),!g){var _=o.key,O=o.shiftKey,N=Re(n.state.preSelection),q=function(U,H){var ee=H;switch(U){case ie.ArrowRight:ee=p?w.addWeeks(H,1):w.addDays(H,1);break;case ie.ArrowLeft:ee=p?w.subWeeks(H,1):w.subDays(H,1);break;case ie.ArrowUp:ee=w.subWeeks(H,1);break;case ie.ArrowDown:ee=w.addWeeks(H,1);break;case ie.PageUp:ee=O?w.subYears(H,1):w.subMonths(H,1);break;case ie.PageDown:ee=O?w.addYears(H,1):w.addMonths(H,1);break;case ie.Home:ee=Rr(H,S,C);break;case ie.End:ee=ay(H);break}return ee},Z=function(U,H){for(var ee=40,re=U,se=!1,V=0,G=q(U,H);!se;){if(V>=ee){G=H;break}f&&G<f&&(re=ie.ArrowRight,G=Yt(f,n.props)?q(re,G):f),m&&G>m&&(re=ie.ArrowLeft,G=Yt(m,n.props)?q(re,G):m),Yt(G,n.props)?((re===ie.PageUp||re===ie.Home)&&(re=ie.ArrowRight),(re===ie.PageDown||re===ie.End)&&(re=ie.ArrowLeft),G=q(re,G)):se=!0,V++}return G};if(_===ie.Enter){o.preventDefault(),n.handleSelect(N,o),!y&&n.setPreSelection(N);return}else if(_===ie.Escape){o.preventDefault(),n.setOpen(!1),n.inputOk()||(c=(s=n.props).onInputError)===null||c===void 0||c.call(s,{code:1,msg:vs});return}var L=null;switch(_){case ie.ArrowLeft:case ie.ArrowRight:case ie.ArrowUp:case ie.ArrowDown:case ie.PageUp:case ie.PageDown:case ie.Home:case ie.End:L=Z(_,N);break}if(!L){(u=(l=n.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:vs});return}if(o.preventDefault(),n.setState({lastPreSelectChange:ys}),k&&n.setSelected(L),n.setPreSelection(L),E){var K=w.getMonth(N),v=w.getMonth(L),I=w.getYear(N),A=w.getYear(L);K!==v||I!==A?n.setState({shouldFocusDayInline:!0}):n.setState({shouldFocusDayInline:!1})}}},n.onPopperKeyDown=function(o){var i=o.key;i===ie.Escape&&(o.preventDefault(),n.sendFocusBackToInput(),n.setOpen(!1))},n.onClearClick=function(o){o&&o.preventDefault&&o.preventDefault(),n.sendFocusBackToInput();var i=n.props,a=i.selectsRange,s=i.onChange;s?.(a?[null,null]:null,o),n.setState({inputValue:null})},n.clear=function(){n.onClearClick()},n.onScroll=function(o){typeof n.props.closeOnScroll=="boolean"&&n.props.closeOnScroll?(o.target===document||o.target===document.documentElement||o.target===document.body)&&n.setOpen(!1):typeof n.props.closeOnScroll=="function"&&n.props.closeOnScroll(o)&&n.setOpen(!1)},n.renderCalendar=function(){var o,i;return!n.props.inline&&!n.isCalendarOpen()?null:x.createElement(By,Se({showMonthYearDropdown:void 0,ref:function(a){n.calendar=a}},n.props,n.state,{setOpen:n.setOpen,dateFormat:(o=n.props.dateFormatCalendar)!==null&&o!==void 0?o:r.defaultProps.dateFormatCalendar,onSelect:n.handleSelect,onClickOutside:n.handleCalendarClickOutside,holidays:yy(n.modifyHolidays()),outsideClickIgnoreClass:n.props.outsideClickIgnoreClass,onDropdownFocus:n.handleDropdownFocus,onTimeChange:n.handleTimeChange,className:n.props.calendarClassName,container:n.props.calendarContainer,handleOnKeyDown:n.props.onKeyDown,handleOnDayKeyDown:n.onDayKeyDown,setPreSelection:n.setPreSelection,dropdownMode:(i=n.props.dropdownMode)!==null&&i!==void 0?i:r.defaultProps.dropdownMode}),n.props.children)},n.renderAriaLiveRegion=function(){var o,i=n.props.locale,a=(o=n.props.dateFormat)!==null&&o!==void 0?o:r.defaultProps.dateFormat,s=n.props.showTimeInput||n.props.showTimeSelect,c=s?"PPPPp":"PPPP",l;return n.props.selectsRange?l="Selected start date: ".concat(Ft(n.props.startDate,{dateFormat:c,locale:i}),". ").concat(n.props.endDate?"End date: "+Ft(n.props.endDate,{dateFormat:c,locale:i}):""):n.props.showTimeSelectOnly?l="Selected time: ".concat(Ft(n.props.selected,{dateFormat:a,locale:i})):n.props.showYearPicker?l="Selected year: ".concat(Ft(n.props.selected,{dateFormat:"yyyy",locale:i})):n.props.showMonthYearPicker?l="Selected month: ".concat(Ft(n.props.selected,{dateFormat:"MMMM yyyy",locale:i})):n.props.showQuarterYearPicker?l="Selected quarter: ".concat(Ft(n.props.selected,{dateFormat:"yyyy, QQQ",locale:i})):l="Selected date: ".concat(Ft(n.props.selected,{dateFormat:c,locale:i})),x.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},l)},n.renderDateInput=function(){var o,i,a=_e(n.props.className,(o={},o[n.props.outsideClickIgnoreClass||r.defaultProps.outsideClickIgnoreClass]=n.state.open,o)),s=n.props.customInput||x.createElement("input",{type:"text"}),c=n.props.customInputRef||"ref";return x.cloneElement(s,(i={},i[c]=function(l){n.input=l},i.value=n.getInputValue(),i.onBlur=n.handleBlur,i.onChange=n.handleChange,i.onClick=n.onInputClick,i.onFocus=n.handleFocus,i.onKeyDown=n.onInputKeyDown,i.id=n.props.id,i.name=n.props.name,i.form=n.props.form,i.autoFocus=n.props.autoFocus,i.placeholder=n.props.placeholderText,i.disabled=n.props.disabled,i.autoComplete=n.props.autoComplete,i.className=_e(s.props.className,a),i.title=n.props.title,i.readOnly=n.props.readOnly,i.required=n.props.required,i.tabIndex=n.props.tabIndex,i["aria-describedby"]=n.props.ariaDescribedBy,i["aria-invalid"]=n.props.ariaInvalid,i["aria-labelledby"]=n.props.ariaLabelledBy,i["aria-required"]=n.props.ariaRequired,i))},n.renderClearButton=function(){var o=n.props,i=o.isClearable,a=o.disabled,s=o.selected,c=o.startDate,l=o.endDate,u=o.clearButtonTitle,d=o.clearButtonClassName,f=d===void 0?"":d,m=o.ariaLabelClose,g=m===void 0?"Close":m,p=o.selectedDates,y=o.readOnly;return i&&!y&&(s!=null||c!=null||l!=null||p?.length)?x.createElement("button",{type:"button",className:_e("react-datepicker__close-icon",f,{"react-datepicker__close-icon--disabled":a}),disabled:a,"aria-label":g,onClick:n.onClearClick,title:u,tabIndex:-1}):null},n.state=n.calcInitialState(),n.preventFocusTimeout=void 0,n}return Object.defineProperty(r,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,outsideClickIgnoreClass:Xu,readOnly:!1,rangeSeparator:Mu,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:io,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.componentDidUpdate=function(t,n){var o,i,a,s;t.inline&&Zy(t.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Hu(this.props.highlightDates)}),!n.focused&&!Zr(t.selected,this.props.selected)&&this.setState({inputValue:null}),n.open!==this.state.open&&(n.open===!1&&this.state.open===!0&&((i=(o=this.props).onCalendarOpen)===null||i===void 0||i.call(o)),n.open===!0&&this.state.open===!1&&((s=(a=this.props).onCalendarClose)===null||s===void 0||s.call(a)))},r.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.renderInputContainer=function(){var t=this.props,n=t.showIcon,o=t.icon,i=t.calendarIconClassname,a=t.calendarIconClassName,s=t.toggleCalendarOnIconClick,c=this.state.open;return i&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),x.createElement("div",{className:"react-datepicker__input-container".concat(n?" react-datepicker__view-calendar-icon":"")},n&&x.createElement(Vy,Se({icon:o,className:_e(a,!a&&i,c&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},r.prototype.render=function(){var t=this.renderCalendar();if(this.props.inline)return t;if(this.props.withPortal){var n=this.state.open?x.createElement(ed,{enableTabLoop:this.props.enableTabLoop},x.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},t)):null;return this.state.open&&this.props.portalId&&(n=x.createElement(Ju,Se({portalId:this.props.portalId},this.props),n)),x.createElement("div",null,this.renderInputContainer(),n)}return x.createElement(Wy,Se({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:t,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},r})(x.Component),Ky="input",ys="navigate";const Gy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M2.999%208.611a1.1%201.1%200%200%201%20.33-.786%201.135%201.135%200%200%201%201.591%200l7.079%206.993%207.079-6.993a1.135%201.135%200%200%201%201.837.36%201.1%201.1%200%200%201-.246%201.215l-7.87%207.775a1.135%201.135%200%200%201-1.591%200L3.328%209.4a1.1%201.1%200%200%201-.329-.789'/%3e%3c/svg%3e",Qy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M15.39%2021a1.1%201.1%200%200%200%20.785-.33%201.135%201.135%200%200%200%200-1.591L9.182%2012l6.993-7.08a1.135%201.135%200%200%200-.36-1.835%201.1%201.1%200%200%200-1.21.244L6.824%2011.2a1.135%201.135%200%200%200%200%201.591L14.6%2020.67a1.1%201.1%200%200%200%20.79.33'/%3e%3c/svg%3e",Xy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M8.61%203a1.1%201.1%200%200%200-.785.33%201.135%201.135%200%200%200%200%201.591L14.818%2012l-6.993%207.08a1.135%201.135%200%200%200%20.36%201.835%201.1%201.1%200%200%200%201.21-.244l7.78-7.871a1.135%201.135%200%200%200%200-1.591L9.4%203.33A1.1%201.1%200%200%200%208.61%203'/%3e%3c/svg%3e",Jy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23fff'%20clip-path='url(%23a)'%3e%3cpath%20d='M13.085%207.331a1.096%201.096%200%201%200-2.192%200v9.316a1.096%201.096%200%200%200%202.192%200z'/%3e%3cpath%20d='M16.647%2010.893H7.33a1.096%201.096%200%201%200%200%202.192h9.316a1.096%201.096%200%200%200%200-2.192'/%3e%3cpath%20d='M12%2024C5.38%2024%200%2018.608%200%2012S5.38%200%2012%200s12%205.38%2012%2012-5.38%2012-12%2012m0-21.808c-5.414%200-9.808%204.394-9.808%209.808S6.586%2021.808%2012%2021.808s9.808-4.394%209.808-9.808S17.403%202.192%2012%202.192'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",eb=x.forwardRef(({value:e,onClick:r},t)=>h.jsxs("button",{className:Yr.datePickerButton,onClick:r,ref:t,children:[e,h.jsx("img",{src:Gy,style:{marginLeft:10}})]})),tb=({currentDate:e,onPrevMonth:r,onNextMonth:t,onAddEvent:n,onDateChange:o})=>h.jsxs("div",{className:Yr.headerContainer,children:[h.jsxs("div",{className:Yr.navAndDate,children:[h.jsx("button",{className:Yr.navButton,onClick:r,children:h.jsx("img",{src:Qy,width:15})}),h.jsx("button",{className:Yr.navButton,onClick:t,children:h.jsx("img",{src:Xy,width:15})}),h.jsx(qy,{selected:e,onChange:i=>o(i),dateFormat:"MMMM yyyy",showMonthYearPicker:!0,className:Yr.datePickerInput,locale:"es",customInput:h.jsx(eb,{})})]}),h.jsxs("button",{className:Yr.addEventButton,onClick:n,children:[h.jsx("img",{src:Jy}),"Agregar evento"]})]}),xe={sidebarContainer:"_sidebarContainer_1pgug_1",leadsSection:"_leadsSection_1pgug_17",leadCard:"_leadCard_1pgug_33",leadIcon:"_leadIcon_1pgug_71",leadDays:"_leadDays_1pgug_81",leadCount:"_leadCount_1pgug_91",eventsSection:"_eventsSection_1pgug_105",sidebarTitle:"_sidebarTitle_1pgug_129",eventGroup:"_eventGroup_1pgug_147",eventGroupDate:"_eventGroupDate_1pgug_155",eventItem:"_eventItem_1pgug_167",eventDetails:"_eventDetails_1pgug_201",eventTitle:"_eventTitle_1pgug_215",eventTime:"_eventTime_1pgug_241",calendarsSection:"_calendarsSection_1pgug_263",collapsibleHeader:"_collapsibleHeader_1pgug_271",headerTitle:"_headerTitle_1pgug_299",calendarCount:"_calendarCount_1pgug_313",chevronIcon:"_chevronIcon_1pgug_331",collapsed:"_collapsed_1pgug_339",collapsibleContent:"_collapsibleContent_1pgug_347",hidden:"_hidden_1pgug_363",calendarItem:"_calendarItem_1pgug_373",circularCheckbox:"_circularCheckbox_1pgug_407",checkedIcon:"_checkedIcon_1pgug_425",uncheckedIcon:"_uncheckedIcon_1pgug_433",calendarIcon:"_calendarIcon_1pgug_441",googleIcon:"_googleIcon_1pgug_449",syncButton:"_syncButton_1pgug_457",eventsContainer:"_eventsContainer_1pgug_509"};/**
107
+ */var Mi=function(n,t){return Mi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])},Mi(n,t)};function ct(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Mi(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var xe=function(){return xe=Object.assign||function(t){for(var r,o=1,a=arguments.length;o<a;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},xe.apply(this,arguments)};function er(e,n,t){if(t||arguments.length===2)for(var r=0,o=n.length,a;r<o;r++)(a||!(r in n))&&(a||(a=Array.prototype.slice.call(n,0,r)),a[r]=n[r]);return e.concat(a||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;var $g=function(e){var n=e.showTimeSelectOnly,t=n===void 0?!1:n,r=e.showTime,o=r===void 0?!1:r,a=e.className,i=e.children,s=t?"Choose Time":"Choose Date".concat(o?" and Time":"");return w.createElement("div",{className:a,role:"dialog","aria-label":s,"aria-modal":"true"},i)},jg=function(e,n){var t=w.useRef(null),r=w.useRef(e);r.current=e;var o=w.useCallback(function(a){var i,s=a.composed&&a.composedPath&&a.composedPath().find(function(c){return c instanceof Node})||a.target;t.current&&!t.current.contains(s)&&(n&&s instanceof HTMLElement&&s.classList.contains(n)||(i=r.current)===null||i===void 0||i.call(r,a))},[n]);return w.useEffect(function(){return document.addEventListener("mousedown",o),function(){document.removeEventListener("mousedown",o)}},[o]),t},ta=function(e){var n=e.children,t=e.onClickOutside,r=e.className,o=e.containerRef,a=e.style,i=e.ignoreClass,s=jg(t,i);return w.createElement("div",{className:r,style:a,ref:function(c){s.current=c,o&&(o.current=c)}},n)},ne;(function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"})(ne||(ne={}));function Tl(){var e=typeof window<"u"?window:globalThis;return e}var Vn=12;function Ae(e){if(e==null)return new Date;var n=typeof e=="string"?y.parseISO(e):y.toDate(e);return ra(n)?n:new Date}function Ai(e,n,t,r,o){o===void 0&&(o=Ae());for(var a=ln(t)||ln(Ii()),i=Array.isArray(n)?n:[n],s=0,c=i;s<c.length;s++){var l=c[s],u=y.parse(e,l,o,{locale:a,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});if(ra(u)&&(!r||e===Ye(u,l,t)))return u}return null}function ra(e,n){return y.isValid(e)&&!y.isBefore(e,new Date("1/1/1800"))}function Ye(e,n,t){if(t==="en")return y.format(e,n,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=t?ln(t):void 0;return t&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(t,'"].')),r=r||ln(Ii()),y.format(e,n,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Nt(e,n){var t=n.dateFormat,r=n.locale,o=Array.isArray(t)&&t.length>0?t[0]:t;return e&&Ye(e,o,r)||""}var Ol=" - ";function Lg(e,n,t){if(!e&&!n)return"";var r=e?Nt(e,t):"",o=n?Nt(n,t):"",a=t.rangeSeparator||Ol;return"".concat(r).concat(a).concat(o)}function zg(e,n){if(!e?.length)return"";var t=e[0]?Nt(e[0],n):"";if(e.length===1)return t;if(e.length===2&&e[1]){var r=Nt(e[1],n);return"".concat(t,", ").concat(r)}var o=e.length-1;return"".concat(t," (+").concat(o,")")}function Pi(e,n){var t=n.hour,r=t===void 0?0:t,o=n.minute,a=o===void 0?0:o,i=n.second,s=i===void 0?0:i;return y.setHours(y.setMinutes(y.setSeconds(e,s),a),r)}function Bg(e){return y.getISOWeek(e)}function Vg(e,n){return Ye(e,"ddd",n)}function na(e){return y.startOfDay(e)}function Sr(e,n,t){var r=ln(n||Ii());return y.startOfWeek(e,{locale:r,weekStartsOn:t})}function ur(e){return y.startOfMonth(e)}function Fn(e){return y.startOfYear(e)}function Ml(e){return y.startOfQuarter(e)}function Al(){return y.startOfDay(Ae())}function Pl(e){return y.endOfDay(e)}function Fg(e){return y.endOfWeek(e)}function Yg(e){return y.endOfMonth(e)}function tr(e,n){return e&&n?y.isSameYear(e,n):!e&&!n}function pt(e,n){return e&&n?y.isSameMonth(e,n):!e&&!n}function oa(e,n){return e&&n?y.isSameQuarter(e,n):!e&&!n}function Se(e,n){return e&&n?y.isSameDay(e,n):!e&&!n}function Nr(e,n){return e&&n?y.isEqual(e,n):!e&&!n}function Rr(e,n,t){var r,o=y.startOfDay(n),a=y.endOfDay(t);try{r=y.isWithinInterval(e,{start:o,end:a})}catch{r=!1}return r}function Ii(){var e=Tl();return e.__localeId__}function ln(e){if(typeof e=="string"){var n=Tl();return n.__localeData__?n.__localeData__[e]:void 0}else return e}function Hg(e,n,t){return n(Ye(e,"EEEE",t))}function Ug(e,n){return Ye(e,"EEEEEE",n)}function Wg(e,n){return Ye(e,"EEE",n)}function Ni(e,n){return Ye(y.setMonth(Ae(),e),"LLLL",n)}function Il(e,n){return Ye(y.setMonth(Ae(),e),"LLL",n)}function Zg(e,n){return Ye(y.setQuarter(Ae(),e),"QQQ",n)}function Rt(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.maxDate,a=t.excludeDates,i=t.excludeDateIntervals,s=t.includeDates,c=t.includeDateIntervals,l=t.filterDate;return Yn(e,{minDate:r,maxDate:o})||a&&a.some(function(u){return u instanceof Date?Se(e,u):Se(e,u.date)})||i&&i.some(function(u){var d=u.start,f=u.end;return y.isWithinInterval(e,{start:d,end:f})})||s&&!s.some(function(u){return Se(e,u)})||c&&!c.some(function(u){var d=u.start,f=u.end;return y.isWithinInterval(e,{start:d,end:f})})||l&&!l(Ae(e))||!1}function Ri(e,n){var t=n===void 0?{}:n,r=t.excludeDates,o=t.excludeDateIntervals;return o&&o.length>0?o.some(function(a){var i=a.start,s=a.end;return y.isWithinInterval(e,{start:i,end:s})}):r&&r.some(function(a){var i;return a instanceof Date?Se(e,a):Se(e,(i=a.date)!==null&&i!==void 0?i:new Date)})||!1}function Nl(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.maxDate,a=t.excludeDates,i=t.includeDates,s=t.filterDate;return Yn(e,{minDate:r?y.startOfMonth(r):void 0,maxDate:o?y.endOfMonth(o):void 0})||a?.some(function(c){return pt(e,c instanceof Date?c:c.date)})||i&&!i.some(function(c){return pt(e,c)})||s&&!s(Ae(e))||!1}function aa(e,n,t,r){var o=y.getYear(e),a=y.getMonth(e),i=y.getYear(n),s=y.getMonth(n),c=y.getYear(r);return o===i&&o===c?a<=t&&t<=s:o<i?c===o&&a<=t||c===i&&s>=t||c<i&&c>o:!1}function qg(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.maxDate,a=t.excludeDates,i=t.includeDates;return Yn(e,{minDate:r,maxDate:o})||a&&a.some(function(s){return pt(s instanceof Date?s:s.date,e)})||i&&!i.some(function(s){return pt(s,e)})||!1}function ia(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.maxDate,a=t.excludeDates,i=t.includeDates,s=t.filterDate;return Yn(e,{minDate:r,maxDate:o})||a?.some(function(c){return oa(e,c instanceof Date?c:c.date)})||i&&!i.some(function(c){return oa(e,c)})||s&&!s(Ae(e))||!1}function sa(e,n,t){if(!n||!t||!y.isValid(n)||!y.isValid(t))return!1;var r=y.getYear(n),o=y.getYear(t);return r<=e&&o>=e}function ca(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.maxDate,a=t.excludeDates,i=t.includeDates,s=t.filterDate,c=new Date(e,0,1);return Yn(c,{minDate:r?y.startOfYear(r):void 0,maxDate:o?y.endOfYear(o):void 0})||a?.some(function(l){return tr(c,l instanceof Date?l:l.date)})||i&&!i.some(function(l){return tr(c,l)})||s&&!s(Ae(c))||!1}function la(e,n,t,r){var o=y.getYear(e),a=y.getQuarter(e),i=y.getYear(n),s=y.getQuarter(n),c=y.getYear(r);return o===i&&o===c?a<=t&&t<=s:o<i?c===o&&a<=t||c===i&&s>=t||c<i&&c>o:!1}function Yn(e,n){var t,r=n===void 0?{}:n,o=r.minDate,a=r.maxDate;return(t=o&&y.differenceInCalendarDays(e,o)<0||a&&y.differenceInCalendarDays(e,a)>0)!==null&&t!==void 0?t:!1}function Rl(e,n){return n.some(function(t){return y.getHours(t)===y.getHours(e)&&y.getMinutes(t)===y.getMinutes(e)&&y.getSeconds(t)===y.getSeconds(e)})}function $l(e,n){var t=n===void 0?{}:n,r=t.excludeTimes,o=t.includeTimes,a=t.filterTime;return r&&Rl(e,r)||o&&!Rl(e,o)||a&&!a(e)||!1}function jl(e,n){var t=n.minTime,r=n.maxTime;if(!t||!r)throw new Error("Both minTime and maxTime props required");var o=Ae();o=y.setHours(o,y.getHours(e)),o=y.setMinutes(o,y.getMinutes(e)),o=y.setSeconds(o,y.getSeconds(e));var a=Ae();a=y.setHours(a,y.getHours(t)),a=y.setMinutes(a,y.getMinutes(t)),a=y.setSeconds(a,y.getSeconds(t));var i=Ae();i=y.setHours(i,y.getHours(r)),i=y.setMinutes(i,y.getMinutes(r)),i=y.setSeconds(i,y.getSeconds(r));var s;try{s=!y.isWithinInterval(o,{start:a,end:i})}catch{s=!1}return s}function Ll(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.includeDates,a=y.subMonths(e,1);return r&&y.differenceInCalendarMonths(r,a)>0||o&&o.every(function(i){return y.differenceInCalendarMonths(i,a)>0})||!1}function zl(e,n){var t=n===void 0?{}:n,r=t.maxDate,o=t.includeDates,a=y.addMonths(e,1);return r&&y.differenceInCalendarMonths(a,r)>0||o&&o.every(function(i){return y.differenceInCalendarMonths(a,i)>0})||!1}function Kg(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.includeDates,a=y.startOfYear(e),i=y.subQuarters(a,1);return r&&y.differenceInCalendarQuarters(r,i)>0||o&&o.every(function(s){return y.differenceInCalendarQuarters(s,i)>0})||!1}function Gg(e,n){var t=n===void 0?{}:n,r=t.maxDate,o=t.includeDates,a=y.endOfYear(e),i=y.addQuarters(a,1);return r&&y.differenceInCalendarQuarters(i,r)>0||o&&o.every(function(s){return y.differenceInCalendarQuarters(i,s)>0})||!1}function Bl(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.includeDates,a=y.subYears(e,1);return r&&y.differenceInCalendarYears(r,a)>0||o&&o.every(function(i){return y.differenceInCalendarYears(i,a)>0})||!1}function Qg(e,n){var t=n===void 0?{}:n,r=t.minDate,o=t.yearItemNumber,a=o===void 0?Vn:o,i=Fn(y.subYears(e,a)),s=dr(i,a).endPeriod,c=r&&y.getYear(r);return c&&c>s||!1}function Vl(e,n){var t=n===void 0?{}:n,r=t.maxDate,o=t.includeDates,a=y.addYears(e,1);return r&&y.differenceInCalendarYears(a,r)>0||o&&o.every(function(i){return y.differenceInCalendarYears(a,i)>0})||!1}function Jg(e,n){var t=n===void 0?{}:n,r=t.maxDate,o=t.yearItemNumber,a=o===void 0?Vn:o,i=y.addYears(e,a),s=dr(i,a).startPeriod,c=r&&y.getYear(r);return c&&c<s||!1}function Fl(e){var n=e.minDate,t=e.includeDates;if(t&&n){var r=t.filter(function(o){return y.differenceInCalendarDays(o,n)>=0});return y.min(r)}else return t?y.min(t):n}function Yl(e){var n=e.maxDate,t=e.includeDates;if(t&&n){var r=t.filter(function(o){return y.differenceInCalendarDays(o,n)<=0});return y.max(r)}else return t?y.max(t):n}function Hl(e,n){var t;e===void 0&&(e=[]),n===void 0&&(n="react-datepicker__day--highlighted");for(var r=new Map,o=0,a=e.length;o<a;o++){var i=e[o];if(y.isDate(i)){var s=Ye(i,"MM.dd.yyyy"),c=r.get(s)||[];c.includes(n)||(c.push(n),r.set(s,c))}else if(typeof i=="object"){var l=Object.keys(i),u=(t=l[0])!==null&&t!==void 0?t:"",d=i[u];if(typeof u=="string"&&Array.isArray(d))for(var f=0,m=d.length;f<m;f++){var g=d[f];if(g){var s=Ye(g,"MM.dd.yyyy"),c=r.get(s)||[];c.includes(u)||(c.push(u),r.set(s,c))}}}}return r}function Xg(e,n){return e.length!==n.length?!1:e.every(function(t,r){return t===n[r]})}function ev(e,n){e===void 0&&(e=[]),n===void 0&&(n="react-datepicker__day--holidays");var t=new Map;return e.forEach(function(r){var o=r.date,a=r.holidayName;if(y.isDate(o)){var i=Ye(o,"MM.dd.yyyy"),s=t.get(i)||{className:"",holidayNames:[]};if(!("className"in s&&s.className===n&&Xg(s.holidayNames,[a]))){s.className=n;var c=s.holidayNames;s.holidayNames=c?er(er([],c,!0),[a],!1):[a],t.set(i,s)}}}),t}function tv(e,n,t,r,o){for(var a=o.length,i=[],s=0;s<a;s++){var c=e,l=o[s];l&&(c=y.addHours(c,y.getHours(l)),c=y.addMinutes(c,y.getMinutes(l)),c=y.addSeconds(c,y.getSeconds(l)));var u=y.addMinutes(e,(t+1)*r);y.isAfter(c,n)&&y.isBefore(c,u)&&l!=null&&i.push(l)}return i}function Ul(e){return e<10?"0".concat(e):"".concat(e)}function dr(e,n){n===void 0&&(n=Vn);var t=Math.ceil(y.getYear(e)/n)*n,r=t-(n-1);return{startPeriod:r,endPeriod:t}}function rv(e){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+t-+n)/36e5)}function Wl(e){var n=e.getSeconds(),t=e.getMilliseconds();return y.toDate(e.getTime()-n*1e3-t)}function nv(e,n){return Wl(e).getTime()===Wl(n).getTime()}function Zl(e){if(!y.isDate(e))throw new Error("Invalid date");var n=new Date(e);return n.setHours(0,0,0,0),n}function $i(e,n){if(!y.isDate(e)||!y.isDate(n))throw new Error("Invalid date received");var t=Zl(e),r=Zl(n);return y.isBefore(t,r)}function ql(e){return e.key===ne.Space}var ov=(function(e){ct(n,e);function n(t){var r=e.call(this,t)||this;return r.inputRef=w.createRef(),r.onTimeChange=function(o){var a,i;r.setState({time:o});var s=r.props.date,c=s instanceof Date&&!isNaN(+s),l=c?s:new Date;if(o?.includes(":")){var u=o.split(":"),d=u[0],f=u[1];l.setHours(Number(d)),l.setMinutes(Number(f))}(i=(a=r.props).onChange)===null||i===void 0||i.call(a,l)},r.renderTimeInput=function(){var o=r.state.time,a=r.props,i=a.date,s=a.timeString,c=a.customTimeInput;return c?w.cloneElement(c,{date:i,value:o,onChange:r.onTimeChange}):w.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:r.inputRef,onClick:function(){var l;(l=r.inputRef.current)===null||l===void 0||l.focus()},required:!0,value:o,onChange:function(l){r.onTimeChange(l.target.value||s)}})},r.state={time:r.props.timeString},r}return n.getDerivedStateFromProps=function(t,r){return t.timeString!==r.time?{time:t.timeString}:null},n.prototype.render=function(){return w.createElement("div",{className:"react-datepicker__input-time-container"},w.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),w.createElement("div",{className:"react-datepicker-time__input-container"},w.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},n})(w.Component),av=(function(e){ct(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.dayEl=w.createRef(),t.handleClick=function(r){!t.isDisabled()&&t.props.onClick&&t.props.onClick(r)},t.handleMouseEnter=function(r){!t.isDisabled()&&t.props.onMouseEnter&&t.props.onMouseEnter(r)},t.handleOnKeyDown=function(r){var o,a,i=r.key;i===ne.Space&&(r.preventDefault(),r.key=ne.Enter),(a=(o=t.props).handleOnKeyDown)===null||a===void 0||a.call(o,r)},t.isSameDay=function(r){return Se(t.props.day,r)},t.isKeyboardSelected=function(){var r;if(t.props.disabledKeyboardNavigation)return!1;var o=t.props.selectsMultiple?(r=t.props.selectedDates)===null||r===void 0?void 0:r.some(function(i){return t.isSameDayOrWeek(i)}):t.isSameDayOrWeek(t.props.selected),a=t.props.preSelection&&t.isDisabled(t.props.preSelection);return!o&&t.isSameDayOrWeek(t.props.preSelection)&&!a},t.isDisabled=function(r){return r===void 0&&(r=t.props.day),Rt(r,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(){return Ri(t.props.day,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.isStartOfWeek=function(){return Se(t.props.day,Sr(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameWeek=function(r){return t.props.showWeekPicker&&Se(r,Sr(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameDayOrWeek=function(r){return t.isSameDay(r)||t.isSameWeek(r)},t.getHighLightedClass=function(){var r=t.props,o=r.day,a=r.highlightDates;if(!a)return!1;var i=Ye(o,"MM.dd.yyyy");return a.get(i)},t.getHolidaysClass=function(){var r,o=t.props,a=o.day,i=o.holidays;if(!i)return[void 0];var s=Ye(a,"MM.dd.yyyy");return i.has(s)?[(r=i.get(s))===null||r===void 0?void 0:r.className]:[void 0]},t.isInRange=function(){var r=t.props,o=r.day,a=r.startDate,i=r.endDate;return!a||!i?!1:Rr(o,a,i)},t.isInSelectingRange=function(){var r,o=t.props,a=o.day,i=o.selectsStart,s=o.selectsEnd,c=o.selectsRange,l=o.selectsDisabledDaysInRange,u=o.startDate,d=o.swapRange,f=o.endDate,m=(r=t.props.selectingDate)!==null&&r!==void 0?r:t.props.preSelection;if(!(i||s||c)||!m||!l&&t.isDisabled())return!1;if(i&&f&&(y.isBefore(m,f)||Nr(m,f)))return Rr(a,m,f);if(s&&u&&(y.isAfter(m,u)||Nr(m,u)))return Rr(a,u,m);if(c&&u&&!f){if(Nr(m,u)||y.isAfter(m,u))return Rr(a,u,m);if(d&&y.isBefore(m,u))return Rr(a,m,u)}return!1},t.isSelectingRangeStart=function(){var r;if(!t.isInSelectingRange())return!1;var o=t.props,a=o.day,i=o.startDate,s=o.selectsStart,c=o.swapRange,l=o.selectsRange,u=(r=t.props.selectingDate)!==null&&r!==void 0?r:t.props.preSelection;return s?Se(a,u):l&&c&&i&&u?Se(a,y.isBefore(u,i)?u:i):Se(a,i)},t.isSelectingRangeEnd=function(){var r;if(!t.isInSelectingRange())return!1;var o=t.props,a=o.day,i=o.endDate,s=o.selectsEnd,c=o.selectsRange,l=o.swapRange,u=o.startDate,d=(r=t.props.selectingDate)!==null&&r!==void 0?r:t.props.preSelection;return s?Se(a,d):c&&l&&u&&d?Se(a,y.isBefore(d,u)?u:d):c?Se(a,d):Se(a,i)},t.isRangeStart=function(){var r=t.props,o=r.day,a=r.startDate,i=r.endDate;return!a||!i?!1:Se(a,o)},t.isRangeEnd=function(){var r=t.props,o=r.day,a=r.startDate,i=r.endDate;return!a||!i?!1:Se(i,o)},t.isWeekend=function(){var r=y.getDay(t.props.day);return r===0||r===6},t.isAfterMonth=function(){return t.props.month!==void 0&&(t.props.month+1)%12===y.getMonth(t.props.day)},t.isBeforeMonth=function(){return t.props.month!==void 0&&(y.getMonth(t.props.day)+1)%12===t.props.month},t.isCurrentDay=function(){return t.isSameDay(Ae())},t.isSelected=function(){var r;return t.props.selectsMultiple?(r=t.props.selectedDates)===null||r===void 0?void 0:r.some(function(o){return t.isSameDayOrWeek(o)}):t.isSameDayOrWeek(t.props.selected)},t.getClassNames=function(r){var o=t.props.dayClassName?t.props.dayClassName(r):void 0;return Be("react-datepicker__day",o,"react-datepicker__day--"+Vg(t.props.day),{"react-datepicker__day--disabled":t.isDisabled(),"react-datepicker__day--excluded":t.isExcluded(),"react-datepicker__day--selected":t.isSelected(),"react-datepicker__day--keyboard-selected":t.isKeyboardSelected(),"react-datepicker__day--range-start":t.isRangeStart(),"react-datepicker__day--range-end":t.isRangeEnd(),"react-datepicker__day--in-range":t.isInRange(),"react-datepicker__day--in-selecting-range":t.isInSelectingRange(),"react-datepicker__day--selecting-range-start":t.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":t.isSelectingRangeEnd(),"react-datepicker__day--today":t.isCurrentDay(),"react-datepicker__day--weekend":t.isWeekend(),"react-datepicker__day--outside-month":t.isAfterMonth()||t.isBeforeMonth()},t.getHighLightedClass(),t.getHolidaysClass())},t.getAriaLabel=function(){var r=t.props,o=r.day,a=r.ariaLabelPrefixWhenEnabled,i=a===void 0?"Choose":a,s=r.ariaLabelPrefixWhenDisabled,c=s===void 0?"Not available":s,l=t.isDisabled()||t.isExcluded()?c:i;return"".concat(l," ").concat(Ye(o,"PPPP",t.props.locale))},t.getTitle=function(){var r=t.props,o=r.day,a=r.holidays,i=a===void 0?new Map:a,s=r.excludeDates,c=Ye(o,"MM.dd.yyyy"),l=[];return i.has(c)&&l.push.apply(l,i.get(c).holidayNames),t.isExcluded()&&l.push(s?.filter(function(u){return u instanceof Date?Se(u,o):Se(u?.date,o)}).map(function(u){if(!(u instanceof Date))return u?.message})),l.join(", ")},t.getTabIndex=function(){var r=t.props.selected,o=t.props.preSelection,a=!(t.props.showWeekPicker&&(t.props.showWeekNumber||!t.isStartOfWeek()))&&(t.isKeyboardSelected()||t.isSameDay(r)&&Se(o,r))?0:-1;return a},t.handleFocusDay=function(){var r;t.shouldFocusDay()&&((r=t.dayEl.current)===null||r===void 0||r.focus({preventScroll:!0}))},t.renderDayContents=function(){return t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()||t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()?null:t.props.renderDayContents?t.props.renderDayContents(y.getDate(t.props.day),t.props.day):y.getDate(t.props.day)},t.render=function(){return w.createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.props.usePointerEvent?void 0:t.handleMouseEnter,onPointerEnter:t.props.usePointerEvent?t.handleMouseEnter:void 0,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"gridcell",title:t.getTitle(),"aria-disabled":t.isDisabled(),"aria-current":t.isCurrentDay()?"date":void 0,"aria-selected":t.isSelected()||t.isInRange()},t.renderDayContents(),t.getTitle()!==""&&w.createElement("span",{className:"overlay"},t.getTitle()))},t}return n.prototype.componentDidMount=function(){this.handleFocusDay()},n.prototype.componentDidUpdate=function(){this.handleFocusDay()},n.prototype.shouldFocusDay=function(){var t=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(t=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(t=!1),this.isDayActiveElement()&&(t=!0),this.isDuplicateDay()&&(t=!1)),t},n.prototype.isDayActiveElement=function(){var t,r,o;return((r=(t=this.props.containerRef)===null||t===void 0?void 0:t.current)===null||r===void 0?void 0:r.contains(document.activeElement))&&((o=document.activeElement)===null||o===void 0?void 0:o.classList.contains("react-datepicker__day"))},n.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},n})(w.Component),iv=(function(e){ct(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.weekNumberEl=w.createRef(),t.handleClick=function(r){t.props.onClick&&t.props.onClick(r)},t.handleOnKeyDown=function(r){var o,a,i=r.key;i===ne.Space&&(r.preventDefault(),r.key=ne.Enter),(a=(o=t.props).handleOnKeyDown)===null||a===void 0||a.call(o,r)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Se(t.props.date,t.props.selected)&&Se(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||Se(t.props.date,t.props.selected)&&Se(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(r){var o=!1;t.getTabIndex()===0&&!r?.isInputFocused&&Se(t.props.date,t.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(o=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(o=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(o=!0)),o&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return Object.defineProperty(n,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),n.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},n.prototype.componentDidUpdate=function(t){this.handleFocusWeekNumber(t)},n.prototype.render=function(){var t=this.props,r=t.weekNumber,o=t.isWeekDisabled,a=t.ariaLabelPrefix,i=a===void 0?n.defaultProps.ariaLabelPrefix:a,s=t.onClick,c={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!s&&!o,"react-datepicker__week-number--selected":!!s&&Se(this.props.date,this.props.selected)};return w.createElement("div",{ref:this.weekNumberEl,className:Be(c),"aria-label":"".concat(i," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex(),role:"gridcell"},r)},n})(w.Component),sv=(function(e){ct(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.isDisabled=function(r){return Rt(r,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.handleDayClick=function(r,o){t.props.onDayClick&&t.props.onDayClick(r,o)},t.handleDayMouseEnter=function(r){t.props.onDayMouseEnter&&t.props.onDayMouseEnter(r)},t.handleWeekClick=function(r,o,a){for(var i,s,c,l=new Date(r),u=0;u<7;u++){var d=new Date(r);d.setDate(d.getDate()+u);var f=!t.isDisabled(d);if(f){l=d;break}}typeof t.props.onWeekSelect=="function"&&t.props.onWeekSelect(l,o,a),t.props.showWeekPicker&&t.handleDayClick(l,a),((i=t.props.shouldCloseOnSelect)!==null&&i!==void 0?i:n.defaultProps.shouldCloseOnSelect)&&((c=(s=t.props).setOpen)===null||c===void 0||c.call(s,!1))},t.formatWeekNumber=function(r){return t.props.formatWeekNumber?t.props.formatWeekNumber(r):Bg(r)},t.isWeekDisabled=function(){for(var r=t.startOfWeek(),o=y.addDays(r,6),a=new Date(r);a<=o;){if(!t.isDisabled(a))return!1;a=y.addDays(a,1)}return!0},t.renderDays=function(){var r=t.startOfWeek(),o=[],a=t.formatWeekNumber(r);if(t.props.showWeekNumber){var i=t.props.onWeekSelect||t.props.showWeekPicker?t.handleWeekClick.bind(t,r,a):void 0;o.push(w.createElement(iv,xe({key:"W"},n.defaultProps,t.props,{weekNumber:a,isWeekDisabled:t.isWeekDisabled(),date:r,onClick:i})))}return o.concat([0,1,2,3,4,5,6].map(function(s){var c=y.addDays(r,s);return w.createElement(av,xe({},n.defaultProps,t.props,{ariaLabelPrefixWhenEnabled:t.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:t.props.disabledDayAriaLabelPrefix,key:c.valueOf(),day:c,onClick:t.handleDayClick.bind(t,c),onMouseEnter:t.handleDayMouseEnter.bind(t,c)}))}))},t.startOfWeek=function(){return Sr(t.props.day,t.props.locale,t.props.calendarStartDay)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Se(t.startOfWeek(),t.props.selected)&&Se(t.startOfWeek(),t.props.preSelection)},t}return Object.defineProperty(n,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),n.prototype.render=function(){var t={"react-datepicker__week":!0,"react-datepicker__week--selected":Se(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()},r=this.props.weekClassName?this.props.weekClassName(this.startOfWeek()):void 0;return w.createElement("div",{className:Be(t,r),role:"row"},this.renderDays())},n})(w.Component),Hn,cv=6,un={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},ji=(Hn={},Hn[un.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},Hn[un.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},Hn[un.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},Hn),ua=1;function Kl(e,n){return e?un.FOUR_COLUMNS:n?un.TWO_COLUMNS:un.THREE_COLUMNS}var lv=(function(e){ct(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.MONTH_REFS=er([],Array(12),!0).map(function(){return w.createRef()}),t.QUARTER_REFS=er([],Array(4),!0).map(function(){return w.createRef()}),t.isDisabled=function(r){return Rt(r,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(r){return Ri(r,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.handleDayClick=function(r,o){var a,i;(i=(a=t.props).onDayClick)===null||i===void 0||i.call(a,r,o,t.props.orderInDisplay)},t.handleDayMouseEnter=function(r){var o,a;(a=(o=t.props).onDayMouseEnter)===null||a===void 0||a.call(o,r)},t.handleMouseLeave=function(){var r,o;(o=(r=t.props).onMouseLeave)===null||o===void 0||o.call(r)},t.isRangeStartMonth=function(r){var o=t.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:pt(y.setMonth(a,r),i)},t.isRangeStartQuarter=function(r){var o=t.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:oa(y.setQuarter(a,r),i)},t.isRangeEndMonth=function(r){var o=t.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:pt(y.setMonth(a,r),s)},t.isRangeEndQuarter=function(r){var o=t.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:oa(y.setQuarter(a,r),s)},t.isInSelectingRangeMonth=function(r){var o,a=t.props,i=a.day,s=a.selectsStart,c=a.selectsEnd,l=a.selectsRange,u=a.startDate,d=a.endDate,f=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return!(s||c||l)||!f?!1:s&&d?aa(f,d,r,i):c&&u||l&&u&&!d?aa(u,f,r,i):!1},t.isSelectingMonthRangeStart=function(r){var o;if(!t.isInSelectingRangeMonth(r))return!1;var a=t.props,i=a.day,s=a.startDate,c=a.selectsStart,l=y.setMonth(i,r),u=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return c?pt(l,u):pt(l,s)},t.isSelectingMonthRangeEnd=function(r){var o;if(!t.isInSelectingRangeMonth(r))return!1;var a=t.props,i=a.day,s=a.endDate,c=a.selectsEnd,l=a.selectsRange,u=y.setMonth(i,r),d=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return c||l?pt(u,d):pt(u,s)},t.isInSelectingRangeQuarter=function(r){var o,a=t.props,i=a.day,s=a.selectsStart,c=a.selectsEnd,l=a.selectsRange,u=a.startDate,d=a.endDate,f=(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection;return!(s||c||l)||!f?!1:s&&d?la(f,d,r,i):c&&u||l&&u&&!d?la(u,f,r,i):!1},t.isWeekInMonth=function(r){var o=t.props.day,a=y.addDays(r,6);return pt(r,o)||pt(a,o)},t.isCurrentMonth=function(r,o){return y.getYear(r)===y.getYear(Ae())&&o===y.getMonth(Ae())},t.isCurrentQuarter=function(r,o){return y.getYear(r)===y.getYear(Ae())&&o===y.getQuarter(Ae())},t.isSelectedMonth=function(r,o,a){return y.getMonth(a)===o&&y.getYear(r)===y.getYear(a)},t.isSelectMonthInList=function(r,o,a){return a.some(function(i){return t.isSelectedMonth(r,o,i)})},t.isSelectedQuarter=function(r,o,a){return y.getQuarter(r)===o&&y.getYear(r)===y.getYear(a)},t.isMonthSelected=function(){var r=t.props,o=r.day,a=r.selected,i=r.selectedDates,s=r.selectsMultiple,c=y.getMonth(o);return s?i?.some(function(l){return t.isSelectedMonth(o,c,l)}):!!a&&t.isSelectedMonth(o,c,a)},t.renderWeeks=function(){for(var r=[],o=t.props.fixedHeight,a=0,i=!1,s=Sr(ur(t.props.day),t.props.locale,t.props.calendarStartDay),c=function(g){return t.props.showWeekPicker?Sr(g,t.props.locale,t.props.calendarStartDay):t.props.preSelection},l=function(g){return t.props.showWeekPicker?Sr(g,t.props.locale,t.props.calendarStartDay):t.props.selected},u=t.props.selected?l(t.props.selected):void 0,d=t.props.preSelection?c(t.props.preSelection):void 0;r.push(w.createElement(sv,xe({},t.props,{ariaLabelPrefix:t.props.weekAriaLabelPrefix,key:a,day:s,month:y.getMonth(t.props.day),onDayClick:t.handleDayClick,onDayMouseEnter:t.handleDayMouseEnter,selected:u,preSelection:d,showWeekNumber:t.props.showWeekNumbers}))),!i;){a++,s=y.addWeeks(s,1);var f=o&&a>=cv,m=!o&&!t.isWeekInMonth(s);if(f||m)if(t.props.peekNextMonth)i=!0;else break}return r},t.onMonthClick=function(r,o){var a=t.isMonthDisabledForLabelDate(o),i=a.isDisabled,s=a.labelDate;i||t.handleDayClick(ur(s),r)},t.onMonthMouseEnter=function(r){var o=t.isMonthDisabledForLabelDate(r),a=o.isDisabled,i=o.labelDate;a||t.handleDayMouseEnter(ur(i))},t.handleMonthNavigation=function(r,o){var a,i,s,c;(i=(a=t.props).setPreSelection)===null||i===void 0||i.call(a,o),(c=(s=t.MONTH_REFS[r])===null||s===void 0?void 0:s.current)===null||c===void 0||c.focus()},t.handleKeyboardNavigation=function(r,o,a){var i,s=t.props,c=s.selected,l=s.preSelection,u=s.setPreSelection,d=s.minDate,f=s.maxDate,m=s.showFourColumnMonthYearPicker,g=s.showTwoColumnMonthYearPicker;if(l){var p=Kl(m,g),b=t.getVerticalOffset(p),x=(i=ji[p])===null||i===void 0?void 0:i.grid,S=function(I,W,U){var $,Q,v=W,M=U;switch(I){case ne.ArrowRight:v=y.addMonths(W,ua),M=U===11?0:U+ua;break;case ne.ArrowLeft:v=y.subMonths(W,ua),M=U===0?11:U-ua;break;case ne.ArrowUp:v=y.subMonths(W,b),M=!(($=x?.[0])===null||$===void 0)&&$.includes(U)?U+12-b:U-b;break;case ne.ArrowDown:v=y.addMonths(W,b),M=!((Q=x?.[x.length-1])===null||Q===void 0)&&Q.includes(U)?U-12+b:U+b;break}return{newCalculatedDate:v,newCalculatedMonth:M}},T=function(I,W,U){for(var $=40,Q=I,v=!1,M=0,P=S(Q,W,U),H=P.newCalculatedDate,Y=P.newCalculatedMonth;!v;){if(M>=$){H=W,Y=U;break}if(d&&H<d){Q=ne.ArrowRight;var ee=S(Q,H,Y);H=ee.newCalculatedDate,Y=ee.newCalculatedMonth}if(f&&H>f){Q=ne.ArrowLeft;var ee=S(Q,H,Y);H=ee.newCalculatedDate,Y=ee.newCalculatedMonth}if(qg(H,t.props)){var ee=S(Q,H,Y);H=ee.newCalculatedDate,Y=ee.newCalculatedMonth}else v=!0;M++}return{newCalculatedDate:H,newCalculatedMonth:Y}};if(o===ne.Enter){t.isMonthDisabled(a)||(t.onMonthClick(r,a),u?.(c));return}var D=T(o,l,a),k=D.newCalculatedDate,O=D.newCalculatedMonth;switch(o){case ne.ArrowRight:case ne.ArrowLeft:case ne.ArrowUp:case ne.ArrowDown:t.handleMonthNavigation(O,k);break}}},t.getVerticalOffset=function(r){var o,a;return(a=(o=ji[r])===null||o===void 0?void 0:o.verticalNavigationOffset)!==null&&a!==void 0?a:0},t.onMonthKeyDown=function(r,o){var a=t.props,i=a.disabledKeyboardNavigation,s=a.handleOnMonthKeyDown,c=r.key;c!==ne.Tab&&r.preventDefault(),i||t.handleKeyboardNavigation(r,c,o),s&&s(r)},t.onQuarterClick=function(r,o){var a=y.setQuarter(t.props.day,o);ia(a,t.props)||t.handleDayClick(Ml(a),r)},t.onQuarterMouseEnter=function(r){var o=y.setQuarter(t.props.day,r);ia(o,t.props)||t.handleDayMouseEnter(Ml(o))},t.handleQuarterNavigation=function(r,o){var a,i,s,c;t.isDisabled(o)||t.isExcluded(o)||((i=(a=t.props).setPreSelection)===null||i===void 0||i.call(a,o),(c=(s=t.QUARTER_REFS[r-1])===null||s===void 0?void 0:s.current)===null||c===void 0||c.focus())},t.onQuarterKeyDown=function(r,o){var a,i,s=r.key;if(!t.props.disabledKeyboardNavigation)switch(s){case ne.Enter:t.onQuarterClick(r,o),(i=(a=t.props).setPreSelection)===null||i===void 0||i.call(a,t.props.selected);break;case ne.ArrowRight:if(!t.props.preSelection)break;t.handleQuarterNavigation(o===4?1:o+1,y.addQuarters(t.props.preSelection,1));break;case ne.ArrowLeft:if(!t.props.preSelection)break;t.handleQuarterNavigation(o===1?4:o-1,y.subQuarters(t.props.preSelection,1));break}},t.isMonthDisabledForLabelDate=function(r){var o,a=t.props,i=a.day,s=a.minDate,c=a.maxDate,l=a.excludeDates,u=a.includeDates,d=y.setMonth(i,r);return{isDisabled:(o=(s||c||l||u)&&Nl(d,t.props))!==null&&o!==void 0?o:!1,labelDate:d}},t.isMonthDisabled=function(r){var o=t.isMonthDisabledForLabelDate(r).isDisabled;return o},t.getMonthClassNames=function(r){var o=t.props,a=o.day,i=o.startDate,s=o.endDate,c=o.preSelection,l=o.monthClassName,u=l?l(y.setMonth(a,r)):void 0,d=t.getSelection();return Be("react-datepicker__month-text","react-datepicker__month-".concat(r),u,{"react-datepicker__month-text--disabled":t.isMonthDisabled(r),"react-datepicker__month-text--selected":d?t.isSelectMonthInList(a,r,d):void 0,"react-datepicker__month-text--keyboard-selected":!t.props.disabledKeyboardNavigation&&c&&t.isSelectedMonth(a,r,c)&&!t.isMonthSelected()&&!t.isMonthDisabled(r),"react-datepicker__month-text--in-selecting-range":t.isInSelectingRangeMonth(r),"react-datepicker__month-text--in-range":i&&s?aa(i,s,r,a):void 0,"react-datepicker__month-text--range-start":t.isRangeStartMonth(r),"react-datepicker__month-text--range-end":t.isRangeEndMonth(r),"react-datepicker__month-text--selecting-range-start":t.isSelectingMonthRangeStart(r),"react-datepicker__month-text--selecting-range-end":t.isSelectingMonthRangeEnd(r),"react-datepicker__month-text--today":t.isCurrentMonth(a,r)})},t.getTabIndex=function(r){if(t.props.preSelection==null)return"-1";var o=y.getMonth(t.props.preSelection),a=t.isMonthDisabledForLabelDate(o).isDisabled,i=r===o&&!(a||t.props.disabledKeyboardNavigation)?"0":"-1";return i},t.getQuarterTabIndex=function(r){if(t.props.preSelection==null)return"-1";var o=y.getQuarter(t.props.preSelection),a=ia(t.props.day,t.props),i=r===o&&!(a||t.props.disabledKeyboardNavigation)?"0":"-1";return i},t.getAriaLabel=function(r){var o=t.props,a=o.chooseDayAriaLabelPrefix,i=a===void 0?"Choose":a,s=o.disabledDayAriaLabelPrefix,c=s===void 0?"Not available":s,l=o.day,u=o.locale,d=y.setMonth(l,r),f=t.isDisabled(d)||t.isExcluded(d)?c:i;return"".concat(f," ").concat(Ye(d,"MMMM yyyy",u))},t.getQuarterClassNames=function(r){var o=t.props,a=o.day,i=o.startDate,s=o.endDate,c=o.selected,l=o.minDate,u=o.maxDate,d=o.excludeDates,f=o.includeDates,m=o.filterDate,g=o.preSelection,p=o.disabledKeyboardNavigation,b=(l||u||d||f||m)&&ia(y.setQuarter(a,r),t.props);return Be("react-datepicker__quarter-text","react-datepicker__quarter-".concat(r),{"react-datepicker__quarter-text--disabled":b,"react-datepicker__quarter-text--selected":c?t.isSelectedQuarter(a,r,c):void 0,"react-datepicker__quarter-text--keyboard-selected":!p&&g&&t.isSelectedQuarter(a,r,g)&&!b,"react-datepicker__quarter-text--in-selecting-range":t.isInSelectingRangeQuarter(r),"react-datepicker__quarter-text--in-range":i&&s?la(i,s,r,a):void 0,"react-datepicker__quarter-text--range-start":t.isRangeStartQuarter(r),"react-datepicker__quarter-text--range-end":t.isRangeEndQuarter(r),"react-datepicker__quarter-text--today":t.isCurrentQuarter(a,r)})},t.getMonthContent=function(r){var o=t.props,a=o.showFullMonthYearPicker,i=o.renderMonthContent,s=o.locale,c=o.day,l=Il(r,s),u=Ni(r,s);return i?i(r,l,u,c):a?u:l},t.getQuarterContent=function(r){var o,a=t.props,i=a.renderQuarterContent,s=a.locale,c=Zg(r,s);return(o=i?.(r,c))!==null&&o!==void 0?o:c},t.renderMonths=function(){var r,o=t.props,a=o.showTwoColumnMonthYearPicker,i=o.showFourColumnMonthYearPicker,s=o.day,c=o.selected,l=(r=ji[Kl(i,a)])===null||r===void 0?void 0:r.grid;return l?.map(function(u,d){return w.createElement("div",{className:"react-datepicker__month-wrapper",key:d},u.map(function(f,m){return w.createElement("div",{ref:t.MONTH_REFS[f],key:m,onClick:function(g){t.onMonthClick(g,f)},onKeyDown:function(g){ql(g)&&(g.preventDefault(),g.key=ne.Enter),t.onMonthKeyDown(g,f)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onMonthMouseEnter(f)},onPointerEnter:t.props.usePointerEvent?function(){return t.onMonthMouseEnter(f)}:void 0,tabIndex:Number(t.getTabIndex(f)),className:t.getMonthClassNames(f),"aria-disabled":t.isMonthDisabled(f),role:"option","aria-label":t.getAriaLabel(f),"aria-current":t.isCurrentMonth(s,f)?"date":void 0,"aria-selected":c?t.isSelectedMonth(s,f,c):void 0},t.getMonthContent(f))}))})},t.renderQuarters=function(){var r=t.props,o=r.day,a=r.selected,i=[1,2,3,4];return w.createElement("div",{className:"react-datepicker__quarter-wrapper"},i.map(function(s,c){return w.createElement("div",{key:c,ref:t.QUARTER_REFS[c],role:"option",onClick:function(l){t.onQuarterClick(l,s)},onKeyDown:function(l){t.onQuarterKeyDown(l,s)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onQuarterMouseEnter(s)},onPointerEnter:t.props.usePointerEvent?function(){return t.onQuarterMouseEnter(s)}:void 0,className:t.getQuarterClassNames(s),"aria-selected":a?t.isSelectedQuarter(o,s,a):void 0,tabIndex:Number(t.getQuarterTabIndex(s)),"aria-current":t.isCurrentQuarter(o,s)?"date":void 0},t.getQuarterContent(s))}))},t.getClassNames=function(){var r=t.props,o=r.selectingDate,a=r.selectsStart,i=r.selectsEnd,s=r.showMonthYearPicker,c=r.showQuarterYearPicker,l=r.showWeekPicker;return Be("react-datepicker__month",{"react-datepicker__month--selecting-range":o&&(a||i)},{"react-datepicker__monthPicker":s},{"react-datepicker__quarterPicker":c},{"react-datepicker__weekPicker":l})},t}return n.prototype.getSelection=function(){var t=this.props,r=t.selected,o=t.selectedDates,a=t.selectsMultiple;if(a)return o;if(r)return[r]},n.prototype.render=function(){var t=this.props,r=t.showMonthYearPicker,o=t.showQuarterYearPicker,a=t.day,i=t.ariaLabelPrefix,s=i===void 0?"Month ":i,c=s?s.trim()+" ":"",l=r||o;return l?w.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(c).concat(Ye(a,"MMMM, yyyy",this.props.locale)),role:"listbox"},r?this.renderMonths():this.renderQuarters()):w.createElement("div",{role:"table"},this.props.dayNamesHeader&&w.createElement("div",{role:"rowgroup"},this.props.dayNamesHeader),w.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(c).concat(Ye(a,"MMMM, yyyy",this.props.locale)),role:"rowgroup"},this.renderWeeks()))},n})(w.Component),uv=(function(e){ct(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.monthOptionButtonsRef={},t.isSelectedMonth=function(r){return t.props.month===r},t.handleOptionKeyDown=function(r,o){var a;switch(o.key){case"Enter":o.preventDefault(),t.onChange(r);break;case"Escape":o.preventDefault(),t.props.onCancel();break;case"ArrowUp":case"ArrowDown":{o.preventDefault();var i=(r+(o.key==="ArrowUp"?-1:1)+t.props.monthNames.length)%t.props.monthNames.length;(a=t.monthOptionButtonsRef[i])===null||a===void 0||a.focus();break}}},t.renderOptions=function(){return t.monthOptionButtonsRef={},t.props.monthNames.map(function(r,o){return w.createElement("div",{ref:function(a){t.monthOptionButtonsRef[o]=a,t.isSelectedMonth(o)&&a?.focus()},role:"button",tabIndex:0,className:t.isSelectedMonth(o)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:r,onClick:t.onChange.bind(t,o),onKeyDown:t.handleOptionKeyDown.bind(t,o),"aria-selected":t.isSelectedMonth(o)?"true":void 0},t.isSelectedMonth(o)?w.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",r)})},t.onChange=function(r){return t.props.onChange(r)},t.handleClickOutside=function(){return t.props.onCancel()},t}return n.prototype.render=function(){return w.createElement(ta,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},n})(w.Component),dv=(function(e){ct(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(r){return r.map(function(o,a){return w.createElement("option",{key:o,value:a},o)})},t.renderSelectMode=function(r){return w.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(o){return t.onChange(parseInt(o.target.value))}},t.renderSelectOptions(r))},t.renderReadView=function(r,o){return w.createElement("button",{key:"read",type:"button",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},w.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),w.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},o[t.props.month]))},t.renderDropdown=function(r){return w.createElement(uv,xe({key:"dropdown"},t.props,{monthNames:r,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(r){var o=t.state.dropdownVisible,a=[t.renderReadView(!o,r)];return o&&a.unshift(t.renderDropdown(r)),a},t.onChange=function(r){t.toggleDropdown(),r!==t.props.month&&t.props.onChange(r)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return n.prototype.render=function(){var t=this,r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return Il(a,t.props.locale)}:function(a){return Ni(a,t.props.locale)}),o;switch(this.props.dropdownMode){case"scroll":o=this.renderScrollMode(r);break;case"select":o=this.renderSelectMode(r);break}return w.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},o)},n})(w.Component);function fv(e,n){for(var t=[],r=ur(e),o=ur(n);!y.isAfter(r,o);)t.push(Ae(r)),r=y.addMonths(r,1);return t}var pv=(function(e){ct(n,e);function n(t){var r=e.call(this,t)||this;return r.renderOptions=function(){return r.state.monthYearsList.map(function(o){var a=y.getTime(o),i=tr(r.props.date,o)&&pt(r.props.date,o);return w.createElement("div",{className:i?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:r.onChange.bind(r,a),"aria-selected":i?"true":void 0},i?w.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Ye(o,r.props.dateFormat,r.props.locale))})},r.onChange=function(o){return r.props.onChange(o)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:fv(r.props.minDate,r.props.maxDate)},r}return n.prototype.render=function(){var t=Be({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return w.createElement(ta,{className:t,onClickOutside:this.handleClickOutside},this.renderOptions())},n})(w.Component),hv=(function(e){ct(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var r=ur(t.props.minDate),o=ur(t.props.maxDate),a=[];!y.isAfter(r,o);){var i=y.getTime(r);a.push(w.createElement("option",{key:i,value:i},Ye(r,t.props.dateFormat,t.props.locale))),r=y.addMonths(r,1)}return a},t.onSelectChange=function(r){t.onChange(parseInt(r.target.value))},t.renderSelectMode=function(){return w.createElement("select",{value:y.getTime(ur(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(r){var o=Ye(t.props.date,t.props.dateFormat,t.props.locale);return w.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},w.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),w.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},o))},t.renderDropdown=function(){return w.createElement(pv,xe({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var r=t.state.dropdownVisible,o=[t.renderReadView(!r)];return r&&o.unshift(t.renderDropdown()),o},t.onChange=function(r){t.toggleDropdown();var o=Ae(r);tr(t.props.date,o)&&pt(t.props.date,o)||t.props.onChange(o)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return n.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return w.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},t)},n})(w.Component),mv=(function(e){ct(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={height:null},t.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var r,o,a;t.list&&(t.list.scrollTop=(a=t.centerLi&&n.calcCenterPosition(t.props.monthRef?t.props.monthRef.clientHeight-((o=(r=t.header)===null||r===void 0?void 0:r.clientHeight)!==null&&o!==void 0?o:0):t.list.clientHeight,t.centerLi))!==null&&a!==void 0?a:0)})},t.handleClick=function(r){var o,a;(t.props.minTime||t.props.maxTime)&&jl(r,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&$l(r,t.props)||(a=(o=t.props).onChange)===null||a===void 0||a.call(o,r)},t.isSelectedTime=function(r){return t.props.selected&&nv(t.props.selected,r)},t.isDisabledTime=function(r){return(t.props.minTime||t.props.maxTime)&&jl(r,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&$l(r,t.props)},t.liClasses=function(r){var o,a=["react-datepicker__time-list-item",t.props.timeClassName?t.props.timeClassName(r):void 0];return t.isSelectedTime(r)&&a.push("react-datepicker__time-list-item--selected"),t.isDisabledTime(r)&&a.push("react-datepicker__time-list-item--disabled"),t.props.injectTimes&&(y.getHours(r)*3600+y.getMinutes(r)*60+y.getSeconds(r))%(((o=t.props.intervals)!==null&&o!==void 0?o:n.defaultProps.intervals)*60)!==0&&a.push("react-datepicker__time-list-item--injected"),a.join(" ")},t.handleOnKeyDown=function(r,o){var a,i;r.key===ne.Space&&(r.preventDefault(),r.key=ne.Enter),(r.key===ne.ArrowUp||r.key===ne.ArrowLeft)&&r.target instanceof HTMLElement&&r.target.previousSibling&&(r.preventDefault(),r.target.previousSibling instanceof HTMLElement&&r.target.previousSibling.focus()),(r.key===ne.ArrowDown||r.key===ne.ArrowRight)&&r.target instanceof HTMLElement&&r.target.nextSibling&&(r.preventDefault(),r.target.nextSibling instanceof HTMLElement&&r.target.nextSibling.focus()),r.key===ne.Enter&&t.handleClick(o),(i=(a=t.props).handleOnKeyDown)===null||i===void 0||i.call(a,r)},t.renderTimes=function(){for(var r,o=[],a=typeof t.props.format=="string"?t.props.format:"p",i=(r=t.props.intervals)!==null&&r!==void 0?r:n.defaultProps.intervals,s=t.props.selected||t.props.openToDate||Ae(),c=na(s),l=t.props.injectTimes&&t.props.injectTimes.sort(function(b,x){return b.getTime()-x.getTime()}),u=60*rv(s),d=u/i,f=0;f<d;f++){var m=y.addMinutes(c,f*i);if(o.push(m),l){var g=tv(c,m,f,i,l);o=o.concat(g)}}var p=o.reduce(function(b,x){return x.getTime()<=s.getTime()?x:b},o[0]);return o.map(function(b){return w.createElement("li",{key:b.valueOf(),onClick:t.handleClick.bind(t,b),className:t.liClasses(b),ref:function(x){b===p&&(t.centerLi=x)},onKeyDown:function(x){t.handleOnKeyDown(x,b)},tabIndex:b===p?0:-1,role:"option","aria-selected":t.isSelectedTime(b)?"true":void 0,"aria-disabled":t.isDisabledTime(b)?"true":void 0},Ye(b,a,t.props.locale))})},t.renderTimeCaption=function(){return t.props.showTimeCaption===!1?w.createElement(w.Fragment,null):w.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(t.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(r){t.header=r}},w.createElement("div",{className:"react-datepicker-time__header"},t.props.timeCaption))},t}return Object.defineProperty(n,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),n.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeightChanges()},n.prototype.componentWillUnmount=function(){var t;(t=this.resizeObserver)===null||t===void 0||t.disconnect()},n.prototype.observeDatePickerHeightChanges=function(){var t=this,r=this.props.monthRef;this.updateContainerHeight(),r&&(this.resizeObserver=new ResizeObserver(function(){t.updateContainerHeight()}),this.resizeObserver.observe(r))},n.prototype.updateContainerHeight=function(){this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},n.prototype.render=function(){var t=this,r,o=this.state.height;return w.createElement("div",{className:"react-datepicker__time-container ".concat(((r=this.props.todayButton)!==null&&r!==void 0?r:n.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),w.createElement("div",{className:"react-datepicker__time"},w.createElement("div",{className:"react-datepicker__time-box"},w.createElement("ul",{className:"react-datepicker__time-list",ref:function(a){t.list=a},style:o?{height:o}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},n.calcCenterPosition=function(t,r){return r.offsetTop-(t/2-r.clientHeight/2)},n})(w.Component),Gl=3,gv=(function(e){ct(n,e);function n(t){var r=e.call(this,t)||this;return r.YEAR_REFS=er([],Array(r.props.yearItemNumber),!0).map(function(){return w.createRef()}),r.isDisabled=function(o){return Rt(o,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(o){return Ri(o,{excludeDates:r.props.excludeDates})},r.selectingDate=function(){var o;return(o=r.props.selectingDate)!==null&&o!==void 0?o:r.props.preSelection},r.updateFocusOnPaginate=function(o){var a=function(){var i,s;(s=(i=r.YEAR_REFS[o])===null||i===void 0?void 0:i.current)===null||s===void 0||s.focus()};window.requestAnimationFrame(a)},r.handleYearClick=function(o,a){r.props.onDayClick&&r.props.onDayClick(o,a)},r.handleYearNavigation=function(o,a){var i,s,c,l,u=r.props,d=u.date,f=u.yearItemNumber;if(!(d===void 0||f===void 0)){var m=dr(d,f).startPeriod;r.isDisabled(a)||r.isExcluded(a)||((s=(i=r.props).setPreSelection)===null||s===void 0||s.call(i,a),o-m<0?r.updateFocusOnPaginate(f-(m-o)):o-m>=f?r.updateFocusOnPaginate(Math.abs(f-(o-m))):(l=(c=r.YEAR_REFS[o-m])===null||c===void 0?void 0:c.current)===null||l===void 0||l.focus())}},r.isSameDay=function(o,a){return Se(o,a)},r.isCurrentYear=function(o){return o===y.getYear(Ae())},r.isRangeStart=function(o){return r.props.startDate&&r.props.endDate&&tr(y.setYear(Ae(),o),r.props.startDate)},r.isRangeEnd=function(o){return r.props.startDate&&r.props.endDate&&tr(y.setYear(Ae(),o),r.props.endDate)},r.isInRange=function(o){return sa(o,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(o){var a=r.props,i=a.selectsStart,s=a.selectsEnd,c=a.selectsRange,l=a.startDate,u=a.endDate;return!(i||s||c)||!r.selectingDate()?!1:i&&u?sa(o,r.selectingDate(),u):s&&l||c&&l&&!u?sa(o,l,r.selectingDate()):!1},r.isSelectingRangeStart=function(o){var a;if(!r.isInSelectingRange(o))return!1;var i=r.props,s=i.startDate,c=i.selectsStart,l=y.setYear(Ae(),o);return c?tr(l,(a=r.selectingDate())!==null&&a!==void 0?a:null):tr(l,s??null)},r.isSelectingRangeEnd=function(o){var a;if(!r.isInSelectingRange(o))return!1;var i=r.props,s=i.endDate,c=i.selectsEnd,l=i.selectsRange,u=y.setYear(Ae(),o);return c||l?tr(u,(a=r.selectingDate())!==null&&a!==void 0?a:null):tr(u,s??null)},r.isKeyboardSelected=function(o){if(!(r.props.disabledKeyboardNavigation||r.props.date===void 0||r.props.preSelection==null)){var a=r.props,i=a.minDate,s=a.maxDate,c=a.excludeDates,l=a.includeDates,u=a.filterDate,d=a.selected,f=Fn(y.setYear(r.props.date,o)),m=(i||s||c||l||u)&&ca(o,r.props),g=!!d&&Se(f,Fn(d)),p=Se(f,Fn(r.props.preSelection));return!r.props.inline&&!g&&p&&!m}},r.isSelectedYear=function(o){var a=r.props,i=a.selectsMultiple,s=a.selected,c=a.selectedDates;return i?c?.some(function(l){return o===y.getYear(l)}):!!s&&o===y.getYear(s)},r.onYearClick=function(o,a){var i=r.props.date;i!==void 0&&r.handleYearClick(Fn(y.setYear(i,a)),o)},r.onYearKeyDown=function(o,a){var i,s,c=o.key,l=r.props,u=l.date,d=l.yearItemNumber,f=l.handleOnKeyDown;if(c!==ne.Tab&&o.preventDefault(),!r.props.disabledKeyboardNavigation)switch(c){case ne.Enter:if(r.props.selected==null)break;r.onYearClick(o,a),(s=(i=r.props).setPreSelection)===null||s===void 0||s.call(i,r.props.selected);break;case ne.ArrowRight:if(r.props.preSelection==null)break;r.handleYearNavigation(a+1,y.addYears(r.props.preSelection,1));break;case ne.ArrowLeft:if(r.props.preSelection==null)break;r.handleYearNavigation(a-1,y.subYears(r.props.preSelection,1));break;case ne.ArrowUp:{if(u===void 0||d===void 0||r.props.preSelection==null)break;var m=dr(u,d).startPeriod,g=Gl,p=a-g;if(p<m){var b=d%g;a>=m&&a<m+b?g=b:g+=b,p=a-g}r.handleYearNavigation(p,y.subYears(r.props.preSelection,g));break}case ne.ArrowDown:{if(u===void 0||d===void 0||r.props.preSelection==null)break;var x=dr(u,d).endPeriod,g=Gl,p=a+g;if(p>x){var b=d%g;a<=x&&a>x-b?g=b:g+=b,p=a+g}r.handleYearNavigation(p,y.addYears(r.props.preSelection,g));break}}f&&f(o)},r.getYearClassNames=function(o){var a=r.props,i=a.date,s=a.minDate,c=a.maxDate,l=a.excludeDates,u=a.includeDates,d=a.filterDate,f=a.yearClassName;return Be("react-datepicker__year-text","react-datepicker__year-".concat(o),i?f?.(y.setYear(i,o)):void 0,{"react-datepicker__year-text--selected":r.isSelectedYear(o),"react-datepicker__year-text--disabled":(s||c||l||u||d)&&ca(o,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(o),"react-datepicker__year-text--range-start":r.isRangeStart(o),"react-datepicker__year-text--range-end":r.isRangeEnd(o),"react-datepicker__year-text--in-range":r.isInRange(o),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(o),"react-datepicker__year-text--today":r.isCurrentYear(o)})},r.getYearTabIndex=function(o){if(r.props.disabledKeyboardNavigation||r.props.preSelection==null)return"-1";var a=y.getYear(r.props.preSelection),i=ca(o,r.props);return o===a&&!i?"0":"-1"},r.getYearContent=function(o){return r.props.renderYearContent?r.props.renderYearContent(o):o},r}return n.prototype.render=function(){var t=this,r=[],o=this.props,a=o.date,i=o.yearItemNumber,s=o.onYearMouseEnter,c=o.onYearMouseLeave;if(a===void 0)return null;for(var l=dr(a,i),u=l.startPeriod,d=l.endPeriod,f=function(p){r.push(w.createElement("div",{ref:m.YEAR_REFS[p-u],onClick:function(b){t.onYearClick(b,p)},onKeyDown:function(b){ql(b)&&(b.preventDefault(),b.key=ne.Enter),t.onYearKeyDown(b,p)},tabIndex:Number(m.getYearTabIndex(p)),className:m.getYearClassNames(p),onMouseEnter:m.props.usePointerEvent?void 0:function(b){return s(b,p)},onPointerEnter:m.props.usePointerEvent?function(b){return s(b,p)}:void 0,onMouseLeave:m.props.usePointerEvent?void 0:function(b){return c(b,p)},onPointerLeave:m.props.usePointerEvent?function(b){return c(b,p)}:void 0,key:p,"aria-current":m.isCurrentYear(p)?"date":void 0},m.getYearContent(p)))},m=this,g=u;g<=d;g++)f(g);return w.createElement("div",{className:"react-datepicker__year"},w.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},r))},n})(w.Component);function vv(e,n,t,r){for(var o=[],a=0;a<2*n+1;a++){var i=e+n-a,s=!0;t&&(s=y.getYear(t)<=i),r&&s&&(s=y.getYear(r)>=i),s&&o.push(i)}return o}var yv=(function(e){ct(n,e);function n(t){var r=e.call(this,t)||this;r.yearOptionButtonsRef={},r.handleOptionKeyDown=function(s,c){var l;switch(c.key){case"Enter":c.preventDefault(),r.onChange(s);break;case"Escape":c.preventDefault(),r.props.onCancel();break;case"ArrowUp":case"ArrowDown":{c.preventDefault();var u=s+(c.key==="ArrowUp"?1:-1);r.yearOptionButtonsRef[u]&&((l=r.yearOptionButtonsRef[u])===null||l===void 0||l.focus());break}}},r.renderOptions=function(){r.yearOptionButtonsRef={};var s=r.props.year,c=r.state.yearsList.map(function(d){return w.createElement("div",{ref:function(f){r.yearOptionButtonsRef[d]=f,d===s&&f?.focus()},role:"button",tabIndex:0,className:s===d?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:d,onClick:r.onChange.bind(r,d),onKeyDown:r.handleOptionKeyDown.bind(r,d),"aria-selected":s===d?"true":void 0},s===d?w.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",d)}),l=r.props.minDate?y.getYear(r.props.minDate):null,u=r.props.maxDate?y.getYear(r.props.maxDate):null;return(!u||!r.state.yearsList.find(function(d){return d===u}))&&c.unshift(w.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},w.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!l||!r.state.yearsList.find(function(d){return d===l}))&&c.push(w.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},w.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c},r.onChange=function(s){r.props.onChange(s)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(s){var c=r.state.yearsList.map(function(l){return l+s});r.setState({yearsList:c})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var o=t.yearDropdownItemNumber,a=t.scrollableYearDropdown,i=o||(a?10:5);return r.state={yearsList:vv(r.props.year,i,r.props.minDate,r.props.maxDate)},r.dropdownRef=w.createRef(),r}return n.prototype.componentDidMount=function(){var t=this.dropdownRef.current;if(t){var r=t.children?Array.from(t.children):null,o=r?r.find(function(a){return a.ariaSelected}):null;t.scrollTop=o&&o instanceof HTMLElement?o.offsetTop+(o.clientHeight-t.clientHeight)/2:(t.scrollHeight-t.clientHeight)/2}},n.prototype.render=function(){var t=Be({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return w.createElement(ta,{className:t,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},n})(w.Component),bv=(function(e){ct(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var r=t.props.minDate?y.getYear(t.props.minDate):1900,o=t.props.maxDate?y.getYear(t.props.maxDate):2100,a=[],i=r;i<=o;i++)a.push(w.createElement("option",{key:i,value:i},i));return a},t.onSelectChange=function(r){t.onChange(parseInt(r.target.value))},t.renderSelectMode=function(){return w.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(r){return w.createElement("button",{key:"read",type:"button",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:t.toggleDropdown},w.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),w.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return w.createElement(yv,xe({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var r=t.state.dropdownVisible,o=[t.renderReadView(!r)];return r&&o.unshift(t.renderDropdown()),o},t.onChange=function(r){t.toggleDropdown(),r!==t.props.year&&t.props.onChange(r)},t.toggleDropdown=function(r){t.setState({dropdownVisible:!t.state.dropdownVisible},function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,r)})},t.handleYearChange=function(r,o){var a;(a=t.onSelect)===null||a===void 0||a.call(t,r,o),t.setOpen()},t.onSelect=function(r,o){var a,i;(i=(a=t.props).onSelect)===null||i===void 0||i.call(a,r,o)},t.setOpen=function(){var r,o;(o=(r=t.props).setOpen)===null||o===void 0||o.call(r,!0)},t}return n.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return w.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},t)},n})(w.Component),wv=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Ql="react-datepicker-ignore-onclickoutside",_v=function(e){var n=(e.className||"").split(/\s+/);return wv.some(function(t){return n.indexOf(t)>=0})},xv=(function(e){ct(n,e);function n(t){var r=e.call(this,t)||this;return r.monthContainer=void 0,r.handleClickOutside=function(o){r.props.onClickOutside(o)},r.setClickOutsideRef=function(){return r.containerRef.current},r.handleDropdownFocus=function(o){var a,i;_v(o.target)&&((i=(a=r.props).onDropdownFocus)===null||i===void 0||i.call(a,o))},r.getDateInView=function(){var o=r.props,a=o.preSelection,i=o.selected,s=o.openToDate,c=Fl(r.props),l=Yl(r.props),u=Ae(),d=s||i||a;return d||(c&&y.isBefore(u,c)?c:l&&y.isAfter(u,l)?l:u)},r.increaseMonth=function(){r.setState(function(o){var a=o.date;return{date:y.addMonths(a,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(o){var a=o.date;return{date:y.subMonths(a,1)}},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(o,a,i){r.props.onSelect(o,a,i),r.props.setPreSelection&&r.props.setPreSelection(o)},r.handleDayMouseEnter=function(o){r.setState({selectingDate:o}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(o)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:void 0}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearMouseEnter=function(o,a){r.setState({selectingDate:y.setYear(Ae(),a)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(o,a)},r.handleYearMouseLeave=function(o,a){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(o,a)},r.handleYearChange=function(o){var a,i,s,c;(i=(a=r.props).onYearChange)===null||i===void 0||i.call(a,o),r.setState({isRenderAriaLiveMessage:!0}),r.props.adjustDateOnChange&&(r.props.onSelect(o),(c=(s=r.props).setOpen)===null||c===void 0||c.call(s,!0)),r.props.setPreSelection&&r.props.setPreSelection(o)},r.getEnabledPreSelectionDateForMonth=function(o){if(!Rt(o,r.props))return o;for(var a=ur(o),i=Yg(o),s=y.differenceInDays(i,a),c=null,l=0;l<=s;l++){var u=y.addDays(a,l);if(!Rt(u,r.props)){c=u;break}}return c},r.handleMonthChange=function(o){var a,i,s,c=(a=r.getEnabledPreSelectionDateForMonth(o))!==null&&a!==void 0?a:o;r.handleCustomMonthChange(c),r.props.adjustDateOnChange&&(r.props.onSelect(c),(s=(i=r.props).setOpen)===null||s===void 0||s.call(i,!0)),r.props.setPreSelection&&r.props.setPreSelection(c)},r.handleCustomMonthChange=function(o){var a,i;(i=(a=r.props).onMonthChange)===null||i===void 0||i.call(a,o),r.setState({isRenderAriaLiveMessage:!0})},r.handleMonthYearChange=function(o){r.handleYearChange(o),r.handleMonthChange(o)},r.changeYear=function(o){r.setState(function(a){var i=a.date;return{date:y.setYear(i,Number(o))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(o){r.setState(function(a){var i=a.date;return{date:y.setMonth(i,Number(o))}},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(o){r.setState(function(a){var i=a.date;return{date:y.setYear(y.setMonth(i,y.getMonth(o)),y.getYear(o))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(o){o===void 0&&(o=r.state.date);var a=Sr(o,r.props.locale,r.props.calendarStartDay),i=[];return r.props.showWeekNumbers&&i.push(w.createElement("div",{key:"W",className:"react-datepicker__day-name",role:"columnheader"},w.createElement("span",{className:"react-datepicker__sr-only"},"Week number"),w.createElement("span",{"aria-hidden":"true"},r.props.weekLabel||"#"))),i.concat([0,1,2,3,4,5,6].map(function(s){var c=y.addDays(a,s),l=r.formatWeekday(c,r.props.locale),u=r.props.weekDayClassName?r.props.weekDayClassName(c):void 0;return w.createElement("div",{key:s,role:"columnheader",className:Be("react-datepicker__day-name",u)},w.createElement("span",{className:"react-datepicker__sr-only"},Ye(c,"EEEE",r.props.locale)),w.createElement("span",{"aria-hidden":"true"},l))}))},r.formatWeekday=function(o,a){return r.props.formatWeekDay?Hg(o,r.props.formatWeekDay,a):r.props.useWeekdaysShort?Wg(o,a):Ug(o,a)},r.decreaseYear=function(){r.setState(function(o){var a,i=o.date;return{date:y.subYears(i,r.props.showYearPicker?(a=r.props.yearItemNumber)!==null&&a!==void 0?a:n.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.clearSelectingDate=function(){r.setState({selectingDate:void 0})},r.renderPreviousButton=function(){var o,a,i;if(!r.props.renderCustomHeader){var s=(o=r.props.monthsShown)!==null&&o!==void 0?o:n.defaultProps.monthsShown,c=r.props.showPreviousMonths?s-1:0,l=(a=r.props.monthSelectedIn)!==null&&a!==void 0?a:c,u=y.subMonths(r.state.date,l),d;switch(!0){case r.props.showMonthYearPicker:d=Bl(r.state.date,r.props);break;case r.props.showYearPicker:d=Qg(r.state.date,r.props);break;case r.props.showQuarterYearPicker:d=Kg(r.state.date,r.props);break;default:d=Ll(u,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:n.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&d||r.props.showTimeSelectOnly)){var f=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],m=["react-datepicker__navigation","react-datepicker__navigation--previous"],g=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(g=r.decreaseYear),d&&r.props.showDisabledMonthNavigation&&(m.push("react-datepicker__navigation--previous--disabled"),g=void 0);var p=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,b=r.props,x=b.previousMonthButtonLabel,S=x===void 0?n.defaultProps.previousMonthButtonLabel:x,T=b.previousYearButtonLabel,D=T===void 0?n.defaultProps.previousYearButtonLabel:T,k=r.props,O=k.previousMonthAriaLabel,I=O===void 0?typeof S=="string"?S:"Previous Month":O,W=k.previousYearAriaLabel,U=W===void 0?typeof D=="string"?D:"Previous Year":W;return w.createElement("button",{type:"button",className:m.join(" "),onClick:g,onKeyDown:r.props.handleOnKeyDown,"aria-label":p?U:I},w.createElement("span",{className:f.join(" ")},p?D:S))}}},r.increaseYear=function(){r.setState(function(o){var a,i=o.date;return{date:y.addYears(i,r.props.showYearPicker?(a=r.props.yearItemNumber)!==null&&a!==void 0?a:n.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){var o;if(!r.props.renderCustomHeader){var a;switch(!0){case r.props.showMonthYearPicker:a=Vl(r.state.date,r.props);break;case r.props.showYearPicker:a=Jg(r.state.date,r.props);break;case r.props.showQuarterYearPicker:a=Gg(r.state.date,r.props);break;default:a=zl(r.state.date,r.props);break}if(!(!((o=r.props.forceShowMonthNavigation)!==null&&o!==void 0?o:n.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&a||r.props.showTimeSelectOnly)){var i=["react-datepicker__navigation","react-datepicker__navigation--next"],s=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];r.props.showTimeSelect&&i.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&i.push("react-datepicker__navigation--next--with-today-button");var c=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(c=r.increaseYear),a&&r.props.showDisabledMonthNavigation&&(i.push("react-datepicker__navigation--next--disabled"),c=void 0);var l=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,u=r.props,d=u.nextMonthButtonLabel,f=d===void 0?n.defaultProps.nextMonthButtonLabel:d,m=u.nextYearButtonLabel,g=m===void 0?n.defaultProps.nextYearButtonLabel:m,p=r.props,b=p.nextMonthAriaLabel,x=b===void 0?typeof f=="string"?f:"Next Month":b,S=p.nextYearAriaLabel,T=S===void 0?typeof g=="string"?g:"Next Year":S;return w.createElement("button",{type:"button",className:i.join(" "),onClick:c,onKeyDown:r.props.handleOnKeyDown,"aria-label":l?T:x},w.createElement("span",{className:s.join(" ")},l?g:f))}}},r.renderCurrentMonth=function(o){o===void 0&&(o=r.state.date);var a=["react-datepicker__current-month"];return r.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),w.createElement("h2",{className:a.join(" ")},Ye(o,r.props.dateFormat,r.props.locale))},r.renderYearDropdown=function(o){if(o===void 0&&(o=!1),!(!r.props.showYearDropdown||o))return w.createElement(bv,xe({},n.defaultProps,r.props,{date:r.state.date,onChange:r.changeYear,year:y.getYear(r.state.date)}))},r.renderMonthDropdown=function(o){if(o===void 0&&(o=!1),!(!r.props.showMonthDropdown||o))return w.createElement(dv,xe({},n.defaultProps,r.props,{month:y.getMonth(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(o){if(o===void 0&&(o=!1),!(!r.props.showMonthYearDropdown||o))return w.createElement(hv,xe({},n.defaultProps,r.props,{date:r.state.date,onChange:r.changeMonthYear}))},r.handleTodayButtonClick=function(o){r.props.onSelect(Al(),o),r.props.setPreSelection&&r.props.setPreSelection(Al())},r.renderTodayButton=function(){if(!(!r.props.todayButton||r.props.showTimeSelectOnly))return w.createElement("div",{className:"react-datepicker__today-button",onClick:r.handleTodayButtonClick},r.props.todayButton)},r.renderDayNamesHeader=function(o){return w.createElement("div",{className:"react-datepicker__day-names",role:"row"},r.header(o))},r.renderDefaultHeader=function(o){var a=o.monthDate,i=o.i;return w.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(a),w.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(i!==0),r.renderMonthYearDropdown(i!==0),r.renderYearDropdown(i!==0)))},r.renderCustomHeader=function(o){var a,i,s=o.monthDate,c=o.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var l=r.props,u=l.showYearPicker,d=l.yearItemNumber,f;if(u){var m=dr(s,d),g=m.startPeriod,p=m.endPeriod;f={startYear:g,endYear:p}}var b=Ll(r.state.date,r.props),x=zl(r.state.date,r.props),S=Bl(r.state.date,r.props),T=Vl(r.state.date,r.props);return w.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},(i=(a=r.props).renderCustomHeader)===null||i===void 0?void 0:i.call(a,xe(xe(xe({},r.state),u&&{visibleYearsRange:f}),{customHeaderCount:c,monthDate:s,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:b,nextMonthButtonDisabled:x,prevYearButtonDisabled:S,nextYearButtonDisabled:T})))},r.renderYearHeader=function(o){var a=o.monthDate,i=r.props,s=i.showYearPicker,c=i.yearItemNumber,l=c===void 0?n.defaultProps.yearItemNumber:c,u=dr(a,l),d=u.startPeriod,f=u.endPeriod;return w.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(d," - ").concat(f):y.getYear(a))},r.renderHeader=function(o){var a=o.monthDate,i=o.i,s=i===void 0?0:i,c={monthDate:a,i:s};switch(!0){case r.props.renderCustomHeader!==void 0:return r.renderCustomHeader(c);case(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker):return r.renderYearHeader(c);default:return r.renderDefaultHeader(c)}},r.renderMonths=function(){var o,a;if(!(r.props.showTimeSelectOnly||r.props.showYearPicker)){for(var i=[],s=(o=r.props.monthsShown)!==null&&o!==void 0?o:n.defaultProps.monthsShown,c=r.props.showPreviousMonths?s-1:0,l=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?y.addYears(r.state.date,c):y.subMonths(r.state.date,c),u=(a=r.props.monthSelectedIn)!==null&&a!==void 0?a:c,d=0;d<s;++d){var f=d-u+c,m=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?y.addYears(l,f):y.addMonths(l,f),g="month-".concat(d),p=d<s-1,b=d>0;i.push(w.createElement("div",{key:g,ref:function(x){r.monthContainer=x??void 0},className:"react-datepicker__month-container"},r.renderHeader({monthDate:m,i:d}),w.createElement(lv,xe({},n.defaultProps,r.props,{containerRef:r.containerRef,ariaLabelPrefix:r.props.monthAriaLabelPrefix,day:m,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,orderInDisplay:d,selectingDate:r.state.selectingDate,monthShowsDuplicateDaysEnd:p,monthShowsDuplicateDaysStart:b,dayNamesHeader:r.renderDayNamesHeader(m)}))))}return i}},r.renderYears=function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return w.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),w.createElement(gv,xe({},n.defaultProps,r.props,{selectingDate:r.state.selectingDate,date:r.state.date,onDayClick:r.handleDayClick,clearSelectingDate:r.clearSelectingDate,onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return w.createElement(mv,xe({},n.defaultProps,r.props,{onChange:r.props.onTimeChange,format:r.props.timeFormat,intervals:r.props.timeIntervals,monthRef:r.state.monthContainer}))},r.renderInputTimeSection=function(){var o=r.props.selected?new Date(r.props.selected):void 0,a=o&&ra(o)&&!!r.props.selected,i=a?"".concat(Ul(o.getHours()),":").concat(Ul(o.getMinutes())):"";if(r.props.showTimeInput)return w.createElement(ov,xe({},n.defaultProps,r.props,{date:o,timeString:i,onChange:r.props.onTimeChange}))},r.renderAriaLiveRegion=function(){var o,a=dr(r.state.date,(o=r.props.yearItemNumber)!==null&&o!==void 0?o:n.defaultProps.yearItemNumber),i=a.startPeriod,s=a.endPeriod,c;return r.props.showYearPicker?c="".concat(i," - ").concat(s):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?c=y.getYear(r.state.date):c="".concat(Ni(y.getMonth(r.state.date),r.props.locale)," ").concat(y.getYear(r.state.date)),w.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&c)},r.renderChildren=function(){if(r.props.children)return w.createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=w.createRef(),r.state={date:r.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},r}return Object.defineProperty(n,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,outsideClickIgnoreClass:Ql,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:Vn}},enumerable:!1,configurable:!0}),n.prototype.componentDidMount=function(){var t=this;this.props.showTimeSelect&&(this.assignMonthContainer=(function(){t.setState({monthContainer:t.monthContainer})})())},n.prototype.componentDidUpdate=function(t){var r=this;if(this.props.preSelection&&(!Se(this.props.preSelection,t.preSelection)||this.props.monthSelectedIn!==t.monthSelectedIn)){var o=!pt(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&r.handleCustomMonthChange(r.state.date)})}else this.props.openToDate&&!Se(this.props.openToDate,t.openToDate)&&this.setState({date:this.props.openToDate})},n.prototype.render=function(){var t=this.props.container||$g;return w.createElement(ta,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},w.createElement("div",{style:{display:"contents"},ref:this.containerRef},w.createElement(t,{className:Be("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},n})(w.Component),Sv=function(e){var n=e.icon,t=e.className,r=t===void 0?"":t,o=e.onClick,a="react-datepicker__calendar-icon";if(typeof n=="string")return w.createElement("i",{className:"".concat(a," ").concat(n," ").concat(r),"aria-hidden":"true",onClick:o});if(w.isValidElement(n)){var i=n;return w.cloneElement(i,{className:"".concat(i.props.className||""," ").concat(a," ").concat(r),onClick:function(s){typeof i.props.onClick=="function"&&i.props.onClick(s),typeof o=="function"&&o(s)}})}return w.createElement("svg",{className:"".concat(a," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},w.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},Jl=(function(e){ct(n,e);function n(t){var r=e.call(this,t)||this;return r.portalRoot=null,r.el=document.createElement("div"),r}return n.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},n.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},n.prototype.render=function(){return zs.createPortal(this.props.children,this.el)},n})(w.Component),Cv="[tabindex], a, button, input, select, textarea",kv=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&e.tabIndex!==-1},Xl=(function(e){ct(n,e);function n(t){var r=e.call(this,t)||this;return r.getTabChildren=function(){var o;return Array.prototype.slice.call((o=r.tabLoopRef.current)===null||o===void 0?void 0:o.querySelectorAll(Cv),1,-1).filter(kv)},r.handleFocusStart=function(){var o=r.getTabChildren();o&&o.length>1&&o[o.length-1].focus()},r.handleFocusEnd=function(){var o=r.getTabChildren();o&&o.length>1&&o[0].focus()},r.tabLoopRef=w.createRef(),r}return n.prototype.render=function(){var t;return((t=this.props.enableTabLoop)!==null&&t!==void 0?t:n.defaultProps.enableTabLoop)?w.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},w.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,w.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},n.defaultProps={enableTabLoop:!0},n})(w.Component);function Dv(e){function n(t){var r,o=typeof t.hidePopper=="boolean"?t.hidePopper:!0,a=w.useRef(null),i=Rg(xe({open:!o,whileElementsMounted:fg,placement:t.popperPlacement,middleware:er([_g({padding:15}),wg(10),xg({element:a})],(r=t.popperModifiers)!==null&&r!==void 0?r:[],!0)},t.popperProps)),s=xe(xe({},t),{hidePopper:o,popperProps:xe(xe({},i),{arrowRef:a})});return w.createElement(e,xe({},s))}return n.displayName="withFloating(".concat(e.displayName||e.name||"Component",")"),n}var Ev=function(e){var n=e.className,t=e.wrapperClassName,r=e.hidePopper,o=r===void 0?!0:r,a=e.popperComponent,i=e.targetComponent,s=e.enableTabLoop,c=e.popperOnKeyDown,l=e.portalId,u=e.portalHost,d=e.popperProps,f=e.showArrow,m=void 0;if(!o){var g=Be("react-datepicker-popper",n);m=w.createElement(Xl,{enableTabLoop:s},w.createElement("div",{ref:d.refs.setFloating,style:d.floatingStyles,className:g,"data-placement":d.placement,onKeyDown:c},a,f&&w.createElement(Tg,{ref:d.arrowRef,context:d.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}e.popperContainer&&(m=w.createElement(e.popperContainer,{},m)),l&&!o&&(m=w.createElement(Jl,{portalId:l,portalHost:u},m));var p=Be("react-datepicker-wrapper",t);return w.createElement(w.Fragment,null,w.createElement("div",{ref:d.refs.setReference,className:p},i),m)},Tv=Dv(Ev);function Ov(e,n){return e&&n?y.getMonth(e)!==y.getMonth(n)||y.getYear(e)!==y.getYear(n):e!==n}var Li="Date input not valid.",Mv=(function(e){ct(n,e);function n(t){var r=e.call(this,t)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:Ae()},r.modifyHolidays=function(){var o;return(o=r.props.holidays)===null||o===void 0?void 0:o.reduce(function(a,i){var s=new Date(i.date);return ra(s)?er(er([],a,!0),[xe(xe({},i),{date:s})],!1):a},[])},r.calcInitialState=function(){var o,a=r.getPreSelection(),i=Fl(r.props),s=Yl(r.props),c=i&&y.isBefore(a,na(i))?i:s&&y.isAfter(a,Pl(s))?s:a;return{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(o=r.props.selectsRange?r.props.startDate:r.props.selected)!==null&&o!==void 0?o:c,highlightDates:Hl(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.getInputValue=function(){var o,a=r.props,i=a.locale,s=a.startDate,c=a.endDate,l=a.rangeSeparator,u=a.selected,d=a.selectedDates,f=a.selectsMultiple,m=a.selectsRange,g=a.value,p=(o=r.props.dateFormat)!==null&&o!==void 0?o:n.defaultProps.dateFormat,b=r.state.inputValue;return typeof g=="string"?g:typeof b=="string"?b:m?Lg(s,c,{dateFormat:p,locale:i,rangeSeparator:l}):f?zg(d??[],{dateFormat:p,locale:i}):Nt(u,{dateFormat:p,locale:i})},r.resetHiddenStatus=function(){r.setState(xe(xe({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(xe(xe({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){var o,a;(a=(o=r.input)===null||o===void 0?void 0:o.focus)===null||a===void 0||a.call(o,{preventScroll:!0})},r.setBlur=function(){var o,a;(a=(o=r.input)===null||o===void 0?void 0:o.blur)===null||a===void 0||a.call(o),r.cancelFocusInput()},r.deferBlur=function(){requestAnimationFrame(function(){r.setBlur()})},r.setOpen=function(o,a){a===void 0&&(a=!1),r.setState({open:o,preSelection:o&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:zi},function(){o||r.setState(function(i){return{focused:a?i.focused:!1}},function(){!a&&r.deferBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return y.isDate(r.state.preSelection)},r.isCalendarOpen=function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(o){var a,i,s=r.state.wasHidden,c=s?r.state.open:!0;s&&r.resetHiddenStatus(),r.state.preventFocus||((i=(a=r.props).onFocus)===null||i===void 0||i.call(a,o),c&&!r.props.preventOpenOnFocus&&!r.props.readOnly&&r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.resetInputValue=function(){r.setState(xe(xe({},r.state),{inputValue:null}))},r.handleBlur=function(o){var a,i;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&((i=(a=r.props).onBlur)===null||i===void 0||i.call(a,o)),r.resetInputValue(),r.state.open&&r.props.open===!1&&r.setOpen(!1),r.setState({focused:!1})},r.handleCalendarClickOutside=function(o){var a,i;r.props.inline||r.setOpen(!1),(i=(a=r.props).onClickOutside)===null||i===void 0||i.call(a,o),r.props.withPortal&&o.preventDefault()},r.handleChange=function(){for(var o,a,i,s,c,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var d=l[0];if(!(r.props.onChangeRaw&&(r.props.onChangeRaw.apply(r,l),!d||typeof d.isDefaultPrevented!="function"||d.isDefaultPrevented()))){r.setState({inputValue:d?.target instanceof HTMLInputElement?d.target.value:null,lastPreSelectChange:Av});var f=r.props,m=f.selectsRange,g=f.startDate,p=f.endDate,b=(o=r.props.dateFormat)!==null&&o!==void 0?o:n.defaultProps.dateFormat,x=(a=r.props.strictParsing)!==null&&a!==void 0?a:n.defaultProps.strictParsing,S=d?.target instanceof HTMLInputElement?d.target.value:"";if(m){var T=r.props.rangeSeparator,D=T.trim(),k=S.split(b.includes(D)?T:D,2).map(function(M){return M.trim()}),O=k[0],I=k[1],W=Ai(O??"",b,r.props.locale,x),U=W?Ai(I??"",b,r.props.locale,x):null,$=g?.getTime()!==W?.getTime(),Q=p?.getTime()!==U?.getTime();if(!$&&!Q||W&&Rt(W,r.props)||U&&Rt(U,r.props))return;(s=(i=r.props).onChange)===null||s===void 0||s.call(i,[W,U],d)}else{var v=Ai(S,b,r.props.locale,x,(c=r.props.selected)!==null&&c!==void 0?c:void 0);(v||!S)&&r.setSelected(v,d,!0)}}},r.handleSelect=function(o,a,i){if(!r.props.readOnly){var s=r.props,c=s.selectsRange,l=s.startDate,u=s.endDate,d=s.swapRange,f=!c||l&&!u&&(d||!$i(o,l));r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&f&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(a),r.setSelected(o,a,!1,i),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect?r.setPreSelection(o):f&&r.setOpen(!1)}},r.setSelected=function(o,a,i,s){var c,l,u=o;if(r.props.showYearPicker){if(u!==null&&ca(y.getYear(u),r.props))return}else if(r.props.showMonthYearPicker){if(u!==null&&Nl(u,r.props))return}else if(u!==null&&Rt(u,r.props))return;var d=r.props,f=d.onChange,m=d.selectsRange,g=d.startDate,p=d.endDate,b=d.selectsMultiple,x=d.selectedDates,S=d.minTime,T=d.swapRange;if(!Nr(r.props.selected,u)||r.props.allowSameDay||m||b)if(u!==null&&(r.props.selected&&(!i||!r.props.showTimeSelect&&!r.props.showTimeSelectOnly&&!r.props.showTimeInput)&&(u=Pi(u,{hour:y.getHours(r.props.selected),minute:y.getMinutes(r.props.selected),second:y.getSeconds(r.props.selected)})),!i&&(r.props.showTimeSelect||r.props.showTimeSelectOnly)&&S&&(u=Pi(u,{hour:S.getHours(),minute:S.getMinutes(),second:S.getSeconds()})),r.props.inline||r.setState({preSelection:u}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:s})),m){var D=!g&&!p,k=g&&!p,O=!g&&!!p,I=g&&p;D?f?.([u,null],a):k?u===null?f?.([null,null],a):$i(u,g)?f?.(T?[u,g]:[u,null],a):f?.([g,u],a):O&&(u&&$i(u,p)?f?.([u,p],a):f?.([u,null],a)),I&&f?.([u,null],a)}else if(b){if(u!==null)if(!x?.length)f?.([u],a);else{var W=x.some(function($){return Se($,u)});if(W){var U=x.filter(function($){return!Se($,u)});f?.(U,a)}else f?.(er(er([],x,!0),[u],!1),a)}}else f?.(u,a);i||((l=(c=r.props).onSelect)===null||l===void 0||l.call(c,u,a),r.setState({inputValue:null}))},r.setPreSelection=function(o){if(!r.props.readOnly){var a=y.isDate(r.props.minDate),i=y.isDate(r.props.maxDate),s=!0;if(o){var c=na(o);if(a&&i)s=Rr(o,r.props.minDate,r.props.maxDate);else if(a){var l=na(r.props.minDate);s=y.isAfter(o,l)||Nr(c,l)}else if(i){var u=Pl(r.props.maxDate);s=y.isBefore(o,u)||Nr(c,u)}}s&&r.setState({preSelection:o})}},r.toggleCalendar=function(){r.setOpen(!r.state.open)},r.handleTimeChange=function(o){var a,i;if(!(r.props.selectsRange||r.props.selectsMultiple)){var s=r.props.selected?r.props.selected:r.getPreSelection(),c=r.props.selected?o:Pi(s,{hour:y.getHours(o),minute:y.getMinutes(o)});r.setState({preSelection:c}),(i=(a=r.props).onChange)===null||i===void 0||i.call(a,c),r.props.shouldCloseOnSelect&&!r.props.showTimeInput&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}},r.onInputClick=function(){var o,a;!r.props.disabled&&!r.props.readOnly&&r.setOpen(!0),(a=(o=r.props).onInputClick)===null||a===void 0||a.call(o)},r.onInputKeyDown=function(o){var a,i,s,c,l,u;(i=(a=r.props).onKeyDown)===null||i===void 0||i.call(a,o);var d=o.key;if(!r.state.open&&!r.props.inline&&!r.props.preventOpenOnFocus){(d===ne.ArrowDown||d===ne.ArrowUp||d===ne.Enter)&&((s=r.onInputClick)===null||s===void 0||s.call(r));return}if(r.state.open){if(d===ne.ArrowDown||d===ne.ArrowUp){o.preventDefault();var f=r.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',m=((c=r.calendar)===null||c===void 0?void 0:c.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(f);m instanceof HTMLElement&&m.focus({preventScroll:!0});return}var g=Ae(r.state.preSelection);d===ne.Enter?(o.preventDefault(),o.target.blur(),r.inputOk()&&r.state.lastPreSelectChange===zi?(r.handleSelect(g,o),!r.props.shouldCloseOnSelect&&r.setPreSelection(g)):r.setOpen(!1)):d===ne.Escape?(o.preventDefault(),o.target.blur(),r.sendFocusBackToInput(),r.setOpen(!1)):d===ne.Tab&&r.setOpen(!1),r.inputOk()||(u=(l=r.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:Li})}},r.onPortalKeyDown=function(o){var a=o.key;a===ne.Escape&&(o.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))},r.onDayKeyDown=function(o){var a,i,s,c,l,u,d=r.props,f=d.minDate,m=d.maxDate,g=d.disabledKeyboardNavigation,p=d.showWeekPicker,b=d.shouldCloseOnSelect,x=d.locale,S=d.calendarStartDay,T=d.adjustDateOnChange,D=d.inline;if((i=(a=r.props).onKeyDown)===null||i===void 0||i.call(a,o),!g){var k=o.key,O=o.shiftKey,I=Ae(r.state.preSelection),W=function(H,Y){var ee=Y;switch(H){case ne.ArrowRight:ee=p?y.addWeeks(Y,1):y.addDays(Y,1);break;case ne.ArrowLeft:ee=p?y.subWeeks(Y,1):y.subDays(Y,1);break;case ne.ArrowUp:ee=y.subWeeks(Y,1);break;case ne.ArrowDown:ee=y.addWeeks(Y,1);break;case ne.PageUp:ee=O?y.subYears(Y,1):y.subMonths(Y,1);break;case ne.PageDown:ee=O?y.addYears(Y,1):y.addMonths(Y,1);break;case ne.Home:ee=Sr(Y,x,S);break;case ne.End:ee=Fg(Y);break}return ee},U=function(H,Y){for(var ee=40,ae=H,be=!1,z=0,K=W(H,Y);!be;){if(z>=ee){K=Y;break}f&&K<f&&(ae=ne.ArrowRight,K=Rt(f,r.props)?W(ae,K):f),m&&K>m&&(ae=ne.ArrowLeft,K=Rt(m,r.props)?W(ae,K):m),Rt(K,r.props)?((ae===ne.PageUp||ae===ne.Home)&&(ae=ne.ArrowRight),(ae===ne.PageDown||ae===ne.End)&&(ae=ne.ArrowLeft),K=W(ae,K)):be=!0,z++}return K};if(k===ne.Enter){o.preventDefault(),r.handleSelect(I,o),!b&&r.setPreSelection(I);return}else if(k===ne.Escape){o.preventDefault(),r.setOpen(!1),r.inputOk()||(c=(s=r.props).onInputError)===null||c===void 0||c.call(s,{code:1,msg:Li});return}var $=null;switch(k){case ne.ArrowLeft:case ne.ArrowRight:case ne.ArrowUp:case ne.ArrowDown:case ne.PageUp:case ne.PageDown:case ne.Home:case ne.End:$=U(k,I);break}if(!$){(u=(l=r.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:Li});return}if(o.preventDefault(),r.setState({lastPreSelectChange:zi}),T&&r.setSelected($),r.setPreSelection($),D){var Q=y.getMonth(I),v=y.getMonth($),M=y.getYear(I),P=y.getYear($);Q!==v||M!==P?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}},r.onPopperKeyDown=function(o){var a=o.key;a===ne.Escape&&(o.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1))},r.onClearClick=function(o){o&&o.preventDefault&&o.preventDefault(),r.sendFocusBackToInput();var a=r.props,i=a.selectsRange,s=a.onChange;s?.(i?[null,null]:null,o),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(o){typeof r.props.closeOnScroll=="boolean"&&r.props.closeOnScroll?(o.target===document||o.target===document.documentElement||o.target===document.body)&&r.setOpen(!1):typeof r.props.closeOnScroll=="function"&&r.props.closeOnScroll(o)&&r.setOpen(!1)},r.renderCalendar=function(){var o,a;return!r.props.inline&&!r.isCalendarOpen()?null:w.createElement(xv,xe({showMonthYearDropdown:void 0,ref:function(i){r.calendar=i}},r.props,r.state,{setOpen:r.setOpen,dateFormat:(o=r.props.dateFormatCalendar)!==null&&o!==void 0?o:n.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:ev(r.modifyHolidays()),outsideClickIgnoreClass:r.props.outsideClickIgnoreClass,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:(a=r.props.dropdownMode)!==null&&a!==void 0?a:n.defaultProps.dropdownMode}),r.props.children)},r.renderAriaLiveRegion=function(){var o,a=r.props.locale,i=(o=r.props.dateFormat)!==null&&o!==void 0?o:n.defaultProps.dateFormat,s=r.props.showTimeInput||r.props.showTimeSelect,c=s?"PPPPp":"PPPP",l;return r.props.selectsRange?l="Selected start date: ".concat(Nt(r.props.startDate,{dateFormat:c,locale:a}),". ").concat(r.props.endDate?"End date: "+Nt(r.props.endDate,{dateFormat:c,locale:a}):""):r.props.showTimeSelectOnly?l="Selected time: ".concat(Nt(r.props.selected,{dateFormat:i,locale:a})):r.props.showYearPicker?l="Selected year: ".concat(Nt(r.props.selected,{dateFormat:"yyyy",locale:a})):r.props.showMonthYearPicker?l="Selected month: ".concat(Nt(r.props.selected,{dateFormat:"MMMM yyyy",locale:a})):r.props.showQuarterYearPicker?l="Selected quarter: ".concat(Nt(r.props.selected,{dateFormat:"yyyy, QQQ",locale:a})):l="Selected date: ".concat(Nt(r.props.selected,{dateFormat:c,locale:a})),w.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},l)},r.renderDateInput=function(){var o,a,i=Be(r.props.className,(o={},o[r.props.outsideClickIgnoreClass||n.defaultProps.outsideClickIgnoreClass]=r.state.open,o)),s=r.props.customInput||w.createElement("input",{type:"text"}),c=r.props.customInputRef||"ref";return w.cloneElement(s,(a={},a[c]=function(l){r.input=l},a.value=r.getInputValue(),a.onBlur=r.handleBlur,a.onChange=r.handleChange,a.onClick=r.onInputClick,a.onFocus=r.handleFocus,a.onKeyDown=r.onInputKeyDown,a.id=r.props.id,a.name=r.props.name,a.form=r.props.form,a.autoFocus=r.props.autoFocus,a.placeholder=r.props.placeholderText,a.disabled=r.props.disabled,a.autoComplete=r.props.autoComplete,a.className=Be(s.props.className,i),a.title=r.props.title,a.readOnly=r.props.readOnly,a.required=r.props.required,a.tabIndex=r.props.tabIndex,a["aria-describedby"]=r.props.ariaDescribedBy,a["aria-invalid"]=r.props.ariaInvalid,a["aria-labelledby"]=r.props.ariaLabelledBy,a["aria-required"]=r.props.ariaRequired,a))},r.renderClearButton=function(){var o=r.props,a=o.isClearable,i=o.disabled,s=o.selected,c=o.startDate,l=o.endDate,u=o.clearButtonTitle,d=o.clearButtonClassName,f=d===void 0?"":d,m=o.ariaLabelClose,g=m===void 0?"Close":m,p=o.selectedDates,b=o.readOnly;return a&&!b&&(s!=null||c!=null||l!=null||p?.length)?w.createElement("button",{type:"button",className:Be("react-datepicker__close-icon",f,{"react-datepicker__close-icon--disabled":i}),disabled:i,"aria-label":g,onClick:r.onClearClick,title:u,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return Object.defineProperty(n,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,outsideClickIgnoreClass:Ql,readOnly:!1,rangeSeparator:Ol,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Vn,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),n.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},n.prototype.componentDidUpdate=function(t,r){var o,a,i,s;t.inline&&Ov(t.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Hl(this.props.highlightDates)}),!r.focused&&!Nr(t.selected,this.props.selected)&&this.setState({inputValue:null}),r.open!==this.state.open&&(r.open===!1&&this.state.open===!0&&((a=(o=this.props).onCalendarOpen)===null||a===void 0||a.call(o)),r.open===!0&&this.state.open===!1&&((s=(i=this.props).onCalendarClose)===null||s===void 0||s.call(i)))},n.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},n.prototype.renderInputContainer=function(){var t=this.props,r=t.showIcon,o=t.icon,a=t.calendarIconClassname,i=t.calendarIconClassName,s=t.toggleCalendarOnIconClick,c=this.state.open;return a&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),w.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&w.createElement(Sv,xe({icon:o,className:Be(i,!i&&a,c&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},n.prototype.render=function(){var t=this.renderCalendar();if(this.props.inline)return t;if(this.props.withPortal){var r=this.state.open?w.createElement(Xl,{enableTabLoop:this.props.enableTabLoop},w.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},t)):null;return this.state.open&&this.props.portalId&&(r=w.createElement(Jl,xe({portalId:this.props.portalId},this.props),r)),w.createElement("div",null,this.renderInputContainer(),r)}return w.createElement(Tv,xe({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:t,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},n})(w.Component),Av="input",zi="navigate";const Pv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M2.999%208.611a1.1%201.1%200%200%201%20.33-.786%201.135%201.135%200%200%201%201.591%200l7.079%206.993%207.079-6.993a1.135%201.135%200%200%201%201.837.36%201.1%201.1%200%200%201-.246%201.215l-7.87%207.775a1.135%201.135%200%200%201-1.591%200L3.328%209.4a1.1%201.1%200%200%201-.329-.789'/%3e%3c/svg%3e",Iv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M15.39%2021a1.1%201.1%200%200%200%20.785-.33%201.135%201.135%200%200%200%200-1.591L9.182%2012l6.993-7.08a1.135%201.135%200%200%200-.36-1.835%201.1%201.1%200%200%200-1.21.244L6.824%2011.2a1.135%201.135%200%200%200%200%201.591L14.6%2020.67a1.1%201.1%200%200%200%20.79.33'/%3e%3c/svg%3e",Nv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M8.61%203a1.1%201.1%200%200%200-.785.33%201.135%201.135%200%200%200%200%201.591L14.818%2012l-6.993%207.08a1.135%201.135%200%200%200%20.36%201.835%201.1%201.1%200%200%200%201.21-.244l7.78-7.871a1.135%201.135%200%200%200%200-1.591L9.4%203.33A1.1%201.1%200%200%200%208.61%203'/%3e%3c/svg%3e",Rv="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23fff'%20clip-path='url(%23a)'%3e%3cpath%20d='M13.085%207.331a1.096%201.096%200%201%200-2.192%200v9.316a1.096%201.096%200%200%200%202.192%200z'/%3e%3cpath%20d='M16.647%2010.893H7.33a1.096%201.096%200%201%200%200%202.192h9.316a1.096%201.096%200%200%200%200-2.192'/%3e%3cpath%20d='M12%2024C5.38%2024%200%2018.608%200%2012S5.38%200%2012%200s12%205.38%2012%2012-5.38%2012-12%2012m0-21.808c-5.414%200-9.808%204.394-9.808%209.808S6.586%2021.808%2012%2021.808s9.808-4.394%209.808-9.808S17.403%202.192%2012%202.192'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",$v=w.forwardRef(({value:e,onClick:n},t)=>h.jsxs("button",{className:Mr.datePickerButton,onClick:n,ref:t,children:[e,h.jsx("img",{src:Pv,style:{marginLeft:10}})]})),jv=({currentDate:e,onPrevMonth:n,onNextMonth:t,onAddEvent:r,onDateChange:o})=>h.jsxs("div",{className:Mr.headerContainer,children:[h.jsxs("div",{className:Mr.navAndDate,children:[h.jsx("button",{className:Mr.navButton,onClick:n,children:h.jsx("img",{src:Iv,width:15})}),h.jsx("button",{className:Mr.navButton,onClick:t,children:h.jsx("img",{src:Nv,width:15})}),h.jsx(Mv,{selected:e,onChange:a=>o(a),dateFormat:"MMMM yyyy",showMonthYearPicker:!0,className:Mr.datePickerInput,locale:"es",customInput:h.jsx($v,{})})]}),h.jsxs("button",{className:Mr.addEventButton,onClick:r,children:[h.jsx("img",{src:Rv}),"Agregar evento"]})]}),_e={sidebarContainer:"_sidebarContainer_1pgug_1",leadsSection:"_leadsSection_1pgug_17",leadCard:"_leadCard_1pgug_33",leadIcon:"_leadIcon_1pgug_71",leadDays:"_leadDays_1pgug_81",leadCount:"_leadCount_1pgug_91",eventsSection:"_eventsSection_1pgug_105",sidebarTitle:"_sidebarTitle_1pgug_129",eventGroup:"_eventGroup_1pgug_147",eventGroupDate:"_eventGroupDate_1pgug_155",eventItem:"_eventItem_1pgug_167",eventDetails:"_eventDetails_1pgug_201",eventTitle:"_eventTitle_1pgug_215",eventTime:"_eventTime_1pgug_241",calendarsSection:"_calendarsSection_1pgug_263",collapsibleHeader:"_collapsibleHeader_1pgug_271",headerTitle:"_headerTitle_1pgug_299",calendarCount:"_calendarCount_1pgug_313",chevronIcon:"_chevronIcon_1pgug_331",collapsed:"_collapsed_1pgug_339",collapsibleContent:"_collapsibleContent_1pgug_347",hidden:"_hidden_1pgug_363",calendarItem:"_calendarItem_1pgug_373",circularCheckbox:"_circularCheckbox_1pgug_407",checkedIcon:"_checkedIcon_1pgug_425",uncheckedIcon:"_uncheckedIcon_1pgug_433",calendarIcon:"_calendarIcon_1pgug_441",googleIcon:"_googleIcon_1pgug_449",syncButton:"_syncButton_1pgug_457",eventsContainer:"_eventsContainer_1pgug_509"};/**
122
108
  * @license lucide-react v0.540.0 - ISC
123
109
  *
124
110
  * This source code is licensed under the ISC license.
125
111
  * See the LICENSE file in the root directory of this source tree.
126
- */const rb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nb=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,t,n)=>n?n.toUpperCase():t.toLowerCase()),td=e=>{const r=nb(e);return r.charAt(0).toUpperCase()+r.slice(1)},rd=(...e)=>e.filter((r,t,n)=>!!r&&r.trim()!==""&&n.indexOf(r)===t).join(" ").trim(),ob=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
112
+ */const Lv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zv=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,t,r)=>r?r.toUpperCase():t.toLowerCase()),eu=e=>{const n=zv(e);return n.charAt(0).toUpperCase()+n.slice(1)},tu=(...e)=>e.filter((n,t,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===t).join(" ").trim(),Bv=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
127
113
  * @license lucide-react v0.540.0 - ISC
128
114
  *
129
115
  * This source code is licensed under the ISC license.
130
116
  * See the LICENSE file in the root directory of this source tree.
131
- */var ib={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"};/**
117
+ */var Vv={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"};/**
132
118
  * @license lucide-react v0.540.0 - ISC
133
119
  *
134
120
  * This source code is licensed under the ISC license.
135
121
  * See the LICENSE file in the root directory of this source tree.
136
- */const ab=x.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...s},c)=>x.createElement("svg",{ref:c,...ib,width:r,height:r,stroke:e,strokeWidth:n?Number(t)*24/Number(r):t,className:rd("lucide",o),...!i&&!ob(s)&&{"aria-hidden":"true"},...s},[...a.map(([l,u])=>x.createElement(l,u)),...Array.isArray(i)?i:[i]]));/**
122
+ */const Fv=w.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:i,...s},c)=>w.createElement("svg",{ref:c,...Vv,width:n,height:n,stroke:e,strokeWidth:r?Number(t)*24/Number(n):t,className:tu("lucide",o),...!a&&!Bv(s)&&{"aria-hidden":"true"},...s},[...i.map(([l,u])=>w.createElement(l,u)),...Array.isArray(a)?a:[a]]));/**
137
123
  * @license lucide-react v0.540.0 - ISC
138
124
  *
139
125
  * This source code is licensed under the ISC license.
140
126
  * See the LICENSE file in the root directory of this source tree.
141
- */const lo=(e,r)=>{const t=x.forwardRef(({className:n,...o},i)=>x.createElement(ab,{ref:i,iconNode:r,className:rd(`lucide-${rb(td(e))}`,`lucide-${e}`,n),...o}));return t.displayName=td(e),t};/**
127
+ */const Un=(e,n)=>{const t=w.forwardRef(({className:r,...o},a)=>w.createElement(Fv,{ref:a,iconNode:n,className:tu(`lucide-${Lv(eu(e))}`,`lucide-${e}`,r),...o}));return t.displayName=eu(e),t};/**
142
128
  * @license lucide-react v0.540.0 - ISC
143
129
  *
144
130
  * This source code is licensed under the ISC license.
145
131
  * See the LICENSE file in the root directory of this source tree.
146
- */const nd=lo("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
132
+ */const ru=Un("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
147
133
  * @license lucide-react v0.540.0 - ISC
148
134
  *
149
135
  * This source code is licensed under the ISC license.
150
136
  * See the LICENSE file in the root directory of this source tree.
151
- */const sb=lo("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
137
+ */const Yv=Un("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
152
138
  * @license lucide-react v0.540.0 - ISC
153
139
  *
154
140
  * This source code is licensed under the ISC license.
155
141
  * See the LICENSE file in the root directory of this source tree.
156
- */const cb=lo("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
142
+ */const Hv=Un("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
157
143
  * @license lucide-react v0.540.0 - ISC
158
144
  *
159
145
  * This source code is licensed under the ISC license.
160
146
  * See the LICENSE file in the root directory of this source tree.
161
- */const lb=lo("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
147
+ */const Uv=Un("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
162
148
  * @license lucide-react v0.540.0 - ISC
163
149
  *
164
150
  * This source code is licensed under the ISC license.
165
151
  * See the LICENSE file in the root directory of this source tree.
166
- */const ub=lo("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),od=Symbol.for("constructDateFrom");function bs(e,r){return typeof e=="function"?e(r):e&&typeof e=="object"&&od in e?e[od](r):e instanceof Date?new e.constructor(r):new Date(r)}function Nr(e,r){return bs(r||e,e)}function id(e,r,t){const[n,o]=[+Nr(e.start,t?.in),+Nr(e.end,t?.in)].sort((s,c)=>s-c),[i,a]=[+Nr(r.start,t?.in),+Nr(r.end,t?.in)].sort((s,c)=>s-c);return n<a&&i<o}function Ii(e){"@babel/helpers - typeof";return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ii(e)}var db=/^\s+/,fb=/\s+$/;function fe(e,r){if(e=e||"",r=r||{},e instanceof fe)return e;if(!(this instanceof fe))return new fe(e,r);var t=pb(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||t.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}fe.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb(),t,n,o,i,a,s;return t=r.r/255,n=r.g/255,o=r.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},setAlpha:function(r){return this._a=dd(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=sd(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=sd(this._r,this._g,this._b),t=Math.round(r.h*360),n=Math.round(r.s*100),o=Math.round(r.v*100);return this._a==1?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var r=ad(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=ad(this._r,this._g,this._b),t=Math.round(r.h*360),n=Math.round(r.s*100),o=Math.round(r.l*100);return this._a==1?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(r){return cd(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return vb(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(We(this._r,255)*100)+"%",g:Math.round(We(this._g,255)*100)+"%",b:Math.round(We(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(We(this._r,255)*100)+"%, "+Math.round(We(this._g,255)*100)+"%, "+Math.round(We(this._b,255)*100)+"%)":"rgba("+Math.round(We(this._r,255)*100)+"%, "+Math.round(We(this._g,255)*100)+"%, "+Math.round(We(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Ob[cd(this._r,this._g,this._b,!0)]||!1},toFilter:function(r){var t="#"+ld(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(r){var i=fe(r);n="#"+ld(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(r){var t=!!r;r=r||this._format;var n=!1,o=this._a<1&&this._a>=0,i=!t&&o&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");return i?r==="name"&&this._a===0?this.toName():this.toRgbString():(r==="rgb"&&(n=this.toRgbString()),r==="prgb"&&(n=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(n=this.toHexString()),r==="hex3"&&(n=this.toHexString(!0)),r==="hex4"&&(n=this.toHex8String(!0)),r==="hex8"&&(n=this.toHex8String()),r==="name"&&(n=this.toName()),r==="hsl"&&(n=this.toHslString()),r==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return fe(this.toString())},_applyModification:function(r,t){var n=r.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(_b,arguments)},brighten:function(){return this._applyModification(xb,arguments)},darken:function(){return this._applyModification(Sb,arguments)},desaturate:function(){return this._applyModification(yb,arguments)},saturate:function(){return this._applyModification(bb,arguments)},greyscale:function(){return this._applyModification(wb,arguments)},spin:function(){return this._applyModification(Cb,arguments)},_applyCombination:function(r,t){return r.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Db,arguments)},complement:function(){return this._applyCombination(Eb,arguments)},monochromatic:function(){return this._applyCombination(Tb,arguments)},splitcomplement:function(){return this._applyCombination(kb,arguments)},triad:function(){return this._applyCombination(ud,[3])},tetrad:function(){return this._applyCombination(ud,[4])}},fe.fromRatio=function(e,r){if(Ii(e)=="object"){var t={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?t[n]=e[n]:t[n]=uo(e[n]));e=t}return fe(e,r)};function pb(e){var r={r:0,g:0,b:0},t=1,n=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=Ib(e)),Ii(e)=="object"&&(_r(e.r)&&_r(e.g)&&_r(e.b)?(r=hb(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_r(e.h)&&_r(e.s)&&_r(e.v)?(n=uo(e.s),o=uo(e.v),r=gb(e.h,n,o),a=!0,s="hsv"):_r(e.h)&&_r(e.s)&&_r(e.l)&&(n=uo(e.s),i=uo(e.l),r=mb(e.h,n,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=dd(t),{ok:a,format:e.format||s,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:t}}function hb(e,r,t){return{r:We(e,255)*255,g:We(r,255)*255,b:We(t,255)*255}}function ad(e,r,t){e=We(e,255),r=We(r,255),t=We(t,255);var n=Math.max(e,r,t),o=Math.min(e,r,t),i,a,s=(n+o)/2;if(n==o)i=a=0;else{var c=n-o;switch(a=s>.5?c/(2-n-o):c/(n+o),n){case e:i=(r-t)/c+(r<t?6:0);break;case r:i=(t-e)/c+2;break;case t:i=(e-r)/c+4;break}i/=6}return{h:i,s:a,l:s}}function mb(e,r,t){var n,o,i;e=We(e,360),r=We(r,100),t=We(t,100);function a(l,u,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?l+(u-l)*6*d:d<1/2?u:d<2/3?l+(u-l)*(2/3-d)*6:l}if(r===0)n=o=i=t;else{var s=t<.5?t*(1+r):t+r-t*r,c=2*t-s;n=a(c,s,e+1/3),o=a(c,s,e),i=a(c,s,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function sd(e,r,t){e=We(e,255),r=We(r,255),t=We(t,255);var n=Math.max(e,r,t),o=Math.min(e,r,t),i,a,s=n,c=n-o;if(a=n===0?0:c/n,n==o)i=0;else{switch(n){case e:i=(r-t)/c+(r<t?6:0);break;case r:i=(t-e)/c+2;break;case t:i=(e-r)/c+4;break}i/=6}return{h:i,s:a,v:s}}function gb(e,r,t){e=We(e,360)*6,r=We(r,100),t=We(t,100);var n=Math.floor(e),o=e-n,i=t*(1-r),a=t*(1-o*r),s=t*(1-(1-o)*r),c=n%6,l=[t,a,i,i,s,t][c],u=[s,t,t,a,i,i][c],d=[i,i,s,t,t,a][c];return{r:l*255,g:u*255,b:d*255}}function cd(e,r,t,n){var o=[Kt(Math.round(e).toString(16)),Kt(Math.round(r).toString(16)),Kt(Math.round(t).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function vb(e,r,t,n,o){var i=[Kt(Math.round(e).toString(16)),Kt(Math.round(r).toString(16)),Kt(Math.round(t).toString(16)),Kt(fd(n))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function ld(e,r,t,n){var o=[Kt(fd(n)),Kt(Math.round(e).toString(16)),Kt(Math.round(r).toString(16)),Kt(Math.round(t).toString(16))];return o.join("")}fe.equals=function(e,r){return!e||!r?!1:fe(e).toRgbString()==fe(r).toRgbString()},fe.random=function(){return fe.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function yb(e,r){r=r===0?0:r||10;var t=fe(e).toHsl();return t.s-=r/100,t.s=Ri(t.s),fe(t)}function bb(e,r){r=r===0?0:r||10;var t=fe(e).toHsl();return t.s+=r/100,t.s=Ri(t.s),fe(t)}function wb(e){return fe(e).desaturate(100)}function _b(e,r){r=r===0?0:r||10;var t=fe(e).toHsl();return t.l+=r/100,t.l=Ri(t.l),fe(t)}function xb(e,r){r=r===0?0:r||10;var t=fe(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(r/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(r/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(r/100)))),fe(t)}function Sb(e,r){r=r===0?0:r||10;var t=fe(e).toHsl();return t.l-=r/100,t.l=Ri(t.l),fe(t)}function Cb(e,r){var t=fe(e).toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,fe(t)}function Eb(e){var r=fe(e).toHsl();return r.h=(r.h+180)%360,fe(r)}function ud(e,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var t=fe(e).toHsl(),n=[fe(e)],o=360/r,i=1;i<r;i++)n.push(fe({h:(t.h+i*o)%360,s:t.s,l:t.l}));return n}function kb(e){var r=fe(e).toHsl(),t=r.h;return[fe(e),fe({h:(t+72)%360,s:r.s,l:r.l}),fe({h:(t+216)%360,s:r.s,l:r.l})]}function Db(e,r,t){r=r||6,t=t||30;var n=fe(e).toHsl(),o=360/t,i=[fe(e)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,i.push(fe(n));return i}function Tb(e,r){r=r||6;for(var t=fe(e).toHsv(),n=t.h,o=t.s,i=t.v,a=[],s=1/r;r--;)a.push(fe({h:n,s:o,v:i})),i=(i+s)%1;return a}fe.mix=function(e,r,t){t=t===0?0:t||50;var n=fe(e).toRgb(),o=fe(r).toRgb(),i=t/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return fe(a)},fe.readability=function(e,r){var t=fe(e),n=fe(r);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)},fe.isReadable=function(e,r,t){var n=fe.readability(e,r),o,i;switch(i=!1,o=Rb(t),o.level+o.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i},fe.mostReadable=function(e,r,t){var n=null,o=0,i,a,s,c;t=t||{},a=t.includeFallbackColors,s=t.level,c=t.size;for(var l=0;l<r.length;l++)i=fe.readability(e,r[l]),i>o&&(o=i,n=fe(r[l]));return fe.isReadable(e,n,{level:s,size:c})||!a?n:(t.includeFallbackColors=!1,fe.mostReadable(e,["#fff","#000"],t))};var ws=fe.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ob=fe.hexNames=Mb(ws);function Mb(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}function dd(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function We(e,r){Pb(e)&&(e="100%");var t=Ab(e);return e=Math.min(r,Math.max(0,parseFloat(e))),t&&(e=parseInt(e*r,10)/100),Math.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function Ri(e){return Math.min(1,Math.max(0,e))}function $t(e){return parseInt(e,16)}function Pb(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Ab(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Kt(e){return e.length==1?"0"+e:""+e}function uo(e){return e<=1&&(e=e*100+"%"),e}function fd(e){return Math.round(parseFloat(e)*255).toString(16)}function pd(e){return $t(e)/255}var Gt=(function(){var e="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",t="(?:"+r+")|(?:"+e+")",n="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",o="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function _r(e){return!!Gt.CSS_UNIT.exec(e)}function Ib(e){e=e.replace(db,"").replace(fb,"").toLowerCase();var r=!1;if(ws[e])e=ws[e],r=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=Gt.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Gt.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Gt.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Gt.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Gt.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Gt.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Gt.hex8.exec(e))?{r:$t(t[1]),g:$t(t[2]),b:$t(t[3]),a:pd(t[4]),format:r?"name":"hex8"}:(t=Gt.hex6.exec(e))?{r:$t(t[1]),g:$t(t[2]),b:$t(t[3]),format:r?"name":"hex"}:(t=Gt.hex4.exec(e))?{r:$t(t[1]+""+t[1]),g:$t(t[2]+""+t[2]),b:$t(t[3]+""+t[3]),a:pd(t[4]+""+t[4]),format:r?"name":"hex8"}:(t=Gt.hex3.exec(e))?{r:$t(t[1]+""+t[1]),g:$t(t[2]+""+t[2]),b:$t(t[3]+""+t[3]),format:r?"name":"hex"}:!1}function Rb(e){var r,t;return e=e||{level:"AA",size:"small"},r=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:r,size:t}}const hd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23C4D9F5'%20d='M36.667%2020c0%209.205-7.462%2016.667-16.667%2016.667S3.333%2029.205%203.333%2020%2010.795%203.333%2020%203.333%2036.667%2010.795%2036.667%2020'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M20%2012.083c.69%200%201.25.56%201.25%201.25v6.15l3.8%203.8a1.25%201.25%200%201%201-1.767%201.767l-4.167-4.166A1.25%201.25%200%200%201%2018.75%2020v-6.667c0-.69.56-1.25%201.25-1.25'%20clip-rule='evenodd'/%3e%3c/svg%3e",Nb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='23'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M17.614%202.64h-.5v-.622c0-.566-.443-1.018-.998-1.018s-.998.452-.998%201.018v.622H7.893v-.622C7.894%201.452%207.45%201%206.895%201s-.999.452-.999%201.018v.622h-.5C2.946%202.64.959%204.665.959%207.165v11.31c0%202.5%201.987%204.525%204.439%204.525h12.206c2.452%200%204.439-2.025%204.439-4.524V7.165c0-2.5-1.987-4.525-4.439-4.525zm0%2018.098H5.408c-1.22%200-2.22-1.018-2.22-2.262V10.41h16.646v8.065c0%201.244-1%202.262-2.22%202.262'/%3e%3c/svg%3e",$b="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23404756'%20d='M12.667%204.667a3%203%200%200%201%203%203v8.667a3%203%200%200%201-3%203H4a3%203%200%200%201-3-3V7.667a3%203%200%200%201%203-3zM21.36%206.237a1%201%200%200%201%201.64.77V17a1%201%200%200%201-1.64.768L17%2014.135V9.867z'/%3e%3c/svg%3e",jb=({onEventClick:e,upcomingEvents:r,onSyncGoogle:t,onSyncOutlook:n,leads30Days:o,leads90Days:i})=>{const a=d=>{const f=new Date,m={start:w.startOfDay(f),end:w.endOfDay(f)},g={start:d.fechaInicio,end:d.fechaFin};return id(m,g)?"Hoy":w.isTomorrow(d.fechaInicio)?"Mañana":new Intl.DateTimeFormat("es-ES",{day:"numeric",month:"long"}).format(d.fechaInicio)},s={};r.forEach(d=>{const f=a(d);s[f]||(s[f]=[]),s[f].push(d)});const[c,l]=x.useState(!1),u=()=>{l(!c)};return h.jsxs("div",{className:xe.sidebarContainer,children:[h.jsxs("div",{className:xe.leadsSection,children:[h.jsxs("div",{className:xe.leadCard,children:[h.jsx("div",{className:xe.leadIcon,children:h.jsx("img",{src:hd})}),h.jsxs("div",{className:xe.leadText,children:[h.jsx("div",{className:xe.leadDays,children:"+30 días sin atender"}),h.jsxs("div",{className:xe.leadCount,children:[o," ",h.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]}),h.jsxs("div",{className:xe.leadCard,children:[h.jsx("div",{className:xe.leadIcon,children:h.jsx("img",{src:hd})}),h.jsxs("div",{className:xe.leadText,children:[h.jsx("div",{className:xe.leadDays,children:"+90 días sin atender"}),h.jsxs("div",{className:xe.leadCount,children:[i," ",h.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]})]}),h.jsxs("div",{className:xe.eventsSection,children:[h.jsx("h3",{className:xe.sidebarTitle,children:"Próximos eventos"}),h.jsx("div",{className:xe.eventsContainer,children:Object.entries(s).map(([d,f])=>h.jsxs("div",{className:`${xe.eventGroup}`,children:[h.jsxs("div",{className:xe.eventGroupDate,children:[h.jsx("img",{src:Nb,width:15})," ",d]}),f.map(m=>{const g=fe(m.color||"#ffcc00"),p=g.toString(),y=g.clone().darken(15).toString();return h.jsxs("div",{className:xe.eventItem,style:{backgroundColor:p,borderLeftColor:y},onClick:()=>e(m),children:[h.jsxs("div",{className:xe.eventDetails,children:[h.jsx("div",{className:xe.eventTitle,children:m.titulo.length>32?`${m.titulo.substring(0,32)}...`:m.titulo}),h.jsx("div",{className:xe.eventGroupDate,children:m?.client?m?.client?.length>50?`${m.client.substring(0,32)}...`:m.client:""}),h.jsx("div",{className:xe.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(m.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(m.fechaFin)}`})]}),m.link&&h.jsx("a",{onClick:S=>{S.stopPropagation()},href:m?.link,target:"_blank",style:{textDecoration:"none"},children:h.jsx("img",{src:$b,width:15,style:{marginLeft:"3px"}})})]},m.eventoID)})]},d))})]}),h.jsxs("div",{className:xe.calendarsSection,hidden:!0,children:[h.jsxs("button",{onClick:u,className:xe.collapsibleHeader,children:[h.jsxs("div",{className:xe.headerTitle,children:[h.jsx("h3",{children:"Calendarios"}),h.jsx("span",{className:xe.calendarCount,children:"1"})]}),h.jsx(sb,{className:`${xe.chevronIcon} ${c?xe.collapsed:""}`})]}),h.jsxs("div",{className:`${xe.collapsibleContent} ${c?xe.hidden:""}`,children:[h.jsxs("div",{className:xe.calendarItem,children:[h.jsx("div",{className:xe.circularCheckbox,children:h.jsx(cb,{size:24,className:xe.checkedIcon})}),h.jsx(nd,{size:24,className:xe.calendarIcon}),h.jsx("span",{children:"Mi calendario"})]}),h.jsxs("div",{className:xe.calendarItem,onClick:n,children:[h.jsx("div",{className:xe.circularCheckbox,children:h.jsx(lb,{size:24,className:xe.uncheckedIcon})}),h.jsx(ub,{size:24,className:xe.calendarIcon}),h.jsx("span",{children:"Outlook"})]}),h.jsxs("div",{className:xe.syncButton,onClick:t,children:[h.jsx(nd,{size:24,className:xe.googleIcon}),h.jsx("span",{children:"Sincronizar Google Calendar"})]})]})]})]})},Qt={dayCell:"_dayCell_ph891_1",dayCellContainer:"_dayCellContainer_ph891_23",dayNumber:"_dayNumber_ph891_55",dayNumberToday:"_dayNumberToday_ph891_69",notCurrentMonth:"_notCurrentMonth_ph891_91",CurrentDay:"_CurrentDay_ph891_129",eventsList:"_eventsList_ph891_137",eventItem:"_eventItem_ph891_155",eventTitle:"_eventTitle_ph891_187",eventTime:"_eventTime_ph891_217",seeMoreLink:"_seeMoreLink_ph891_245"},md=25,Lb=22,zb=({dayNumber:e,date:r,events:t,isToday:n,isCurrentMonth:o,onDayClick:i,onEventClick:a,onSeeMoreClick:s})=>{const c=[Qt.dayCell,o?"":Qt.notCurrentMonth,Qt.CurrentDay].join(" ").trim(),l=x.useRef(null),[u,d]=x.useState(t.length),f=()=>{i?.(r)};x.useLayoutEffect(()=>{const p=()=>{if(l.current){const y=l.current.clientHeight;let S=Math.floor(y/md);if(S<t.length){const C=Math.floor((y-Lb)/md);S=Math.max(0,C)}d(S)}};return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[t.length]);const m=t.slice(0,u==0?1:u),g=t.length-(u==0?1:u);return h.jsxs("div",{className:`${c} ${Qt.dayCellContainer}`,onClick:f,children:[h.jsx("div",{className:n?Qt.dayNumber:Qt.dayNumberToday,children:e}),h.jsxs("div",{className:Qt.eventsList,ref:l,children:[m.map(p=>h.jsxs("div",{className:Qt.eventItem,style:{backgroundColor:p.color||"#007bff"},onClick:y=>{y.stopPropagation(),a?.(p)},children:[h.jsx("span",{className:Qt.eventTitle,children:p.titulo}),h.jsx("span",{className:Qt.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(p.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(p.fechaFin)}`})]},p.eventoID)),g>0&&h.jsxs("div",{className:Qt.seeMoreLink,onClick:p=>{p.stopPropagation(),s(t,r)},children:[g," más..."]})]})]})},gd={weekDaysContainer:"_weekDaysContainer_5h5ol_1",weekDay:"_weekDay_5h5ol_1"},Bb=()=>{const e=["Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"];return h.jsx("div",{className:gd.weekDaysContainer,children:e.map(r=>h.jsx("div",{className:gd.weekDay,children:r},r))})},Ni={calendarGridContainer:"_calendarGridContainer_1expw_1",daysContainer:"_daysContainer_1expw_23",rows5:"_rows5_1expw_37",rows6:"_rows6_1expw_45"};function Vb(e,...r){const t=bs.bind(null,r.find(n=>typeof n=="object"));return r.map(t)}function Fb(e,r){const[t,n]=Vb(e,r.start,r.end);return{start:t,end:n}}function Yb(e,r){const{start:t,end:n}=Fb(r?.in,e);let o=+t>+n;const i=o?+t:+n,a=o?n:t;a.setHours(0,0,0,0);let s=1;const c=[];for(;+a<=i;)c.push(bs(t,a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return o?c.reverse():c}function Ub(e,r){const t=r?.weekStartsOn,n=Nr(e,r?.in),o=n.getDay(),i=(o<t?-7:0)+6-(o-t);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}function Hb(e,r,t){const n=+Nr(e,t?.in),[o,i]=[+Nr(r.start,t?.in),+Nr(r.end,t?.in)].sort((a,s)=>a-s);return n>=o&&n<=i}const Wb=({currentDate:e,events:r,onDayClick:t,onEventClick:n,onSeeMoreClick:o})=>{const i=w.startOfMonth(e),a=w.endOfMonth(e),s=w.startOfWeek(i,{weekStartsOn:1}),c=Ub(a,{weekStartsOn:1}),l=Yb({start:s,end:c}),u={},d=l.length/7,f=`${Ni.daysContainer} ${d===5?Ni.rows5:Ni.rows6}`;return r.forEach(m=>{const g=w.format(m.fechaInicio,"yyyy-MM-dd");u[g]||(u[g]=[]),u[g].push(m)}),h.jsxs("div",{className:Ni.calendarGridContainer,children:[h.jsx(Bb,{}),h.jsx("div",{className:f,children:l.map(m=>{const g=r.filter(p=>Hb(m,{start:w.startOfDay(p.fechaInicio),end:w.endOfDay(p.fechaFin)}));return h.jsx(zb,{dayNumber:m.getDate(),date:m,events:g,isToday:w.isToday(m),isCurrentMonth:w.isSameMonth(m,e),onDayClick:t,onEventClick:n,onSeeMoreClick:o},m.toISOString())})})]})};function vd(e,r){return function(){return e.apply(r,arguments)}}const{toString:Zb}=Object.prototype,{getPrototypeOf:_s}=Object,{iterator:$i,toStringTag:yd}=Symbol,ji=(e=>r=>{const t=Zb.call(r);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Xt=e=>(e=e.toLowerCase(),r=>ji(r)===e),Li=e=>r=>typeof r===e,{isArray:kn}=Array,fo=Li("undefined");function po(e){return e!==null&&!fo(e)&&e.constructor!==null&&!fo(e.constructor)&&kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bd=Xt("ArrayBuffer");function qb(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&bd(e.buffer),r}const Kb=Li("string"),kt=Li("function"),wd=Li("number"),ho=e=>e!==null&&typeof e=="object",Gb=e=>e===!0||e===!1,zi=e=>{if(ji(e)!=="object")return!1;const r=_s(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(yd in e)&&!($i in e)},Qb=e=>{if(!ho(e)||po(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Xb=Xt("Date"),Jb=Xt("File"),e1=Xt("Blob"),t1=Xt("FileList"),r1=e=>ho(e)&&kt(e.pipe),n1=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||kt(e.append)&&((r=ji(e))==="formdata"||r==="object"&&kt(e.toString)&&e.toString()==="[object FormData]"))},o1=Xt("URLSearchParams"),[i1,a1,s1,c1]=["ReadableStream","Request","Response","Headers"].map(Xt),l1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mo(e,r,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),kn(e))for(n=0,o=e.length;n<o;n++)r.call(null,e[n],n,e);else{if(po(e))return;const i=t?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],r.call(null,e[s],s,e)}}function _d(e,r){if(po(e))return null;r=r.toLowerCase();const t=Object.keys(e);let n=t.length,o;for(;n-- >0;)if(o=t[n],r===o.toLowerCase())return o;return null}const Kr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xd=e=>!fo(e)&&e!==Kr;function xs(){const{caseless:e}=xd(this)&&this||{},r={},t=(n,o)=>{const i=e&&_d(r,o)||o;zi(r[i])&&zi(n)?r[i]=xs(r[i],n):zi(n)?r[i]=xs({},n):kn(n)?r[i]=n.slice():r[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&mo(arguments[n],t);return r}const u1=(e,r,t,{allOwnKeys:n}={})=>(mo(r,(o,i)=>{t&&kt(o)?e[i]=vd(o,t):e[i]=o},{allOwnKeys:n}),e),d1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),f1=(e,r,t,n)=>{e.prototype=Object.create(r.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),t&&Object.assign(e.prototype,t)},p1=(e,r,t,n)=>{let o,i,a;const s={};if(r=r||{},e==null)return r;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,r))&&!s[a]&&(r[a]=e[a],s[a]=!0);e=t!==!1&&_s(e)}while(e&&(!t||t(e,r))&&e!==Object.prototype);return r},h1=(e,r,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=r.length;const n=e.indexOf(r,t);return n!==-1&&n===t},m1=e=>{if(!e)return null;if(kn(e))return e;let r=e.length;if(!wd(r))return null;const t=new Array(r);for(;r-- >0;)t[r]=e[r];return t},g1=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&_s(Uint8Array)),v1=(e,r)=>{const n=(e&&e[$i]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;r.call(e,i[0],i[1])}},y1=(e,r)=>{let t;const n=[];for(;(t=e.exec(r))!==null;)n.push(t);return n},b1=Xt("HTMLFormElement"),w1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,o){return n.toUpperCase()+o}),Sd=(({hasOwnProperty:e})=>(r,t)=>e.call(r,t))(Object.prototype),_1=Xt("RegExp"),Cd=(e,r)=>{const t=Object.getOwnPropertyDescriptors(e),n={};mo(t,(o,i)=>{let a;(a=r(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},x1=e=>{Cd(e,(r,t)=>{if(kt(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(kt(n)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},S1=(e,r)=>{const t={},n=o=>{o.forEach(i=>{t[i]=!0})};return kn(e)?n(e):n(String(e).split(r)),t},C1=()=>{},E1=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r;function k1(e){return!!(e&&kt(e.append)&&e[yd]==="FormData"&&e[$i])}const D1=e=>{const r=new Array(10),t=(n,o)=>{if(ho(n)){if(r.indexOf(n)>=0)return;if(po(n))return n;if(!("toJSON"in n)){r[o]=n;const i=kn(n)?[]:{};return mo(n,(a,s)=>{const c=t(a,o+1);!fo(c)&&(i[s]=c)}),r[o]=void 0,i}}return n};return t(e,0)},T1=Xt("AsyncFunction"),O1=e=>e&&(ho(e)||kt(e))&&kt(e.then)&&kt(e.catch),Ed=((e,r)=>e?setImmediate:r?((t,n)=>(Kr.addEventListener("message",({source:o,data:i})=>{o===Kr&&i===t&&n.length&&n.shift()()},!1),o=>{n.push(o),Kr.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",kt(Kr.postMessage)),M1=typeof queueMicrotask<"u"?queueMicrotask.bind(Kr):typeof process<"u"&&process.nextTick||Ed,z={isArray:kn,isArrayBuffer:bd,isBuffer:po,isFormData:n1,isArrayBufferView:qb,isString:Kb,isNumber:wd,isBoolean:Gb,isObject:ho,isPlainObject:zi,isEmptyObject:Qb,isReadableStream:i1,isRequest:a1,isResponse:s1,isHeaders:c1,isUndefined:fo,isDate:Xb,isFile:Jb,isBlob:e1,isRegExp:_1,isFunction:kt,isStream:r1,isURLSearchParams:o1,isTypedArray:g1,isFileList:t1,forEach:mo,merge:xs,extend:u1,trim:l1,stripBOM:d1,inherits:f1,toFlatObject:p1,kindOf:ji,kindOfTest:Xt,endsWith:h1,toArray:m1,forEachEntry:v1,matchAll:y1,isHTMLForm:b1,hasOwnProperty:Sd,hasOwnProp:Sd,reduceDescriptors:Cd,freezeMethods:x1,toObjectSet:S1,toCamelCase:w1,noop:C1,toFiniteNumber:E1,findKey:_d,global:Kr,isContextDefined:xd,isSpecCompliantForm:k1,toJSONObject:D1,isAsyncFn:T1,isThenable:O1,setImmediate:Ed,asap:M1,isIterable:e=>e!=null&&kt(e[$i])};function be(e,r,t,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),t&&(this.config=t),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}z.inherits(be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.status}}});const kd=be.prototype,Dd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Dd[e]={value:e}}),Object.defineProperties(be,Dd),Object.defineProperty(kd,"isAxiosError",{value:!0}),be.from=(e,r,t,n,o,i)=>{const a=Object.create(kd);return z.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),be.call(a,e.message,r,t,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const P1=null;function Ss(e){return z.isPlainObject(e)||z.isArray(e)}function Td(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function Od(e,r,t){return e?e.concat(r).map(function(o,i){return o=Td(o),!t&&i?"["+o+"]":o}).join(t?".":""):r}function A1(e){return z.isArray(e)&&!e.some(Ss)}const I1=z.toFlatObject(z,{},null,function(r){return/^is[A-Z]/.test(r)});function Bi(e,r,t){if(!z.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,t=z.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!z.isUndefined(y[p])});const n=t.metaTokens,o=t.visitor||u,i=t.dots,a=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(r);if(!z.isFunction(o))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(z.isDate(g))return g.toISOString();if(z.isBoolean(g))return g.toString();if(!c&&z.isBlob(g))throw new be("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(g)||z.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,y){let S=g;if(g&&!y&&typeof g=="object"){if(z.endsWith(p,"{}"))p=n?p:p.slice(0,-2),g=JSON.stringify(g);else if(z.isArray(g)&&A1(g)||(z.isFileList(g)||z.endsWith(p,"[]"))&&(S=z.toArray(g)))return p=Td(p),S.forEach(function(k,E){!(z.isUndefined(k)||k===null)&&r.append(a===!0?Od([p],E,i):a===null?p:p+"[]",l(k))}),!1}return Ss(g)?!0:(r.append(Od(y,p,i),l(g)),!1)}const d=[],f=Object.assign(I1,{defaultVisitor:u,convertValue:l,isVisitable:Ss});function m(g,p){if(!z.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(g),z.forEach(g,function(S,C){(!(z.isUndefined(S)||S===null)&&o.call(r,S,z.isString(C)?C.trim():C,p,f))===!0&&m(S,p?p.concat(C):[C])}),d.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return m(e),r}function Md(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return r[n]})}function Cs(e,r){this._pairs=[],e&&Bi(e,this,r)}const Pd=Cs.prototype;Pd.append=function(r,t){this._pairs.push([r,t])},Pd.toString=function(r){const t=r?function(n){return r.call(this,n,Md)}:Md;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function R1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ad(e,r,t){if(!r)return e;const n=t&&t.encode||R1;z.isFunction(t)&&(t={serialize:t});const o=t&&t.serialize;let i;if(o?i=o(r,t):i=z.isURLSearchParams(r)?r.toString():new Cs(r,t).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Id{constructor(){this.handlers=[]}use(r,t,n){return this.handlers.push({fulfilled:r,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){z.forEach(this.handlers,function(n){n!==null&&r(n)})}}const Rd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},N1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Cs,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Es=typeof window<"u"&&typeof document<"u",ks=typeof navigator=="object"&&navigator||void 0,$1=Es&&(!ks||["ReactNative","NativeScript","NS"].indexOf(ks.product)<0),j1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",L1=Es&&window.location.href||"http://localhost",gt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Es,hasStandardBrowserEnv:$1,hasStandardBrowserWebWorkerEnv:j1,navigator:ks,origin:L1},Symbol.toStringTag,{value:"Module"})),...N1};function z1(e,r){return Bi(e,new gt.classes.URLSearchParams,{visitor:function(t,n,o,i){return gt.isNode&&z.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...r})}function B1(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function V1(e){const r={},t=Object.keys(e);let n;const o=t.length;let i;for(n=0;n<o;n++)i=t[n],r[i]=e[i];return r}function Nd(e){function r(t,n,o,i){let a=t[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=i>=t.length;return a=!a&&z.isArray(o)?o.length:a,c?(z.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!z.isObject(o[a]))&&(o[a]=[]),r(t,n,o[a],i)&&z.isArray(o[a])&&(o[a]=V1(o[a])),!s)}if(z.isFormData(e)&&z.isFunction(e.entries)){const t={};return z.forEachEntry(e,(n,o)=>{r(B1(n),o,t,0)}),t}return null}function F1(e,r,t){if(z.isString(e))try{return(r||JSON.parse)(e),z.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const go={transitional:Rd,adapter:["xhr","http","fetch"],transformRequest:[function(r,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=z.isObject(r);if(i&&z.isHTMLForm(r)&&(r=new FormData(r)),z.isFormData(r))return o?JSON.stringify(Nd(r)):r;if(z.isArrayBuffer(r)||z.isBuffer(r)||z.isStream(r)||z.isFile(r)||z.isBlob(r)||z.isReadableStream(r))return r;if(z.isArrayBufferView(r))return r.buffer;if(z.isURLSearchParams(r))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return z1(r,this.formSerializer).toString();if((s=z.isFileList(r))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Bi(s?{"files[]":r}:r,c&&new c,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),F1(r)):r}],transformResponse:[function(r){const t=this.transitional||go.transitional,n=t&&t.forcedJSONParsing,o=this.responseType==="json";if(z.isResponse(r)||z.isReadableStream(r))return r;if(r&&z.isString(r)&&(n&&!this.responseType||o)){const a=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(r)}catch(s){if(a)throw s.name==="SyntaxError"?be.from(s,be.ERR_BAD_RESPONSE,this,null,this.response):s}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{go.headers[e]={}});const Y1=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),U1=e=>{const r={};let t,n,o;return e&&e.split(`
167
- `).forEach(function(a){o=a.indexOf(":"),t=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!t||r[t]&&Y1[t])&&(t==="set-cookie"?r[t]?r[t].push(n):r[t]=[n]:r[t]=r[t]?r[t]+", "+n:n)}),r},$d=Symbol("internals");function vo(e){return e&&String(e).trim().toLowerCase()}function Vi(e){return e===!1||e==null?e:z.isArray(e)?e.map(Vi):String(e)}function H1(e){const r=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)r[n[1]]=n[2];return r}const W1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ds(e,r,t,n,o){if(z.isFunction(n))return n.call(this,r,t);if(o&&(r=t),!!z.isString(r)){if(z.isString(n))return r.indexOf(n)!==-1;if(z.isRegExp(n))return n.test(r)}}function Z1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,t,n)=>t.toUpperCase()+n)}function q1(e,r){const t=z.toCamelCase(" "+r);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(o,i,a){return this[n].call(this,r,o,i,a)},configurable:!0})})}let Dt=class{constructor(r){r&&this.set(r)}set(r,t,n){const o=this;function i(s,c,l){const u=vo(c);if(!u)throw new Error("header name must be a non-empty string");const d=z.findKey(o,u);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||c]=Vi(s))}const a=(s,c)=>z.forEach(s,(l,u)=>i(l,u,c));if(z.isPlainObject(r)||r instanceof this.constructor)a(r,t);else if(z.isString(r)&&(r=r.trim())&&!W1(r))a(U1(r),t);else if(z.isObject(r)&&z.isIterable(r)){let s={},c,l;for(const u of r){if(!z.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[l=u[0]]=(c=s[l])?z.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}a(s,t)}else r!=null&&i(t,r,n);return this}get(r,t){if(r=vo(r),r){const n=z.findKey(this,r);if(n){const o=this[n];if(!t)return o;if(t===!0)return H1(o);if(z.isFunction(t))return t.call(this,o,n);if(z.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,t){if(r=vo(r),r){const n=z.findKey(this,r);return!!(n&&this[n]!==void 0&&(!t||Ds(this,this[n],n,t)))}return!1}delete(r,t){const n=this;let o=!1;function i(a){if(a=vo(a),a){const s=z.findKey(n,a);s&&(!t||Ds(n,n[s],s,t))&&(delete n[s],o=!0)}}return z.isArray(r)?r.forEach(i):i(r),o}clear(r){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const i=t[n];(!r||Ds(this,this[i],i,r,!0))&&(delete this[i],o=!0)}return o}normalize(r){const t=this,n={};return z.forEach(this,(o,i)=>{const a=z.findKey(n,i);if(a){t[a]=Vi(o),delete t[i];return}const s=r?Z1(i):String(i).trim();s!==i&&delete t[i],t[s]=Vi(o),n[s]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const t=Object.create(null);return z.forEach(this,(n,o)=>{n!=null&&n!==!1&&(t[o]=r&&z.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,t])=>r+": "+t).join(`
168
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...t){const n=new this(r);return t.forEach(o=>n.set(o)),n}static accessor(r){const n=(this[$d]=this[$d]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=vo(a);n[s]||(q1(o,a),n[s]=!0)}return z.isArray(r)?r.forEach(i):i(r),this}};Dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.reduceDescriptors(Dt.prototype,({value:e},r)=>{let t=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(n){this[t]=n}}}),z.freezeMethods(Dt);function Ts(e,r){const t=this||go,n=r||t,o=Dt.from(n.headers);let i=n.data;return z.forEach(e,function(s){i=s.call(t,i,o.normalize(),r?r.status:void 0)}),o.normalize(),i}function jd(e){return!!(e&&e.__CANCEL__)}function Dn(e,r,t){be.call(this,e??"canceled",be.ERR_CANCELED,r,t),this.name="CanceledError"}z.inherits(Dn,be,{__CANCEL__:!0});function Ld(e,r,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):r(new be("Request failed with status code "+t.status,[be.ERR_BAD_REQUEST,be.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function K1(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function G1(e,r){e=e||10;const t=new Array(e),n=new Array(e);let o=0,i=0,a;return r=r!==void 0?r:1e3,function(c){const l=Date.now(),u=n[i];a||(a=l),t[o]=c,n[o]=l;let d=i,f=0;for(;d!==o;)f+=t[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<r)return;const m=u&&l-u;return m?Math.round(f*1e3/m):void 0}}function Q1(e,r){let t=0,n=1e3/r,o,i;const a=(l,u=Date.now())=>{t=u,o=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const u=Date.now(),d=u-t;d>=n?a(l,u):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-d)))},()=>o&&a(o)]}const Fi=(e,r,t=3)=>{let n=0;const o=G1(50,250);return Q1(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),u=a<=s;n=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-a)/l:void 0,event:i,lengthComputable:s!=null,[r?"download":"upload"]:!0};e(d)},t)},zd=(e,r)=>{const t=e!=null;return[n=>r[0]({lengthComputable:t,total:e,loaded:n}),r[1]]},Bd=e=>(...r)=>z.asap(()=>e(...r)),X1=gt.hasStandardBrowserEnv?((e,r)=>t=>(t=new URL(t,gt.origin),e.protocol===t.protocol&&e.host===t.host&&(r||e.port===t.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,J1=gt.hasStandardBrowserEnv?{write(e,r,t,n,o,i){const a=[e+"="+encodeURIComponent(r)];z.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),z.isString(n)&&a.push("path="+n),z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function e2(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function t2(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function Vd(e,r,t){let n=!e2(r);return e&&(n||t==!1)?t2(e,r):r}const Fd=e=>e instanceof Dt?{...e}:e;function Gr(e,r){r=r||{};const t={};function n(l,u,d,f){return z.isPlainObject(l)&&z.isPlainObject(u)?z.merge.call({caseless:f},l,u):z.isPlainObject(u)?z.merge({},u):z.isArray(u)?u.slice():u}function o(l,u,d,f){if(z.isUndefined(u)){if(!z.isUndefined(l))return n(void 0,l,d,f)}else return n(l,u,d,f)}function i(l,u){if(!z.isUndefined(u))return n(void 0,u)}function a(l,u){if(z.isUndefined(u)){if(!z.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function s(l,u,d){if(d in r)return n(l,u);if(d in e)return n(void 0,l)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,u,d)=>o(Fd(l),Fd(u),d,!0)};return z.forEach(Object.keys({...e,...r}),function(u){const d=c[u]||o,f=d(e[u],r[u],u);z.isUndefined(f)&&d!==s||(t[u]=f)}),t}const Yd=e=>{const r=Gr({},e);let{data:t,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=r;r.headers=a=Dt.from(a),r.url=Ad(Vd(r.baseURL,r.url,r.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(z.isFormData(t)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...u].join("; "))}}if(gt.hasStandardBrowserEnv&&(n&&z.isFunction(n)&&(n=n(r)),n||n!==!1&&X1(r.url))){const l=o&&i&&J1.read(i);l&&a.set(o,l)}return r},r2=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,n){const o=Yd(e);let i=o.data;const a=Dt.from(o.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=o,u,d,f,m,g;function p(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function S(){if(!y)return;const k=Dt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:k,config:e,request:y};Ld(function(N){t(N),p()},function(N){n(N),p()},_),y=null}"onloadend"in y?y.onloadend=S:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(S)},y.onabort=function(){y&&(n(new be("Request aborted",be.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new be("Network Error",be.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||Rd;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new be(E,_.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&z.forEach(a.toJSON(),function(E,_){y.setRequestHeader(_,E)}),z.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),s&&s!=="json"&&(y.responseType=o.responseType),l&&([f,g]=Fi(l,!0),y.addEventListener("progress",f)),c&&y.upload&&([d,m]=Fi(c),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=k=>{y&&(n(!k||k.type?new Dn(null,e,y):k),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const C=K1(o.url);if(C&&gt.protocols.indexOf(C)===-1){n(new be("Unsupported protocol "+C+":",be.ERR_BAD_REQUEST,e));return}y.send(i||null)})},n2=(e,r)=>{const{length:t}=e=e?e.filter(Boolean):[];if(r||t){let n=new AbortController,o;const i=function(l){if(!o){o=!0,s();const u=l instanceof Error?l:this.reason;n.abort(u instanceof be?u:new Dn(u instanceof Error?u.message:u))}};let a=r&&setTimeout(()=>{a=null,i(new be(`timeout ${r} of ms exceeded`,be.ETIMEDOUT))},r);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>z.asap(s),c}},o2=function*(e,r){let t=e.byteLength;if(t<r){yield e;return}let n=0,o;for(;n<t;)o=n+r,yield e.slice(n,o),n=o},i2=async function*(e,r){for await(const t of a2(e))yield*o2(t,r)},a2=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const r=e.getReader();try{for(;;){const{done:t,value:n}=await r.read();if(t)break;yield n}}finally{await r.cancel()}},Ud=(e,r,t,n)=>{const o=i2(e,r);let i=0,a,s=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await o.next();if(l){s(),c.close();return}let d=u.byteLength;if(t){let f=i+=d;t(f)}c.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(c){return s(c),o.return()}},{highWaterMark:2})},Yi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hd=Yi&&typeof ReadableStream=="function",s2=Yi&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Wd=(e,...r)=>{try{return!!e(...r)}catch{return!1}},c2=Hd&&Wd(()=>{let e=!1;const r=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r}),Zd=64*1024,Os=Hd&&Wd(()=>z.isReadableStream(new Response("").body)),Ui={stream:Os&&(e=>e.body)};Yi&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!Ui[r]&&(Ui[r]=z.isFunction(e[r])?t=>t[r]():(t,n)=>{throw new be(`Response type '${r}' is not supported`,be.ERR_NOT_SUPPORT,n)})})})(new Response);const l2=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new Request(gt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(z.isArrayBufferView(e)||z.isArrayBuffer(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e=e+""),z.isString(e))return(await s2(e)).byteLength},u2=async(e,r)=>{const t=z.toFiniteNumber(e.getContentLength());return t??l2(r)},Ms={http:P1,xhr:r2,fetch:Yi&&(async e=>{let{url:r,method:t,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Yd(e);l=l?(l+"").toLowerCase():"text";let m=n2([o,i&&i.toAbortSignal()],a),g;const p=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let y;try{if(c&&c2&&t!=="get"&&t!=="head"&&(y=await u2(u,n))!==0){let _=new Request(r,{method:"POST",body:n,duplex:"half"}),O;if(z.isFormData(n)&&(O=_.headers.get("content-type"))&&u.setContentType(O),_.body){const[N,q]=zd(y,Fi(Bd(c)));n=Ud(_.body,Zd,N,q)}}z.isString(d)||(d=d?"include":"omit");const S="credentials"in Request.prototype;g=new Request(r,{...f,signal:m,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:S?d:void 0});let C=await fetch(g,f);const k=Os&&(l==="stream"||l==="response");if(Os&&(s||k&&p)){const _={};["status","statusText","headers"].forEach(Z=>{_[Z]=C[Z]});const O=z.toFiniteNumber(C.headers.get("content-length")),[N,q]=s&&zd(O,Fi(Bd(s),!0))||[];C=new Response(Ud(C.body,Zd,N,()=>{q&&q(),p&&p()}),_)}l=l||"text";let E=await Ui[z.findKey(Ui,l)||"text"](C,e);return!k&&p&&p(),await new Promise((_,O)=>{Ld(_,O,{data:E,headers:Dt.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(S){throw p&&p(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new be("Network Error",be.ERR_NETWORK,e,g),{cause:S.cause||S}):be.from(S,S&&S.code,e,g)}})};z.forEach(Ms,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const qd=e=>`- ${e}`,d2=e=>z.isFunction(e)||e===null||e===!1,Kd={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:r}=e;let t,n;const o={};for(let i=0;i<r;i++){t=e[i];let a;if(n=t,!d2(t)&&(n=Ms[(a=String(t)).toLowerCase()],n===void 0))throw new be(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
169
- `+i.map(qd).join(`
170
- `):" "+qd(i[0]):"as no adapter specified";throw new be("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Ms};function Ps(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dn(null,e)}function Gd(e){return Ps(e),e.headers=Dt.from(e.headers),e.data=Ts.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Kd.getAdapter(e.adapter||go.adapter)(e).then(function(n){return Ps(e),n.data=Ts.call(e,e.transformResponse,n),n.headers=Dt.from(n.headers),n},function(n){return jd(n)||(Ps(e),n&&n.response&&(n.response.data=Ts.call(e,e.transformResponse,n.response),n.response.headers=Dt.from(n.response.headers))),Promise.reject(n)})}const Qd="1.11.0",Hi={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{Hi[e]=function(n){return typeof n===e||"a"+(r<1?"n ":" ")+e}});const Xd={};Hi.transitional=function(r,t,n){function o(i,a){return"[Axios v"+Qd+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(r===!1)throw new be(o(a," has been removed"+(t?" in "+t:"")),be.ERR_DEPRECATED);return t&&!Xd[a]&&(Xd[a]=!0,console.warn(o(a," has been deprecated since v"+t+" and will be removed in the near future"))),r?r(i,a,s):!0}},Hi.spelling=function(r){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${r}`),!0)};function f2(e,r,t){if(typeof e!="object")throw new be("options must be an object",be.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=r[i];if(a){const s=e[i],c=s===void 0||a(s,i,e);if(c!==!0)throw new be("option "+i+" must be "+c,be.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new be("Unknown option "+i,be.ERR_BAD_OPTION)}}const Wi={assertOptions:f2,validators:Hi},hr=Wi.validators;let Qr=class{constructor(r){this.defaults=r||{},this.interceptors={request:new Id,response:new Id}}async request(r,t){try{return await this._request(r,t)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
171
- `+i):n.stack=i}catch{}}throw n}}_request(r,t){typeof r=="string"?(t=t||{},t.url=r):t=r||{},t=Gr(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;n!==void 0&&Wi.assertOptions(n,{silentJSONParsing:hr.transitional(hr.boolean),forcedJSONParsing:hr.transitional(hr.boolean),clarifyTimeoutError:hr.transitional(hr.boolean)},!1),o!=null&&(z.isFunction(o)?t.paramsSerializer={serialize:o}:Wi.assertOptions(o,{encode:hr.function,serialize:hr.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Wi.assertOptions(t,{baseUrl:hr.spelling("baseURL"),withXsrfToken:hr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&z.merge(i.common,i[t.method]);i&&z.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),t.headers=Dt.concat(a,i);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const g=[Gd.bind(this),void 0];for(g.unshift(...s),g.push(...l),f=g.length,u=Promise.resolve(t);d<f;)u=u.then(g[d++],g[d++]);return u}f=s.length;let m=t;for(d=0;d<f;){const g=s[d++],p=s[d++];try{m=g(m)}catch(y){p.call(this,y);break}}try{u=Gd.call(this,m)}catch(g){return Promise.reject(g)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(r){r=Gr(this.defaults,r);const t=Vd(r.baseURL,r.url,r.allowAbsoluteUrls);return Ad(t,r.params,r.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(r){Qr.prototype[r]=function(t,n){return this.request(Gr(n||{},{method:r,url:t,data:(n||{}).data}))}}),z.forEach(["post","put","patch"],function(r){function t(n){return function(i,a,s){return this.request(Gr(s||{},{method:r,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Qr.prototype[r]=t(),Qr.prototype[r+"Form"]=t(!0)});let p2=class sh{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},r(function(i,a,s){n.reason||(n.reason=new Dn(i,a,s),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const t=this._listeners.indexOf(r);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const r=new AbortController,t=n=>{r.abort(n)};return this.subscribe(t),r.signal.unsubscribe=()=>this.unsubscribe(t),r.signal}static source(){let r;return{token:new sh(function(o){r=o}),cancel:r}}};function h2(e){return function(t){return e.apply(null,t)}}function m2(e){return z.isObject(e)&&e.isAxiosError===!0}const As={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(As).forEach(([e,r])=>{As[r]=e});function Jd(e){const r=new Qr(e),t=vd(Qr.prototype.request,r);return z.extend(t,Qr.prototype,r,{allOwnKeys:!0}),z.extend(t,r,null,{allOwnKeys:!0}),t.create=function(o){return Jd(Gr(e,o))},t}const rt=Jd(go);rt.Axios=Qr,rt.CanceledError=Dn,rt.CancelToken=p2,rt.isCancel=jd,rt.VERSION=Qd,rt.toFormData=Bi,rt.AxiosError=be,rt.Cancel=rt.CanceledError,rt.all=function(r){return Promise.all(r)},rt.spread=h2,rt.isAxiosError=m2,rt.mergeConfig=Gr,rt.AxiosHeaders=Dt,rt.formToJSON=e=>Nd(z.isHTMLForm(e)?new FormData(e):e),rt.getAdapter=Kd.getAdapter,rt.HttpStatusCode=As,rt.default=rt;const{Axios:ND,AxiosError:$D,CanceledError:jD,isCancel:LD,CancelToken:zD,VERSION:BD,all:VD,Cancel:FD,isAxiosError:YD,spread:UD,toFormData:HD,AxiosHeaders:WD,HttpStatusCode:ZD,formToJSON:qD,getAdapter:KD,mergeConfig:GD}=rt,ef={token:null},g2=e=>{ef.token=e},Xr=rt.create({headers:{"Content-Type":"application/json"}});Xr.interceptors.request.use(e=>{const r=ef.token;return r&&(e.headers.Authorization=`Bearer ${r}`),e},e=>Promise.reject(e));const tf=x.createContext(void 0),v2=({config:e,children:r})=>(x.useEffect(()=>{e.getToken&&g2(e.getToken)},[e.getToken]),h.jsx(tf.Provider,{value:e,children:r})),y2=()=>{const e=x.useContext(tf);if(!e)throw new Error("useApiConfig debe ser usado dentro de un ApiProvider");return e},Is=()=>{const{calendarApiUrl:e}=y2(),r=async s=>{try{return(await Xr.get(`${e}/ListarEventosXUsuario/${s}`)).data.map(l=>{const u=new Date(l.fechaInicio),d=new Date(l.fechaFin),f=l.solicitudRelacionada?.[0]?.nombreCliente??null;return{...l,fechaInicio:u,fechaFin:d,client:f}})}catch(c){return console.error("Error events:",c),[]}},t=async(s,c)=>{try{const l=await Xr.post(`${e}/InsertarEvento/${c}`,s);return{...l.data,fechaInicio:new Date(l.data.fechaInicio),fechaFin:new Date(l.data.fechaFin)}}catch(l){throw console.log("Error creating event:",l),l}},n=async s=>{try{const c=await Xr.post(`${e}/ActualizarEvento/${s.eventoID}`,s);return{eventoID:c.data.eventoID,titulo:c.data.titulo,descripcion:c.data.descripcion,fechaInicio:new Date(c.data.fechaInicio),fechaFin:new Date(c.data.fechaFin),todoElDia:c.data.todoElDia,color:c.data.color,repetir:c.data.repetir,link:c.data.link,solID:c.data.solID,disID:c.data.disID,client:c.data.client}}catch(c){throw console.log("Error updating event:",c),c}},o=async s=>{try{const c=await Xr.get(`${e}/ObtenerEvento/${s}`),l=c.data.solicitudRelacionada?.[0]?.nombreCliente||null;return{...c.data,fechaInicio:new Date(c.data.fechaInicio),fechaFin:new Date(c.data.fechaFin),client:l}}catch(c){throw console.error(`Error fetching event with ID ${s}:`,c),c}},i=async s=>{try{await Xr.post(`${e}/EliminarEvento/${s}`)}catch(c){throw console.log(`Error ID ${s}:`,c),c}},a=x.useCallback(async(s,c,l,u)=>{try{const d={masNombreBD:l,usrID:u,disID:c,nombreCliente:s},m=(await Xr.post(`${e}/ConsultaClientesXUsuariologgeado/`,d)).data?.data;return Array.isArray(m)?m.map(g=>({clienteID:g.clienteID,solID:g.solID,marca:g?.marca,modelo:g?.modelo,nombreCliente:g?.nombreCliente})):[]}catch(d){return console.error("Error clientes:",d),[]}},[e]);return{getEventsByUser:r,createEvent:t,updateEvent:n,getEventById:o,deleteEvent:i,getClients:a}},rf=qt([h.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),h.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var yo=e=>e.type==="checkbox",Jr=e=>e instanceof Date,bt=e=>e==null;const nf=e=>typeof e=="object";var nt=e=>!bt(e)&&!Array.isArray(e)&&nf(e)&&!Jr(e),of=e=>nt(e)&&e.target?yo(e.target)?e.target.checked:e.target.value:e,b2=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,af=(e,r)=>e.has(b2(r)),w2=e=>{const r=e.constructor&&e.constructor.prototype;return nt(r)&&r.hasOwnProperty("isPrototypeOf")},Rs=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function dt(e){let r;const t=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(Rs&&(e instanceof Blob||n))&&(t||nt(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!w2(e))r=e;else for(const o in e)e.hasOwnProperty(o)&&(r[o]=dt(e[o]));else return e;return r}var Zi=e=>/^\w*$/.test(e),ot=e=>e===void 0,Ns=e=>Array.isArray(e)?e.filter(Boolean):[],$s=e=>Ns(e.replace(/["|']|\]/g,"").split(/\.|\[/)),oe=(e,r,t)=>{if(!r||!nt(e))return t;const n=(Zi(r)?[r]:$s(r)).reduce((o,i)=>bt(o)?o:o[i],e);return ot(n)||n===e?ot(e[r])?t:e[r]:n},jt=e=>typeof e=="boolean",Le=(e,r,t)=>{let n=-1;const o=Zi(r)?[r]:$s(r),i=o.length,a=i-1;for(;++n<i;){const s=o[n];let c=t;if(n!==a){const l=e[s];c=nt(l)||Array.isArray(l)?l:isNaN(+o[n+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=c,e=e[s]}};const qi={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Jt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},xr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},sf=x.createContext(null);sf.displayName="HookFormContext";const js=()=>x.useContext(sf);var cf=(e,r,t,n=!0)=>{const o={defaultValues:r._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return r._proxyFormState[a]!==Jt.all&&(r._proxyFormState[a]=!n||Jt.all),t&&(t[a]=!0),e[a]}});return o};const Ls=typeof window<"u"?x.useLayoutEffect:x.useEffect;function _2(e){const r=js(),{control:t=r.control,disabled:n,name:o,exact:i}=e||{},[a,s]=x.useState(t._formState),c=x.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ls(()=>t._subscribe({name:o,formState:c.current,exact:i,callback:l=>{!n&&s({...t._formState,...l})}}),[o,n,i]),x.useEffect(()=>{c.current.isValid&&t._setValid(!0)},[t]),x.useMemo(()=>cf(a,t,c.current,!1),[a,t])}var mr=e=>typeof e=="string",lf=(e,r,t,n,o)=>mr(e)?(n&&r.watch.add(e),oe(t,e,o)):Array.isArray(e)?e.map(i=>(n&&r.watch.add(i),oe(t,i))):(n&&(r.watchAll=!0),t),zs=e=>bt(e)||!nf(e);function Sr(e,r,t=new WeakSet){if(zs(e)||zs(r))return e===r;if(Jr(e)&&Jr(r))return e.getTime()===r.getTime();const n=Object.keys(e),o=Object.keys(r);if(n.length!==o.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const i of n){const a=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const s=r[i];if(Jr(a)&&Jr(s)||nt(a)&&nt(s)||Array.isArray(a)&&Array.isArray(s)?!Sr(a,s,t):a!==s)return!1}}return!0}function x2(e){const r=js(),{control:t=r.control,name:n,defaultValue:o,disabled:i,exact:a,compute:s}=e||{},c=x.useRef(o),l=x.useRef(s),u=x.useRef(void 0);l.current=s;const d=x.useMemo(()=>t._getWatch(n,c.current),[t,n]),[f,m]=x.useState(l.current?l.current(d):d);return Ls(()=>t._subscribe({name:n,formState:{values:!0},exact:a,callback:g=>{if(!i){const p=lf(n,t._names,g.values||t._formValues,!1,c.current);if(l.current){const y=l.current(p);Sr(y,u.current)||(m(y),u.current=y)}else m(p)}}}),[t,i,n,a]),x.useEffect(()=>t._removeUnmounted()),f}function S2(e){const r=js(),{name:t,disabled:n,control:o=r.control,shouldUnregister:i,defaultValue:a}=e,s=af(o._names.array,t),c=x.useMemo(()=>oe(o._formValues,t,oe(o._defaultValues,t,a)),[o,t,a]),l=x2({control:o,name:t,defaultValue:c,exact:!0}),u=_2({control:o,name:t,exact:!0}),d=x.useRef(e),f=x.useRef(o.register(t,{...e.rules,value:l,...jt(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const m=x.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!oe(u.errors,t)},isDirty:{enumerable:!0,get:()=>!!oe(u.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!oe(u.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!oe(u.validatingFields,t)},error:{enumerable:!0,get:()=>oe(u.errors,t)}}),[u,t]),g=x.useCallback(C=>f.current.onChange({target:{value:of(C),name:t},type:qi.CHANGE}),[t]),p=x.useCallback(()=>f.current.onBlur({target:{value:oe(o._formValues,t),name:t},type:qi.BLUR}),[t,o._formValues]),y=x.useCallback(C=>{const k=oe(o._fields,t);k&&C&&(k._f.ref={focus:()=>C.focus&&C.focus(),select:()=>C.select&&C.select(),setCustomValidity:E=>C.setCustomValidity(E),reportValidity:()=>C.reportValidity()})},[o._fields,t]),S=x.useMemo(()=>({name:t,value:l,...jt(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:g,onBlur:p,ref:y}),[t,n,u.disabled,g,p,y,l]);return x.useEffect(()=>{const C=o._options.shouldUnregister||i;o.register(t,{...d.current.rules,...jt(d.current.disabled)?{disabled:d.current.disabled}:{}});const k=(E,_)=>{const O=oe(o._fields,E);O&&O._f&&(O._f.mount=_)};if(k(t,!0),C){const E=dt(oe(o._options.defaultValues,t));Le(o._defaultValues,t,E),ot(oe(o._formValues,t))&&Le(o._formValues,t,E)}return!s&&o.register(t),()=>{(s?C&&!o._state.action:C)?o.unregister(t):k(t,!1)}},[t,o,s,i]),x.useEffect(()=>{o._setDisabledField({disabled:n,name:t})},[n,t,o]),x.useMemo(()=>({field:S,formState:u,fieldState:m}),[S,u,m])}const er=e=>e.render(S2(e));var Bs=(e,r,t,n,o)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[n]:o||!0}}:{},bo=e=>Array.isArray(e)?e:[e],uf=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}},Tt=e=>nt(e)&&!Object.keys(e).length,Vs=e=>e.type==="file",tr=e=>typeof e=="function",Ki=e=>{if(!Rs)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},df=e=>e.type==="select-multiple",Fs=e=>e.type==="radio",C2=e=>Fs(e)||yo(e),Ys=e=>Ki(e)&&e.isConnected;function E2(e,r){const t=r.slice(0,-1).length;let n=0;for(;n<t;)e=ot(e)?n++:e[r[n++]];return e}function k2(e){for(const r in e)if(e.hasOwnProperty(r)&&!ot(e[r]))return!1;return!0}function ct(e,r){const t=Array.isArray(r)?r:Zi(r)?[r]:$s(r),n=t.length===1?e:E2(e,t),o=t.length-1,i=t[o];return n&&delete n[i],o!==0&&(nt(n)&&Tt(n)||Array.isArray(n)&&k2(n))&&ct(e,t.slice(0,-1)),e}var ff=e=>{for(const r in e)if(tr(e[r]))return!0;return!1};function Gi(e,r={}){const t=Array.isArray(e);if(nt(e)||t)for(const n in e)Array.isArray(e[n])||nt(e[n])&&!ff(e[n])?(r[n]=Array.isArray(e[n])?[]:{},Gi(e[n],r[n])):bt(e[n])||(r[n]=!0);return r}function pf(e,r,t){const n=Array.isArray(e);if(nt(e)||n)for(const o in e)Array.isArray(e[o])||nt(e[o])&&!ff(e[o])?ot(r)||zs(t[o])?t[o]=Array.isArray(e[o])?Gi(e[o],[]):{...Gi(e[o])}:pf(e[o],bt(r)?{}:r[o],t[o]):t[o]=!Sr(e[o],r[o]);return t}var wo=(e,r)=>pf(e,r,Gi(r));const hf={value:!1,isValid:!1},mf={value:!0,isValid:!0};var gf=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ot(e[0].attributes.value)?ot(e[0].value)||e[0].value===""?mf:{value:e[0].value,isValid:!0}:mf:hf}return hf},vf=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:n})=>ot(e)?e:r?e===""?NaN:e&&+e:t&&mr(e)?new Date(e):n?n(e):e;const yf={isValid:!1,value:null};var bf=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,yf):yf;function wf(e){const r=e.ref;return Vs(r)?r.files:Fs(r)?bf(e.refs).value:df(r)?[...r.selectedOptions].map(({value:t})=>t):yo(r)?gf(e.refs).value:vf(ot(r.value)?e.ref.value:r.value,e)}var D2=(e,r,t,n)=>{const o={};for(const i of e){const a=oe(r,i);a&&Le(o,i,a._f)}return{criteriaMode:t,names:[...e],fields:o,shouldUseNativeValidation:n}},Qi=e=>e instanceof RegExp,_o=e=>ot(e)?e:Qi(e)?e.source:nt(e)?Qi(e.value)?e.value.source:e.value:e,_f=e=>({isOnSubmit:!e||e===Jt.onSubmit,isOnBlur:e===Jt.onBlur,isOnChange:e===Jt.onChange,isOnAll:e===Jt.all,isOnTouch:e===Jt.onTouched});const xf="AsyncFunction";var T2=e=>!!e&&!!e.validate&&!!(tr(e.validate)&&e.validate.constructor.name===xf||nt(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===xf)),O2=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Sf=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const xo=(e,r,t,n)=>{for(const o of t||Object.keys(e)){const i=oe(e,o);if(i){const{_f:a,...s}=i;if(a){if(a.refs&&a.refs[0]&&r(a.refs[0],o)&&!n)return!0;if(a.ref&&r(a.ref,a.name)&&!n)return!0;if(xo(s,r))break}else if(nt(s)&&xo(s,r))break}}};function Cf(e,r,t){const n=oe(e,t);if(n||Zi(t))return{error:n,name:t};const o=t.split(".");for(;o.length;){const i=o.join("."),a=oe(r,i),s=oe(e,i);if(a&&!Array.isArray(a)&&t!==i)return{name:t};if(s&&s.type)return{name:i,error:s};if(s&&s.root&&s.root.type)return{name:`${i}.root`,error:s.root};o.pop()}return{name:t}}var M2=(e,r,t,n)=>{t(e);const{name:o,...i}=e;return Tt(i)||Object.keys(i).length>=Object.keys(r).length||Object.keys(i).find(a=>r[a]===(!n||Jt.all))},P2=(e,r,t)=>!e||!r||e===r||bo(e).some(n=>n&&(t?n===r:n.startsWith(r)||r.startsWith(n))),A2=(e,r,t,n,o)=>o.isOnAll?!1:!t&&o.isOnTouch?!(r||e):(t?n.isOnBlur:o.isOnBlur)?!e:(t?n.isOnChange:o.isOnChange)?e:!0,I2=(e,r)=>!Ns(oe(e,r)).length&&ct(e,r),R2=(e,r,t)=>{const n=bo(oe(e,t));return Le(n,"root",r[t]),Le(e,t,n),e},Xi=e=>mr(e);function Ef(e,r,t="validate"){if(Xi(e)||Array.isArray(e)&&e.every(Xi)||jt(e)&&!e)return{type:t,message:Xi(e)?e:"",ref:r}}var Tn=e=>nt(e)&&!Qi(e)?e:{value:e,message:""},kf=async(e,r,t,n,o,i)=>{const{ref:a,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:m,validate:g,name:p,valueAsNumber:y,mount:S}=e._f,C=oe(t,p);if(!S||r.has(p))return{};const k=s?s[0]:a,E=v=>{o&&k.reportValidity&&(k.setCustomValidity(jt(v)?"":v||""),k.reportValidity())},_={},O=Fs(a),N=yo(a),q=O||N,Z=(y||Vs(a))&&ot(a.value)&&ot(C)||Ki(a)&&a.value===""||C===""||Array.isArray(C)&&!C.length,L=Bs.bind(null,p,n,_),K=(v,I,A,U=xr.maxLength,H=xr.minLength)=>{const ee=v?I:A;_[p]={type:v?U:H,message:ee,ref:a,...L(v?U:H,ee)}};if(i?!Array.isArray(C)||!C.length:c&&(!q&&(Z||bt(C))||jt(C)&&!C||N&&!gf(s).isValid||O&&!bf(s).isValid)){const{value:v,message:I}=Xi(c)?{value:!!c,message:c}:Tn(c);if(v&&(_[p]={type:xr.required,message:I,ref:k,...L(xr.required,I)},!n))return E(I),_}if(!Z&&(!bt(d)||!bt(f))){let v,I;const A=Tn(f),U=Tn(d);if(!bt(C)&&!isNaN(C)){const H=a.valueAsNumber||C&&+C;bt(A.value)||(v=H>A.value),bt(U.value)||(I=H<U.value)}else{const H=a.valueAsDate||new Date(C),ee=V=>new Date(new Date().toDateString()+" "+V),re=a.type=="time",se=a.type=="week";mr(A.value)&&C&&(v=re?ee(C)>ee(A.value):se?C>A.value:H>new Date(A.value)),mr(U.value)&&C&&(I=re?ee(C)<ee(U.value):se?C<U.value:H<new Date(U.value))}if((v||I)&&(K(!!v,A.message,U.message,xr.max,xr.min),!n))return E(_[p].message),_}if((l||u)&&!Z&&(mr(C)||i&&Array.isArray(C))){const v=Tn(l),I=Tn(u),A=!bt(v.value)&&C.length>+v.value,U=!bt(I.value)&&C.length<+I.value;if((A||U)&&(K(A,v.message,I.message),!n))return E(_[p].message),_}if(m&&!Z&&mr(C)){const{value:v,message:I}=Tn(m);if(Qi(v)&&!C.match(v)&&(_[p]={type:xr.pattern,message:I,ref:a,...L(xr.pattern,I)},!n))return E(I),_}if(g){if(tr(g)){const v=await g(C,t),I=Ef(v,k);if(I&&(_[p]={...I,...L(xr.validate,I.message)},!n))return E(I.message),_}else if(nt(g)){let v={};for(const I in g){if(!Tt(v)&&!n)break;const A=Ef(await g[I](C,t),k,I);A&&(v={...A,...L(I,A.message)},E(A.message),n&&(_[p]=v))}if(!Tt(v)&&(_[p]={ref:k,...v},!n))return _}}return E(!0),_};const N2={mode:Jt.onSubmit,reValidateMode:Jt.onChange,shouldFocusError:!0};function $2(e={}){let r={...N2,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:tr(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},n={},o=nt(r.defaultValues)||nt(r.values)?dt(r.defaultValues||r.values)||{}:{},i=r.shouldUnregister?{}:dt(o),a={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let d={...u};const f={array:uf(),state:uf()},m=r.criteriaMode===Jt.all,g=T=>R=>{clearTimeout(l),l=setTimeout(T,R)},p=async T=>{if(!r.disabled&&(u.isValid||d.isValid||T)){const R=r.resolver?Tt((await N()).errors):await Z(n,!0);R!==t.isValid&&f.state.next({isValid:R})}},y=(T,R)=>{!r.disabled&&(u.isValidating||u.validatingFields||d.isValidating||d.validatingFields)&&((T||Array.from(s.mount)).forEach(M=>{M&&(R?Le(t.validatingFields,M,R):ct(t.validatingFields,M))}),f.state.next({validatingFields:t.validatingFields,isValidating:!Tt(t.validatingFields)}))},S=(T,R=[],M,ae,ne=!0,te=!0)=>{if(ae&&M&&!r.disabled){if(a.action=!0,te&&Array.isArray(oe(n,T))){const pe=M(oe(n,T),ae.argA,ae.argB);ne&&Le(n,T,pe)}if(te&&Array.isArray(oe(t.errors,T))){const pe=M(oe(t.errors,T),ae.argA,ae.argB);ne&&Le(t.errors,T,pe),I2(t.errors,T)}if((u.touchedFields||d.touchedFields)&&te&&Array.isArray(oe(t.touchedFields,T))){const pe=M(oe(t.touchedFields,T),ae.argA,ae.argB);ne&&Le(t.touchedFields,T,pe)}(u.dirtyFields||d.dirtyFields)&&(t.dirtyFields=wo(o,i)),f.state.next({name:T,isDirty:K(T,R),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else Le(i,T,R)},C=(T,R)=>{Le(t.errors,T,R),f.state.next({errors:t.errors})},k=T=>{t.errors=T,f.state.next({errors:t.errors,isValid:!1})},E=(T,R,M,ae)=>{const ne=oe(n,T);if(ne){const te=oe(i,T,ot(M)?oe(o,T):M);ot(te)||ae&&ae.defaultChecked||R?Le(i,T,R?te:wf(ne._f)):A(T,te),a.mount&&p()}},_=(T,R,M,ae,ne)=>{let te=!1,pe=!1;const De={name:T};if(!r.disabled){if(!M||ae){(u.isDirty||d.isDirty)&&(pe=t.isDirty,t.isDirty=De.isDirty=K(),te=pe!==De.isDirty);const Ve=Sr(oe(o,T),R);pe=!!oe(t.dirtyFields,T),Ve?ct(t.dirtyFields,T):Le(t.dirtyFields,T,!0),De.dirtyFields=t.dirtyFields,te=te||(u.dirtyFields||d.dirtyFields)&&pe!==!Ve}if(M){const Ve=oe(t.touchedFields,T);Ve||(Le(t.touchedFields,T,M),De.touchedFields=t.touchedFields,te=te||(u.touchedFields||d.touchedFields)&&Ve!==M)}te&&ne&&f.state.next(De)}return te?De:{}},O=(T,R,M,ae)=>{const ne=oe(t.errors,T),te=(u.isValid||d.isValid)&&jt(R)&&t.isValid!==R;if(r.delayError&&M?(c=g(()=>C(T,M)),c(r.delayError)):(clearTimeout(l),c=null,M?Le(t.errors,T,M):ct(t.errors,T)),(M?!Sr(ne,M):ne)||!Tt(ae)||te){const pe={...ae,...te&&jt(R)?{isValid:R}:{},errors:t.errors,name:T};t={...t,...pe},f.state.next(pe)}},N=async T=>{y(T,!0);const R=await r.resolver(i,r.context,D2(T||s.mount,n,r.criteriaMode,r.shouldUseNativeValidation));return y(T),R},q=async T=>{const{errors:R}=await N(T);if(T)for(const M of T){const ae=oe(R,M);ae?Le(t.errors,M,ae):ct(t.errors,M)}else t.errors=R;return R},Z=async(T,R,M={valid:!0})=>{for(const ae in T){const ne=T[ae];if(ne){const{_f:te,...pe}=ne;if(te){const De=s.array.has(te.name),Ve=ne._f&&T2(ne._f);Ve&&u.validatingFields&&y([ae],!0);const _t=await kf(ne,s.disabled,i,m,r.shouldUseNativeValidation&&!R,De);if(Ve&&u.validatingFields&&y([ae]),_t[te.name]&&(M.valid=!1,R))break;!R&&(oe(_t,te.name)?De?R2(t.errors,_t,te.name):Le(t.errors,te.name,_t[te.name]):ct(t.errors,te.name))}!Tt(pe)&&await Z(pe,R,M)}}return M.valid},L=()=>{for(const T of s.unMount){const R=oe(n,T);R&&(R._f.refs?R._f.refs.every(M=>!Ys(M)):!Ys(R._f.ref))&&ce(T)}s.unMount=new Set},K=(T,R)=>!r.disabled&&(T&&R&&Le(i,T,R),!Sr(V(),o)),v=(T,R,M)=>lf(T,s,{...a.mount?i:ot(R)?o:mr(T)?{[T]:R}:R},M,R),I=T=>Ns(oe(a.mount?i:o,T,r.shouldUnregister?oe(o,T,[]):[])),A=(T,R,M={})=>{const ae=oe(n,T);let ne=R;if(ae){const te=ae._f;te&&(!te.disabled&&Le(i,T,vf(R,te)),ne=Ki(te.ref)&&bt(R)?"":R,df(te.ref)?[...te.ref.options].forEach(pe=>pe.selected=ne.includes(pe.value)):te.refs?yo(te.ref)?te.refs.forEach(pe=>{(!pe.defaultChecked||!pe.disabled)&&(Array.isArray(ne)?pe.checked=!!ne.find(De=>De===pe.value):pe.checked=ne===pe.value||!!ne)}):te.refs.forEach(pe=>pe.checked=pe.value===ne):Vs(te.ref)?te.ref.value="":(te.ref.value=ne,te.ref.type||f.state.next({name:T,values:dt(i)})))}(M.shouldDirty||M.shouldTouch)&&_(T,ne,M.shouldTouch,M.shouldDirty,!0),M.shouldValidate&&se(T)},U=(T,R,M)=>{for(const ae in R){if(!R.hasOwnProperty(ae))return;const ne=R[ae],te=T+"."+ae,pe=oe(n,te);(s.array.has(T)||nt(ne)||pe&&!pe._f)&&!Jr(ne)?U(te,ne,M):A(te,ne,M)}},H=(T,R,M={})=>{const ae=oe(n,T),ne=s.array.has(T),te=dt(R);Le(i,T,te),ne?(f.array.next({name:T,values:dt(i)}),(u.isDirty||u.dirtyFields||d.isDirty||d.dirtyFields)&&M.shouldDirty&&f.state.next({name:T,dirtyFields:wo(o,i),isDirty:K(T,te)})):ae&&!ae._f&&!bt(te)?U(T,te,M):A(T,te,M),Sf(T,s)&&f.state.next({...t,name:T}),f.state.next({name:a.mount?T:void 0,values:dt(i)})},ee=async T=>{a.mount=!0;const R=T.target;let M=R.name,ae=!0;const ne=oe(n,M),te=Ve=>{ae=Number.isNaN(Ve)||Jr(Ve)&&isNaN(Ve.getTime())||Sr(Ve,oe(i,M,Ve))},pe=_f(r.mode),De=_f(r.reValidateMode);if(ne){let Ve,_t;const sn=R.type?wf(ne._f):of(T),gr=T.type===qi.BLUR||T.type===qi.FOCUS_OUT,xc=!O2(ne._f)&&!r.resolver&&!oe(t.errors,M)&&!ne._f.deps||A2(gr,oe(t.touchedFields,M),t.isSubmitted,De,pe),Oo=Sf(M,s,gr);Le(i,M,sn),gr?(!R||!R.readOnly)&&(ne._f.onBlur&&ne._f.onBlur(T),c&&c(0)):ne._f.onChange&&ne._f.onChange(T);const Mo=_(M,sn,gr),Sc=!Tt(Mo)||Oo;if(!gr&&f.state.next({name:M,type:T.type,values:dt(i)}),xc)return(u.isValid||d.isValid)&&(r.mode==="onBlur"?gr&&p():gr||p()),Sc&&f.state.next({name:M,...Oo?{}:Mo});if(!gr&&Oo&&f.state.next({...t}),r.resolver){const{errors:va}=await N([M]);if(te(sn),ae){const Cc=Cf(t.errors,n,M),$n=Cf(va,n,Cc.name||M);Ve=$n.error,M=$n.name,_t=Tt(va)}}else y([M],!0),Ve=(await kf(ne,s.disabled,i,m,r.shouldUseNativeValidation))[M],y([M]),te(sn),ae&&(Ve?_t=!1:(u.isValid||d.isValid)&&(_t=await Z(n,!0)));ae&&(ne._f.deps&&se(ne._f.deps),O(M,_t,Ve,Mo))}},re=(T,R)=>{if(oe(t.errors,R)&&T.focus)return T.focus(),1},se=async(T,R={})=>{let M,ae;const ne=bo(T);if(r.resolver){const te=await q(ot(T)?T:ne);M=Tt(te),ae=T?!ne.some(pe=>oe(te,pe)):M}else T?(ae=(await Promise.all(ne.map(async te=>{const pe=oe(n,te);return await Z(pe&&pe._f?{[te]:pe}:pe)}))).every(Boolean),!(!ae&&!t.isValid)&&p()):ae=M=await Z(n);return f.state.next({...!mr(T)||(u.isValid||d.isValid)&&M!==t.isValid?{}:{name:T},...r.resolver||!T?{isValid:M}:{},errors:t.errors}),R.shouldFocus&&!ae&&xo(n,re,T?ne:s.mount),ae},V=T=>{const R={...a.mount?i:o};return ot(T)?R:mr(T)?oe(R,T):T.map(M=>oe(R,M))},G=(T,R)=>({invalid:!!oe((R||t).errors,T),isDirty:!!oe((R||t).dirtyFields,T),error:oe((R||t).errors,T),isValidating:!!oe(t.validatingFields,T),isTouched:!!oe((R||t).touchedFields,T)}),ge=T=>{T&&bo(T).forEach(R=>ct(t.errors,R)),f.state.next({errors:T?t.errors:{}})},ve=(T,R,M)=>{const ae=(oe(n,T,{_f:{}})._f||{}).ref,ne=oe(t.errors,T)||{},{ref:te,message:pe,type:De,...Ve}=ne;Le(t.errors,T,{...Ve,...R,ref:ae}),f.state.next({name:T,errors:t.errors,isValid:!1}),M&&M.shouldFocus&&ae&&ae.focus&&ae.focus()},he=(T,R)=>tr(T)?f.state.subscribe({next:M=>"values"in M&&T(v(void 0,R),M)}):v(T,R,!0),J=T=>f.state.subscribe({next:R=>{P2(T.name,R.name,T.exact)&&M2(R,T.formState||u,Dr,T.reRenderRoot)&&T.callback({values:{...i},...t,...R,defaultValues:o})}}).unsubscribe,Q=T=>(a.mount=!0,d={...d,...T.formState},J({...T,formState:d})),ce=(T,R={})=>{for(const M of T?bo(T):s.mount)s.mount.delete(M),s.array.delete(M),R.keepValue||(ct(n,M),ct(i,M)),!R.keepError&&ct(t.errors,M),!R.keepDirty&&ct(t.dirtyFields,M),!R.keepTouched&&ct(t.touchedFields,M),!R.keepIsValidating&&ct(t.validatingFields,M),!r.shouldUnregister&&!R.keepDefaultValue&&ct(o,M);f.state.next({values:dt(i)}),f.state.next({...t,...R.keepDirty?{isDirty:K()}:{}}),!R.keepIsValid&&p()},ue=({disabled:T,name:R})=>{(jt(T)&&a.mount||T||s.disabled.has(R))&&(T?s.disabled.add(R):s.disabled.delete(R))},F=(T,R={})=>{let M=oe(n,T);const ae=jt(R.disabled)||jt(r.disabled);return Le(n,T,{...M||{},_f:{...M&&M._f?M._f:{ref:{name:T}},name:T,mount:!0,...R}}),s.mount.add(T),M?ue({disabled:jt(R.disabled)?R.disabled:r.disabled,name:T}):E(T,!0,R.value),{...ae?{disabled:R.disabled||r.disabled}:{},...r.progressive?{required:!!R.required,min:_o(R.min),max:_o(R.max),minLength:_o(R.minLength),maxLength:_o(R.maxLength),pattern:_o(R.pattern)}:{},name:T,onChange:ee,onBlur:ee,ref:ne=>{if(ne){F(T,R),M=oe(n,T);const te=ot(ne.value)&&ne.querySelectorAll&&ne.querySelectorAll("input,select,textarea")[0]||ne,pe=C2(te),De=M._f.refs||[];if(pe?De.find(Ve=>Ve===te):te===M._f.ref)return;Le(n,T,{_f:{...M._f,...pe?{refs:[...De.filter(Ys),te,...Array.isArray(oe(o,T))?[{}]:[]],ref:{type:te.type,name:T}}:{ref:te}}}),E(T,!1,void 0,te)}else M=oe(n,T,{}),M._f&&(M._f.mount=!1),(r.shouldUnregister||R.shouldUnregister)&&!(af(s.array,T)&&a.action)&&s.unMount.add(T)}}},W=()=>r.shouldFocusError&&xo(n,re,s.mount),de=T=>{jt(T)&&(f.state.next({disabled:T}),xo(n,(R,M)=>{const ae=oe(n,M);ae&&(R.disabled=ae._f.disabled||T,Array.isArray(ae._f.refs)&&ae._f.refs.forEach(ne=>{ne.disabled=ae._f.disabled||T}))},0,!1))},P=(T,R)=>async M=>{let ae;M&&(M.preventDefault&&M.preventDefault(),M.persist&&M.persist());let ne=dt(i);if(f.state.next({isSubmitting:!0}),r.resolver){const{errors:te,values:pe}=await N();t.errors=te,ne=dt(pe)}else await Z(n);if(s.disabled.size)for(const te of s.disabled)ct(ne,te);if(ct(t.errors,"root"),Tt(t.errors)){f.state.next({errors:{}});try{await T(ne,M)}catch(te){ae=te}}else R&&await R({...t.errors},M),W(),setTimeout(W);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Tt(t.errors)&&!ae,submitCount:t.submitCount+1,errors:t.errors}),ae)throw ae},we=(T,R={})=>{oe(n,T)&&(ot(R.defaultValue)?H(T,dt(oe(o,T))):(H(T,R.defaultValue),Le(o,T,dt(R.defaultValue))),R.keepTouched||ct(t.touchedFields,T),R.keepDirty||(ct(t.dirtyFields,T),t.isDirty=R.defaultValue?K(T,dt(oe(o,T))):K()),R.keepError||(ct(t.errors,T),u.isValid&&p()),f.state.next({...t}))},Qe=(T,R={})=>{const M=T?dt(T):o,ae=dt(M),ne=Tt(T),te=ne?o:ae;if(R.keepDefaultValues||(o=M),!R.keepValues){if(R.keepDirtyValues){const pe=new Set([...s.mount,...Object.keys(wo(o,i))]);for(const De of Array.from(pe))oe(t.dirtyFields,De)?Le(te,De,oe(i,De)):H(De,oe(te,De))}else{if(Rs&&ot(T))for(const pe of s.mount){const De=oe(n,pe);if(De&&De._f){const Ve=Array.isArray(De._f.refs)?De._f.refs[0]:De._f.ref;if(Ki(Ve)){const _t=Ve.closest("form");if(_t){_t.reset();break}}}}if(R.keepFieldsRef)for(const pe of s.mount)H(pe,oe(te,pe));else n={}}i=r.shouldUnregister?R.keepDefaultValues?dt(o):{}:dt(te),f.array.next({values:{...te}}),f.state.next({values:{...te}})}s={mount:R.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!R.keepIsValid||!!R.keepDirtyValues,a.watch=!!r.shouldUnregister,f.state.next({submitCount:R.keepSubmitCount?t.submitCount:0,isDirty:ne?!1:R.keepDirty?t.isDirty:!!(R.keepDefaultValues&&!Sr(T,o)),isSubmitted:R.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:ne?{}:R.keepDirtyValues?R.keepDefaultValues&&i?wo(o,i):t.dirtyFields:R.keepDefaultValues&&T?wo(o,T):R.keepDirty?t.dirtyFields:{},touchedFields:R.keepTouched?t.touchedFields:{},errors:R.keepErrors?t.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},wt=(T,R)=>Qe(tr(T)?T(i):T,R),kr=(T,R={})=>{const M=oe(n,T),ae=M&&M._f;if(ae){const ne=ae.refs?ae.refs[0]:ae.ref;ne.focus&&(ne.focus(),R.shouldSelect&&tr(ne.select)&&ne.select())}},Dr=T=>{t={...t,...T}},Or={control:{register:F,unregister:ce,getFieldState:G,handleSubmit:P,setError:ve,_subscribe:J,_runSchema:N,_focusError:W,_getWatch:v,_getDirty:K,_setValid:p,_setFieldArray:S,_setDisabledField:ue,_setErrors:k,_getFieldArray:I,_reset:Qe,_resetDefaultValues:()=>tr(r.defaultValues)&&r.defaultValues().then(T=>{wt(T,r.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:L,_disableForm:de,_subjects:f,_proxyFormState:u,get _fields(){return n},get _formValues(){return i},get _state(){return a},set _state(T){a=T},get _defaultValues(){return o},get _names(){return s},set _names(T){s=T},get _formState(){return t},get _options(){return r},set _options(T){r={...r,...T}}},subscribe:Q,trigger:se,register:F,handleSubmit:P,watch:he,setValue:H,getValues:V,reset:wt,resetField:we,clearErrors:ge,unregister:ce,setError:ve,setFocus:kr,getFieldState:G};return{...Or,formControl:Or}}function j2(e={}){const r=x.useRef(void 0),t=x.useRef(void 0),[n,o]=x.useState({isDirty:!1,isValidating:!1,isLoading:tr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:tr(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:n},e.defaultValues&&!tr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...s}=$2(e);r.current={...s,formState:n}}const i=r.current.control;return i._options=e,Ls(()=>{const a=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(s=>({...s,isReady:!0})),i._formState.isReady=!0,a},[i]),x.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),x.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),x.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),x.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),x.useEffect(()=>{if(i._proxyFormState.isDirty){const a=i._getDirty();a!==n.isDirty&&i._subjects.state.next({isDirty:a})}},[i,n.isDirty]),x.useEffect(()=>{e.values&&!Sr(e.values,t.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),t.current=e.values,o(a=>({...a}))):i._resetDefaultValues()},[i,e.values]),x.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),r.current.formState=cf(n,i),r.current}const Df=(e,r,t)=>{if(e&&"reportValidity"in e){const n=oe(t,r);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},Us=(e,r)=>{for(const t in r.fields){const n=r.fields[t];n&&n.ref&&"reportValidity"in n.ref?Df(n.ref,t,e):n&&n.refs&&n.refs.forEach(o=>Df(o,t,e))}},Tf=(e,r)=>{r.shouldUseNativeValidation&&Us(e,r);const t={};for(const n in e){const o=oe(r.fields,n),i=Object.assign(e[n]||{},{ref:o&&o.ref});if(L2(r.names||Object.keys(e),n)){const a=Object.assign({},oe(t,n));Le(a,"root",i),Le(t,n,a)}else Le(t,n,i)}return t},L2=(e,r)=>{const t=Of(r);return e.some(n=>Of(n).match(`^${t}\\.\\d+`))};function Of(e){return e.replace(/\]|\[/g,"")}function Y(e,r,t){function n(s,c){var l;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(l=s._zod).traits??(l.traits=new Set),s._zod.traits.add(e),r(s,c);for(const u in a.prototype)u in s||Object.defineProperty(s,u,{value:a.prototype[u].bind(s)});s._zod.constr=a,s._zod.def=c}const o=t?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function a(s){var c;const l=t?.Parent?new i:this;n(l,s),(c=l._zod).deferred??(c.deferred=[]);for(const u of l._zod.deferred)u();return l}return Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>t?.Parent&&s instanceof t.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class On extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Mf extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const Pf={};function en(e){return Pf}function z2(e){const r=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>r.indexOf(+n)===-1).map(([n,o])=>o)}function Hs(e,r){return typeof r=="bigint"?r.toString():r}function Ws(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function Zs(e){return e==null}function qs(e){const r=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(r,t)}function B2(e,r){const t=(e.toString().split(".")[1]||"").length,n=r.toString();let o=(n.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(n)){const c=n.match(/\d?e-(\d?)/);c?.[1]&&(o=Number.parseInt(c[1]))}const i=t>o?t:o,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(r.toFixed(i).replace(".",""));return a%s/10**i}const Af=Symbol("evaluating");function Ye(e,r,t){let n;Object.defineProperty(e,r,{get(){if(n!==Af)return n===void 0&&(n=Af,n=t()),n},set(o){Object.defineProperty(e,r,{value:o})},configurable:!0})}function V2(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function $r(e,r,t){Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})}function Mn(...e){const r={};for(const t of e){const n=Object.getOwnPropertyDescriptors(t);Object.assign(r,n)}return Object.defineProperties({},r)}function If(e){return JSON.stringify(e)}const Rf="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ji(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const F2=Ws(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function So(e){if(Ji(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const t=r.prototype;return!(Ji(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function Nf(e){return So(e)?{...e}:e}const Y2=new Set(["string","number","symbol"]);function Pn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jr(e,r,t){const n=new e._zod.constr(r??e._zod.def);return(!r||t?.parent)&&(n._zod.parent=e),n}function me(e){const r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function U2(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}const H2={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function W2(e,r){const t=e._zod.def,n=Mn(e._zod.def,{get shape(){const o={};for(const i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=t.shape[i])}return $r(this,"shape",o),o},checks:[]});return jr(e,n)}function Z2(e,r){const t=e._zod.def,n=Mn(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const i in r){if(!(i in t.shape))throw new Error(`Unrecognized key: "${i}"`);r[i]&&delete o[i]}return $r(this,"shape",o),o},checks:[]});return jr(e,n)}function q2(e,r){if(!So(r))throw new Error("Invalid input to extend: expected a plain object");const t=e._zod.def.checks;if(t&&t.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=Mn(e._zod.def,{get shape(){const i={...e._zod.def.shape,...r};return $r(this,"shape",i),i},checks:[]});return jr(e,o)}function K2(e,r){if(!So(r))throw new Error("Invalid input to safeExtend: expected a plain object");const t={...e._zod.def,get shape(){const n={...e._zod.def.shape,...r};return $r(this,"shape",n),n},checks:e._zod.def.checks};return jr(e,t)}function G2(e,r){const t=Mn(e._zod.def,{get shape(){const n={...e._zod.def.shape,...r._zod.def.shape};return $r(this,"shape",n),n},get catchall(){return r._zod.def.catchall},checks:[]});return jr(e,t)}function Q2(e,r,t){const n=Mn(r._zod.def,{get shape(){const o=r._zod.def.shape,i={...o};if(t)for(const a in t){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=e?new e({type:"optional",innerType:o[a]}):o[a])}else for(const a in o)i[a]=e?new e({type:"optional",innerType:o[a]}):o[a];return $r(this,"shape",i),i},checks:[]});return jr(r,n)}function X2(e,r,t){const n=Mn(r._zod.def,{get shape(){const o=r._zod.def.shape,i={...o};if(t)for(const a in t){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(const a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return $r(this,"shape",i),i},checks:[]});return jr(r,n)}function An(e,r=0){if(e.aborted===!0)return!0;for(let t=r;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function $f(e,r){return r.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function ea(e){return typeof e=="string"?e:e?.message}function tn(e,r,t){const n={...e,path:e.path??[]};if(!e.message){const o=ea(e.inst?._zod.def?.error?.(e))??ea(r?.error?.(e))??ea(t.customError?.(e))??ea(t.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,r?.reportInput||delete n.input,n}function Ks(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Co(...e){const[r,t,n]=e;return typeof r=="string"?{message:r,code:"custom",input:t,inst:n}:{...r}}const jf=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Hs,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Gs=Y("$ZodError",jf),ta=Y("$ZodError",jf,{Parent:Error});function J2(e,r=t=>t.message){const t={},n=[];for(const o of e.issues)o.path.length>0?(t[o.path[0]]=t[o.path[0]]||[],t[o.path[0]].push(r(o))):n.push(r(o));return{formErrors:n,fieldErrors:t}}function ew(e,r){const t=r||function(i){return i.message},n={_errors:[]},o=i=>{for(const a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>o({issues:s}));else if(a.code==="invalid_key")o({issues:a.issues});else if(a.code==="invalid_element")o({issues:a.issues});else if(a.path.length===0)n._errors.push(t(a));else{let s=n,c=0;for(;c<a.path.length;){const l=a.path[c];c===a.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(a))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return o(e),n}const ra=e=>(r,t,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise)throw new On;if(a.issues.length){const s=new(o?.Err??e)(a.issues.map(c=>tn(c,i,en())));throw Rf(s,o?.callee),s}return a.value},tw=ra(ta),na=e=>async(r,t,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let a=r._zod.run({value:t,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new(o?.Err??e)(a.issues.map(c=>tn(c,i,en())));throw Rf(s,o?.callee),s}return a.value},rw=na(ta),oa=e=>(r,t,n)=>{const o=n?{...n,async:!1}:{async:!1},i=r._zod.run({value:t,issues:[]},o);if(i instanceof Promise)throw new On;return i.issues.length?{success:!1,error:new(e??Gs)(i.issues.map(a=>tn(a,o,en())))}:{success:!0,data:i.value}},nw=oa(ta),ia=e=>async(r,t,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=r._zod.run({value:t,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>tn(a,o,en())))}:{success:!0,data:i.value}},ow=ia(ta),iw=e=>(r,t,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ra(e)(r,t,o)},aw=e=>(r,t,n)=>ra(e)(r,t,n),sw=e=>async(r,t,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return na(e)(r,t,o)},cw=e=>async(r,t,n)=>na(e)(r,t,n),lw=e=>(r,t,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return oa(e)(r,t,o)},uw=e=>(r,t,n)=>oa(e)(r,t,n),dw=e=>async(r,t,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ia(e)(r,t,o)},fw=e=>async(r,t,n)=>ia(e)(r,t,n),pw=/^[cC][^\s-]{8,}$/,hw=/^[0-9a-z]+$/,mw=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,gw=/^[0-9a-vA-V]{20}$/,vw=/^[A-Za-z0-9]{27}$/,yw=/^[a-zA-Z0-9_-]{21}$/,bw=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,ww=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Lf=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_w=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,xw="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Sw(){return new RegExp(xw,"u")}const Cw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ew=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,kw=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Dw=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Tw=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,zf=/^[A-Za-z0-9_-]*$/,Ow=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Mw=/^\+(?:[0-9]){6,14}[0-9]$/,Bf="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Pw=new RegExp(`^${Bf}$`);function Vf(e){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Aw(e){return new RegExp(`^${Vf(e)}$`)}function Iw(e){const r=Vf({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${r}(?:${t.join("|")})`;return new RegExp(`^${Bf}T(?:${n})$`)}const Rw=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},Nw=/^\d+$/,$w=/^-?\d+(?:\.\d+)?/i,jw=/true|false/i,Lw=/^[^A-Z]*$/,zw=/^[^a-z]*$/,Ot=Y("$ZodCheck",(e,r)=>{var t;e._zod??(e._zod={}),e._zod.def=r,(t=e._zod).onattach??(t.onattach=[])}),Ff={number:"number",bigint:"bigint",object:"date"},Yf=Y("$ZodCheckLessThan",(e,r)=>{Ot.init(e,r);const t=Ff[typeof r.value];e._zod.onattach.push(n=>{const o=n._zod.bag,i=(r.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<i&&(r.inclusive?o.maximum=r.value:o.exclusiveMaximum=r.value)}),e._zod.check=n=>{(r.inclusive?n.value<=r.value:n.value<r.value)||n.issues.push({origin:t,code:"too_big",maximum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Uf=Y("$ZodCheckGreaterThan",(e,r)=>{Ot.init(e,r);const t=Ff[typeof r.value];e._zod.onattach.push(n=>{const o=n._zod.bag,i=(r.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>i&&(r.inclusive?o.minimum=r.value:o.exclusiveMinimum=r.value)}),e._zod.check=n=>{(r.inclusive?n.value>=r.value:n.value>r.value)||n.issues.push({origin:t,code:"too_small",minimum:r.value,input:n.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Bw=Y("$ZodCheckMultipleOf",(e,r)=>{Ot.init(e,r),e._zod.onattach.push(t=>{var n;(n=t._zod.bag).multipleOf??(n.multipleOf=r.value)}),e._zod.check=t=>{if(typeof t.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%r.value===BigInt(0):B2(t.value,r.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:r.value,input:t.value,inst:e,continue:!r.abort})}}),Vw=Y("$ZodCheckNumberFormat",(e,r)=>{Ot.init(e,r),r.format=r.format||"float64";const t=r.format?.includes("int"),n=t?"int":"number",[o,i]=H2[r.format];e._zod.onattach.push(a=>{const s=a._zod.bag;s.format=r.format,s.minimum=o,s.maximum=i,t&&(s.pattern=Nw)}),e._zod.check=a=>{const s=a.value;if(t){if(!Number.isInteger(s)){a.issues.push({expected:n,format:r.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,continue:!r.abort});return}}s<o&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!r.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inst:e})}}),Fw=Y("$ZodCheckMaxLength",(e,r)=>{var t;Ot.init(e,r),(t=e._zod.def).when??(t.when=n=>{const o=n.value;return!Zs(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<o&&(n._zod.bag.maximum=r.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=r.maximum)return;const a=Ks(o);n.issues.push({origin:a,code:"too_big",maximum:r.maximum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Yw=Y("$ZodCheckMinLength",(e,r)=>{var t;Ot.init(e,r),(t=e._zod.def).when??(t.when=n=>{const o=n.value;return!Zs(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>o&&(n._zod.bag.minimum=r.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=r.minimum)return;const a=Ks(o);n.issues.push({origin:a,code:"too_small",minimum:r.minimum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Uw=Y("$ZodCheckLengthEquals",(e,r)=>{var t;Ot.init(e,r),(t=e._zod.def).when??(t.when=n=>{const o=n.value;return!Zs(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=r.length,o.maximum=r.length,o.length=r.length}),e._zod.check=n=>{const o=n.value,i=o.length;if(i===r.length)return;const a=Ks(o),s=i>r.length;n.issues.push({origin:a,...s?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!r.abort})}}),aa=Y("$ZodCheckStringFormat",(e,r)=>{var t,n;Ot.init(e,r),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=r.format,r.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(r.pattern))}),r.pattern?(t=e._zod).check??(t.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:r.format,input:o.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(n=e._zod).check??(n.check=()=>{})}),Hw=Y("$ZodCheckRegex",(e,r)=>{aa.init(e,r),e._zod.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Ww=Y("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=Lw),aa.init(e,r)}),Zw=Y("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=zw),aa.init(e,r)}),qw=Y("$ZodCheckIncludes",(e,r)=>{Ot.init(e,r);const t=Pn(r.includes),n=new RegExp(typeof r.position=="number"?`^.{${r.position}}${t}`:t);r.pattern=n,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=o=>{o.value.includes(r.includes,r.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:o.value,inst:e,continue:!r.abort})}}),Kw=Y("$ZodCheckStartsWith",(e,r)=>{Ot.init(e,r);const t=new RegExp(`^${Pn(r.prefix)}.*`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t)}),e._zod.check=n=>{n.value.startsWith(r.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:n.value,inst:e,continue:!r.abort})}}),Gw=Y("$ZodCheckEndsWith",(e,r)=>{Ot.init(e,r);const t=new RegExp(`.*${Pn(r.suffix)}$`);r.pattern??(r.pattern=t),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t)}),e._zod.check=n=>{n.value.endsWith(r.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:n.value,inst:e,continue:!r.abort})}}),Qw=Y("$ZodCheckOverwrite",(e,r)=>{Ot.init(e,r),e._zod.check=t=>{t.value=r.tx(t.value)}});class Xw{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const n=r.split(`
172
- `).filter(a=>a),o=Math.min(...n.map(a=>a.length-a.trimStart().length)),i=n.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(const a of i)this.content.push(a)}compile(){const r=Function,t=this?.args,o=[...(this?.content??[""]).map(i=>` ${i}`)];return new r(...t,o.join(`
173
- `))}}const Jw={major:4,minor:1,patch:5},et=Y("$ZodType",(e,r)=>{var t;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Jw;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const o of n)for(const i of o._zod.onattach)i(e);if(n.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(a,s,c)=>{let l=An(a),u;for(const d of s){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(l)continue;const f=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&c?.async===!1)throw new On;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,a.issues.length!==f&&(l||(l=An(a,f)))});else{if(a.issues.length===f)continue;l||(l=An(a,f))}}return u?u.then(()=>a):a},i=(a,s,c)=>{if(An(a))return a.aborted=!0,a;const l=o(s,n,c);if(l instanceof Promise){if(c.async===!1)throw new On;return l.then(u=>e._zod.parse(u,c))}return e._zod.parse(l,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){const l=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return l instanceof Promise?l.then(u=>i(u,a,s)):i(l,a,s)}const c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new On;return c.then(l=>o(l,n,s))}return o(c,n,s)}}e["~standard"]={validate:o=>{try{const i=nw(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return ow(e,o).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}}),Qs=Y("$ZodString",(e,r)=>{et.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Rw(e._zod.bag),e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=String(t.value)}catch{}return typeof t.value=="string"||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:e}),t}}),Ze=Y("$ZodStringFormat",(e,r)=>{aa.init(e,r),Qs.init(e,r)}),e_=Y("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=ww),Ze.init(e,r)}),t_=Y("$ZodUUID",(e,r)=>{if(r.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(n===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=Lf(n))}else r.pattern??(r.pattern=Lf());Ze.init(e,r)}),r_=Y("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=_w),Ze.init(e,r)}),n_=Y("$ZodURL",(e,r)=>{Ze.init(e,r),e._zod.check=t=>{try{const n=t.value.trim(),o=new URL(n);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(o.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Ow.source,input:t.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:t.value,inst:e,continue:!r.abort})),r.normalize?t.value=o.href:t.value=n;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!r.abort})}}}),o_=Y("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Sw()),Ze.init(e,r)}),i_=Y("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=yw),Ze.init(e,r)}),a_=Y("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=pw),Ze.init(e,r)}),s_=Y("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=hw),Ze.init(e,r)}),c_=Y("$ZodULID",(e,r)=>{r.pattern??(r.pattern=mw),Ze.init(e,r)}),l_=Y("$ZodXID",(e,r)=>{r.pattern??(r.pattern=gw),Ze.init(e,r)}),u_=Y("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=vw),Ze.init(e,r)}),d_=Y("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=Iw(r)),Ze.init(e,r)}),f_=Y("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Pw),Ze.init(e,r)}),p_=Y("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Aw(r)),Ze.init(e,r)}),h_=Y("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=bw),Ze.init(e,r)}),m_=Y("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Cw),Ze.init(e,r),e._zod.onattach.push(t=>{const n=t._zod.bag;n.format="ipv4"})}),g_=Y("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Ew),Ze.init(e,r),e._zod.onattach.push(t=>{const n=t._zod.bag;n.format="ipv6"}),e._zod.check=t=>{try{new URL(`http://[${t.value}]`)}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:e,continue:!r.abort})}}}),v_=Y("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=kw),Ze.init(e,r)}),y_=Y("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Dw),Ze.init(e,r),e._zod.check=t=>{const[n,o]=t.value.split("/");try{if(!o)throw new Error;const i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${n}]`)}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!r.abort})}}});function Hf(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const b_=Y("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Tw),Ze.init(e,r),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64"}),e._zod.check=t=>{Hf(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!r.abort})}});function w_(e){if(!zf.test(e))return!1;const r=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),t=r.padEnd(Math.ceil(r.length/4)*4,"=");return Hf(t)}const __=Y("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=zf),Ze.init(e,r),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64url"}),e._zod.check=t=>{w_(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!r.abort})}}),x_=Y("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Mw),Ze.init(e,r)});function S_(e,r=null){try{const t=e.split(".");if(t.length!==3)return!1;const[n]=t;if(!n)return!1;const o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||r&&(!("alg"in o)||o.alg!==r))}catch{return!1}}const C_=Y("$ZodJWT",(e,r)=>{Ze.init(e,r),e._zod.check=t=>{S_(t.value,r.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!r.abort})}}),Wf=Y("$ZodNumber",(e,r)=>{et.init(e,r),e._zod.pattern=e._zod.bag.pattern??$w,e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=Number(t.value)}catch{}const o=t.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return t;const i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),t}}),E_=Y("$ZodNumber",(e,r)=>{Vw.init(e,r),Wf.init(e,r)}),k_=Y("$ZodBoolean",(e,r)=>{et.init(e,r),e._zod.pattern=jw,e._zod.parse=(t,n)=>{if(r.coerce)try{t.value=!!t.value}catch{}const o=t.value;return typeof o=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),t}}),D_=Y("$ZodUnknown",(e,r)=>{et.init(e,r),e._zod.parse=t=>t}),T_=Y("$ZodNever",(e,r)=>{et.init(e,r),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function Zf(e,r,t){e.issues.length&&r.issues.push(...$f(t,e.issues)),r.value[t]=e.value}const O_=Y("$ZodArray",(e,r)=>{et.init(e,r),e._zod.parse=(t,n)=>{const o=t.value;if(!Array.isArray(o))return t.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),t;t.value=Array(o.length);const i=[];for(let a=0;a<o.length;a++){const s=o[a],c=r.element._zod.run({value:s,issues:[]},n);c instanceof Promise?i.push(c.then(l=>Zf(l,t,a))):Zf(c,t,a)}return i.length?Promise.all(i).then(()=>t):t}});function sa(e,r,t,n){e.issues.length&&r.issues.push(...$f(t,e.issues)),e.value===void 0?t in n&&(r.value[t]=void 0):r.value[t]=e.value}function qf(e){const r=Object.keys(e.shape);for(const n of r)if(!e.shape[n]._zod.traits.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const t=U2(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(t)}}function Kf(e,r,t,n,o,i){const a=[],s=o.keySet,c=o.catchall._zod,l=c.def.type;for(const u of Object.keys(r)){if(s.has(u))continue;if(l==="never"){a.push(u);continue}const d=c.run({value:r[u],issues:[]},n);d instanceof Promise?e.push(d.then(f=>sa(f,t,u,r))):sa(d,t,u,r)}return a.length&&t.issues.push({code:"unrecognized_keys",keys:a,input:r,inst:i}),e.length?Promise.all(e).then(()=>t):t}const M_=Y("$ZodObject",(e,r)=>{et.init(e,r);const t=Ws(()=>qf(r));Ye(e._zod,"propValues",()=>{const a=r.shape,s={};for(const c in a){const l=a[c]._zod;if(l.values){s[c]??(s[c]=new Set);for(const u of l.values)s[c].add(u)}}return s});const n=Ji,o=r.catchall;let i;e._zod.parse=(a,s)=>{i??(i=t.value);const c=a.value;if(!n(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),a;a.value={};const l=[],u=i.shape;for(const d of i.keys){const m=u[d]._zod.run({value:c[d],issues:[]},s);m instanceof Promise?l.push(m.then(g=>sa(g,a,d,c))):sa(m,a,d,c)}return o?Kf(l,c,a,s,t.value,e):l.length?Promise.all(l).then(()=>a):a}}),P_=Y("$ZodObjectJIT",(e,r)=>{M_.init(e,r);const t=e._zod.parse,n=Ws(()=>qf(r)),o=f=>{const m=new Xw(["shape","payload","ctx"]),g=n.value,p=k=>{const E=If(k);return`shape[${E}]._zod.run({ value: input[${E}], issues: [] }, ctx)`};m.write("const input = payload.value;");const y=Object.create(null);let S=0;for(const k of g.keys)y[k]=`key_${S++}`;m.write("const newResult = {}");for(const k of g.keys){const E=y[k],_=If(k);m.write(`const ${E} = ${p(k)};`),m.write(`
174
- if (${E}.issues.length) {
175
- payload.issues = payload.issues.concat(${E}.issues.map(iss => ({
152
+ */const Wv=Un("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),nu=Symbol.for("constructDateFrom");function Bi(e,n){return typeof e=="function"?e(n):e&&typeof e=="object"&&nu in e?e[nu](n):e instanceof Date?new e.constructor(n):new Date(n)}function Cr(e,n){return Bi(n||e,e)}function ou(e,n,t){const[r,o]=[+Cr(e.start,t?.in),+Cr(e.end,t?.in)].sort((s,c)=>s-c),[a,i]=[+Cr(n.start,t?.in),+Cr(n.end,t?.in)].sort((s,c)=>s-c);return r<i&&a<o}function da(e){"@babel/helpers - typeof";return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},da(e)}var Zv=/^\s+/,qv=/\s+$/;function ce(e,n){if(e=e||"",n=n||{},e instanceof ce)return e;if(!(this instanceof ce))return new ce(e,n);var t=Kv(e);this._originalInput=e,this._r=t.r,this._g=t.g,this._b=t.b,this._a=t.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||t.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=t.ok}ce.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},getLuminance:function(){var n=this.toRgb(),t,r,o,a,i,s;return t=n.r/255,r=n.g/255,o=n.b/255,t<=.03928?a=t/12.92:a=Math.pow((t+.055)/1.055,2.4),r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*i+.0722*s},setAlpha:function(n){return this._a=uu(n),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var n=iu(this._r,this._g,this._b);return{h:n.h*360,s:n.s,v:n.v,a:this._a}},toHsvString:function(){var n=iu(this._r,this._g,this._b),t=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+o+"%)":"hsva("+t+", "+r+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var n=au(this._r,this._g,this._b);return{h:n.h*360,s:n.s,l:n.l,a:this._a}},toHslString:function(){var n=au(this._r,this._g,this._b),t=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+o+"%)":"hsla("+t+", "+r+"%, "+o+"%, "+this._roundA+")"},toHex:function(n){return su(this._r,this._g,this._b,n)},toHexString:function(n){return"#"+this.toHex(n)},toHex8:function(n){return Xv(this._r,this._g,this._b,this._a,n)},toHex8String:function(n){return"#"+this.toHex8(n)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ue(this._r,255)*100)+"%",g:Math.round(Ue(this._g,255)*100)+"%",b:Math.round(Ue(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ue(this._r,255)*100)+"%, "+Math.round(Ue(this._g,255)*100)+"%, "+Math.round(Ue(this._b,255)*100)+"%)":"rgba("+Math.round(Ue(this._r,255)*100)+"%, "+Math.round(Ue(this._g,255)*100)+"%, "+Math.round(Ue(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:dy[su(this._r,this._g,this._b,!0)]||!1},toFilter:function(n){var t="#"+cu(this._r,this._g,this._b,this._a),r=t,o=this._gradientType?"GradientType = 1, ":"";if(n){var a=ce(n);r="#"+cu(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+r+")"},toString:function(n){var t=!!n;n=n||this._format;var r=!1,o=this._a<1&&this._a>=0,a=!t&&o&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return a?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(r=this.toRgbString()),n==="prgb"&&(r=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(r=this.toHexString()),n==="hex3"&&(r=this.toHexString(!0)),n==="hex4"&&(r=this.toHex8String(!0)),n==="hex8"&&(r=this.toHex8String()),n==="name"&&(r=this.toName()),n==="hsl"&&(r=this.toHslString()),n==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return ce(this.toString())},_applyModification:function(n,t){var r=n.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(ny,arguments)},brighten:function(){return this._applyModification(oy,arguments)},darken:function(){return this._applyModification(ay,arguments)},desaturate:function(){return this._applyModification(ey,arguments)},saturate:function(){return this._applyModification(ty,arguments)},greyscale:function(){return this._applyModification(ry,arguments)},spin:function(){return this._applyModification(iy,arguments)},_applyCombination:function(n,t){return n.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(ly,arguments)},complement:function(){return this._applyCombination(sy,arguments)},monochromatic:function(){return this._applyCombination(uy,arguments)},splitcomplement:function(){return this._applyCombination(cy,arguments)},triad:function(){return this._applyCombination(lu,[3])},tetrad:function(){return this._applyCombination(lu,[4])}},ce.fromRatio=function(e,n){if(da(e)=="object"){var t={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?t[r]=e[r]:t[r]=Wn(e[r]));e=t}return ce(e,n)};function Kv(e){var n={r:0,g:0,b:0},t=1,r=null,o=null,a=null,i=!1,s=!1;return typeof e=="string"&&(e=my(e)),da(e)=="object"&&(fr(e.r)&&fr(e.g)&&fr(e.b)?(n=Gv(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):fr(e.h)&&fr(e.s)&&fr(e.v)?(r=Wn(e.s),o=Wn(e.v),n=Jv(e.h,r,o),i=!0,s="hsv"):fr(e.h)&&fr(e.s)&&fr(e.l)&&(r=Wn(e.s),a=Wn(e.l),n=Qv(e.h,r,a),i=!0,s="hsl"),e.hasOwnProperty("a")&&(t=e.a)),t=uu(t),{ok:i,format:e.format||s,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}function Gv(e,n,t){return{r:Ue(e,255)*255,g:Ue(n,255)*255,b:Ue(t,255)*255}}function au(e,n,t){e=Ue(e,255),n=Ue(n,255),t=Ue(t,255);var r=Math.max(e,n,t),o=Math.min(e,n,t),a,i,s=(r+o)/2;if(r==o)a=i=0;else{var c=r-o;switch(i=s>.5?c/(2-r-o):c/(r+o),r){case e:a=(n-t)/c+(n<t?6:0);break;case n:a=(t-e)/c+2;break;case t:a=(e-n)/c+4;break}a/=6}return{h:a,s:i,l:s}}function Qv(e,n,t){var r,o,a;e=Ue(e,360),n=Ue(n,100),t=Ue(t,100);function i(l,u,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?l+(u-l)*6*d:d<1/2?u:d<2/3?l+(u-l)*(2/3-d)*6:l}if(n===0)r=o=a=t;else{var s=t<.5?t*(1+n):t+n-t*n,c=2*t-s;r=i(c,s,e+1/3),o=i(c,s,e),a=i(c,s,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function iu(e,n,t){e=Ue(e,255),n=Ue(n,255),t=Ue(t,255);var r=Math.max(e,n,t),o=Math.min(e,n,t),a,i,s=r,c=r-o;if(i=r===0?0:c/r,r==o)a=0;else{switch(r){case e:a=(n-t)/c+(n<t?6:0);break;case n:a=(t-e)/c+2;break;case t:a=(e-n)/c+4;break}a/=6}return{h:a,s:i,v:s}}function Jv(e,n,t){e=Ue(e,360)*6,n=Ue(n,100),t=Ue(t,100);var r=Math.floor(e),o=e-r,a=t*(1-n),i=t*(1-o*n),s=t*(1-(1-o)*n),c=r%6,l=[t,i,a,a,s,t][c],u=[s,t,t,i,a,a][c],d=[a,a,s,t,t,i][c];return{r:l*255,g:u*255,b:d*255}}function su(e,n,t,r){var o=[zt(Math.round(e).toString(16)),zt(Math.round(n).toString(16)),zt(Math.round(t).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Xv(e,n,t,r,o){var a=[zt(Math.round(e).toString(16)),zt(Math.round(n).toString(16)),zt(Math.round(t).toString(16)),zt(du(r))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function cu(e,n,t,r){var o=[zt(du(r)),zt(Math.round(e).toString(16)),zt(Math.round(n).toString(16)),zt(Math.round(t).toString(16))];return o.join("")}ce.equals=function(e,n){return!e||!n?!1:ce(e).toRgbString()==ce(n).toRgbString()},ce.random=function(){return ce.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function ey(e,n){n=n===0?0:n||10;var t=ce(e).toHsl();return t.s-=n/100,t.s=fa(t.s),ce(t)}function ty(e,n){n=n===0?0:n||10;var t=ce(e).toHsl();return t.s+=n/100,t.s=fa(t.s),ce(t)}function ry(e){return ce(e).desaturate(100)}function ny(e,n){n=n===0?0:n||10;var t=ce(e).toHsl();return t.l+=n/100,t.l=fa(t.l),ce(t)}function oy(e,n){n=n===0?0:n||10;var t=ce(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(n/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(n/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(n/100)))),ce(t)}function ay(e,n){n=n===0?0:n||10;var t=ce(e).toHsl();return t.l-=n/100,t.l=fa(t.l),ce(t)}function iy(e,n){var t=ce(e).toHsl(),r=(t.h+n)%360;return t.h=r<0?360+r:r,ce(t)}function sy(e){var n=ce(e).toHsl();return n.h=(n.h+180)%360,ce(n)}function lu(e,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var t=ce(e).toHsl(),r=[ce(e)],o=360/n,a=1;a<n;a++)r.push(ce({h:(t.h+a*o)%360,s:t.s,l:t.l}));return r}function cy(e){var n=ce(e).toHsl(),t=n.h;return[ce(e),ce({h:(t+72)%360,s:n.s,l:n.l}),ce({h:(t+216)%360,s:n.s,l:n.l})]}function ly(e,n,t){n=n||6,t=t||30;var r=ce(e).toHsl(),o=360/t,a=[ce(e)];for(r.h=(r.h-(o*n>>1)+720)%360;--n;)r.h=(r.h+o)%360,a.push(ce(r));return a}function uy(e,n){n=n||6;for(var t=ce(e).toHsv(),r=t.h,o=t.s,a=t.v,i=[],s=1/n;n--;)i.push(ce({h:r,s:o,v:a})),a=(a+s)%1;return i}ce.mix=function(e,n,t){t=t===0?0:t||50;var r=ce(e).toRgb(),o=ce(n).toRgb(),a=t/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return ce(i)},ce.readability=function(e,n){var t=ce(e),r=ce(n);return(Math.max(t.getLuminance(),r.getLuminance())+.05)/(Math.min(t.getLuminance(),r.getLuminance())+.05)},ce.isReadable=function(e,n,t){var r=ce.readability(e,n),o,a;switch(a=!1,o=gy(t),o.level+o.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a},ce.mostReadable=function(e,n,t){var r=null,o=0,a,i,s,c;t=t||{},i=t.includeFallbackColors,s=t.level,c=t.size;for(var l=0;l<n.length;l++)a=ce.readability(e,n[l]),a>o&&(o=a,r=ce(n[l]));return ce.isReadable(e,r,{level:s,size:c})||!i?r:(t.includeFallbackColors=!1,ce.mostReadable(e,["#fff","#000"],t))};var Vi=ce.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},dy=ce.hexNames=fy(Vi);function fy(e){var n={};for(var t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}function uu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ue(e,n){py(e)&&(e="100%");var t=hy(e);return e=Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(e*n,10)/100),Math.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function fa(e){return Math.min(1,Math.max(0,e))}function Ot(e){return parseInt(e,16)}function py(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function hy(e){return typeof e=="string"&&e.indexOf("%")!=-1}function zt(e){return e.length==1?"0"+e:""+e}function Wn(e){return e<=1&&(e=e*100+"%"),e}function du(e){return Math.round(parseFloat(e)*255).toString(16)}function fu(e){return Ot(e)/255}var Bt=(function(){var e="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",t="(?:"+n+")|(?:"+e+")",r="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?",o="[\\s|\\(]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")[,|\\s]+("+t+")\\s*\\)?";return{CSS_UNIT:new RegExp(t),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function fr(e){return!!Bt.CSS_UNIT.exec(e)}function my(e){e=e.replace(Zv,"").replace(qv,"").toLowerCase();var n=!1;if(Vi[e])e=Vi[e],n=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t;return(t=Bt.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Bt.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Bt.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Bt.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Bt.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Bt.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Bt.hex8.exec(e))?{r:Ot(t[1]),g:Ot(t[2]),b:Ot(t[3]),a:fu(t[4]),format:n?"name":"hex8"}:(t=Bt.hex6.exec(e))?{r:Ot(t[1]),g:Ot(t[2]),b:Ot(t[3]),format:n?"name":"hex"}:(t=Bt.hex4.exec(e))?{r:Ot(t[1]+""+t[1]),g:Ot(t[2]+""+t[2]),b:Ot(t[3]+""+t[3]),a:fu(t[4]+""+t[4]),format:n?"name":"hex8"}:(t=Bt.hex3.exec(e))?{r:Ot(t[1]+""+t[1]),g:Ot(t[2]+""+t[2]),b:Ot(t[3]+""+t[3]),format:n?"name":"hex"}:!1}function gy(e){var n,t;return e=e||{level:"AA",size:"small"},n=(e.level||"AA").toUpperCase(),t=(e.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),t!=="small"&&t!=="large"&&(t="small"),{level:n,size:t}}const pu="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23C4D9F5'%20d='M36.667%2020c0%209.205-7.462%2016.667-16.667%2016.667S3.333%2029.205%203.333%2020%2010.795%203.333%2020%203.333%2036.667%2010.795%2036.667%2020'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M20%2012.083c.69%200%201.25.56%201.25%201.25v6.15l3.8%203.8a1.25%201.25%200%201%201-1.767%201.767l-4.167-4.166A1.25%201.25%200%200%201%2018.75%2020v-6.667c0-.69.56-1.25%201.25-1.25'%20clip-rule='evenodd'/%3e%3c/svg%3e",vy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='23'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M17.614%202.64h-.5v-.622c0-.566-.443-1.018-.998-1.018s-.998.452-.998%201.018v.622H7.893v-.622C7.894%201.452%207.45%201%206.895%201s-.999.452-.999%201.018v.622h-.5C2.946%202.64.959%204.665.959%207.165v11.31c0%202.5%201.987%204.525%204.439%204.525h12.206c2.452%200%204.439-2.025%204.439-4.524V7.165c0-2.5-1.987-4.525-4.439-4.525zm0%2018.098H5.408c-1.22%200-2.22-1.018-2.22-2.262V10.41h16.646v8.065c0%201.244-1%202.262-2.22%202.262'/%3e%3c/svg%3e",yy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23404756'%20d='M12.667%204.667a3%203%200%200%201%203%203v8.667a3%203%200%200%201-3%203H4a3%203%200%200%201-3-3V7.667a3%203%200%200%201%203-3zM21.36%206.237a1%201%200%200%201%201.64.77V17a1%201%200%200%201-1.64.768L17%2014.135V9.867z'/%3e%3c/svg%3e",by=({onEventClick:e,upcomingEvents:n,onSyncGoogle:t,onSyncOutlook:r,leads30Days:o,leads90Days:a})=>{const i=d=>{const f=new Date,m={start:y.startOfDay(f),end:y.endOfDay(f)},g={start:d.fechaInicio,end:d.fechaFin};return ou(m,g)?"Hoy":y.isTomorrow(d.fechaInicio)?"Mañana":new Intl.DateTimeFormat("es-ES",{day:"numeric",month:"long"}).format(d.fechaInicio)},s={};n.forEach(d=>{const f=i(d);s[f]||(s[f]=[]),s[f].push(d)});const[c,l]=w.useState(!1),u=()=>{l(!c)};return h.jsxs("div",{className:_e.sidebarContainer,children:[h.jsxs("div",{className:_e.leadsSection,children:[h.jsxs("div",{className:_e.leadCard,children:[h.jsx("div",{className:_e.leadIcon,children:h.jsx("img",{src:pu})}),h.jsxs("div",{className:_e.leadText,children:[h.jsx("div",{className:_e.leadDays,children:"+30 días sin atender"}),h.jsxs("div",{className:_e.leadCount,children:[o," ",h.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]}),h.jsxs("div",{className:_e.leadCard,children:[h.jsx("div",{className:_e.leadIcon,children:h.jsx("img",{src:pu})}),h.jsxs("div",{className:_e.leadText,children:[h.jsx("div",{className:_e.leadDays,children:"+90 días sin atender"}),h.jsxs("div",{className:_e.leadCount,children:[a," ",h.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]})]}),h.jsxs("div",{className:_e.eventsSection,children:[h.jsx("h3",{className:_e.sidebarTitle,children:"Próximos eventos"}),h.jsx("div",{className:_e.eventsContainer,children:Object.entries(s).map(([d,f])=>h.jsxs("div",{className:`${_e.eventGroup}`,children:[h.jsxs("div",{className:_e.eventGroupDate,children:[h.jsx("img",{src:vy,width:15})," ",d]}),f.map(m=>{const g=ce(m.color||"#ffcc00"),p=g.toString(),b=g.clone().darken(15).toString();return h.jsxs("div",{className:_e.eventItem,style:{backgroundColor:p,borderLeftColor:b},onClick:()=>e(m),children:[h.jsxs("div",{className:_e.eventDetails,children:[h.jsx("div",{className:_e.eventTitle,children:m.titulo.length>32?`${m.titulo.substring(0,32)}...`:m.titulo}),h.jsx("div",{className:_e.eventGroupDate,children:m?.client?m?.client?.length>50?`${m.client.substring(0,32)}...`:m.client:""}),h.jsx("div",{className:_e.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(m.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(m.fechaFin)}`})]}),m.link&&h.jsx("a",{onClick:x=>{x.stopPropagation()},href:m?.link,target:"_blank",style:{textDecoration:"none"},children:h.jsx("img",{src:yy,width:15,style:{marginLeft:"3px"}})})]},m.eventoID)})]},d))})]}),h.jsxs("div",{className:_e.calendarsSection,hidden:!0,children:[h.jsxs("button",{onClick:u,className:_e.collapsibleHeader,children:[h.jsxs("div",{className:_e.headerTitle,children:[h.jsx("h3",{children:"Calendarios"}),h.jsx("span",{className:_e.calendarCount,children:"1"})]}),h.jsx(Yv,{className:`${_e.chevronIcon} ${c?_e.collapsed:""}`})]}),h.jsxs("div",{className:`${_e.collapsibleContent} ${c?_e.hidden:""}`,children:[h.jsxs("div",{className:_e.calendarItem,children:[h.jsx("div",{className:_e.circularCheckbox,children:h.jsx(Hv,{size:24,className:_e.checkedIcon})}),h.jsx(ru,{size:24,className:_e.calendarIcon}),h.jsx("span",{children:"Mi calendario"})]}),h.jsxs("div",{className:_e.calendarItem,onClick:r,children:[h.jsx("div",{className:_e.circularCheckbox,children:h.jsx(Uv,{size:24,className:_e.uncheckedIcon})}),h.jsx(Wv,{size:24,className:_e.calendarIcon}),h.jsx("span",{children:"Outlook"})]}),h.jsxs("div",{className:_e.syncButton,onClick:t,children:[h.jsx(ru,{size:24,className:_e.googleIcon}),h.jsx("span",{children:"Sincronizar Google Calendar"})]})]})]})]})},Vt={dayCell:"_dayCell_ph891_1",dayCellContainer:"_dayCellContainer_ph891_23",dayNumber:"_dayNumber_ph891_55",dayNumberToday:"_dayNumberToday_ph891_69",notCurrentMonth:"_notCurrentMonth_ph891_91",CurrentDay:"_CurrentDay_ph891_129",eventsList:"_eventsList_ph891_137",eventItem:"_eventItem_ph891_155",eventTitle:"_eventTitle_ph891_187",eventTime:"_eventTime_ph891_217",seeMoreLink:"_seeMoreLink_ph891_245"},hu=25,wy=22,_y=({dayNumber:e,date:n,events:t,isToday:r,isCurrentMonth:o,onDayClick:a,onEventClick:i,onSeeMoreClick:s})=>{const c=[Vt.dayCell,o?"":Vt.notCurrentMonth,Vt.CurrentDay].join(" ").trim(),l=w.useRef(null),[u,d]=w.useState(t.length),f=()=>{a?.(n)};w.useLayoutEffect(()=>{const p=()=>{if(l.current){const b=l.current.clientHeight;let x=Math.floor(b/hu);if(x<t.length){const S=Math.floor((b-wy)/hu);x=Math.max(0,S)}d(x)}};return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[t.length]);const m=t.slice(0,u==0?1:u),g=t.length-(u==0?1:u);return h.jsxs("div",{className:`${c} ${Vt.dayCellContainer}`,onClick:f,children:[h.jsx("div",{className:r?Vt.dayNumber:Vt.dayNumberToday,children:e}),h.jsxs("div",{className:Vt.eventsList,ref:l,children:[m.map(p=>h.jsxs("div",{className:Vt.eventItem,style:{backgroundColor:p.color||"#007bff"},onClick:b=>{b.stopPropagation(),i?.(p)},children:[h.jsx("span",{className:Vt.eventTitle,children:p.titulo}),h.jsx("span",{className:Vt.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(p.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(p.fechaFin)}`})]},p.eventoID)),g>0&&h.jsxs("div",{className:Vt.seeMoreLink,onClick:p=>{p.stopPropagation(),s(t,n)},children:[g," más..."]})]})]})},mu={weekDaysContainer:"_weekDaysContainer_5h5ol_1",weekDay:"_weekDay_5h5ol_1"},xy=()=>{const e=["Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"];return h.jsx("div",{className:mu.weekDaysContainer,children:e.map(n=>h.jsx("div",{className:mu.weekDay,children:n},n))})},pa={calendarGridContainer:"_calendarGridContainer_1expw_1",daysContainer:"_daysContainer_1expw_23",rows5:"_rows5_1expw_37",rows6:"_rows6_1expw_45"};function Sy(e,...n){const t=Bi.bind(null,n.find(r=>typeof r=="object"));return n.map(t)}function Cy(e,n){const[t,r]=Sy(e,n.start,n.end);return{start:t,end:r}}function ky(e,n){const{start:t,end:r}=Cy(n?.in,e);let o=+t>+r;const a=o?+t:+r,i=o?r:t;i.setHours(0,0,0,0);let s=1;const c=[];for(;+i<=a;)c.push(Bi(t,i)),i.setDate(i.getDate()+s),i.setHours(0,0,0,0);return o?c.reverse():c}function Dy(e,n){const t=n?.weekStartsOn,r=Cr(e,n?.in),o=r.getDay(),a=(o<t?-7:0)+6-(o-t);return r.setDate(r.getDate()+a),r.setHours(23,59,59,999),r}function Ey(e,n,t){const r=+Cr(e,t?.in),[o,a]=[+Cr(n.start,t?.in),+Cr(n.end,t?.in)].sort((i,s)=>i-s);return r>=o&&r<=a}const Ty=({currentDate:e,events:n,onDayClick:t,onEventClick:r,onSeeMoreClick:o})=>{const a=y.startOfMonth(e),i=y.endOfMonth(e),s=y.startOfWeek(a,{weekStartsOn:1}),c=Dy(i,{weekStartsOn:1}),l=ky({start:s,end:c}),u={},d=l.length/7,f=`${pa.daysContainer} ${d===5?pa.rows5:pa.rows6}`;return n.forEach(m=>{const g=y.format(m.fechaInicio,"yyyy-MM-dd");u[g]||(u[g]=[]),u[g].push(m)}),h.jsxs("div",{className:pa.calendarGridContainer,children:[h.jsx(xy,{}),h.jsx("div",{className:f,children:l.map(m=>{const g=n.filter(p=>Ey(m,{start:y.startOfDay(p.fechaInicio),end:y.endOfDay(p.fechaFin)}));return h.jsx(_y,{dayNumber:m.getDate(),date:m,events:g,isToday:y.isToday(m),isCurrentMonth:y.isSameMonth(m,e),onDayClick:t,onEventClick:r,onSeeMoreClick:o},m.toISOString())})})]})};function gu(e,n){return function(){return e.apply(n,arguments)}}const{toString:Oy}=Object.prototype,{getPrototypeOf:Fi}=Object,{iterator:ha,toStringTag:vu}=Symbol,ma=(e=>n=>{const t=Oy.call(n);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ft=e=>(e=e.toLowerCase(),n=>ma(n)===e),ga=e=>n=>typeof n===e,{isArray:dn}=Array,Zn=ga("undefined");function qn(e){return e!==null&&!Zn(e)&&e.constructor!==null&&!Zn(e.constructor)&&bt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const yu=Ft("ArrayBuffer");function My(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&yu(e.buffer),n}const Ay=ga("string"),bt=ga("function"),bu=ga("number"),Kn=e=>e!==null&&typeof e=="object",Py=e=>e===!0||e===!1,va=e=>{if(ma(e)!=="object")return!1;const n=Fi(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(vu in e)&&!(ha in e)},Iy=e=>{if(!Kn(e)||qn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ny=Ft("Date"),Ry=Ft("File"),$y=Ft("Blob"),jy=Ft("FileList"),Ly=e=>Kn(e)&&bt(e.pipe),zy=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||bt(e.append)&&((n=ma(e))==="formdata"||n==="object"&&bt(e.toString)&&e.toString()==="[object FormData]"))},By=Ft("URLSearchParams"),[Vy,Fy,Yy,Hy]=["ReadableStream","Request","Response","Headers"].map(Ft),Uy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gn(e,n,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),dn(e))for(r=0,o=e.length;r<o;r++)n.call(null,e[r],r,e);else{if(qn(e))return;const a=t?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let s;for(r=0;r<i;r++)s=a[r],n.call(null,e[s],s,e)}}function wu(e,n){if(qn(e))return null;n=n.toLowerCase();const t=Object.keys(e);let r=t.length,o;for(;r-- >0;)if(o=t[r],n===o.toLowerCase())return o;return null}const $r=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_u=e=>!Zn(e)&&e!==$r;function Yi(){const{caseless:e}=_u(this)&&this||{},n={},t=(r,o)=>{const a=e&&wu(n,o)||o;va(n[a])&&va(r)?n[a]=Yi(n[a],r):va(r)?n[a]=Yi({},r):dn(r)?n[a]=r.slice():n[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Gn(arguments[r],t);return n}const Wy=(e,n,t,{allOwnKeys:r}={})=>(Gn(n,(o,a)=>{t&&bt(o)?e[a]=gu(o,t):e[a]=o},{allOwnKeys:r}),e),Zy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qy=(e,n,t,r)=>{e.prototype=Object.create(n.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),t&&Object.assign(e.prototype,t)},Ky=(e,n,t,r)=>{let o,a,i;const s={};if(n=n||{},e==null)return n;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!r||r(i,e,n))&&!s[i]&&(n[i]=e[i],s[i]=!0);e=t!==!1&&Fi(e)}while(e&&(!t||t(e,n))&&e!==Object.prototype);return n},Gy=(e,n,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=n.length;const r=e.indexOf(n,t);return r!==-1&&r===t},Qy=e=>{if(!e)return null;if(dn(e))return e;let n=e.length;if(!bu(n))return null;const t=new Array(n);for(;n-- >0;)t[n]=e[n];return t},Jy=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&Fi(Uint8Array)),Xy=(e,n)=>{const r=(e&&e[ha]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;n.call(e,a[0],a[1])}},eb=(e,n)=>{let t;const r=[];for(;(t=e.exec(n))!==null;)r.push(t);return r},tb=Ft("HTMLFormElement"),rb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,o){return r.toUpperCase()+o}),xu=(({hasOwnProperty:e})=>(n,t)=>e.call(n,t))(Object.prototype),nb=Ft("RegExp"),Su=(e,n)=>{const t=Object.getOwnPropertyDescriptors(e),r={};Gn(t,(o,a)=>{let i;(i=n(o,a,e))!==!1&&(r[a]=i||o)}),Object.defineProperties(e,r)},ob=e=>{Su(e,(n,t)=>{if(bt(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const r=e[t];if(bt(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},ab=(e,n)=>{const t={},r=o=>{o.forEach(a=>{t[a]=!0})};return dn(e)?r(e):r(String(e).split(n)),t},ib=()=>{},sb=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function cb(e){return!!(e&&bt(e.append)&&e[vu]==="FormData"&&e[ha])}const lb=e=>{const n=new Array(10),t=(r,o)=>{if(Kn(r)){if(n.indexOf(r)>=0)return;if(qn(r))return r;if(!("toJSON"in r)){n[o]=r;const a=dn(r)?[]:{};return Gn(r,(i,s)=>{const c=t(i,o+1);!Zn(c)&&(a[s]=c)}),n[o]=void 0,a}}return r};return t(e,0)},ub=Ft("AsyncFunction"),db=e=>e&&(Kn(e)||bt(e))&&bt(e.then)&&bt(e.catch),Cu=((e,n)=>e?setImmediate:n?((t,r)=>($r.addEventListener("message",({source:o,data:a})=>{o===$r&&a===t&&r.length&&r.shift()()},!1),o=>{r.push(o),$r.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",bt($r.postMessage)),fb=typeof queueMicrotask<"u"?queueMicrotask.bind($r):typeof process<"u"&&process.nextTick||Cu,R={isArray:dn,isArrayBuffer:yu,isBuffer:qn,isFormData:zy,isArrayBufferView:My,isString:Ay,isNumber:bu,isBoolean:Py,isObject:Kn,isPlainObject:va,isEmptyObject:Iy,isReadableStream:Vy,isRequest:Fy,isResponse:Yy,isHeaders:Hy,isUndefined:Zn,isDate:Ny,isFile:Ry,isBlob:$y,isRegExp:nb,isFunction:bt,isStream:Ly,isURLSearchParams:By,isTypedArray:Jy,isFileList:jy,forEach:Gn,merge:Yi,extend:Wy,trim:Uy,stripBOM:Zy,inherits:qy,toFlatObject:Ky,kindOf:ma,kindOfTest:Ft,endsWith:Gy,toArray:Qy,forEachEntry:Xy,matchAll:eb,isHTMLForm:tb,hasOwnProperty:xu,hasOwnProp:xu,reduceDescriptors:Su,freezeMethods:ob,toObjectSet:ab,toCamelCase:rb,noop:ib,toFiniteNumber:sb,findKey:wu,global:$r,isContextDefined:_u,isSpecCompliantForm:cb,toJSONObject:lb,isAsyncFn:ub,isThenable:db,setImmediate:Cu,asap:fb,isIterable:e=>e!=null&&bt(e[ha])};function we(e,n,t,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),t&&(this.config=t),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}R.inherits(we,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});const ku=we.prototype,Du={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Du[e]={value:e}}),Object.defineProperties(we,Du),Object.defineProperty(ku,"isAxiosError",{value:!0}),we.from=(e,n,t,r,o,a)=>{const i=Object.create(ku);return R.toFlatObject(e,i,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),we.call(i,e.message,n,t,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const pb=null;function Hi(e){return R.isPlainObject(e)||R.isArray(e)}function Eu(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Tu(e,n,t){return e?e.concat(n).map(function(o,a){return o=Eu(o),!t&&a?"["+o+"]":o}).join(t?".":""):n}function hb(e){return R.isArray(e)&&!e.some(Hi)}const mb=R.toFlatObject(R,{},null,function(n){return/^is[A-Z]/.test(n)});function ya(e,n,t){if(!R.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,t=R.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,b){return!R.isUndefined(b[p])});const r=t.metaTokens,o=t.visitor||u,a=t.dots,i=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(n);if(!R.isFunction(o))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(R.isDate(g))return g.toISOString();if(R.isBoolean(g))return g.toString();if(!c&&R.isBlob(g))throw new we("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(g)||R.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,b){let x=g;if(g&&!b&&typeof g=="object"){if(R.endsWith(p,"{}"))p=r?p:p.slice(0,-2),g=JSON.stringify(g);else if(R.isArray(g)&&hb(g)||(R.isFileList(g)||R.endsWith(p,"[]"))&&(x=R.toArray(g)))return p=Eu(p),x.forEach(function(T,D){!(R.isUndefined(T)||T===null)&&n.append(i===!0?Tu([p],D,a):i===null?p:p+"[]",l(T))}),!1}return Hi(g)?!0:(n.append(Tu(b,p,a),l(g)),!1)}const d=[],f=Object.assign(mb,{defaultVisitor:u,convertValue:l,isVisitable:Hi});function m(g,p){if(!R.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(g),R.forEach(g,function(x,S){(!(R.isUndefined(x)||x===null)&&o.call(n,x,R.isString(S)?S.trim():S,p,f))===!0&&m(x,p?p.concat(S):[S])}),d.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return m(e),n}function Ou(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function Ui(e,n){this._pairs=[],e&&ya(e,this,n)}const Mu=Ui.prototype;Mu.append=function(n,t){this._pairs.push([n,t])},Mu.toString=function(n){const t=n?function(r){return n.call(this,r,Ou)}:Ou;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function gb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Au(e,n,t){if(!n)return e;const r=t&&t.encode||gb;R.isFunction(t)&&(t={serialize:t});const o=t&&t.serialize;let a;if(o?a=o(n,t):a=R.isURLSearchParams(n)?n.toString():new Ui(n,t).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Pu{constructor(){this.handlers=[]}use(n,t,r){return this.handlers.push({fulfilled:n,rejected:t,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){R.forEach(this.handlers,function(r){r!==null&&n(r)})}}const Iu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vb={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ui,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Wi=typeof window<"u"&&typeof document<"u",Zi=typeof navigator=="object"&&navigator||void 0,yb=Wi&&(!Zi||["ReactNative","NativeScript","NS"].indexOf(Zi.product)<0),bb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wb=Wi&&window.location.href||"http://localhost",ft={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wi,hasStandardBrowserEnv:yb,hasStandardBrowserWebWorkerEnv:bb,navigator:Zi,origin:wb},Symbol.toStringTag,{value:"Module"})),...vb};function _b(e,n){return ya(e,new ft.classes.URLSearchParams,{visitor:function(t,r,o,a){return ft.isNode&&R.isBuffer(t)?(this.append(r,t.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...n})}function xb(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function Sb(e){const n={},t=Object.keys(e);let r;const o=t.length;let a;for(r=0;r<o;r++)a=t[r],n[a]=e[a];return n}function Nu(e){function n(t,r,o,a){let i=t[a++];if(i==="__proto__")return!0;const s=Number.isFinite(+i),c=a>=t.length;return i=!i&&R.isArray(o)?o.length:i,c?(R.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!s):((!o[i]||!R.isObject(o[i]))&&(o[i]=[]),n(t,r,o[i],a)&&R.isArray(o[i])&&(o[i]=Sb(o[i])),!s)}if(R.isFormData(e)&&R.isFunction(e.entries)){const t={};return R.forEachEntry(e,(r,o)=>{n(xb(r),o,t,0)}),t}return null}function Cb(e,n,t){if(R.isString(e))try{return(n||JSON.parse)(e),R.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(t||JSON.stringify)(e)}const Qn={transitional:Iu,adapter:["xhr","http","fetch"],transformRequest:[function(n,t){const r=t.getContentType()||"",o=r.indexOf("application/json")>-1,a=R.isObject(n);if(a&&R.isHTMLForm(n)&&(n=new FormData(n)),R.isFormData(n))return o?JSON.stringify(Nu(n)):n;if(R.isArrayBuffer(n)||R.isBuffer(n)||R.isStream(n)||R.isFile(n)||R.isBlob(n)||R.isReadableStream(n))return n;if(R.isArrayBufferView(n))return n.buffer;if(R.isURLSearchParams(n))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _b(n,this.formSerializer).toString();if((s=R.isFileList(n))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ya(s?{"files[]":n}:n,c&&new c,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),Cb(n)):n}],transformResponse:[function(n){const t=this.transitional||Qn.transitional,r=t&&t.forcedJSONParsing,o=this.responseType==="json";if(R.isResponse(n)||R.isReadableStream(n))return n;if(n&&R.isString(n)&&(r&&!this.responseType||o)){const i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(n)}catch(s){if(i)throw s.name==="SyntaxError"?we.from(s,we.ERR_BAD_RESPONSE,this,null,this.response):s}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ft.classes.FormData,Blob:ft.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{Qn.headers[e]={}});const kb=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Db=e=>{const n={};let t,r,o;return e&&e.split(`
153
+ `).forEach(function(i){o=i.indexOf(":"),t=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!t||n[t]&&kb[t])&&(t==="set-cookie"?n[t]?n[t].push(r):n[t]=[r]:n[t]=n[t]?n[t]+", "+r:r)}),n},Ru=Symbol("internals");function Jn(e){return e&&String(e).trim().toLowerCase()}function ba(e){return e===!1||e==null?e:R.isArray(e)?e.map(ba):String(e)}function Eb(e){const n=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=t.exec(e);)n[r[1]]=r[2];return n}const Tb=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qi(e,n,t,r,o){if(R.isFunction(r))return r.call(this,n,t);if(o&&(n=t),!!R.isString(n)){if(R.isString(r))return n.indexOf(r)!==-1;if(R.isRegExp(r))return r.test(n)}}function Ob(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,t,r)=>t.toUpperCase()+r)}function Mb(e,n){const t=R.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+t,{value:function(o,a,i){return this[r].call(this,n,o,a,i)},configurable:!0})})}let wt=class{constructor(n){n&&this.set(n)}set(n,t,r){const o=this;function a(s,c,l){const u=Jn(c);if(!u)throw new Error("header name must be a non-empty string");const d=R.findKey(o,u);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||c]=ba(s))}const i=(s,c)=>R.forEach(s,(l,u)=>a(l,u,c));if(R.isPlainObject(n)||n instanceof this.constructor)i(n,t);else if(R.isString(n)&&(n=n.trim())&&!Tb(n))i(Db(n),t);else if(R.isObject(n)&&R.isIterable(n)){let s={},c,l;for(const u of n){if(!R.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[l=u[0]]=(c=s[l])?R.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}i(s,t)}else n!=null&&a(t,n,r);return this}get(n,t){if(n=Jn(n),n){const r=R.findKey(this,n);if(r){const o=this[r];if(!t)return o;if(t===!0)return Eb(o);if(R.isFunction(t))return t.call(this,o,r);if(R.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,t){if(n=Jn(n),n){const r=R.findKey(this,n);return!!(r&&this[r]!==void 0&&(!t||qi(this,this[r],r,t)))}return!1}delete(n,t){const r=this;let o=!1;function a(i){if(i=Jn(i),i){const s=R.findKey(r,i);s&&(!t||qi(r,r[s],s,t))&&(delete r[s],o=!0)}}return R.isArray(n)?n.forEach(a):a(n),o}clear(n){const t=Object.keys(this);let r=t.length,o=!1;for(;r--;){const a=t[r];(!n||qi(this,this[a],a,n,!0))&&(delete this[a],o=!0)}return o}normalize(n){const t=this,r={};return R.forEach(this,(o,a)=>{const i=R.findKey(r,a);if(i){t[i]=ba(o),delete t[a];return}const s=n?Ob(a):String(a).trim();s!==a&&delete t[a],t[s]=ba(o),r[s]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const t=Object.create(null);return R.forEach(this,(r,o)=>{r!=null&&r!==!1&&(t[o]=n&&R.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,t])=>n+": "+t).join(`
154
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...t){const r=new this(n);return t.forEach(o=>r.set(o)),r}static accessor(n){const r=(this[Ru]=this[Ru]={accessors:{}}).accessors,o=this.prototype;function a(i){const s=Jn(i);r[s]||(Mb(o,i),r[s]=!0)}return R.isArray(n)?n.forEach(a):a(n),this}};wt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),R.reduceDescriptors(wt.prototype,({value:e},n)=>{let t=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(r){this[t]=r}}}),R.freezeMethods(wt);function Ki(e,n){const t=this||Qn,r=n||t,o=wt.from(r.headers);let a=r.data;return R.forEach(e,function(s){a=s.call(t,a,o.normalize(),n?n.status:void 0)}),o.normalize(),a}function $u(e){return!!(e&&e.__CANCEL__)}function fn(e,n,t){we.call(this,e??"canceled",we.ERR_CANCELED,n,t),this.name="CanceledError"}R.inherits(fn,we,{__CANCEL__:!0});function ju(e,n,t){const r=t.config.validateStatus;!t.status||!r||r(t.status)?e(t):n(new we("Request failed with status code "+t.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Ab(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function Pb(e,n){e=e||10;const t=new Array(e),r=new Array(e);let o=0,a=0,i;return n=n!==void 0?n:1e3,function(c){const l=Date.now(),u=r[a];i||(i=l),t[o]=c,r[o]=l;let d=a,f=0;for(;d!==o;)f+=t[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),l-i<n)return;const m=u&&l-u;return m?Math.round(f*1e3/m):void 0}}function Ib(e,n){let t=0,r=1e3/n,o,a;const i=(l,u=Date.now())=>{t=u,o=null,a&&(clearTimeout(a),a=null),e(...l)};return[(...l)=>{const u=Date.now(),d=u-t;d>=r?i(l,u):(o=l,a||(a=setTimeout(()=>{a=null,i(o)},r-d)))},()=>o&&i(o)]}const wa=(e,n,t=3)=>{let r=0;const o=Pb(50,250);return Ib(a=>{const i=a.loaded,s=a.lengthComputable?a.total:void 0,c=i-r,l=o(c),u=i<=s;r=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:a,lengthComputable:s!=null,[n?"download":"upload"]:!0};e(d)},t)},Lu=(e,n)=>{const t=e!=null;return[r=>n[0]({lengthComputable:t,total:e,loaded:r}),n[1]]},zu=e=>(...n)=>R.asap(()=>e(...n)),Nb=ft.hasStandardBrowserEnv?((e,n)=>t=>(t=new URL(t,ft.origin),e.protocol===t.protocol&&e.host===t.host&&(n||e.port===t.port)))(new URL(ft.origin),ft.navigator&&/(msie|trident)/i.test(ft.navigator.userAgent)):()=>!0,Rb=ft.hasStandardBrowserEnv?{write(e,n,t,r,o,a){const i=[e+"="+encodeURIComponent(n)];R.isNumber(t)&&i.push("expires="+new Date(t).toGMTString()),R.isString(r)&&i.push("path="+r),R.isString(o)&&i.push("domain="+o),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $b(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jb(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function Bu(e,n,t){let r=!$b(n);return e&&(r||t==!1)?jb(e,n):n}const Vu=e=>e instanceof wt?{...e}:e;function jr(e,n){n=n||{};const t={};function r(l,u,d,f){return R.isPlainObject(l)&&R.isPlainObject(u)?R.merge.call({caseless:f},l,u):R.isPlainObject(u)?R.merge({},u):R.isArray(u)?u.slice():u}function o(l,u,d,f){if(R.isUndefined(u)){if(!R.isUndefined(l))return r(void 0,l,d,f)}else return r(l,u,d,f)}function a(l,u){if(!R.isUndefined(u))return r(void 0,u)}function i(l,u){if(R.isUndefined(u)){if(!R.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function s(l,u,d){if(d in n)return r(l,u);if(d in e)return r(void 0,l)}const c={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(l,u,d)=>o(Vu(l),Vu(u),d,!0)};return R.forEach(Object.keys({...e,...n}),function(u){const d=c[u]||o,f=d(e[u],n[u],u);R.isUndefined(f)&&d!==s||(t[u]=f)}),t}const Fu=e=>{const n=jr({},e);let{data:t,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=n;n.headers=i=wt.from(i),n.url=Au(Bu(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(R.isFormData(t)){if(ft.hasStandardBrowserEnv||ft.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...u].join("; "))}}if(ft.hasStandardBrowserEnv&&(r&&R.isFunction(r)&&(r=r(n)),r||r!==!1&&Nb(n.url))){const l=o&&a&&Rb.read(a);l&&i.set(o,l)}return n},Lb=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,r){const o=Fu(e);let a=o.data;const i=wt.from(o.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=o,u,d,f,m,g;function p(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function x(){if(!b)return;const T=wt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:T,config:e,request:b};ju(function(I){t(I),p()},function(I){r(I),p()},k),b=null}"onloadend"in b?b.onloadend=x:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(x)},b.onabort=function(){b&&(r(new we("Request aborted",we.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new we("Network Error",we.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let D=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||Iu;o.timeoutErrorMessage&&(D=o.timeoutErrorMessage),r(new we(D,k.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,b)),b=null},a===void 0&&i.setContentType(null),"setRequestHeader"in b&&R.forEach(i.toJSON(),function(D,k){b.setRequestHeader(k,D)}),R.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),s&&s!=="json"&&(b.responseType=o.responseType),l&&([f,g]=wa(l,!0),b.addEventListener("progress",f)),c&&b.upload&&([d,m]=wa(c),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=T=>{b&&(r(!T||T.type?new fn(null,e,b):T),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const S=Ab(o.url);if(S&&ft.protocols.indexOf(S)===-1){r(new we("Unsupported protocol "+S+":",we.ERR_BAD_REQUEST,e));return}b.send(a||null)})},zb=(e,n)=>{const{length:t}=e=e?e.filter(Boolean):[];if(n||t){let r=new AbortController,o;const a=function(l){if(!o){o=!0,s();const u=l instanceof Error?l:this.reason;r.abort(u instanceof we?u:new fn(u instanceof Error?u.message:u))}};let i=n&&setTimeout(()=>{i=null,a(new we(`timeout ${n} of ms exceeded`,we.ETIMEDOUT))},n);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),e=null)};e.forEach(l=>l.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>R.asap(s),c}},Bb=function*(e,n){let t=e.byteLength;if(t<n){yield e;return}let r=0,o;for(;r<t;)o=r+n,yield e.slice(r,o),r=o},Vb=async function*(e,n){for await(const t of Fb(e))yield*Bb(t,n)},Fb=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:t,value:r}=await n.read();if(t)break;yield r}}finally{await n.cancel()}},Yu=(e,n,t,r)=>{const o=Vb(e,n);let a=0,i,s=c=>{i||(i=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await o.next();if(l){s(),c.close();return}let d=u.byteLength;if(t){let f=a+=d;t(f)}c.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(c){return s(c),o.return()}},{highWaterMark:2})},_a=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hu=_a&&typeof ReadableStream=="function",Yb=_a&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Uu=(e,...n)=>{try{return!!e(...n)}catch{return!1}},Hb=Hu&&Uu(()=>{let e=!1;const n=new Request(ft.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),Wu=64*1024,Gi=Hu&&Uu(()=>R.isReadableStream(new Response("").body)),xa={stream:Gi&&(e=>e.body)};_a&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!xa[n]&&(xa[n]=R.isFunction(e[n])?t=>t[n]():(t,r)=>{throw new we(`Response type '${n}' is not supported`,we.ERR_NOT_SUPPORT,r)})})})(new Response);const Ub=async e=>{if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(await new Request(ft.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e=e+""),R.isString(e))return(await Yb(e)).byteLength},Wb=async(e,n)=>{const t=R.toFiniteNumber(e.getContentLength());return t??Ub(n)},Qi={http:pb,xhr:Lb,fetch:_a&&(async e=>{let{url:n,method:t,data:r,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Fu(e);l=l?(l+"").toLowerCase():"text";let m=zb([o,a&&a.toAbortSignal()],i),g;const p=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let b;try{if(c&&Hb&&t!=="get"&&t!=="head"&&(b=await Wb(u,r))!==0){let k=new Request(n,{method:"POST",body:r,duplex:"half"}),O;if(R.isFormData(r)&&(O=k.headers.get("content-type"))&&u.setContentType(O),k.body){const[I,W]=Lu(b,wa(zu(c)));r=Yu(k.body,Wu,I,W)}}R.isString(d)||(d=d?"include":"omit");const x="credentials"in Request.prototype;g=new Request(n,{...f,signal:m,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:x?d:void 0});let S=await fetch(g,f);const T=Gi&&(l==="stream"||l==="response");if(Gi&&(s||T&&p)){const k={};["status","statusText","headers"].forEach(U=>{k[U]=S[U]});const O=R.toFiniteNumber(S.headers.get("content-length")),[I,W]=s&&Lu(O,wa(zu(s),!0))||[];S=new Response(Yu(S.body,Wu,I,()=>{W&&W(),p&&p()}),k)}l=l||"text";let D=await xa[R.findKey(xa,l)||"text"](S,e);return!T&&p&&p(),await new Promise((k,O)=>{ju(k,O,{data:D,headers:wt.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:g})})}catch(x){throw p&&p(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,e,g),{cause:x.cause||x}):we.from(x,x&&x.code,e,g)}})};R.forEach(Qi,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const Zu=e=>`- ${e}`,Zb=e=>R.isFunction(e)||e===null||e===!1,qu={getAdapter:e=>{e=R.isArray(e)?e:[e];const{length:n}=e;let t,r;const o={};for(let a=0;a<n;a++){t=e[a];let i;if(r=t,!Zb(t)&&(r=Qi[(i=String(t)).toLowerCase()],r===void 0))throw new we(`Unknown adapter '${i}'`);if(r)break;o[i||"#"+a]=r}if(!r){const a=Object.entries(o).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=n?a.length>1?`since :
155
+ `+a.map(Zu).join(`
156
+ `):" "+Zu(a[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Qi};function Ji(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fn(null,e)}function Ku(e){return Ji(e),e.headers=wt.from(e.headers),e.data=Ki.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qu.getAdapter(e.adapter||Qn.adapter)(e).then(function(r){return Ji(e),r.data=Ki.call(e,e.transformResponse,r),r.headers=wt.from(r.headers),r},function(r){return $u(r)||(Ji(e),r&&r.response&&(r.response.data=Ki.call(e,e.transformResponse,r.response),r.response.headers=wt.from(r.response.headers))),Promise.reject(r)})}const Gu="1.11.0",Sa={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{Sa[e]=function(r){return typeof r===e||"a"+(n<1?"n ":" ")+e}});const Qu={};Sa.transitional=function(n,t,r){function o(a,i){return"[Axios v"+Gu+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,s)=>{if(n===!1)throw new we(o(i," has been removed"+(t?" in "+t:"")),we.ERR_DEPRECATED);return t&&!Qu[i]&&(Qu[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(a,i,s):!0}},Sa.spelling=function(n){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${n}`),!0)};function qb(e,n,t){if(typeof e!="object")throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=n[a];if(i){const s=e[a],c=s===void 0||i(s,a,e);if(c!==!0)throw new we("option "+a+" must be "+c,we.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new we("Unknown option "+a,we.ERR_BAD_OPTION)}}const Ca={assertOptions:qb,validators:Sa},rr=Ca.validators;let Lr=class{constructor(n){this.defaults=n||{},this.interceptors={request:new Pu,response:new Pu}}async request(n,t){try{return await this._request(n,t)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
157
+ `+a):r.stack=a}catch{}}throw r}}_request(n,t){typeof n=="string"?(t=t||{},t.url=n):t=n||{},t=jr(this.defaults,t);const{transitional:r,paramsSerializer:o,headers:a}=t;r!==void 0&&Ca.assertOptions(r,{silentJSONParsing:rr.transitional(rr.boolean),forcedJSONParsing:rr.transitional(rr.boolean),clarifyTimeoutError:rr.transitional(rr.boolean)},!1),o!=null&&(R.isFunction(o)?t.paramsSerializer={serialize:o}:Ca.assertOptions(o,{encode:rr.function,serialize:rr.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ca.assertOptions(t,{baseUrl:rr.spelling("baseURL"),withXsrfToken:rr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&R.merge(a.common,a[t.method]);a&&R.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),t.headers=wt.concat(i,a);const s=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(t)===!1||(c=c&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const l=[];this.interceptors.response.forEach(function(p){l.push(p.fulfilled,p.rejected)});let u,d=0,f;if(!c){const g=[Ku.bind(this),void 0];for(g.unshift(...s),g.push(...l),f=g.length,u=Promise.resolve(t);d<f;)u=u.then(g[d++],g[d++]);return u}f=s.length;let m=t;for(d=0;d<f;){const g=s[d++],p=s[d++];try{m=g(m)}catch(b){p.call(this,b);break}}try{u=Ku.call(this,m)}catch(g){return Promise.reject(g)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(n){n=jr(this.defaults,n);const t=Bu(n.baseURL,n.url,n.allowAbsoluteUrls);return Au(t,n.params,n.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(n){Lr.prototype[n]=function(t,r){return this.request(jr(r||{},{method:n,url:t,data:(r||{}).data}))}}),R.forEach(["post","put","patch"],function(n){function t(r){return function(a,i,s){return this.request(jr(s||{},{method:n,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}Lr.prototype[n]=t(),Lr.prototype[n+"Form"]=t(!0)});let Kb=class Zf{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(s=>{r.subscribe(s),a=s}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},n(function(a,i,s){r.reason||(r.reason=new fn(a,i,s),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const t=this._listeners.indexOf(n);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const n=new AbortController,t=r=>{n.abort(r)};return this.subscribe(t),n.signal.unsubscribe=()=>this.unsubscribe(t),n.signal}static source(){let n;return{token:new Zf(function(o){n=o}),cancel:n}}};function Gb(e){return function(t){return e.apply(null,t)}}function Qb(e){return R.isObject(e)&&e.isAxiosError===!0}const Xi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xi).forEach(([e,n])=>{Xi[n]=e});function Ju(e){const n=new Lr(e),t=gu(Lr.prototype.request,n);return R.extend(t,Lr.prototype,n,{allOwnKeys:!0}),R.extend(t,n,null,{allOwnKeys:!0}),t.create=function(o){return Ju(jr(e,o))},t}const Je=Ju(Qn);Je.Axios=Lr,Je.CanceledError=fn,Je.CancelToken=Kb,Je.isCancel=$u,Je.VERSION=Gu,Je.toFormData=ya,Je.AxiosError=we,Je.Cancel=Je.CanceledError,Je.all=function(n){return Promise.all(n)},Je.spread=Gb,Je.isAxiosError=Qb,Je.mergeConfig=jr,Je.AxiosHeaders=wt,Je.formToJSON=e=>Nu(R.isHTMLForm(e)?new FormData(e):e),Je.getAdapter=qu.getAdapter,Je.HttpStatusCode=Xi,Je.default=Je;const{Axios:Ck,AxiosError:kk,CanceledError:Dk,isCancel:Ek,CancelToken:Tk,VERSION:Ok,all:Mk,Cancel:Ak,isAxiosError:Pk,spread:Ik,toFormData:Nk,AxiosHeaders:Rk,HttpStatusCode:$k,formToJSON:jk,getAdapter:Lk,mergeConfig:zk}=Je,Xu={token:null},Jb=e=>{Xu.token=e},zr=Je.create({headers:{"Content-Type":"application/json"}});zr.interceptors.request.use(e=>{const n=Xu.token;return n&&(e.headers.Authorization=`Bearer ${n}`),e},e=>Promise.reject(e));const ed=w.createContext(void 0),Xb=({config:e,children:n})=>(w.useEffect(()=>{e.getToken&&Jb(e.getToken)},[e.getToken]),h.jsx(ed.Provider,{value:e,children:n})),e2=()=>{const e=w.useContext(ed);if(!e)throw new Error("useApiConfig debe ser usado dentro de un ApiProvider");return e},es=()=>{const{calendarApiUrl:e}=e2(),n=async s=>{try{return(await zr.get(`${e}/ListarEventosXUsuario/${s}`)).data.map(l=>{const u=new Date(l.fechaInicio),d=new Date(l.fechaFin),f=l.solicitudRelacionada?.[0]?.nombreCliente??null;return{...l,fechaInicio:u,fechaFin:d,client:f}})}catch(c){return console.error("Error events:",c),[]}},t=async(s,c)=>{try{const l=await zr.post(`${e}/InsertarEvento/${c}`,s);return{...l.data,fechaInicio:new Date(l.data.fechaInicio),fechaFin:new Date(l.data.fechaFin)}}catch(l){throw console.log("Error creating event:",l),l}},r=async s=>{try{const c=await zr.post(`${e}/ActualizarEvento/${s.eventoID}`,s);return{eventoID:c.data.eventoID,titulo:c.data.titulo,descripcion:c.data.descripcion,fechaInicio:new Date(c.data.fechaInicio),fechaFin:new Date(c.data.fechaFin),todoElDia:c.data.todoElDia,color:c.data.color,repetir:c.data.repetir,link:c.data.link,solID:c.data.solID,disID:c.data.disID,client:c.data.client}}catch(c){throw console.log("Error updating event:",c),c}},o=async s=>{try{const c=await zr.get(`${e}/ObtenerEvento/${s}`),l=c.data.solicitudRelacionada?.[0]?.nombreCliente||null;return{...c.data,fechaInicio:new Date(c.data.fechaInicio),fechaFin:new Date(c.data.fechaFin),client:l}}catch(c){throw console.error(`Error fetching event with ID ${s}:`,c),c}},a=async s=>{try{await zr.post(`${e}/EliminarEvento/${s}`)}catch(c){throw console.log(`Error ID ${s}:`,c),c}},i=w.useCallback(async(s,c,l,u)=>{try{const d={masNombreBD:l,usrID:u,disID:c,nombreCliente:s},m=(await zr.post(`${e}/ConsultaClientesXUsuariologgeado/`,d)).data?.data;return Array.isArray(m)?m.map(g=>({clienteID:g.clienteID,solID:g.solID,marca:g?.marca,modelo:g?.modelo,nombreCliente:g?.nombreCliente})):[]}catch(d){return console.error("Error clientes:",d),[]}},[e]);return{getEventsByUser:n,createEvent:t,updateEvent:r,getEventById:o,deleteEvent:a,getClients:i}},td=lr([h.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),h.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");var Xn=e=>e.type==="checkbox",Br=e=>e instanceof Date,ht=e=>e==null;const rd=e=>typeof e=="object";var Xe=e=>!ht(e)&&!Array.isArray(e)&&rd(e)&&!Br(e),nd=e=>Xe(e)&&e.target?Xn(e.target)?e.target.checked:e.target.value:e,t2=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,od=(e,n)=>e.has(t2(n)),r2=e=>{const n=e.constructor&&e.constructor.prototype;return Xe(n)&&n.hasOwnProperty("isPrototypeOf")},ts=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function it(e){let n;const t=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)n=new Date(e);else if(!(ts&&(e instanceof Blob||r))&&(t||Xe(e)))if(n=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!r2(e))n=e;else for(const o in e)e.hasOwnProperty(o)&&(n[o]=it(e[o]));else return e;return n}var ka=e=>/^\w*$/.test(e),et=e=>e===void 0,rs=e=>Array.isArray(e)?e.filter(Boolean):[],ns=e=>rs(e.replace(/["|']|\]/g,"").split(/\.|\[/)),re=(e,n,t)=>{if(!n||!Xe(e))return t;const r=(ka(n)?[n]:ns(n)).reduce((o,a)=>ht(o)?o:o[a],e);return et(r)||r===e?et(e[n])?t:e[n]:r},Mt=e=>typeof e=="boolean",Re=(e,n,t)=>{let r=-1;const o=ka(n)?[n]:ns(n),a=o.length,i=a-1;for(;++r<a;){const s=o[r];let c=t;if(r!==i){const l=e[s];c=Xe(l)||Array.isArray(l)?l:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=c,e=e[s]}};const Da={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Yt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},pr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},ad=w.createContext(null);ad.displayName="HookFormContext";const os=()=>w.useContext(ad);var id=(e,n,t,r=!0)=>{const o={defaultValues:n._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return n._proxyFormState[i]!==Yt.all&&(n._proxyFormState[i]=!r||Yt.all),t&&(t[i]=!0),e[i]}});return o};const as=typeof window<"u"?w.useLayoutEffect:w.useEffect;function n2(e){const n=os(),{control:t=n.control,disabled:r,name:o,exact:a}=e||{},[i,s]=w.useState(t._formState),c=w.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return as(()=>t._subscribe({name:o,formState:c.current,exact:a,callback:l=>{!r&&s({...t._formState,...l})}}),[o,r,a]),w.useEffect(()=>{c.current.isValid&&t._setValid(!0)},[t]),w.useMemo(()=>id(i,t,c.current,!1),[i,t])}var nr=e=>typeof e=="string",sd=(e,n,t,r,o)=>nr(e)?(r&&n.watch.add(e),re(t,e,o)):Array.isArray(e)?e.map(a=>(r&&n.watch.add(a),re(t,a))):(r&&(n.watchAll=!0),t),is=e=>ht(e)||!rd(e);function hr(e,n,t=new WeakSet){if(is(e)||is(n))return e===n;if(Br(e)&&Br(n))return e.getTime()===n.getTime();const r=Object.keys(e),o=Object.keys(n);if(r.length!==o.length)return!1;if(t.has(e)||t.has(n))return!0;t.add(e),t.add(n);for(const a of r){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const s=n[a];if(Br(i)&&Br(s)||Xe(i)&&Xe(s)||Array.isArray(i)&&Array.isArray(s)?!hr(i,s,t):i!==s)return!1}}return!0}function o2(e){const n=os(),{control:t=n.control,name:r,defaultValue:o,disabled:a,exact:i,compute:s}=e||{},c=w.useRef(o),l=w.useRef(s),u=w.useRef(void 0);l.current=s;const d=w.useMemo(()=>t._getWatch(r,c.current),[t,r]),[f,m]=w.useState(l.current?l.current(d):d);return as(()=>t._subscribe({name:r,formState:{values:!0},exact:i,callback:g=>{if(!a){const p=sd(r,t._names,g.values||t._formValues,!1,c.current);if(l.current){const b=l.current(p);hr(b,u.current)||(m(b),u.current=b)}else m(p)}}}),[t,a,r,i]),w.useEffect(()=>t._removeUnmounted()),f}function a2(e){const n=os(),{name:t,disabled:r,control:o=n.control,shouldUnregister:a,defaultValue:i}=e,s=od(o._names.array,t),c=w.useMemo(()=>re(o._formValues,t,re(o._defaultValues,t,i)),[o,t,i]),l=o2({control:o,name:t,defaultValue:c,exact:!0}),u=n2({control:o,name:t,exact:!0}),d=w.useRef(e),f=w.useRef(o.register(t,{...e.rules,value:l,...Mt(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const m=w.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!re(u.errors,t)},isDirty:{enumerable:!0,get:()=>!!re(u.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!re(u.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!re(u.validatingFields,t)},error:{enumerable:!0,get:()=>re(u.errors,t)}}),[u,t]),g=w.useCallback(S=>f.current.onChange({target:{value:nd(S),name:t},type:Da.CHANGE}),[t]),p=w.useCallback(()=>f.current.onBlur({target:{value:re(o._formValues,t),name:t},type:Da.BLUR}),[t,o._formValues]),b=w.useCallback(S=>{const T=re(o._fields,t);T&&S&&(T._f.ref={focus:()=>S.focus&&S.focus(),select:()=>S.select&&S.select(),setCustomValidity:D=>S.setCustomValidity(D),reportValidity:()=>S.reportValidity()})},[o._fields,t]),x=w.useMemo(()=>({name:t,value:l,...Mt(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:g,onBlur:p,ref:b}),[t,r,u.disabled,g,p,b,l]);return w.useEffect(()=>{const S=o._options.shouldUnregister||a;o.register(t,{...d.current.rules,...Mt(d.current.disabled)?{disabled:d.current.disabled}:{}});const T=(D,k)=>{const O=re(o._fields,D);O&&O._f&&(O._f.mount=k)};if(T(t,!0),S){const D=it(re(o._options.defaultValues,t));Re(o._defaultValues,t,D),et(re(o._formValues,t))&&Re(o._formValues,t,D)}return!s&&o.register(t),()=>{(s?S&&!o._state.action:S)?o.unregister(t):T(t,!1)}},[t,o,s,a]),w.useEffect(()=>{o._setDisabledField({disabled:r,name:t})},[r,t,o]),w.useMemo(()=>({field:x,formState:u,fieldState:m}),[x,u,m])}const mt=e=>e.render(a2(e));var ss=(e,n,t,r,o)=>n?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[r]:o||!0}}:{},eo=e=>Array.isArray(e)?e:[e],cd=()=>{let e=[];return{get observers(){return e},next:o=>{for(const a of e)a.next&&a.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(a=>a!==o)}}),unsubscribe:()=>{e=[]}}},_t=e=>Xe(e)&&!Object.keys(e).length,cs=e=>e.type==="file",Ht=e=>typeof e=="function",Ea=e=>{if(!ts)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},ld=e=>e.type==="select-multiple",ls=e=>e.type==="radio",i2=e=>ls(e)||Xn(e),us=e=>Ea(e)&&e.isConnected;function s2(e,n){const t=n.slice(0,-1).length;let r=0;for(;r<t;)e=et(e)?r++:e[n[r++]];return e}function c2(e){for(const n in e)if(e.hasOwnProperty(n)&&!et(e[n]))return!1;return!0}function ot(e,n){const t=Array.isArray(n)?n:ka(n)?[n]:ns(n),r=t.length===1?e:s2(e,t),o=t.length-1,a=t[o];return r&&delete r[a],o!==0&&(Xe(r)&&_t(r)||Array.isArray(r)&&c2(r))&&ot(e,t.slice(0,-1)),e}var ud=e=>{for(const n in e)if(Ht(e[n]))return!0;return!1};function Ta(e,n={}){const t=Array.isArray(e);if(Xe(e)||t)for(const r in e)Array.isArray(e[r])||Xe(e[r])&&!ud(e[r])?(n[r]=Array.isArray(e[r])?[]:{},Ta(e[r],n[r])):ht(e[r])||(n[r]=!0);return n}function dd(e,n,t){const r=Array.isArray(e);if(Xe(e)||r)for(const o in e)Array.isArray(e[o])||Xe(e[o])&&!ud(e[o])?et(n)||is(t[o])?t[o]=Array.isArray(e[o])?Ta(e[o],[]):{...Ta(e[o])}:dd(e[o],ht(n)?{}:n[o],t[o]):t[o]=!hr(e[o],n[o]);return t}var to=(e,n)=>dd(e,n,Ta(n));const fd={value:!1,isValid:!1},pd={value:!0,isValid:!0};var hd=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!et(e[0].attributes.value)?et(e[0].value)||e[0].value===""?pd:{value:e[0].value,isValid:!0}:pd:fd}return fd},md=(e,{valueAsNumber:n,valueAsDate:t,setValueAs:r})=>et(e)?e:n?e===""?NaN:e&&+e:t&&nr(e)?new Date(e):r?r(e):e;const gd={isValid:!1,value:null};var vd=e=>Array.isArray(e)?e.reduce((n,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:n,gd):gd;function yd(e){const n=e.ref;return cs(n)?n.files:ls(n)?vd(e.refs).value:ld(n)?[...n.selectedOptions].map(({value:t})=>t):Xn(n)?hd(e.refs).value:md(et(n.value)?e.ref.value:n.value,e)}var l2=(e,n,t,r)=>{const o={};for(const a of e){const i=re(n,a);i&&Re(o,a,i._f)}return{criteriaMode:t,names:[...e],fields:o,shouldUseNativeValidation:r}},Oa=e=>e instanceof RegExp,ro=e=>et(e)?e:Oa(e)?e.source:Xe(e)?Oa(e.value)?e.value.source:e.value:e,bd=e=>({isOnSubmit:!e||e===Yt.onSubmit,isOnBlur:e===Yt.onBlur,isOnChange:e===Yt.onChange,isOnAll:e===Yt.all,isOnTouch:e===Yt.onTouched});const wd="AsyncFunction";var u2=e=>!!e&&!!e.validate&&!!(Ht(e.validate)&&e.validate.constructor.name===wd||Xe(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===wd)),d2=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),_d=(e,n,t)=>!t&&(n.watchAll||n.watch.has(e)||[...n.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const no=(e,n,t,r)=>{for(const o of t||Object.keys(e)){const a=re(e,o);if(a){const{_f:i,...s}=a;if(i){if(i.refs&&i.refs[0]&&n(i.refs[0],o)&&!r)return!0;if(i.ref&&n(i.ref,i.name)&&!r)return!0;if(no(s,n))break}else if(Xe(s)&&no(s,n))break}}};function xd(e,n,t){const r=re(e,t);if(r||ka(t))return{error:r,name:t};const o=t.split(".");for(;o.length;){const a=o.join("."),i=re(n,a),s=re(e,a);if(i&&!Array.isArray(i)&&t!==a)return{name:t};if(s&&s.type)return{name:a,error:s};if(s&&s.root&&s.root.type)return{name:`${a}.root`,error:s.root};o.pop()}return{name:t}}var f2=(e,n,t,r)=>{t(e);const{name:o,...a}=e;return _t(a)||Object.keys(a).length>=Object.keys(n).length||Object.keys(a).find(i=>n[i]===(!r||Yt.all))},p2=(e,n,t)=>!e||!n||e===n||eo(e).some(r=>r&&(t?r===n:r.startsWith(n)||n.startsWith(r))),h2=(e,n,t,r,o)=>o.isOnAll?!1:!t&&o.isOnTouch?!(n||e):(t?r.isOnBlur:o.isOnBlur)?!e:(t?r.isOnChange:o.isOnChange)?e:!0,m2=(e,n)=>!rs(re(e,n)).length&&ot(e,n),g2=(e,n,t)=>{const r=eo(re(e,t));return Re(r,"root",n[t]),Re(e,t,r),e},Ma=e=>nr(e);function Sd(e,n,t="validate"){if(Ma(e)||Array.isArray(e)&&e.every(Ma)||Mt(e)&&!e)return{type:t,message:Ma(e)?e:"",ref:n}}var pn=e=>Xe(e)&&!Oa(e)?e:{value:e,message:""},Cd=async(e,n,t,r,o,a)=>{const{ref:i,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:m,validate:g,name:p,valueAsNumber:b,mount:x}=e._f,S=re(t,p);if(!x||n.has(p))return{};const T=s?s[0]:i,D=v=>{o&&T.reportValidity&&(T.setCustomValidity(Mt(v)?"":v||""),T.reportValidity())},k={},O=ls(i),I=Xn(i),W=O||I,U=(b||cs(i))&&et(i.value)&&et(S)||Ea(i)&&i.value===""||S===""||Array.isArray(S)&&!S.length,$=ss.bind(null,p,r,k),Q=(v,M,P,H=pr.maxLength,Y=pr.minLength)=>{const ee=v?M:P;k[p]={type:v?H:Y,message:ee,ref:i,...$(v?H:Y,ee)}};if(a?!Array.isArray(S)||!S.length:c&&(!W&&(U||ht(S))||Mt(S)&&!S||I&&!hd(s).isValid||O&&!vd(s).isValid)){const{value:v,message:M}=Ma(c)?{value:!!c,message:c}:pn(c);if(v&&(k[p]={type:pr.required,message:M,ref:T,...$(pr.required,M)},!r))return D(M),k}if(!U&&(!ht(d)||!ht(f))){let v,M;const P=pn(f),H=pn(d);if(!ht(S)&&!isNaN(S)){const Y=i.valueAsNumber||S&&+S;ht(P.value)||(v=Y>P.value),ht(H.value)||(M=Y<H.value)}else{const Y=i.valueAsDate||new Date(S),ee=z=>new Date(new Date().toDateString()+" "+z),ae=i.type=="time",be=i.type=="week";nr(P.value)&&S&&(v=ae?ee(S)>ee(P.value):be?S>P.value:Y>new Date(P.value)),nr(H.value)&&S&&(M=ae?ee(S)<ee(H.value):be?S<H.value:Y<new Date(H.value))}if((v||M)&&(Q(!!v,P.message,H.message,pr.max,pr.min),!r))return D(k[p].message),k}if((l||u)&&!U&&(nr(S)||a&&Array.isArray(S))){const v=pn(l),M=pn(u),P=!ht(v.value)&&S.length>+v.value,H=!ht(M.value)&&S.length<+M.value;if((P||H)&&(Q(P,v.message,M.message),!r))return D(k[p].message),k}if(m&&!U&&nr(S)){const{value:v,message:M}=pn(m);if(Oa(v)&&!S.match(v)&&(k[p]={type:pr.pattern,message:M,ref:i,...$(pr.pattern,M)},!r))return D(M),k}if(g){if(Ht(g)){const v=await g(S,t),M=Sd(v,T);if(M&&(k[p]={...M,...$(pr.validate,M.message)},!r))return D(M.message),k}else if(Xe(g)){let v={};for(const M in g){if(!_t(v)&&!r)break;const P=Sd(await g[M](S,t),T,M);P&&(v={...P,...$(M,P.message)},D(P.message),r&&(k[p]=v))}if(!_t(v)&&(k[p]={ref:T,...v},!r))return k}}return D(!0),k};const v2={mode:Yt.onSubmit,reValidateMode:Yt.onChange,shouldFocusError:!0};function y2(e={}){let n={...v2,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ht(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},r={},o=Xe(n.defaultValues)||Xe(n.values)?it(n.defaultValues||n.values)||{}:{},a=n.shouldUnregister?{}:it(o),i={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let d={...u};const f={array:cd(),state:cd()},m=n.criteriaMode===Yt.all,g=C=>A=>{clearTimeout(l),l=setTimeout(C,A)},p=async C=>{if(!n.disabled&&(u.isValid||d.isValid||C)){const A=n.resolver?_t((await I()).errors):await U(r,!0);A!==t.isValid&&f.state.next({isValid:A})}},b=(C,A)=>{!n.disabled&&(u.isValidating||u.validatingFields||d.isValidating||d.validatingFields)&&((C||Array.from(s.mount)).forEach(L=>{L&&(A?Re(t.validatingFields,L,A):ot(t.validatingFields,L))}),f.state.next({validatingFields:t.validatingFields,isValidating:!_t(t.validatingFields)}))},x=(C,A=[],L,oe,X=!0,J=!0)=>{if(oe&&L&&!n.disabled){if(i.action=!0,J&&Array.isArray(re(r,C))){const le=L(re(r,C),oe.argA,oe.argB);X&&Re(r,C,le)}if(J&&Array.isArray(re(t.errors,C))){const le=L(re(t.errors,C),oe.argA,oe.argB);X&&Re(t.errors,C,le),m2(t.errors,C)}if((u.touchedFields||d.touchedFields)&&J&&Array.isArray(re(t.touchedFields,C))){const le=L(re(t.touchedFields,C),oe.argA,oe.argB);X&&Re(t.touchedFields,C,le)}(u.dirtyFields||d.dirtyFields)&&(t.dirtyFields=to(o,a)),f.state.next({name:C,isDirty:Q(C,A),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else Re(a,C,A)},S=(C,A)=>{Re(t.errors,C,A),f.state.next({errors:t.errors})},T=C=>{t.errors=C,f.state.next({errors:t.errors,isValid:!1})},D=(C,A,L,oe)=>{const X=re(r,C);if(X){const J=re(a,C,et(L)?re(o,C):L);et(J)||oe&&oe.defaultChecked||A?Re(a,C,A?J:yd(X._f)):P(C,J),i.mount&&p()}},k=(C,A,L,oe,X)=>{let J=!1,le=!1;const De={name:C};if(!n.disabled){if(!L||oe){(u.isDirty||d.isDirty)&&(le=t.isDirty,t.isDirty=De.isDirty=Q(),J=le!==De.isDirty);const Le=hr(re(o,C),A);le=!!re(t.dirtyFields,C),Le?ot(t.dirtyFields,C):Re(t.dirtyFields,C,!0),De.dirtyFields=t.dirtyFields,J=J||(u.dirtyFields||d.dirtyFields)&&le!==!Le}if(L){const Le=re(t.touchedFields,C);Le||(Re(t.touchedFields,C,L),De.touchedFields=t.touchedFields,J=J||(u.touchedFields||d.touchedFields)&&Le!==L)}J&&X&&f.state.next(De)}return J?De:{}},O=(C,A,L,oe)=>{const X=re(t.errors,C),J=(u.isValid||d.isValid)&&Mt(A)&&t.isValid!==A;if(n.delayError&&L?(c=g(()=>S(C,L)),c(n.delayError)):(clearTimeout(l),c=null,L?Re(t.errors,C,L):ot(t.errors,C)),(L?!hr(X,L):X)||!_t(oe)||J){const le={...oe,...J&&Mt(A)?{isValid:A}:{},errors:t.errors,name:C};t={...t,...le},f.state.next(le)}},I=async C=>{b(C,!0);const A=await n.resolver(a,n.context,l2(C||s.mount,r,n.criteriaMode,n.shouldUseNativeValidation));return b(C),A},W=async C=>{const{errors:A}=await I(C);if(C)for(const L of C){const oe=re(A,L);oe?Re(t.errors,L,oe):ot(t.errors,L)}else t.errors=A;return A},U=async(C,A,L={valid:!0})=>{for(const oe in C){const X=C[oe];if(X){const{_f:J,...le}=X;if(J){const De=s.array.has(J.name),Le=X._f&&u2(X._f);Le&&u.validatingFields&&b([oe],!0);const gt=await Cd(X,s.disabled,a,m,n.shouldUseNativeValidation&&!A,De);if(Le&&u.validatingFields&&b([oe]),gt[J.name]&&(L.valid=!1,A))break;!A&&(re(gt,J.name)?De?g2(t.errors,gt,J.name):Re(t.errors,J.name,gt[J.name]):ot(t.errors,J.name))}!_t(le)&&await U(le,A,L)}}return L.valid},$=()=>{for(const C of s.unMount){const A=re(r,C);A&&(A._f.refs?A._f.refs.every(L=>!us(L)):!us(A._f.ref))&&de(C)}s.unMount=new Set},Q=(C,A)=>!n.disabled&&(C&&A&&Re(a,C,A),!hr(z(),o)),v=(C,A,L)=>sd(C,s,{...i.mount?a:et(A)?o:nr(C)?{[C]:A}:A},L,A),M=C=>rs(re(i.mount?a:o,C,n.shouldUnregister?re(o,C,[]):[])),P=(C,A,L={})=>{const oe=re(r,C);let X=A;if(oe){const J=oe._f;J&&(!J.disabled&&Re(a,C,md(A,J)),X=Ea(J.ref)&&ht(A)?"":A,ld(J.ref)?[...J.ref.options].forEach(le=>le.selected=X.includes(le.value)):J.refs?Xn(J.ref)?J.refs.forEach(le=>{(!le.defaultChecked||!le.disabled)&&(Array.isArray(X)?le.checked=!!X.find(De=>De===le.value):le.checked=X===le.value||!!X)}):J.refs.forEach(le=>le.checked=le.value===X):cs(J.ref)?J.ref.value="":(J.ref.value=X,J.ref.type||f.state.next({name:C,values:it(a)})))}(L.shouldDirty||L.shouldTouch)&&k(C,X,L.shouldTouch,L.shouldDirty,!0),L.shouldValidate&&be(C)},H=(C,A,L)=>{for(const oe in A){if(!A.hasOwnProperty(oe))return;const X=A[oe],J=C+"."+oe,le=re(r,J);(s.array.has(C)||Xe(X)||le&&!le._f)&&!Br(X)?H(J,X,L):P(J,X,L)}},Y=(C,A,L={})=>{const oe=re(r,C),X=s.array.has(C),J=it(A);Re(a,C,J),X?(f.array.next({name:C,values:it(a)}),(u.isDirty||u.dirtyFields||d.isDirty||d.dirtyFields)&&L.shouldDirty&&f.state.next({name:C,dirtyFields:to(o,a),isDirty:Q(C,J)})):oe&&!oe._f&&!ht(J)?H(C,J,L):P(C,J,L),_d(C,s)&&f.state.next({...t,name:C}),f.state.next({name:i.mount?C:void 0,values:it(a)})},ee=async C=>{i.mount=!0;const A=C.target;let L=A.name,oe=!0;const X=re(r,L),J=Le=>{oe=Number.isNaN(Le)||Br(Le)&&isNaN(Le.getTime())||hr(Le,re(a,L,Le))},le=bd(n.mode),De=bd(n.reValidateMode);if(X){let Le,gt;const Ur=A.type?yd(X._f):nd(C),ar=C.type===Da.BLUR||C.type===Da.FOCUS_OUT,Is=!d2(X._f)&&!n.resolver&&!re(t.errors,L)&&!X._f.deps||h2(ar,re(t.touchedFields,L),t.isSubmitted,De,le),lo=_d(L,s,ar);Re(a,L,Ur),ar?(!A||!A.readOnly)&&(X._f.onBlur&&X._f.onBlur(C),c&&c(0)):X._f.onChange&&X._f.onChange(C);const uo=k(L,Ur,ar),Ns=!_t(uo)||lo;if(!ar&&f.state.next({name:L,type:C.type,values:it(a)}),Is)return(u.isValid||d.isValid)&&(n.mode==="onBlur"?ar&&p():ar||p()),Ns&&f.state.next({name:L,...lo?{}:uo});if(!ar&&lo&&f.state.next({...t}),n.resolver){const{errors:Ua}=await I([L]);if(J(Ur),oe){const Rs=xd(t.errors,r,L),bn=xd(Ua,r,Rs.name||L);Le=bn.error,L=bn.name,gt=_t(Ua)}}else b([L],!0),Le=(await Cd(X,s.disabled,a,m,n.shouldUseNativeValidation))[L],b([L]),J(Ur),oe&&(Le?gt=!1:(u.isValid||d.isValid)&&(gt=await U(r,!0)));oe&&(X._f.deps&&be(X._f.deps),O(L,gt,Le,uo))}},ae=(C,A)=>{if(re(t.errors,A)&&C.focus)return C.focus(),1},be=async(C,A={})=>{let L,oe;const X=eo(C);if(n.resolver){const J=await W(et(C)?C:X);L=_t(J),oe=C?!X.some(le=>re(J,le)):L}else C?(oe=(await Promise.all(X.map(async J=>{const le=re(r,J);return await U(le&&le._f?{[J]:le}:le)}))).every(Boolean),!(!oe&&!t.isValid)&&p()):oe=L=await U(r);return f.state.next({...!nr(C)||(u.isValid||d.isValid)&&L!==t.isValid?{}:{name:C},...n.resolver||!C?{isValid:L}:{},errors:t.errors}),A.shouldFocus&&!oe&&no(r,ae,C?X:s.mount),oe},z=C=>{const A={...i.mount?a:o};return et(C)?A:nr(C)?re(A,C):C.map(L=>re(A,L))},K=(C,A)=>({invalid:!!re((A||t).errors,C),isDirty:!!re((A||t).dirtyFields,C),error:re((A||t).errors,C),isValidating:!!re(t.validatingFields,C),isTouched:!!re((A||t).touchedFields,C)}),fe=C=>{C&&eo(C).forEach(A=>ot(t.errors,A)),f.state.next({errors:C?t.errors:{}})},pe=(C,A,L)=>{const oe=(re(r,C,{_f:{}})._f||{}).ref,X=re(t.errors,C)||{},{ref:J,message:le,type:De,...Le}=X;Re(t.errors,C,{...Le,...A,ref:oe}),f.state.next({name:C,errors:t.errors,isValid:!1}),L&&L.shouldFocus&&oe&&oe.focus&&oe.focus()},he=(C,A)=>Ht(C)?f.state.subscribe({next:L=>"values"in L&&C(v(void 0,A),L)}):v(C,A,!0),G=C=>f.state.subscribe({next:A=>{p2(C.name,A.name,C.exact)&&f2(A,C.formState||u,Ha,C.reRenderRoot)&&C.callback({values:{...a},...t,...A,defaultValues:o})}}).unsubscribe,se=C=>(i.mount=!0,d={...d,...C.formState},G({...C,formState:d})),de=(C,A={})=>{for(const L of C?eo(C):s.mount)s.mount.delete(L),s.array.delete(L),A.keepValue||(ot(r,L),ot(a,L)),!A.keepError&&ot(t.errors,L),!A.keepDirty&&ot(t.dirtyFields,L),!A.keepTouched&&ot(t.touchedFields,L),!A.keepIsValidating&&ot(t.validatingFields,L),!n.shouldUnregister&&!A.keepDefaultValue&&ot(o,L);f.state.next({values:it(a)}),f.state.next({...t,...A.keepDirty?{isDirty:Q()}:{}}),!A.keepIsValid&&p()},me=({disabled:C,name:A})=>{(Mt(C)&&i.mount||C||s.disabled.has(A))&&(C?s.disabled.add(A):s.disabled.delete(A))},ye=(C,A={})=>{let L=re(r,C);const oe=Mt(A.disabled)||Mt(n.disabled);return Re(r,C,{...L||{},_f:{...L&&L._f?L._f:{ref:{name:C}},name:C,mount:!0,...A}}),s.mount.add(C),L?me({disabled:Mt(A.disabled)?A.disabled:n.disabled,name:C}):D(C,!0,A.value),{...oe?{disabled:A.disabled||n.disabled}:{},...n.progressive?{required:!!A.required,min:ro(A.min),max:ro(A.max),minLength:ro(A.minLength),maxLength:ro(A.maxLength),pattern:ro(A.pattern)}:{},name:C,onChange:ee,onBlur:ee,ref:X=>{if(X){ye(C,A),L=re(r,C);const J=et(X.value)&&X.querySelectorAll&&X.querySelectorAll("input,select,textarea")[0]||X,le=i2(J),De=L._f.refs||[];if(le?De.find(Le=>Le===J):J===L._f.ref)return;Re(r,C,{_f:{...L._f,...le?{refs:[...De.filter(us),J,...Array.isArray(re(o,C))?[{}]:[]],ref:{type:J.type,name:C}}:{ref:J}}}),D(C,!1,void 0,J)}else L=re(r,C,{}),L._f&&(L._f.mount=!1),(n.shouldUnregister||A.shouldUnregister)&&!(od(s.array,C)&&i.action)&&s.unMount.add(C)}}},B=()=>n.shouldFocusError&&no(r,ae,s.mount),te=C=>{Mt(C)&&(f.state.next({disabled:C}),no(r,(A,L)=>{const oe=re(r,L);oe&&(A.disabled=oe._f.disabled||C,Array.isArray(oe._f.refs)&&oe._f.refs.forEach(X=>{X.disabled=oe._f.disabled||C}))},0,!1))},F=(C,A)=>async L=>{let oe;L&&(L.preventDefault&&L.preventDefault(),L.persist&&L.persist());let X=it(a);if(f.state.next({isSubmitting:!0}),n.resolver){const{errors:J,values:le}=await I();t.errors=J,X=it(le)}else await U(r);if(s.disabled.size)for(const J of s.disabled)ot(X,J);if(ot(t.errors,"root"),_t(t.errors)){f.state.next({errors:{}});try{await C(X,L)}catch(J){oe=J}}else A&&await A({...t.errors},L),B(),setTimeout(B);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_t(t.errors)&&!oe,submitCount:t.submitCount+1,errors:t.errors}),oe)throw oe},ge=(C,A={})=>{re(r,C)&&(et(A.defaultValue)?Y(C,it(re(o,C))):(Y(C,A.defaultValue),Re(o,C,it(A.defaultValue))),A.keepTouched||ot(t.touchedFields,C),A.keepDirty||(ot(t.dirtyFields,C),t.isDirty=A.defaultValue?Q(C,it(re(o,C))):Q()),A.keepError||(ot(t.errors,C),u.isValid&&p()),f.state.next({...t}))},Fe=(C,A={})=>{const L=C?it(C):o,oe=it(L),X=_t(C),J=X?o:oe;if(A.keepDefaultValues||(o=L),!A.keepValues){if(A.keepDirtyValues){const le=new Set([...s.mount,...Object.keys(to(o,a))]);for(const De of Array.from(le))re(t.dirtyFields,De)?Re(J,De,re(a,De)):Y(De,re(J,De))}else{if(ts&&et(C))for(const le of s.mount){const De=re(r,le);if(De&&De._f){const Le=Array.isArray(De._f.refs)?De._f.refs[0]:De._f.ref;if(Ea(Le)){const gt=Le.closest("form");if(gt){gt.reset();break}}}}if(A.keepFieldsRef)for(const le of s.mount)Y(le,re(J,le));else r={}}a=n.shouldUnregister?A.keepDefaultValues?it(o):{}:it(J),f.array.next({values:{...J}}),f.state.next({values:{...J}})}s={mount:A.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!u.isValid||!!A.keepIsValid||!!A.keepDirtyValues,i.watch=!!n.shouldUnregister,f.state.next({submitCount:A.keepSubmitCount?t.submitCount:0,isDirty:X?!1:A.keepDirty?t.isDirty:!!(A.keepDefaultValues&&!hr(C,o)),isSubmitted:A.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:X?{}:A.keepDirtyValues?A.keepDefaultValues&&a?to(o,a):t.dirtyFields:A.keepDefaultValues&&C?to(o,C):A.keepDirty?t.dirtyFields:{},touchedFields:A.keepTouched?t.touchedFields:{},errors:A.keepErrors?t.errors:{},isSubmitSuccessful:A.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},or=(C,A)=>Fe(Ht(C)?C(a):C,A),Yr=(C,A={})=>{const L=re(r,C),oe=L&&L._f;if(oe){const X=oe.refs?oe.refs[0]:oe.ref;X.focus&&(X.focus(),A.shouldSelect&&Ht(X.select)&&X.select())}},Ha=C=>{t={...t,...C}},Hr={control:{register:ye,unregister:de,getFieldState:K,handleSubmit:F,setError:pe,_subscribe:G,_runSchema:I,_focusError:B,_getWatch:v,_getDirty:Q,_setValid:p,_setFieldArray:x,_setDisabledField:me,_setErrors:T,_getFieldArray:M,_reset:Fe,_resetDefaultValues:()=>Ht(n.defaultValues)&&n.defaultValues().then(C=>{or(C,n.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:$,_disableForm:te,_subjects:f,_proxyFormState:u,get _fields(){return r},get _formValues(){return a},get _state(){return i},set _state(C){i=C},get _defaultValues(){return o},get _names(){return s},set _names(C){s=C},get _formState(){return t},get _options(){return n},set _options(C){n={...n,...C}}},subscribe:se,trigger:be,register:ye,handleSubmit:F,watch:he,setValue:Y,getValues:z,reset:or,resetField:ge,clearErrors:fe,unregister:de,setError:pe,setFocus:Yr,getFieldState:K};return{...Hr,formControl:Hr}}function kd(e={}){const n=w.useRef(void 0),t=w.useRef(void 0),[r,o]=w.useState({isDirty:!1,isValidating:!1,isLoading:Ht(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Ht(e.defaultValues)?void 0:e.defaultValues});if(!n.current)if(e.formControl)n.current={...e.formControl,formState:r},e.defaultValues&&!Ht(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:i,...s}=y2(e);n.current={...s,formState:r}}const a=n.current.control;return a._options=e,as(()=>{const i=a._subscribe({formState:a._proxyFormState,callback:()=>o({...a._formState}),reRenderRoot:!0});return o(s=>({...s,isReady:!0})),a._formState.isReady=!0,i},[a]),w.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),w.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),w.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),w.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),w.useEffect(()=>{if(a._proxyFormState.isDirty){const i=a._getDirty();i!==r.isDirty&&a._subjects.state.next({isDirty:i})}},[a,r.isDirty]),w.useEffect(()=>{e.values&&!hr(e.values,t.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),t.current=e.values,o(i=>({...i}))):a._resetDefaultValues()},[a,e.values]),w.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),n.current.formState=id(r,a),n.current}const Dd=(e,n,t)=>{if(e&&"reportValidity"in e){const r=re(t,n);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},ds=(e,n)=>{for(const t in n.fields){const r=n.fields[t];r&&r.ref&&"reportValidity"in r.ref?Dd(r.ref,t,e):r&&r.refs&&r.refs.forEach(o=>Dd(o,t,e))}},Ed=(e,n)=>{n.shouldUseNativeValidation&&ds(e,n);const t={};for(const r in e){const o=re(n.fields,r),a=Object.assign(e[r]||{},{ref:o&&o.ref});if(b2(n.names||Object.keys(e),r)){const i=Object.assign({},re(t,r));Re(i,"root",a),Re(t,r,i)}else Re(t,r,a)}return t},b2=(e,n)=>{const t=Td(n);return e.some(r=>Td(r).match(`^${t}\\.\\d+`))};function Td(e){return e.replace(/\]|\[/g,"")}function V(e,n,t){function r(s,c){var l;Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(l=s._zod).traits??(l.traits=new Set),s._zod.traits.add(e),n(s,c);for(const u in i.prototype)u in s||Object.defineProperty(s,u,{value:i.prototype[u].bind(s)});s._zod.constr=i,s._zod.def=c}const o=t?.Parent??Object;class a extends o{}Object.defineProperty(a,"name",{value:e});function i(s){var c;const l=t?.Parent?new a:this;r(l,s),(c=l._zod).deferred??(c.deferred=[]);for(const u of l._zod.deferred)u();return l}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:s=>t?.Parent&&s instanceof t.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}class hn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Od extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}const Md={};function Vr(e){return Md}function w2(e){const n=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>n.indexOf(+r)===-1).map(([r,o])=>o)}function fs(e,n){return typeof n=="bigint"?n.toString():n}function ps(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function hs(e){return e==null}function ms(e){const n=e.startsWith("^")?1:0,t=e.endsWith("$")?e.length-1:e.length;return e.slice(n,t)}function _2(e,n){const t=(e.toString().split(".")[1]||"").length,r=n.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const c=r.match(/\d?e-(\d?)/);c?.[1]&&(o=Number.parseInt(c[1]))}const a=t>o?t:o,i=Number.parseInt(e.toFixed(a).replace(".","")),s=Number.parseInt(n.toFixed(a).replace(".",""));return i%s/10**a}const Ad=Symbol("evaluating");function Ve(e,n,t){let r;Object.defineProperty(e,n,{get(){if(r!==Ad)return r===void 0&&(r=Ad,r=t()),r},set(o){Object.defineProperty(e,n,{value:o})},configurable:!0})}function x2(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function kr(e,n,t){Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})}function mn(...e){const n={};for(const t of e){const r=Object.getOwnPropertyDescriptors(t);Object.assign(n,r)}return Object.defineProperties({},n)}function Pd(e){return JSON.stringify(e)}const Id="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Aa(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const S2=ps(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function oo(e){if(Aa(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const t=n.prototype;return!(Aa(t)===!1||Object.prototype.hasOwnProperty.call(t,"isPrototypeOf")===!1)}function Nd(e){return oo(e)?{...e}:e}const C2=new Set(["string","number","symbol"]);function gn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Dr(e,n,t){const r=new e._zod.constr(n??e._zod.def);return(!n||t?.parent)&&(r._zod.parent=e),r}function ue(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function k2(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const D2={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function E2(e,n){const t=e._zod.def,r=mn(e._zod.def,{get shape(){const o={};for(const a in n){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=t.shape[a])}return kr(this,"shape",o),o},checks:[]});return Dr(e,r)}function T2(e,n){const t=e._zod.def,r=mn(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const a in n){if(!(a in t.shape))throw new Error(`Unrecognized key: "${a}"`);n[a]&&delete o[a]}return kr(this,"shape",o),o},checks:[]});return Dr(e,r)}function O2(e,n){if(!oo(n))throw new Error("Invalid input to extend: expected a plain object");const t=e._zod.def.checks;if(t&&t.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=mn(e._zod.def,{get shape(){const a={...e._zod.def.shape,...n};return kr(this,"shape",a),a},checks:[]});return Dr(e,o)}function M2(e,n){if(!oo(n))throw new Error("Invalid input to safeExtend: expected a plain object");const t={...e._zod.def,get shape(){const r={...e._zod.def.shape,...n};return kr(this,"shape",r),r},checks:e._zod.def.checks};return Dr(e,t)}function A2(e,n){const t=mn(e._zod.def,{get shape(){const r={...e._zod.def.shape,...n._zod.def.shape};return kr(this,"shape",r),r},get catchall(){return n._zod.def.catchall},checks:[]});return Dr(e,t)}function P2(e,n,t){const r=mn(n._zod.def,{get shape(){const o=n._zod.def.shape,a={...o};if(t)for(const i in t){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(a[i]=e?new e({type:"optional",innerType:o[i]}):o[i])}else for(const i in o)a[i]=e?new e({type:"optional",innerType:o[i]}):o[i];return kr(this,"shape",a),a},checks:[]});return Dr(n,r)}function I2(e,n,t){const r=mn(n._zod.def,{get shape(){const o=n._zod.def.shape,a={...o};if(t)for(const i in t){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(a[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)a[i]=new e({type:"nonoptional",innerType:o[i]});return kr(this,"shape",a),a},checks:[]});return Dr(n,r)}function vn(e,n=0){if(e.aborted===!0)return!0;for(let t=n;t<e.issues.length;t++)if(e.issues[t]?.continue!==!0)return!0;return!1}function Rd(e,n){return n.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function Pa(e){return typeof e=="string"?e:e?.message}function Fr(e,n,t){const r={...e,path:e.path??[]};if(!e.message){const o=Pa(e.inst?._zod.def?.error?.(e))??Pa(n?.error?.(e))??Pa(t.customError?.(e))??Pa(t.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,n?.reportInput||delete r.input,r}function gs(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ao(...e){const[n,t,r]=e;return typeof n=="string"?{message:n,code:"custom",input:t,inst:r}:{...n}}const $d=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,fs,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},vs=V("$ZodError",$d),Ia=V("$ZodError",$d,{Parent:Error});function N2(e,n=t=>t.message){const t={},r=[];for(const o of e.issues)o.path.length>0?(t[o.path[0]]=t[o.path[0]]||[],t[o.path[0]].push(n(o))):r.push(n(o));return{formErrors:r,fieldErrors:t}}function R2(e,n){const t=n||function(a){return a.message},r={_errors:[]},o=a=>{for(const i of a.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>o({issues:s}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let s=r,c=0;for(;c<i.path.length;){const l=i.path[c];c===i.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(i))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return o(e),r}const Na=e=>(n,t,r,o)=>{const a=r?Object.assign(r,{async:!1}):{async:!1},i=n._zod.run({value:t,issues:[]},a);if(i instanceof Promise)throw new hn;if(i.issues.length){const s=new(o?.Err??e)(i.issues.map(c=>Fr(c,a,Vr())));throw Id(s,o?.callee),s}return i.value},$2=Na(Ia),Ra=e=>async(n,t,r,o)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let i=n._zod.run({value:t,issues:[]},a);if(i instanceof Promise&&(i=await i),i.issues.length){const s=new(o?.Err??e)(i.issues.map(c=>Fr(c,a,Vr())));throw Id(s,o?.callee),s}return i.value},j2=Ra(Ia),$a=e=>(n,t,r)=>{const o=r?{...r,async:!1}:{async:!1},a=n._zod.run({value:t,issues:[]},o);if(a instanceof Promise)throw new hn;return a.issues.length?{success:!1,error:new(e??vs)(a.issues.map(i=>Fr(i,o,Vr())))}:{success:!0,data:a.value}},L2=$a(Ia),ja=e=>async(n,t,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let a=n._zod.run({value:t,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(i=>Fr(i,o,Vr())))}:{success:!0,data:a.value}},z2=ja(Ia),B2=e=>(n,t,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Na(e)(n,t,o)},V2=e=>(n,t,r)=>Na(e)(n,t,r),F2=e=>async(n,t,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ra(e)(n,t,o)},Y2=e=>async(n,t,r)=>Ra(e)(n,t,r),H2=e=>(n,t,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return $a(e)(n,t,o)},U2=e=>(n,t,r)=>$a(e)(n,t,r),W2=e=>async(n,t,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ja(e)(n,t,o)},Z2=e=>async(n,t,r)=>ja(e)(n,t,r),q2=/^[cC][^\s-]{8,}$/,K2=/^[0-9a-z]+$/,G2=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Q2=/^[0-9a-vA-V]{20}$/,J2=/^[A-Za-z0-9]{27}$/,X2=/^[a-zA-Z0-9_-]{21}$/,e1=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,t1=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,jd=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,r1=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,n1="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function o1(){return new RegExp(n1,"u")}const a1=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,i1=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,s1=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,c1=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,l1=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ld=/^[A-Za-z0-9_-]*$/,u1=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,d1=/^\+(?:[0-9]){6,14}[0-9]$/,zd="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",f1=new RegExp(`^${zd}$`);function Bd(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function p1(e){return new RegExp(`^${Bd(e)}$`)}function h1(e){const n=Bd({precision:e.precision}),t=["Z"];e.local&&t.push(""),e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${n}(?:${t.join("|")})`;return new RegExp(`^${zd}T(?:${r})$`)}const m1=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},g1=/^\d+$/,v1=/^-?\d+(?:\.\d+)?/i,y1=/true|false/i,b1=/^[^A-Z]*$/,w1=/^[^a-z]*$/,xt=V("$ZodCheck",(e,n)=>{var t;e._zod??(e._zod={}),e._zod.def=n,(t=e._zod).onattach??(t.onattach=[])}),Vd={number:"number",bigint:"bigint",object:"date"},Fd=V("$ZodCheckLessThan",(e,n)=>{xt.init(e,n);const t=Vd[typeof n.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(n.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<a&&(n.inclusive?o.maximum=n.value:o.exclusiveMaximum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value<=n.value:r.value<n.value)||r.issues.push({origin:t,code:"too_big",maximum:n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),Yd=V("$ZodCheckGreaterThan",(e,n)=>{xt.init(e,n);const t=Vd[typeof n.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(n.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>a&&(n.inclusive?o.minimum=n.value:o.exclusiveMinimum=n.value)}),e._zod.check=r=>{(n.inclusive?r.value>=n.value:r.value>n.value)||r.issues.push({origin:t,code:"too_small",minimum:n.value,input:r.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),_1=V("$ZodCheckMultipleOf",(e,n)=>{xt.init(e,n),e._zod.onattach.push(t=>{var r;(r=t._zod.bag).multipleOf??(r.multipleOf=n.value)}),e._zod.check=t=>{if(typeof t.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof t.value=="bigint"?t.value%n.value===BigInt(0):_2(t.value,n.value)===0)||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:n.value,input:t.value,inst:e,continue:!n.abort})}}),x1=V("$ZodCheckNumberFormat",(e,n)=>{xt.init(e,n),n.format=n.format||"float64";const t=n.format?.includes("int"),r=t?"int":"number",[o,a]=D2[n.format];e._zod.onattach.push(i=>{const s=i._zod.bag;s.format=n.format,s.minimum=o,s.maximum=a,t&&(s.pattern=g1)}),e._zod.check=i=>{const s=i.value;if(t){if(!Number.isInteger(s)){i.issues.push({expected:r,format:n.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?i.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!n.abort}):i.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!n.abort});return}}s<o&&i.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!n.abort}),s>a&&i.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inst:e})}}),S1=V("$ZodCheckMaxLength",(e,n)=>{var t;xt.init(e,n),(t=e._zod.def).when??(t.when=r=>{const o=r.value;return!hs(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<o&&(r._zod.bag.maximum=n.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=n.maximum)return;const i=gs(o);r.issues.push({origin:i,code:"too_big",maximum:n.maximum,inclusive:!0,input:o,inst:e,continue:!n.abort})}}),C1=V("$ZodCheckMinLength",(e,n)=>{var t;xt.init(e,n),(t=e._zod.def).when??(t.when=r=>{const o=r.value;return!hs(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>o&&(r._zod.bag.minimum=n.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=n.minimum)return;const i=gs(o);r.issues.push({origin:i,code:"too_small",minimum:n.minimum,inclusive:!0,input:o,inst:e,continue:!n.abort})}}),k1=V("$ZodCheckLengthEquals",(e,n)=>{var t;xt.init(e,n),(t=e._zod.def).when??(t.when=r=>{const o=r.value;return!hs(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=n.length,o.maximum=n.length,o.length=n.length}),e._zod.check=r=>{const o=r.value,a=o.length;if(a===n.length)return;const i=gs(o),s=a>n.length;r.issues.push({origin:i,...s?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!n.abort})}}),La=V("$ZodCheckStringFormat",(e,n)=>{var t,r;xt.init(e,n),e._zod.onattach.push(o=>{const a=o._zod.bag;a.format=n.format,n.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(n.pattern))}),n.pattern?(t=e._zod).check??(t.check=o=>{n.pattern.lastIndex=0,!n.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:n.format,input:o.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(r=e._zod).check??(r.check=()=>{})}),D1=V("$ZodCheckRegex",(e,n)=>{La.init(e,n),e._zod.check=t=>{n.pattern.lastIndex=0,!n.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),E1=V("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=b1),La.init(e,n)}),T1=V("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=w1),La.init(e,n)}),O1=V("$ZodCheckIncludes",(e,n)=>{xt.init(e,n);const t=gn(n.includes),r=new RegExp(typeof n.position=="number"?`^.{${n.position}}${t}`:t);n.pattern=r,e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=o=>{o.value.includes(n.includes,n.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:o.value,inst:e,continue:!n.abort})}}),M1=V("$ZodCheckStartsWith",(e,n)=>{xt.init(e,n);const t=new RegExp(`^${gn(n.prefix)}.*`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t)}),e._zod.check=r=>{r.value.startsWith(n.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:r.value,inst:e,continue:!n.abort})}}),A1=V("$ZodCheckEndsWith",(e,n)=>{xt.init(e,n);const t=new RegExp(`.*${gn(n.suffix)}$`);n.pattern??(n.pattern=t),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(t)}),e._zod.check=r=>{r.value.endsWith(n.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:r.value,inst:e,continue:!n.abort})}}),P1=V("$ZodCheckOverwrite",(e,n)=>{xt.init(e,n),e._zod.check=t=>{t.value=n.tx(t.value)}});class I1{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const r=n.split(`
158
+ `).filter(i=>i),o=Math.min(...r.map(i=>i.length-i.trimStart().length)),a=r.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of a)this.content.push(i)}compile(){const n=Function,t=this?.args,o=[...(this?.content??[""]).map(a=>` ${a}`)];return new n(...t,o.join(`
159
+ `))}}const N1={major:4,minor:1,patch:5},Ge=V("$ZodType",(e,n)=>{var t;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=N1;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const a of o._zod.onattach)a(e);if(r.length===0)(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(i,s,c)=>{let l=vn(i),u;for(const d of s){if(d._zod.def.when){if(!d._zod.def.when(i))continue}else if(l)continue;const f=i.issues.length,m=d._zod.check(i);if(m instanceof Promise&&c?.async===!1)throw new hn;if(u||m instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await m,i.issues.length!==f&&(l||(l=vn(i,f)))});else{if(i.issues.length===f)continue;l||(l=vn(i,f))}}return u?u.then(()=>i):i},a=(i,s,c)=>{if(vn(i))return i.aborted=!0,i;const l=o(s,r,c);if(l instanceof Promise){if(c.async===!1)throw new hn;return l.then(u=>e._zod.parse(u,c))}return e._zod.parse(l,c)};e._zod.run=(i,s)=>{if(s.skipChecks)return e._zod.parse(i,s);if(s.direction==="backward"){const l=e._zod.parse({value:i.value,issues:[]},{...s,skipChecks:!0});return l instanceof Promise?l.then(u=>a(u,i,s)):a(l,i,s)}const c=e._zod.parse(i,s);if(c instanceof Promise){if(s.async===!1)throw new hn;return c.then(l=>o(l,r,s))}return o(c,r,s)}}e["~standard"]={validate:o=>{try{const a=L2(e,o);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return z2(e,o).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}}),ys=V("$ZodString",(e,n)=>{Ge.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??m1(e._zod.bag),e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=String(t.value)}catch{}return typeof t.value=="string"||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:e}),t}}),We=V("$ZodStringFormat",(e,n)=>{La.init(e,n),ys.init(e,n)}),R1=V("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=t1),We.init(e,n)}),$1=V("$ZodUUID",(e,n)=>{if(n.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(r===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=jd(r))}else n.pattern??(n.pattern=jd());We.init(e,n)}),j1=V("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=r1),We.init(e,n)}),L1=V("$ZodURL",(e,n)=>{We.init(e,n),e._zod.check=t=>{try{const r=t.value.trim(),o=new URL(r);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(o.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:u1.source,input:t.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:t.value,inst:e,continue:!n.abort})),n.normalize?t.value=o.href:t.value=r;return}catch{t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!n.abort})}}}),z1=V("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=o1()),We.init(e,n)}),B1=V("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=X2),We.init(e,n)}),V1=V("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=q2),We.init(e,n)}),F1=V("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=K2),We.init(e,n)}),Y1=V("$ZodULID",(e,n)=>{n.pattern??(n.pattern=G2),We.init(e,n)}),H1=V("$ZodXID",(e,n)=>{n.pattern??(n.pattern=Q2),We.init(e,n)}),U1=V("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=J2),We.init(e,n)}),W1=V("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=h1(n)),We.init(e,n)}),Z1=V("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=f1),We.init(e,n)}),q1=V("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=p1(n)),We.init(e,n)}),K1=V("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=e1),We.init(e,n)}),G1=V("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=a1),We.init(e,n),e._zod.onattach.push(t=>{const r=t._zod.bag;r.format="ipv4"})}),Q1=V("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=i1),We.init(e,n),e._zod.onattach.push(t=>{const r=t._zod.bag;r.format="ipv6"}),e._zod.check=t=>{try{new URL(`http://[${t.value}]`)}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:e,continue:!n.abort})}}}),J1=V("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=s1),We.init(e,n)}),X1=V("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=c1),We.init(e,n),e._zod.check=t=>{const[r,o]=t.value.split("/");try{if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!n.abort})}}});function Hd(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const ew=V("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=l1),We.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64"}),e._zod.check=t=>{Hd(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!n.abort})}});function tw(e){if(!Ld.test(e))return!1;const n=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),t=n.padEnd(Math.ceil(n.length/4)*4,"=");return Hd(t)}const rw=V("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=Ld),We.init(e,n),e._zod.onattach.push(t=>{t._zod.bag.contentEncoding="base64url"}),e._zod.check=t=>{tw(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!n.abort})}}),nw=V("$ZodE164",(e,n)=>{n.pattern??(n.pattern=d1),We.init(e,n)});function ow(e,n=null){try{const t=e.split(".");if(t.length!==3)return!1;const[r]=t;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||n&&(!("alg"in o)||o.alg!==n))}catch{return!1}}const aw=V("$ZodJWT",(e,n)=>{We.init(e,n),e._zod.check=t=>{ow(t.value,n.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!n.abort})}}),Ud=V("$ZodNumber",(e,n)=>{Ge.init(e,n),e._zod.pattern=e._zod.bag.pattern??v1,e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=Number(t.value)}catch{}const o=t.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return t;const a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),t}}),iw=V("$ZodNumber",(e,n)=>{x1.init(e,n),Ud.init(e,n)}),sw=V("$ZodBoolean",(e,n)=>{Ge.init(e,n),e._zod.pattern=y1,e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=!!t.value}catch{}const o=t.value;return typeof o=="boolean"||t.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),t}}),cw=V("$ZodUnknown",(e,n)=>{Ge.init(e,n),e._zod.parse=t=>t}),lw=V("$ZodNever",(e,n)=>{Ge.init(e,n),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function Wd(e,n,t){e.issues.length&&n.issues.push(...Rd(t,e.issues)),n.value[t]=e.value}const uw=V("$ZodArray",(e,n)=>{Ge.init(e,n),e._zod.parse=(t,r)=>{const o=t.value;if(!Array.isArray(o))return t.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),t;t.value=Array(o.length);const a=[];for(let i=0;i<o.length;i++){const s=o[i],c=n.element._zod.run({value:s,issues:[]},r);c instanceof Promise?a.push(c.then(l=>Wd(l,t,i))):Wd(c,t,i)}return a.length?Promise.all(a).then(()=>t):t}});function za(e,n,t,r){e.issues.length&&n.issues.push(...Rd(t,e.issues)),e.value===void 0?t in r&&(n.value[t]=void 0):n.value[t]=e.value}function Zd(e){const n=Object.keys(e.shape);for(const r of n)if(!e.shape[r]._zod.traits.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const t=k2(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(t)}}function qd(e,n,t,r,o,a){const i=[],s=o.keySet,c=o.catchall._zod,l=c.def.type;for(const u of Object.keys(n)){if(s.has(u))continue;if(l==="never"){i.push(u);continue}const d=c.run({value:n[u],issues:[]},r);d instanceof Promise?e.push(d.then(f=>za(f,t,u,n))):za(d,t,u,n)}return i.length&&t.issues.push({code:"unrecognized_keys",keys:i,input:n,inst:a}),e.length?Promise.all(e).then(()=>t):t}const dw=V("$ZodObject",(e,n)=>{Ge.init(e,n);const t=ps(()=>Zd(n));Ve(e._zod,"propValues",()=>{const i=n.shape,s={};for(const c in i){const l=i[c]._zod;if(l.values){s[c]??(s[c]=new Set);for(const u of l.values)s[c].add(u)}}return s});const r=Aa,o=n.catchall;let a;e._zod.parse=(i,s)=>{a??(a=t.value);const c=i.value;if(!r(c))return i.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),i;i.value={};const l=[],u=a.shape;for(const d of a.keys){const m=u[d]._zod.run({value:c[d],issues:[]},s);m instanceof Promise?l.push(m.then(g=>za(g,i,d,c))):za(m,i,d,c)}return o?qd(l,c,i,s,t.value,e):l.length?Promise.all(l).then(()=>i):i}}),fw=V("$ZodObjectJIT",(e,n)=>{dw.init(e,n);const t=e._zod.parse,r=ps(()=>Zd(n)),o=f=>{const m=new I1(["shape","payload","ctx"]),g=r.value,p=T=>{const D=Pd(T);return`shape[${D}]._zod.run({ value: input[${D}], issues: [] }, ctx)`};m.write("const input = payload.value;");const b=Object.create(null);let x=0;for(const T of g.keys)b[T]=`key_${x++}`;m.write("const newResult = {}");for(const T of g.keys){const D=b[T],k=Pd(T);m.write(`const ${D} = ${p(T)};`),m.write(`
160
+ if (${D}.issues.length) {
161
+ payload.issues = payload.issues.concat(${D}.issues.map(iss => ({
176
162
  ...iss,
177
- path: iss.path ? [${_}, ...iss.path] : [${_}]
163
+ path: iss.path ? [${k}, ...iss.path] : [${k}]
178
164
  })));
179
165
  }
180
166
 
181
- if (${E}.value === undefined) {
182
- if (${_} in input) {
183
- newResult[${_}] = undefined;
167
+ if (${D}.value === undefined) {
168
+ if (${k} in input) {
169
+ newResult[${k}] = undefined;
184
170
  }
185
171
  } else {
186
- newResult[${_}] = ${E}.value;
172
+ newResult[${k}] = ${D}.value;
187
173
  }
188
- `)}m.write("payload.value = newResult;"),m.write("return payload;");const C=m.compile();return(k,E)=>C(f,k,E)};let i;const a=Ji,s=!Pf.jitless,l=s&&F2.value,u=r.catchall;let d;e._zod.parse=(f,m)=>{d??(d=n.value);const g=f.value;return a(g)?s&&l&&m?.async===!1&&m.jitless!==!0?(i||(i=o(r.shape)),f=i(f,m),u?Kf([],g,f,m,d,e):f):t(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function Gf(e,r,t,n){for(const i of e)if(i.issues.length===0)return r.value=i.value,r;const o=e.filter(i=>!An(i));return o.length===1?(r.value=o[0].value,o[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:t,errors:e.map(i=>i.issues.map(a=>tn(a,n,en())))}),r)}const A_=Y("$ZodUnion",(e,r)=>{et.init(e,r),Ye(e._zod,"optin",()=>r.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ye(e._zod,"optout",()=>r.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ye(e._zod,"values",()=>{if(r.options.every(o=>o._zod.values))return new Set(r.options.flatMap(o=>Array.from(o._zod.values)))}),Ye(e._zod,"pattern",()=>{if(r.options.every(o=>o._zod.pattern)){const o=r.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>qs(i.source)).join("|")})$`)}});const t=r.options.length===1,n=r.options[0]._zod.run;e._zod.parse=(o,i)=>{if(t)return n(o,i);let a=!1;const s=[];for(const c of r.options){const l=c._zod.run({value:o.value,issues:[]},i);if(l instanceof Promise)s.push(l),a=!0;else{if(l.issues.length===0)return l;s.push(l)}}return a?Promise.all(s).then(c=>Gf(c,o,e,i)):Gf(s,o,e,i)}}),I_=Y("$ZodIntersection",(e,r)=>{et.init(e,r),e._zod.parse=(t,n)=>{const o=t.value,i=r.left._zod.run({value:o,issues:[]},n),a=r.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,l])=>Qf(t,c,l)):Qf(t,i,a)}});function Xs(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(So(e)&&So(r)){const t=Object.keys(r),n=Object.keys(e).filter(i=>t.indexOf(i)!==-1),o={...e,...r};for(const i of n){const a=Xs(e[i],r[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let n=0;n<e.length;n++){const o=e[n],i=r[n],a=Xs(o,i);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};t.push(a.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function Qf(e,r,t){if(r.issues.length&&e.issues.push(...r.issues),t.issues.length&&e.issues.push(...t.issues),An(e))return e;const n=Xs(r.value,t.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const R_=Y("$ZodEnum",(e,r)=>{et.init(e,r);const t=z2(r.entries),n=new Set(t);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.filter(o=>Y2.has(typeof o)).map(o=>typeof o=="string"?Pn(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:t,input:a,inst:e}),o}}),N_=Y("$ZodLiteral",(e,r)=>{if(et.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(r.values),e._zod.pattern=new RegExp(`^(${r.values.map(t=>typeof t=="string"?Pn(t):t?Pn(t.toString()):String(t)).join("|")})$`),e._zod.parse=(t,n)=>{const o=t.value;return e._zod.values.has(o)||t.issues.push({code:"invalid_value",values:r.values,input:o,inst:e}),t}}),$_=Y("$ZodTransform",(e,r)=>{et.init(e,r),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new Mf(e.constructor.name);const o=r.transform(t.value,t);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(t.value=a,t));if(o instanceof Promise)throw new On;return t.value=o,t}});function Xf(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}const j_=Y("$ZodOptional",(e,r)=>{et.init(e,r),e._zod.optin="optional",e._zod.optout="optional",Ye(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),Ye(e._zod,"pattern",()=>{const t=r.innerType._zod.pattern;return t?new RegExp(`^(${qs(t.source)})?$`):void 0}),e._zod.parse=(t,n)=>{if(r.innerType._zod.optin==="optional"){const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>Xf(i,t.value)):Xf(o,t.value)}return t.value===void 0?t:r.innerType._zod.run(t,n)}}),L_=Y("$ZodNullable",(e,r)=>{et.init(e,r),Ye(e._zod,"optin",()=>r.innerType._zod.optin),Ye(e._zod,"optout",()=>r.innerType._zod.optout),Ye(e._zod,"pattern",()=>{const t=r.innerType._zod.pattern;return t?new RegExp(`^(${qs(t.source)}|null)$`):void 0}),Ye(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(t,n)=>t.value===null?t:r.innerType._zod.run(t,n)}),z_=Y("$ZodDefault",(e,r)=>{et.init(e,r),e._zod.optin="optional",Ye(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);if(t.value===void 0)return t.value=r.defaultValue,t;const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>Jf(i,r)):Jf(o,r)}});function Jf(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const B_=Y("$ZodPrefault",(e,r)=>{et.init(e,r),e._zod.optin="optional",Ye(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>(n.direction==="backward"||t.value===void 0&&(t.value=r.defaultValue),r.innerType._zod.run(t,n))}),V_=Y("$ZodNonOptional",(e,r)=>{et.init(e,r),Ye(e._zod,"values",()=>{const t=r.innerType._zod.values;return t?new Set([...t].filter(n=>n!==void 0)):void 0}),e._zod.parse=(t,n)=>{const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>ep(i,e)):ep(o,e)}});function ep(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}const F_=Y("$ZodCatch",(e,r)=>{et.init(e,r),Ye(e._zod,"optin",()=>r.innerType._zod.optin),Ye(e._zod,"optout",()=>r.innerType._zod.optout),Ye(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(i=>(t.value=i.value,i.issues.length&&(t.value=r.catchValue({...t,error:{issues:i.issues.map(a=>tn(a,n,en()))},input:t.value}),t.issues=[]),t)):(t.value=o.value,o.issues.length&&(t.value=r.catchValue({...t,error:{issues:o.issues.map(i=>tn(i,n,en()))},input:t.value}),t.issues=[]),t)}}),Y_=Y("$ZodPipe",(e,r)=>{et.init(e,r),Ye(e._zod,"values",()=>r.in._zod.values),Ye(e._zod,"optin",()=>r.in._zod.optin),Ye(e._zod,"optout",()=>r.out._zod.optout),Ye(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(t,n)=>{if(n.direction==="backward"){const i=r.out._zod.run(t,n);return i instanceof Promise?i.then(a=>ca(a,r.in,n)):ca(i,r.in,n)}const o=r.in._zod.run(t,n);return o instanceof Promise?o.then(i=>ca(i,r.out,n)):ca(o,r.out,n)}});function ca(e,r,t){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},t)}const U_=Y("$ZodReadonly",(e,r)=>{et.init(e,r),Ye(e._zod,"propValues",()=>r.innerType._zod.propValues),Ye(e._zod,"values",()=>r.innerType._zod.values),Ye(e._zod,"optin",()=>r.innerType._zod.optin),Ye(e._zod,"optout",()=>r.innerType._zod.optout),e._zod.parse=(t,n)=>{if(n.direction==="backward")return r.innerType._zod.run(t,n);const o=r.innerType._zod.run(t,n);return o instanceof Promise?o.then(tp):tp(o)}});function tp(e){return e.value=Object.freeze(e.value),e}const H_=Y("$ZodCustom",(e,r)=>{Ot.init(e,r),et.init(e,r),e._zod.parse=(t,n)=>t,e._zod.check=t=>{const n=t.value,o=r.fn(n);if(o instanceof Promise)return o.then(i=>rp(i,t,n,e));rp(o,t,n,e)}});function rp(e,r,t,n){if(!e){const o={code:"custom",input:t,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),r.issues.push(Co(o))}}class W_{constructor(){this._map=new Map,this._idmap=new Map}add(r,...t){const n=t[0];if(this._map.set(r,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,r)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(r){const t=this._map.get(r);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(r),this}get(r){const t=r._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const o={...n,...this._map.get(r)};return Object.keys(o).length?o:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function Z_(){return new W_}const la=Z_();function q_(e,r){return new e({type:"string",...me(r)})}function K_(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...me(r)})}function np(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...me(r)})}function G_(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...me(r)})}function Q_(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...me(r)})}function X_(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...me(r)})}function J_(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...me(r)})}function ex(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...me(r)})}function tx(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...me(r)})}function rx(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...me(r)})}function nx(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...me(r)})}function ox(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...me(r)})}function ix(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...me(r)})}function ax(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...me(r)})}function sx(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...me(r)})}function cx(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...me(r)})}function lx(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...me(r)})}function ux(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...me(r)})}function dx(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...me(r)})}function fx(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...me(r)})}function px(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...me(r)})}function hx(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...me(r)})}function mx(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...me(r)})}function gx(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...me(r)})}function vx(e,r){return new e({type:"string",format:"date",check:"string_format",...me(r)})}function yx(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...me(r)})}function bx(e,r){return new e({type:"string",format:"duration",check:"string_format",...me(r)})}function wx(e,r){return new e({type:"number",checks:[],...me(r)})}function _x(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...me(r)})}function xx(e,r){return new e({type:"boolean",...me(r)})}function Sx(e){return new e({type:"unknown"})}function Cx(e,r){return new e({type:"never",...me(r)})}function op(e,r){return new Yf({check:"less_than",...me(r),value:e,inclusive:!1})}function Js(e,r){return new Yf({check:"less_than",...me(r),value:e,inclusive:!0})}function ip(e,r){return new Uf({check:"greater_than",...me(r),value:e,inclusive:!1})}function ec(e,r){return new Uf({check:"greater_than",...me(r),value:e,inclusive:!0})}function ap(e,r){return new Bw({check:"multiple_of",...me(r),value:e})}function sp(e,r){return new Fw({check:"max_length",...me(r),maximum:e})}function ua(e,r){return new Yw({check:"min_length",...me(r),minimum:e})}function cp(e,r){return new Uw({check:"length_equals",...me(r),length:e})}function Ex(e,r){return new Hw({check:"string_format",format:"regex",...me(r),pattern:e})}function kx(e){return new Ww({check:"string_format",format:"lowercase",...me(e)})}function Dx(e){return new Zw({check:"string_format",format:"uppercase",...me(e)})}function Tx(e,r){return new qw({check:"string_format",format:"includes",...me(r),includes:e})}function Ox(e,r){return new Kw({check:"string_format",format:"starts_with",...me(r),prefix:e})}function Mx(e,r){return new Gw({check:"string_format",format:"ends_with",...me(r),suffix:e})}function Eo(e){return new Qw({check:"overwrite",tx:e})}function Px(e){return Eo(r=>r.normalize(e))}function Ax(){return Eo(e=>e.trim())}function Ix(){return Eo(e=>e.toLowerCase())}function Rx(){return Eo(e=>e.toUpperCase())}function Nx(e,r,t){return new e({type:"array",element:r,...me(t)})}function $x(e,r,t){return new e({type:"custom",check:"custom",fn:r,...me(t)})}function jx(e){const r=Lx(t=>(t.addIssue=n=>{if(typeof n=="string")t.issues.push(Co(n,t.value,r._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=t.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),t.issues.push(Co(o))}},e(t.value,t)));return r}function Lx(e,r){const t=new Ot({check:"custom",...me(r)});return t._zod.check=e,t}function lp(e,r){try{var t=e()}catch(n){return r(n)}return t&&t.then?t.then(void 0,r):t}function zx(e,r){for(var t={};e.length;){var n=e[0],o=n.code,i=n.message,a=n.path.join(".");if(!t[a])if("unionErrors"in n){var s=n.unionErrors[0].errors[0];t[a]={message:s.message,type:s.code}}else t[a]={message:i,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),r){var c=t[a].types,l=c&&c[n.code];t[a]=Bs(a,r,t,o,l?[].concat(l,n.message):n.message)}e.shift()}return t}function Bx(e,r){for(var t={};e.length;){var n=e[0],o=n.code,i=n.message,a=n.path.join(".");if(!t[a])if(n.code==="invalid_union"&&n.errors.length>0){var s=n.errors[0][0];t[a]={message:s.message,type:s.code}}else t[a]={message:i,type:o};if(n.code==="invalid_union"&&n.errors.forEach(function(u){return u.forEach(function(d){return e.push(d)})}),r){var c=t[a].types,l=c&&c[n.code];t[a]=Bs(a,r,t,o,l?[].concat(l,n.message):n.message)}e.shift()}return t}function Vx(e,r,t){if(t===void 0&&(t={}),(function(n){return"_def"in n&&typeof n._def=="object"&&"typeName"in n._def})(e))return function(n,o,i){try{return Promise.resolve(lp(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](n,r)).then(function(a){return i.shouldUseNativeValidation&&Us({},i),{errors:{},values:t.raw?Object.assign({},n):a}})},function(a){if((function(s){return Array.isArray(s?.issues)})(a))return{values:{},errors:Tf(zx(a.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};if((function(n){return"_zod"in n&&typeof n._zod=="object"})(e))return function(n,o,i){try{return Promise.resolve(lp(function(){return Promise.resolve((t.mode==="sync"?tw:rw)(e,n,r)).then(function(a){return i.shouldUseNativeValidation&&Us({},i),{errors:{},values:t.raw?Object.assign({},n):a}})},function(a){if((function(s){return s instanceof Gs})(a))return{values:{},errors:Tf(Bx(a.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const Fx=Y("ZodISODateTime",(e,r)=>{d_.init(e,r),Ge.init(e,r)});function Yx(e){return gx(Fx,e)}const Ux=Y("ZodISODate",(e,r)=>{f_.init(e,r),Ge.init(e,r)});function Hx(e){return vx(Ux,e)}const Wx=Y("ZodISOTime",(e,r)=>{p_.init(e,r),Ge.init(e,r)});function Zx(e){return yx(Wx,e)}const qx=Y("ZodISODuration",(e,r)=>{h_.init(e,r),Ge.init(e,r)});function Kx(e){return bx(qx,e)}const Ut=Y("ZodError",(e,r)=>{Gs.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>ew(e,t)},flatten:{value:t=>J2(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Hs,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Hs,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),Gx=ra(Ut),Qx=na(Ut),Xx=oa(Ut),Jx=ia(Ut),eS=iw(Ut),tS=aw(Ut),rS=sw(Ut),nS=cw(Ut),oS=lw(Ut),iS=uw(Ut),aS=dw(Ut),sS=fw(Ut),it=Y("ZodType",(e,r)=>(et.init(e,r),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...t)=>e.clone({...r,checks:[...r.checks??[],...t.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),e.clone=(t,n)=>jr(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>Gx(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Xx(e,t,n),e.parseAsync=async(t,n)=>Qx(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Jx(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>eS(e,t,n),e.decode=(t,n)=>tS(e,t,n),e.encodeAsync=async(t,n)=>rS(e,t,n),e.decodeAsync=async(t,n)=>nS(e,t,n),e.safeEncode=(t,n)=>oS(e,t,n),e.safeDecode=(t,n)=>iS(e,t,n),e.safeEncodeAsync=async(t,n)=>aS(e,t,n),e.safeDecodeAsync=async(t,n)=>sS(e,t,n),e.refine=(t,n)=>e.check(rC(t,n)),e.superRefine=t=>e.check(nC(t)),e.overwrite=t=>e.check(Eo(t)),e.optional=()=>vp(e),e.nullable=()=>yp(e),e.nullish=()=>vp(yp(e)),e.nonoptional=t=>KS(e,t),e.array=()=>AS(e),e.or=t=>$S([e,t]),e.and=t=>LS(e,t),e.transform=t=>wp(e,YS(t)),e.default=t=>WS(e,t),e.prefault=t=>qS(e,t),e.catch=t=>QS(e,t),e.pipe=t=>wp(e,t),e.readonly=()=>eC(e),e.describe=t=>{const n=e.clone();return la.add(n,{description:t}),n},Object.defineProperty(e,"description",{get(){return la.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return la.get(e);const n=e.clone();return la.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),up=Y("_ZodString",(e,r)=>{Qs.init(e,r),it.init(e,r);const t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...n)=>e.check(Ex(...n)),e.includes=(...n)=>e.check(Tx(...n)),e.startsWith=(...n)=>e.check(Ox(...n)),e.endsWith=(...n)=>e.check(Mx(...n)),e.min=(...n)=>e.check(ua(...n)),e.max=(...n)=>e.check(sp(...n)),e.length=(...n)=>e.check(cp(...n)),e.nonempty=(...n)=>e.check(ua(1,...n)),e.lowercase=n=>e.check(kx(n)),e.uppercase=n=>e.check(Dx(n)),e.trim=()=>e.check(Ax()),e.normalize=(...n)=>e.check(Px(...n)),e.toLowerCase=()=>e.check(Ix()),e.toUpperCase=()=>e.check(Rx())}),cS=Y("ZodString",(e,r)=>{Qs.init(e,r),up.init(e,r),e.email=t=>e.check(K_(lS,t)),e.url=t=>e.check(ex(uS,t)),e.jwt=t=>e.check(mx(ES,t)),e.emoji=t=>e.check(tx(dS,t)),e.guid=t=>e.check(np(dp,t)),e.uuid=t=>e.check(G_(da,t)),e.uuidv4=t=>e.check(Q_(da,t)),e.uuidv6=t=>e.check(X_(da,t)),e.uuidv7=t=>e.check(J_(da,t)),e.nanoid=t=>e.check(rx(fS,t)),e.guid=t=>e.check(np(dp,t)),e.cuid=t=>e.check(nx(pS,t)),e.cuid2=t=>e.check(ox(hS,t)),e.ulid=t=>e.check(ix(mS,t)),e.base64=t=>e.check(fx(xS,t)),e.base64url=t=>e.check(px(SS,t)),e.xid=t=>e.check(ax(gS,t)),e.ksuid=t=>e.check(sx(vS,t)),e.ipv4=t=>e.check(cx(yS,t)),e.ipv6=t=>e.check(lx(bS,t)),e.cidrv4=t=>e.check(ux(wS,t)),e.cidrv6=t=>e.check(dx(_S,t)),e.e164=t=>e.check(hx(CS,t)),e.datetime=t=>e.check(Yx(t)),e.date=t=>e.check(Hx(t)),e.time=t=>e.check(Zx(t)),e.duration=t=>e.check(Kx(t))});function rr(e){return q_(cS,e)}const Ge=Y("ZodStringFormat",(e,r)=>{Ze.init(e,r),up.init(e,r)}),lS=Y("ZodEmail",(e,r)=>{r_.init(e,r),Ge.init(e,r)}),dp=Y("ZodGUID",(e,r)=>{e_.init(e,r),Ge.init(e,r)}),da=Y("ZodUUID",(e,r)=>{t_.init(e,r),Ge.init(e,r)}),uS=Y("ZodURL",(e,r)=>{n_.init(e,r),Ge.init(e,r)}),dS=Y("ZodEmoji",(e,r)=>{o_.init(e,r),Ge.init(e,r)}),fS=Y("ZodNanoID",(e,r)=>{i_.init(e,r),Ge.init(e,r)}),pS=Y("ZodCUID",(e,r)=>{a_.init(e,r),Ge.init(e,r)}),hS=Y("ZodCUID2",(e,r)=>{s_.init(e,r),Ge.init(e,r)}),mS=Y("ZodULID",(e,r)=>{c_.init(e,r),Ge.init(e,r)}),gS=Y("ZodXID",(e,r)=>{l_.init(e,r),Ge.init(e,r)}),vS=Y("ZodKSUID",(e,r)=>{u_.init(e,r),Ge.init(e,r)}),yS=Y("ZodIPv4",(e,r)=>{m_.init(e,r),Ge.init(e,r)}),bS=Y("ZodIPv6",(e,r)=>{g_.init(e,r),Ge.init(e,r)}),wS=Y("ZodCIDRv4",(e,r)=>{v_.init(e,r),Ge.init(e,r)}),_S=Y("ZodCIDRv6",(e,r)=>{y_.init(e,r),Ge.init(e,r)}),xS=Y("ZodBase64",(e,r)=>{b_.init(e,r),Ge.init(e,r)}),SS=Y("ZodBase64URL",(e,r)=>{__.init(e,r),Ge.init(e,r)}),CS=Y("ZodE164",(e,r)=>{x_.init(e,r),Ge.init(e,r)}),ES=Y("ZodJWT",(e,r)=>{C_.init(e,r),Ge.init(e,r)}),fp=Y("ZodNumber",(e,r)=>{Wf.init(e,r),it.init(e,r),e.gt=(n,o)=>e.check(ip(n,o)),e.gte=(n,o)=>e.check(ec(n,o)),e.min=(n,o)=>e.check(ec(n,o)),e.lt=(n,o)=>e.check(op(n,o)),e.lte=(n,o)=>e.check(Js(n,o)),e.max=(n,o)=>e.check(Js(n,o)),e.int=n=>e.check(hp(n)),e.safe=n=>e.check(hp(n)),e.positive=n=>e.check(ip(0,n)),e.nonnegative=n=>e.check(ec(0,n)),e.negative=n=>e.check(op(0,n)),e.nonpositive=n=>e.check(Js(0,n)),e.multipleOf=(n,o)=>e.check(ap(n,o)),e.step=(n,o)=>e.check(ap(n,o)),e.finite=()=>e;const t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=!0,e.format=t.format??null});function pp(e){return wx(fp,e)}const kS=Y("ZodNumberFormat",(e,r)=>{E_.init(e,r),fp.init(e,r)});function hp(e){return _x(kS,e)}const DS=Y("ZodBoolean",(e,r)=>{k_.init(e,r),it.init(e,r)});function tc(e){return xx(DS,e)}const TS=Y("ZodUnknown",(e,r)=>{D_.init(e,r),it.init(e,r)});function mp(){return Sx(TS)}const OS=Y("ZodNever",(e,r)=>{T_.init(e,r),it.init(e,r)});function MS(e){return Cx(OS,e)}const PS=Y("ZodArray",(e,r)=>{O_.init(e,r),it.init(e,r),e.element=r.element,e.min=(t,n)=>e.check(ua(t,n)),e.nonempty=t=>e.check(ua(1,t)),e.max=(t,n)=>e.check(sp(t,n)),e.length=(t,n)=>e.check(cp(t,n)),e.unwrap=()=>e.element});function AS(e,r){return Nx(PS,e,r)}const IS=Y("ZodObject",(e,r)=>{P_.init(e,r),it.init(e,r),Ye(e,"shape",()=>r.shape),e.keyof=()=>zS(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:mp()}),e.loose=()=>e.clone({...e._zod.def,catchall:mp()}),e.strict=()=>e.clone({...e._zod.def,catchall:MS()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>q2(e,t),e.safeExtend=t=>K2(e,t),e.merge=t=>G2(e,t),e.pick=t=>W2(e,t),e.omit=t=>Z2(e,t),e.partial=(...t)=>Q2(gp,e,t[0]),e.required=(...t)=>X2(bp,e,t[0])});function RS(e,r){const t={type:"object",get shape(){return $r(this,"shape",e?V2(e):{}),this.shape},...me(r)};return new IS(t)}const NS=Y("ZodUnion",(e,r)=>{A_.init(e,r),it.init(e,r),e.options=r.options});function $S(e,r){return new NS({type:"union",options:e,...me(r)})}const jS=Y("ZodIntersection",(e,r)=>{I_.init(e,r),it.init(e,r)});function LS(e,r){return new jS({type:"intersection",left:e,right:r})}const rc=Y("ZodEnum",(e,r)=>{R_.init(e,r),it.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);const t=new Set(Object.keys(r.entries));e.extract=(n,o)=>{const i={};for(const a of n)if(t.has(a))i[a]=r.entries[a];else throw new Error(`Key ${a} not found in enum`);return new rc({...r,checks:[],...me(o),entries:i})},e.exclude=(n,o)=>{const i={...r.entries};for(const a of n)if(t.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new rc({...r,checks:[],...me(o),entries:i})}});function zS(e,r){const t=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new rc({type:"enum",entries:t,...me(r)})}const BS=Y("ZodLiteral",(e,r)=>{N_.init(e,r),it.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function VS(e,r){return new BS({type:"literal",values:Array.isArray(e)?e:[e],...me(r)})}const FS=Y("ZodTransform",(e,r)=>{$_.init(e,r),it.init(e,r),e._zod.parse=(t,n)=>{if(n.direction==="backward")throw new Mf(e.constructor.name);t.addIssue=i=>{if(typeof i=="string")t.issues.push(Co(i,t.value,r));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=t.value),a.inst??(a.inst=e),t.issues.push(Co(a))}};const o=r.transform(t.value,t);return o instanceof Promise?o.then(i=>(t.value=i,t)):(t.value=o,t)}});function YS(e){return new FS({type:"transform",transform:e})}const gp=Y("ZodOptional",(e,r)=>{j_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function vp(e){return new gp({type:"optional",innerType:e})}const US=Y("ZodNullable",(e,r)=>{L_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function yp(e){return new US({type:"nullable",innerType:e})}const HS=Y("ZodDefault",(e,r)=>{z_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function WS(e,r){return new HS({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Nf(r)}})}const ZS=Y("ZodPrefault",(e,r)=>{B_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function qS(e,r){return new ZS({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():Nf(r)}})}const bp=Y("ZodNonOptional",(e,r)=>{V_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function KS(e,r){return new bp({type:"nonoptional",innerType:e,...me(r)})}const GS=Y("ZodCatch",(e,r)=>{F_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function QS(e,r){return new GS({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const XS=Y("ZodPipe",(e,r)=>{Y_.init(e,r),it.init(e,r),e.in=r.in,e.out=r.out});function wp(e,r){return new XS({type:"pipe",in:e,out:r})}const JS=Y("ZodReadonly",(e,r)=>{U_.init(e,r),it.init(e,r),e.unwrap=()=>e._zod.def.innerType});function eC(e){return new JS({type:"readonly",innerType:e})}const tC=Y("ZodCustom",(e,r)=>{H_.init(e,r),it.init(e,r)});function rC(e,r={}){return $x(tC,e,r)}function nC(e){return jx(e)}const _p=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,xp=(e,r)=>{if(!e||!r)return null;const t=e.split("-");if(t.length!==3)return null;const n=parseInt(t[0],10),o=parseInt(t[1],10)-1,i=parseInt(t[2],10),a=r.split(":");if(a.length!==2)return null;const s=parseInt(a[0],10),c=parseInt(a[1],10),l=new Date(n,o,i,s,c);return isNaN(l.getTime())||!w.isValid(l)?null:l},oC=RS({titulo:rr().min(1,"El campo Título es requerido."),fechaInicio:rr().min(1,"El campo fecha inicio es requerido."),horaInicio:rr().min(1,"La hora de inicio es requerida.").regex(_p,{message:"Formato inválido"}),horaFin:rr().min(1,"La hora fin es requerida.").regex(_p,{message:"Formato inválido"}),todoElDia:tc(),fechaFin:rr().optional(),showEndDate:tc().optional(),horaInicio2:rr().optional(),TodoElDia2:tc().optional(),client:rr().optional().nullable(),repetir:rr().optional(),link:rr().url("Debe ser una URL válida ejemplo https://www.google.com.").or(VS("")).optional(),descripcion:rr().optional(),color:rr().optional(),solID:pp().optional().nullable(),disID:pp().optional().nullable()}).refine(e=>e.showEndDate?e.fechaFin&&e.fechaFin.length>0:!0,{message:"La fecha de fin es requerida.",path:["fechaFin"]}).refine(e=>e.fechaFin!==void 0?!!e.fechaFin&&!!e.horaInicio2:!0,{message:"La hora de fin son requeridas.",path:["horaInicio2"]}).refine(e=>{if(e.todoElDia||!e.fechaInicio||!e.horaInicio||!e.fechaFin||!e.horaInicio2)return!0;const r=xp(e.fechaInicio,e.horaInicio),t=xp(e.fechaFin,e.horaFin);return!r||!t||!w.isValid(r)||!w.isValid(t)?!0:!(w.isBefore(t,r)&&!w.isSameDay(t,r)||w.isSameDay(r,t)&&w.isBefore(t,r))},{message:"",path:["horaFin"]}),Sp=e=>j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},j.createElement("path",{fill:"#333",d:"M12 24C5.38 24 0 18.608 0 12S5.38 0 12 0s12 5.38 12 12-5.38 12-12 12"}),j.createElement("path",{fill:"#fff",d:"M16.703 7.275c.52.52.541 1.345.046 1.84l-2.874 2.874 2.874 2.873c.495.496.475 1.32-.046 1.841-.52.52-1.344.54-1.84.045l-2.873-2.873-2.874 2.873c-.496.496-1.32.475-1.84-.045-.521-.521-.541-1.345-.046-1.84l2.874-2.874L7.23 9.116c-.495-.496-.475-1.32.045-1.84.521-.521 1.345-.542 1.841-.046l2.874 2.873 2.873-2.873c.496-.496 1.32-.476 1.84.045"})),iC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23404756'%20clip-path='url(%23a)'%3e%3cpath%20d='M7.288%2022.986h-.147a6.2%206.2%200%200%201-4.28-1.85c-2.404-2.404-2.478-6.24-.16-8.557L4.28%2011a1.228%201.228%200%201%201%201.739%201.739L4.44%2014.317c-1.356%201.357-1.282%203.626.16%205.068a3.82%203.82%200%200%200%202.602%201.135c.95%200%201.825-.32%202.479-.974l1.578-1.579a1.23%201.23%200%200%201%201.739%200c.48.481.48%201.258%200%201.739l-1.579%201.578c-1.097%201.098-2.552%201.69-4.13%201.69zM17.98%2012.998a1.23%201.23%200%200%201%200-1.739l1.578-1.578c.654-.654.986-1.53.974-2.466a3.78%203.78%200%200%200-1.134-2.602c-1.443-1.443-3.712-1.517-5.068-.16L12.75%206.03c-.48.48-1.258.48-1.739%200a1.23%201.23%200%200%201%200-1.739l1.579-1.578c2.318-2.319%206.153-2.245%208.558.16a6.23%206.23%200%200%201%201.85%204.279%205.84%205.84%200%200%201-1.69%204.279l-1.578%201.578c-.481.481-1.258.481-1.74%200z'/%3e%3cpath%20d='M14.172%208.11%208.07%2014.214a1.233%201.233%200%200%200%201.743%201.744l6.104-6.104a1.233%201.233%200%201%200-1.744-1.744'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",aC=e=>j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},j.createElement("g",{clipPath:"url(#a)"},j.createElement("path",{fill:"#404756",d:"M21.24 5.72a2.98 2.98 0 0 0-2.97-2.96l-5.19-.06c-1.06-.03-2.12.41-2.87 1.17l-7.49 7.49c-.66.66-1.03 1.54-1.03 2.47s.36 1.81 1.03 2.47l4.97 4.97a3.5 3.5 0 0 0 2.47 1.02c.89 0 1.79-.34 2.47-1.02l7.49-7.49c.76-.76 1.18-1.81 1.17-2.88l-.06-5.19zm-4.2 4.43c-.44.44-1.02.66-1.6.66a2.256 2.256 0 1 1 0-4.51 2.256 2.256 0 0 1 1.6 3.85"})),j.createElement("defs",null,j.createElement("clipPath",{id:"a"},j.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),sC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23404756'%20d='M13.17%2013.68c2.06%200%204%20.8%205.46%202.27a7.7%207.7%200%200%201%202.26%205.47c0%20.79-.64%201.43-1.43%201.43l.01-.01H4.53c-.79%200-1.43-.64-1.43-1.43%200-4.27%203.46-7.73%207.72-7.73zM12%201.9c2.82%200%205.11%202.29%205.11%205.11s-2.29%205.11-5.11%205.11v-.01c-2.82%200-5.11-2.29-5.11-5.11S9.18%201.9%2012%201.9'/%3e%3c/svg%3e",cC=e=>j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},j.createElement("g",{fill:"#2571D6",clipPath:"url(#a)"},j.createElement("path",{d:"M13.085 7.331a1.096 1.096 0 1 0-2.192 0v9.316a1.096 1.096 0 0 0 2.192 0z"}),j.createElement("path",{d:"M16.647 10.893H7.33a1.096 1.096 0 1 0 0 2.192h9.316a1.096 1.096 0 0 0 0-2.192"}),j.createElement("path",{d:"M12 24C5.38 24 0 18.608 0 12S5.38 0 12 0s12 5.38 12 12-5.38 12-12 12m0-21.808c-5.414 0-9.808 4.394-9.808 9.808S6.586 21.808 12 21.808s9.808-4.394 9.808-9.808S17.403 2.192 12 2.192"})),j.createElement("defs",null,j.createElement("clipPath",{id:"a"},j.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),lC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23404756'%20clip-path='url(%23a)'%3e%3cpath%20d='M13.789%2017H3.21C2.542%2017%202%2017.56%202%2018.25s.542%201.25%201.211%201.25H13.79c.669%200%201.211-.56%201.211-1.25S14.458%2017%2013.789%2017M20.718%204H3.282C2.574%204%202%204.56%202%205.25S2.574%206.5%203.282%206.5h17.436C21.426%206.5%2022%205.94%2022%205.25S21.426%204%2020.718%204M20.718%2010.5H3.282C2.574%2010.5%202%2011.06%202%2011.75S2.574%2013%203.282%2013h17.436c.708%200%201.282-.56%201.282-1.25s-.574-1.25-1.282-1.25'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",uC=e=>j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},j.createElement("path",{fill:"#2571D6",fillRule:"evenodd",d:"M17.333 11a6.34 6.34 0 0 1 6.334 6.333 6.34 6.34 0 0 1-6.334 6.334c-3.493 0-6.333-2.846-6.333-6.334A6.343 6.343 0 0 1 17.333 11m-.005 2.37c-.437 0-.79.338-.79.754v2.412h-2.414c-.416 0-.754.355-.754.792s.338.792.754.792h2.413v2.412c0 .416.354.754.791.754s.792-.338.792-.754V18.12h2.413c.416 0 .754-.355.754-.792s-.338-.792-.754-.792H18.12v-2.412c0-.416-.355-.754-.792-.754",clipRule:"evenodd"}),j.createElement("path",{fill:"#2571D6",d:"M11.12 12.297a7.97 7.97 0 0 0-1.787 5.036c0 1.763.571 3.392 1.537 4.714H3.044c-.84 0-1.523-.682-1.523-1.523 0-4.544 3.683-8.227 8.217-8.227zM10.995.139c2.925 0 5.3 2.376 5.3 5.3s-2.376 5.3-5.3 5.3v-.01a5.303 5.303 0 0 1-5.3-5.3 5.295 5.295 0 0 1 5.3-5.29"})),Cp=qt(h.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),nc=qt(h.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),dC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:450,md:500},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:3},borderRadius:2,maxHeight:"90vh",overflowY:"auto"},oc=["#dbe3fe","#fcebc7","#d9f1d2","#fdf5d1","#ebe3d7","#e1d6fb","#f7c7cc","#f9e7fb","#eaedf2","#d5d8dd"],In=(()=>{const e=[];for(let r=0;r<24;r++)for(let t=0;t<60;t+=15){const n=r.toString().padStart(2,"0"),o=t.toString().padStart(2,"0");e.push(`${n}:${o}`)}return e})(),ko=(e,r)=>{if(!e||!r)return null;const t=e.split("-");if(t.length!==3)return null;const n=parseInt(t[0],10),o=parseInt(t[1],10)-1,i=parseInt(t[2],10),a=r.split(":");if(a.length!==2)return null;const s=parseInt(a[0],10),c=parseInt(a[1],10),l=new Date(i,o,n,s,c);return isNaN(l.getTime())||!w.isValid(l)?null:l},fC=({isVisible:e,onClose:r,onSave:t,onDelete:n,selectedDate:o,initialEvent:i,userId:a,masNombreBD:s,disId:c})=>{const[l,u]=x.useState(!1),[d,f]=x.useState(!1),m=w.format(new Date,"yyyy-MM-dd"),[g,p]=x.useState(""),[y,S]=x.useState([]),[C,k]=x.useState(!1),E=Is(),[_,O]=x.useState([]),{control:N,handleSubmit:q,reset:Z,formState:{errors:L},watch:K,setValue:v}=j2({resolver:Vx(oC),defaultValues:{titulo:"",fechaInicio:w.format(new Date,"yyyy-MM-dd"),horaInicio:w.format(new Date,"HH:mm"),horaFin:w.format(w.addHours(new Date,1),"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:oc[5],solID:null}}),I=K("fechaInicio"),A=K("fechaFin"),U=K("todoElDia");x.useEffect(()=>{if(g.trim()===""||!a||!c||!s){S([]);return}k(!0);const F=setTimeout(()=>{E.getClients(g,c,s,a).then(W=>{k(!1);const de=Array.from(new Map(W.map(P=>[P.nombreCliente,P])).values());if(de)S(de);else if(i?.client&&i.solID!==null){const P=[{solID:i.solID,nombreCliente:i.client}];S(P)}else S([])}).catch(W=>{console.error("Error al buscar clientes:",W),k(!1)})},500);return()=>clearTimeout(F)},[g,a,c,s]),x.useEffect(()=>{if(I&&A){const F=new Date(I),W=new Date(A);(F===W||F>W)&&v("fechaFin",I)}},[I,A,v]),x.useEffect(()=>{I&&v("fechaFin",I)},[I]),x.useEffect(()=>{v("showEndDate",l)},[l,v]),x.useEffect(()=>{if(i){const F=w.format(i.fechaInicio,"yyyy-MM-dd")===w.format(i.fechaFin,"yyyy-MM-dd");u(!F),v("titulo",i?.titulo),v("fechaInicio",w.format(i.fechaInicio,"yyyy-MM-dd")),v("fechaFin",w.format(i.fechaFin,"yyyy-MM-dd")),v("horaInicio",w.format(i.fechaInicio,"HH:mm")),v("horaFin",w.format(i.fechaFin,"HH:mm")),v("horaInicio2",w.format(i.fechaFin,"HH:mm")),v("descripcion",i.descripcion),v("link",i.link),v("repetir","false"),v("color",i.color),v("todoElDia",i.todoElDia),v("solID",i.solID),v("client",i.client),i.solID?f(!0):f(!1)}else{const F=o||new Date,W=new Date,de=new Date(F.getFullYear(),F.getMonth(),F.getDate(),W.getHours(),W.getMinutes()),P=w.addHours(de,1);Z({titulo:"",fechaInicio:w.format(de,"yyyy-MM-dd"),horaInicio:w.format(de,"HH:mm"),fechaFin:w.format(P,"yyyy-MM-dd"),horaFin:w.format(P,"HH:mm"),horaInicio2:w.format(P,"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:oc[5],solID:null}),u(!1),f(!1)}},[i,e,o]);const H=q(F=>{t(F,i?.eventoID),r(),Z(),u(!1)},F=>{console.log("Errores de validación:",F)});x.useEffect(()=>{U&&(v("horaInicio","00:00"),v("horaFin","23:59"))},[U,v,K]);const ee=()=>{const F=K("fechaInicio");if(F){const W=new Date(`${F}T00:00:00`),de=w.addDays(W,1);v("fechaFin",w.format(de,"yyyy-MM-dd"))}u(!0)},re=K("fechaInicio"),se=K("horaInicio"),V=K("fechaFin"),G=K("horaFin"),[ge,ve]=x.useState(null),[he,J]=x.useState(null);x.useEffect(()=>{(ge===null||ge!==se)&&ve(se)},[se,ge]),x.useEffect(()=>{(he===null||he!==G)&&J(G??"")},[G,he]);const Q=K("todoElDia");x.useEffect(()=>{if(Q||!se||!G||!re||!V)return;const F=ko(re,se),W=ko(V,G);if(!F||!W||!w.isValid(F)||!w.isValid(W))return;const de=w.isSameDay(F,W),P=de&&(w.isAfter(F,W)||F.getTime()===W.getTime()),we=w.isBefore(W,F)&&!de;(P||we)&&(v("horaFin",""),J(""))},[se]);const ce=x.useMemo(()=>{if(!se||!re)return In;const F=ko(re,se),W=ko(V,"00:00");return!F||!W||!w.isValid(F)||!w.isValid(W)||w.isBefore(W,F)&&!w.isSameDay(W,F)?In:w.isSameDay(F,W)?In.filter(de=>{const P=ko(V,de);return P&&w.isAfter(P,F)}):(w.isAfter(W,F),In)},[se,re,V]),ue=x.useMemo(()=>In,[]);return h.jsx($.Modal,{open:e,onClose:r,children:h.jsxs($.Box,{sx:dC,children:[h.jsx($.IconButton,{"aria-label":"close",onClick:r,sx:{position:"absolute",right:8,top:12},children:h.jsx(nc,{})}),h.jsx($.Typography,{variant:"h6",mb:2,children:i?"Editar evento":"Agregar evento"}),h.jsxs($.Grid,{container:!0,spacing:1,marginBottom:l?0:1,children:[h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"titulo",control:N,render:({field:F})=>h.jsx($.TextField,{...F,label:"Título",fullWidth:!0,variant:"outlined",size:"small",error:!!L.titulo,helperText:L.titulo?.message,inputProps:{maxLength:100},sx:{"& .MuiInputLabel-root.Mui-focused":{color:"black"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"black"},"& .MuiInputLabel-root":{backgroundColor:"transparent !important",padding:"0 !important"}}})})}),h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsx($.Divider,{})}),h.jsx($.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"fechaInicio",control:N,render:({field:F})=>h.jsx($.TextField,{fullWidth:!0,...F,type:"date",placeholder:"Fecha de inicio",size:"small",InputLabelProps:{shrink:!0},error:!!L.fechaInicio,helperText:L.fechaInicio?.message})})}),l?h.jsxs(h.Fragment,{children:[h.jsx($.Grid,{size:{xs:1,md:3},sx:{display:{xs:"none",sm:"block"}}}),h.jsx($.Grid,{size:{xs:11,md:4},children:h.jsx(er,{name:"fechaFin",control:N,render:({field:F})=>h.jsx($.TextField,{...F,type:"date",placeholder:"Fecha de fin",fullWidth:!!l,size:"small",InputLabelProps:{shrink:!0},inputProps:{min:I||m},error:!!L.fechaFin,helperText:L.fechaFin?.message})})}),!i&&h.jsx($.Grid,{size:{xs:1,md:1},children:h.jsx($.IconButton,{onClick:()=>u(!1),sx:{fontSize:18},children:h.jsx(Sp,{})})})]}):h.jsx($.Grid,{size:{xs:12,md:7}})]}),l&&h.jsx(h.Fragment,{children:h.jsxs($.Grid,{container:!0,spacing:0,sx:{margin:0,padding:0,width:"100%"},children:[h.jsx($.Grid,{size:{xs:6,md:5}}),h.jsx($.Grid,{size:{xs:12,md:6},sx:{margin:0,padding:0,width:"100%",display:{xs:"none",sm:"block"}},children:h.jsx(Cp,{sx:{color:"#757575",margin:0,padding:0}})})]})}),h.jsxs($.Grid,{container:!0,spacing:1,marginBottom:1,marginTop:1,children:[h.jsx($.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"horaInicio",control:N,render:({field:{onChange:F,value:W,...de}})=>h.jsx($.Autocomplete,{freeSolo:!0,options:ue,value:W||"",onChange:(P,we)=>F(we||""),onInputChange:(P,we)=>F(we),renderInput:P=>h.jsx($.TextField,{...P,...de,size:"small",error:!!L.horaInicio,helperText:L.horaInicio?.message,InputProps:{...P.InputProps,endAdornment:h.jsx($.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:h.jsx(rf,{})})}}),disabled:K("todoElDia")})})}),h.jsx($.Grid,{size:{xs:1,md:1},sx:{display:"flex",alignItems:L.horaInicio?"start":"center",marginTop:L.horaInicio?"5px":"0px"},children:!l&&h.jsx(Cp,{sx:{color:"#757575"}})}),l&&h.jsx($.Grid,{size:{xs:2,md:2}}),h.jsx($.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"horaFin",control:N,render:({field:{onChange:F,value:W,...de}})=>h.jsx($.Autocomplete,{freeSolo:!0,options:ce,value:W||"",onChange:(P,we)=>F(we||""),onInputChange:(P,we)=>F(we),renderInput:P=>h.jsx($.TextField,{...P,...de,size:"small",error:!!L.horaFin,helperText:L.horaFin?.message,InputProps:{...P.InputProps,endAdornment:h.jsx($.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:h.jsx(rf,{})})}}),disabled:K("todoElDia")})})}),h.jsx($.Grid,{size:{xs:12,md:3},hidden:l,children:h.jsx(er,{name:"todoElDia",control:N,render:({field:F})=>h.jsx($.FormControlLabel,{control:h.jsx($.Checkbox,{checked:F.value,onChange:W=>F.onChange(W.target.checked)}),label:h.jsx("label",{style:{fontSize:"0.7rem",fontWeight:"normal"},children:"Todo el día"}),sx:{whiteSpace:"nowrap"}})})}),h.jsx($.Grid,{size:{xs:12,md:12},children:!l&&h.jsx(h.Fragment,{children:h.jsxs($.Button,{onClick:ee,size:"small",sx:{textTransform:"none",fontSize:16},children:[h.jsx(cC,{}),"  Agregar fecha final"]})})}),h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsx($.Divider,{})}),h.jsx($.Grid,{size:{xs:12,md:12},children:!d&&h.jsxs($.Button,{onClick:()=>f(!0),size:"small",sx:{textTransform:"none",fontSize:16},children:[h.jsx(uC,{}),"  Vincular cliente"]})}),d&&h.jsxs(h.Fragment,{children:[h.jsx($.Grid,{size:{xs:12,md:7},children:h.jsx(er,{name:"client",control:N,render:({field:F})=>h.jsx($.Autocomplete,{options:y,loading:C,getOptionLabel:W=>W.nombreCliente?.trim()||"",value:y.find(W=>W.nombreCliente===F.value)||(F.value&&typeof F.value=="string"?{solID:-1,nombreCliente:F.value}:null),noOptionsText:"",onInputChange:(W,de)=>{p(de)},onChange:(W,de)=>{if(F.onChange(de?de.nombreCliente:""),v("solID",de?de.solID:null),de&&de.nombreCliente){const P=y.filter(we=>we.nombreCliente===de.nombreCliente&&we.solID).map(we=>we.solID);O([...new Set(P)])}else O([])},renderInput:W=>h.jsx($.TextField,{...W,placeholder:"Buscar cliente...",size:"small",InputProps:{...W.InputProps,startAdornment:h.jsx("img",{src:sC,width:20,style:{alignSelf:"flex-start",marginRight:"8px",marginTop:"5px"}}),endAdornment:h.jsxs(h.Fragment,{children:[C?h.jsx($.CircularProgress,{color:"inherit",size:20}):null,W.InputProps.endAdornment]})}})})})}),h.jsx($.Grid,{size:{xs:11,md:4},children:h.jsx(er,{name:"solID",control:N,render:({field:F})=>h.jsx($.Autocomplete,{options:_,getOptionLabel:W=>W.toString(),value:F.value??null,onChange:(W,de)=>F.onChange(de),renderInput:W=>h.jsx($.TextField,{...W,label:"#Registro",variant:"outlined",size:"small",sx:{"& .MuiInputLabel-root":{backgroundColor:"transparent !important",padding:"0 !important"}}}),disabled:!y})})}),h.jsx($.Grid,{size:{xs:1,md:1},children:h.jsx($.IconButton,{onClick:()=>f(!1),sx:{fontSize:18},children:h.jsx(Sp,{})})})]}),h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsx($.Divider,{})}),h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"link",control:N,render:({field:F})=>h.jsx($.TextField,{...F,placeholder:" Agregar enlace de reunión",fullWidth:!0,variant:"outlined",size:"small",error:!!L.link,helperText:L.link?.message,InputProps:{startAdornment:h.jsx("img",{src:iC,width:20,style:{alignSelf:"flex-start",marginRight:"8px",marginTop:"8px"}})}})})}),h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"descripcion",control:N,render:({field:F})=>h.jsx($.TextField,{...F,placeholder:" Agregar descripción aquí...",fullWidth:!0,multiline:!0,rows:3,inputProps:{maxLength:500},variant:"outlined",size:"small",InputProps:{startAdornment:h.jsx("img",{src:lC,width:20,style:{alignSelf:"flex-start",marginRight:"8px"}})}})})}),h.jsx($.Grid,{size:{xs:12,md:12},children:h.jsxs($.Box,{sx:{display:"flex",alignItems:"center",gap:.5,flexWrap:"wrap"},children:[h.jsx(aC,{}),oc.map(F=>h.jsx(er,{name:"color",control:N,render:({field:W})=>h.jsx($.IconButton,{onClick:()=>W.onChange(F),sx:{width:24,height:24,borderRadius:"50%",bgcolor:F,border:W.value===F?"2px solid":"none",borderColor:W.value===F?"primary.main":"transparent"}})},F))]})})]}),h.jsxs($.Box,{sx:{display:"flex",justifyContent:"flex-end",mt:3,gap:2},children:[i&&h.jsx($.Button,{onClick:n,variant:"outlined",color:"error",children:"Eliminar"}),h.jsx($.Button,{onClick:r,variant:"outlined",sx:{textTransform:"none"},children:"Cancelar"}),h.jsx($.Button,{onClick:H,variant:"contained",sx:{textTransform:"none"},children:"Guardar"})]})]})})},pC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='49'%20fill='none'%3e%3cpath%20fill='%23E40B1C'%20d='M34.559%2048.077c-7.413%200-13.44-6.039-13.44-13.44s6.027-13.44%2013.44-13.44%2013.44%206.027%2013.44%2013.44c0%207.414-6.027%2013.44-13.44%2013.44'/%3e%3cpath%20fill='%23fff'%20d='M39.827%2029.346c.583.583.605%201.505.05%202.06l-3.218%203.219%203.219%203.218c.555.556.532%201.48-.051%202.062-.584.583-1.506.605-2.062.05l-3.218-3.218-3.218%203.218c-.556.555-1.478.533-2.061-.05s-.606-1.506-.05-2.062l3.217-3.218-3.218-3.218c-.555-.555-.533-1.478.05-2.061.583-.584%201.507-.606%202.063-.05l3.217%203.217%203.218-3.218c.556-.555%201.478-.533%202.062.05'/%3e%3cpath%20fill='%23404756'%20d='M30.367.078c1.112%200%202.001.868%202.001%201.954v1.195h.979c4.913%200%208.892%203.887%208.892%208.686v9.237a15.4%2015.4%200%200%200-4.424-1.691v-1.312H4.468V33.63c0%202.389%202%204.343%204.446%204.343H19.4a15.4%2015.4%200%200%200%201.676%204.343H8.892C3.979%2042.317%200%2038.43%200%2033.631V11.913c0-4.8%203.979-8.686%208.892-8.686h1V2.032c0-1.086.89-1.954%202.002-1.954s2%20.868%202%201.954v1.195h14.473V2.032c0-1.085.889-1.954%202-1.954'/%3e%3c/svg%3e",hC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",boxShadow:24,p:4,borderRadius:2,textAlign:"center"},mC=({isOpen:e,onClose:r,onConfirm:t,title:n,message:o})=>h.jsx($.Modal,{open:e,onClose:r,children:h.jsxs($.Box,{sx:hC,children:[h.jsx("img",{src:pC}),h.jsx($.Typography,{variant:"h6",component:"h2",sx:{mt:1},children:n}),h.jsx($.Typography,{sx:{mt:2},children:o}),h.jsxs($.Box,{sx:{mt:4,display:"flex",justifyContent:"center",gap:2},children:[h.jsx($.Button,{variant:"outlined",onClick:r,sx:{textTransform:"none"},children:"Regresar"}),h.jsxs($.Button,{variant:"contained",color:"error",onClick:t,sx:{textTransform:"none"},children:[h.jsx("span",{className:"icon-eliminar",children:"  "})," Eliminar"]})]})]})}),gC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:450,bgcolor:"background.paper",boxShadow:24,p:2,borderRadius:2},vC=({isOpen:e,onClose:r,events:t,date:n,onEventClick:o})=>{if(!n)return null;const i=a=>{o(a),r()};return h.jsx($.Modal,{open:e,onClose:r,children:h.jsxs($.Box,{sx:gC,children:[h.jsxs($.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[h.jsxs($.Typography,{sx:{fontSize:"20px"},component:"h2",children:["Eventos del"," ",n.toLocaleDateString("es-ES",{weekday:"long",day:"numeric",month:"long"})]}),h.jsx($.IconButton,{onClick:r,children:h.jsx(nc,{})})]}),h.jsx($.Divider,{}),h.jsx($.List,{children:t.map(a=>h.jsx($.ListItem,{disablePadding:!0,children:h.jsxs($.ListItemButton,{onClick:()=>i(a),sx:{py:.5},children:[h.jsx($.Box,{sx:{width:"15px",height:"15px",borderRadius:"50%",backgroundColor:a.color||"#ccc",mr:2,flexShrink:0,minWidth:"10px"}}),h.jsx($.ListItemText,{primary:a.titulo,secondary:`${w.format(a.fechaInicio,"HH:mm")} - ${w.format(a.fechaFin,"HH:mm")}`,sx:{my:0,"& .MuiListItemText-primary":{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},"& .MuiListItemText-secondary":{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"}}})]})},a.eventoID))})]})})},yC=qt(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),bC=qt(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),wC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23E40B1C'%20d='M20.36%204.14H16c0-1.65-1.35-3-3-3h-2c-1.65%200-3%201.35-3%203H3.64c-.55%200-1%20.45-1%201s.45%201%201%201h1.04l.84%2013.91a3%203%200%200%200%202.99%202.82h6.98c1.58%200%202.9-1.24%203-2.82l.84-13.91h1.04c.55%200%201-.45%201-1s-.45-1-1-1zm-9.36-1h2c.55%200%201%20.45%201%201h-4c0-.55.45-1%201-1m-.39%2014.9c0%20.55-.45%201-1%201s-1-.45-1-1V9.99c0-.55.45-1%201-1s1%20.45%201%201zm4.78%200c0%20.55-.45%201-1%201s-1-.45-1-1V9.99c0-.55.45-1%201-1s1%20.45%201%201z'/%3e%3c/svg%3e",_C="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M19.378%204.405a1.813%201.813%200%201%201%202.565%202.565L9.571%2019.342a1.813%201.813%200%200%201-2.565%200l-4.949-4.949a1.814%201.814%200%200%201%202.428-2.69l.137.126%203.666%203.666z'/%3e%3c/svg%3e",Ep=x.forwardRef(({id:e,message:r,variant:t},n)=>{const{closeSnackbar:o}=ya.useSnackbar(),i={success:{color:"#fff",icon:h.jsx("img",{width:25,src:_C,style:{borderRadius:"50%",backgroundColor:"#4caf50",color:"white",fontSize:"12px",padding:3}})},error:{color:"#f44336",icon:h.jsx(yC,{sx:{color:"#f44336"}})},info:{color:"#2196f3",icon:h.jsx(bC,{sx:{color:"#2196f3"}})},delete:{color:"#fff",icon:h.jsx("img",{src:wC,width:25,style:{borderRadius:"50%",backgroundColor:"#ffdfd4",color:"red",fontSize:"16px",padding:3}})}},a=i[t]||i.info;return h.jsx(ya.SnackbarContent,{ref:n,children:h.jsxs($.Box,{sx:{backgroundColor:"white",color:"#333",padding:"8px 16px",borderRadius:"8px",boxShadow:"0 3px 10px rgba(0,0,0,0.2)",display:"flex",alignItems:"center",width:{xs:"90%",sm:"auto"},minWidth:"300px",borderLeft:`5px solid ${a.color}`},children:[h.jsx($.Box,{sx:{mr:1.5},children:a.icon}),h.jsx($.Typography,{variant:"body2",sx:{flexGrow:1},children:r}),h.jsx($.IconButton,{size:"small",onClick:()=>o(e),children:h.jsx(nc,{fontSize:"small"})})]})})}),xC=({userId:e,leads30Days:r,leads90Days:t,disId:n,masNombreBD:o})=>{const[i,a]=x.useState(new Date),[s,c]=x.useState([]),[l,u]=x.useState(!1),[d,f]=x.useState(null),[m,g]=x.useState(!1),[p,y]=x.useState(null),[S,C]=x.useState([]),{enqueueSnackbar:k}=ya.useSnackbar(),E=Is(),[_,O]=x.useState(!1),[N,q]=x.useState([]),[Z,L]=x.useState(null),K=(J,Q)=>{q(J),L(Q),O(!0)},v=x.useRef(null);x.useEffect(()=>{const J=async()=>{try{if(e){const Q=await E.getEventsByUser(e);c(Q)}}catch{console.log("No se pudieron cargar los eventos. Revisa la consola para más detalles.")}finally{console.log("Eventos han sido cargados")}};return J(),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{console.log("Iniciando recarga programada de eventos (2 segundos después del inicio)..."),J()},4e3),()=>{v.current&&clearTimeout(v.current)}},[i,e]),x.useEffect(()=>{const J=new Date,Q=w.startOfDay(J),ce=w.endOfDay(w.addDays(Q,6)),ue={start:Q,end:ce},F=s.filter(W=>{const de={start:W.fechaInicio,end:W.fechaFin};return id(de,ue)}).sort((W,de)=>W.fechaInicio.getTime()-de.fechaInicio.getTime());C(F)},[s]);const I=async J=>{try{const Q=await E.getEventById(J.eventoID);f(Q),u(!0)}catch(Q){console.error(Q)}},A=()=>{u(!1),f(null)},U=async(J,Q)=>{let ce,ue;J.todoElDia?(ce=new Date(`${J.fechaInicio}T${J.horaInicio}`),ue=new Date(`${J.fechaInicio}T${J.horaFin}`)):(ce=new Date(`${J.fechaInicio}T${J.horaInicio}`),ue=J.fechaFin&&J.horaFin?new Date(`${J.fechaFin}T${J.horaFin}`):new Date(`${J.fechaInicio}T${J.horaFin}`));const F=w.format(ce,"yyyy-MM-dd HH:mm:ss.SSS"),W=w.format(ue,"yyyy-MM-dd HH:mm:ss.SSS");if(Q){const P={...J,eventoID:Q,fechaInicio:F,fechaFin:W,solID:J.solID??null,disID:n??null,client:J.client};try{const we=await E.updateEvent(P);var de=s.map(Qe=>Qe.eventoID===we.eventoID?we:Qe);c(de),k("El evento se ha actualizado correctamente.",{variant:"success"}),A()}catch{k("Error al eliactualizar Evento",{variant:"error"})}}else{const P={...J,fechaInicio:F,fechaFin:W,todoElDia:J.todoElDia,solID:J.solID??null,disID:n??null,client:J.client};try{const we=await E.createEvent(P,e);c(Qe=>[...Qe,we]),k("El evento se ha creado con éxito",{variant:"success"}),A()}catch{k("Error al guardar Evento",{variant:"error"})}}if(e){const P=await E.getEventsByUser(e);c(P)}},H=()=>{a(J=>new Date(J.getFullYear(),J.getMonth()-1,1))},ee=()=>{a(J=>new Date(J.getFullYear(),J.getMonth()+1,1))},re=()=>{g(!0)},se=()=>{y(new Date),u(!0)},V=()=>alert("Sincronizar con Google Calendar"),G=()=>alert("Sincronizar con Outlook Calendar"),ge=J=>{J&&a(J)},ve=J=>{y(J),u(!0),f(null)},he=async()=>{if(d)try{await E.deleteEvent(d.eventoID),c(s.filter(J=>J.eventoID!==d.eventoID)),k("El evento se ha eliminado de tu calendario",{content:(J,Q)=>h.jsx(Ep,{id:J,message:String(Q),variant:"delete"})})}catch{k("Error al eliminar Evento",{variant:"error"})}finally{A(),g(!1)}};return h.jsxs("div",{id:"Agenda",style:{height:"100%",width:"100%"},children:[h.jsx(N0,{header:h.jsx(tb,{currentDate:i,onPrevMonth:H,onNextMonth:ee,onAddEvent:se,onDateChange:ge}),sidebar:h.jsx(jb,{onEventClick:I,upcomingEvents:S,onSyncGoogle:V,onSyncOutlook:G,leads30Days:r,leads90Days:t}),mainContent:h.jsx(Wb,{onSeeMoreClick:K,currentDate:i,events:s,onDayClick:ve,onEventClick:I})}),h.jsx(fC,{isVisible:l,onClose:A,onSave:U,onDelete:re,selectedDate:p,initialEvent:d,userId:e,masNombreBD:o,disId:n}),h.jsx(mC,{isOpen:m,onClose:()=>g(!1),onConfirm:he,title:"Eliminar evento",message:"¿De verdad deseas eliminar este evento? Esta acción no se puede deshacer."}),h.jsx(vC,{isOpen:_,onClose:()=>O(!1),events:N,date:Z,onEventClick:I})]})},SC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='22'%3e%3cpath%20fill='%23070c10'%20d='M18.575%203.172A10.829%2010.829%200%200%200%201.564%2016.284l-.028-.051L0%2021.843l5.739-1.506a10.7%2010.7%200%200%200%205.173%201.318%2010.83%2010.83%200%200%200%207.663-18.483m-7.658%2016.655a8.94%208.94%200%200%201-4.62-1.277l.041.023-.329-.194-3.405.894.908-3.321-.214-.34a8.9%208.9%200%200%201-1.376-4.782%209%209%200%201%201%209%209Zm4.935-6.736c-.27-.135-1.6-.789-1.848-.88s-.429-.135-.61.136-.7.879-.856%201.06-.316.2-.586.068a7.5%207.5%200%200%201-2.183-1.349l.007.007a8.2%208.2%200%200%201-1.483-1.842l-.02-.038c-.157-.27-.017-.417.118-.551s.271-.316.406-.473a1.9%201.9%200%200%200%20.267-.44v-.012a.5.5%200%200%200%20.05-.216.5.5%200%200%200-.074-.26c-.068-.135-.609-1.467-.834-2.009s-.444-.455-.609-.464-.338-.009-.519-.009a.99.99%200%200%200-.72.337%203.03%203.03%200%200%200-.947%202.2v.058a5.27%205.27%200%200%200%201.114%202.815v-.011a12.16%2012.16%200%200%200%204.553%204.053l.068.031a14%2014%200%200%200%201.434.539l.109.03a3.6%203.6%200%200%200%201.077.161%203.7%203.7%200%200%200%20.648-.057h-.023a2.8%202.8%200%200%200%201.819-1.274l.007-.012a2.2%202.2%200%200%200%20.19-.9%202.3%202.3%200%200%200-.034-.395v.014c-.067-.113-.248-.18-.519-.316Z'/%3e%3c/svg%3e",CC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25.085'%20height='18.5'%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='none'%20d='M0%200h25.085v18.5H0z'%20data-name='Rectángulo%204598'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23a)'%20data-name='Grupo%207946'%3e%3cpath%20d='M23.12%205.809V3.226a3.2%203.2%200%200%200-.068-.656l-3.141%202.21a7.8%207.8%200%200%201%203.209%201.032'%20data-name='Trazado%2013329'/%3e%3cpath%20d='M11.847%209.791c-.1.009-.2.023-.308.023a3.78%203.78%200%200%201-2.18-.688L.067%202.58A3.2%203.2%200%200%200%200%203.227V13.98a3.23%203.23%200%200%200%203.226%203.226h9.611a7.86%207.86%200%200%201-.99-7.414'%20data-name='Trazado%2013330'/%3e%3cpath%20d='M12.478%207.369%2021.92.737A3.2%203.2%200%200%200%2019.894%200H3.226a3.2%203.2%200%200%200-2.031.74l9.4%206.628a1.64%201.64%200%200%200%201.881%200'%20data-name='Trazado%2013331'/%3e%3cpath%20d='M23.356%208.407a5.914%205.914%200%201%200%200%208.364%205.92%205.92%200%200%200%200-8.364m-1.833%204.842a.54.54%200%200%201-1.081%200v-1.164l-2.513%202.516a.54.54%200%200%201-.765-.763l2.515-2.515h-1.167a.54.54%200%201%201%200-1.081h2.471a.54.54%200%200%201%20.54.54Z'%20data-name='Trazado%2013332'/%3e%3c/g%3e%3c/svg%3e";function ic(e,r,t){return e.accessor?e.accessor(r,t):e.field?r?.[e.field]:r?.[e?.key||""]}function EC(e,r){const t=e??"",n=r??"";return t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():typeof t=="number"&&typeof n=="number"?t-n:typeof t=="boolean"&&typeof n=="boolean"?Number(t)-Number(n):String(t).localeCompare(String(n),void 0,{numeric:!0,sensitivity:"base"})}function ac(e,r,t=!0){return typeof e=="function"?e(r):e??t}function kC(e){return e.replace(/[^\d]/g,"")}function DC(e,r){return r}const kp=qt(h.jsx("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFileOutlined"),TC=qt(h.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),OC=qt(h.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),MC=Et("MuiBox",["root"]),PC=ou(),sc=Sg({themeId:Xa,defaultTheme:PC,defaultClassName:MC.root,generateClassName:Ic.generate});process.env.NODE_ENV!=="production"&&(sc.propTypes={children:b.node,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function Dp(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function cc(e,r){return cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},cc(e,r)}function Tp(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,cc(e,r)}const Op={disabled:!1};var AC=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.shape({enter:b.number,exit:b.number,appear:b.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&b.oneOfType([b.string,b.shape({enter:b.string,exit:b.string,active:b.string}),b.shape({enter:b.string,enterDone:b.string,enterActive:b.string,exit:b.string,exitDone:b.string,exitActive:b.string})]);const fa=x.createContext(null);var IC=function(r){return r.scrollTop},Do="unmounted",rn="exited",nn="entering",Rn="entered",lc="exiting",Cr=(function(e){Tp(r,e);function r(n,o){var i;i=e.call(this,n,o)||this;var a=o,s=a&&!a.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?s?(c=rn,i.appearStatus=nn):c=Rn:n.unmountOnExit||n.mountOnEnter?c=Do:c=rn,i.state={status:c},i.nextCallback=null,i}r.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Do?{status:rn}:null};var t=r.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==nn&&a!==Rn&&(i=nn):(a===nn||a===Rn)&&(i=lc)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},t.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===nn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ln.findDOMNode(this);a&&IC(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rn&&this.setState({status:Do})},t.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[ln.findDOMNode(this),s],l=c[0],u=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||Op.disabled){this.safeSetState({status:Rn},function(){i.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:nn},function(){i.props.onEntering(l,u),i.onTransitionEnd(f,function(){i.safeSetState({status:Rn},function(){i.props.onEntered(l,u)})})})},t.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:ln.findDOMNode(this);if(!i||Op.disabled){this.safeSetState({status:rn},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:lc},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:rn},function(){o.props.onExited(s)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},t.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},t.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ln.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}o!=null&&setTimeout(this.nextCallback,o)},t.render=function(){var o=this.state.status;if(o===Do)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Dp(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(fa.Provider,{value:null},typeof a=="function"?a(o,s):x.cloneElement(x.Children.only(a),s))},r})(x.Component);Cr.contextType=fa,Cr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:b.shape({current:typeof Element>"u"?b.any:function(e,r,t,n,o,i){var a=e[r];return b.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,r,t,n,o,i)}}),children:b.oneOfType([b.func.isRequired,b.element.isRequired]).isRequired,in:b.bool,mountOnEnter:b.bool,unmountOnExit:b.bool,appear:b.bool,enter:b.bool,exit:b.bool,timeout:function(r){var t=AC;r.addEndListener||(t=t.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return t.apply(void 0,[r].concat(o))},addEndListener:b.func,onEnter:b.func,onEntering:b.func,onEntered:b.func,onExit:b.func,onExiting:b.func,onExited:b.func}:{};function Nn(){}Cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nn,onEntering:Nn,onEntered:Nn,onExit:Nn,onExiting:Nn,onExited:Nn},Cr.UNMOUNTED=Do,Cr.EXITED=rn,Cr.ENTERING=nn,Cr.ENTERED=Rn,Cr.EXITING=lc;function RC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uc(e,r){var t=function(i){return r&&x.isValidElement(i)?r(i):i},n=Object.create(null);return e&&x.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=t(o)}),n}function NC(e,r){e=e||{},r=r||{};function t(u){return u in r?r[u]:e[u]}var n=Object.create(null),o=[];for(var i in e)i in r?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var c in r){if(n[c])for(a=0;a<n[c].length;a++){var l=n[c][a];s[n[c][a]]=t(l)}s[c]=t(c)}for(a=0;a<o.length;a++)s[o[a]]=t(o[a]);return s}function on(e,r,t){return t[r]!=null?t[r]:e.props[r]}function $C(e,r){return uc(e.children,function(t){return x.cloneElement(t,{onExited:r.bind(null,t),in:!0,appear:on(t,"appear",e),enter:on(t,"enter",e),exit:on(t,"exit",e)})})}function jC(e,r,t){var n=uc(e.children),o=NC(r,n);return Object.keys(o).forEach(function(i){var a=o[i];if(x.isValidElement(a)){var s=i in r,c=i in n,l=r[i],u=x.isValidElement(l)&&!l.props.in;c&&(!s||u)?o[i]=x.cloneElement(a,{onExited:t.bind(null,a),in:!0,exit:on(a,"exit",e),enter:on(a,"enter",e)}):!c&&s&&!u?o[i]=x.cloneElement(a,{in:!1}):c&&s&&x.isValidElement(l)&&(o[i]=x.cloneElement(a,{onExited:t.bind(null,a),in:l.props.in,exit:on(a,"exit",e),enter:on(a,"enter",e)}))}}),o}var LC=Object.values||function(e){return Object.keys(e).map(function(r){return e[r]})},zC={component:"div",childFactory:function(r){return r}},dc=(function(e){Tp(r,e);function r(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(RC(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var t=r.prototype;return t.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},t.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,c=i.firstRender;return{children:c?$C(o,s):jC(o,a,s),firstRender:!1}},t.handleExited=function(o,i){var a=uc(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var c=Wo({},s.children);return delete c[o.key],{children:c}}))},t.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=Dp(o,["component","childFactory"]),c=this.state.contextValue,l=LC(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?x.createElement(fa.Provider,{value:c},l):x.createElement(fa.Provider,{value:c},x.createElement(i,s,l))},r})(x.Component);dc.propTypes=process.env.NODE_ENV!=="production"?{component:b.any,children:b.node,appear:b.bool,enter:b.bool,exit:b.bool,childFactory:b.func}:{},dc.defaultProps=zC;const Mp={};function Pp(e,r){const t=j.useRef(Mp);return t.current===Mp&&(t.current=e(r)),t}const BC=[];function VC(e){j.useEffect(e,BC)}class fc{static create(){return new fc}currentId=null;start(r,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},r)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Ap(){const e=Pp(fc.create).current;return VC(e.disposeEffect),e}function pa(e,r){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||r(...n)}}function FC(e){const{prototype:r={}}=e;return!!r.isReactComponent}function YC(e,r,t,n,o){const i=e[r],a=o||r;if(i==null||typeof window>"u")return null;let s;return typeof i=="function"&&!FC(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${t}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ip=pa(b.elementType,YC);function Rp(e,r){const{timeout:t,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof t=="number"?t:t[r.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[r.mode]:n),delay:o.transitionDelay}}function UC(e){return Ct("MuiCollapse",e)}Et("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const HC=e=>{const{orientation:r,classes:t}=e,n={root:["root",`${r}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${r}`],wrapperInner:["wrapperInner",`${r}`]};return Lt(n,UC,t)},WC=ut("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.orientation],t.state==="entered"&&r.entered,t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&r.hidden]}})(cr(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:r})=>r.state==="exited"&&!r.in&&r.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),ZC=ut("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),qC=ut("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ha=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:s="0px",component:c,easing:l,in:u,onEnter:d,onEntered:f,onEntering:m,onExit:g,onExited:p,onExiting:y,orientation:S="vertical",style:C,timeout:k=Ql.standard,TransitionComponent:E=Cr,..._}=n,O={...n,orientation:S,collapsedSize:s},N=HC(O),q=au(),Z=Ap(),L=j.useRef(null),K=j.useRef(),v=typeof s=="number"?`${s}px`:s,I=S==="horizontal",A=I?"width":"height",U=j.useRef(null),H=Ja(t,U),ee=Q=>ce=>{if(Q){const ue=U.current;ce===void 0?Q(ue):Q(ue,ce)}},re=()=>L.current?L.current[I?"clientWidth":"clientHeight"]:0,se=ee((Q,ce)=>{L.current&&I&&(L.current.style.position="absolute"),Q.style[A]=v,d&&d(Q,ce)}),V=ee((Q,ce)=>{const ue=re();L.current&&I&&(L.current.style.position="");const{duration:F,easing:W}=Rp({style:C,timeout:k,easing:l},{mode:"enter"});if(k==="auto"){const de=q.transitions.getAutoHeightDuration(ue);Q.style.transitionDuration=`${de}ms`,K.current=de}else Q.style.transitionDuration=typeof F=="string"?F:`${F}ms`;Q.style[A]=`${ue}px`,Q.style.transitionTimingFunction=W,m&&m(Q,ce)}),G=ee((Q,ce)=>{Q.style[A]="auto",f&&f(Q,ce)}),ge=ee(Q=>{Q.style[A]=`${re()}px`,g&&g(Q)}),ve=ee(p),he=ee(Q=>{const ce=re(),{duration:ue,easing:F}=Rp({style:C,timeout:k,easing:l},{mode:"exit"});if(k==="auto"){const W=q.transitions.getAutoHeightDuration(ce);Q.style.transitionDuration=`${W}ms`,K.current=W}else Q.style.transitionDuration=typeof ue=="string"?ue:`${ue}ms`;Q.style[A]=v,Q.style.transitionTimingFunction=F,y&&y(Q)}),J=Q=>{k==="auto"&&Z.start(K.current||0,Q),o&&o(U.current,Q)};return h.jsx(E,{in:u,onEnter:se,onEntered:G,onEntering:V,onExit:ge,onExited:ve,onExiting:he,addEndListener:J,nodeRef:U,timeout:k==="auto"?null:k,..._,children:(Q,{ownerState:ce,...ue})=>h.jsx(WC,{as:c,className:_e(N.root,a,{entered:N.entered,exited:!u&&v==="0px"&&N.hidden}[Q]),style:{[I?"minWidth":"minHeight"]:v,...C},ref:H,ownerState:{...O,state:Q},...ue,children:h.jsx(ZC,{ownerState:{...O,state:Q},className:N.wrapper,ref:L,children:h.jsx(qC,{ownerState:{...O,state:Q},className:N.wrapperInner,children:i})})})})});process.env.NODE_ENV!=="production"&&(ha.propTypes={addEndListener:b.func,children:b.node,classes:b.object,className:b.string,collapsedSize:b.oneOfType([b.number,b.string]),component:Ip,easing:b.oneOfType([b.shape({enter:b.string,exit:b.string}),b.string]),in:b.bool,onEnter:b.func,onEntered:b.func,onEntering:b.func,onExit:b.func,onExited:b.func,onExiting:b.func,orientation:b.oneOf(["horizontal","vertical"]),style:b.object,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),timeout:b.oneOfType([b.oneOf(["auto"]),b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})])}),ha&&(ha.muiSupportAuto=!0);function KC(e){return typeof e.main=="string"}function GC(e,r=[]){if(!KC(e))return!1;for(const t of r)if(!e.hasOwnProperty(t)||typeof e[t]!="string")return!1;return!0}function pc(e=[]){return([,r])=>r&&GC(r,e)}const QC=b.oneOfType([b.func,b.object]);function Np(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
189
- `))}return!1}class ma{static create(){return new ma}static use(){const r=Pp(ma.create).current,[t,n]=j.useState(!1);return r.shouldMount=t,r.setShouldMount=n,j.useEffect(r.mountEffect,[t]),r}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=JC(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...r){this.mount().then(()=>this.ref.current?.start(...r))}stop(...r){this.mount().then(()=>this.ref.current?.stop(...r))}pulsate(...r){this.mount().then(()=>this.ref.current?.pulsate(...r))}}function XC(){return ma.use()}function JC(){let e,r;const t=new Promise((n,o)=>{e=n,r=o});return t.resolve=e,t.reject=r,t}function $p(e){const{className:r,classes:t,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:c,timeout:l}=e,[u,d]=j.useState(!1),f=_e(r,t.ripple,t.rippleVisible,n&&t.ripplePulsate),m={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=_e(t.child,u&&t.childLeaving,n&&t.childPulsate);return!s&&!u&&d(!0),j.useEffect(()=>{if(!s&&c!=null){const p=setTimeout(c,l);return()=>{clearTimeout(p)}}},[c,s,l]),h.jsx("span",{className:f,style:m,children:h.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&($p.propTypes={classes:b.object.isRequired,className:b.string,in:b.bool,onExited:b.func,pulsate:b.bool,rippleSize:b.number,rippleX:b.number,rippleY:b.number,timeout:b.number.isRequired});const Ht=Et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),hc=550,eE=80,tE=Gn`
190
- 0% {
191
- transform: scale(0);
192
- opacity: 0.1;
193
- }
194
-
195
- 100% {
196
- transform: scale(1);
197
- opacity: 0.3;
198
- }
199
- `,rE=Gn`
200
- 0% {
201
- opacity: 1;
202
- }
203
-
204
- 100% {
205
- opacity: 0;
206
- }
207
- `,nE=Gn`
208
- 0% {
209
- transform: scale(1);
210
- }
211
-
212
- 50% {
213
- transform: scale(0.92);
214
- }
215
-
216
- 100% {
217
- transform: scale(1);
218
- }
219
- `,oE=ut("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),iE=ut($p,{name:"MuiTouchRipple",slot:"Ripple"})`
220
- opacity: 0;
221
- position: absolute;
222
-
223
- &.${Ht.rippleVisible} {
224
- opacity: 0.3;
225
- transform: scale(1);
226
- animation-name: ${tE};
227
- animation-duration: ${hc}ms;
228
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
229
- }
230
-
231
- &.${Ht.ripplePulsate} {
232
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
233
- }
234
-
235
- & .${Ht.child} {
236
- opacity: 1;
237
- display: block;
238
- width: 100%;
239
- height: 100%;
240
- border-radius: 50%;
241
- background-color: currentColor;
242
- }
243
-
244
- & .${Ht.childLeaving} {
245
- opacity: 0;
246
- animation-name: ${rE};
247
- animation-duration: ${hc}ms;
248
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
249
- }
250
-
251
- & .${Ht.childPulsate} {
252
- position: absolute;
253
- /* @noflip */
254
- left: 0px;
255
- top: 0;
256
- animation-name: ${nE};
257
- animation-duration: 2500ms;
258
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
259
- animation-iteration-count: infinite;
260
- animation-delay: 200ms;
261
- }
262
- `,jp=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...s}=n,[c,l]=j.useState([]),u=j.useRef(0),d=j.useRef(null);j.useEffect(()=>{d.current&&(d.current(),d.current=null)},[c]);const f=j.useRef(!1),m=Ap(),g=j.useRef(null),p=j.useRef(null),y=j.useCallback(E=>{const{pulsate:_,rippleX:O,rippleY:N,rippleSize:q,cb:Z}=E;l(L=>[...L,h.jsx(iE,{classes:{ripple:_e(i.ripple,Ht.ripple),rippleVisible:_e(i.rippleVisible,Ht.rippleVisible),ripplePulsate:_e(i.ripplePulsate,Ht.ripplePulsate),child:_e(i.child,Ht.child),childLeaving:_e(i.childLeaving,Ht.childLeaving),childPulsate:_e(i.childPulsate,Ht.childPulsate)},timeout:hc,pulsate:_,rippleX:O,rippleY:N,rippleSize:q},u.current)]),u.current+=1,d.current=Z},[i]),S=j.useCallback((E={},_={},O=()=>{})=>{const{pulsate:N=!1,center:q=o||_.pulsate,fakeElement:Z=!1}=_;if(E?.type==="mousedown"&&f.current){f.current=!1;return}E?.type==="touchstart"&&(f.current=!0);const L=Z?null:p.current,K=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,I,A;if(q||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)v=Math.round(K.width/2),I=Math.round(K.height/2);else{const{clientX:U,clientY:H}=E.touches&&E.touches.length>0?E.touches[0]:E;v=Math.round(U-K.left),I=Math.round(H-K.top)}if(q)A=Math.sqrt((2*K.width**2+K.height**2)/3),A%2===0&&(A+=1);else{const U=Math.max(Math.abs((L?L.clientWidth:0)-v),v)*2+2,H=Math.max(Math.abs((L?L.clientHeight:0)-I),I)*2+2;A=Math.sqrt(U**2+H**2)}E?.touches?g.current===null&&(g.current=()=>{y({pulsate:N,rippleX:v,rippleY:I,rippleSize:A,cb:O})},m.start(eE,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:N,rippleX:v,rippleY:I,rippleSize:A,cb:O})},[o,y,m]),C=j.useCallback(()=>{S({},{pulsate:!0})},[S]),k=j.useCallback((E,_)=>{if(m.clear(),E?.type==="touchend"&&g.current){g.current(),g.current=null,m.start(0,()=>{k(E,_)});return}g.current=null,l(O=>O.length>0?O.slice(1):O),d.current=_},[m]);return j.useImperativeHandle(t,()=>({pulsate:C,start:S,stop:k}),[C,S,k]),h.jsx(oE,{className:_e(Ht.root,i.root,a),ref:p,...s,children:h.jsx(dc,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(jp.propTypes={center:b.bool,classes:b.object,className:b.string});function aE(e){return Ct("MuiButtonBase",e)}const sE=Et("MuiButtonBase",["root","disabled","focusVisible"]),cE=e=>{const{disabled:r,focusVisible:t,focusVisibleClassName:n,classes:o}=e,a=Lt({root:["root",r&&"disabled",t&&"focusVisible"]},aE,o);return t&&n&&(a.root+=` ${n}`),a},lE=ut("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${sE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Lp=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:c="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:m,LinkComponent:g="a",onBlur:p,onClick:y,onContextMenu:S,onDragLeave:C,onFocus:k,onFocusVisible:E,onKeyDown:_,onKeyUp:O,onMouseDown:N,onMouseLeave:q,onMouseUp:Z,onTouchEnd:L,onTouchMove:K,onTouchStart:v,tabIndex:I=0,TouchRippleProps:A,touchRippleRef:U,type:H,...ee}=n,re=j.useRef(null),se=XC(),V=Ja(se.ref,U),[G,ge]=j.useState(!1);l&&G&&ge(!1),j.useImperativeHandle(o,()=>({focusVisible:()=>{ge(!0),re.current.focus()}}),[]);const ve=se.shouldMount&&!u&&!l;j.useEffect(()=>{G&&f&&!u&&se.pulsate()},[u,f,G,se]);const he=Er(se,"start",N,d),J=Er(se,"stop",S,d),Q=Er(se,"stop",C,d),ce=Er(se,"stop",Z,d),ue=Er(se,"stop",M=>{G&&M.preventDefault(),q&&q(M)},d),F=Er(se,"start",v,d),W=Er(se,"stop",L,d),de=Er(se,"stop",K,d),P=Er(se,"stop",M=>{Np(M.target)||ge(!1),p&&p(M)},!1),we=ui(M=>{re.current||(re.current=M.currentTarget),Np(M.target)&&(ge(!0),E&&E(M)),k&&k(M)}),Qe=()=>{const M=re.current;return c&&c!=="button"&&!(M.tagName==="A"&&M.href)},wt=ui(M=>{f&&!M.repeat&&G&&M.key===" "&&se.stop(M,()=>{se.start(M)}),M.target===M.currentTarget&&Qe()&&M.key===" "&&M.preventDefault(),_&&_(M),M.target===M.currentTarget&&Qe()&&M.key==="Enter"&&!l&&(M.preventDefault(),y&&y(M))}),kr=ui(M=>{f&&M.key===" "&&G&&!M.defaultPrevented&&se.stop(M,()=>{se.pulsate(M)}),O&&O(M),y&&M.target===M.currentTarget&&Qe()&&M.key===" "&&!M.defaultPrevented&&y(M)});let Dr=c;Dr==="button"&&(ee.href||ee.to)&&(Dr=g);const Tr={};Dr==="button"?(Tr.type=H===void 0?"button":H,Tr.disabled=l):(!ee.href&&!ee.to&&(Tr.role="button"),l&&(Tr["aria-disabled"]=l));const Or=Ja(t,re),T={...n,centerRipple:i,component:c,disabled:l,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:I,focusVisible:G},R=cE(T);return h.jsxs(lE,{as:Dr,className:_e(R.root,s),ownerState:T,onBlur:P,onClick:y,onContextMenu:J,onFocus:we,onKeyDown:wt,onKeyUp:kr,onMouseDown:he,onMouseLeave:ue,onMouseUp:ce,onDragLeave:Q,onTouchEnd:W,onTouchMove:de,onTouchStart:F,ref:Or,tabIndex:l?-1:I,type:H,...Tr,...ee,children:[a,ve?h.jsx(jp,{ref:V,center:i,...A}):null]})});function Er(e,r,t,n=!1){return ui(o=>(t&&t(o),n||e[r](o),!0))}process.env.NODE_ENV!=="production"&&(Lp.propTypes={action:QC,centerRipple:b.bool,children:b.node,classes:b.object,className:b.string,component:Ip,disabled:b.bool,disableRipple:b.bool,disableTouchRipple:b.bool,focusRipple:b.bool,focusVisibleClassName:b.string,href:b.any,LinkComponent:b.elementType,onBlur:b.func,onClick:b.func,onContextMenu:b.func,onDragLeave:b.func,onFocus:b.func,onFocusVisible:b.func,onKeyDown:b.func,onKeyUp:b.func,onMouseDown:b.func,onMouseLeave:b.func,onMouseUp:b.func,onTouchEnd:b.func,onTouchMove:b.func,onTouchStart:b.func,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),tabIndex:b.number,TouchRippleProps:b.object,touchRippleRef:b.oneOfType([b.func,b.shape({current:b.shape({pulsate:b.func.isRequired,start:b.func.isRequired,stop:b.func.isRequired})})]),type:b.oneOfType([b.oneOf(["button","reset","submit"]),b.string])});function uE(e){return Ct("MuiCircularProgress",e)}Et("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Lr=44,mc=Gn`
263
- 0% {
264
- transform: rotate(0deg);
265
- }
266
-
267
- 100% {
268
- transform: rotate(360deg);
269
- }
270
- `,gc=Gn`
271
- 0% {
272
- stroke-dasharray: 1px, 200px;
273
- stroke-dashoffset: 0;
274
- }
275
-
276
- 50% {
277
- stroke-dasharray: 100px, 200px;
278
- stroke-dashoffset: -15px;
279
- }
280
-
281
- 100% {
282
- stroke-dasharray: 1px, 200px;
283
- stroke-dashoffset: -126px;
284
- }
285
- `,dE=typeof mc!="string"?za`
286
- animation: ${mc} 1.4s linear infinite;
287
- `:null,fE=typeof gc!="string"?za`
288
- animation: ${gc} 1.4s ease-in-out infinite;
289
- `:null,pE=e=>{const{classes:r,variant:t,color:n,disableShrink:o}=e,i={root:["root",t,`color${Ke(n)}`],svg:["svg"],circle:["circle",`circle${Ke(t)}`,o&&"circleDisableShrink"]};return Lt(i,uE,r)},hE=ut("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],r[`color${Ke(t.color)}`]]}})(cr(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:dE||{animation:`${mc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(pc()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}}))]}))),mE=ut("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),gE=ut("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.circle,r[`circle${Ke(t.variant)}`],t.disableShrink&&r.circleDisableShrink]}})(cr(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:r})=>r.variant==="indeterminate"&&!r.disableShrink,style:fE||{animation:`${gc} 1.4s ease-in-out infinite`}}]}))),zp=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:c,thickness:l=3.6,value:u=0,variant:d="indeterminate",...f}=n,m={...n,color:i,disableShrink:a,size:s,thickness:l,value:u,variant:d},g=pE(m),p={},y={},S={};if(d==="determinate"){const C=2*Math.PI*((Lr-l)/2);p.strokeDasharray=C.toFixed(3),S["aria-valuenow"]=Math.round(u),p.strokeDashoffset=`${((100-u)/100*C).toFixed(3)}px`,y.transform="rotate(-90deg)"}return h.jsx(hE,{className:_e(g.root,o),style:{width:s,height:s,...y,...c},ownerState:m,ref:t,role:"progressbar",...S,...f,children:h.jsx(mE,{className:g.svg,ownerState:m,viewBox:`${Lr/2} ${Lr/2} ${Lr} ${Lr}`,children:h.jsx(gE,{className:g.circle,style:p,ownerState:m,cx:Lr,cy:Lr,r:(Lr-l)/2,fill:"none",strokeWidth:l})})})});process.env.NODE_ENV!=="production"&&(zp.propTypes={classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["inherit","primary","secondary","error","info","success","warning"]),b.string]),disableShrink:pa(b.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:b.oneOfType([b.number,b.string]),style:b.object,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),thickness:b.number,value:b.number,variant:b.oneOf(["determinate","indeterminate"])});function vE(e){return Ct("MuiIconButton",e)}const Bp=Et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),yE=e=>{const{classes:r,disabled:t,color:n,edge:o,size:i,loading:a}=e,s={root:["root",a&&"loading",t&&"disabled",n!=="default"&&`color${Ke(n)}`,o&&`edge${Ke(o)}`,`size${Ke(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Lt(s,vE,r)},bE=ut(Lp,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.loading&&r.loading,t.color!=="default"&&r[`color${Ke(t.color)}`],t.edge&&r[`edge${Ke(t.edge)}`],r[`size${Ke(t.size)}`]]}})(cr(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:r=>!r.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),cr(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(pc()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(e.palette).filter(pc()).map(([r])=>({props:{color:r},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Bp.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Bp.loading}`]:{color:"transparent"}}))),wE=ut("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Vp=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:c=!1,disableFocusRipple:l=!1,size:u="medium",id:d,loading:f=null,loadingIndicator:m,...g}=n,p=Yg(d),y=m??h.jsx(zp,{"aria-labelledby":p,color:"inherit",size:16}),S={...n,edge:o,color:s,disabled:c,disableFocusRipple:l,loading:f,loadingIndicator:y,size:u},C=yE(S);return h.jsxs(bE,{id:f?p:d,className:_e(C.root,a),centerRipple:!0,focusRipple:!l,disabled:c||f,ref:t,...g,ownerState:S,children:[typeof f=="boolean"&&h.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:h.jsx(wE,{className:C.loadingIndicator,ownerState:S,children:f&&y})}),i]})});process.env.NODE_ENV!=="production"&&(Vp.propTypes={children:pa(b.node,e=>j.Children.toArray(e.children).some(t=>j.isValidElement(t)&&t.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
290
- `)):null),classes:b.object,className:b.string,color:b.oneOfType([b.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),b.string]),disabled:b.bool,disableFocusRipple:b.bool,disableRipple:b.bool,edge:b.oneOf(["end","start",!1]),id:b.string,loading:b.bool,loadingIndicator:b.node,size:b.oneOfType([b.oneOf(["small","medium","large"]),b.string]),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});const vc=j.createContext();process.env.NODE_ENV!=="production"&&(vc.displayName="TableContext");function _E(e){return Ct("MuiTable",e)}Et("MuiTable",["root","stickyHeader"]);const xE=e=>{const{classes:r,stickyHeader:t}=e;return Lt({root:["root",t&&"stickyHeader"]},_E,r)},SE=ut("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.stickyHeader&&r.stickyHeader]}})(cr(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:r})=>r.stickyHeader,style:{borderCollapse:"separate"}}]}))),Fp="table",yc=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTable"}),{className:o,component:i=Fp,padding:a="normal",size:s="medium",stickyHeader:c=!1,...l}=n,u={...n,component:i,padding:a,size:s,stickyHeader:c},d=xE(u),f=j.useMemo(()=>({padding:a,size:s,stickyHeader:c}),[a,s,c]);return h.jsx(vc.Provider,{value:f,children:h.jsx(SE,{as:i,role:i===Fp?null:"table",ref:t,className:_e(d.root,o),ownerState:u,...l})})});process.env.NODE_ENV!=="production"&&(yc.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,padding:b.oneOf(["checkbox","none","normal"]),size:b.oneOfType([b.oneOf(["medium","small"]),b.string]),stickyHeader:b.bool,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});const To=j.createContext();process.env.NODE_ENV!=="production"&&(To.displayName="Tablelvl2Context");function CE(e){return Ct("MuiTableBody",e)}Et("MuiTableBody",["root"]);const EE=e=>{const{classes:r}=e;return Lt({root:["root"]},CE,r)},kE=ut("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),DE={variant:"body"},Yp="tbody",ga=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableBody"}),{className:o,component:i=Yp,...a}=n,s={...n,component:i},c=EE(s);return h.jsx(To.Provider,{value:DE,children:h.jsx(kE,{className:_e(c.root,o),as:i,ref:t,role:i===Yp?null:"rowgroup",ownerState:s,...a})})});process.env.NODE_ENV!=="production"&&(ga.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function TE(e){return Ct("MuiTableCell",e)}const OE=Et("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ME=e=>{const{classes:r,variant:t,align:n,padding:o,size:i,stickyHeader:a}=e,s={root:["root",t,a&&"stickyHeader",n!=="inherit"&&`align${Ke(n)}`,o!=="normal"&&`padding${Ke(o)}`,`size${Ke(i)}`]};return Lt(s,TE,r)},PE=ut("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],r[`size${Ke(t.size)}`],t.padding!=="normal"&&r[`padding${Ke(t.padding)}`],t.align!=="inherit"&&r[`align${Ke(t.align)}`],t.stickyHeader&&r.stickyHeader]}})(cr(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
291
- ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${OE.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:r})=>r.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),qe=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:s,scope:c,size:l,sortDirection:u,variant:d,...f}=n,m=j.useContext(vc),g=j.useContext(To),p=g&&g.variant==="head";let y;a?y=a:y=p?"th":"td";let S=c;y==="td"?S=void 0:!S&&p&&(S="col");const C=d||g&&g.variant,k={...n,align:o,component:y,padding:s||(m&&m.padding?m.padding:"normal"),size:l||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:C==="head"&&m&&m.stickyHeader,variant:C},E=ME(k);let _=null;return u&&(_=u==="asc"?"ascending":"descending"),h.jsx(PE,{as:y,ref:t,className:_e(E.root,i),"aria-sort":_,scope:S,ownerState:k,...f})});process.env.NODE_ENV!=="production"&&(qe.propTypes={align:b.oneOf(["center","inherit","justify","left","right"]),children:b.node,classes:b.object,className:b.string,component:b.elementType,padding:b.oneOf(["checkbox","none","normal"]),scope:b.string,size:b.oneOfType([b.oneOf(["medium","small"]),b.string]),sortDirection:b.oneOf(["asc","desc",!1]),sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),variant:b.oneOfType([b.oneOf(["body","footer","head"]),b.string])});function AE(e){return Ct("MuiTableContainer",e)}Et("MuiTableContainer",["root"]);const IE=e=>{const{classes:r}=e;return Lt({root:["root"]},AE,r)},RE=ut("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Up=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableContainer"}),{className:o,component:i="div",...a}=n,s={...n,component:i},c=IE(s);return h.jsx(RE,{ref:t,as:i,className:_e(c.root,o),ownerState:s,...a})});process.env.NODE_ENV!=="production"&&(Up.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function NE(e){return Ct("MuiTableHead",e)}Et("MuiTableHead",["root"]);const $E=e=>{const{classes:r}=e;return Lt({root:["root"]},NE,r)},jE=ut("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),LE={variant:"head"},Hp="thead",bc=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableHead"}),{className:o,component:i=Hp,...a}=n,s={...n,component:i},c=$E(s);return h.jsx(To.Provider,{value:LE,children:h.jsx(jE,{as:i,className:_e(c.root,o),ref:t,role:i===Hp?null:"rowgroup",ownerState:s,...a})})});process.env.NODE_ENV!=="production"&&(bc.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function zE(e){return Ct("MuiTableRow",e)}const Wp=Et("MuiTableRow",["root","selected","hover","head","footer"]),BE=e=>{const{classes:r,selected:t,hover:n,head:o,footer:i}=e;return Lt({root:["root",t&&"selected",n&&"hover",o&&"head",i&&"footer"]},zE,r)},VE=ut("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.head&&r.head,t.footer&&r.footer]}})(cr(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Wp.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Wp.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Zp="tr",an=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiTableRow"}),{className:o,component:i=Zp,hover:a=!1,selected:s=!1,...c}=n,l=j.useContext(To),u={...n,component:i,hover:a,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=BE(u);return h.jsx(VE,{as:i,ref:t,className:_e(d.root,o),role:i===Zp?null:"row",ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(an.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,hover:b.bool,selected:b.bool,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function FE(e){const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return r}}function qp(e,r,t,n){const o=e[r];if(o==null||!Number.isInteger(o)){const i=FE(o);return new RangeError(`Invalid ${n} \`${r}\` of type \`${i}\` supplied to \`${t}\`, expected \`integer\`.`)}return null}function Kp(e,r,t,n){return e[r]===void 0?null:qp(e,r,t,n)}function wc(){return null}Kp.isRequired=qp,wc.isRequired=wc;const YE=process.env.NODE_ENV==="production"?wc:Kp;function UE(e){return Ct("MuiPaper",e)}Et("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const HE=e=>{const{square:r,elevation:t,variant:n,classes:o}=e,i={root:["root",n,!r&&"rounded",n==="elevation"&&`elevation${t}`]};return Lt(i,UE,o)},WE=ut("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[t.variant],!t.square&&r.rounded,t.variant==="elevation"&&r[`elevation${t.elevation}`]]}})(cr(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:r})=>!r.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Gp=j.forwardRef(function(r,t){const n=Rt({props:r,name:"MuiPaper"}),o=au(),{className:i,component:a="div",elevation:s=1,square:c=!1,variant:l="elevation",...u}=n,d={...n,component:a,elevation:s,square:c,variant:l},f=HE(d);return process.env.NODE_ENV!=="production"&&o.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
292
- `)),h.jsx(WE,{as:a,ownerState:d,className:_e(f.root,i),ref:t,...u,style:{...l==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ii("#fff",Ga(s))}, ${ii("#fff",Ga(s))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(Gp.propTypes={children:b.node,classes:b.object,className:b.string,component:b.elementType,elevation:pa(YE,e=>{const{elevation:r,variant:t}=e;return r>0&&t==="outlined"?new Error(`MUI: Combining \`elevation={${r}}\` with \`variant="${t}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:b.bool,style:b.object,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),variant:b.oneOfType([b.oneOf(["elevation","outlined"]),b.string])});function _c(e,r,t,n,o,i){return{name:e,calories:r,fat:t,carbs:n,history:[{date:"2020-01-05",customerId:"Ford Lobo 2021",amount:"Finalizada",level:"Muy interesado"},{date:"2020-01-02",customerId:"Ford Lobo 2020",amount:"Finalizada con Venta",level:"Venta definitiva"}]}}function ZE(e){const{row:r}=e,[t,n]=j.useState(!1);return h.jsxs(j.Fragment,{children:[h.jsxs(an,{sx:{"& > *":{borderBottom:"unset"}},children:[h.jsx(qe,{children:h.jsx(Vp,{"aria-label":"expand row",size:"small",onClick:()=>n(!t),children:t?h.jsx(OC,{}):h.jsx(TC,{})})}),h.jsx(qe,{component:"th",scope:"row",children:r.name}),h.jsx(qe,{align:"right",children:r.calories}),h.jsx(qe,{align:"right",children:r.fat}),h.jsx(qe,{align:"right",children:r.carbs})]}),h.jsx(an,{children:h.jsx(qe,{style:{padding:0},colSpan:6,children:h.jsx(ha,{in:t,timeout:"auto",unmountOnExit:!0,children:h.jsx(sc,{sx:{mt:3,mb:3},children:h.jsx(sc,{sx:{px:3},children:h.jsxs(yc,{size:"medium","aria-label":"purchases",children:[h.jsx(bc,{children:h.jsxs(an,{sx:{backgroundColor:"#d8e9fd"},children:[h.jsx(qe,{children:"Fecha"}),h.jsx(qe,{children:"Articulo"}),h.jsx(qe,{align:"right",children:"Estatus"}),h.jsx(qe,{align:"right",children:"Nivel interes"})]})}),h.jsx(ga,{children:r.history.map(o=>h.jsxs(an,{children:[h.jsx(qe,{component:"th",scope:"row",children:o.date}),h.jsx(qe,{children:o.customerId}),h.jsx(qe,{align:"right",children:o.amount}),h.jsx(qe,{align:"right",children:o.level})]},o.date))})]})})})})})})]})}function qE(e){const{row:r}=e;return h.jsx(j.Fragment,{children:h.jsxs(an,{sx:{"& > *":{borderBottom:"unset"}},children:[h.jsx(qe,{component:"th",scope:"row",children:r.name}),h.jsx(qe,{align:"right",children:r.calories}),h.jsx(qe,{align:"right",children:r.fat}),h.jsx(qe,{align:"right",children:r.carbs})]})})}const Qp=[_c("Vehículos Nuevos",9,7,2),_c("Vehículos Seminuevos",3,2,3),_c("Pruebas de Manejo",5,7,3)];function Xp(e){const{name:r,collapses:t}=e;return h.jsx(Up,{component:Gp,sx:{boxShadow:t?"auto":"none",border:t?"auto":"none"},children:h.jsxs(yc,{"aria-label":"collapsible table",children:[h.jsx(bc,{children:h.jsxs(an,{children:[t&&h.jsx(qe,{}),h.jsx(qe,{children:"Dessert (100g serving)"}),h.jsx(qe,{align:"right",children:"#Solicitudes"}),h.jsx(qe,{align:"right",children:"Finalizadas"}),h.jsx(qe,{align:"right",children:"En proceso"})]})}),t?h.jsx(ga,{children:Qp.map(n=>h.jsx(ZE,{row:n},n.name))}):h.jsx(ga,{children:Qp.map(n=>h.jsx(qE,{row:n},n.name))})]})})}function KE({open:e,onClose:r,customer:t,fields:n=[],vehicles:o=[],vehiclesTitle:i="Vehículos",header:a}){if(!t)return null;const s=a?.title??(l=>l?.Nombre||l?.name||"Sin título"),c=a?.infoItems??[];return h.jsx($.Dialog,{open:e,onClose:r,maxWidth:"lg",fullWidth:!0,PaperProps:{sx:{height:"90vh",overflow:"hidden",display:"flex",flexDirection:"column"}},children:h.jsxs($.Box,{sx:{display:"flex",flexDirection:"row",height:"100vh"},children:[h.jsxs($.Box,{sx:{maxWidth:392,width:"100%",backgroundColor:"#40404024",display:"flex",flexDirection:"column",height:"100%"},children:[h.jsxs($.Box,{children:[h.jsx($.Stack,{direction:"row",spacing:2,alignItems:"center",mb:2,sx:{px:2.5,pt:2.5},children:h.jsxs($.Box,{display:"flex",flexDirection:"column",gap:1,children:[h.jsx($.Typography,{fontWeight:700,children:s(t)}),c.map((l,u)=>h.jsxs($.Box,{sx:{display:"flex",gap:1.2,alignItems:"center",cursor:l.onClick?"pointer":"default"},onClick:l.onClick?()=>l.onClick(t):void 0,children:[l.icon,h.jsx($.Typography,{variant:"body2",sx:{color:l.inLink?"#336BE1":"#070C10"},style:{},children:l.value(t)})]},u))]})}),a?.actions?.length?h.jsx($.Stack,{direction:"row",spacing:1,mb:2,sx:{px:2.5},children:a.actions.map((l,u)=>h.jsxs($.Button,{variant:"outlined",sx:{color:"#336BE1",borderColor:"#336BE1",gap:1,textTransform:"none"},onClick:()=>l.onClick(t),children:[l.icon,l.label]},u))}):null,h.jsx($.Stack,{mb:2,sx:{px:2.5,pt:0,gap:2},children:n.map((l,u)=>h.jsxs($.Box,{display:"flex",justifyContent:"space-between",children:[h.jsx($.Box,{sx:{width:"50%"},children:h.jsx($.Typography,{variant:"body2",color:"text.secondary",sx:{color:"#5C6372"},children:l.label})}),h.jsxs($.Box,{sx:{width:"50%",display:"flex",alignItems:"center",gap:1},children:[h.jsx("div",{children:l?.avatar?l.avatar(t):null}),h.jsx($.Typography,{variant:"body2",color:"textPrimary",children:l?.value(t)})]})]},u))}),h.jsx($.Divider,{sx:{my:2}})]}),h.jsxs($.Box,{sx:{px:2.5,pt:0,gap:2,flex:1,overflowY:"auto",display:"flex",flexDirection:"column"},children:[h.jsx($.Stack,{children:h.jsx($.Typography,{variant:"body1",sx:{color:"#5C6372"},children:"Actividad"})}),h.jsxs($.Stack,{spacing:1.25,children:[h.jsx($.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Crear cliente"}),h.jsxs($.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx($.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs($.Stack,{spacing:0,children:[h.jsx($.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx($.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]})]})]}),h.jsx($.Divider,{}),h.jsxs($.Stack,{spacing:1.25,children:[h.jsx($.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Mensaje enviado"}),h.jsxs($.Typography,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.5},children:["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar pharetra augue. Suspendisse nulla...",h.jsxs($.Typography,{component:"span",variant:"body2",sx:{color:"#336BE1",cursor:"default"},children:[" ","Ver más"]})]}),h.jsxs($.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx($.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs($.Stack,{spacing:0,children:[h.jsx($.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx($.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]}),h.jsx($.Box,{sx:{flex:1}}),h.jsx($.IconButton,{size:"small",sx:{opacity:.7},children:h.jsx(kp,{fontSize:"small"})})]})]}),h.jsx($.Divider,{}),h.jsxs($.Stack,{spacing:1.25,children:[h.jsx($.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Mensaje enviado"}),h.jsxs($.Typography,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.5},children:["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar pharetra augue. Suspendisse nulla...",h.jsxs($.Typography,{component:"span",variant:"body2",sx:{color:"#336BE1",cursor:"default"},children:[" ","Ver más"]})]}),h.jsxs($.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx($.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs($.Stack,{spacing:0,children:[h.jsx($.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx($.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]})]})]}),h.jsxs($.Stack,{spacing:1.25,children:[h.jsx($.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Mensaje enviado"}),h.jsxs($.Typography,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.5},children:["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar pharetra augue. Suspendisse nulla...",h.jsxs($.Typography,{component:"span",variant:"body2",sx:{color:"#336BE1",cursor:"default"},children:[" ","Ver más"]})]}),h.jsxs($.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx($.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs($.Stack,{spacing:0,children:[h.jsx($.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx($.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]}),h.jsx($.Box,{sx:{flex:1}}),h.jsx($.IconButton,{size:"small",sx:{opacity:.7},children:h.jsx(kp,{fontSize:"small"})})]})]})]})]}),h.jsx($.Box,{sx:{width:"100%",overflowY:"auto"},children:h.jsxs($.Box,{sx:{mt:3},children:[h.jsxs($.Box,{sx:{mt:3,display:"flex",flexDirection:"column",gap:4,padding:"0 20px 0 20px"},children:[h.jsx($.Typography,{variant:"h6",children:"Solicitudes:"}),h.jsx(Xp,{collapses:!0})]}),h.jsxs($.Box,{sx:{mt:3,display:"flex",flexDirection:"column",gap:4},children:[h.jsx($.Typography,{variant:"h6",sx:{paddingLeft:"20px"},children:"Vehículo:"}),h.jsx(Xp,{collapses:!1})]})]})})]})})}function Jp(e,r,t){const{fields:n,order:o=["nombreCliente","email","acciones"],header:i={},cells:a={},hide:s={},actions:c}=r,l=c??{},u=l.show??{},d=l.handlers??{},f=l.accessors??{},m=l.icons??{},g=l.className??"d-flex flex-row gap-2 align-items-center ",p=l.tooltip??{},y=m.view??h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",style:{fill:"#070c10"},children:[h.jsx("path",{d:"M18.6,6.3c-3.9-3-9.3-3-13.2,0-1.9,1.5-3.2,3.5-3.9,5.7.7,2.3,2,4.3,3.9,5.7,1.9,1.5,4.2,2.3,6.6,2.3,2.4,0,4.7-.8,6.6-2.3,1.9-1.5,3.2-3.5,3.9-5.7-.7-2.3-2-4.3-3.9-5.7ZM17.2,12.1c0,2.9-2.5,5.3-5.4,5.2-2.9,0-5.3-2.5-5.2-5.4,0-2.9,2.5-5.3,5.4-5.2,2.9,0,5.3,2.4,5.2,5.3,0,0,0,0,0,0Z"}),h.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),S={nombreCliente:{key:"nombreCliente",header:i.nombreCliente??"Cliente",accessor:L=>L[n.nombreCliente],cell:a.nombreCliente,width:310},email:{key:"email",header:i.email??"Correo",accessor:L=>L[n.email],cell:a.email??(L=>{const K=String(L[n.email]??"");return K?h.jsx("a",{href:`mailto:${K}`,children:K}):h.jsx("span",{className:"text-muted",children:"—"})}),width:250},acciones:s.acciones?void 0:{key:"acciones",header:"",cell:a.acciones??(L=>{const K=ac(u.whatsapp,L,!0),v=ac(u.email,L,!0),I=ac(u.view,L,!0),A=f.phone?.(L),U=f.email?.(L),H=()=>{if(d.onWhatsApp)return d.onWhatsApp(L);if(!A)return;const se=f.countryCode??"52",V=kC(String(A));typeof window<"u"&&window.open(`https://wa.me/${se}${V}`,"_blank")},ee=()=>{if(d.onEmail)return d.onEmail(L);U&&typeof window<"u"&&(window.location.href=`mailto:${U}`)},re=()=>{if(d.onView)return d.onView(L);t?.(L)};return h.jsxs("div",{className:g,children:[K&&h.jsx("button",{type:"button",className:"btn p-0 border-0 bg-transparent",title:p.whatsapp??"WhatsApp",onClick:H,style:{width:24,height:24},children:h.jsx("img",{src:SC,alt:"WhatsApp"})}),v&&h.jsx("button",{type:"button",className:"btn p-0 border-0 bg-transparent",title:p.email??"Email",onClick:ee,style:{width:24,height:24},children:h.jsx("img",{src:CC,alt:"Email"})}),I&&h.jsx("button",{type:"button",className:"btn p-0 border-0 bg-transparent",title:p.view??"Ver detalle",onClick:re,style:{width:24,height:24},children:y})]})}),width:120}},C=Object.values(S).filter(L=>!!L),k=(e??[]).filter(L=>!!L?.key),E=new Map;for(const L of C)E.set(String(L.key),L);for(const L of k)E.set(String(L.key),L);const _=[...C.map(L=>String(L.key)),...k.map(L=>String(L.key))],O=Array.from(new Set(o.map(L=>String(L)).filter(L=>E.has(L)))),N=_.filter(L=>!O.includes(L)),q=[...O,...N],Z="acciones";if(E.has(Z)){const L=q.filter(K=>K!==Z);q.splice(0,q.length,...L,Z)}return q.map(L=>E.get(L))}function GE(e){const{rows:r,columns:t,clientSort:n=!0,defaultSort:o,minWidth:i=1100,rowKey:a=DC,defaults:s,detailConfig:c}=e,[l,u]=x.useState(o??null),[d,f]=x.useState({open:!1,customer:null}),[m,g]=x.useState([]),p=k=>{f({open:!0,customer:k});const E=c?.vehiclesProvider?.(k)??[];g(Array.isArray(E)?E:[])},y=()=>f({open:!1,customer:null}),S=x.useMemo(()=>s?Jp(t??[],s,p):Jp(t??[],{fields:{},order:[]},p),[t,s]),C=x.useMemo(()=>{if(!n||!l)return r;const k=S.find(_=>_.key===l.key);if(!k)return r;const E=[...r];return E.sort((_,O)=>{const N=ic(k,_,0),q=ic(k,O,0),Z=EC(N,q);return l.direction==="asc"?Z:-Z}),E},[r,S,l,n]);return h.jsxs("div",{className:"",children:[h.jsx("h3",{children:"Ejemplo Componente reutilizable"}),h.jsx("div",{className:"table-clientes back-white rounded-3 shadow-main mt-4 mb-4 ",children:h.jsx("div",{className:"table-responsive",children:h.jsxs("table",{className:"table table-hover align-middle mb-0",style:{minWidth:i},children:[h.jsx("thead",{children:h.jsx("tr",{children:S.map(k=>h.jsx("th",{style:{fontWeight:600,width:k.width},children:k.header},k.key))})}),h.jsx("tbody",{children:C.map((k,E)=>h.jsx("tr",{children:S.map((_,O)=>{const N=_.Component?h.jsx(_.Component,{row:k,index:E}):_.cell?_.cell(k,E):(()=>{const q=ic(_,k,E);return q==null||q===""?"":String(q)})();return h.jsx("td",{children:N},`${String(_.key)}-${O}`)})},a(k,E)))})]})})}),h.jsx(KE,{open:d.open,onClose:y,customer:d.customer,fields:c?.dynamicFields,header:c?.header})]})}vt.ApiProvider=v2,vt.Clientes=GE,vt.CustomSnackbar=Ep,vt.MyCalendar=xC,vt.useEventRepository=Is,Object.defineProperty(vt,Symbol.toStringTag,{value:"Module"})}));
174
+ `)}m.write("payload.value = newResult;"),m.write("return payload;");const S=m.compile();return(T,D)=>S(f,T,D)};let a;const i=Aa,s=!Md.jitless,l=s&&S2.value,u=n.catchall;let d;e._zod.parse=(f,m)=>{d??(d=r.value);const g=f.value;return i(g)?s&&l&&m?.async===!1&&m.jitless!==!0?(a||(a=o(n.shape)),f=a(f,m),u?qd([],g,f,m,d,e):f):t(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function Kd(e,n,t,r){for(const a of e)if(a.issues.length===0)return n.value=a.value,n;const o=e.filter(a=>!vn(a));return o.length===1?(n.value=o[0].value,o[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:t,errors:e.map(a=>a.issues.map(i=>Fr(i,r,Vr())))}),n)}const pw=V("$ZodUnion",(e,n)=>{Ge.init(e,n),Ve(e._zod,"optin",()=>n.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ve(e._zod,"optout",()=>n.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ve(e._zod,"values",()=>{if(n.options.every(o=>o._zod.values))return new Set(n.options.flatMap(o=>Array.from(o._zod.values)))}),Ve(e._zod,"pattern",()=>{if(n.options.every(o=>o._zod.pattern)){const o=n.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>ms(a.source)).join("|")})$`)}});const t=n.options.length===1,r=n.options[0]._zod.run;e._zod.parse=(o,a)=>{if(t)return r(o,a);let i=!1;const s=[];for(const c of n.options){const l=c._zod.run({value:o.value,issues:[]},a);if(l instanceof Promise)s.push(l),i=!0;else{if(l.issues.length===0)return l;s.push(l)}}return i?Promise.all(s).then(c=>Kd(c,o,e,a)):Kd(s,o,e,a)}}),hw=V("$ZodIntersection",(e,n)=>{Ge.init(e,n),e._zod.parse=(t,r)=>{const o=t.value,a=n.left._zod.run({value:o,issues:[]},r),i=n.right._zod.run({value:o,issues:[]},r);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(([c,l])=>Gd(t,c,l)):Gd(t,a,i)}});function bs(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(oo(e)&&oo(n)){const t=Object.keys(n),r=Object.keys(e).filter(a=>t.indexOf(a)!==-1),o={...e,...n};for(const a of r){const i=bs(e[a],n[a]);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};o[a]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const t=[];for(let r=0;r<e.length;r++){const o=e[r],a=n[r],i=bs(o,a);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};t.push(i.data)}return{valid:!0,data:t}}return{valid:!1,mergeErrorPath:[]}}function Gd(e,n,t){if(n.issues.length&&e.issues.push(...n.issues),t.issues.length&&e.issues.push(...t.issues),vn(e))return e;const r=bs(n.value,t.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const mw=V("$ZodEnum",(e,n)=>{Ge.init(e,n);const t=w2(n.entries),r=new Set(t);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.filter(o=>C2.has(typeof o)).map(o=>typeof o=="string"?gn(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t,input:i,inst:e}),o}}),gw=V("$ZodLiteral",(e,n)=>{if(Ge.init(e,n),n.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(n.values),e._zod.pattern=new RegExp(`^(${n.values.map(t=>typeof t=="string"?gn(t):t?gn(t.toString()):String(t)).join("|")})$`),e._zod.parse=(t,r)=>{const o=t.value;return e._zod.values.has(o)||t.issues.push({code:"invalid_value",values:n.values,input:o,inst:e}),t}}),vw=V("$ZodTransform",(e,n)=>{Ge.init(e,n),e._zod.parse=(t,r)=>{if(r.direction==="backward")throw new Od(e.constructor.name);const o=n.transform(t.value,t);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(t.value=i,t));if(o instanceof Promise)throw new hn;return t.value=o,t}});function Qd(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}const yw=V("$ZodOptional",(e,n)=>{Ge.init(e,n),e._zod.optin="optional",e._zod.optout="optional",Ve(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),Ve(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${ms(t.source)})?$`):void 0}),e._zod.parse=(t,r)=>{if(n.innerType._zod.optin==="optional"){const o=n.innerType._zod.run(t,r);return o instanceof Promise?o.then(a=>Qd(a,t.value)):Qd(o,t.value)}return t.value===void 0?t:n.innerType._zod.run(t,r)}}),bw=V("$ZodNullable",(e,n)=>{Ge.init(e,n),Ve(e._zod,"optin",()=>n.innerType._zod.optin),Ve(e._zod,"optout",()=>n.innerType._zod.optout),Ve(e._zod,"pattern",()=>{const t=n.innerType._zod.pattern;return t?new RegExp(`^(${ms(t.source)}|null)$`):void 0}),Ve(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(t,r)=>t.value===null?t:n.innerType._zod.run(t,r)}),ww=V("$ZodDefault",(e,n)=>{Ge.init(e,n),e._zod.optin="optional",Ve(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>{if(r.direction==="backward")return n.innerType._zod.run(t,r);if(t.value===void 0)return t.value=n.defaultValue,t;const o=n.innerType._zod.run(t,r);return o instanceof Promise?o.then(a=>Jd(a,n)):Jd(o,n)}});function Jd(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const _w=V("$ZodPrefault",(e,n)=>{Ge.init(e,n),e._zod.optin="optional",Ve(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>(r.direction==="backward"||t.value===void 0&&(t.value=n.defaultValue),n.innerType._zod.run(t,r))}),xw=V("$ZodNonOptional",(e,n)=>{Ge.init(e,n),Ve(e._zod,"values",()=>{const t=n.innerType._zod.values;return t?new Set([...t].filter(r=>r!==void 0)):void 0}),e._zod.parse=(t,r)=>{const o=n.innerType._zod.run(t,r);return o instanceof Promise?o.then(a=>Xd(a,e)):Xd(o,e)}});function Xd(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const Sw=V("$ZodCatch",(e,n)=>{Ge.init(e,n),Ve(e._zod,"optin",()=>n.innerType._zod.optin),Ve(e._zod,"optout",()=>n.innerType._zod.optout),Ve(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(t,r)=>{if(r.direction==="backward")return n.innerType._zod.run(t,r);const o=n.innerType._zod.run(t,r);return o instanceof Promise?o.then(a=>(t.value=a.value,a.issues.length&&(t.value=n.catchValue({...t,error:{issues:a.issues.map(i=>Fr(i,r,Vr()))},input:t.value}),t.issues=[]),t)):(t.value=o.value,o.issues.length&&(t.value=n.catchValue({...t,error:{issues:o.issues.map(a=>Fr(a,r,Vr()))},input:t.value}),t.issues=[]),t)}}),Cw=V("$ZodPipe",(e,n)=>{Ge.init(e,n),Ve(e._zod,"values",()=>n.in._zod.values),Ve(e._zod,"optin",()=>n.in._zod.optin),Ve(e._zod,"optout",()=>n.out._zod.optout),Ve(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(t,r)=>{if(r.direction==="backward"){const a=n.out._zod.run(t,r);return a instanceof Promise?a.then(i=>Ba(i,n.in,r)):Ba(a,n.in,r)}const o=n.in._zod.run(t,r);return o instanceof Promise?o.then(a=>Ba(a,n.out,r)):Ba(o,n.out,r)}});function Ba(e,n,t){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},t)}const kw=V("$ZodReadonly",(e,n)=>{Ge.init(e,n),Ve(e._zod,"propValues",()=>n.innerType._zod.propValues),Ve(e._zod,"values",()=>n.innerType._zod.values),Ve(e._zod,"optin",()=>n.innerType._zod.optin),Ve(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(t,r)=>{if(r.direction==="backward")return n.innerType._zod.run(t,r);const o=n.innerType._zod.run(t,r);return o instanceof Promise?o.then(ef):ef(o)}});function ef(e){return e.value=Object.freeze(e.value),e}const Dw=V("$ZodCustom",(e,n)=>{xt.init(e,n),Ge.init(e,n),e._zod.parse=(t,r)=>t,e._zod.check=t=>{const r=t.value,o=n.fn(r);if(o instanceof Promise)return o.then(a=>tf(a,t,r,e));tf(o,t,r,e)}});function tf(e,n,t,r){if(!e){const o={code:"custom",input:t,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),n.issues.push(ao(o))}}class Ew{constructor(){this._map=new Map,this._idmap=new Map}add(n,...t){const r=t[0];if(this._map.set(n,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,n)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(n){const t=this._map.get(n);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(n),this}get(n){const t=n._zod.parent;if(t){const r={...this.get(t)??{}};delete r.id;const o={...r,...this._map.get(n)};return Object.keys(o).length?o:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function Tw(){return new Ew}const Va=Tw();function Ow(e,n){return new e({type:"string",...ue(n)})}function Mw(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ue(n)})}function rf(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ue(n)})}function Aw(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ue(n)})}function Pw(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ue(n)})}function Iw(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ue(n)})}function Nw(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ue(n)})}function Rw(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ue(n)})}function $w(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ue(n)})}function jw(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ue(n)})}function Lw(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ue(n)})}function zw(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ue(n)})}function Bw(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ue(n)})}function Vw(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ue(n)})}function Fw(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ue(n)})}function Yw(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ue(n)})}function Hw(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ue(n)})}function Uw(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ue(n)})}function Ww(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ue(n)})}function Zw(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ue(n)})}function qw(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ue(n)})}function Kw(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ue(n)})}function Gw(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ue(n)})}function Qw(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ue(n)})}function Jw(e,n){return new e({type:"string",format:"date",check:"string_format",...ue(n)})}function Xw(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...ue(n)})}function e_(e,n){return new e({type:"string",format:"duration",check:"string_format",...ue(n)})}function t_(e,n){return new e({type:"number",checks:[],...ue(n)})}function r_(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ue(n)})}function n_(e,n){return new e({type:"boolean",...ue(n)})}function o_(e){return new e({type:"unknown"})}function a_(e,n){return new e({type:"never",...ue(n)})}function nf(e,n){return new Fd({check:"less_than",...ue(n),value:e,inclusive:!1})}function ws(e,n){return new Fd({check:"less_than",...ue(n),value:e,inclusive:!0})}function of(e,n){return new Yd({check:"greater_than",...ue(n),value:e,inclusive:!1})}function _s(e,n){return new Yd({check:"greater_than",...ue(n),value:e,inclusive:!0})}function af(e,n){return new _1({check:"multiple_of",...ue(n),value:e})}function sf(e,n){return new S1({check:"max_length",...ue(n),maximum:e})}function Fa(e,n){return new C1({check:"min_length",...ue(n),minimum:e})}function cf(e,n){return new k1({check:"length_equals",...ue(n),length:e})}function i_(e,n){return new D1({check:"string_format",format:"regex",...ue(n),pattern:e})}function s_(e){return new E1({check:"string_format",format:"lowercase",...ue(e)})}function c_(e){return new T1({check:"string_format",format:"uppercase",...ue(e)})}function l_(e,n){return new O1({check:"string_format",format:"includes",...ue(n),includes:e})}function u_(e,n){return new M1({check:"string_format",format:"starts_with",...ue(n),prefix:e})}function d_(e,n){return new A1({check:"string_format",format:"ends_with",...ue(n),suffix:e})}function io(e){return new P1({check:"overwrite",tx:e})}function f_(e){return io(n=>n.normalize(e))}function p_(){return io(e=>e.trim())}function h_(){return io(e=>e.toLowerCase())}function m_(){return io(e=>e.toUpperCase())}function g_(e,n,t){return new e({type:"array",element:n,...ue(t)})}function v_(e,n,t){return new e({type:"custom",check:"custom",fn:n,...ue(t)})}function y_(e){const n=b_(t=>(t.addIssue=r=>{if(typeof r=="string")t.issues.push(ao(r,t.value,n._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=t.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),t.issues.push(ao(o))}},e(t.value,t)));return n}function b_(e,n){const t=new xt({check:"custom",...ue(n)});return t._zod.check=e,t}function lf(e,n){try{var t=e()}catch(r){return n(r)}return t&&t.then?t.then(void 0,n):t}function w_(e,n){for(var t={};e.length;){var r=e[0],o=r.code,a=r.message,i=r.path.join(".");if(!t[i])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];t[i]={message:s.message,type:s.code}}else t[i]={message:a,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),n){var c=t[i].types,l=c&&c[r.code];t[i]=ss(i,n,t,o,l?[].concat(l,r.message):r.message)}e.shift()}return t}function __(e,n){for(var t={};e.length;){var r=e[0],o=r.code,a=r.message,i=r.path.join(".");if(!t[i])if(r.code==="invalid_union"&&r.errors.length>0){var s=r.errors[0][0];t[i]={message:s.message,type:s.code}}else t[i]={message:a,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(u){return u.forEach(function(d){return e.push(d)})}),n){var c=t[i].types,l=c&&c[r.code];t[i]=ss(i,n,t,o,l?[].concat(l,r.message):r.message)}e.shift()}return t}function x_(e,n,t){if(t===void 0&&(t={}),(function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def})(e))return function(r,o,a){try{return Promise.resolve(lf(function(){return Promise.resolve(e[t.mode==="sync"?"parse":"parseAsync"](r,n)).then(function(i){return a.shouldUseNativeValidation&&ds({},a),{errors:{},values:t.raw?Object.assign({},r):i}})},function(i){if((function(s){return Array.isArray(s?.issues)})(i))return{values:{},errors:Ed(w_(i.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw i}))}catch(i){return Promise.reject(i)}};if((function(r){return"_zod"in r&&typeof r._zod=="object"})(e))return function(r,o,a){try{return Promise.resolve(lf(function(){return Promise.resolve((t.mode==="sync"?$2:j2)(e,r,n)).then(function(i){return a.shouldUseNativeValidation&&ds({},a),{errors:{},values:t.raw?Object.assign({},r):i}})},function(i){if((function(s){return s instanceof vs})(i))return{values:{},errors:Ed(__(i.issues,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw i}))}catch(i){return Promise.reject(i)}};throw new Error("Invalid input: not a Zod schema")}const S_=V("ZodISODateTime",(e,n)=>{W1.init(e,n),Ze.init(e,n)});function C_(e){return Qw(S_,e)}const k_=V("ZodISODate",(e,n)=>{Z1.init(e,n),Ze.init(e,n)});function D_(e){return Jw(k_,e)}const E_=V("ZodISOTime",(e,n)=>{q1.init(e,n),Ze.init(e,n)});function T_(e){return Xw(E_,e)}const O_=V("ZodISODuration",(e,n)=>{K1.init(e,n),Ze.init(e,n)});function M_(e){return e_(O_,e)}const $t=V("ZodError",(e,n)=>{vs.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>R2(e,t)},flatten:{value:t=>N2(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,fs,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,fs,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),A_=Na($t),P_=Ra($t),I_=$a($t),N_=ja($t),R_=B2($t),$_=V2($t),j_=F2($t),L_=Y2($t),z_=H2($t),B_=U2($t),V_=W2($t),F_=Z2($t),tt=V("ZodType",(e,n)=>(Ge.init(e,n),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...t)=>e.clone({...n,checks:[...n.checks??[],...t.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(t,r)=>Dr(e,t,r),e.brand=()=>e,e.register=((t,r)=>(t.add(e,r),e)),e.parse=(t,r)=>A_(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>I_(e,t,r),e.parseAsync=async(t,r)=>P_(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>N_(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>R_(e,t,r),e.decode=(t,r)=>$_(e,t,r),e.encodeAsync=async(t,r)=>j_(e,t,r),e.decodeAsync=async(t,r)=>L_(e,t,r),e.safeEncode=(t,r)=>z_(e,t,r),e.safeDecode=(t,r)=>B_(e,t,r),e.safeEncodeAsync=async(t,r)=>V_(e,t,r),e.safeDecodeAsync=async(t,r)=>F_(e,t,r),e.refine=(t,r)=>e.check(jx(t,r)),e.superRefine=t=>e.check(Lx(t)),e.overwrite=t=>e.check(io(t)),e.optional=()=>vf(e),e.nullable=()=>yf(e),e.nullish=()=>vf(yf(e)),e.nonoptional=t=>Mx(e,t),e.array=()=>px(e),e.or=t=>vx([e,t]),e.and=t=>bx(e,t),e.transform=t=>wf(e,Cx(t)),e.default=t=>Ex(e,t),e.prefault=t=>Ox(e,t),e.catch=t=>Px(e,t),e.pipe=t=>wf(e,t),e.readonly=()=>Rx(e),e.describe=t=>{const r=e.clone();return Va.add(r,{description:t}),r},Object.defineProperty(e,"description",{get(){return Va.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return Va.get(e);const r=e.clone();return Va.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),uf=V("_ZodString",(e,n)=>{ys.init(e,n),tt.init(e,n);const t=e._zod.bag;e.format=t.format??null,e.minLength=t.minimum??null,e.maxLength=t.maximum??null,e.regex=(...r)=>e.check(i_(...r)),e.includes=(...r)=>e.check(l_(...r)),e.startsWith=(...r)=>e.check(u_(...r)),e.endsWith=(...r)=>e.check(d_(...r)),e.min=(...r)=>e.check(Fa(...r)),e.max=(...r)=>e.check(sf(...r)),e.length=(...r)=>e.check(cf(...r)),e.nonempty=(...r)=>e.check(Fa(1,...r)),e.lowercase=r=>e.check(s_(r)),e.uppercase=r=>e.check(c_(r)),e.trim=()=>e.check(p_()),e.normalize=(...r)=>e.check(f_(...r)),e.toLowerCase=()=>e.check(h_()),e.toUpperCase=()=>e.check(m_())}),Y_=V("ZodString",(e,n)=>{ys.init(e,n),uf.init(e,n),e.email=t=>e.check(Mw(H_,t)),e.url=t=>e.check(Rw(U_,t)),e.jwt=t=>e.check(Gw(ix,t)),e.emoji=t=>e.check($w(W_,t)),e.guid=t=>e.check(rf(df,t)),e.uuid=t=>e.check(Aw(Ya,t)),e.uuidv4=t=>e.check(Pw(Ya,t)),e.uuidv6=t=>e.check(Iw(Ya,t)),e.uuidv7=t=>e.check(Nw(Ya,t)),e.nanoid=t=>e.check(jw(Z_,t)),e.guid=t=>e.check(rf(df,t)),e.cuid=t=>e.check(Lw(q_,t)),e.cuid2=t=>e.check(zw(K_,t)),e.ulid=t=>e.check(Bw(G_,t)),e.base64=t=>e.check(Zw(nx,t)),e.base64url=t=>e.check(qw(ox,t)),e.xid=t=>e.check(Vw(Q_,t)),e.ksuid=t=>e.check(Fw(J_,t)),e.ipv4=t=>e.check(Yw(X_,t)),e.ipv6=t=>e.check(Hw(ex,t)),e.cidrv4=t=>e.check(Uw(tx,t)),e.cidrv6=t=>e.check(Ww(rx,t)),e.e164=t=>e.check(Kw(ax,t)),e.datetime=t=>e.check(C_(t)),e.date=t=>e.check(D_(t)),e.time=t=>e.check(T_(t)),e.duration=t=>e.check(M_(t))});function Ut(e){return Ow(Y_,e)}const Ze=V("ZodStringFormat",(e,n)=>{We.init(e,n),uf.init(e,n)}),H_=V("ZodEmail",(e,n)=>{j1.init(e,n),Ze.init(e,n)}),df=V("ZodGUID",(e,n)=>{R1.init(e,n),Ze.init(e,n)}),Ya=V("ZodUUID",(e,n)=>{$1.init(e,n),Ze.init(e,n)}),U_=V("ZodURL",(e,n)=>{L1.init(e,n),Ze.init(e,n)}),W_=V("ZodEmoji",(e,n)=>{z1.init(e,n),Ze.init(e,n)}),Z_=V("ZodNanoID",(e,n)=>{B1.init(e,n),Ze.init(e,n)}),q_=V("ZodCUID",(e,n)=>{V1.init(e,n),Ze.init(e,n)}),K_=V("ZodCUID2",(e,n)=>{F1.init(e,n),Ze.init(e,n)}),G_=V("ZodULID",(e,n)=>{Y1.init(e,n),Ze.init(e,n)}),Q_=V("ZodXID",(e,n)=>{H1.init(e,n),Ze.init(e,n)}),J_=V("ZodKSUID",(e,n)=>{U1.init(e,n),Ze.init(e,n)}),X_=V("ZodIPv4",(e,n)=>{G1.init(e,n),Ze.init(e,n)}),ex=V("ZodIPv6",(e,n)=>{Q1.init(e,n),Ze.init(e,n)}),tx=V("ZodCIDRv4",(e,n)=>{J1.init(e,n),Ze.init(e,n)}),rx=V("ZodCIDRv6",(e,n)=>{X1.init(e,n),Ze.init(e,n)}),nx=V("ZodBase64",(e,n)=>{ew.init(e,n),Ze.init(e,n)}),ox=V("ZodBase64URL",(e,n)=>{rw.init(e,n),Ze.init(e,n)}),ax=V("ZodE164",(e,n)=>{nw.init(e,n),Ze.init(e,n)}),ix=V("ZodJWT",(e,n)=>{aw.init(e,n),Ze.init(e,n)}),ff=V("ZodNumber",(e,n)=>{Ud.init(e,n),tt.init(e,n),e.gt=(r,o)=>e.check(of(r,o)),e.gte=(r,o)=>e.check(_s(r,o)),e.min=(r,o)=>e.check(_s(r,o)),e.lt=(r,o)=>e.check(nf(r,o)),e.lte=(r,o)=>e.check(ws(r,o)),e.max=(r,o)=>e.check(ws(r,o)),e.int=r=>e.check(hf(r)),e.safe=r=>e.check(hf(r)),e.positive=r=>e.check(of(0,r)),e.nonnegative=r=>e.check(_s(0,r)),e.negative=r=>e.check(nf(0,r)),e.nonpositive=r=>e.check(ws(0,r)),e.multipleOf=(r,o)=>e.check(af(r,o)),e.step=(r,o)=>e.check(af(r,o)),e.finite=()=>e;const t=e._zod.bag;e.minValue=Math.max(t.minimum??Number.NEGATIVE_INFINITY,t.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(t.maximum??Number.POSITIVE_INFINITY,t.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(t.format??"").includes("int")||Number.isSafeInteger(t.multipleOf??.5),e.isFinite=!0,e.format=t.format??null});function pf(e){return t_(ff,e)}const sx=V("ZodNumberFormat",(e,n)=>{iw.init(e,n),ff.init(e,n)});function hf(e){return r_(sx,e)}const cx=V("ZodBoolean",(e,n)=>{sw.init(e,n),tt.init(e,n)});function xs(e){return n_(cx,e)}const lx=V("ZodUnknown",(e,n)=>{cw.init(e,n),tt.init(e,n)});function mf(){return o_(lx)}const ux=V("ZodNever",(e,n)=>{lw.init(e,n),tt.init(e,n)});function dx(e){return a_(ux,e)}const fx=V("ZodArray",(e,n)=>{uw.init(e,n),tt.init(e,n),e.element=n.element,e.min=(t,r)=>e.check(Fa(t,r)),e.nonempty=t=>e.check(Fa(1,t)),e.max=(t,r)=>e.check(sf(t,r)),e.length=(t,r)=>e.check(cf(t,r)),e.unwrap=()=>e.element});function px(e,n){return g_(fx,e,n)}const hx=V("ZodObject",(e,n)=>{fw.init(e,n),tt.init(e,n),Ve(e,"shape",()=>n.shape),e.keyof=()=>wx(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:mf()}),e.loose=()=>e.clone({...e._zod.def,catchall:mf()}),e.strict=()=>e.clone({...e._zod.def,catchall:dx()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>O2(e,t),e.safeExtend=t=>M2(e,t),e.merge=t=>A2(e,t),e.pick=t=>E2(e,t),e.omit=t=>T2(e,t),e.partial=(...t)=>P2(gf,e,t[0]),e.required=(...t)=>I2(bf,e,t[0])});function mx(e,n){const t={type:"object",get shape(){return kr(this,"shape",e?x2(e):{}),this.shape},...ue(n)};return new hx(t)}const gx=V("ZodUnion",(e,n)=>{pw.init(e,n),tt.init(e,n),e.options=n.options});function vx(e,n){return new gx({type:"union",options:e,...ue(n)})}const yx=V("ZodIntersection",(e,n)=>{hw.init(e,n),tt.init(e,n)});function bx(e,n){return new yx({type:"intersection",left:e,right:n})}const Ss=V("ZodEnum",(e,n)=>{mw.init(e,n),tt.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const t=new Set(Object.keys(n.entries));e.extract=(r,o)=>{const a={};for(const i of r)if(t.has(i))a[i]=n.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Ss({...n,checks:[],...ue(o),entries:a})},e.exclude=(r,o)=>{const a={...n.entries};for(const i of r)if(t.has(i))delete a[i];else throw new Error(`Key ${i} not found in enum`);return new Ss({...n,checks:[],...ue(o),entries:a})}});function wx(e,n){const t=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Ss({type:"enum",entries:t,...ue(n)})}const _x=V("ZodLiteral",(e,n)=>{gw.init(e,n),tt.init(e,n),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function xx(e,n){return new _x({type:"literal",values:Array.isArray(e)?e:[e],...ue(n)})}const Sx=V("ZodTransform",(e,n)=>{vw.init(e,n),tt.init(e,n),e._zod.parse=(t,r)=>{if(r.direction==="backward")throw new Od(e.constructor.name);t.addIssue=a=>{if(typeof a=="string")t.issues.push(ao(a,t.value,n));else{const i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=t.value),i.inst??(i.inst=e),t.issues.push(ao(i))}};const o=n.transform(t.value,t);return o instanceof Promise?o.then(a=>(t.value=a,t)):(t.value=o,t)}});function Cx(e){return new Sx({type:"transform",transform:e})}const gf=V("ZodOptional",(e,n)=>{yw.init(e,n),tt.init(e,n),e.unwrap=()=>e._zod.def.innerType});function vf(e){return new gf({type:"optional",innerType:e})}const kx=V("ZodNullable",(e,n)=>{bw.init(e,n),tt.init(e,n),e.unwrap=()=>e._zod.def.innerType});function yf(e){return new kx({type:"nullable",innerType:e})}const Dx=V("ZodDefault",(e,n)=>{ww.init(e,n),tt.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ex(e,n){return new Dx({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():Nd(n)}})}const Tx=V("ZodPrefault",(e,n)=>{_w.init(e,n),tt.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Ox(e,n){return new Tx({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():Nd(n)}})}const bf=V("ZodNonOptional",(e,n)=>{xw.init(e,n),tt.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Mx(e,n){return new bf({type:"nonoptional",innerType:e,...ue(n)})}const Ax=V("ZodCatch",(e,n)=>{Sw.init(e,n),tt.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Px(e,n){return new Ax({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const Ix=V("ZodPipe",(e,n)=>{Cw.init(e,n),tt.init(e,n),e.in=n.in,e.out=n.out});function wf(e,n){return new Ix({type:"pipe",in:e,out:n})}const Nx=V("ZodReadonly",(e,n)=>{kw.init(e,n),tt.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Rx(e){return new Nx({type:"readonly",innerType:e})}const $x=V("ZodCustom",(e,n)=>{Dw.init(e,n),tt.init(e,n)});function jx(e,n={}){return v_($x,e,n)}function Lx(e){return y_(e)}const _f=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,xf=(e,n)=>{if(!e||!n)return null;const t=e.split("-");if(t.length!==3)return null;const r=parseInt(t[0],10),o=parseInt(t[1],10)-1,a=parseInt(t[2],10),i=n.split(":");if(i.length!==2)return null;const s=parseInt(i[0],10),c=parseInt(i[1],10),l=new Date(r,o,a,s,c);return isNaN(l.getTime())||!y.isValid(l)?null:l},zx=mx({titulo:Ut().min(1,"El campo Título es requerido."),fechaInicio:Ut().min(1,"El campo fecha inicio es requerido."),horaInicio:Ut().min(1,"La hora de inicio es requerida.").regex(_f,{message:"Formato inválido"}),horaFin:Ut().min(1,"La hora fin es requerida.").regex(_f,{message:"Formato inválido"}),todoElDia:xs(),fechaFin:Ut().optional(),showEndDate:xs().optional(),horaInicio2:Ut().optional(),TodoElDia2:xs().optional(),client:Ut().optional().nullable(),repetir:Ut().optional(),link:Ut().url("Debe ser una URL válida ejemplo https://meet.google.com/").or(xx("")).optional(),descripcion:Ut().optional(),color:Ut().optional(),solID:pf().optional().nullable(),disID:pf().optional().nullable()}).refine(e=>e.showEndDate?e.fechaFin&&e.fechaFin.length>0:!0,{message:"La fecha de fin es requerida.",path:["fechaFin"]}).refine(e=>e.fechaFin!==void 0?!!e.fechaFin&&!!e.horaInicio2:!0,{message:"La hora de fin son requeridas.",path:["horaInicio2"]}).refine(e=>{if(e.todoElDia||!e.fechaInicio||!e.horaInicio||!e.fechaFin||!e.horaInicio2)return!0;const n=xf(e.fechaInicio,e.horaInicio),t=xf(e.fechaFin,e.horaFin);return!n||!t||!y.isValid(n)||!y.isValid(t)?!0:!(y.isBefore(t,n)&&!y.isSameDay(t,n)||y.isSameDay(n,t)&&y.isBefore(t,n))},{message:"",path:["horaFin"]}),Sf=e=>Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},Z.createElement("path",{fill:"#333",d:"M12 24C5.38 24 0 18.608 0 12S5.38 0 12 0s12 5.38 12 12-5.38 12-12 12"}),Z.createElement("path",{fill:"#fff",d:"M16.703 7.275c.52.52.541 1.345.046 1.84l-2.874 2.874 2.874 2.873c.495.496.475 1.32-.046 1.841-.52.52-1.344.54-1.84.045l-2.873-2.873-2.874 2.873c-.496.496-1.32.475-1.84-.045-.521-.521-.541-1.345-.046-1.84l2.874-2.874L7.23 9.116c-.495-.496-.475-1.32.045-1.84.521-.521 1.345-.542 1.841-.046l2.874 2.873 2.873-2.873c.496-.496 1.32-.476 1.84.045"})),Bx="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23404756'%20clip-path='url(%23a)'%3e%3cpath%20d='M7.288%2022.986h-.147a6.2%206.2%200%200%201-4.28-1.85c-2.404-2.404-2.478-6.24-.16-8.557L4.28%2011a1.228%201.228%200%201%201%201.739%201.739L4.44%2014.317c-1.356%201.357-1.282%203.626.16%205.068a3.82%203.82%200%200%200%202.602%201.135c.95%200%201.825-.32%202.479-.974l1.578-1.579a1.23%201.23%200%200%201%201.739%200c.48.481.48%201.258%200%201.739l-1.579%201.578c-1.097%201.098-2.552%201.69-4.13%201.69zM17.98%2012.998a1.23%201.23%200%200%201%200-1.739l1.578-1.578c.654-.654.986-1.53.974-2.466a3.78%203.78%200%200%200-1.134-2.602c-1.443-1.443-3.712-1.517-5.068-.16L12.75%206.03c-.48.48-1.258.48-1.739%200a1.23%201.23%200%200%201%200-1.739l1.579-1.578c2.318-2.319%206.153-2.245%208.558.16a6.23%206.23%200%200%201%201.85%204.279%205.84%205.84%200%200%201-1.69%204.279l-1.578%201.578c-.481.481-1.258.481-1.74%200z'/%3e%3cpath%20d='M14.172%208.11%208.07%2014.214a1.233%201.233%200%200%200%201.743%201.744l6.104-6.104a1.233%201.233%200%201%200-1.744-1.744'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Vx=e=>Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},Z.createElement("g",{clipPath:"url(#a)"},Z.createElement("path",{fill:"#404756",d:"M21.24 5.72a2.98 2.98 0 0 0-2.97-2.96l-5.19-.06c-1.06-.03-2.12.41-2.87 1.17l-7.49 7.49c-.66.66-1.03 1.54-1.03 2.47s.36 1.81 1.03 2.47l4.97 4.97a3.5 3.5 0 0 0 2.47 1.02c.89 0 1.79-.34 2.47-1.02l7.49-7.49c.76-.76 1.18-1.81 1.17-2.88l-.06-5.19zm-4.2 4.43c-.44.44-1.02.66-1.6.66a2.256 2.256 0 1 1 0-4.51 2.256 2.256 0 0 1 1.6 3.85"})),Z.createElement("defs",null,Z.createElement("clipPath",{id:"a"},Z.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),Fx="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23404756'%20d='M13.17%2013.68c2.06%200%204%20.8%205.46%202.27a7.7%207.7%200%200%201%202.26%205.47c0%20.79-.64%201.43-1.43%201.43l.01-.01H4.53c-.79%200-1.43-.64-1.43-1.43%200-4.27%203.46-7.73%207.72-7.73zM12%201.9c2.82%200%205.11%202.29%205.11%205.11s-2.29%205.11-5.11%205.11v-.01c-2.82%200-5.11-2.29-5.11-5.11S9.18%201.9%2012%201.9'/%3e%3c/svg%3e",Yx=e=>Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},Z.createElement("g",{fill:"#2571D6",clipPath:"url(#a)"},Z.createElement("path",{d:"M13.085 7.331a1.096 1.096 0 1 0-2.192 0v9.316a1.096 1.096 0 0 0 2.192 0z"}),Z.createElement("path",{d:"M16.647 10.893H7.33a1.096 1.096 0 1 0 0 2.192h9.316a1.096 1.096 0 0 0 0-2.192"}),Z.createElement("path",{d:"M12 24C5.38 24 0 18.608 0 12S5.38 0 12 0s12 5.38 12 12-5.38 12-12 12m0-21.808c-5.414 0-9.808 4.394-9.808 9.808S6.586 21.808 12 21.808s9.808-4.394 9.808-9.808S17.403 2.192 12 2.192"})),Z.createElement("defs",null,Z.createElement("clipPath",{id:"a"},Z.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),Hx="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23404756'%20clip-path='url(%23a)'%3e%3cpath%20d='M13.789%2017H3.21C2.542%2017%202%2017.56%202%2018.25s.542%201.25%201.211%201.25H13.79c.669%200%201.211-.56%201.211-1.25S14.458%2017%2013.789%2017M20.718%204H3.282C2.574%204%202%204.56%202%205.25S2.574%206.5%203.282%206.5h17.436C21.426%206.5%2022%205.94%2022%205.25S21.426%204%2020.718%204M20.718%2010.5H3.282C2.574%2010.5%202%2011.06%202%2011.75S2.574%2013%203.282%2013h17.436c.708%200%201.282-.56%201.282-1.25s-.574-1.25-1.282-1.25'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Ux=e=>Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},Z.createElement("path",{fill:"#2571D6",fillRule:"evenodd",d:"M17.333 11a6.34 6.34 0 0 1 6.334 6.333 6.34 6.34 0 0 1-6.334 6.334c-3.493 0-6.333-2.846-6.333-6.334A6.343 6.343 0 0 1 17.333 11m-.005 2.37c-.437 0-.79.338-.79.754v2.412h-2.414c-.416 0-.754.355-.754.792s.338.792.754.792h2.413v2.412c0 .416.354.754.791.754s.792-.338.792-.754V18.12h2.413c.416 0 .754-.355.754-.792s-.338-.792-.754-.792H18.12v-2.412c0-.416-.355-.754-.792-.754",clipRule:"evenodd"}),Z.createElement("path",{fill:"#2571D6",d:"M11.12 12.297a7.97 7.97 0 0 0-1.787 5.036c0 1.763.571 3.392 1.537 4.714H3.044c-.84 0-1.523-.682-1.523-1.523 0-4.544 3.683-8.227 8.217-8.227zM10.995.139c2.925 0 5.3 2.376 5.3 5.3s-2.376 5.3-5.3 5.3v-.01a5.303 5.303 0 0 1-5.3-5.3 5.295 5.295 0 0 1 5.3-5.29"})),Cf=lr(h.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),Cs=lr(h.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Wx={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:450,md:500},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:3},borderRadius:2,maxHeight:"90vh",overflowY:"auto"},ks=["#dbe3fe","#fcebc7","#d9f1d2","#fdf5d1","#ebe3d7","#e1d6fb","#f7c7cc","#f9e7fb","#eaedf2","#d5d8dd"],yn=(()=>{const e=[];for(let n=0;n<24;n++)for(let t=0;t<60;t+=15){const r=n.toString().padStart(2,"0"),o=t.toString().padStart(2,"0");e.push(`${r}:${o}`)}return e})(),so=(e,n)=>{if(!e||!n)return null;const t=e.split("-");if(t.length!==3)return null;const r=parseInt(t[0],10),o=parseInt(t[1],10)-1,a=parseInt(t[2],10),i=n.split(":");if(i.length!==2)return null;const s=parseInt(i[0],10),c=parseInt(i[1],10),l=new Date(a,o,r,s,c);return isNaN(l.getTime())||!y.isValid(l)?null:l},Zx=({isVisible:e,onClose:n,onSave:t,onDelete:r,selectedDate:o,initialEvent:a,userId:i,masNombreBD:s,disId:c})=>{const[l,u]=w.useState(!1),[d,f]=w.useState(!1),m=y.format(new Date,"yyyy-MM-dd"),[g,p]=w.useState(""),[b,x]=w.useState([]),[S,T]=w.useState(!1),D=es(),[k,O]=w.useState([]),{control:I,handleSubmit:W,reset:U,formState:{errors:$,isValid:Q},watch:v,setValue:M}=kd({resolver:x_(zx),defaultValues:{titulo:"",fechaInicio:y.format(new Date,"yyyy-MM-dd"),horaInicio:y.format(new Date,"HH:mm"),horaFin:y.format(y.addHours(new Date,1),"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:ks[0],solID:null},mode:"onChange"}),P=v("fechaInicio"),H=v("fechaFin"),Y=v("todoElDia");w.useEffect(()=>{if(g.trim()===""||!i||!c||!s){x([]),O([]),M("solID",null),T(!1);return}T(!0);const B=setTimeout(()=>{D.getClients(g,c,s,i).then(te=>{if(T(!1),te){const ge=te.map(Fe=>Fe.solID);O([...new Set(ge)])}else O([]);const F=Array.from(new Map(te.map(ge=>[ge.nombreCliente,ge])).values());if(F)x(F);else if(a?.client&&a.solID!==null){const ge=[{solID:a.solID,nombreCliente:a.client}];x(ge)}else x([{}])}).catch(te=>{console.error("Error al buscar clientes:",te),T(!1)})},500);return()=>clearTimeout(B)},[g,i,c,s]),w.useEffect(()=>{if(P&&H){const B=new Date(P),te=new Date(H);(B===te||B>te)&&M("fechaFin",P)}},[P,H,M]),w.useEffect(()=>{P&&M("fechaFin",P)},[P]),w.useEffect(()=>{M("showEndDate",l)},[l,M]),w.useEffect(()=>{if(a){const B=y.format(a.fechaInicio,"yyyy-MM-dd")===y.format(a.fechaFin,"yyyy-MM-dd");u(!B),M("titulo",a?.titulo),M("fechaInicio",y.format(a.fechaInicio,"yyyy-MM-dd")),M("fechaFin",y.format(a.fechaFin,"yyyy-MM-dd")),M("horaInicio",y.format(a.fechaInicio,"HH:mm")),M("horaFin",y.format(a.fechaFin,"HH:mm")),M("horaInicio2",y.format(a.fechaFin,"HH:mm")),M("descripcion",a.descripcion),M("link",a.link),M("repetir","false"),M("color",a.color),M("todoElDia",a.todoElDia),M("solID",a.solID),M("client",a.client),a.solID?f(!0):f(!1)}else{const B=o||new Date,te=new Date,F=new Date(B.getFullYear(),B.getMonth(),B.getDate(),te.getHours(),te.getMinutes()),ge=y.addHours(F,1);U({titulo:"",fechaInicio:y.format(F,"yyyy-MM-dd"),horaInicio:y.format(F,"HH:mm"),fechaFin:y.format(ge,"yyyy-MM-dd"),horaFin:y.format(ge,"HH:mm"),horaInicio2:y.format(ge,"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:ks[0],solID:null}),u(!1),f(!1)}},[a,e,o]);const ee=W(B=>{t(B,a?.eventoID),n(),U(),u(!1)},B=>{console.log("Errores de validación:",B)});w.useEffect(()=>{Y&&(M("horaInicio","00:00"),M("horaFin","23:59"))},[Y,M,v]);const ae=()=>{const B=v("fechaInicio");if(B){const te=new Date(`${B}T00:00:00`),F=y.addDays(te,1);M("fechaFin",y.format(F,"yyyy-MM-dd"))}u(!0)},be=v("fechaInicio"),z=v("horaInicio"),K=v("fechaFin"),fe=v("horaFin"),[pe,he]=w.useState(null),[G,se]=w.useState(null);w.useEffect(()=>{(pe===null||pe!==z)&&he(z)},[z,pe]),w.useEffect(()=>{(G===null||G!==fe)&&se(fe??"")},[fe,G]);const de=v("todoElDia");w.useEffect(()=>{if(de||!z||!fe||!be||!K)return;const B=so(be,z),te=so(K,fe);if(!B||!te||!y.isValid(B)||!y.isValid(te))return;const F=y.isSameDay(B,te),ge=F&&(y.isAfter(B,te)||B.getTime()===te.getTime()),Fe=y.isBefore(te,B)&&!F;(ge||Fe)&&(M("horaFin",""),se(""))},[z]);const me=w.useMemo(()=>{if(!z||!be)return yn;const B=so(be,z),te=so(K,"00:00");return!B||!te||!y.isValid(B)||!y.isValid(te)||y.isBefore(te,B)&&!y.isSameDay(te,B)?yn:y.isSameDay(B,te)?yn.filter(F=>{const ge=so(K,F);return ge&&y.isAfter(ge,B)}):(y.isAfter(te,B),yn)},[z,be,K]),ye=w.useMemo(()=>yn,[]);return h.jsx(E.Modal,{open:e,onClose:n,children:h.jsx("form",{onSubmit:ee,children:h.jsxs(E.Box,{sx:Wx,children:[h.jsx(E.IconButton,{"aria-label":"close",onClick:n,sx:{position:"absolute",right:8,top:12},children:h.jsx(Cs,{})}),h.jsx(E.Typography,{variant:"h6",mb:2,children:a?"Editar evento":"Agregar evento"}),h.jsxs(E.Grid,{container:!0,spacing:1,marginBottom:l?0:1,children:[h.jsx(E.Grid,{size:{xs:12,md:12},children:h.jsx(mt,{name:"titulo",control:I,render:({field:B})=>h.jsx(E.TextField,{...B,label:"Título",fullWidth:!0,variant:"outlined",size:"small",error:!!$.titulo,helperText:$.titulo?.message,inputProps:{maxLength:100},sx:{"& .MuiInputLabel-root.Mui-focused":{color:"black"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"black"},"& .MuiInputLabel-root":{backgroundColor:"transparent !important",padding:"0 !important"}}})})}),h.jsx(E.Grid,{size:{xs:12,md:12},children:h.jsx(E.Divider,{})}),h.jsx(E.Grid,{size:{xs:12,md:4},children:h.jsx(mt,{name:"fechaInicio",control:I,render:({field:B})=>h.jsx(E.TextField,{fullWidth:!0,...B,type:"date",placeholder:"Fecha de inicio",size:"small",InputLabelProps:{shrink:!0},error:!!$.fechaInicio,helperText:$.fechaInicio?.message})})}),l?h.jsxs(h.Fragment,{children:[h.jsx(E.Grid,{size:{xs:1,md:3},sx:{display:{xs:"none",sm:"block"}}}),h.jsx(E.Grid,{size:{xs:11,md:4},children:h.jsx(mt,{name:"fechaFin",control:I,render:({field:B})=>h.jsx(E.TextField,{...B,type:"date",placeholder:"Fecha de fin",fullWidth:!!l,size:"small",InputLabelProps:{shrink:!0},inputProps:{min:P||m},error:!!$.fechaFin,helperText:$.fechaFin?.message})})}),!a&&h.jsx(E.Grid,{size:{xs:1,md:1},children:h.jsx(E.IconButton,{onClick:()=>u(!1),sx:{fontSize:18},children:h.jsx(Sf,{})})})]}):h.jsx(E.Grid,{size:{xs:12,md:7}})]}),l&&h.jsx(h.Fragment,{children:h.jsxs(E.Grid,{container:!0,spacing:0,sx:{margin:0,padding:0,width:"100%"},children:[h.jsx(E.Grid,{size:{xs:6,md:5}}),h.jsx(E.Grid,{size:{xs:12,md:6},sx:{margin:0,padding:0,width:"100%",display:{xs:"none",sm:"block"}},children:h.jsx(Cf,{sx:{color:"#757575",margin:0,padding:0}})})]})}),h.jsxs(E.Grid,{container:!0,spacing:1,marginBottom:1,marginTop:1,children:[h.jsx(E.Grid,{size:{xs:12,md:4},children:h.jsx(mt,{name:"horaInicio",control:I,render:({field:{onChange:B,value:te,...F}})=>h.jsx(E.Autocomplete,{freeSolo:!0,options:ye,value:te||"",onChange:(ge,Fe)=>B(Fe||""),onInputChange:(ge,Fe)=>B(Fe),renderInput:ge=>h.jsx(E.TextField,{...ge,...F,size:"small",error:!!$.horaInicio,helperText:$.horaInicio?.message,InputProps:{...ge.InputProps,endAdornment:h.jsx(E.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:h.jsx(td,{})})}}),disabled:v("todoElDia")})})}),h.jsx(E.Grid,{size:{xs:1,md:1},sx:{display:"flex",alignItems:$.horaInicio?"start":"center",marginTop:$.horaInicio?"5px":"0px"},children:!l&&h.jsx(Cf,{sx:{color:"#757575"}})}),l&&h.jsx(E.Grid,{size:{xs:2,md:2}}),h.jsx(E.Grid,{size:{xs:12,md:4},children:h.jsx(mt,{name:"horaFin",control:I,render:({field:{onChange:B,value:te,...F}})=>h.jsx(E.Autocomplete,{freeSolo:!0,options:me,value:te||"",onChange:(ge,Fe)=>B(Fe||""),onInputChange:(ge,Fe)=>B(Fe),renderInput:ge=>h.jsx(E.TextField,{...ge,...F,size:"small",error:!!$.horaFin,helperText:$.horaFin?.message,InputProps:{...ge.InputProps,endAdornment:h.jsx(E.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:h.jsx(td,{})})}}),disabled:v("todoElDia")})})}),h.jsx(E.Grid,{size:{xs:12,md:3},hidden:l,children:h.jsx(mt,{name:"todoElDia",control:I,render:({field:B})=>h.jsx(E.FormControlLabel,{control:h.jsx(E.Checkbox,{checked:B.value,onChange:te=>B.onChange(te.target.checked)}),label:h.jsx("label",{style:{fontSize:"0.7rem",fontWeight:"normal"},children:"Todo el día"}),sx:{whiteSpace:"nowrap"}})})}),h.jsx(E.Grid,{size:{xs:12,md:12},children:!l&&h.jsx(h.Fragment,{children:h.jsxs(E.Button,{onClick:ae,size:"small",sx:{textTransform:"none",fontSize:16},children:[h.jsx(Yx,{}),"  Agregar fecha final"]})})}),h.jsx(E.Grid,{size:{xs:12,md:12},children:h.jsx(E.Divider,{})}),h.jsx(E.Grid,{size:{xs:12,md:12},children:!d&&h.jsxs(E.Button,{onClick:()=>f(!0),size:"small",sx:{textTransform:"none",fontSize:16},children:[h.jsx(Ux,{}),"  Vincular cliente"]})}),d&&h.jsxs(h.Fragment,{children:[h.jsx(E.Grid,{size:{xs:12,md:7},children:h.jsx(mt,{name:"client",control:I,render:({field:B})=>h.jsx(E.Autocomplete,{options:b,loading:S,loadingText:"Buscando coincidencias",getOptionLabel:te=>te.nombreCliente?.trim()||"",value:b.find(te=>te.nombreCliente===B.value)||(B.value&&typeof B.value=="string"?{solID:-1,nombreCliente:B.value}:null),noOptionsText:"Sin resultados",onInputChange:(te,F)=>{p(F)},onChange:(te,F)=>{B.onChange(F?F.nombreCliente:"")},renderInput:te=>h.jsx(E.TextField,{...te,placeholder:"Buscar cliente...",size:"small",InputProps:{...te.InputProps,startAdornment:h.jsx("img",{src:Fx,width:20,style:{alignSelf:"flex-start",marginRight:"8px",marginTop:"5px"}}),endAdornment:h.jsxs(h.Fragment,{children:[S?h.jsx(E.CircularProgress,{color:"inherit",size:20}):null,te.InputProps.endAdornment]})}})})})}),h.jsx(E.Grid,{size:{xs:11,md:4},children:h.jsx(mt,{name:"solID",control:I,render:({field:B})=>h.jsx(E.Autocomplete,{options:k,noOptionsText:"Sin resultados",getOptionLabel:te=>te.toString(),value:B.value??null,onChange:(te,F)=>B.onChange(F),renderInput:te=>h.jsx(E.TextField,{...te,label:"#Registro",variant:"outlined",size:"small",sx:{"& .MuiInputLabel-root":{backgroundColor:"transparent !important",padding:"0 !important"}}}),disabled:!b})})}),h.jsx(E.Grid,{size:{xs:1,md:1},children:h.jsx(E.IconButton,{onClick:()=>f(!1),sx:{fontSize:18},children:h.jsx(Sf,{})})})]}),h.jsx(E.Grid,{size:{xs:12,md:12},children:h.jsx(E.Divider,{})}),h.jsx(E.Grid,{size:{xs:12,md:12},children:h.jsx(mt,{name:"link",control:I,render:({field:B})=>h.jsx(E.TextField,{...B,placeholder:" Agregar enlace de reunión",fullWidth:!0,variant:"outlined",size:"small",error:!!$.link,helperText:$.link?.message,InputProps:{startAdornment:h.jsx("img",{src:Bx,width:20,style:{alignSelf:"flex-start",marginRight:"8px",marginTop:"8px"}})}})})}),h.jsx(E.Grid,{size:{xs:12,md:12},children:h.jsx(mt,{name:"descripcion",control:I,render:({field:B})=>h.jsx(E.TextField,{...B,placeholder:" Agregar descripción aquí...",fullWidth:!0,multiline:!0,rows:3,inputProps:{maxLength:500},variant:"outlined",size:"small",InputProps:{startAdornment:h.jsx("img",{src:Hx,width:20,style:{alignSelf:"flex-start",marginRight:"8px"}})}})})}),h.jsx(E.Grid,{size:{xs:12,md:12},children:h.jsxs(E.Box,{sx:{display:"flex",alignItems:"center",gap:.5,flexWrap:"wrap"},children:[h.jsx(Vx,{}),ks.map(B=>h.jsx(mt,{name:"color",control:I,render:({field:te})=>h.jsx(E.IconButton,{onClick:()=>te.onChange(B),sx:{width:24,height:24,borderRadius:"50%",bgcolor:B,border:te.value===B?"2px solid":"none",borderColor:te.value===B?"primary.main":"transparent"}})},B))]})})]}),h.jsxs(E.Box,{sx:{display:"flex",justifyContent:"flex-end",mt:3,gap:2},children:[a&&h.jsx(E.Button,{onClick:r,variant:"outlined",color:"error",sx:{textTransform:"none"},children:"Eliminar"}),h.jsx(E.Button,{onClick:n,variant:"outlined",sx:{textTransform:"none"},children:"Cancelar"}),h.jsx(E.Button,{onClick:ee,variant:"contained",sx:{textTransform:"none"},disabled:!Q,children:"Guardar"})]})]})})})},qx="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='49'%20fill='none'%3e%3cpath%20fill='%23E40B1C'%20d='M34.559%2048.077c-7.413%200-13.44-6.039-13.44-13.44s6.027-13.44%2013.44-13.44%2013.44%206.027%2013.44%2013.44c0%207.414-6.027%2013.44-13.44%2013.44'/%3e%3cpath%20fill='%23fff'%20d='M39.827%2029.346c.583.583.605%201.505.05%202.06l-3.218%203.219%203.219%203.218c.555.556.532%201.48-.051%202.062-.584.583-1.506.605-2.062.05l-3.218-3.218-3.218%203.218c-.556.555-1.478.533-2.061-.05s-.606-1.506-.05-2.062l3.217-3.218-3.218-3.218c-.555-.555-.533-1.478.05-2.061.583-.584%201.507-.606%202.063-.05l3.217%203.217%203.218-3.218c.556-.555%201.478-.533%202.062.05'/%3e%3cpath%20fill='%23404756'%20d='M30.367.078c1.112%200%202.001.868%202.001%201.954v1.195h.979c4.913%200%208.892%203.887%208.892%208.686v9.237a15.4%2015.4%200%200%200-4.424-1.691v-1.312H4.468V33.63c0%202.389%202%204.343%204.446%204.343H19.4a15.4%2015.4%200%200%200%201.676%204.343H8.892C3.979%2042.317%200%2038.43%200%2033.631V11.913c0-4.8%203.979-8.686%208.892-8.686h1V2.032c0-1.086.89-1.954%202.002-1.954s2%20.868%202%201.954v1.195h14.473V2.032c0-1.085.889-1.954%202-1.954'/%3e%3c/svg%3e",Kx={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",boxShadow:24,p:4,borderRadius:2,textAlign:"center"},Gx=({isOpen:e,onClose:n,onConfirm:t,title:r,message:o})=>h.jsx(E.Modal,{open:e,onClose:n,children:h.jsxs(E.Box,{sx:Kx,children:[h.jsx("img",{src:qx}),h.jsx(E.Typography,{variant:"h6",component:"h2",sx:{mt:1},children:r}),h.jsx(E.Typography,{sx:{mt:2},children:o}),h.jsxs(E.Box,{sx:{mt:4,display:"flex",justifyContent:"center",gap:2},children:[h.jsx(E.Button,{variant:"outlined",onClick:n,sx:{textTransform:"none"},children:"Regresar"}),h.jsxs(E.Button,{variant:"contained",color:"error",onClick:t,sx:{textTransform:"none"},children:[h.jsx("span",{className:"icon-eliminar",children:"  "})," Eliminar"]})]})]})}),Qx={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:450,bgcolor:"background.paper",boxShadow:24,p:2,borderRadius:2},Jx=({isOpen:e,onClose:n,events:t,date:r,onEventClick:o})=>{if(!r)return null;const a=i=>{o(i),n()};return h.jsx(E.Modal,{open:e,onClose:n,children:h.jsxs(E.Box,{sx:Qx,children:[h.jsxs(E.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[h.jsxs(E.Typography,{sx:{fontSize:"20px"},component:"h2",children:["Eventos del"," ",r.toLocaleDateString("es-ES",{weekday:"long",day:"numeric",month:"long"})]}),h.jsx(E.IconButton,{onClick:n,children:h.jsx(Cs,{})})]}),h.jsx(E.Divider,{}),h.jsx(E.List,{children:t.map(i=>h.jsx(E.ListItem,{disablePadding:!0,children:h.jsxs(E.ListItemButton,{onClick:()=>a(i),sx:{py:.5},children:[h.jsx(E.Box,{sx:{width:"15px",height:"15px",borderRadius:"50%",backgroundColor:i.color||"#ccc",mr:2,flexShrink:0,minWidth:"10px"}}),h.jsx(E.ListItemText,{primary:i.titulo,secondary:`${y.format(i.fechaInicio,"HH:mm")} - ${y.format(i.fechaFin,"HH:mm")}`,sx:{my:0,"& .MuiListItemText-primary":{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},"& .MuiListItemText-secondary":{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"}}})]})},i.eventoID))})]})})},Xx=lr(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),eS=lr(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),tS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23E40B1C'%20d='M20.36%204.14H16c0-1.65-1.35-3-3-3h-2c-1.65%200-3%201.35-3%203H3.64c-.55%200-1%20.45-1%201s.45%201%201%201h1.04l.84%2013.91a3%203%200%200%200%202.99%202.82h6.98c1.58%200%202.9-1.24%203-2.82l.84-13.91h1.04c.55%200%201-.45%201-1s-.45-1-1-1zm-9.36-1h2c.55%200%201%20.45%201%201h-4c0-.55.45-1%201-1m-.39%2014.9c0%20.55-.45%201-1%201s-1-.45-1-1V9.99c0-.55.45-1%201-1s1%20.45%201%201zm4.78%200c0%20.55-.45%201-1%201s-1-.45-1-1V9.99c0-.55.45-1%201-1s1%20.45%201%201z'/%3e%3c/svg%3e",rS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M19.378%204.405a1.813%201.813%200%201%201%202.565%202.565L9.571%2019.342a1.813%201.813%200%200%201-2.565%200l-4.949-4.949a1.814%201.814%200%200%201%202.428-2.69l.137.126%203.666%203.666z'/%3e%3c/svg%3e",kf=w.forwardRef(({id:e,message:n,variant:t},r)=>{const{closeSnackbar:o}=Wa.useSnackbar(),a={success:{color:"#fff",icon:h.jsx("img",{width:25,src:rS,style:{borderRadius:"50%",backgroundColor:"#4caf50",color:"white",fontSize:"12px",padding:3}})},error:{color:"#f44336",icon:h.jsx(Xx,{sx:{color:"#f44336"}})},info:{color:"#2196f3",icon:h.jsx(eS,{sx:{color:"#2196f3"}})},delete:{color:"#fff",icon:h.jsx("img",{src:tS,width:25,style:{borderRadius:"50%",backgroundColor:"#ffdfd4",color:"red",fontSize:"16px",padding:3}})}},i=a[t]||a.info;return h.jsx(Wa.SnackbarContent,{ref:r,children:h.jsxs(E.Box,{sx:{backgroundColor:"white",color:"#333",padding:"8px 16px",borderRadius:"8px",boxShadow:"0 3px 10px rgba(0,0,0,0.2)",display:"flex",alignItems:"center",width:{xs:"90%",sm:"auto"},minWidth:"300px",borderLeft:`5px solid ${i.color}`},children:[h.jsx(E.Box,{sx:{mr:1.5},children:i.icon}),h.jsx(E.Typography,{variant:"body2",sx:{flexGrow:1},children:n}),h.jsx(E.IconButton,{size:"small",onClick:()=>o(e),children:h.jsx(Cs,{fontSize:"small"})})]})})}),nS=({userId:e,leads30Days:n,leads90Days:t,disId:r,masNombreBD:o})=>{const[a,i]=w.useState(new Date),[s,c]=w.useState([]),[l,u]=w.useState(!1),[d,f]=w.useState(null),[m,g]=w.useState(!1),[p,b]=w.useState(null),[x,S]=w.useState([]),{enqueueSnackbar:T}=Wa.useSnackbar(),D=es(),[k,O]=w.useState(!1),[I,W]=w.useState([]),[U,$]=w.useState(null),Q=(G,se)=>{W(G),$(se),O(!0)},v=w.useRef(null);w.useEffect(()=>{const G=async()=>{try{if(e){const se=await D.getEventsByUser(e);c(se)}}catch{console.log("No se pudieron cargar los eventos. Revisa la consola para más detalles.")}};return G(),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{G()},4e3),()=>{v.current&&clearTimeout(v.current)}},[a,e]),w.useEffect(()=>{const G=new Date,se=y.startOfDay(G),de=y.endOfDay(y.addDays(se,6)),me={start:se,end:de},ye=s.filter(B=>{const te={start:B.fechaInicio,end:B.fechaFin};return ou(te,me)}).sort((B,te)=>B.fechaInicio.getTime()-te.fechaInicio.getTime());S(ye)},[s]);const M=async G=>{try{const se=await D.getEventById(G.eventoID);f(se),u(!0)}catch(se){console.error(se)}},P=()=>{u(!1),f(null)},H=async(G,se)=>{let de,me;G.todoElDia?(de=new Date(`${G.fechaInicio}T${G.horaInicio}`),me=new Date(`${G.fechaInicio}T${G.horaFin}`)):(de=new Date(`${G.fechaInicio}T${G.horaInicio}`),me=G.fechaFin&&G.horaFin?new Date(`${G.fechaFin}T${G.horaFin}`):new Date(`${G.fechaInicio}T${G.horaFin}`));const ye=y.format(de,"yyyy-MM-dd HH:mm:ss.SSS"),B=y.format(me,"yyyy-MM-dd HH:mm:ss.SSS");if(se){const F={...G,eventoID:se,fechaInicio:ye,fechaFin:B,solID:G.solID??null,disID:r??null,client:G.client};try{const ge=await D.updateEvent(F);var te=s.map(Fe=>Fe.eventoID===ge.eventoID?ge:Fe);c(te),T("El evento se ha actualizado correctamente.",{variant:"success"}),P()}catch{T("Error al eliactualizar Evento",{variant:"error"})}}else{const F={...G,fechaInicio:ye,fechaFin:B,todoElDia:G.todoElDia,solID:G.solID??null,disID:r??null,client:G.client};try{const ge=await D.createEvent(F,e);c(Fe=>[...Fe,ge]),T("El evento se ha creado con éxito",{variant:"success"}),P()}catch{T("Error al guardar Evento",{variant:"error"})}}if(e){const F=await D.getEventsByUser(e);c(F)}},Y=()=>{i(G=>new Date(G.getFullYear(),G.getMonth()-1,1))},ee=()=>{i(G=>new Date(G.getFullYear(),G.getMonth()+1,1))},ae=()=>{g(!0)},be=()=>{b(new Date),u(!0)},z=()=>alert("Sincronizar con Google Calendar"),K=()=>alert("Sincronizar con Outlook Calendar"),fe=G=>{G&&i(G)},pe=G=>{b(G),u(!0),f(null)},he=async()=>{if(d)try{await D.deleteEvent(d.eventoID),c(s.filter(G=>G.eventoID!==d.eventoID)),T("El evento se ha eliminado de tu calendario",{content:(G,se)=>h.jsx(kf,{id:G,message:String(se),variant:"delete"})})}catch{T("Error al eliminar Evento",{variant:"error"})}finally{P(),g(!1)}};return h.jsxs("div",{id:"Agenda",style:{height:"100%",width:"100%"},children:[h.jsx(v0,{header:h.jsx(jv,{currentDate:a,onPrevMonth:Y,onNextMonth:ee,onAddEvent:be,onDateChange:fe}),sidebar:h.jsx(by,{onEventClick:M,upcomingEvents:x,onSyncGoogle:z,onSyncOutlook:K,leads30Days:n,leads90Days:t}),mainContent:h.jsx(Ty,{onSeeMoreClick:Q,currentDate:a,events:s,onDayClick:pe,onEventClick:M})}),l&&h.jsx(Zx,{isVisible:l,onClose:P,onSave:H,onDelete:ae,selectedDate:p,initialEvent:d,userId:e,masNombreBD:o,disId:r}),h.jsx(Gx,{isOpen:m,onClose:()=>g(!1),onConfirm:he,title:"Eliminar evento",message:"¿De verdad deseas eliminar este evento? Esta acción no se puede deshacer."}),h.jsx(Jx,{isOpen:k,onClose:()=>O(!1),events:I,date:U,onEventClick:M})]})},oS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='22'%3e%3cpath%20fill='%23070c10'%20d='M18.575%203.172A10.829%2010.829%200%200%200%201.564%2016.284l-.028-.051L0%2021.843l5.739-1.506a10.7%2010.7%200%200%200%205.173%201.318%2010.83%2010.83%200%200%200%207.663-18.483m-7.658%2016.655a8.94%208.94%200%200%201-4.62-1.277l.041.023-.329-.194-3.405.894.908-3.321-.214-.34a8.9%208.9%200%200%201-1.376-4.782%209%209%200%201%201%209%209Zm4.935-6.736c-.27-.135-1.6-.789-1.848-.88s-.429-.135-.61.136-.7.879-.856%201.06-.316.2-.586.068a7.5%207.5%200%200%201-2.183-1.349l.007.007a8.2%208.2%200%200%201-1.483-1.842l-.02-.038c-.157-.27-.017-.417.118-.551s.271-.316.406-.473a1.9%201.9%200%200%200%20.267-.44v-.012a.5.5%200%200%200%20.05-.216.5.5%200%200%200-.074-.26c-.068-.135-.609-1.467-.834-2.009s-.444-.455-.609-.464-.338-.009-.519-.009a.99.99%200%200%200-.72.337%203.03%203.03%200%200%200-.947%202.2v.058a5.27%205.27%200%200%200%201.114%202.815v-.011a12.16%2012.16%200%200%200%204.553%204.053l.068.031a14%2014%200%200%200%201.434.539l.109.03a3.6%203.6%200%200%200%201.077.161%203.7%203.7%200%200%200%20.648-.057h-.023a2.8%202.8%200%200%200%201.819-1.274l.007-.012a2.2%202.2%200%200%200%20.19-.9%202.3%202.3%200%200%200-.034-.395v.014c-.067-.113-.248-.18-.519-.316Z'/%3e%3c/svg%3e",aS="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25.085'%20height='18.5'%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='none'%20d='M0%200h25.085v18.5H0z'%20data-name='Rectángulo%204598'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23a)'%20data-name='Grupo%207946'%3e%3cpath%20d='M23.12%205.809V3.226a3.2%203.2%200%200%200-.068-.656l-3.141%202.21a7.8%207.8%200%200%201%203.209%201.032'%20data-name='Trazado%2013329'/%3e%3cpath%20d='M11.847%209.791c-.1.009-.2.023-.308.023a3.78%203.78%200%200%201-2.18-.688L.067%202.58A3.2%203.2%200%200%200%200%203.227V13.98a3.23%203.23%200%200%200%203.226%203.226h9.611a7.86%207.86%200%200%201-.99-7.414'%20data-name='Trazado%2013330'/%3e%3cpath%20d='M12.478%207.369%2021.92.737A3.2%203.2%200%200%200%2019.894%200H3.226a3.2%203.2%200%200%200-2.031.74l9.4%206.628a1.64%201.64%200%200%200%201.881%200'%20data-name='Trazado%2013331'/%3e%3cpath%20d='M23.356%208.407a5.914%205.914%200%201%200%200%208.364%205.92%205.92%200%200%200%200-8.364m-1.833%204.842a.54.54%200%200%201-1.081%200v-1.164l-2.513%202.516a.54.54%200%200%201-.765-.763l2.515-2.515h-1.167a.54.54%200%201%201%200-1.081h2.471a.54.54%200%200%201%20.54.54Z'%20data-name='Trazado%2013332'/%3e%3c/g%3e%3c/svg%3e";function Ds(e,n,t){return e.accessor?e.accessor(n,t):e.field?n?.[e.field]:n?.[e?.key||""]}function iS(e,n){const t=e??"",r=n??"";return t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():typeof t=="number"&&typeof r=="number"?t-r:typeof t=="boolean"&&typeof r=="boolean"?Number(t)-Number(r):String(t).localeCompare(String(r),void 0,{numeric:!0,sensitivity:"base"})}function Es(e,n,t=!0){return typeof e=="function"?e(n):e??t}function sS(e){return e.replace(/[^\d]/g,"")}function cS(e,n){return n}const Df=lr(h.jsx("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFileOutlined"),Ts=Z.createContext();process.env.NODE_ENV!=="production"&&(Ts.displayName="TableContext");function lS(e){return Kt("MuiTable",e)}yr("MuiTable",["root","stickyHeader"]);const uS=e=>{const{classes:n,stickyHeader:t}=e;return gr({root:["root",t&&"stickyHeader"]},lS,n)},dS=wr("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,t.stickyHeader&&n.stickyHeader]}})($n(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:n})=>n.stickyHeader,style:{borderCollapse:"separate"}}]}))),Ef="table",Tf=Z.forwardRef(function(n,t){const r=_r({props:n,name:"MuiTable"}),{className:o,component:a=Ef,padding:i="normal",size:s="medium",stickyHeader:c=!1,...l}=r,u={...r,component:a,padding:i,size:s,stickyHeader:c},d=uS(u),f=Z.useMemo(()=>({padding:i,size:s,stickyHeader:c}),[i,s,c]);return h.jsx(Ts.Provider,{value:f,children:h.jsx(dS,{as:a,role:a===Ef?null:"table",ref:t,className:Be(d.root,o),ownerState:u,...l})})});process.env.NODE_ENV!=="production"&&(Tf.propTypes={children:N.node,classes:N.object,className:N.string,component:N.elementType,padding:N.oneOf(["checkbox","none","normal"]),size:N.oneOfType([N.oneOf(["medium","small"]),N.string]),stickyHeader:N.bool,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object])});const co=Z.createContext();process.env.NODE_ENV!=="production"&&(co.displayName="Tablelvl2Context");function fS(e){return Kt("MuiTableBody",e)}yr("MuiTableBody",["root"]);const pS=e=>{const{classes:n}=e;return gr({root:["root"]},fS,n)},hS=wr("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),mS={variant:"body"},Of="tbody",Mf=Z.forwardRef(function(n,t){const r=_r({props:n,name:"MuiTableBody"}),{className:o,component:a=Of,...i}=r,s={...r,component:a},c=pS(s);return h.jsx(co.Provider,{value:mS,children:h.jsx(hS,{className:Be(c.root,o),as:a,ref:t,role:a===Of?null:"rowgroup",ownerState:s,...i})})});process.env.NODE_ENV!=="production"&&(Mf.propTypes={children:N.node,classes:N.object,className:N.string,component:N.elementType,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object])});function gS(e){return Kt("MuiTableCell",e)}const vS=yr("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),yS=e=>{const{classes:n,variant:t,align:r,padding:o,size:a,stickyHeader:i}=e,s={root:["root",t,i&&"stickyHeader",r!=="inherit"&&`align${Ct(r)}`,o!=="normal"&&`padding${Ct(o)}`,`size${Ct(a)}`]};return gr(s,gS,n)},bS=wr("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[t.variant],n[`size${Ct(t.size)}`],t.padding!=="normal"&&n[`padding${Ct(t.padding)}`],t.align!=="inherit"&&n[`align${Ct(t.align)}`],t.stickyHeader&&n.stickyHeader]}})($n(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
175
+ ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${vS.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:n})=>n.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Os=Z.forwardRef(function(n,t){const r=_r({props:n,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:s,scope:c,size:l,sortDirection:u,variant:d,...f}=r,m=Z.useContext(Ts),g=Z.useContext(co),p=g&&g.variant==="head";let b;i?b=i:b=p?"th":"td";let x=c;b==="td"?x=void 0:!x&&p&&(x="col");const S=d||g&&g.variant,T={...r,align:o,component:b,padding:s||(m&&m.padding?m.padding:"normal"),size:l||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:S==="head"&&m&&m.stickyHeader,variant:S},D=yS(T);let k=null;return u&&(k=u==="asc"?"ascending":"descending"),h.jsx(bS,{as:b,ref:t,className:Be(D.root,a),"aria-sort":k,scope:x,ownerState:T,...f})});process.env.NODE_ENV!=="production"&&(Os.propTypes={align:N.oneOf(["center","inherit","justify","left","right"]),children:N.node,classes:N.object,className:N.string,component:N.elementType,padding:N.oneOf(["checkbox","none","normal"]),scope:N.string,size:N.oneOfType([N.oneOf(["medium","small"]),N.string]),sortDirection:N.oneOf(["asc","desc",!1]),sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object]),variant:N.oneOfType([N.oneOf(["body","footer","head"]),N.string])});function wS(e){return Kt("MuiTableContainer",e)}yr("MuiTableContainer",["root"]);const _S=e=>{const{classes:n}=e;return gr({root:["root"]},wS,n)},xS=wr("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Af=Z.forwardRef(function(n,t){const r=_r({props:n,name:"MuiTableContainer"}),{className:o,component:a="div",...i}=r,s={...r,component:a},c=_S(s);return h.jsx(xS,{ref:t,as:a,className:Be(c.root,o),ownerState:s,...i})});process.env.NODE_ENV!=="production"&&(Af.propTypes={children:N.node,classes:N.object,className:N.string,component:N.elementType,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object])});function SS(e){return Kt("MuiTableHead",e)}yr("MuiTableHead",["root"]);const CS=e=>{const{classes:n}=e;return gr({root:["root"]},SS,n)},kS=wr("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),DS={variant:"head"},Pf="thead",If=Z.forwardRef(function(n,t){const r=_r({props:n,name:"MuiTableHead"}),{className:o,component:a=Pf,...i}=r,s={...r,component:a},c=CS(s);return h.jsx(co.Provider,{value:DS,children:h.jsx(kS,{as:a,className:Be(c.root,o),ref:t,role:a===Pf?null:"rowgroup",ownerState:s,...i})})});process.env.NODE_ENV!=="production"&&(If.propTypes={children:N.node,classes:N.object,className:N.string,component:N.elementType,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object])});function ES(e){return Kt("MuiTableRow",e)}const Nf=yr("MuiTableRow",["root","selected","hover","head","footer"]),TS=e=>{const{classes:n,selected:t,hover:r,head:o,footer:a}=e;return gr({root:["root",t&&"selected",r&&"hover",o&&"head",a&&"footer"]},ES,n)},OS=wr("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,t.head&&n.head,t.footer&&n.footer]}})($n(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Nf.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Nf.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Rf="tr",Ms=Z.forwardRef(function(n,t){const r=_r({props:n,name:"MuiTableRow"}),{className:o,component:a=Rf,hover:i=!1,selected:s=!1,...c}=r,l=Z.useContext(co),u={...r,component:a,hover:i,selected:s,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=TS(u);return h.jsx(OS,{as:a,ref:t,className:Be(d.root,o),role:a===Rf?null:"row",ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(Ms.propTypes={children:N.node,classes:N.object,className:N.string,component:N.elementType,hover:N.bool,selected:N.bool,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object])});function MS(e){const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return n}}function $f(e,n,t,r){const o=e[n];if(o==null||!Number.isInteger(o)){const a=MS(o);return new RangeError(`Invalid ${r} \`${n}\` of type \`${a}\` supplied to \`${t}\`, expected \`integer\`.`)}return null}function jf(e,n,t,r){return e[n]===void 0?null:$f(e,n,t,r)}function As(){return null}jf.isRequired=$f,As.isRequired=As;const AS=process.env.NODE_ENV==="production"?As:jf;function PS(e,n){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||n(...r)}}function IS(e){return Kt("MuiPaper",e)}yr("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const NS=e=>{const{square:n,elevation:t,variant:r,classes:o}=e,a={root:["root",r,!n&&"rounded",r==="elevation"&&`elevation${t}`]};return gr(a,IS,o)},RS=wr("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[t.variant],!t.square&&n.rounded,t.variant==="elevation"&&n[`elevation${t.elevation}`]]}})($n(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:n})=>!n.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Lf=Z.forwardRef(function(n,t){const r=_r({props:n,name:"MuiPaper"}),o=l0(),{className:a,component:i="div",elevation:s=1,square:c=!1,variant:l="elevation",...u}=r,d={...r,component:i,elevation:s,square:c,variant:l},f=NS(d);return process.env.NODE_ENV!=="production"&&o.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
176
+ `)),h.jsx(RS,{as:i,ownerState:d,className:Be(f.root,a),ref:t,...u,style:{...l==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[s],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[s]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Lo("#fff",bi(s))}, ${Lo("#fff",bi(s))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(Lf.propTypes={children:N.node,classes:N.object,className:N.string,component:N.elementType,elevation:PS(AS,e=>{const{elevation:n,variant:t}=e;return n>0&&t==="outlined"?new Error(`MUI: Combining \`elevation={${n}}\` with \`variant="${t}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:N.bool,style:N.object,sx:N.oneOfType([N.arrayOf(N.oneOfType([N.func,N.object,N.bool])),N.func,N.object]),variant:N.oneOfType([N.oneOf(["elevation","outlined"]),N.string])});function $S({row:e,rowIndex:n,columns:t}){return h.jsx(Ms,{sx:{"& > *":{borderBottom:"unset"}},children:t.map((r,o)=>{const a=r.key??String(o);let i=null;return r.cell?i=r.cell(e,n):r.accessor?i=r.accessor(e,n):r.field&&(i=e?.[r.field]??""),h.jsx(Os,{style:r.width?{width:r.width}:void 0,align:r?.align?r?.align:"left",children:i},a)})})}function jS(e){const{name:n,collapses:t,columns:r,data:o,getRowKey:a}=e;return h.jsx(Af,{component:Lf,sx:{boxShadow:t?"auto":"none",border:t?"auto":"none"},children:h.jsxs(Tf,{"aria-label":"collapsible table",children:[t&&h.jsx(If,{children:h.jsx(Ms,{children:r?.map(i=>h.jsx(Os,{children:i.header}))})}),h.jsx(Mf,{children:o?.map((i,s)=>h.jsx($S,{row:i,rowIndex:s,columns:r??[]},a?a(i,s):s))})]})})}function LS({open:e,onClose:n,customer:t,fields:r=[],header:o,extraSections:a,normalTable:i,normalTableColumns:s=[]}){if(!t)return null;const c=o?.title??(u=>u?.Nombre||u?.name||"Sin título"),l=o?.infoItems??[];return h.jsx(E.Dialog,{open:e,onClose:n,maxWidth:"lg",fullWidth:!0,PaperProps:{sx:{height:"90vh",maxWidth:"80vw",overflow:"hidden",display:"flex",flexDirection:"column"}},children:h.jsxs(E.Box,{sx:{display:"flex",flexDirection:"row",height:"100vh"},children:[h.jsxs(E.Box,{sx:{maxWidth:392,width:"100%",backgroundColor:"#40404024",display:"flex",flexDirection:"column",height:"100%"},children:[h.jsxs(E.Box,{children:[h.jsx(E.Stack,{direction:"row",spacing:2,alignItems:"center",mb:2,sx:{px:2.5,pt:2.5},children:h.jsxs(E.Box,{display:"flex",flexDirection:"column",gap:1,children:[h.jsx(E.Typography,{fontWeight:700,children:c(t)}),l.map((u,d)=>h.jsxs(E.Box,{sx:{display:"flex",gap:1.2,alignItems:"center",cursor:u.onClick?"pointer":"default"},onClick:u.onClick?()=>u.onClick(t):void 0,children:[u.icon,h.jsx(E.Typography,{variant:"body2",sx:{color:u.inLink?"#336BE1":"#070C10"},style:{},children:u.value(t)})]},d))]})}),o?.actions?.length?h.jsx(E.Stack,{direction:"row",spacing:1,mb:2,sx:{px:2.5},children:o.actions.map((u,d)=>h.jsxs(E.Button,{variant:"outlined",sx:{color:"#336BE1",borderColor:"#336BE1",gap:1,textTransform:"none"},onClick:()=>u.onClick(t),children:[u.icon,u.label]},d))}):null,h.jsx(E.Stack,{mb:2,sx:{px:2.5,pt:0,gap:2},children:r.map((u,d)=>h.jsxs(E.Box,{display:"flex",justifyContent:"space-between",children:[h.jsx(E.Box,{sx:{width:"50%"},children:h.jsx(E.Typography,{variant:"body2",color:"text.secondary",sx:{color:"#5C6372"},children:u.label})}),h.jsxs(E.Box,{sx:{width:"50%",display:"flex",alignItems:"center",gap:1},children:[h.jsx("div",{children:u?.avatar?u.avatar(t):null}),h.jsx(E.Typography,{variant:"body2",color:"textPrimary",children:u?.value(t)})]})]},d))}),h.jsx(E.Divider,{sx:{my:2}})]}),h.jsxs(E.Box,{sx:{px:2.5,pt:0,gap:2,flex:1,overflowY:"auto",display:"flex",flexDirection:"column"},children:[h.jsx(E.Stack,{children:h.jsx(E.Typography,{variant:"body1",sx:{color:"#5C6372"},children:"Actividad"})}),h.jsxs(E.Stack,{spacing:1.25,children:[h.jsx(E.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Crear cliente"}),h.jsxs(E.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx(E.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs(E.Stack,{spacing:0,children:[h.jsx(E.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx(E.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]})]})]}),h.jsx(E.Divider,{}),h.jsxs(E.Stack,{spacing:1.25,children:[h.jsx(E.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Mensaje enviado"}),h.jsxs(E.Typography,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.5},children:["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar pharetra augue. Suspendisse nulla...",h.jsxs(E.Typography,{component:"span",variant:"body2",sx:{color:"#336BE1",cursor:"default"},children:[" ","Ver más"]})]}),h.jsxs(E.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx(E.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs(E.Stack,{spacing:0,children:[h.jsx(E.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx(E.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]}),h.jsx(E.Box,{sx:{flex:1}}),h.jsx(E.IconButton,{size:"small",sx:{opacity:.7},children:h.jsx(Df,{fontSize:"small"})})]})]}),h.jsx(E.Divider,{}),h.jsxs(E.Stack,{spacing:1.25,children:[h.jsx(E.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Mensaje enviado"}),h.jsxs(E.Typography,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.5},children:["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar pharetra augue. Suspendisse nulla...",h.jsxs(E.Typography,{component:"span",variant:"body2",sx:{color:"#336BE1",cursor:"default"},children:[" ","Ver más"]})]}),h.jsxs(E.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx(E.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs(E.Stack,{spacing:0,children:[h.jsx(E.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx(E.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]})]})]}),h.jsxs(E.Stack,{spacing:1.25,children:[h.jsx(E.Typography,{variant:"subtitle2",sx:{color:"#5C6372"},children:"Mensaje enviado"}),h.jsxs(E.Typography,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.5},children:["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse pulvinar pharetra augue. Suspendisse nulla...",h.jsxs(E.Typography,{component:"span",variant:"body2",sx:{color:"#336BE1",cursor:"default"},children:[" ","Ver más"]})]}),h.jsxs(E.Stack,{direction:"row",spacing:1.25,alignItems:"center",children:[h.jsx(E.Avatar,{src:"/avatars/laura.png",sx:{width:28,height:28}}),h.jsxs(E.Stack,{spacing:0,children:[h.jsx(E.Typography,{variant:"body2",fontWeight:600,children:"Laura Diaz"}),h.jsx(E.Typography,{variant:"caption",color:"text.secondary",children:"13 ago, 2025 • 16:30"})]}),h.jsx(E.Box,{sx:{flex:1}}),h.jsx(E.IconButton,{size:"small",sx:{opacity:.7},children:h.jsx(Df,{fontSize:"small"})})]})]})]})]}),h.jsx(E.Box,{sx:{width:"100%",overflowY:"auto"},children:h.jsx(E.Box,{sx:{mt:3},children:h.jsxs(E.Box,{sx:{mt:3,display:"flex",flexDirection:"column",gap:3},children:[h.jsx(E.Typography,{variant:"h6",sx:{paddingLeft:"20px"},children:"Vehículos:"}),h.jsxs(E.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingX:"20px",children:[h.jsx(E.Box,{children:h.jsx(E.Typography,{fontSize:18,children:"Mostrar:"})}),h.jsx(E.Box,{children:h.jsxs(E.Typography,{fontSize:16,color:"#5C6372",children:[i?.length??0," vehículos"]})})]}),h.jsx(jS,{collapses:!1,columns:s??[],data:i,getRowKey:u=>u.id??u.vin})]})})})]})})}function zf(e,n,t){const{fields:r,order:o=["nombreCliente","email","acciones"],header:a={},cells:i={},hide:s={},actions:c}=n,l=c??{},u=l.show??{},d=l.handlers??{},f=l.accessors??{},m=l.icons??{},g=l.className??"d-flex flex-row gap-2 align-items-center ",p=l.tooltip??{},b=m.view??h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",style:{fill:"#070c10"},children:[h.jsx("path",{d:"M18.6,6.3c-3.9-3-9.3-3-13.2,0-1.9,1.5-3.2,3.5-3.9,5.7.7,2.3,2,4.3,3.9,5.7,1.9,1.5,4.2,2.3,6.6,2.3,2.4,0,4.7-.8,6.6-2.3,1.9-1.5,3.2-3.5,3.9-5.7-.7-2.3-2-4.3-3.9-5.7ZM17.2,12.1c0,2.9-2.5,5.3-5.4,5.2-2.9,0-5.3-2.5-5.2-5.4,0-2.9,2.5-5.3,5.4-5.2,2.9,0,5.3,2.4,5.2,5.3,0,0,0,0,0,0Z"}),h.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),x={nombreCliente:{key:"nombreCliente",header:a.nombreCliente??"Cliente",accessor:$=>$[r.nombreCliente],cell:i.nombreCliente,width:310},email:{key:"email",header:a.email??"Correo",accessor:$=>$[r.email],cell:i.email??($=>{const Q=String($[r.email]??"");return Q?h.jsx("a",{href:`mailto:${Q}`,children:Q}):h.jsx("span",{className:"text-muted",children:"—"})}),width:250},acciones:s.acciones?void 0:{key:"acciones",header:"",cell:i.acciones??($=>{const Q=Es(u.whatsapp,$,!0),v=Es(u.email,$,!0),M=Es(u.view,$,!0),P=f.phone?.($),H=f.email?.($),Y=()=>{if(d.onWhatsApp)return d.onWhatsApp($);if(!P)return;const be=f.countryCode??"52",z=sS(String(P));typeof window<"u"&&window.open(`https://wa.me/${be}${z}`,"_blank")},ee=()=>{if(d.onEmail)return d.onEmail($);H&&typeof window<"u"&&(window.location.href=`mailto:${H}`)},ae=()=>{d.onView&&d.onView($),t?.($)};return h.jsxs("div",{className:g,children:[Q&&h.jsx("button",{type:"button",className:"btn p-0 border-0 bg-transparent",title:p.whatsapp??"WhatsApp",onClick:Y,style:{width:24,height:24},children:h.jsx("img",{src:oS,alt:"WhatsApp"})}),v&&h.jsx("button",{type:"button",className:"btn p-0 border-0 bg-transparent",title:p.email??"Email",onClick:ee,style:{width:24,height:24},children:h.jsx("img",{src:aS,alt:"Email"})}),M&&h.jsx("button",{type:"button",className:"btn p-0 border-0 bg-transparent",title:p.view??"Ver detalle",onClick:ae,style:{width:24,height:24},children:b})]})}),width:120}},S=Object.values(x).filter($=>!!$),T=(e??[]).filter($=>!!$?.key),D=new Map;for(const $ of S)D.set(String($.key),$);for(const $ of T)D.set(String($.key),$);const k=[...S.map($=>String($.key)),...T.map($=>String($.key))],O=Array.from(new Set(o.map($=>String($)).filter($=>D.has($)))),I=k.filter($=>!O.includes($)),W=[...O,...I],U="acciones";if(D.has(U)){const $=W.filter(Q=>Q!==U);W.splice(0,W.length,...$,U)}return W.map($=>D.get($))}function zS(e){const{rows:n,columns:t,clientSort:r=!0,defaultSort:o,minWidth:a=1100,rowKey:i=cS,defaults:s,detailConfig:c,extraSections:l,normalTableColumns:u,normalTable:d}=e,[f,m]=w.useState(o??null),[g,p]=w.useState({open:!1,customer:null}),[b,x]=w.useState([]),S=O=>{p({open:!0,customer:O});const I=c?.vehiclesProvider?.(O)??[];x(Array.isArray(I)?I:[])},T=()=>p({open:!1,customer:null}),D=w.useMemo(()=>s?zf(t??[],s,S):zf(t??[],{fields:{},order:[]},S),[t,s]),k=w.useMemo(()=>{if(!r||!f)return n;const O=D.find(W=>W.key===f.key);if(!O)return n;const I=[...n];return I.sort((W,U)=>{const $=Ds(O,W,0),Q=Ds(O,U,0),v=iS($,Q);return f.direction==="asc"?v:-v}),I},[n,D,f,r]);return h.jsxs("div",{className:"",children:[h.jsx("h3",{children:"Ejemplo Componente reutilizable"}),h.jsx("div",{className:"table-clientes back-white rounded-3 shadow-main mt-4 mb-4 ",children:h.jsx("div",{className:"table-responsive",children:h.jsxs("table",{className:"table table-hover align-middle mb-0",style:{minWidth:a},children:[h.jsx("thead",{children:h.jsx("tr",{children:D.map(O=>h.jsx("th",{style:{fontWeight:600,width:O.width},children:O.header},O.key))})}),h.jsx("tbody",{children:k.map((O,I)=>h.jsx("tr",{children:D.map((W,U)=>{const $=W.Component?h.jsx(W.Component,{row:O,index:I}):W.cell?W.cell(O,I):(()=>{const Q=Ds(W,O,I);return Q==null||Q===""?"":String(Q)})();return h.jsx("td",{children:$},`${String(W.key)}-${U}`)})},i(O,I)))})]})})}),h.jsx(LS,{open:g.open,onClose:T,customer:g.customer,fields:c?.dynamicFields,header:c?.header,extraSections:l,normalTableColumns:u,normalTable:d})]})}function BS(e){const{open:n,dataAdd:t,fields:r,defaultValues:o,onSubmit:a,onCancel:i}=e;console.log("fields",r);const{control:s,handleSubmit:c,formState:{errors:l,isSubmitting:u}}=kd({defaultValues:o,mode:"onBlur"}),d=f=>{const m={width:"100%"};if(f.render)return h.jsx(mt,{name:f.name,control:s,rules:{required:f.required||!1},render:({field:p,fieldState:b})=>h.jsxs(E.Box,{sx:m,children:[f.render({value:p.value,onChange:p.onChange,error:b.error?.message}),!!b.error&&h.jsx(E.FormHelperText,{error:!0,children:b.error.message})]})});if(f.kind==="select")return h.jsx(mt,{name:f.name,control:s,rules:{required:f.required||!1},render:({field:p,fieldState:b})=>h.jsx(E.TextField,{...p,select:!0,label:f.label,placeholder:f.placeholder,fullWidth:!0,disabled:f.disabled,helperText:b.error?.message||f.helperText,error:!!b.error,children:f.options.map(x=>h.jsx(E.MenuItem,{value:x.value,children:x.label},String(x.value)))})});if(f.kind==="date")return h.jsx(mt,{name:f.name,control:s,rules:{required:f.required||!1},render:({field:p,fieldState:b})=>h.jsx(E.TextField,{...p,type:"date",label:f.label,placeholder:f.placeholder,fullWidth:!0,disabled:f.disabled,helperText:b.error?.message||f.helperText,error:!!b.error,InputLabelProps:{shrink:!0}})});const g=f.kind==="multiline";return h.jsx(mt,{name:f.name,control:s,rules:{required:f.required||!1},render:({field:p,fieldState:b})=>h.jsx(E.TextField,{...p,type:g?"text":f.kind,label:f.label,placeholder:f.placeholder,fullWidth:!0,disabled:f.disabled,multiline:g,rows:g?f.rows??3:void 0,inputProps:"inputProps"in f?f.inputProps:void 0,error:!!b.error,helperText:b.error?.message||f.helperText,InputProps:{startAdornment:"startAdornment"in f&&f.startAdornment?h.jsx(E.InputAdornment,{position:"start",children:f.startAdornment}):void 0,endAdornment:"endAdornment"in f&&f.endAdornment?h.jsx(E.InputAdornment,{position:"end",children:f.endAdornment}):void 0}})})};return h.jsx(E.Dialog,{open:!0,maxWidth:"lg",fullWidth:!0,PaperProps:{sx:{height:"90vh",maxWidth:"80vw",overflow:"hidden",display:"flex",flexDirection:"column"}},children:h.jsxs(E.Box,{display:"flex",flexDirection:"row",width:"100%",height:"100%",children:[h.jsxs(E.Box,{sx:{maxWidth:394,width:"100%",boxShadow:"2px 0px 8px #40404024",padding:"24px"},children:[h.jsx(E.Typography,{fontWeight:700,fontSize:20,children:t.title}),h.jsxs(E.Typography,{fontSize:18,mt:2.5,children:[t.subTitle," "]}),h.jsx(E.Box,{children:h.jsxs(E.Stack,{spacing:2.5,mt:3,children:[r.map((f,m)=>h.jsx(E.Box,{children:d(f)},`${f.name}-${m}`)),h.jsxs(E.Stack,{direction:"row",spacing:1.5,pt:1,children:[i&&h.jsx(E.Button,{variant:"outlined",onClick:i,children:"Cancelar"}),h.jsx(E.Button,{type:"submit",variant:"contained",disabled:u,children:"Guardar"})]})]})})]}),h.jsx(E.Box,{})]})})}lt.AddCliente=BS,lt.ApiProvider=Xb,lt.Clientes=zS,lt.CustomSnackbar=kf,lt.MyCalendar=nS,lt.useEventRepository=es,Object.defineProperty(lt,Symbol.toStringTag,{value:"Module"})}));