@codeplex-sac/ui 0.0.15 → 0.0.17
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/index.cjs +80 -147
- package/index.d.ts +5 -12
- package/index.js +11090 -30076
- package/lib/alerta/alerta.d.ts +4 -4
- package/lib/anuncio/anuncio.d.ts +6 -5
- package/lib/ayuda-entrada/ayuda-entrada.d.ts +9 -3
- package/lib/boton/boton.d.ts +2 -1
- package/lib/cargador-archivos/cargador-archivos.d.ts +23 -0
- package/lib/encabezado-principal/encabezado-principal.d.ts +5 -4
- package/lib/esqueleto/esqueleto.d.ts +4 -3
- package/lib/etiqueta/etiqueta-inteligente.d.ts +4 -3
- package/lib/etiqueta/popup-requisitos.d.ts +2 -3
- package/lib/selector-color/selector-color.d.ts +14 -0
- package/lib/tarjeta-estadistica/tarjeta-estadistica.d.ts +13 -0
- package/package.json +1 -1
- package/lib/autocompletado/autocompletado.d.ts +0 -23
- package/lib/campo-numero/campo-numero.d.ts +0 -21
- package/lib/campo-texto/campo-texto.d.ts +0 -26
- package/lib/casilla/casilla.d.ts +0 -23
- package/lib/deslizador/deslizador.d.ts +0 -23
- package/lib/dialogo/dialogo.d.ts +0 -17
- package/lib/grupo-radio/grupo-radio.d.ts +0 -26
- package/lib/interruptor/interruptor.d.ts +0 -19
- package/lib/lista-transferencia/lista-transferencia.d.ts +0 -17
- package/lib/mensaje-emergente/mensaje-emergente.d.ts +0 -16
- package/lib/notificacion/notificacion.d.ts +0 -24
- package/lib/selector/selector.d.ts +0 -25
package/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),H=require("react"),fe=require("@mui/system"),_g=require("@emotion/styled");require("@emotion/react");const Lo=require("react-dom"),Fe=require("@mui/material"),Gs=require("@mui/icons-material");function Up(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const O=Up(H),Ug=Up(Lo),Hg={};function qg(){return m.jsx("div",{className:Hg.container,children:m.jsx("h1",{children:"Welcome to Ui!"})})}function Gg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ai={exports:{}},li={exports:{}},Ye={};var Gc;function Kg(){if(Gc)return Ye;Gc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function S(T){if(typeof T=="object"&&T!==null){var P=T.$$typeof;switch(P){case t:switch(T=T.type,T){case c:case u:case r:case s:case i:case p:return T;default:switch(T=T&&T.$$typeof,T){case l:case d:case g:case b:case a:return T;default:return P}}case n:return P}}}function x(T){return S(T)===u}return Ye.AsyncMode=c,Ye.ConcurrentMode=u,Ye.ContextConsumer=l,Ye.ContextProvider=a,Ye.Element=t,Ye.ForwardRef=d,Ye.Fragment=r,Ye.Lazy=g,Ye.Memo=b,Ye.Portal=n,Ye.Profiler=s,Ye.StrictMode=i,Ye.Suspense=p,Ye.isAsyncMode=function(T){return x(T)||S(T)===c},Ye.isConcurrentMode=x,Ye.isContextConsumer=function(T){return S(T)===l},Ye.isContextProvider=function(T){return S(T)===a},Ye.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Ye.isForwardRef=function(T){return S(T)===d},Ye.isFragment=function(T){return S(T)===r},Ye.isLazy=function(T){return S(T)===g},Ye.isMemo=function(T){return S(T)===b},Ye.isPortal=function(T){return S(T)===n},Ye.isProfiler=function(T){return S(T)===s},Ye.isStrictMode=function(T){return S(T)===i},Ye.isSuspense=function(T){return S(T)===p},Ye.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===r||T===u||T===s||T===i||T===p||T===f||typeof T=="object"&&T!==null&&(T.$$typeof===g||T.$$typeof===b||T.$$typeof===a||T.$$typeof===l||T.$$typeof===d||T.$$typeof===v||T.$$typeof===w||T.$$typeof===C||T.$$typeof===h)},Ye.typeOf=S,Ye}var Xe={};var Kc;function Yg(){return Kc||(Kc=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function S(_){return typeof _=="string"||typeof _=="function"||_===r||_===u||_===s||_===i||_===p||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===b||_.$$typeof===a||_.$$typeof===l||_.$$typeof===d||_.$$typeof===v||_.$$typeof===w||_.$$typeof===C||_.$$typeof===h)}function x(_){if(typeof _=="object"&&_!==null){var ae=_.$$typeof;switch(ae){case t:var ue=_.type;switch(ue){case c:case u:case r:case s:case i:case p:return ue;default:var he=ue&&ue.$$typeof;switch(he){case l:case d:case g:case b:case a:return he;default:return ae}}case n:return ae}}}var T=c,P=u,j=l,R=a,k=t,I=d,A=r,y=g,N=b,M=n,L=s,E=i,V=p,F=!1;function W(_){return F||(F=!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.")),D(_)||x(_)===c}function D(_){return x(_)===u}function $(_){return x(_)===l}function Z(_){return x(_)===a}function te(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function re(_){return x(_)===d}function J(_){return x(_)===r}function U(_){return x(_)===g}function ie(_){return x(_)===b}function de(_){return x(_)===n}function ne(_){return x(_)===s}function ee(_){return x(_)===i}function pe(_){return x(_)===p}Xe.AsyncMode=T,Xe.ConcurrentMode=P,Xe.ContextConsumer=j,Xe.ContextProvider=R,Xe.Element=k,Xe.ForwardRef=I,Xe.Fragment=A,Xe.Lazy=y,Xe.Memo=N,Xe.Portal=M,Xe.Profiler=L,Xe.StrictMode=E,Xe.Suspense=V,Xe.isAsyncMode=W,Xe.isConcurrentMode=D,Xe.isContextConsumer=$,Xe.isContextProvider=Z,Xe.isElement=te,Xe.isForwardRef=re,Xe.isFragment=J,Xe.isLazy=U,Xe.isMemo=ie,Xe.isPortal=de,Xe.isProfiler=ne,Xe.isStrictMode=ee,Xe.isSuspense=pe,Xe.isValidElementType=S,Xe.typeOf=x})()),Xe}var Yc;function Hp(){return Yc||(Yc=1,process.env.NODE_ENV==="production"?li.exports=Kg():li.exports=Yg()),li.exports}var Ks,Xc;function Xg(){if(Xc)return Ks;Xc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ks=i()?Object.assign:function(s,a){for(var l,c=r(s),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var p in l)t.call(l,p)&&(c[p]=l[p]);if(e){u=e(l);for(var f=0;f<u.length;f++)n.call(l,u[f])&&(c[u[f]]=l[u[f]])}}return c},Ks}var Ys,Zc;function El(){if(Zc)return Ys;Zc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ys=e,Ys}var Xs,Jc;function qp(){return Jc||(Jc=1,Xs=Function.call.bind(Object.prototype.hasOwnProperty)),Xs}var Zs,Qc;function Zg(){if(Qc)return Zs;Qc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=El(),n={},r=qp();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in s)if(r(s,d)){var p;try{if(typeof s[d]!="function"){var f=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}p=s[d](a,d,c,l,null,t)}catch(g){p=g}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var b=u?u():"";e("Failed "+l+" type: "+p.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Zs=i,Zs}var Js,eu;function Jg(){if(eu)return Js;eu=1;var e=Hp(),t=Xg(),n=El(),r=qp(),i=Zg(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Js=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(D){var $=D&&(u&&D[u]||D[d]);if(typeof $=="function")return $}var f="<<anonymous>>",b={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:C(),arrayOf:S,element:x(),elementType:T(),instanceOf:P,node:I(),objectOf:R,oneOf:j,oneOfType:k,shape:y,exact:N};function g(D,$){return D===$?D!==0||1/D===1/$:D!==D&&$!==$}function h(D,$){this.message=D,this.data=$&&typeof $=="object"?$:{},this.stack=""}h.prototype=Error.prototype;function v(D){if(process.env.NODE_ENV!=="production")var $={},Z=0;function te(J,U,ie,de,ne,ee,pe){if(de=de||f,ee=ee||ie,pe!==n){if(c){var _=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 _.name="Invariant Violation",_}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ae=de+":"+ie;!$[ae]&&Z<3&&(s("You are manually calling a React.PropTypes validation function for the `"+ee+"` prop on `"+de+"`. 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."),$[ae]=!0,Z++)}}return U[ie]==null?J?U[ie]===null?new h("The "+ne+" `"+ee+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new h("The "+ne+" `"+ee+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:D(U,ie,de,ne,ee)}var re=te.bind(null,!1);return re.isRequired=te.bind(null,!0),re}function w(D){function $(Z,te,re,J,U,ie){var de=Z[te],ne=E(de);if(ne!==D){var ee=V(de);return new h("Invalid "+J+" `"+U+"` of type "+("`"+ee+"` supplied to `"+re+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return v($)}function C(){return v(a)}function S(D){function $(Z,te,re,J,U){if(typeof D!="function")return new h("Property `"+U+"` of component `"+re+"` has invalid PropType notation inside arrayOf.");var ie=Z[te];if(!Array.isArray(ie)){var de=E(ie);return new h("Invalid "+J+" `"+U+"` of type "+("`"+de+"` supplied to `"+re+"`, expected an array."))}for(var ne=0;ne<ie.length;ne++){var ee=D(ie,ne,re,J,U+"["+ne+"]",n);if(ee instanceof Error)return ee}return null}return v($)}function x(){function D($,Z,te,re,J){var U=$[Z];if(!l(U)){var ie=E(U);return new h("Invalid "+re+" `"+J+"` of type "+("`"+ie+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return v(D)}function T(){function D($,Z,te,re,J){var U=$[Z];if(!e.isValidElementType(U)){var ie=E(U);return new h("Invalid "+re+" `"+J+"` of type "+("`"+ie+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return v(D)}function P(D){function $(Z,te,re,J,U){if(!(Z[te]instanceof D)){var ie=D.name||f,de=W(Z[te]);return new h("Invalid "+J+" `"+U+"` of type "+("`"+de+"` supplied to `"+re+"`, expected ")+("instance of `"+ie+"`."))}return null}return v($)}function j(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function $(Z,te,re,J,U){for(var ie=Z[te],de=0;de<D.length;de++)if(g(ie,D[de]))return null;var ne=JSON.stringify(D,function(pe,_){var ae=V(_);return ae==="symbol"?String(_):_});return new h("Invalid "+J+" `"+U+"` of value `"+String(ie)+"` "+("supplied to `"+re+"`, expected one of "+ne+"."))}return v($)}function R(D){function $(Z,te,re,J,U){if(typeof D!="function")return new h("Property `"+U+"` of component `"+re+"` has invalid PropType notation inside objectOf.");var ie=Z[te],de=E(ie);if(de!=="object")return new h("Invalid "+J+" `"+U+"` of type "+("`"+de+"` supplied to `"+re+"`, expected an object."));for(var ne in ie)if(r(ie,ne)){var ee=D(ie,ne,re,J,U+"."+ne,n);if(ee instanceof Error)return ee}return null}return v($)}function k(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var $=0;$<D.length;$++){var Z=D[$];if(typeof Z!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(Z)+" at index "+$+"."),a}function te(re,J,U,ie,de){for(var ne=[],ee=0;ee<D.length;ee++){var pe=D[ee],_=pe(re,J,U,ie,de,n);if(_==null)return null;_.data&&r(_.data,"expectedType")&&ne.push(_.data.expectedType)}var ae=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new h("Invalid "+ie+" `"+de+"` supplied to "+("`"+U+"`"+ae+"."))}return v(te)}function I(){function D($,Z,te,re,J){return M($[Z])?null:new h("Invalid "+re+" `"+J+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return v(D)}function A(D,$,Z,te,re){return new h((D||"React class")+": "+$+" type `"+Z+"."+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+re+"`.")}function y(D){function $(Z,te,re,J,U){var ie=Z[te],de=E(ie);if(de!=="object")return new h("Invalid "+J+" `"+U+"` of type `"+de+"` "+("supplied to `"+re+"`, expected `object`."));for(var ne in D){var ee=D[ne];if(typeof ee!="function")return A(re,J,U,ne,V(ee));var pe=ee(ie,ne,re,J,U+"."+ne,n);if(pe)return pe}return null}return v($)}function N(D){function $(Z,te,re,J,U){var ie=Z[te],de=E(ie);if(de!=="object")return new h("Invalid "+J+" `"+U+"` of type `"+de+"` "+("supplied to `"+re+"`, expected `object`."));var ne=t({},Z[te],D);for(var ee in ne){var pe=D[ee];if(r(D,ee)&&typeof pe!="function")return A(re,J,U,ee,V(pe));if(!pe)return new h("Invalid "+J+" `"+U+"` key `"+ee+"` supplied to `"+re+"`.\nBad object: "+JSON.stringify(Z[te],null," ")+`
|
|
2
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
3
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),le=require("react"),re=require("@mui/system"),Qs=require("@emotion/styled");require("@emotion/react");const W=require("@mui/material"),ur=require("react-dom"),Yo=require("nextstepjs"),Po=require("@mui/icons-material"),Yn=require("@codeplex-sac/inputs"),mt=require("@codeplex-sac/feedback");function sa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const E=sa(le),el=sa(ur),tl={};function rl(){return h.jsx("div",{className:tl.container,children:h.jsx("h1",{children:"Welcome to Ui!"})})}function ol(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ir={exports:{}},Nr={exports:{}},be={};var Kn;function nl(){if(Kn)return be;Kn=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function S(x){if(typeof x=="object"&&x!==null){var w=x.$$typeof;switch(w){case t:switch(x=x.type,x){case c:case u:case n:case a:case i:case m:return x;default:switch(x=x&&x.$$typeof,x){case l:case p:case g:case b:case s:return x;default:return w}}case r:return w}}}function v(x){return S(x)===u}return be.AsyncMode=c,be.ConcurrentMode=u,be.ContextConsumer=l,be.ContextProvider=s,be.Element=t,be.ForwardRef=p,be.Fragment=n,be.Lazy=g,be.Memo=b,be.Portal=r,be.Profiler=a,be.StrictMode=i,be.Suspense=m,be.isAsyncMode=function(x){return v(x)||S(x)===c},be.isConcurrentMode=v,be.isContextConsumer=function(x){return S(x)===l},be.isContextProvider=function(x){return S(x)===s},be.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},be.isForwardRef=function(x){return S(x)===p},be.isFragment=function(x){return S(x)===n},be.isLazy=function(x){return S(x)===g},be.isMemo=function(x){return S(x)===b},be.isPortal=function(x){return S(x)===r},be.isProfiler=function(x){return S(x)===a},be.isStrictMode=function(x){return S(x)===i},be.isSuspense=function(x){return S(x)===m},be.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===u||x===a||x===i||x===m||x===y||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===b||x.$$typeof===s||x.$$typeof===l||x.$$typeof===p||x.$$typeof===C||x.$$typeof===T||x.$$typeof===R||x.$$typeof===d)},be.typeOf=S,be}var ve={};var Xn;function il(){return Xn||(Xn=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function S(F){return typeof F=="string"||typeof F=="function"||F===n||F===u||F===a||F===i||F===m||F===y||typeof F=="object"&&F!==null&&(F.$$typeof===g||F.$$typeof===b||F.$$typeof===s||F.$$typeof===l||F.$$typeof===p||F.$$typeof===C||F.$$typeof===T||F.$$typeof===R||F.$$typeof===d)}function v(F){if(typeof F=="object"&&F!==null){var ce=F.$$typeof;switch(ce){case t:var ie=F.type;switch(ie){case c:case u:case n:case a:case i:case m:return ie;default:var te=ie&&ie.$$typeof;switch(te){case l:case p:case g:case b:case s:return te;default:return ce}}case r:return ce}}}var x=c,w=u,P=l,I=s,M=t,z=p,B=n,f=g,k=b,$=r,A=a,j=i,V=m,N=!1;function L(F){return N||(N=!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.")),O(F)||v(F)===c}function O(F){return v(F)===u}function _(F){return v(F)===l}function U(F){return v(F)===s}function H(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function Y(F){return v(F)===p}function Z(F){return v(F)===n}function Q(F){return v(F)===g}function ee(F){return v(F)===b}function X(F){return v(F)===r}function ne(F){return v(F)===a}function q(F){return v(F)===i}function oe(F){return v(F)===m}ve.AsyncMode=x,ve.ConcurrentMode=w,ve.ContextConsumer=P,ve.ContextProvider=I,ve.Element=M,ve.ForwardRef=z,ve.Fragment=B,ve.Lazy=f,ve.Memo=k,ve.Portal=$,ve.Profiler=A,ve.StrictMode=j,ve.Suspense=V,ve.isAsyncMode=L,ve.isConcurrentMode=O,ve.isContextConsumer=_,ve.isContextProvider=U,ve.isElement=H,ve.isForwardRef=Y,ve.isFragment=Z,ve.isLazy=Q,ve.isMemo=ee,ve.isPortal=X,ve.isProfiler=ne,ve.isStrictMode=q,ve.isSuspense=oe,ve.isValidElementType=S,ve.typeOf=v})()),ve}var Zn;function la(){return Zn||(Zn=1,process.env.NODE_ENV==="production"?Nr.exports=nl():Nr.exports=il()),Nr.exports}var $o,Jn;function al(){if(Jn)return $o;Jn=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(p){return s[p]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $o=i()?Object.assign:function(a,s){for(var l,c=n(a),u,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var m in l)t.call(l,m)&&(c[m]=l[m]);if(e){u=e(l);for(var y=0;y<u.length;y++)r.call(l,u[y])&&(c[u[y]]=l[u[y]])}}return c},$o}var jo,Qn;function xn(){if(Qn)return jo;Qn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jo=e,jo}var ko,ei;function ca(){return ei||(ei=1,ko=Function.call.bind(Object.prototype.hasOwnProperty)),ko}var Ao,ti;function sl(){if(ti)return Ao;ti=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=xn(),r={},n=ca();e=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(a,s,l,c,u){if(process.env.NODE_ENV!=="production"){for(var p in a)if(n(a,p)){var m;try{if(typeof a[p]!="function"){var y=Error((c||"React class")+": "+l+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}m=a[p](s,p,c,l,null,t)}catch(g){m=g}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var b=u?u():"";e("Failed "+l+" type: "+m.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ao=i,Ao}var Mo,ri;function ll(){if(ri)return Mo;ri=1;var e=la(),t=al(),r=xn(),n=ca(),i=sl(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return Mo=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function m(O){var _=O&&(u&&O[u]||O[p]);if(typeof _=="function")return _}var y="<<anonymous>>",b={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:R(),arrayOf:S,element:v(),elementType:x(),instanceOf:w,node:z(),objectOf:I,oneOf:P,oneOfType:M,shape:f,exact:k};function g(O,_){return O===_?O!==0||1/O===1/_:O!==O&&_!==_}function d(O,_){this.message=O,this.data=_&&typeof _=="object"?_:{},this.stack=""}d.prototype=Error.prototype;function C(O){if(process.env.NODE_ENV!=="production")var _={},U=0;function H(Z,Q,ee,X,ne,q,oe){if(X=X||y,q=q||ee,oe!==r){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 ce=X+":"+ee;!_[ce]&&U<3&&(a("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+X+"`. 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."),_[ce]=!0,U++)}}return Q[ee]==null?Z?Q[ee]===null?new d("The "+ne+" `"+q+"` is marked as required "+("in `"+X+"`, but its value is `null`.")):new d("The "+ne+" `"+q+"` is marked as required in "+("`"+X+"`, but its value is `undefined`.")):null:O(Q,ee,X,ne,q)}var Y=H.bind(null,!1);return Y.isRequired=H.bind(null,!0),Y}function T(O){function _(U,H,Y,Z,Q,ee){var X=U[H],ne=j(X);if(ne!==O){var q=V(X);return new d("Invalid "+Z+" `"+Q+"` of type "+("`"+q+"` supplied to `"+Y+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return C(_)}function R(){return C(s)}function S(O){function _(U,H,Y,Z,Q){if(typeof O!="function")return new d("Property `"+Q+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var ee=U[H];if(!Array.isArray(ee)){var X=j(ee);return new d("Invalid "+Z+" `"+Q+"` of type "+("`"+X+"` supplied to `"+Y+"`, expected an array."))}for(var ne=0;ne<ee.length;ne++){var q=O(ee,ne,Y,Z,Q+"["+ne+"]",r);if(q instanceof Error)return q}return null}return C(_)}function v(){function O(_,U,H,Y,Z){var Q=_[U];if(!l(Q)){var ee=j(Q);return new d("Invalid "+Y+" `"+Z+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return C(O)}function x(){function O(_,U,H,Y,Z){var Q=_[U];if(!e.isValidElementType(Q)){var ee=j(Q);return new d("Invalid "+Y+" `"+Z+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return C(O)}function w(O){function _(U,H,Y,Z,Q){if(!(U[H]instanceof O)){var ee=O.name||y,X=L(U[H]);return new d("Invalid "+Z+" `"+Q+"` of type "+("`"+X+"` supplied to `"+Y+"`, expected ")+("instance of `"+ee+"`."))}return null}return C(_)}function P(O){if(!Array.isArray(O))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.")),s;function _(U,H,Y,Z,Q){for(var ee=U[H],X=0;X<O.length;X++)if(g(ee,O[X]))return null;var ne=JSON.stringify(O,function(oe,F){var ce=V(F);return ce==="symbol"?String(F):F});return new d("Invalid "+Z+" `"+Q+"` of value `"+String(ee)+"` "+("supplied to `"+Y+"`, expected one of "+ne+"."))}return C(_)}function I(O){function _(U,H,Y,Z,Q){if(typeof O!="function")return new d("Property `"+Q+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var ee=U[H],X=j(ee);if(X!=="object")return new d("Invalid "+Z+" `"+Q+"` of type "+("`"+X+"` supplied to `"+Y+"`, expected an object."));for(var ne in ee)if(n(ee,ne)){var q=O(ee,ne,Y,Z,Q+"."+ne,r);if(q instanceof Error)return q}return null}return C(_)}function M(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var _=0;_<O.length;_++){var U=O[_];if(typeof U!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+N(U)+" at index "+_+"."),s}function H(Y,Z,Q,ee,X){for(var ne=[],q=0;q<O.length;q++){var oe=O[q],F=oe(Y,Z,Q,ee,X,r);if(F==null)return null;F.data&&n(F.data,"expectedType")&&ne.push(F.data.expectedType)}var ce=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new d("Invalid "+ee+" `"+X+"` supplied to "+("`"+Q+"`"+ce+"."))}return C(H)}function z(){function O(_,U,H,Y,Z){return $(_[U])?null:new d("Invalid "+Y+" `"+Z+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return C(O)}function B(O,_,U,H,Y){return new d((O||"React class")+": "+_+" type `"+U+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function f(O){function _(U,H,Y,Z,Q){var ee=U[H],X=j(ee);if(X!=="object")return new d("Invalid "+Z+" `"+Q+"` of type `"+X+"` "+("supplied to `"+Y+"`, expected `object`."));for(var ne in O){var q=O[ne];if(typeof q!="function")return B(Y,Z,Q,ne,V(q));var oe=q(ee,ne,Y,Z,Q+"."+ne,r);if(oe)return oe}return null}return C(_)}function k(O){function _(U,H,Y,Z,Q){var ee=U[H],X=j(ee);if(X!=="object")return new d("Invalid "+Z+" `"+Q+"` of type `"+X+"` "+("supplied to `"+Y+"`, expected `object`."));var ne=t({},U[H],O);for(var q in ne){var oe=O[q];if(n(O,q)&&typeof oe!="function")return B(Y,Z,Q,q,V(oe));if(!oe)return new d("Invalid "+Z+" `"+Q+"` key `"+q+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(U[H],null," ")+`
|
|
2
|
+
Valid keys: `+JSON.stringify(Object.keys(O),null," "));var F=oe(ee,q,Y,Z,Q+"."+q,r);if(F)return F}return null}return C(_)}function $(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every($);if(O===null||l(O))return!0;var _=m(O);if(_){var U=_.call(O),H;if(_!==O.entries){for(;!(H=U.next()).done;)if(!$(H.value))return!1}else for(;!(H=U.next()).done;){var Y=H.value;if(Y&&!$(Y[1]))return!1}}else return!1;return!0;default:return!1}}function A(O,_){return O==="symbol"?!0:_?_["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&_ instanceof Symbol:!1}function j(O){var _=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":A(_,O)?"symbol":_}function V(O){if(typeof O>"u"||O===null)return""+O;var _=j(O);if(_==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return _}function N(O){var _=V(O);switch(_){case"array":case"object":return"an "+_;case"boolean":case"date":case"regexp":return"a "+_;default:return _}}function L(O){return!O.constructor||!O.constructor.name?y:O.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Mo}var Io,oi;function cl(){if(oi)return Io;oi=1;var e=xn();function t(){}function r(){}return r.resetWarningCache=t,Io=function(){function n(s,l,c,u,p,m){if(m!==e){var y=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 y.name="Invariant Violation",y}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Io}var ni;function ul(){if(ni)return Ir.exports;if(ni=1,process.env.NODE_ENV!=="production"){var e=la(),t=!0;Ir.exports=ll()(e.isElement,t)}else Ir.exports=cl()();return Ir.exports}var pl=ul();const o=ol(pl);function ua(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=ua(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function se(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=ua(e))&&(n&&(n+=" "),n+=t);return n}function Gr(e,t,r=!1){const n={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=i;if(a==="components"||a==="slots")n[a]={...e[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)n[a]=s||{};else if(!s)n[a]=l;else{n[a]={...l};for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)){const u=c;n[a][u]=Gr(s[u],l[u],r)}}}else a==="className"&&r&&t.className?n.className=se(e?.className,t?.className):a==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[a]===void 0&&(n[a]=e[a])}return n}function $e(e,t,r=void 0){const n={};for(const i in e){const a=e[i];let s="",l=!0;for(let c=0;c<a.length;c+=1){const u=a[c];u&&(s+=(l===!0?"":" ")+t(u),l=!1,r&&r[u]&&(s+=" "+r[u]))}n[i]=s}return n}const ii=e=>e,dl=()=>{let e=ii;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ii}}},pa=dl();function bt(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function G(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":bt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ai(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}var Br={exports:{}},Se={};var si;function fl(){if(si)return Se;si=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function g(d){if(typeof d=="object"&&d!==null){var C=d.$$typeof;switch(C){case e:switch(d=d.type,d){case r:case i:case n:case c:case u:case y:return d;default:switch(d=d&&d.$$typeof,d){case s:case l:case m:case p:return d;case a:return d;default:return C}}case t:return C}}}return Se.ContextConsumer=a,Se.ContextProvider=s,Se.Element=e,Se.ForwardRef=l,Se.Fragment=r,Se.Lazy=m,Se.Memo=p,Se.Portal=t,Se.Profiler=i,Se.StrictMode=n,Se.Suspense=c,Se.SuspenseList=u,Se.isContextConsumer=function(d){return g(d)===a},Se.isContextProvider=function(d){return g(d)===s},Se.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},Se.isForwardRef=function(d){return g(d)===l},Se.isFragment=function(d){return g(d)===r},Se.isLazy=function(d){return g(d)===m},Se.isMemo=function(d){return g(d)===p},Se.isPortal=function(d){return g(d)===t},Se.isProfiler=function(d){return g(d)===i},Se.isStrictMode=function(d){return g(d)===n},Se.isSuspense=function(d){return g(d)===c},Se.isSuspenseList=function(d){return g(d)===u},Se.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===c||d===u||typeof d=="object"&&d!==null&&(d.$$typeof===m||d.$$typeof===p||d.$$typeof===s||d.$$typeof===a||d.$$typeof===l||d.$$typeof===b||d.getModuleId!==void 0)},Se.typeOf=g,Se}var Oe={};var li;function ml(){return li||(li=1,process.env.NODE_ENV!=="production"&&(function(){function e(d){if(typeof d=="object"&&d!==null){var C=d.$$typeof;switch(C){case t:switch(d=d.type,d){case n:case a:case i:case u:case p:case b:return d;default:switch(d=d&&d.$$typeof,d){case l:case c:case y:case m:return d;case s:return d;default:return C}}case r:return C}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Oe.ContextConsumer=s,Oe.ContextProvider=l,Oe.Element=t,Oe.ForwardRef=c,Oe.Fragment=n,Oe.Lazy=y,Oe.Memo=m,Oe.Portal=r,Oe.Profiler=a,Oe.StrictMode=i,Oe.Suspense=u,Oe.SuspenseList=p,Oe.isContextConsumer=function(d){return e(d)===s},Oe.isContextProvider=function(d){return e(d)===l},Oe.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},Oe.isForwardRef=function(d){return e(d)===c},Oe.isFragment=function(d){return e(d)===n},Oe.isLazy=function(d){return e(d)===y},Oe.isMemo=function(d){return e(d)===m},Oe.isPortal=function(d){return e(d)===r},Oe.isProfiler=function(d){return e(d)===a},Oe.isStrictMode=function(d){return e(d)===i},Oe.isSuspense=function(d){return e(d)===u},Oe.isSuspenseList=function(d){return e(d)===p},Oe.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===a||d===i||d===u||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===y||d.$$typeof===m||d.$$typeof===l||d.$$typeof===s||d.$$typeof===c||d.$$typeof===g||d.getModuleId!==void 0)},Oe.typeOf=e})()),Oe}var ci;function hl(){return ci||(ci=1,process.env.NODE_ENV==="production"?Br.exports=fl():Br.exports=ml()),Br.exports}var vr=hl();function pt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function da(e){if(E.isValidElement(e)||vr.isValidElementType(e)||!pt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=da(e[r])}),t}function Ze(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return pt(e)&&pt(t)&&Object.keys(t).forEach(i=>{E.isValidElement(t[i])||vr.isValidElementType(t[i])?n[i]=t[i]:pt(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&pt(e[i])?n[i]=Ze(e[i],t[i],r):r.clone?n[i]=pt(t[i])?da(t[i]):t[i]:n[i]=t[i]}),n}function hr(e,t){return t?Ze(e,t,{clone:!1}):e}const $t=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function ui(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{const a=/min-width:\s*([0-9.]+)/;return+(n.match(a)?.[1]||0)-+(i.match(a)?.[1]||0)});return r.length?r.reduce((n,i)=>{const a=t[i];return delete n[i],n[i]=a,n},{...t}):t}function gl(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function yl(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
3
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:bt(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function bl(e){const t=(a,s)=>a.replace("@media",s?`@container ${s}`:"@container");function r(a,s){a.up=(...l)=>t(e.breakpoints.up(...l),s),a.down=(...l)=>t(e.breakpoints.down(...l),s),a.between=(...l)=>t(e.breakpoints.between(...l),s),a.only=(...l)=>t(e.breakpoints.only(...l),s),a.not=(...l)=>{const c=t(e.breakpoints.not(...l),s);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={},i=a=>(r(n,a),n);return r(i),{...e,containerQueries:i}}const io={xs:0,sm:600,md:900,lg:1200,xl:1536},pi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${io[e]}px)`},vl={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:io[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function vt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||pi;return t.reduce((s,l,c)=>(s[a.up(a.keys[c])]=r(t[c]),s),{})}if(typeof t=="object"){const a=n.breakpoints||pi;return Object.keys(t).reduce((s,l)=>{if(gl(a.keys,l)){const c=yl(n.containerQueries?n:vl,l);c&&(s[c]=r(t[l],l))}else if(Object.keys(a.values||io).includes(l)){const c=a.up(l);s[c]=r(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return r(t)}function xl(e={}){return e.keys?.reduce((r,n)=>{const i=e.up(n);return r[i]={},r},{})||{}}function di(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function ao(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Yr(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=ao(e,r)||n,t&&(i=t(i,n,e)),i}function De(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=s=>{if(s[t]==null)return null;const l=s[t],c=s.theme,u=ao(c,n)||{};return vt(s,l,m=>{let y=Yr(u,i,m);return m===y&&typeof m=="string"&&(y=Yr(u,i,`${t}${m==="default"?"":G(m)}`,m)),r===!1?y:{[r]:y}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:$t}:{},a.filterProps=[t],a}function Cl(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Tl={m:"margin",p:"padding"},wl={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},El=Cl(e=>{if(e.length>2)if(fi[e])e=fi[e];else return[e];const[t,r]=e.split(""),n=Tl[t],i=wl[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),so=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],lo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Sl=[...so,...lo];function Sr(e,t,r,n){const i=ao(e,t,!0)??r;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`),typeof i=="string"?i.startsWith("var(")&&a===0?0:i.startsWith("var(")&&a===1?i:`calc(${a} * ${i})`:i*a):Array.isArray(i)?a=>{if(typeof a=="string")return a;const s=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
4
4
|
`)):console.error([`MUI: The \`theme.${t}\` 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.${t}\` as a number.`].join(`
|
|
5
|
-
`)));const l=i[
|
|
6
|
-
`)),()=>{})}function
|
|
7
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
8
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:
|
|
9
|
-
`))}return
|
|
10
|
-
The color object needs to have a \`main\` property or a \`${
|
|
11
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
5
|
+
`)));const l=i[s];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
6
|
+
`)),()=>{})}function Cn(e){return Sr(e,"spacing",8,"spacing")}function Or(e,t){return typeof t=="string"||t==null?t:e(t)}function Ol(e,t){return r=>e.reduce((n,i)=>(n[i]=Or(t,r),n),{})}function Rl(e,t,r,n){if(!t.includes(r))return null;const i=El(r),a=Ol(i,n),s=e[r];return vt(e,s,a)}function fa(e,t){const r=Cn(e.theme);return Object.keys(e).map(n=>Rl(e,t,n,r)).reduce(hr,{})}function Me(e){return fa(e,so)}Me.propTypes=process.env.NODE_ENV!=="production"?so.reduce((e,t)=>(e[t]=$t,e),{}):{};Me.filterProps=so;function Ie(e){return fa(e,lo)}Ie.propTypes=process.env.NODE_ENV!=="production"?lo.reduce((e,t)=>(e[t]=$t,e),{}):{};Ie.filterProps=lo;process.env.NODE_ENV!=="production"&&Sl.reduce((e,t)=>(e[t]=$t,e),{});function co(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?hr(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function et(e){return typeof e!="number"?e:`${e}px solid`}function nt(e,t){return De({prop:e,themeKey:"borders",transform:t})}const Pl=nt("border",et),$l=nt("borderTop",et),jl=nt("borderRight",et),kl=nt("borderBottom",et),Al=nt("borderLeft",et),Ml=nt("borderColor"),Il=nt("borderTopColor"),Nl=nt("borderRightColor"),Bl=nt("borderBottomColor"),Dl=nt("borderLeftColor"),zl=nt("outline",et),Fl=nt("outlineColor"),uo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Sr(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Or(t,n)});return vt(e,e.borderRadius,r)}return null};uo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:$t}:{};uo.filterProps=["borderRadius"];co(Pl,$l,jl,kl,Al,Ml,Il,Nl,Bl,Dl,uo,zl,Fl);const po=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Sr(e.theme,"spacing",8,"gap"),r=n=>({gap:Or(t,n)});return vt(e,e.gap,r)}return null};po.propTypes=process.env.NODE_ENV!=="production"?{gap:$t}:{};po.filterProps=["gap"];const fo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Sr(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Or(t,n)});return vt(e,e.columnGap,r)}return null};fo.propTypes=process.env.NODE_ENV!=="production"?{columnGap:$t}:{};fo.filterProps=["columnGap"];const mo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Sr(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Or(t,n)});return vt(e,e.rowGap,r)}return null};mo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:$t}:{};mo.filterProps=["rowGap"];const _l=De({prop:"gridColumn"}),Vl=De({prop:"gridRow"}),Ll=De({prop:"gridAutoFlow"}),Wl=De({prop:"gridAutoColumns"}),Hl=De({prop:"gridAutoRows"}),Ul=De({prop:"gridTemplateColumns"}),ql=De({prop:"gridTemplateRows"}),Gl=De({prop:"gridTemplateAreas"}),Yl=De({prop:"gridArea"});co(po,fo,mo,_l,Vl,Ll,Wl,Hl,Ul,ql,Gl,Yl);function Xt(e,t){return t==="grey"?t:e}const Kl=De({prop:"color",themeKey:"palette",transform:Xt}),Xl=De({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xt}),Zl=De({prop:"backgroundColor",themeKey:"palette",transform:Xt});co(Kl,Xl,Zl);function Xe(e){return e<=1&&e!==0?`${e*100}%`:e}const Jl=De({prop:"width",transform:Xe}),Tn=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||io[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Xe(r)}};return vt(e,e.maxWidth,t)}return null};Tn.filterProps=["maxWidth"];const Ql=De({prop:"minWidth",transform:Xe}),ec=De({prop:"height",transform:Xe}),tc=De({prop:"maxHeight",transform:Xe}),rc=De({prop:"minHeight",transform:Xe});De({prop:"size",cssProperty:"width",transform:Xe});De({prop:"size",cssProperty:"height",transform:Xe});const oc=De({prop:"boxSizing"});co(Jl,Tn,Ql,ec,tc,rc,oc);const Rr={border:{themeKey:"borders",transform:et},borderTop:{themeKey:"borders",transform:et},borderRight:{themeKey:"borders",transform:et},borderBottom:{themeKey:"borders",transform:et},borderLeft:{themeKey:"borders",transform:et},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:et},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:uo},color:{themeKey:"palette",transform:Xt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xt},backgroundColor:{themeKey:"palette",transform:Xt},p:{style:Ie},pt:{style:Ie},pr:{style:Ie},pb:{style:Ie},pl:{style:Ie},px:{style:Ie},py:{style:Ie},padding:{style:Ie},paddingTop:{style:Ie},paddingRight:{style:Ie},paddingBottom:{style:Ie},paddingLeft:{style:Ie},paddingX:{style:Ie},paddingY:{style:Ie},paddingInline:{style:Ie},paddingInlineStart:{style:Ie},paddingInlineEnd:{style:Ie},paddingBlock:{style:Ie},paddingBlockStart:{style:Ie},paddingBlockEnd:{style:Ie},m:{style:Me},mt:{style:Me},mr:{style:Me},mb:{style:Me},ml:{style:Me},mx:{style:Me},my:{style:Me},margin:{style:Me},marginTop:{style:Me},marginRight:{style:Me},marginBottom:{style:Me},marginLeft:{style:Me},marginX:{style:Me},marginY:{style:Me},marginInline:{style:Me},marginInlineStart:{style:Me},marginInlineEnd:{style:Me},marginBlock:{style:Me},marginBlockStart:{style:Me},marginBlockEnd:{style:Me},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:po},rowGap:{style:mo},columnGap:{style:fo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Xe},maxWidth:{style:Tn},minWidth:{transform:Xe},height:{transform:Xe},maxHeight:{transform:Xe},minHeight:{transform:Xe},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 nc(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function ic(e,t){return typeof e=="function"?e(t):e}function ac(){function e(r,n,i,a){const s={[r]:n,theme:i},l=a[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:p,style:m}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const y=ao(i,u)||{};return m?m(s):vt(s,n,g=>{let d=Yr(y,p,g);return g===d&&typeof g=="string"&&(d=Yr(y,p,`${r}${g==="default"?"":G(g)}`,g)),c===!1?d:{[c]:d}})}function t(r){const{sx:n,theme:i={},nested:a}=r||{};if(!n)return null;const s=i.unstable_sxConfig??Rr;function l(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const p=xl(i.breakpoints),m=Object.keys(p);let y=p;return Object.keys(u).forEach(b=>{const g=ic(u[b],i);if(g!=null)if(typeof g=="object")if(s[b])y=hr(y,e(b,g,i,s));else{const d=vt({theme:i},g,C=>({[b]:C}));nc(d,g)?y[b]=t({sx:g,theme:i,nested:!0}):y=hr(y,d)}else y=hr(y,e(b,g,i,s))}),!a&&i.modularCssLayers?{"@layer sx":ui(i,di(m,y))}:ui(i,di(m,y))}return Array.isArray(n)?n.map(l):l(n)}return t}const Zt=ac();Zt.filterProps=["sx"];const sc=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??Rr;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function lc(e){const{sx:t,...r}=e,{systemProps:n,otherProps:i}=sc(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...s)=>{const l=t(...s);return pt(l)?{...n,...l}:n}:a={...n,...t},{...i,sx:a}}function ma(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function wn(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),ma(e,t,r)}function cc(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.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.`),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function St(e){if(e.type)return e;if(e.charAt(0)==="#")return St(cc(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
7
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:bt(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=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(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
|
|
8
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:bt(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const uc=e=>{const t=St(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},pr=(e,t)=>{try{return uc(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ho(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function ha(e){e=St(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),s=(u,p=(u+r/30)%12)=>i-a*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),ho({type:l,values:c})}function Ko(e){e=St(e);let t=e.type==="hsl"||e.type==="hsla"?St(ha(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function mi(e,t){const r=Ko(e),n=Ko(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Kr(e,t){return e=St(e),t=wn(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ho(e)}function kt(e,t,r){try{return Kr(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function go(e,t){if(e=St(e),t=wn(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ho(e)}function xe(e,t,r){try{return go(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function yo(e,t){if(e=St(e),t=wn(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ho(e)}function Ce(e,t,r){try{return yo(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function pc(e,t=.15){return Ko(e)>.5?go(e,t):yo(e,t)}function Dr(e,t,r){try{return pc(e,t)}catch{return e}}const xr={black:"#000",white:"#fff"},dc={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"},Wt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ht={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ar={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ut={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},qt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Gt={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function ga(){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:xr.white,default:xr.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 ya=ga();function ba(){return{text:{primary:xr.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:xr.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 Xo=ba();function hi(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=yo(e.main,i):t==="dark"&&(e.dark=go(e.main,a)))}function gi(e,t,r,n,i){const a=i.light||i,s=i.dark||i*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function fc(e="light"){return e==="dark"?{main:Ut[200],light:Ut[50],dark:Ut[400]}:{main:Ut[700],light:Ut[400],dark:Ut[800]}}function mc(e="light"){return e==="dark"?{main:Wt[200],light:Wt[50],dark:Wt[400]}:{main:Wt[500],light:Wt[300],dark:Wt[700]}}function hc(e="light"){return e==="dark"?{main:Ht[500],light:Ht[300],dark:Ht[700]}:{main:Ht[700],light:Ht[400],dark:Ht[800]}}function gc(e="light"){return e==="dark"?{main:qt[400],light:qt[300],dark:qt[700]}:{main:qt[700],light:qt[500],dark:qt[900]}}function yc(e="light"){return e==="dark"?{main:Gt[400],light:Gt[300],dark:Gt[700]}:{main:Gt[800],light:Gt[500],dark:Gt[900]}}function bc(e="light"){return e==="dark"?{main:ar[400],light:ar[300],dark:ar[700]}:{main:"#ed6c02",light:ar[500],dark:ar[900]}}function vc(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function En(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:i,...a}=e,s=e.primary||fc(t),l=e.secondary||mc(t),c=e.error||hc(t),u=e.info||gc(t),p=e.success||yc(t),m=e.warning||bc(t);function y(C){if(i)return vc(C);const T=mi(C,Xo.text.primary)>=r?Xo.text.primary:ya.text.primary;if(process.env.NODE_ENV!=="production"){const R=mi(C,T);R<3&&console.error([`MUI: The contrast ratio of ${R}:1 for ${T} on ${C}`,"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(`
|
|
9
|
+
`))}return T}const b=({color:C,name:T,mainShade:R=500,lightShade:S=300,darkShade:v=700})=>{if(C={...C},!C.main&&C[R]&&(C.main=C[R]),!C.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${T?` (${T})`:""} provided to augmentColor(color) is invalid.
|
|
10
|
+
The color object needs to have a \`main\` property or a \`${R}\` property.`:bt(11,T?` (${T})`:"",R));if(typeof C.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${T?` (${T})`:""} provided to augmentColor(color) is invalid.
|
|
11
|
+
\`color.main\` should be a string, but \`${JSON.stringify(C.main)}\` was provided instead.
|
|
12
12
|
|
|
13
13
|
Did you intend to use one of the following approaches?
|
|
14
14
|
|
|
@@ -20,21 +20,21 @@ const theme1 = createTheme({ palette: {
|
|
|
20
20
|
|
|
21
21
|
const theme2 = createTheme({ palette: {
|
|
22
22
|
primary: { main: green[500] },
|
|
23
|
-
} });`:
|
|
24
|
-
`)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}function by(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const bu=[];function fo(e){return bu[0]=e,my(bu)}const yy="exact-prop: ";function Al(e){return process.env.NODE_ENV==="production"?e:{...e,[yy]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const nn=typeof window<"u"?O.useLayoutEffect:O.useEffect,vy=O.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const tr=()=>O.useContext(vy)??!1,xy=O.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function wy(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?$i(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?$i(i,r,t.components.mergeClassNameAndStyle):r}function Cy({props:e,name:t}){const n=O.useContext(xy);return wy({props:e,name:t,theme:{components:n}})}let yu=0;function Sy(e){const[t,n]=O.useState(e),r=e||t;return O.useEffect(()=>{t==null&&(yu+=1,n(`mui-${yu}`))},[t]),r}const Ty={...O},vu=Ty.useId;function jn(e){if(vu!==void 0){const t=vu();return e??t}return Sy(e)}const Py=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Oy(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,s=Py(t),a=Object.keys(s);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function c(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,b){const g=a.indexOf(b);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:b)-r/100}${n})`}function d(f){return a.indexOf(f)+1<a.length?u(f,a[a.indexOf(f)+1]):l(f)}function p(f){const b=a.indexOf(f);return b===0?l(a[1]):b===a.length-1?c(a[b]):u(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:l,down:c,between:u,only:d,not:p,unit:n,...i}}const Ey={borderRadius:4};function Ry(e=8,t=Rl({spacing:e})){if(e.mui)return e;const n=(...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(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function ky(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function nf(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={},...a}=e,l=Oy(n),c=Ry(i);let u=At({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...Ey,...s}},a);return u=lb(u),u.applyStyles=ky,u=t.reduce((d,p)=>At(d,p),u),u.unstable_sxConfig={...Gr,...a?.unstable_sxConfig},u.unstable_sx=function(p){return Uo({sx:p,theme:this})},u}const xu=(e,t,n,r=[])=>{let i=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(i)?i[Number(s)]=n:i&&typeof i=="object"&&(i[s]=n):i&&typeof i=="object"&&(i[s]||(i[s]=r.includes(s)?[]:{}),i=i[s])})},Iy=(e,t,n)=>{function r(i,s=[],a=[]){Object.entries(i).forEach(([l,c])=>{(!n||n&&!n([...s,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...s,l],Array.isArray(c)?[...a,l]:a):t([...s,l],c,a))})}r(e)},My=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ta(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},s={},a={};return Iy(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,p=My(l,c);Object.assign(i,{[d]:p}),xu(s,l,`var(${d})`,u),xu(a,l,`var(${d}, ${p})`,u)}},l=>l[0]==="vars"),{css:i,vars:s,varsWithDefaults:a}}function Ay(e,t={}){const{getSelector:n=w,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:f}=ta(u,t);let b=f;const g={},{[c]:h,...v}=a;if(Object.entries(v||{}).forEach(([x,T])=>{const{vars:P,css:j,varsWithDefaults:R}=ta(T,t);b=At(b,R),g[x]={css:j,vars:P}}),h){const{css:x,vars:T,varsWithDefaults:P}=ta(h,t);b=At(b,P),g[c]={css:x,vars:T}}function w(x,T){let P=i;if(i==="class"&&(P=".%s"),i==="data"&&(P="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(P=`[${i}="%s"]`),x){if(P==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${a[x]?.palette?.mode||x})`]:{":root":T}};if(P)return e.defaultColorScheme===x?`:root, ${P.replace("%s",String(x))}`:P.replace("%s",String(x))}return":root"}return{vars:b,generateThemeVars:()=>{let x={...d};return Object.entries(g).forEach(([,{vars:T}])=>{x=At(x,T)}),x},generateStyleSheets:()=>{const x=[],T=e.defaultColorScheme||"light";function P(k,I){Object.keys(I).length&&x.push(typeof k=="string"?{[k]:{...I}}:k)}P(n(void 0,{...p}),p);const{[T]:j,...R}=g;if(j){const{css:k}=j,I=a[T]?.palette?.mode,A=!r&&I?{colorScheme:I,...k}:{...k};P(n(T,{...A}),A)}return Object.entries(R).forEach(([k,{css:I}])=>{const A=a[k]?.palette?.mode,y=!r&&A?{colorScheme:A,...I}:{...I};P(n(k,{...y}),y)}),s&&x.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)"}}),x}}}function jy(e){const t={};return Object.entries(e).forEach(r=>{const[i,s]=r;typeof s=="object"&&(t[i]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function $y(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const Ny={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 Ee(e,t,n="Mui"){const r=Ny[t];return r?`${n}-${r}`:`${Kp.generate(e)}-${t}`}function Ly(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Dy(e){return Math.round(e*1e5)/1e5}const wu={textTransform:"uppercase"},Cu='"Roboto", "Helvetica", "Arial", sans-serif';function By(e,t){const{fontFamily:n=Cu,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...p}=typeof t=="function"?t(e):t;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,b=d||(v=>`${v/c*f}rem`),g=(v,w,C,S,x)=>({fontFamily:n,fontWeight:v,fontSize:b(w),lineHeight:C,...n===Cu?{letterSpacing:`${Dy(S/w)}em`}:{},...x,...u}),h={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,wu),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,wu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return At({htmlFontSize:c,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l,...h},p,{clone:!1})}const Vy=.2,Fy=.14,zy=.12;function ct(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Vy})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Fy})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${zy})`].join(",")}const Wy=["none",ct(0,2,1,-1,0,1,1,0,0,1,3,0),ct(0,3,1,-2,0,2,2,0,0,1,5,0),ct(0,3,3,-2,0,3,4,0,0,1,8,0),ct(0,2,4,-1,0,4,5,0,0,1,10,0),ct(0,3,5,-1,0,5,8,0,0,1,14,0),ct(0,3,5,-1,0,6,10,0,0,1,18,0),ct(0,4,5,-2,0,7,10,1,0,2,16,1),ct(0,5,5,-3,0,8,10,1,0,3,14,2),ct(0,5,6,-3,0,9,12,1,0,3,16,2),ct(0,6,6,-3,0,10,14,1,0,4,18,3),ct(0,6,7,-4,0,11,15,1,0,4,20,3),ct(0,7,8,-4,0,12,17,2,0,5,22,4),ct(0,7,8,-4,0,13,19,2,0,5,24,4),ct(0,7,9,-4,0,14,21,2,0,5,26,4),ct(0,8,9,-5,0,15,22,2,0,6,28,5),ct(0,8,10,-5,0,16,24,2,0,6,30,5),ct(0,8,11,-5,0,17,26,2,0,6,32,5),ct(0,9,11,-5,0,18,28,2,0,7,34,6),ct(0,9,12,-6,0,19,29,2,0,7,36,6),ct(0,10,13,-6,0,20,31,3,0,8,38,7),ct(0,10,13,-6,0,21,33,3,0,8,40,7),ct(0,10,14,-6,0,22,35,3,0,8,42,7),ct(0,11,14,-7,0,23,36,3,0,9,44,8),ct(0,11,15,-7,0,24,38,3,0,9,46,8)],_y={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)"},of={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Su(e){return`${Math.round(e)}ms`}function Uy(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Hy(e){const t={..._y,...e.easing},n={...of,...e.duration};return{getAutoHeightDuration:Uy,create:(i=["all"],s={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=s;if(process.env.NODE_ENV!=="production"){const d=f=>typeof f=="string",p=f=>!Number.isNaN(parseFloat(f));!d(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!p(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="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(`
|
|
25
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(
|
|
23
|
+
} });`:bt(12,T?` (${T})`:"",JSON.stringify(C.main)));return i?(gi(i,C,"light",S,n),gi(i,C,"dark",v,n)):(hi(C,"light",S,n),hi(C,"dark",v,n)),C.contrastText||(C.contrastText=y(C.main)),C};let g;return t==="light"?g=ga():t==="dark"&&(g=ba()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ze({common:{...xr},mode:t,primary:b({color:s,name:"primary"}),secondary:b({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:c,name:"error"}),warning:b({color:m,name:"warning"}),info:b({color:u,name:"info"}),success:b({color:p,name:"success"}),grey:dc,contrastThreshold:r,getContrastText:y,augmentColor:b,tonalOffset:n,...g},a)}function xc(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Cc={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};function Tc(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var wc=/[A-Z]|^ms/g,Ec=/_EMO_([^_]+?)_([^]*?)_EMO_/g,va=function(t){return t.charCodeAt(1)===45},yi=function(t){return t!=null&&typeof t!="boolean"},No=Tc(function(e){return va(e)?e:e.replace(wc,"-$&").toLowerCase()}),bi=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Ec,function(n,i,a){return Et={name:i,styles:a,next:Et},i})}return Cc[t]!==1&&!va(t)&&typeof r=="number"&&r!==0?r+"px":r};function Xr(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Et={name:i.name,styles:i.styles,next:Et},i.name;var a=r;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)Et={name:s.name,styles:s.styles,next:Et},s=s.next;var l=a.styles+";";return l}return Sc(e,t,r)}}var c=r;return c}function Sc(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Xr(e,t,r[i])+";";else for(var a in r){var s=r[a];if(typeof s!="object"){var l=s;yi(l)&&(n+=No(a)+":"+bi(a,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var c=0;c<s.length;c++)yi(s[c])&&(n+=No(a)+":"+bi(a,s[c])+";");else{var u=Xr(e,t,s);switch(a){case"animation":case"animationName":{n+=No(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}var vi=/label:\s*([^\s;{]+)\s*(;|$)/g,Et;function Oc(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Et=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,i+=Xr(r,t,a);else{var s=a;i+=s[0]}for(var l=1;l<e.length;l++)if(i+=Xr(r,t,e[l]),n){var c=a;i+=c[l]}vi.lastIndex=0;for(var u="",p;(p=vi.exec(i))!==null;)u+="-"+p[1];var m=xc(i)+u;return{name:m,styles:i,next:Et}}function Rc(e,t){const r=Qs(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
24
|
+
`)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}function Pc(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const xi=[];function zt(e){return xi[0]=e,Oc(xi)}const $c="exact-prop: ";function xa(e){return process.env.NODE_ENV==="production"?e:{...e,[$c]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}}}const Ot=typeof window<"u"?E.useLayoutEffect:E.useEffect,jc=E.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const bo=()=>E.useContext(jc)??!1,kc=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function Ac(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?Gr(i.defaultProps,n,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Gr(i,n,t.components.mergeClassNameAndStyle):n}function Mc({props:e,name:t}){const r=E.useContext(kc);return Ac({props:e,name:t,theme:{components:r}})}let Ci=0;function Ic(e){const[t,r]=E.useState(e),n=e||t;return E.useEffect(()=>{t==null&&(Ci+=1,r(`mui-${Ci}`))},[t]),n}const Nc={...E},Ti=Nc.useId;function Pr(e){if(Ti!==void 0){const t=Ti();return e??t}return Ic(e)}const Bc=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function Dc(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...i}=e,a=Bc(t),s=Object.keys(a);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r})`}function c(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-n/100}${r})`}function u(y,b){const g=s.indexOf(b);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:b)-n/100}${r})`}function p(y){return s.indexOf(y)+1<s.length?u(y,s[s.indexOf(y)+1]):l(y)}function m(y){const b=s.indexOf(y);return b===0?l(s[1]):b===s.length-1?c(s[b]):u(y,s[s.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:s,values:a,up:l,down:c,between:u,only:p,not:m,unit:r,...i}}const zc={borderRadius:4};function Fc(e=8,t=Cn({spacing:e})){if(e.mui)return e;const r=(...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(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function _c(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Ca(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={},...s}=e,l=Dc(r),c=Fc(i);let u=Ze({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...zc,...a}},s);return u=bl(u),u.applyStyles=_c,u=t.reduce((p,m)=>Ze(p,m),u),u.unstable_sxConfig={...Rr,...s?.unstable_sxConfig},u.unstable_sx=function(m){return Zt({sx:m,theme:this})},u}const wi=(e,t,r,n=[])=>{let i=e;t.forEach((a,s)=>{s===t.length-1?Array.isArray(i)?i[Number(a)]=r:i&&typeof i=="object"&&(i[a]=r):i&&typeof i=="object"&&(i[a]||(i[a]=n.includes(a)?[]:{}),i=i[a])})},Vc=(e,t,r)=>{function n(i,a=[],s=[]){Object.entries(i).forEach(([l,c])=>{(!r||r&&!r([...a,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...a,l],Array.isArray(c)?[...s,l]:s):t([...a,l],c,s))})}n(e)},Lc=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Bo(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},s={};return Vc(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(l,c))){const p=`--${r?`${r}-`:""}${l.join("-")}`,m=Lc(l,c);Object.assign(i,{[p]:m}),wi(a,l,`var(${p})`,u),wi(s,l,`var(${p}, ${m})`,u)}},l=>l[0]==="vars"),{css:i,vars:a,varsWithDefaults:s}}function Wc(e,t={}){const{getSelector:r=T,disableCssColorScheme:n,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...u}=e,{vars:p,css:m,varsWithDefaults:y}=Bo(u,t);let b=y;const g={},{[c]:d,...C}=s;if(Object.entries(C||{}).forEach(([v,x])=>{const{vars:w,css:P,varsWithDefaults:I}=Bo(x,t);b=Ze(b,I),g[v]={css:P,vars:w}}),d){const{css:v,vars:x,varsWithDefaults:w}=Bo(d,t);b=Ze(b,w),g[c]={css:v,vars:x}}function T(v,x){let w=i;if(i==="class"&&(w=".%s"),i==="data"&&(w="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(w=`[${i}="%s"]`),v){if(w==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${s[v]?.palette?.mode||v})`]:{":root":x}};if(w)return e.defaultColorScheme===v?`:root, ${w.replace("%s",String(v))}`:w.replace("%s",String(v))}return":root"}return{vars:b,generateThemeVars:()=>{let v={...p};return Object.entries(g).forEach(([,{vars:x}])=>{v=Ze(v,x)}),v},generateStyleSheets:()=>{const v=[],x=e.defaultColorScheme||"light";function w(M,z){Object.keys(z).length&&v.push(typeof M=="string"?{[M]:{...z}}:M)}w(r(void 0,{...m}),m);const{[x]:P,...I}=g;if(P){const{css:M}=P,z=s[x]?.palette?.mode,B=!n&&z?{colorScheme:z,...M}:{...M};w(r(x,{...B}),B)}return Object.entries(I).forEach(([M,{css:z}])=>{const B=s[M]?.palette?.mode,f=!n&&B?{colorScheme:B,...z}:{...z};w(r(M,{...f}),f)}),a&&v.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)"}}),v}}}function Hc(e){const t={};return Object.entries(e).forEach(n=>{const[i,a]=n;typeof a=="object"&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function Uc(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const qc={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 Te(e,t,r="Mui"){const n=qc[t];return n?`${r}-${n}`:`${pa.generate(e)}-${t}`}function Gc(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Yc(e){return Math.round(e*1e5)/1e5}const Ei={textTransform:"uppercase"},Si='"Roboto", "Helvetica", "Arial", sans-serif';function Kc(e,t){const{fontFamily:r=Si,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:p,...m}=typeof t=="function"?t(e):t;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 y=n/14,b=p||(C=>`${C/c*y}rem`),g=(C,T,R,S,v)=>({fontFamily:r,fontWeight:C,fontSize:b(T),lineHeight:R,...r===Si?{letterSpacing:`${Yc(S/T)}em`}:{},...v,...u}),d={h1:g(i,96,1.167,-1.5),h2:g(i,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(s,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(s,14,1.75,.4,Ei),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Ei),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ze({htmlFontSize:c,pxToRem:b,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l,...d},m,{clone:!1})}const Xc=.2,Zc=.14,Jc=.12;function ke(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Xc})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zc})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Jc})`].join(",")}const Qc=["none",ke(0,2,1,-1,0,1,1,0,0,1,3,0),ke(0,3,1,-2,0,2,2,0,0,1,5,0),ke(0,3,3,-2,0,3,4,0,0,1,8,0),ke(0,2,4,-1,0,4,5,0,0,1,10,0),ke(0,3,5,-1,0,5,8,0,0,1,14,0),ke(0,3,5,-1,0,6,10,0,0,1,18,0),ke(0,4,5,-2,0,7,10,1,0,2,16,1),ke(0,5,5,-3,0,8,10,1,0,3,14,2),ke(0,5,6,-3,0,9,12,1,0,3,16,2),ke(0,6,6,-3,0,10,14,1,0,4,18,3),ke(0,6,7,-4,0,11,15,1,0,4,20,3),ke(0,7,8,-4,0,12,17,2,0,5,22,4),ke(0,7,8,-4,0,13,19,2,0,5,24,4),ke(0,7,9,-4,0,14,21,2,0,5,26,4),ke(0,8,9,-5,0,15,22,2,0,6,28,5),ke(0,8,10,-5,0,16,24,2,0,6,30,5),ke(0,8,11,-5,0,17,26,2,0,6,32,5),ke(0,9,11,-5,0,18,28,2,0,7,34,6),ke(0,9,12,-6,0,19,29,2,0,7,36,6),ke(0,10,13,-6,0,20,31,3,0,8,38,7),ke(0,10,13,-6,0,21,33,3,0,8,40,7),ke(0,10,14,-6,0,22,35,3,0,8,42,7),ke(0,11,14,-7,0,23,36,3,0,9,44,8),ke(0,11,15,-7,0,24,38,3,0,9,46,8)],eu={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)"},Ta={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Oi(e){return`${Math.round(e)}ms`}function tu(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function ru(e){const t={...eu,...e.easing},r={...Ta,...e.duration};return{getAutoHeightDuration:tu,create:(i=["all"],a={})=>{const{duration:s=r.standard,easing:l=t.easeInOut,delay:c=0,...u}=a;if(process.env.NODE_ENV!=="production"){const p=y=>typeof y=="string",m=y=>!Number.isNaN(parseFloat(y));!p(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(s)&&!p(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),p(l)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!p(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(`
|
|
25
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(p=>`${p} ${typeof s=="string"?s:Oi(s)} ${l} ${typeof c=="string"?c:Oi(c)}`).join(",")},...e,easing:t,duration:r}}const ou={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function nu(e){return pt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function wa(e={}){const t={...e};function r(n){const i=Object.entries(n);for(let a=0;a<i.length;a++){const[s,l]=i[a];!nu(l)||s.startsWith("unstable_")?delete n[s]:pt(l)&&(n[s]={...l},r(n[s]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
26
26
|
|
|
27
27
|
const theme = ${JSON.stringify(t,null,2)};
|
|
28
28
|
|
|
29
29
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
30
30
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
31
31
|
|
|
32
|
-
export default theme;`}function
|
|
33
|
-
`))}
|
|
34
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function nv(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const fn=e=>{try{return e()}catch{}},ov=(e="mui")=>fe.unstable_createGetCssVar(e);function na(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const s=i==="dark"?"dark":"light";if(!r){t[i]=Zy({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=$a({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...sf(s),...n?.opacity},overlays:n?.overlays||af(s)},l}function rv(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=Jy,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],f=r||(n.light&&p!=="light"?"light":p),b=ov(s),{[f]:g,light:h,dark:v,...w}=n,C={...w};let S=g;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Cn(21,f));let x;a&&(x="oklch");const T=na(x,C,S,d,f);h&&!C.light&&na(x,C,h,void 0,"light"),v&&!C.dark&&na(x,C,v,void 0,"dark");let P={defaultColorScheme:f,...T,cssVarPrefix:s,colorSchemeSelector:c,rootSelector:u,getCssVar:b,colorSchemes:C,font:{...jy(T.typography),...T.font},spacing:nv(d.spacing)};Object.keys(P.colorSchemes).forEach(A=>{const y=P.colorSchemes[A].palette,N=L=>{const E=L.split("-"),V=E[1],F=E[2];return b(L,y[V][F])};y.mode==="light"&&(Y(y.common,"background","#fff"),Y(y.common,"onBackground","#000")),y.mode==="dark"&&(Y(y.common,"background","#000"),Y(y.common,"onBackground","#fff"));function M(L,E,V){if(x){let F;return L===to&&(F=`transparent ${((1-V)*100).toFixed(0)}%`),L===Qe&&(F=`#000 ${(V*100).toFixed(0)}%`),L===et&&(F=`#fff ${(V*100).toFixed(0)}%`),`color-mix(in ${x}, ${E}, ${F})`}return L(E,V)}if(tv(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){Y(y.Alert,"errorColor",M(Qe,y.error.light,.6)),Y(y.Alert,"infoColor",M(Qe,y.info.light,.6)),Y(y.Alert,"successColor",M(Qe,y.success.light,.6)),Y(y.Alert,"warningColor",M(Qe,y.warning.light,.6)),Y(y.Alert,"errorFilledBg",N("palette-error-main")),Y(y.Alert,"infoFilledBg",N("palette-info-main")),Y(y.Alert,"successFilledBg",N("palette-success-main")),Y(y.Alert,"warningFilledBg",N("palette-warning-main")),Y(y.Alert,"errorFilledColor",fn(()=>y.getContrastText(y.error.main))),Y(y.Alert,"infoFilledColor",fn(()=>y.getContrastText(y.info.main))),Y(y.Alert,"successFilledColor",fn(()=>y.getContrastText(y.success.main))),Y(y.Alert,"warningFilledColor",fn(()=>y.getContrastText(y.warning.main))),Y(y.Alert,"errorStandardBg",M(et,y.error.light,.9)),Y(y.Alert,"infoStandardBg",M(et,y.info.light,.9)),Y(y.Alert,"successStandardBg",M(et,y.success.light,.9)),Y(y.Alert,"warningStandardBg",M(et,y.warning.light,.9)),Y(y.Alert,"errorIconColor",N("palette-error-main")),Y(y.Alert,"infoIconColor",N("palette-info-main")),Y(y.Alert,"successIconColor",N("palette-success-main")),Y(y.Alert,"warningIconColor",N("palette-warning-main")),Y(y.AppBar,"defaultBg",N("palette-grey-100")),Y(y.Avatar,"defaultBg",N("palette-grey-400")),Y(y.Button,"inheritContainedBg",N("palette-grey-300")),Y(y.Button,"inheritContainedHoverBg",N("palette-grey-A100")),Y(y.Chip,"defaultBorder",N("palette-grey-400")),Y(y.Chip,"defaultAvatarColor",N("palette-grey-700")),Y(y.Chip,"defaultIconColor",N("palette-grey-700")),Y(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Y(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Y(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Y(y.LinearProgress,"primaryBg",M(et,y.primary.main,.62)),Y(y.LinearProgress,"secondaryBg",M(et,y.secondary.main,.62)),Y(y.LinearProgress,"errorBg",M(et,y.error.main,.62)),Y(y.LinearProgress,"infoBg",M(et,y.info.main,.62)),Y(y.LinearProgress,"successBg",M(et,y.success.main,.62)),Y(y.LinearProgress,"warningBg",M(et,y.warning.main,.62)),Y(y.Skeleton,"bg",x?M(to,y.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),Y(y.Slider,"primaryTrack",M(et,y.primary.main,.62)),Y(y.Slider,"secondaryTrack",M(et,y.secondary.main,.62)),Y(y.Slider,"errorTrack",M(et,y.error.main,.62)),Y(y.Slider,"infoTrack",M(et,y.info.main,.62)),Y(y.Slider,"successTrack",M(et,y.success.main,.62)),Y(y.Slider,"warningTrack",M(et,y.warning.main,.62));const L=x?M(Qe,y.background.default,.6825):ui(y.background.default,.8);Y(y.SnackbarContent,"bg",L),Y(y.SnackbarContent,"color",fn(()=>x?ja.text.primary:y.getContrastText(L))),Y(y.SpeedDialAction,"fabHoverBg",ui(y.background.paper,.15)),Y(y.StepConnector,"border",N("palette-grey-400")),Y(y.StepContent,"border",N("palette-grey-400")),Y(y.Switch,"defaultColor",N("palette-common-white")),Y(y.Switch,"defaultDisabledColor",N("palette-grey-100")),Y(y.Switch,"primaryDisabledColor",M(et,y.primary.main,.62)),Y(y.Switch,"secondaryDisabledColor",M(et,y.secondary.main,.62)),Y(y.Switch,"errorDisabledColor",M(et,y.error.main,.62)),Y(y.Switch,"infoDisabledColor",M(et,y.info.main,.62)),Y(y.Switch,"successDisabledColor",M(et,y.success.main,.62)),Y(y.Switch,"warningDisabledColor",M(et,y.warning.main,.62)),Y(y.TableCell,"border",M(et,M(to,y.divider,1),.88)),Y(y.Tooltip,"bg",M(to,y.grey[700],.92))}if(y.mode==="dark"){Y(y.Alert,"errorColor",M(et,y.error.light,.6)),Y(y.Alert,"infoColor",M(et,y.info.light,.6)),Y(y.Alert,"successColor",M(et,y.success.light,.6)),Y(y.Alert,"warningColor",M(et,y.warning.light,.6)),Y(y.Alert,"errorFilledBg",N("palette-error-dark")),Y(y.Alert,"infoFilledBg",N("palette-info-dark")),Y(y.Alert,"successFilledBg",N("palette-success-dark")),Y(y.Alert,"warningFilledBg",N("palette-warning-dark")),Y(y.Alert,"errorFilledColor",fn(()=>y.getContrastText(y.error.dark))),Y(y.Alert,"infoFilledColor",fn(()=>y.getContrastText(y.info.dark))),Y(y.Alert,"successFilledColor",fn(()=>y.getContrastText(y.success.dark))),Y(y.Alert,"warningFilledColor",fn(()=>y.getContrastText(y.warning.dark))),Y(y.Alert,"errorStandardBg",M(Qe,y.error.light,.9)),Y(y.Alert,"infoStandardBg",M(Qe,y.info.light,.9)),Y(y.Alert,"successStandardBg",M(Qe,y.success.light,.9)),Y(y.Alert,"warningStandardBg",M(Qe,y.warning.light,.9)),Y(y.Alert,"errorIconColor",N("palette-error-main")),Y(y.Alert,"infoIconColor",N("palette-info-main")),Y(y.Alert,"successIconColor",N("palette-success-main")),Y(y.Alert,"warningIconColor",N("palette-warning-main")),Y(y.AppBar,"defaultBg",N("palette-grey-900")),Y(y.AppBar,"darkBg",N("palette-background-paper")),Y(y.AppBar,"darkColor",N("palette-text-primary")),Y(y.Avatar,"defaultBg",N("palette-grey-600")),Y(y.Button,"inheritContainedBg",N("palette-grey-800")),Y(y.Button,"inheritContainedHoverBg",N("palette-grey-700")),Y(y.Chip,"defaultBorder",N("palette-grey-700")),Y(y.Chip,"defaultAvatarColor",N("palette-grey-300")),Y(y.Chip,"defaultIconColor",N("palette-grey-300")),Y(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Y(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Y(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Y(y.LinearProgress,"primaryBg",M(Qe,y.primary.main,.5)),Y(y.LinearProgress,"secondaryBg",M(Qe,y.secondary.main,.5)),Y(y.LinearProgress,"errorBg",M(Qe,y.error.main,.5)),Y(y.LinearProgress,"infoBg",M(Qe,y.info.main,.5)),Y(y.LinearProgress,"successBg",M(Qe,y.success.main,.5)),Y(y.LinearProgress,"warningBg",M(Qe,y.warning.main,.5)),Y(y.Skeleton,"bg",x?M(to,y.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),Y(y.Slider,"primaryTrack",M(Qe,y.primary.main,.5)),Y(y.Slider,"secondaryTrack",M(Qe,y.secondary.main,.5)),Y(y.Slider,"errorTrack",M(Qe,y.error.main,.5)),Y(y.Slider,"infoTrack",M(Qe,y.info.main,.5)),Y(y.Slider,"successTrack",M(Qe,y.success.main,.5)),Y(y.Slider,"warningTrack",M(Qe,y.warning.main,.5));const L=x?M(et,y.background.default,.985):ui(y.background.default,.98);Y(y.SnackbarContent,"bg",L),Y(y.SnackbarContent,"color",fn(()=>x?Qp.text.primary:y.getContrastText(L))),Y(y.SpeedDialAction,"fabHoverBg",ui(y.background.paper,.15)),Y(y.StepConnector,"border",N("palette-grey-600")),Y(y.StepContent,"border",N("palette-grey-600")),Y(y.Switch,"defaultColor",N("palette-grey-300")),Y(y.Switch,"defaultDisabledColor",N("palette-grey-600")),Y(y.Switch,"primaryDisabledColor",M(Qe,y.primary.main,.55)),Y(y.Switch,"secondaryDisabledColor",M(Qe,y.secondary.main,.55)),Y(y.Switch,"errorDisabledColor",M(Qe,y.error.main,.55)),Y(y.Switch,"infoDisabledColor",M(Qe,y.info.main,.55)),Y(y.Switch,"successDisabledColor",M(Qe,y.success.main,.55)),Y(y.Switch,"warningDisabledColor",M(Qe,y.warning.main,.55)),Y(y.TableCell,"border",M(Qe,M(to,y.divider,1),.68)),Y(y.Tooltip,"bg",M(to,y.grey[700],.92))}Pn(y.background,"default"),Pn(y.background,"paper"),Pn(y.common,"background"),Pn(y.common,"onBackground"),Pn(y,"divider"),Object.keys(y).forEach(L=>{const E=y[L];L!=="tonalOffset"&&E&&typeof E=="object"&&(E.main&&Y(y[L],"mainChannel",vr(xr(E.main))),E.light&&Y(y[L],"lightChannel",vr(xr(E.light))),E.dark&&Y(y[L],"darkChannel",vr(xr(E.dark))),E.contrastText&&Y(y[L],"contrastTextChannel",vr(xr(E.contrastText))),L==="text"&&(Pn(y[L],"primary"),Pn(y[L],"secondary")),L==="action"&&(E.active&&Pn(y[L],"active"),E.selected&&Pn(y[L],"selected")))})}),P=t.reduce((A,y)=>At(A,y),P);const j={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:ev(P),enableContrastVars:a},{vars:R,generateThemeVars:k,generateStyleSheets:I}=Ay(P,j);return P.vars=R,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([A,y])=>{P[A]=y}),P.generateThemeVars=k,P.generateStyleSheets=I,P.generateSpacing=function(){return fe.createSpacing(d.spacing,Rl(this))},P.getColorSchemeSelector=$y(c),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=l,P.unstable_sxConfig={...Gr,...d?.unstable_sxConfig},P.unstable_sx=function(y){return Uo({sx:y,theme:this})},P.toRuntimeSource=rf,P}function Pu(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ml({...n===!0?{}:n.palette,mode:t})})}function lf(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,l=s||"light",c=i?.[l],u={...i,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return $a(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const p=$a({...e,palette:d},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Pu(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Pu(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),rv({...a,colorSchemes:u,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const jl=lf(),vs="$$material";function _t(){const e=fe.useTheme(jl);return process.env.NODE_ENV!=="production"&&O.useDebugValue(e),e[vs]||e}function cf(e){return m.jsx(fe.GlobalStyles,{...e,defaultTheme:jl,themeId:vs})}process.env.NODE_ENV!=="production"&&(cf.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function uf(e,t=""){return e.displayName||e.name||t}function Ou(e,t,n){const r=uf(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function iv(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return uf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Hn.ForwardRef:return Ou(e,e.render,"ForwardRef");case Hn.Memo:return Ou(e,e.type,"memo");default:return}}}function sv(e){const{variants:t,...n}=e,r={variants:t,style:fo(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=fo(i.style))}),r}const av=nf();function oa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function lo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function lv(e){return e?(t,n)=>n[e]:null}function cv(e,t,n){e.theme=fv(e.theme)?n:e.theme[t]||e.theme}function Ti(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Ti(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?lo(r.style,n):r.style;else{const{variants:s,...a}=r;i=n?lo(fo(a),n):a}return df(e,r.variants,[i],n)}return r?.isProcessed?n?lo(fo(r.style),n):r.style:n?lo(fo(r),n):r}function df(e,t,n=[],r=void 0){let i;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(i))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?lo(fo(a.style(i)),r):a.style(i))):n.push(r?lo(fo(a.style),r):a.style)}return n}function uv(e={}){const{themeId:t,defaultTheme:n=av,rootShouldForwardProp:r=oa,slotShouldForwardProp:i=oa}=e;function s(l){cv(l,t,n)}return(l,c={})=>{by(l,P=>P.filter(j=>j!==Uo));const{name:u,slot:d,skipVariantsResolver:p,skipSx:f,overridesResolver:b=lv(pf(d)),...g}=c,h=u&&u.startsWith("Mui")||d?"components":"custom",v=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,w=f||!1;let C=oa;d==="Root"||d==="root"?C=r:d?C=i:hv(l)&&(C=void 0);const S=gy(l,{shouldForwardProp:C,label:pv(u,d),...g}),x=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(R){return Ti(R,P,R.theme.modularCssLayers?h:void 0)};if(bn(P)){const j=sv(P);return function(k){return j.variants?Ti(k,j,k.theme.modularCssLayers?h:void 0):k.theme.modularCssLayers?lo(j.style,h):j.style}}return P},T=(...P)=>{const j=[],R=P.map(x),k=[];if(j.push(s),u&&b&&k.push(function(N){const L=N.theme.components?.[u]?.styleOverrides;if(!L)return null;const E={};for(const V in L)E[V]=Ti(N,L[V],N.theme.modularCssLayers?"theme":void 0);return b(N,E)}),u&&!v&&k.push(function(N){const L=N.theme?.components?.[u]?.variants;return L?df(N,L,[],N.theme.modularCssLayers?"theme":void 0):null}),w||k.push(Uo),Array.isArray(R[0])){const y=R.shift(),N=new Array(j.length).fill(""),M=new Array(k.length).fill("");let L;L=[...N,...y,...M],L.raw=[...N,...y.raw,...M],j.unshift(L)}const I=[...j,...R,...k],A=S(...I);return l.muiName&&(A.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(A.displayName=dv(u,d,l)),A};return S.withConfig&&(T.withConfig=S.withConfig),T}}function dv(e,t,n){return e?`${e}${z(t||"")}`:`Styled(${iv(n)})`}function pv(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${pf(t||"Root")}`),n}function fv(e){for(const t in e)return!1;return!0}function hv(e){return typeof e=="string"&&e.charCodeAt(0)>96}function pf(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Kr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const kt=e=>Kr(e)&&e!=="classes",B=uv({themeId:vs,defaultTheme:jl,rootShouldForwardProp:kt});function mv(e){return function(n){return m.jsx(cf,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function gv(){return Jb}const ye=fe.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Ie(e){return Cy(e)}function Re(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ee(e,i,n)}),r}function bv(e){return Ee("MuiSvgIcon",e)}Re("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yv=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${z(t)}`,`fontSize${z(n)}`]};return ke(i,bv,r)},vv=B("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${z(n.color)}`],t[`fontSize${z(n.fontSize)}`]]}})(ye(({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:t=>!t.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(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.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}}]}))),Bi=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:f="0 0 24 24",...b}=r,g=O.isValidElement(i)&&i.type==="svg",h={...r,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:g},v={};d||(v.viewBox=f);const w=yv(h);return m.jsxs(vv,{as:l,className:ce(w.root,s),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...b,...g&&i.props,ownerState:h,children:[g?i.props.children:i,p?m.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Bi.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string});Bi.muiName="SvgIcon";function dt(e,t){function n(r,i){return m.jsx(Bi,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Bi.muiName,O.memo(O.forwardRef(n))}function ff(e,t=166){let n;function r(...i){const s=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function Rr(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function vt(e){return e&&e.ownerDocument||document}function Rn(e){return vt(e).defaultView||window}function La(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function xv(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const s=i||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function yn(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:s}=O.useRef(t!==void 0),[a,l]=O.useState(n),c=s?t:a;if(process.env.NODE_ENV!=="production"){O.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${i} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
35
|
-
`))},[i,
|
|
36
|
-
`))},[JSON.stringify(
|
|
37
|
-
`))}return!1}const Eu={};function mf(e,t){const n=O.useRef(Eu);return n.current===Eu&&(n.current=e(t)),n}class Vi{static create(){return new Vi}static use(){const t=mf(Vi.create).current,[n,r]=O.useState(!1);return t.shouldMount=n,t.setShouldMount=r,O.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Pv(),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(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function Tv(){return Vi.use()}function Pv(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Da.apply(null,arguments)}function gf(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ba(e,t){return Ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ba(e,t)}function bf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ba(e,t)}const Ru={disabled:!1};var Ov=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const Fi=H.createContext(null);var Ev=function(t){return t.scrollTop},wr="unmounted",ro="exited",io="entering",Ao="entered",Va="exiting",dn=(function(e){bf(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=i,l=a&&!a.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=ro,s.appearStatus=io):c=Ao:r.unmountOnExit||r.mountOnEnter?c=wr:c=ro,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===wr?{status:ro}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==io&&a!==Ao&&(s=io):(a===io||a===Ao)&&(s=Va)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,a,l;return s=a=l=i,i!=null&&typeof i!="number"&&(s=i.exit,a=i.enter,l=i.appear!==void 0?i.appear:a),{exit:s,enter:a,appear:l}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===io){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Lo.findDOMNode(this);a&&Ev(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ro&&this.setState({status:wr})},n.performEnter=function(i){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:i,c=this.props.nodeRef?[l]:[Lo.findDOMNode(this),l],u=c[0],d=c[1],p=this.getTimeouts(),f=l?p.appear:p.enter;if(!i&&!a||Ru.disabled){this.safeSetState({status:Ao},function(){s.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:io},function(){s.props.onEntering(u,d),s.onTransitionEnd(f,function(){s.safeSetState({status:Ao},function(){s.props.onEntered(u,d)})})})},n.performExit=function(){var i=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Lo.findDOMNode(this);if(!s||Ru.disabled){this.safeSetState({status:ro},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Va},function(){i.props.onExiting(l),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:ro},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,i(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:Lo.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===wr)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=gf(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return H.createElement(Fi.Provider,{value:null},typeof a=="function"?a(i,l):H.cloneElement(H.Children.only(a),l))},t})(H.Component);dn.contextType=Fi;dn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,i,s){var a=e[t];return o.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,s)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var n=Ov;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return n.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function Io(){}dn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Io,onEntering:Io,onEntered:Io,onExit:Io,onExiting:Io,onExited:Io};dn.UNMOUNTED=wr;dn.EXITED=ro;dn.ENTERING=io;dn.ENTERED=Ao;dn.EXITING=Va;function Rv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $l(e,t){var n=function(s){return t&&H.isValidElement(s)?t(s):s},r=Object.create(null);return e&&H.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function kv(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var s in e)s in t?i.length&&(r[s]=i,i=[]):i.push(s);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var u=r[c][a];l[r[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<i.length;a++)l[i[a]]=n(i[a]);return l}function co(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Iv(e,t){return $l(e.children,function(n){return H.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:co(n,"appear",e),enter:co(n,"enter",e),exit:co(n,"exit",e)})})}function Mv(e,t,n){var r=$l(e.children),i=kv(t,r);return Object.keys(i).forEach(function(s){var a=i[s];if(H.isValidElement(a)){var l=s in t,c=s in r,u=t[s],d=H.isValidElement(u)&&!u.props.in;c&&(!l||d)?i[s]=H.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:co(a,"exit",e),enter:co(a,"enter",e)}):!c&&l&&!d?i[s]=H.cloneElement(a,{in:!1}):c&&l&&H.isValidElement(u)&&(i[s]=H.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:co(a,"exit",e),enter:co(a,"enter",e)}))}}),i}var Av=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},jv={component:"div",childFactory:function(t){return t}},Nl=(function(e){bf(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=s.handleExited.bind(Rv(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,s){var a=s.children,l=s.handleExited,c=s.firstRender;return{children:c?Iv(i,l):Mv(i,a,l),firstRender:!1}},n.handleExited=function(i,s){var a=$l(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(s),this.mounted&&this.setState(function(l){var c=Da({},l.children);return delete c[i.key],{children:c}}))},n.render=function(){var i=this.props,s=i.component,a=i.childFactory,l=gf(i,["component","childFactory"]),c=this.state.contextValue,u=Av(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?H.createElement(Fi.Provider,{value:c},u):H.createElement(Fi.Provider,{value:c},H.createElement(s,l,u))},t})(H.Component);Nl.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{};Nl.defaultProps=jv;const $v=[];function Nv(e){O.useEffect(e,$v)}class xs{static create(){return new xs}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Wn(){const e=mf(xs.create).current;return Nv(e.disposeEffect),e}function yf(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,p]=O.useState(!1),f=ce(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+s,left:-(a/2)+i},g=ce(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&p(!0),O.useEffect(()=>{if(!l&&c!=null){const h=setTimeout(c,u);return()=>{clearTimeout(h)}}},[c,l,u]),m.jsx("span",{className:f,style:b,children:m.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(yf.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const Yt=Re("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Fa=550,Lv=80,Dv=fe.keyframes`
|
|
32
|
+
export default theme;`}function Ri(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const iu=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function au(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Kr(t,iu(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${Ri(r)})`:yo(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${Ri(r)})`:go(t,r)}})}function Zo(e={},...t){const{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:s={},typography:l={},shape:c,colorSpace:u,...p}=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.":bt(20));const m=En({...a,colorSpace:u}),y=Ca(e);let b=Ze(y,{mixins:Gc(y.breakpoints,n),palette:m,shadows:Qc.slice(),typography:Kc(m,l),transitions:ru(s),zIndex:{...ou}});if(b=Ze(b,p),b=t.reduce((g,d)=>Ze(g,d),b),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(C,T)=>{let R;for(R in C){const S=C[R];if(g.includes(R)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const v=Te("",R);console.error([`MUI: The \`${T}\` component increases the CSS specificity of the \`${R}\` internal state.`,"You can not override it like this: ",JSON.stringify(C,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
33
|
+
`))}C[R]={}}}};Object.keys(b.components).forEach(C=>{const T=b.components[C].styleOverrides;T&&C.startsWith("Mui")&&d(T,C)})}return b.unstable_sxConfig={...Rr,...p?.unstable_sxConfig},b.unstable_sx=function(d){return Zt({sx:d,theme:this})},b.toRuntimeSource=wa,au(b),b}function Jo(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const su=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Jo(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Ea(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Sa(e){return e==="dark"?su:[]}function lu(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:i,...a}=e,s=En({...t,colorSpace:i});return{palette:s,opacity:{...Ea(s.mode),...r},overlays:n||Sa(s.mode),...a}}function cu(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 uu=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],pu=e=>(t,r)=>{const n=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return uu(e.cssVarPrefix).forEach(l=>{s[l]=r[l],delete r[l]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:s}}:a?{[a.replace("%s",t)]:s,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:{...r,...s}}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function du(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function D(e,t,r){!e[t]&&r&&(e[t]=r)}function dr(e){return typeof e!="string"||!e.startsWith("hsl")?e:ha(e)}function ht(e,t){`${t}Channel`in e||(e[`${t}Channel`]=pr(dr(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
34
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function fu(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ut=e=>{try{return e()}catch{}},mu=(e="mui")=>re.unstable_createGetCssVar(e);function Do(e,t,r,n,i){if(!r)return;r=r===!0?{}:r;const a=i==="dark"?"dark":"light";if(!n){t[i]=lu({...r,palette:{mode:a,...r?.palette},colorSpace:e});return}const{palette:s,...l}=Zo({...n,palette:{mode:a,...r?.palette},colorSpace:e});return t[i]={...r,palette:s,opacity:{...Ea(a),...r?.opacity},overlays:r?.overlays||Sa(a)},l}function hu(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=cu,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...p}=e,m=Object.keys(r)[0],y=n||(r.light&&m!=="light"?"light":m),b=mu(a),{[y]:g,light:d,dark:C,...T}=r,R={...T};let S=g;if((y==="dark"&&!("dark"in r)||y==="light"&&!("light"in r))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:bt(21,y));let v;s&&(v="oklch");const x=Do(v,R,S,p,y);d&&!R.light&&Do(v,R,d,void 0,"light"),C&&!R.dark&&Do(v,R,C,void 0,"dark");let w={defaultColorScheme:y,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:u,getCssVar:b,colorSchemes:R,font:{...Hc(x.typography),...x.font},spacing:fu(p.spacing)};Object.keys(w.colorSchemes).forEach(B=>{const f=w.colorSchemes[B].palette,k=A=>{const j=A.split("-"),V=j[1],N=j[2];return b(A,f[V][N])};f.mode==="light"&&(D(f.common,"background","#fff"),D(f.common,"onBackground","#000")),f.mode==="dark"&&(D(f.common,"background","#000"),D(f.common,"onBackground","#fff"));function $(A,j,V){if(v){let N;return A===kt&&(N=`transparent ${((1-V)*100).toFixed(0)}%`),A===xe&&(N=`#000 ${(V*100).toFixed(0)}%`),A===Ce&&(N=`#fff ${(V*100).toFixed(0)}%`),`color-mix(in ${v}, ${j}, ${N})`}return A(j,V)}if(du(f,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),f.mode==="light"){D(f.Alert,"errorColor",$(xe,f.error.light,.6)),D(f.Alert,"infoColor",$(xe,f.info.light,.6)),D(f.Alert,"successColor",$(xe,f.success.light,.6)),D(f.Alert,"warningColor",$(xe,f.warning.light,.6)),D(f.Alert,"errorFilledBg",k("palette-error-main")),D(f.Alert,"infoFilledBg",k("palette-info-main")),D(f.Alert,"successFilledBg",k("palette-success-main")),D(f.Alert,"warningFilledBg",k("palette-warning-main")),D(f.Alert,"errorFilledColor",ut(()=>f.getContrastText(f.error.main))),D(f.Alert,"infoFilledColor",ut(()=>f.getContrastText(f.info.main))),D(f.Alert,"successFilledColor",ut(()=>f.getContrastText(f.success.main))),D(f.Alert,"warningFilledColor",ut(()=>f.getContrastText(f.warning.main))),D(f.Alert,"errorStandardBg",$(Ce,f.error.light,.9)),D(f.Alert,"infoStandardBg",$(Ce,f.info.light,.9)),D(f.Alert,"successStandardBg",$(Ce,f.success.light,.9)),D(f.Alert,"warningStandardBg",$(Ce,f.warning.light,.9)),D(f.Alert,"errorIconColor",k("palette-error-main")),D(f.Alert,"infoIconColor",k("palette-info-main")),D(f.Alert,"successIconColor",k("palette-success-main")),D(f.Alert,"warningIconColor",k("palette-warning-main")),D(f.AppBar,"defaultBg",k("palette-grey-100")),D(f.Avatar,"defaultBg",k("palette-grey-400")),D(f.Button,"inheritContainedBg",k("palette-grey-300")),D(f.Button,"inheritContainedHoverBg",k("palette-grey-A100")),D(f.Chip,"defaultBorder",k("palette-grey-400")),D(f.Chip,"defaultAvatarColor",k("palette-grey-700")),D(f.Chip,"defaultIconColor",k("palette-grey-700")),D(f.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),D(f.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),D(f.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),D(f.LinearProgress,"primaryBg",$(Ce,f.primary.main,.62)),D(f.LinearProgress,"secondaryBg",$(Ce,f.secondary.main,.62)),D(f.LinearProgress,"errorBg",$(Ce,f.error.main,.62)),D(f.LinearProgress,"infoBg",$(Ce,f.info.main,.62)),D(f.LinearProgress,"successBg",$(Ce,f.success.main,.62)),D(f.LinearProgress,"warningBg",$(Ce,f.warning.main,.62)),D(f.Skeleton,"bg",v?$(kt,f.text.primary,.11):`rgba(${k("palette-text-primaryChannel")} / 0.11)`),D(f.Slider,"primaryTrack",$(Ce,f.primary.main,.62)),D(f.Slider,"secondaryTrack",$(Ce,f.secondary.main,.62)),D(f.Slider,"errorTrack",$(Ce,f.error.main,.62)),D(f.Slider,"infoTrack",$(Ce,f.info.main,.62)),D(f.Slider,"successTrack",$(Ce,f.success.main,.62)),D(f.Slider,"warningTrack",$(Ce,f.warning.main,.62));const A=v?$(xe,f.background.default,.6825):Dr(f.background.default,.8);D(f.SnackbarContent,"bg",A),D(f.SnackbarContent,"color",ut(()=>v?Xo.text.primary:f.getContrastText(A))),D(f.SpeedDialAction,"fabHoverBg",Dr(f.background.paper,.15)),D(f.StepConnector,"border",k("palette-grey-400")),D(f.StepContent,"border",k("palette-grey-400")),D(f.Switch,"defaultColor",k("palette-common-white")),D(f.Switch,"defaultDisabledColor",k("palette-grey-100")),D(f.Switch,"primaryDisabledColor",$(Ce,f.primary.main,.62)),D(f.Switch,"secondaryDisabledColor",$(Ce,f.secondary.main,.62)),D(f.Switch,"errorDisabledColor",$(Ce,f.error.main,.62)),D(f.Switch,"infoDisabledColor",$(Ce,f.info.main,.62)),D(f.Switch,"successDisabledColor",$(Ce,f.success.main,.62)),D(f.Switch,"warningDisabledColor",$(Ce,f.warning.main,.62)),D(f.TableCell,"border",$(Ce,$(kt,f.divider,1),.88)),D(f.Tooltip,"bg",$(kt,f.grey[700],.92))}if(f.mode==="dark"){D(f.Alert,"errorColor",$(Ce,f.error.light,.6)),D(f.Alert,"infoColor",$(Ce,f.info.light,.6)),D(f.Alert,"successColor",$(Ce,f.success.light,.6)),D(f.Alert,"warningColor",$(Ce,f.warning.light,.6)),D(f.Alert,"errorFilledBg",k("palette-error-dark")),D(f.Alert,"infoFilledBg",k("palette-info-dark")),D(f.Alert,"successFilledBg",k("palette-success-dark")),D(f.Alert,"warningFilledBg",k("palette-warning-dark")),D(f.Alert,"errorFilledColor",ut(()=>f.getContrastText(f.error.dark))),D(f.Alert,"infoFilledColor",ut(()=>f.getContrastText(f.info.dark))),D(f.Alert,"successFilledColor",ut(()=>f.getContrastText(f.success.dark))),D(f.Alert,"warningFilledColor",ut(()=>f.getContrastText(f.warning.dark))),D(f.Alert,"errorStandardBg",$(xe,f.error.light,.9)),D(f.Alert,"infoStandardBg",$(xe,f.info.light,.9)),D(f.Alert,"successStandardBg",$(xe,f.success.light,.9)),D(f.Alert,"warningStandardBg",$(xe,f.warning.light,.9)),D(f.Alert,"errorIconColor",k("palette-error-main")),D(f.Alert,"infoIconColor",k("palette-info-main")),D(f.Alert,"successIconColor",k("palette-success-main")),D(f.Alert,"warningIconColor",k("palette-warning-main")),D(f.AppBar,"defaultBg",k("palette-grey-900")),D(f.AppBar,"darkBg",k("palette-background-paper")),D(f.AppBar,"darkColor",k("palette-text-primary")),D(f.Avatar,"defaultBg",k("palette-grey-600")),D(f.Button,"inheritContainedBg",k("palette-grey-800")),D(f.Button,"inheritContainedHoverBg",k("palette-grey-700")),D(f.Chip,"defaultBorder",k("palette-grey-700")),D(f.Chip,"defaultAvatarColor",k("palette-grey-300")),D(f.Chip,"defaultIconColor",k("palette-grey-300")),D(f.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),D(f.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),D(f.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),D(f.LinearProgress,"primaryBg",$(xe,f.primary.main,.5)),D(f.LinearProgress,"secondaryBg",$(xe,f.secondary.main,.5)),D(f.LinearProgress,"errorBg",$(xe,f.error.main,.5)),D(f.LinearProgress,"infoBg",$(xe,f.info.main,.5)),D(f.LinearProgress,"successBg",$(xe,f.success.main,.5)),D(f.LinearProgress,"warningBg",$(xe,f.warning.main,.5)),D(f.Skeleton,"bg",v?$(kt,f.text.primary,.13):`rgba(${k("palette-text-primaryChannel")} / 0.13)`),D(f.Slider,"primaryTrack",$(xe,f.primary.main,.5)),D(f.Slider,"secondaryTrack",$(xe,f.secondary.main,.5)),D(f.Slider,"errorTrack",$(xe,f.error.main,.5)),D(f.Slider,"infoTrack",$(xe,f.info.main,.5)),D(f.Slider,"successTrack",$(xe,f.success.main,.5)),D(f.Slider,"warningTrack",$(xe,f.warning.main,.5));const A=v?$(Ce,f.background.default,.985):Dr(f.background.default,.98);D(f.SnackbarContent,"bg",A),D(f.SnackbarContent,"color",ut(()=>v?ya.text.primary:f.getContrastText(A))),D(f.SpeedDialAction,"fabHoverBg",Dr(f.background.paper,.15)),D(f.StepConnector,"border",k("palette-grey-600")),D(f.StepContent,"border",k("palette-grey-600")),D(f.Switch,"defaultColor",k("palette-grey-300")),D(f.Switch,"defaultDisabledColor",k("palette-grey-600")),D(f.Switch,"primaryDisabledColor",$(xe,f.primary.main,.55)),D(f.Switch,"secondaryDisabledColor",$(xe,f.secondary.main,.55)),D(f.Switch,"errorDisabledColor",$(xe,f.error.main,.55)),D(f.Switch,"infoDisabledColor",$(xe,f.info.main,.55)),D(f.Switch,"successDisabledColor",$(xe,f.success.main,.55)),D(f.Switch,"warningDisabledColor",$(xe,f.warning.main,.55)),D(f.TableCell,"border",$(xe,$(kt,f.divider,1),.68)),D(f.Tooltip,"bg",$(kt,f.grey[700],.92))}ht(f.background,"default"),ht(f.background,"paper"),ht(f.common,"background"),ht(f.common,"onBackground"),ht(f,"divider"),Object.keys(f).forEach(A=>{const j=f[A];A!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&D(f[A],"mainChannel",pr(dr(j.main))),j.light&&D(f[A],"lightChannel",pr(dr(j.light))),j.dark&&D(f[A],"darkChannel",pr(dr(j.dark))),j.contrastText&&D(f[A],"contrastTextChannel",pr(dr(j.contrastText))),A==="text"&&(ht(f[A],"primary"),ht(f[A],"secondary")),A==="action"&&(j.active&&ht(f[A],"active"),j.selected&&ht(f[A],"selected")))})}),w=t.reduce((B,f)=>Ze(B,f),w);const P={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:pu(w),enableContrastVars:s},{vars:I,generateThemeVars:M,generateStyleSheets:z}=Wc(w,P);return w.vars=I,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([B,f])=>{w[B]=f}),w.generateThemeVars=M,w.generateStyleSheets=z,w.generateSpacing=function(){return re.createSpacing(p.spacing,Cn(this))},w.getColorSchemeSelector=Uc(c),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=l,w.unstable_sxConfig={...Rr,...p?.unstable_sxConfig},w.unstable_sx=function(f){return Zt({sx:f,theme:this})},w.toRuntimeSource=wa,w}function Pi(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:En({...r===!0?{}:r.palette,mode:t})})}function Oa(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r?.mode,...s}=e,l=a||"light",c=i?.[l],u={...i,...r?{[l]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Zo(e,...t);let p=r;"palette"in e||u[l]&&(u[l]!==!0?p=u[l].palette:l==="dark"&&(p={mode:"dark"}));const m=Zo({...e,palette:p},...t);return m.defaultColorScheme=l,m.colorSchemes=u,m.palette.mode==="light"&&(m.colorSchemes.light={...u.light!==!0&&u.light,palette:m.palette},Pi(m,"dark",u.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:m.palette},Pi(m,"light",u.light)),m}return!r&&!("light"in u)&&l==="light"&&(u.light=!0),hu({...s,colorSchemes:u,defaultColorScheme:l,...typeof n!="boolean"&&n},...t)}const Sn=Oa(),vo="$$material";function Ge(){const e=re.useTheme(Sn);return process.env.NODE_ENV!=="production"&&E.useDebugValue(e),e[vo]||e}function Ra(e){return h.jsx(re.GlobalStyles,{...e,defaultTheme:Sn,themeId:vo})}process.env.NODE_ENV!=="production"&&(Ra.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function Pa(e,t=""){return e.displayName||e.name||t}function $i(e,t,r){const n=Pa(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function gu(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Pa(e,"Component");if(typeof e=="object")switch(e.$$typeof){case vr.ForwardRef:return $i(e,e.render,"ForwardRef");case vr.Memo:return $i(e,e.type,"memo");default:return}}}function yu(e){const{variants:t,...r}=e,n={variants:t,style:zt(r),isProcessed:!0};return n.style===r||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=zt(i.style))}),n}const bu=Ca();function zo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Nt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function vu(e){return e?(t,r)=>r[e]:null}function xu(e,t,r){e.theme=Eu(e.theme)?r:e.theme[t]||e.theme}function Ur(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(i=>Ur(e,i,r));if(Array.isArray(n?.variants)){let i;if(n.isProcessed)i=r?Nt(n.style,r):n.style;else{const{variants:a,...s}=n;i=r?Nt(zt(s),r):s}return $a(e,n.variants,[i],r)}return n?.isProcessed?r?Nt(zt(n.style),r):n.style:r?Nt(zt(n),r):n}function $a(e,t,r=[],n=void 0){let i;e:for(let a=0;a<t.length;a+=1){const s=t[a];if(typeof s.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(i))continue}else for(const l in s.props)if(e[l]!==s.props[l]&&e.ownerState?.[l]!==s.props[l])continue e;typeof s.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?Nt(zt(s.style(i)),n):s.style(i))):r.push(n?Nt(zt(s.style),n):s.style)}return r}function Cu(e={}){const{themeId:t,defaultTheme:r=bu,rootShouldForwardProp:n=zo,slotShouldForwardProp:i=zo}=e;function a(l){xu(l,t,r)}return(l,c={})=>{Pc(l,w=>w.filter(P=>P!==Zt));const{name:u,slot:p,skipVariantsResolver:m,skipSx:y,overridesResolver:b=vu(ja(p)),...g}=c,d=u&&u.startsWith("Mui")||p?"components":"custom",C=m!==void 0?m:p&&p!=="Root"&&p!=="root"||!1,T=y||!1;let R=zo;p==="Root"||p==="root"?R=n:p?R=i:Su(l)&&(R=void 0);const S=Rc(l,{shouldForwardProp:R,label:wu(u,p),...g}),v=w=>{if(w.__emotion_real===w)return w;if(typeof w=="function")return function(I){return Ur(I,w,I.theme.modularCssLayers?d:void 0)};if(pt(w)){const P=yu(w);return function(M){return P.variants?Ur(M,P,M.theme.modularCssLayers?d:void 0):M.theme.modularCssLayers?Nt(P.style,d):P.style}}return w},x=(...w)=>{const P=[],I=w.map(v),M=[];if(P.push(a),u&&b&&M.push(function(k){const A=k.theme.components?.[u]?.styleOverrides;if(!A)return null;const j={};for(const V in A)j[V]=Ur(k,A[V],k.theme.modularCssLayers?"theme":void 0);return b(k,j)}),u&&!C&&M.push(function(k){const A=k.theme?.components?.[u]?.variants;return A?$a(k,A,[],k.theme.modularCssLayers?"theme":void 0):null}),T||M.push(Zt),Array.isArray(I[0])){const f=I.shift(),k=new Array(P.length).fill(""),$=new Array(M.length).fill("");let A;A=[...k,...f,...$],A.raw=[...k,...f.raw,...$],P.unshift(A)}const z=[...P,...I,...M],B=S(...z);return l.muiName&&(B.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(B.displayName=Tu(u,p,l)),B};return S.withConfig&&(x.withConfig=S.withConfig),x}}function Tu(e,t,r){return e?`${e}${G(t||"")}`:`Styled(${gu(r)})`}function wu(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${ja(t||"Root")}`),r}function Eu(e){for(const t in e)return!1;return!0}function Su(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ja(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ka(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Aa=e=>ka(e)&&e!=="classes",J=Cu({themeId:vo,defaultTheme:Sn,rootShouldForwardProp:Aa});function Ou(e){return function(r){return h.jsx(Ra,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function Ru(){return lc}const ye=re.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Re(e){return Mc(e)}function we(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Te(e,i,r)}),n}function Pu(e){return Te("MuiSvgIcon",e)}we("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $u=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${G(t)}`,`fontSize${G(r)}`]};return $e(i,Pu,n)},ju=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${G(r.color)}`],t[`fontSize${G(r.fontSize)}`]]}})(ye(({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:t=>!t.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(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.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}}]}))),Zr=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:p=!1,titleAccess:m,viewBox:y="0 0 24 24",...b}=n,g=E.isValidElement(i)&&i.type==="svg",d={...n,color:s,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:y,hasSvgAsChild:g},C={};p||(C.viewBox=y);const T=$u(d);return h.jsxs(ju,{as:l,className:se(T.root,a),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r,...C,...b,...g&&i.props,ownerState:d,children:[g?i.props.children:i,m?h.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(Zr.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string});Zr.muiName="SvgIcon";function Pe(e,t){function r(n,i){return h.jsx(Zr,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Zr.muiName,E.memo(E.forwardRef(r))}function Ma(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function st(e){return e&&e.ownerDocument||document}function Rt(e){return st(e).defaultView||window}function ji(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Ia(e){const{controlled:t,default:r,name:n,state:i="value"}=e,{current:a}=E.useRef(t!==void 0),[s,l]=E.useState(r),c=a?t:s;if(process.env.NODE_ENV!=="production"){E.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${i} state of ${n} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
35
|
+
`))},[i,n,t]);const{current:p}=E.useRef(r);E.useEffect(()=>{!a&&JSON.stringify(r)!==JSON.stringify(p)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
36
|
+
`))},[JSON.stringify(r)])}const u=E.useCallback(p=>{a||l(p)},[]);return[c,u]}function yt(e){const t=E.useRef(e);return Ot(()=>{t.current=e}),E.useRef((...r)=>(0,t.current)(...r)).current}function Le(...e){const t=E.useRef(void 0),r=E.useCallback(n=>{const i=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,l=s(n);return typeof l=="function"?l:()=>{s(null)}}return a.current=n,()=>{a.current=null}});return()=>{i.forEach(a=>a?.())}},e);return E.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function ku(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function Au(e,t){if(!e)return t;function r(s,l){const c={};return Object.keys(l).forEach(u=>{ku(u,l[u])&&typeof s[u]=="function"&&(c[u]=(...p)=>{s[u](...p),l[u](...p)})}),c}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,c=typeof e=="function"?e({...s,...l}):e,u=se(s?.className,l?.className,c?.className),p=r(c,l);return{...l,...c,...p,...!!u&&{className:u},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const n=t,i=r(e,n),a=se(n?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const $r=o.oneOfType([o.func,o.object]);function it(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function Mu(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Iu(e,t,r,n,i){const a=e[t],s=i||t;if(a==null||typeof window>"u")return null;let l;return typeof a=="function"&&!Mu(a)&&(l="Did you accidentally provide a plain function component instead?"),a===E.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const xo=it(o.elementType,Iu);function Jt(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
37
|
+
`))}return!1}const ki={};function Na(e,t){const r=E.useRef(ki);return r.current===ki&&(r.current=e(t)),r}class Jr{static create(){return new Jr}static use(){const t=Na(Jr.create).current,[r,n]=E.useState(!1);return t.shouldMount=r,t.setShouldMount=n,E.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Bu(),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(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function Nu(){return Jr.use()}function Bu(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qo.apply(null,arguments)}function Ba(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function en(e,t){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},en(e,t)}function Da(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,en(e,t)}const Ai={disabled:!1};var Du=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const Qr=le.createContext(null);var zu=function(t){return t.scrollTop},fr="unmounted",Mt="exited",It="entering",Kt="entered",tn="exiting",lt=(function(e){Da(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var s=i,l=s&&!s.isMounting?n.enter:n.appear,c;return a.appearStatus=null,n.in?l?(c=Mt,a.appearStatus=It):c=Kt:n.unmountOnExit||n.mountOnEnter?c=fr:c=Mt,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===fr?{status:Mt}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==It&&s!==Kt&&(a=It):(s===It||s===Kt)&&(a=tn)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,s,l;return a=s=l=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:l}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===It){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ur.findDOMNode(this);s&&zu(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Mt&&this.setState({status:fr})},r.performEnter=function(i){var a=this,s=this.props.enter,l=this.context?this.context.isMounting:i,c=this.props.nodeRef?[l]:[ur.findDOMNode(this),l],u=c[0],p=c[1],m=this.getTimeouts(),y=l?m.appear:m.enter;if(!i&&!s||Ai.disabled){this.safeSetState({status:Kt},function(){a.props.onEntered(u)});return}this.props.onEnter(u,p),this.safeSetState({status:It},function(){a.props.onEntering(u,p),a.onTransitionEnd(y,function(){a.safeSetState({status:Kt},function(){a.props.onEntered(u,p)})})})},r.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:ur.findDOMNode(this);if(!a||Ai.disabled){this.safeSetState({status:Mt},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:tn},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Mt},function(){i.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:ur.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],p=c[1];this.props.addEndListener(u,p)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===fr)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=Ba(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return le.createElement(Qr.Provider,{value:null},typeof s=="function"?s(i,l):le.cloneElement(le.Children.only(s),l))},t})(le.Component);lt.contextType=Qr;lt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,r,n,i,a){var s=e[t];return o.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,n,i,a)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var r=Du;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return r.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function Yt(){}lt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Yt,onEntering:Yt,onEntered:Yt,onExit:Yt,onExiting:Yt,onExited:Yt};lt.UNMOUNTED=fr;lt.EXITED=Mt;lt.ENTERING=It;lt.ENTERED=Kt;lt.EXITING=tn;function Fu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function On(e,t){var r=function(a){return t&&le.isValidElement(a)?t(a):a},n=Object.create(null);return e&&le.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function _u(e,t){e=e||{},t=t||{};function r(p){return p in t?t[p]:e[p]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var s,l={};for(var c in t){if(n[c])for(s=0;s<n[c].length;s++){var u=n[c][s];l[n[c][s]]=r(u)}l[c]=r(c)}for(s=0;s<i.length;s++)l[i[s]]=r(i[s]);return l}function Bt(e,t,r){return r[t]!=null?r[t]:e.props[t]}function Vu(e,t){return On(e.children,function(r){return le.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Bt(r,"appear",e),enter:Bt(r,"enter",e),exit:Bt(r,"exit",e)})})}function Lu(e,t,r){var n=On(e.children),i=_u(t,n);return Object.keys(i).forEach(function(a){var s=i[a];if(le.isValidElement(s)){var l=a in t,c=a in n,u=t[a],p=le.isValidElement(u)&&!u.props.in;c&&(!l||p)?i[a]=le.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:Bt(s,"exit",e),enter:Bt(s,"enter",e)}):!c&&l&&!p?i[a]=le.cloneElement(s,{in:!1}):c&&l&&le.isValidElement(u)&&(i[a]=le.cloneElement(s,{onExited:r.bind(null,s),in:u.props.in,exit:Bt(s,"exit",e),enter:Bt(s,"enter",e)}))}}),i}var Wu=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Hu={component:"div",childFactory:function(t){return t}},Rn=(function(e){Da(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var s=a.handleExited.bind(Fu(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var s=a.children,l=a.handleExited,c=a.firstRender;return{children:c?Vu(i,l):Lu(i,s,l),firstRender:!1}},r.handleExited=function(i,a){var s=On(this.props.children);i.key in s||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(l){var c=Qo({},l.children);return delete c[i.key],{children:c}}))},r.render=function(){var i=this.props,a=i.component,s=i.childFactory,l=Ba(i,["component","childFactory"]),c=this.state.contextValue,u=Wu(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?le.createElement(Qr.Provider,{value:c},u):le.createElement(Qr.Provider,{value:c},le.createElement(a,l,u))},t})(le.Component);Rn.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{};Rn.defaultProps=Hu;const Uu=[];function qu(e){E.useEffect(e,Uu)}class Co{static create(){return new Co}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Dt(){const e=Na(Co.create).current;return qu(e.disposeEffect),e}function za(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[p,m]=E.useState(!1),y=se(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),b={width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},g=se(r.child,p&&r.childLeaving,n&&r.childPulsate);return!l&&!p&&m(!0),E.useEffect(()=>{if(!l&&c!=null){const d=setTimeout(c,u);return()=>{clearTimeout(d)}}},[c,l,u]),h.jsx("span",{className:y,style:b,children:h.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(za.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const Qe=we("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),rn=550,Gu=80,Yu=re.keyframes`
|
|
38
38
|
0% {
|
|
39
39
|
transform: scale(0);
|
|
40
40
|
opacity: 0.1;
|
|
@@ -44,7 +44,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
44
44
|
transform: scale(1);
|
|
45
45
|
opacity: 0.3;
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
47
|
+
`,Ku=re.keyframes`
|
|
48
48
|
0% {
|
|
49
49
|
opacity: 1;
|
|
50
50
|
}
|
|
@@ -52,7 +52,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
52
52
|
100% {
|
|
53
53
|
opacity: 0;
|
|
54
54
|
}
|
|
55
|
-
`,
|
|
55
|
+
`,Xu=re.keyframes`
|
|
56
56
|
0% {
|
|
57
57
|
transform: scale(1);
|
|
58
58
|
}
|
|
@@ -64,23 +64,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
64
64
|
100% {
|
|
65
65
|
transform: scale(1);
|
|
66
66
|
}
|
|
67
|
-
`,
|
|
67
|
+
`,Zu=J("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ju=J(za,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
68
68
|
opacity: 0;
|
|
69
69
|
position: absolute;
|
|
70
70
|
|
|
71
|
-
&.${
|
|
71
|
+
&.${Qe.rippleVisible} {
|
|
72
72
|
opacity: 0.3;
|
|
73
73
|
transform: scale(1);
|
|
74
|
-
animation-name: ${
|
|
75
|
-
animation-duration: ${
|
|
74
|
+
animation-name: ${Yu};
|
|
75
|
+
animation-duration: ${rn}ms;
|
|
76
76
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
&.${
|
|
79
|
+
&.${Qe.ripplePulsate} {
|
|
80
80
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
& .${
|
|
83
|
+
& .${Qe.child} {
|
|
84
84
|
opacity: 1;
|
|
85
85
|
display: block;
|
|
86
86
|
width: 100%;
|
|
@@ -89,25 +89,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
89
89
|
background-color: currentColor;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
& .${
|
|
92
|
+
& .${Qe.childLeaving} {
|
|
93
93
|
opacity: 0;
|
|
94
|
-
animation-name: ${
|
|
95
|
-
animation-duration: ${
|
|
94
|
+
animation-name: ${Ku};
|
|
95
|
+
animation-duration: ${rn}ms;
|
|
96
96
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
& .${
|
|
99
|
+
& .${Qe.childPulsate} {
|
|
100
100
|
position: absolute;
|
|
101
101
|
/* @noflip */
|
|
102
102
|
left: 0px;
|
|
103
103
|
top: 0;
|
|
104
|
-
animation-name: ${
|
|
104
|
+
animation-name: ${Xu};
|
|
105
105
|
animation-duration: 2500ms;
|
|
106
106
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
107
107
|
animation-iteration-count: infinite;
|
|
108
108
|
animation-delay: 200ms;
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
110
|
+
`,Fa=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:s,...l}=n,[c,u]=E.useState([]),p=E.useRef(0),m=E.useRef(null);E.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const y=E.useRef(!1),b=Dt(),g=E.useRef(null),d=E.useRef(null),C=E.useCallback(v=>{const{pulsate:x,rippleX:w,rippleY:P,rippleSize:I,cb:M}=v;u(z=>[...z,h.jsx(Ju,{classes:{ripple:se(a.ripple,Qe.ripple),rippleVisible:se(a.rippleVisible,Qe.rippleVisible),ripplePulsate:se(a.ripplePulsate,Qe.ripplePulsate),child:se(a.child,Qe.child),childLeaving:se(a.childLeaving,Qe.childLeaving),childPulsate:se(a.childPulsate,Qe.childPulsate)},timeout:rn,pulsate:x,rippleX:w,rippleY:P,rippleSize:I},p.current)]),p.current+=1,m.current=M},[a]),T=E.useCallback((v={},x={},w=()=>{})=>{const{pulsate:P=!1,center:I=i||x.pulsate,fakeElement:M=!1}=x;if(v?.type==="mousedown"&&y.current){y.current=!1;return}v?.type==="touchstart"&&(y.current=!0);const z=M?null:d.current,B=z?z.getBoundingClientRect():{width:0,height:0,left:0,top:0};let f,k,$;if(I||v===void 0||v.clientX===0&&v.clientY===0||!v.clientX&&!v.touches)f=Math.round(B.width/2),k=Math.round(B.height/2);else{const{clientX:A,clientY:j}=v.touches&&v.touches.length>0?v.touches[0]:v;f=Math.round(A-B.left),k=Math.round(j-B.top)}if(I)$=Math.sqrt((2*B.width**2+B.height**2)/3),$%2===0&&($+=1);else{const A=Math.max(Math.abs((z?z.clientWidth:0)-f),f)*2+2,j=Math.max(Math.abs((z?z.clientHeight:0)-k),k)*2+2;$=Math.sqrt(A**2+j**2)}v?.touches?g.current===null&&(g.current=()=>{C({pulsate:P,rippleX:f,rippleY:k,rippleSize:$,cb:w})},b.start(Gu,()=>{g.current&&(g.current(),g.current=null)})):C({pulsate:P,rippleX:f,rippleY:k,rippleSize:$,cb:w})},[i,C,b]),R=E.useCallback(()=>{T({},{pulsate:!0})},[T]),S=E.useCallback((v,x)=>{if(b.clear(),v?.type==="touchend"&&g.current){g.current(),g.current=null,b.start(0,()=>{S(v,x)});return}g.current=null,u(w=>w.length>0?w.slice(1):w),m.current=x},[b]);return E.useImperativeHandle(r,()=>({pulsate:R,start:T,stop:S}),[R,T,S]),h.jsx(Zu,{className:se(Qe.root,a.root,s),ref:d,...l,children:h.jsx(Rn,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Fa.propTypes={center:o.bool,classes:o.object,className:o.string});function Qu(e){return Te("MuiButtonBase",e)}const ep=we("MuiButtonBase",["root","disabled","focusVisible"]),tp=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,s=$e({root:["root",t&&"disabled",r&&"focusVisible"]},Qu,i);return r&&n&&(s.root+=` ${n}`),s},rp=J("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"},[`&.${ep.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),To=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:s,className:l,component:c="button",disabled:u=!1,disableRipple:p=!1,disableTouchRipple:m=!1,focusRipple:y=!1,focusVisibleClassName:b,LinkComponent:g="a",onBlur:d,onClick:C,onContextMenu:T,onDragLeave:R,onFocus:S,onFocusVisible:v,onKeyDown:x,onKeyUp:w,onMouseDown:P,onMouseLeave:I,onMouseUp:M,onTouchEnd:z,onTouchMove:B,onTouchStart:f,tabIndex:k=0,TouchRippleProps:$,touchRippleRef:A,type:j,...V}=n,N=E.useRef(null),L=Nu(),O=Le(L.ref,A),[_,U]=E.useState(!1);u&&_&&U(!1),E.useImperativeHandle(i,()=>({focusVisible:()=>{U(!0),N.current.focus()}}),[]);const H=L.shouldMount&&!p&&!u;E.useEffect(()=>{_&&y&&!p&&L.pulsate()},[p,y,_,L]);const Y=gt(L,"start",P,m),Z=gt(L,"stop",T,m),Q=gt(L,"stop",R,m),ee=gt(L,"stop",M,m),X=gt(L,"stop",K=>{_&&K.preventDefault(),I&&I(K)},m),ne=gt(L,"start",f,m),q=gt(L,"stop",z,m),oe=gt(L,"stop",B,m),F=gt(L,"stop",K=>{Jt(K.target)||U(!1),d&&d(K)},!1),ce=yt(K=>{N.current||(N.current=K.currentTarget),Jt(K.target)&&(U(!0),v&&v(K)),S&&S(K)}),ie=()=>{const K=N.current;return c&&c!=="button"&&!(K.tagName==="A"&&K.href)},te=yt(K=>{y&&!K.repeat&&_&&K.key===" "&&L.stop(K,()=>{L.start(K)}),K.target===K.currentTarget&&ie()&&K.key===" "&&K.preventDefault(),x&&x(K),K.target===K.currentTarget&&ie()&&K.key==="Enter"&&!u&&(K.preventDefault(),C&&C(K))}),Ee=yt(K=>{y&&K.key===" "&&_&&!K.defaultPrevented&&L.stop(K,()=>{L.pulsate(K)}),w&&w(K),C&&K.target===K.currentTarget&&ie()&&K.key===" "&&!K.defaultPrevented&&C(K)});let me=c;me==="button"&&(V.href||V.to)&&(me=g);const he={};if(me==="button"){const K=!!V.formAction;he.type=j===void 0&&!K?"button":j,he.disabled=u}else!V.href&&!V.to&&(he.role="button"),u&&(he["aria-disabled"]=u);const Ae=Le(r,N),je={...n,centerRipple:a,component:c,disabled:u,disableRipple:p,disableTouchRipple:m,focusRipple:y,tabIndex:k,focusVisible:_},ae=tp(je);return h.jsxs(rp,{as:me,className:se(ae.root,l),ownerState:je,onBlur:F,onClick:C,onContextMenu:Z,onFocus:ce,onKeyDown:te,onKeyUp:Ee,onMouseDown:Y,onMouseLeave:X,onMouseUp:ee,onDragLeave:Q,onTouchEnd:q,onTouchMove:oe,onTouchStart:ne,ref:Ae,tabIndex:u?-1:k,type:j,...he,...V,children:[s,H?h.jsx(Fa,{ref:O,center:a,...$}):null]})});function gt(e,t,r,n=!1){return yt(i=>(r&&r(i),n||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(To.propTypes={action:$r,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:xo,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,formAction:o.oneOfType([o.func,o.string]),href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function op(e){return typeof e.main=="string"}function np(e,t=[]){if(!op(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Ve(e=[]){return([,t])=>t&&np(t,e)}function ip(e){return Te("MuiCircularProgress",e)}we("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const at=44,on=re.keyframes`
|
|
111
111
|
0% {
|
|
112
112
|
transform: rotate(0deg);
|
|
113
113
|
}
|
|
@@ -115,7 +115,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
115
115
|
100% {
|
|
116
116
|
transform: rotate(360deg);
|
|
117
117
|
}
|
|
118
|
-
`,
|
|
118
|
+
`,nn=re.keyframes`
|
|
119
119
|
0% {
|
|
120
120
|
stroke-dasharray: 1px, 200px;
|
|
121
121
|
stroke-dashoffset: 0;
|
|
@@ -130,14 +130,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
130
130
|
stroke-dasharray: 1px, 200px;
|
|
131
131
|
stroke-dashoffset: -126px;
|
|
132
132
|
}
|
|
133
|
-
`,
|
|
134
|
-
animation: ${
|
|
135
|
-
`:null,
|
|
136
|
-
animation: ${
|
|
137
|
-
`:null,Zv=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,s={root:["root",n,`color${z(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${z(n)}`,i&&"circleDisableShrink"]};return ke(s,Kv,t)},Jv=B("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${z(n.color)}`]]}})(ye(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Yv||{animation:`${za} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Qv=B("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),e0=B("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${z(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ye(({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:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Xv||{animation:`${Wa} 1.4s ease-in-out infinite`}}]}))),t0=B("circle",{name:"MuiCircularProgress",slot:"Track"})(ye(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Un=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCircularProgress"}),{className:i,color:s="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:f="indeterminate",...b}=r,g={...r,color:s,disableShrink:a,size:c,thickness:d,value:p,variant:f,enableTrackSlot:l},h=Zv(g),v={},w={},C={};if(f==="determinate"){const S=2*Math.PI*((an-d)/2);v.strokeDasharray=S.toFixed(3),C["aria-valuenow"]=Math.round(p),v.strokeDashoffset=`${((100-p)/100*S).toFixed(3)}px`,w.transform="rotate(-90deg)"}return m.jsx(Jv,{className:ce(h.root,i),style:{width:c,height:c,...w,...u},ownerState:g,ref:n,role:"progressbar",...C,...b,children:m.jsxs(Qv,{className:h.svg,ownerState:g,viewBox:`${an/2} ${an/2} ${an} ${an}`,children:[l?m.jsx(t0,{className:h.track,ownerState:g,cx:an,cy:an,r:(an-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,m.jsx(e0,{className:h.circle,style:v,ownerState:g,cx:an,cy:an,r:(an-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Un.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:Rt(o.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),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function n0(e){return Ee("MuiButton",e)}const no=Re("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Ll=O.createContext({});process.env.NODE_ENV!=="production"&&(Ll.displayName="ButtonGroupContext");const Dl=O.createContext(void 0);process.env.NODE_ENV!=="production"&&(Dl.displayName="ButtonGroupButtonContext");const o0=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:s,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",s,`${s}${z(t)}`,`size${z(i)}`,`${s}Size${z(i)}`,`color${z(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${z(l)}`],startIcon:["icon","startIcon",`iconSize${z(i)}`],endIcon:["icon","endIcon",`iconSize${z(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=ke(u,n0,c);return{...c,...d}},xf=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],r0=B(kn,{shouldForwardProp:e=>kt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${z(n.color)}`],t[`size${z(n.size)}`],t[`${n.variant}Size${z(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(ye(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${no.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${no.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${no.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${no.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ke()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${no.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${no.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${no.loading}`]:{color:"transparent"}}}]}})),i0=B("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${z(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...xf]})),s0=B("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${z(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...xf]})),a0=B("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ku=B("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Bl=O.forwardRef(function(t,n){const r=O.useContext(Ll),i=O.useContext(Dl),s=$i(r,t),a=Ie({props:s,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:f=!1,disableFocusRipple:b=!1,endIcon:g,focusVisibleClassName:h,fullWidth:v=!1,id:w,loading:C=null,loadingIndicator:S,loadingPosition:x="center",size:T="medium",startIcon:P,type:j,variant:R="text",...k}=a,I=jn(w),A=S??m.jsx(Un,{"aria-labelledby":I,color:"inherit",size:16}),y={...a,color:c,component:u,disabled:p,disableElevation:f,disableFocusRipple:b,fullWidth:v,loading:C,loadingIndicator:A,loadingPosition:x,size:T,type:j,variant:R},N=o0(y),M=(P||C&&x==="start")&&m.jsx(i0,{className:N.startIcon,ownerState:y,children:P||m.jsx(ku,{className:N.loadingIconPlaceholder,ownerState:y})}),L=(g||C&&x==="end")&&m.jsx(s0,{className:N.endIcon,ownerState:y,children:g||m.jsx(ku,{className:N.loadingIconPlaceholder,ownerState:y})}),E=i||"",V=typeof C=="boolean"?m.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:C&&m.jsx(a0,{className:N.loadingIndicator,ownerState:y,children:A})}):null;return m.jsxs(r0,{ownerState:y,className:ce(r.className,N.root,d,E),component:u,disabled:p||C,focusRipple:!b,focusVisibleClassName:ce(N.focusVisible,h),ref:n,type:j,id:C?I:w,...k,classes:N,children:[M,x!=="end"&&V,l,x==="end"&&V,L]})});process.env.NODE_ENV!=="production"&&(Bl.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function l0(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function c0(e){return parseFloat(e)}const u0=dt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),d0=dt(m.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"),Iu=fe.keyframes`
|
|
133
|
+
`,ap=typeof on!="string"?re.css`
|
|
134
|
+
animation: ${on} 1.4s linear infinite;
|
|
135
|
+
`:null,sp=typeof nn!="string"?re.css`
|
|
136
|
+
animation: ${nn} 1.4s ease-in-out infinite;
|
|
137
|
+
`:null,lp=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,a={root:["root",r,`color${G(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${G(r)}`,i&&"circleDisableShrink"]};return $e(a,ip,t)},cp=J("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${G(r.color)}`]]}})(ye(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:ap||{animation:`${on} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ve()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),up=J("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),pp=J("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${G(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(ye(({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:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:sp||{animation:`${nn} 1.4s ease-in-out infinite`}}]}))),dp=J("circle",{name:"MuiCircularProgress",slot:"Track"})(ye(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Ft=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:s=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:p=3.6,value:m=0,variant:y="indeterminate",...b}=n,g={...n,color:a,disableShrink:s,size:c,thickness:p,value:m,variant:y,enableTrackSlot:l},d=lp(g),C={},T={},R={};if(y==="determinate"){const S=2*Math.PI*((at-p)/2);C.strokeDasharray=S.toFixed(3),R["aria-valuenow"]=Math.round(m),C.strokeDashoffset=`${((100-m)/100*S).toFixed(3)}px`,T.transform="rotate(-90deg)"}return h.jsx(cp,{className:se(d.root,i),style:{width:c,height:c,...T,...u},ownerState:g,ref:r,role:"progressbar",...R,...b,children:h.jsxs(up,{className:d.svg,ownerState:g,viewBox:`${at/2} ${at/2} ${at} ${at}`,children:[l?h.jsx(dp,{className:d.track,ownerState:g,cx:at,cy:at,r:(at-p)/2,fill:"none",strokeWidth:p,"aria-hidden":"true"}):null,h.jsx(pp,{className:d.circle,style:C,ownerState:g,cx:at,cy:at,r:(at-p)/2,fill:"none",strokeWidth:p})]})})});process.env.NODE_ENV!=="production"&&(Ft.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:it(o.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),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function fp(e){return Te("MuiButton",e)}const At=we("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Pn=E.createContext({});process.env.NODE_ENV!=="production"&&(Pn.displayName="ButtonGroupContext");const $n=E.createContext(void 0);process.env.NODE_ENV!=="production"&&($n.displayName="ButtonGroupButtonContext");const mp=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,loading:s,loadingPosition:l,classes:c}=e,u={root:["root",s&&"loading",a,`${a}${G(t)}`,`size${G(i)}`,`${a}Size${G(i)}`,`color${G(t)}`,r&&"disableElevation",n&&"fullWidth",s&&`loadingPosition${G(l)}`],startIcon:["icon","startIcon",`iconSize${G(i)}`],endIcon:["icon","endIcon",`iconSize${G(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=$e(u,fp,c);return{...c,...p}},_a=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],hp=J(To,{shouldForwardProp:e=>Aa(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${G(r.color)}`],t[`size${G(r.size)}`],t[`${r.variant}Size${G(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(ye(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${At.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${At.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${At.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${At.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ve()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${At.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${At.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${At.loading}`]:{color:"transparent"}}}]}})),gp=J("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${G(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},..._a]})),yp=J("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${G(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},..._a]})),bp=J("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Mi=J("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Va=E.forwardRef(function(t,r){const n=E.useContext(Pn),i=E.useContext($n),a=Gr(n,t),s=Re({props:a,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:p,disabled:m=!1,disableElevation:y=!1,disableFocusRipple:b=!1,endIcon:g,focusVisibleClassName:d,fullWidth:C=!1,id:T,loading:R=null,loadingIndicator:S,loadingPosition:v="center",size:x="medium",startIcon:w,type:P,variant:I="text",...M}=s,z=Pr(T),B=S??h.jsx(Ft,{"aria-labelledby":z,color:"inherit",size:16}),f={...s,color:c,component:u,disabled:m,disableElevation:y,disableFocusRipple:b,fullWidth:C,loading:R,loadingIndicator:B,loadingPosition:v,size:x,type:P,variant:I},k=mp(f),$=(w||R&&v==="start")&&h.jsx(gp,{className:k.startIcon,ownerState:f,children:w||h.jsx(Mi,{className:k.loadingIconPlaceholder,ownerState:f})}),A=(g||R&&v==="end")&&h.jsx(yp,{className:k.endIcon,ownerState:f,children:g||h.jsx(Mi,{className:k.loadingIconPlaceholder,ownerState:f})}),j=i||"",V=typeof R=="boolean"?h.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:R&&h.jsx(bp,{className:k.loadingIndicator,ownerState:f,children:B})}):null;return h.jsxs(hp,{ownerState:f,className:se(n.className,k.root,p,j),component:u,disabled:m||R,focusRipple:!b,focusVisibleClassName:se(k.focusVisible,d),ref:r,type:P,id:R?z:T,...M,classes:k,children:[$,v!=="end"&&V,l,v==="end"&&V,A]})});process.env.NODE_ENV!=="production"&&(Va.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function vp(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function xp(e){return parseFloat(e)}const La=Pe(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 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),Cp=Pe(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"),Ii=re.keyframes`
|
|
138
138
|
from { transform: scale(0); opacity: 0; }
|
|
139
139
|
to { transform: scale(1); opacity: 1; }
|
|
140
|
-
`,p0=B("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),Vl=H.forwardRef(({variante:e="primario",tamano:t="md",forma:n="cuadrado",estado:r="inactivo",cargando:i=!1,disabled:s=!1,iconoIzquierda:a,iconoDerecha:l,soloIcono:c=!1,texto:u,textoCargando:d,textoExito:p,textoError:f,children:b,startIcon:g,endIcon:h,sx:v,color:w,alHacerClick:C,...S},x)=>{const T=_t(),P=i?"cargando":r,j=P==="cargando",R=P==="exito",k=P==="error",I=P==="inactivo"&&!s,A=E=>["contorno","secundario"].includes(E)?"outlined":["fantasma","enlace"].includes(E)?"text":"contained",y=E=>E==="xs"?"small":E==="xl"?"large":E==="md"?"medium":E==="sm"?"small":E==="lg"?"large":"medium",N=(E,V)=>{if(V)switch(V){case"primario":return"primary";case"secundario":return"secondary";case"exito":return"success";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"oscuro":return"inherit";default:return V}switch(E){case"primario":return"primary";case"secundario":return"secondary";case"peligro":return"error";case"exito":return"success";case"advertencia":return"warning";case"info":return"info";case"oscuro":return"inherit";case"contorno":return"primary";case"fantasma":return"inherit";default:return"primary"}},M=()=>{const E={textTransform:"none",fontWeight:600,letterSpacing:"0.01em",boxShadow:"none",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:n==="pildora"?"9999px":n==="circulo"?"50%":"10px",...c&&{minWidth:"auto",width:y(t)==="small"?32:y(t)==="large"?48:40,height:y(t)==="small"?32:y(t)==="large"?48:40,padding:0,borderRadius:n==="cuadrado"?"10px":"50%"},"&:hover":{transform:I?"translateY(-1px)":"none",boxShadow:I&&e!=="fantasma"&&e!=="enlace"?"0 4px 12px rgba(0,0,0,0.1)":"none"},"&:active":{transform:I?"scale(0.98)":"none"}};if(t==="xs"?(E.padding=c?0:"2px 8px",E.fontSize="0.75rem",E.minWidth=c?24:"auto",c&&(E.height=24,E.width=24)):t==="xl"&&(E.padding=c?0:"12px 28px",E.fontSize="1.125rem",c&&(E.height=56,E.width=56)),R&&(E.backgroundColor=T.palette.success.main,E.color=T.palette.success.contrastText,E["&:hover"]={backgroundColor:T.palette.success.dark}),k&&(E.backgroundColor=T.palette.error.main,E.color=T.palette.error.contrastText,E["&:hover"]={backgroundColor:T.palette.error.dark}),e==="suave"&&!R&&!k){const V=N("primario",w)||"primary";let F=T.palette.primary.main;V==="error"?F=T.palette.error.main:V==="success"?F=T.palette.success.main:V==="warning"?F=T.palette.warning.main:V==="info"?F=T.palette.info.main:V==="secondary"&&(F=T.palette.secondary.main),E.backgroundColor=fe.alpha(F,.1),E.color=F,E.boxShadow="none",E["&:hover"]={...E["&:hover"],backgroundColor:fe.alpha(F,.2),boxShadow:"none"}}return e==="fantasma"&&(E.backgroundColor="transparent",E["&:hover"].backgroundColor=fe.alpha(T.palette.action.active,.08)),e==="enlace"&&(E.padding=0,E.minWidth="auto",E.borderRadius=0,E.verticalAlign="baseline",E["&:hover"]={textDecoration:"underline",backgroundColor:"transparent",transform:"none",boxShadow:"none"},E["&:active"]={transform:"none"}),e==="oscuro"&&!R&&!k&&(E.backgroundColor="#1f2937",E.color="#ffffff",E["&:hover"]={...E["&:hover"],backgroundColor:"#111827"}),e==="claro"&&!R&&!k&&(E.backgroundColor="#f3f4f6",E.color="#1f2937",E["&:hover"]={...E["&:hover"],backgroundColor:"#e5e7eb"}),E},L=()=>{const E=b||u;return j?m.jsxs(H.Fragment,{children:[m.jsx(Un,{size:20,color:"inherit",sx:{mr:d?1:0}}),d||E]}):R?m.jsxs(H.Fragment,{children:[m.jsx(u0,{sx:{mr:p?1:0,animation:`${Iu} 0.3s ease-out`}}),p||"¡Éxito!"]}):k?m.jsxs(H.Fragment,{children:[m.jsx(d0,{sx:{mr:f?1:0,animation:`${Iu} 0.3s ease-out`}}),f||"Error"]}):m.jsxs(H.Fragment,{children:[a&&m.jsx("span",{style:{marginRight:E?8:0,display:"flex"},children:a}),E,l&&m.jsx("span",{style:{marginLeft:E?8:0,display:"flex"},children:l})]})};return m.jsx(Bl,{ref:x,variant:A(e),color:N(e,w),size:y(t),disabled:s||j,onClick:C,disableElevation:!0,startIcon:void 0,endIcon:void 0,sx:{...M(),...v},...S,children:L()})});Vl.displayName="CodeplexBoton";const f0=Vl;function Fl(e){const t=O.useRef({});return O.useEffect(()=>{t.current=e}),t.current}function h0(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,s=Fl({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!i&&(a=!0);const{badgeContent:l,max:c=r}=a?s:e,u=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:a,max:c,displayValue:u}}function m0(e){return Ee("MuiBadge",e)}const Dn=Re("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);function vn(e){return typeof e=="string"}function wf(e,t,n){return e===void 0||vn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Cf(e,t,n){return typeof e=="function"?e(t,n):e}function ho(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Mu(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Sf(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const b=ce(n?.className,s,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},h={...n,...i,...r};return b.length>0&&(h.className=b),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:void 0}}const a=ho({...i,...r}),l=Mu(r),c=Mu(i),u=t(a),d=ce(u?.className,n?.className,s,i?.className,r?.className),p={...u?.style,...n?.style,...i?.style,...r?.style},f={...u,...n,...c,...l};return d.length>0&&(f.className=d),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:u.ref}}function we(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...f}=s,b=d[e]||r,g=Cf(p[e],i),{props:{component:h,...v},internalRef:w}=Sf({className:n,...c,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:g}),C=it(w,g?.ref,t.ref),S=e==="root"?h||u:h,x=wf(b,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...v,...S&&!l&&{as:S},...S&&l&&{component:S},ref:C},i);return[b,x]}const ra=10,ia=4,g0=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:s,classes:a={}}=e,l={root:["root"],badge:["badge",s,r&&"invisible",`anchorOrigin${z(n.vertical)}${z(n.horizontal)}`,`anchorOrigin${z(n.vertical)}${z(n.horizontal)}${z(i)}`,`overlap${z(i)}`,t!=="default"&&`color${z(t)}`]};return ke(l,m0,a)},b0=B("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),y0=B("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${z(n.anchorOrigin.vertical)}${z(n.anchorOrigin.horizontal)}${z(n.overlap)}`],n.color!=="default"&&t[`color${z(n.color)}`],n.invisible&&t.invisible]}})(ye(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:ra*2,lineHeight:1,padding:"0 6px",height:ra*2,borderRadius:ra,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Ke(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:ia,height:ia*2,minWidth:ia*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Dn.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Dn.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Dn.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Dn.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Dn.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Dn.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Dn.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Dn.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function Au(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const ws=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiBadge"}),{anchorOrigin:i,className:s,classes:a,component:l,components:c={},componentsProps:u={},children:d,overlap:p="rectangular",color:f="default",invisible:b=!1,max:g=99,badgeContent:h,slots:v,slotProps:w,showZero:C=!1,variant:S="standard",...x}=r,{badgeContent:T,invisible:P,max:j,displayValue:R}=h0({max:g,invisible:b,badgeContent:h,showZero:C}),k=Fl({anchorOrigin:Au(i),color:f,overlap:p,variant:S,badgeContent:h}),I=P||T==null&&S!=="dot",{color:A=f,overlap:y=p,anchorOrigin:N,variant:M=S}=I?k:r,L=Au(N),E=M!=="dot"?R:void 0,V={...r,badgeContent:T,invisible:I,max:j,displayValue:E,showZero:C,anchorOrigin:L,color:A,overlap:y,variant:M},F=g0(V),W={slots:{root:v?.root??c.Root,badge:v?.badge??c.Badge},slotProps:{root:w?.root??u.root,badge:w?.badge??u.badge}},[D,$]=we("root",{elementType:b0,externalForwardedProps:{...W,...x},ownerState:V,className:ce(F.root,s),ref:n,additionalProps:{as:l}}),[Z,te]=we("badge",{elementType:y0,externalForwardedProps:W,ownerState:V,className:F.badge});return m.jsxs(D,{...$,children:[d,m.jsx(Z,{...te,children:E})]})});process.env.NODE_ENV!=="production"&&(ws.propTypes={anchorOrigin:o.shape({horizontal:o.oneOf(["left","right"]),vertical:o.oneOf(["bottom","top"])}),badgeContent:o.node,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,components:o.shape({Badge:o.elementType,Root:o.elementType}),componentsProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),invisible:o.bool,max:o.number,overlap:o.oneOf(["circular","rectangular"]),showZero:o.bool,slotProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({badge:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["dot","standard"]),o.string])});const v0=fe.keyframes`
|
|
140
|
+
`,Tp=J("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),jn=le.forwardRef(({variante:e="primario",tamano:t="mediano",forma:r="cuadrado",estado:n="inactivo",cargando:i=!1,disabled:a=!1,iconoIzquierda:s,iconoDerecha:l,soloIcono:c=!1,texto:u,textoCargando:p,textoExito:m,textoError:y,children:b,startIcon:g,endIcon:d,sx:C,color:T,alHacerClick:R,anchoCompleto:S,fullWidth:v,...x},w)=>{const P=Ge(),I=i?"cargando":n,M=I==="cargando",z=I==="exito",B=I==="error",f=I==="inactivo"&&!a,k=N=>["contorno","secundario"].includes(N)?"outlined":["fantasma","enlace"].includes(N)?"text":"contained",$=N=>N==="diminuto"||N==="xs"||N==="pequeno"||N==="sm"?"small":N==="mediano"||N==="md"?"medium":N==="grande"||N==="lg"||N==="enorme"||N==="xl"?"large":"medium",A=(N,L)=>{if(L)switch(L){case"primario":return"primary";case"secundario":return"secondary";case"exito":return"success";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"oscuro":return"inherit";default:return L}switch(N){case"primario":return"primary";case"secundario":return"secondary";case"peligro":return"error";case"exito":return"success";case"advertencia":return"warning";case"info":return"info";case"oscuro":return"inherit";case"contorno":return"primary";case"fantasma":return"inherit";default:return"primary"}},j=()=>{const N={textTransform:"none",fontWeight:600,letterSpacing:"0.01em",boxShadow:"none",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",borderRadius:r==="pildora"?"9999px":r==="circulo"?"50%":"10px",...c&&{minWidth:"auto",width:$(t)==="small"?32:$(t)==="large"?48:40,height:$(t)==="small"?32:$(t)==="large"?48:40,padding:0,borderRadius:r==="cuadrado"?"10px":"50%"},"&:hover":{transform:f?"translateY(-1px)":"none",boxShadow:f&&e!=="fantasma"&&e!=="enlace"?"0 4px 12px rgba(0,0,0,0.1)":"none"},"&:active":{transform:f?"scale(0.98)":"none"}};if(t==="diminuto"||t==="xs"?(N.padding=c?0:"2px 8px",N.fontSize="0.75rem",N.minWidth=c?24:"auto",c&&(N.height=24,N.width=24)):t==="pequeno"||t==="sm"?c&&(N.height=28,N.width=28):(t==="enorme"||t==="xl")&&(N.padding=c?0:"12px 28px",N.fontSize="1.125rem",c&&(N.height=56,N.width=56)),z&&(N.backgroundColor=P.palette.success.main,N.color=P.palette.success.contrastText,N["&:hover"]={backgroundColor:P.palette.success.dark}),B&&(N.backgroundColor=P.palette.error.main,N.color=P.palette.error.contrastText,N["&:hover"]={backgroundColor:P.palette.error.dark}),e==="suave"&&!z&&!B){const L=A("primario",T)||"primary";let O=P.palette.primary.main;L==="error"?O=P.palette.error.main:L==="success"?O=P.palette.success.main:L==="warning"?O=P.palette.warning.main:L==="info"?O=P.palette.info.main:L==="secondary"&&(O=P.palette.secondary.main),N.backgroundColor=re.alpha(O,.1),N.color=O,N.boxShadow="none",N["&:hover"]={...N["&:hover"],backgroundColor:re.alpha(O,.2),boxShadow:"none"}}return e==="fantasma"&&(N.backgroundColor="transparent",N["&:hover"]={...N["&:hover"],backgroundColor:re.alpha(P.palette.action.active,.08)}),e==="enlace"&&(N.padding=0,N.minWidth="auto",N.borderRadius=0,N.verticalAlign="baseline",N["&:hover"]={textDecoration:"underline",backgroundColor:"transparent",transform:"none",boxShadow:"none"},N["&:active"]={transform:"none"}),e==="oscuro"&&!z&&!B&&(N.backgroundColor=P.palette.grey[800],N.color=P.palette.common.white,N["&:hover"]={...N["&:hover"],backgroundColor:P.palette.grey[900]}),e==="claro"&&!z&&!B&&(N.backgroundColor=P.palette.grey[100],N.color=P.palette.grey[800],N["&:hover"]={...N["&:hover"],backgroundColor:P.palette.grey[200]}),N},V=()=>{const N=b||u;return M?h.jsxs(le.Fragment,{children:[h.jsx(Ft,{size:20,color:"inherit",sx:{mr:p?1:0}}),p||N]}):z?h.jsxs(le.Fragment,{children:[h.jsx(La,{sx:{mr:m?1:0,animation:`${Ii} 0.3s ease-out`}}),m||"¡Éxito!"]}):B?h.jsxs(le.Fragment,{children:[h.jsx(Cp,{sx:{mr:y?1:0,animation:`${Ii} 0.3s ease-out`}}),y||"Error"]}):h.jsxs(le.Fragment,{children:[s&&h.jsx("span",{style:{marginRight:N?8:0,display:"flex"},children:s}),N,l&&h.jsx("span",{style:{marginLeft:N?8:0,display:"flex"},children:l})]})};return h.jsx(Va,{ref:w,variant:k(e),color:A(e,T),size:$(t),disabled:a||M,fullWidth:S??v,onClick:R,disableElevation:!0,startIcon:void 0,endIcon:void 0,sx:{...j(),...C},...x,children:V()})});jn.displayName="CodeplexBoton";const wp=jn;function Wa(e){const t=E.useRef({});return E.useEffect(()=>{t.current=e}),t.current}function Ep(e){const{badgeContent:t,invisible:r=!1,max:n=99,showZero:i=!1}=e,a=Wa({badgeContent:t,max:n});let s=r;r===!1&&t===0&&!i&&(s=!0);const{badgeContent:l,max:c=n}=s?a:e,u=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:s,max:c,displayValue:u}}function Sp(e){return Te("MuiBadge",e)}const wt=we("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);function eo(e){return typeof e=="string"}function Ha(e,t,r){return e===void 0||eo(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Ua(e,t,r){return typeof e=="function"?e(t,r):e}function qa(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Ni(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function Ga(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const b=se(r?.className,a,i?.className,n?.className),g={...r?.style,...i?.style,...n?.style},d={...r,...i,...n};return b.length>0&&(d.className=b),Object.keys(g).length>0&&(d.style=g),{props:d,internalRef:void 0}}const s=qa({...i,...n}),l=Ni(n),c=Ni(i),u=t(s),p=se(u?.className,r?.className,a,i?.className,n?.className),m={...u?.style,...r?.style,...i?.style,...n?.style},y={...u,...r,...c,...l};return p.length>0&&(y.className=p),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:u.ref}}function ge(e,t){const{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:p={[e]:void 0},slotProps:m={[e]:void 0},...y}=a,b=p[e]||n,g=Ua(m[e],i),{props:{component:d,...C},internalRef:T}=Ga({className:r,...c,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:g}),R=Le(T,g?.ref,t.ref),S=e==="root"?d||u:d,v=Ha(b,{...e==="root"&&!u&&!p[e]&&s,...e!=="root"&&!p[e]&&s,...C,...S&&!l&&{as:S},...S&&l&&{component:S},ref:R},i);return[b,v]}const Fo=10,_o=4,Op=e=>{const{color:t,anchorOrigin:r,invisible:n,overlap:i,variant:a,classes:s={}}=e,l={root:["root"],badge:["badge",a,n&&"invisible",`anchorOrigin${G(r.vertical)}${G(r.horizontal)}`,`anchorOrigin${G(r.vertical)}${G(r.horizontal)}${G(i)}`,`overlap${G(i)}`,t!=="default"&&`color${G(t)}`]};return $e(l,Sp,s)},Rp=J("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Pp=J("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.badge,t[r.variant],t[`anchorOrigin${G(r.anchorOrigin.vertical)}${G(r.anchorOrigin.horizontal)}${G(r.overlap)}`],r.color!=="default"&&t[`color${G(r.color)}`],r.invisible&&t.invisible]}})(ye(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Fo*2,lineHeight:1,padding:"0 6px",height:Fo*2,borderRadius:Fo,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Ve(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:_o,height:_o*2,minWidth:_o*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${wt.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${wt.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${wt.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${wt.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${wt.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${wt.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${wt.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${wt.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function Bi(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const wo=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiBadge"}),{anchorOrigin:i,className:a,classes:s,component:l,components:c={},componentsProps:u={},children:p,overlap:m="rectangular",color:y="default",invisible:b=!1,max:g=99,badgeContent:d,slots:C,slotProps:T,showZero:R=!1,variant:S="standard",...v}=n,{badgeContent:x,invisible:w,max:P,displayValue:I}=Ep({max:g,invisible:b,badgeContent:d,showZero:R}),M=Wa({anchorOrigin:Bi(i),color:y,overlap:m,variant:S,badgeContent:d}),z=w||x==null&&S!=="dot",{color:B=y,overlap:f=m,anchorOrigin:k,variant:$=S}=z?M:n,A=Bi(k),j=$!=="dot"?I:void 0,V={...n,badgeContent:x,invisible:z,max:P,displayValue:j,showZero:R,anchorOrigin:A,color:B,overlap:f,variant:$},N=Op(V),L={slots:{root:C?.root??c.Root,badge:C?.badge??c.Badge},slotProps:{root:T?.root??u.root,badge:T?.badge??u.badge}},[O,_]=ge("root",{elementType:Rp,externalForwardedProps:{...L,...v},ownerState:V,className:se(N.root,a),ref:r,additionalProps:{as:l}}),[U,H]=ge("badge",{elementType:Pp,externalForwardedProps:L,ownerState:V,className:N.badge});return h.jsxs(O,{..._,children:[p,h.jsx(U,{...H,children:j})]})});process.env.NODE_ENV!=="production"&&(wo.propTypes={anchorOrigin:o.shape({horizontal:o.oneOf(["left","right"]),vertical:o.oneOf(["bottom","top"])}),badgeContent:o.node,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,components:o.shape({Badge:o.elementType,Root:o.elementType}),componentsProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),invisible:o.bool,max:o.number,overlap:o.oneOf(["circular","rectangular"]),showZero:o.bool,slotProps:o.shape({badge:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({badge:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["dot","standard"]),o.string])});const $p=re.keyframes`
|
|
141
141
|
0% {
|
|
142
142
|
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
|
|
143
143
|
transform: scale(1);
|
|
@@ -151,9 +151,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
151
151
|
100% {
|
|
152
152
|
transform: scale(1);
|
|
153
153
|
}
|
|
154
|
-
`,x0=B(ws,{shouldForwardProp:e=>e!=="animado"&&e!=="borde"})(({theme:e,animado:t,borde:n})=>({"& .MuiBadge-badge":{...n&&{boxShadow:`0 0 0 2px ${e.palette.background.paper}`},...t&&{animation:`${v0} 1.5s infinite ease-in-out`}}})),Tf=({children:e,color:t="primario",contenido:n,variante:r="estandar",maximo:i=99,mostrarCero:s=!1,superposicion:a="rectangular",invisible:l=!1,posicionVertical:c="arriba",posicionHorizontal:u="derecha",animado:d=!1,borde:p=!1,...f})=>{const b=v=>{switch(v){case"primario":return"primary";case"secundario":return"secondary";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"exito":return"success";default:return"primary"}},g=v=>v==="punto"?"dot":"standard",h=()=>({vertical:c==="arriba"?"top":"bottom",horizontal:u==="derecha"?"right":"left"});return m.jsx(x0,{color:b(t),badgeContent:n,variant:g(r),max:i,showZero:s,overlap:a,invisible:l,anchorOrigin:h(),animado:d,borde:p,...f,children:e})},w0=Tf,C0=Re("MuiBox",["root"]),S0=lf(),qe=fe.createBox({themeId:vs,defaultTheme:S0,defaultClassName:C0.root,generateClassName:Kp.generate});process.env.NODE_ENV!=="production"&&(qe.propTypes={children:o.node,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function T0(e){return Ee("MuiTypography",e)}const zi=Re("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),P0={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},O0=gv(),E0=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:a}=e,l={root:["root",s,e.align!=="inherit"&&`align${z(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return ke(l,T0,a)},R0=B("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${z(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ye(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${z(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),ju={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},at=O.forwardRef(function(t,n){const{color:r,...i}=Ie({props:t,name:"MuiTypography"}),s=!P0[r],a=O0({...i,...s&&{color:r}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:f=!1,variant:b="body1",variantMapping:g=ju,...h}=a,v={...a,align:l,color:r,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:f,variant:b,variantMapping:g},w=u||(f?"p":g[b]||ju[b])||"span",C=E0(v);return m.jsx(R0,{as:w,ref:n,className:ce(C.root,c),...h,ownerState:v,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...h.style}})});process.env.NODE_ENV!=="production"&&(at.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});const Pf=({tamano:e="md",color:t="primario",tipo:n="borde",etiqueta:r,posicionEtiqueta:i="derecha",pantallaCompleta:s=!1,className:a="",sx:l,...c})=>{const u=_t(),p=typeof e=="number"?e:{xs:16,sm:24,md:40,lg:56,xl:80}[e],b={primario:"primary",secundario:"secondary",error:"error",info:"info",exito:"success",advertencia:"warning",blanco:"inherit",gris:"inherit"}[t]||"primary",h=t==="blanco"?"#ffffff":t==="gris"?u.palette.grey[500]:u.palette[b]?.main||u.palette.primary.main,v=()=>m.jsx(Un,{size:p,color:b,className:a,sx:{color:b==="inherit"?h:void 0,...l},...c}),w=()=>m.jsxs(qe,{position:"relative",display:"inline-flex",width:p,height:p,className:a,sx:l,children:[m.jsx(Un,{variant:"determinate",value:100,size:p,sx:{color:u.palette.mode==="dark"?fe.alpha(h,.2):fe.alpha(h,.1),position:"absolute"}}),m.jsx(Un,{variant:"indeterminate",disableShrink:!0,size:p,sx:{color:h,animationDuration:"1.2s",position:"absolute",left:0,"& .MuiCircularProgress-circle":{strokeLinecap:"round"}},...c})]}),C=()=>m.jsx(qe,{display:"flex",gap:.5,className:a,sx:{height:p,alignItems:"center",...l},children:[0,1,2].map(A=>m.jsx(qe,{sx:{width:p/3,height:p/3,borderRadius:"50%",bgcolor:h,animation:"rebote 1.4s infinite ease-in-out both",animationDelay:`${A*.16}s`,"@keyframes rebote":{"0%, 80%, 100%":{transform:"scale(0)"},"40%":{transform:"scale(1)"}}}},A))}),S=()=>m.jsxs(qe,{position:"relative",display:"inline-flex",width:p,height:p,className:a,sx:l,children:[m.jsx(qe,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:h,opacity:.75,animation:"pulso 1s cubic-bezier(0, 0, 0.2, 1) infinite","@keyframes pulso":{"75%, 100%":{transform:"scale(2)",opacity:0}}}}),m.jsx(qe,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:h}})]}),x=()=>{const A=p/2-p*.1;return m.jsx(qe,{width:p,height:p,position:"relative",className:a,sx:l,children:[0,1,2,3].map(y=>m.jsx(qe,{sx:{position:"absolute",width:A,height:A,borderRadius:"50%",bgcolor:h,top:y<2?0:"auto",bottom:y>=2?0:"auto",left:y%2===0?0:"auto",right:y%2!==0?0:"auto",animation:"cuadricula-fade 1.5s infinite linear",animationDelay:y===1?"-0.4s":y===2?"-0.8s":y===3?"-1.2s":"0s","@keyframes cuadricula-fade":{"0%, 100%":{opacity:1},"50%":{opacity:.3}}}},y))})},T=(A,y,N,M)=>m.jsx(qe,{width:p,height:p,position:"relative",className:a,sx:l,children:Array.from({length:A}).map((L,E)=>m.jsx(qe,{sx:{transformOrigin:"50% 50%",animation:"spinner-fade 1s linear infinite",animationDelay:`${-1+E/A}s`,transform:`rotate(${E*(360/A)}deg) translate(0, -130%)`,position:"absolute",top:"50%",left:"50%",width:p*y,height:p*N,borderRadius:M,bgcolor:h,"@keyframes spinner-fade":{"0%":{opacity:1},"100%":{opacity:0}}}},E))}),P=()=>T(12,.08,.24,"4px"),j=()=>T(8,.2,.2,"4px"),R=()=>T(12,.15,.15,"50%"),k=()=>{switch(n){case"anillo":return w();case"puntos":return C();case"pulso":return S();case"segmentos":return j();case"lineas":return P();case"puntos-circulo":return R();case"cuadricula":return x();default:return v()}},I=m.jsxs(qe,{display:"inline-flex",flexDirection:i==="abajo"?"column":"row",alignItems:"center",justifyContent:"center",gap:1.5,children:[k(),r&&m.jsx(at,{variant:"body2",color:"text.secondary",fontWeight:500,whiteSpace:"nowrap",children:r})]});return s?m.jsx(qe,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9999,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:u.palette.mode==="dark"?"rgba(0,0,0,0.85)":"rgba(255, 255, 255, 0.9)",sx:{backdropFilter:"blur(5px)"},children:I}):I},k0=Pf,Of=({teclas:e,tamano:t="md",className:n="",children:r,...i})=>{const s=t==="sm"?"text-[10px] px-1.5 py-0.5":t==="lg"?"text-xs px-2.5 py-1.5":"text-[11px] px-2 py-1",a="inline-flex items-center justify-center rounded border border-gray-300 bg-gray-50 text-gray-800 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100 font-mono shadow-sm";return e&&e.length>0?m.jsx("span",{className:`inline-flex items-center gap-1 ${n}`,...i,children:e.map((l,c)=>m.jsx("kbd",{className:`${a} ${s}`,children:l},l+c))}):m.jsx("kbd",{className:`${a} ${s} ${n}`,...i,children:r})},I0=Of,M0=dt(m.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function A0(e){return Ee("MuiAvatar",e)}const j0=Re("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),$0=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ke({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},A0,t)},N0=B("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(ye(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),L0=B("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),D0=B(M0,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function B0({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=O.useState(!1);return O.useEffect(()=>{if(!n&&!r)return;s(!1);let a=!0;const l=new Image;return l.onload=()=>{a&&s("loaded")},l.onerror=()=>{a&&s("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const zl=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:a,component:l="div",slots:c={},slotProps:u={},imgProps:d,sizes:p,src:f,srcSet:b,variant:g="circular",...h}=r;let v=null;const w={...r,component:l,variant:g},C=B0({...d,...typeof u.img=="function"?u.img(w):u.img,src:f,srcSet:b}),S=f||b,x=S&&C!=="error";w.colorDefault=!x,delete w.ownerState;const T=$0(w),[P,j]=we("root",{ref:n,className:ce(T.root,a),elementType:N0,externalForwardedProps:{slots:c,slotProps:u,component:l,...h},ownerState:w}),[R,k]=we("img",{className:T.img,elementType:L0,externalForwardedProps:{slots:c,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:i,src:f,srcSet:b,sizes:p},ownerState:w}),[I,A]=we("fallback",{className:T.fallback,elementType:D0,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:w});return x?v=m.jsx(R,{...k}):s||s===0?v=s:S&&i?v=i[0]:v=m.jsx(I,{...A}),m.jsx(P,{...j,children:v})});process.env.NODE_ENV!=="production"&&(zl.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function V0(e){return Ee("MuiAvatarGroup",e)}const F0=Re("MuiAvatarGroup",["root","avatar"]),sa={small:-16,medium:-8},z0=e=>{const{classes:t}=e;return ke({root:["root"],avatar:["avatar"]},V0,t)},W0=B("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>[{[`& .${F0.avatar}`]:t.avatar},t.root]})(ye(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${j0.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),Ef=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiAvatarGroup"}),{children:i,className:s,component:a="div",componentsProps:l,max:c=5,renderSurplus:u,slotProps:d={},slots:p={},spacing:f="medium",total:b,variant:g="circular",...h}=r;let v=c<2?2:c;const w={...r,max:c,spacing:f,component:a,variant:g},C=z0(w),S=O.Children.toArray(i).filter(y=>(process.env.NODE_ENV!=="production"&&Hn.isFragment(y)&&console.error(["MUI: The AvatarGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
155
|
-
`)),
|
|
156
|
-
`)):null),renderSurplus:o.func,slotProps:o.shape({additionalAvatar:o.object,surplus:o.oneOfType([o.func,o.object])}),slots:o.shape({surplus:o.elementType}),spacing:o.oneOfType([o.oneOf(["medium","small"]),o.number]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),total:o.number,variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function
|
|
154
|
+
`,jp=J(wo,{shouldForwardProp:e=>e!=="animado"&&e!=="borde"})(({theme:e,animado:t,borde:r})=>({"& .MuiBadge-badge":{...r&&{boxShadow:`0 0 0 2px ${e.palette.background.paper}`},...t&&{animation:`${$p} 1.5s infinite ease-in-out`}}})),Ya=({children:e,color:t="primario",contenido:r,variante:n="estandar",maximo:i=99,mostrarCero:a=!1,superposicion:s="rectangular",invisible:l=!1,posicionVertical:c="arriba",posicionHorizontal:u="derecha",animado:p=!1,borde:m=!1,...y})=>{const b=C=>{switch(C){case"primario":return"primary";case"secundario":return"secondary";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"exito":return"success";default:return"primary"}},g=C=>C==="punto"?"dot":"standard",d=()=>({vertical:c==="arriba"?"top":"bottom",horizontal:u==="derecha"?"right":"left"});return h.jsx(jp,{color:b(t),badgeContent:r,variant:g(n),max:i,showZero:a,overlap:s,invisible:l,anchorOrigin:d(),animado:p,borde:m,...y,children:e})},kp=Ya,Ap=we("MuiBox",["root"]),Mp=Oa(),de=re.createBox({themeId:vo,defaultTheme:Mp,defaultClassName:Ap.root,generateClassName:pa.generate});process.env.NODE_ENV!=="production"&&(de.propTypes={children:o.node,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Ip(e){return Te("MuiTypography",e)}we("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Np={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Bp=Ru(),Dp=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:s}=e,l={root:["root",a,e.align!=="inherit"&&`align${G(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return $e(l,Ip,s)},zp=J("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${G(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(ye(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(Ve()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${G(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Di={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Fe=E.forwardRef(function(t,r){const{color:n,...i}=Re({props:t,name:"MuiTypography"}),a=!Np[n],s=Bp({...i,...a&&{color:n}}),{align:l="inherit",className:c,component:u,gutterBottom:p=!1,noWrap:m=!1,paragraph:y=!1,variant:b="body1",variantMapping:g=Di,...d}=s,C={...s,align:l,color:n,className:c,component:u,gutterBottom:p,noWrap:m,paragraph:y,variant:b,variantMapping:g},T=u||(y?"p":g[b]||Di[b])||"span",R=Dp(C);return h.jsx(zp,{as:T,ref:r,className:se(R.root,c),...d,ownerState:C,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...d.style}})});process.env.NODE_ENV!=="production"&&(Fe.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});const Ka=({tamano:e="md",color:t="primario",tipo:r="borde",etiqueta:n,posicionEtiqueta:i="derecha",pantallaCompleta:a=!1,className:s="",sx:l,...c})=>{const u=Ge(),m=typeof e=="number"?e:{xs:16,sm:24,md:40,lg:56,xl:80}[e],b={primario:"primary",secundario:"secondary",error:"error",info:"info",exito:"success",advertencia:"warning",blanco:"inherit",gris:"inherit"}[t]||"primary",d=t==="blanco"?"#ffffff":t==="gris"?u.palette.grey[500]:u.palette[b]?.main??u.palette.primary.main,C=()=>h.jsx(Ft,{size:m,color:b,className:s,sx:{color:b==="inherit"?d:void 0,...l},...c}),T=()=>h.jsxs(de,{position:"relative",display:"inline-flex",width:m,height:m,className:s,sx:l,children:[h.jsx(Ft,{variant:"determinate",value:100,size:m,sx:{color:u.palette.mode==="dark"?re.alpha(d,.2):re.alpha(d,.1),position:"absolute"}}),h.jsx(Ft,{variant:"indeterminate",disableShrink:!0,size:m,sx:{color:d,animationDuration:"1.2s",position:"absolute",left:0,"& .MuiCircularProgress-circle":{strokeLinecap:"round"}},...c})]}),R=()=>h.jsx(de,{display:"flex",gap:.5,className:s,sx:{height:m,alignItems:"center",...l},children:[0,1,2].map(B=>h.jsx(de,{sx:{width:m/3,height:m/3,borderRadius:"50%",bgcolor:d,animation:"rebote 1.4s infinite ease-in-out both",animationDelay:`${B*.16}s`,"@keyframes rebote":{"0%, 80%, 100%":{transform:"scale(0)"},"40%":{transform:"scale(1)"}}}},B))}),S=()=>h.jsxs(de,{position:"relative",display:"inline-flex",width:m,height:m,className:s,sx:l,children:[h.jsx(de,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:d,opacity:.75,animation:"pulso 1s cubic-bezier(0, 0, 0.2, 1) infinite","@keyframes pulso":{"75%, 100%":{transform:"scale(2)",opacity:0}}}}),h.jsx(de,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:d}})]}),v=()=>{const B=m/2-m*.1;return h.jsx(de,{width:m,height:m,position:"relative",className:s,sx:l,children:[0,1,2,3].map(f=>h.jsx(de,{sx:{position:"absolute",width:B,height:B,borderRadius:"50%",bgcolor:d,top:f<2?0:"auto",bottom:f>=2?0:"auto",left:f%2===0?0:"auto",right:f%2!==0?0:"auto",animation:"cuadricula-fade 1.5s infinite linear",animationDelay:f===1?"-0.4s":f===2?"-0.8s":f===3?"-1.2s":"0s","@keyframes cuadricula-fade":{"0%, 100%":{opacity:1},"50%":{opacity:.3}}}},f))})},x=(B,f,k,$)=>h.jsx(de,{width:m,height:m,position:"relative",className:s,sx:l,children:Array.from({length:B}).map((A,j)=>h.jsx(de,{sx:{transformOrigin:"50% 50%",animation:"spinner-fade 1s linear infinite",animationDelay:`${-1+j/B}s`,transform:`rotate(${j*(360/B)}deg) translate(0, -130%)`,position:"absolute",top:"50%",left:"50%",width:m*f,height:m*k,borderRadius:$,bgcolor:d,"@keyframes spinner-fade":{"0%":{opacity:1},"100%":{opacity:0}}}},j))}),w=()=>x(12,.08,.24,"4px"),P=()=>x(8,.2,.2,"4px"),I=()=>x(12,.15,.15,"50%"),M=()=>{switch(r){case"anillo":return T();case"puntos":return R();case"pulso":return S();case"segmentos":return P();case"lineas":return w();case"puntos-circulo":return I();case"cuadricula":return v();default:return C()}},z=h.jsxs(de,{display:"inline-flex",flexDirection:i==="abajo"?"column":"row",alignItems:"center",justifyContent:"center",gap:1.5,children:[M(),n&&h.jsx(Fe,{variant:"body2",color:"text.secondary",fontWeight:500,whiteSpace:"nowrap",children:n})]});return a?h.jsx(de,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9999,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:u.palette.mode==="dark"?"rgba(0,0,0,0.85)":"rgba(255, 255, 255, 0.9)",sx:{backdropFilter:"blur(5px)"},children:z}):z},Fp=Ka,Xa=({teclas:e,tamano:t="md",className:r="",children:n,...i})=>{const a=t==="sm"?"text-[10px] px-1.5 py-0.5":t==="lg"?"text-xs px-2.5 py-1.5":"text-[11px] px-2 py-1",s="inline-flex items-center justify-center rounded border border-gray-300 bg-gray-50 text-gray-800 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100 font-mono shadow-sm";return e&&e.length>0?h.jsx("span",{className:`inline-flex items-center gap-1 ${r}`,...i,children:e.map((l,c)=>h.jsx("kbd",{className:`${s} ${a}`,children:l},l+c))}):h.jsx("kbd",{className:`${s} ${a} ${r}`,...i,children:n})},_p=Xa,Vp=Pe(h.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Lp(e){return Te("MuiAvatar",e)}const Wp=we("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),Hp=e=>{const{classes:t,variant:r,colorDefault:n}=e;return $e({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},Lp,t)},Up=J("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(ye(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),qp=J("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Gp=J(Vp,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function Yp({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[i,a]=E.useState(!1);return E.useEffect(()=>{if(!r&&!n)return;a(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&a("loaded")},l.onerror=()=>{s&&a("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=r,n&&(l.srcset=n),()=>{s=!1}},[e,t,r,n]),i}const kn=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:s,component:l="div",slots:c={},slotProps:u={},imgProps:p,sizes:m,src:y,srcSet:b,variant:g="circular",...d}=n;let C=null;const T={...n,component:l,variant:g},R=Yp({...p,...typeof u.img=="function"?u.img(T):u.img,src:y,srcSet:b}),S=y||b,v=S&&R!=="error";T.colorDefault=!v,delete T.ownerState;const x=Hp(T),[w,P]=ge("root",{ref:r,className:se(x.root,s),elementType:Up,externalForwardedProps:{slots:c,slotProps:u,component:l,...d},ownerState:T}),[I,M]=ge("img",{className:x.img,elementType:qp,externalForwardedProps:{slots:c,slotProps:{img:{...p,...u.img}}},additionalProps:{alt:i,src:y,srcSet:b,sizes:m},ownerState:T}),[z,B]=ge("fallback",{className:x.fallback,elementType:Gp,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:T});return v?C=h.jsx(I,{...M}):a||a===0?C=a:S&&i?C=i[0]:C=h.jsx(z,{...B}),h.jsx(w,{...P,children:C})});process.env.NODE_ENV!=="production"&&(kn.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function Kp(e){return Te("MuiAvatarGroup",e)}const Xp=we("MuiAvatarGroup",["root","avatar"]),Vo={small:-16,medium:-8},Zp=e=>{const{classes:t}=e;return $e({root:["root"],avatar:["avatar"]},Kp,t)},Jp=J("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Xp.avatar}`]:t.avatar},t.root]})(ye(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${Wp.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),Za=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiAvatarGroup"}),{children:i,className:a,component:s="div",componentsProps:l,max:c=5,renderSurplus:u,slotProps:p={},slots:m={},spacing:y="medium",total:b,variant:g="circular",...d}=n;let C=c<2?2:c;const T={...n,max:c,spacing:y,component:s,variant:g},R=Zp(T),S=E.Children.toArray(i).filter(f=>(process.env.NODE_ENV!=="production"&&vr.isFragment(f)&&console.error(["MUI: The AvatarGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
155
|
+
`)),E.isValidElement(f))),v=b||S.length;v===C&&(C+=1),C=Math.min(v+1,C);const x=Math.min(S.length,C-1),w=Math.max(v-C,v-x,0),P=u?u(w):`+${w}`;let I;T.spacing&&Vo[T.spacing]!==void 0?I=Vo[T.spacing]:T.spacing===0?I=0:I=-T.spacing||Vo.medium;const M={slots:m,slotProps:{surplus:p.additionalAvatar??l?.additionalAvatar,...l,...p}},[z,B]=ge("surplus",{elementType:kn,externalForwardedProps:M,className:R.avatar,ownerState:T,additionalProps:{variant:g}});return h.jsxs(Jp,{as:s,ownerState:T,className:se(R.root,a),ref:r,...d,style:{"--AvatarGroup-spacing":`${I}px`,...d.style},children:[w?h.jsx(z,{...B,children:P}):null,S.slice(0,x).reverse().map(f=>E.cloneElement(f,{className:se(f.props.className,R.avatar),variant:f.props.variant||g}))]})});process.env.NODE_ENV!=="production"&&(Za.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,componentsProps:o.shape({additionalAvatar:o.object}),max:it(o.number,e=>e.max<2?new Error(["MUI: The prop `max` should be equal to 2 or above.","A value below is clamped to 2."].join(`
|
|
156
|
+
`)):null),renderSurplus:o.func,slotProps:o.shape({additionalAvatar:o.object,surplus:o.oneOfType([o.func,o.object])}),slots:o.shape({surplus:o.elementType}),spacing:o.oneOfType([o.oneOf(["medium","small"]),o.number]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),total:o.number,variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function Qp(e){return Te("MuiSkeleton",e)}we("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const ed=e=>{const{classes:t,variant:r,animation:n,hasChildren:i,width:a,height:s}=e;return $e({root:["root",r,n,i&&"withChildren",i&&!a&&"fitContent",i&&!s&&"heightAuto"]},Qp,t)},an=re.keyframes`
|
|
157
157
|
0% {
|
|
158
158
|
opacity: 1;
|
|
159
159
|
}
|
|
@@ -165,7 +165,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
165
165
|
100% {
|
|
166
166
|
opacity: 1;
|
|
167
167
|
}
|
|
168
|
-
`,
|
|
168
|
+
`,sn=re.keyframes`
|
|
169
169
|
0% {
|
|
170
170
|
transform: translateX(-100%);
|
|
171
171
|
}
|
|
@@ -178,80 +178,20 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
178
178
|
100% {
|
|
179
179
|
transform: translateX(100%);
|
|
180
180
|
}
|
|
181
|
-
`,
|
|
182
|
-
animation: ${
|
|
183
|
-
`:null,
|
|
181
|
+
`,td=typeof an!="string"?re.css`
|
|
182
|
+
animation: ${an} 2s ease-in-out 0.5s infinite;
|
|
183
|
+
`:null,rd=typeof sn!="string"?re.css`
|
|
184
184
|
&::after {
|
|
185
|
-
animation: ${
|
|
185
|
+
animation: ${sn} 2s linear 0.5s infinite;
|
|
186
186
|
}
|
|
187
|
-
`:null,
|
|
187
|
+
`:null,od=J("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.animation!==!1&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})(ye(({theme:e})=>{const t=vp(e.shape.borderRadius)||"px",r=xp(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${t}/${Math.round(r/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:n})=>n.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:n})=>n.hasChildren&&!n.width,style:{maxWidth:"fit-content"}},{props:({ownerState:n})=>n.hasChildren&&!n.height,style:{height:"auto"}},{props:{animation:"pulse"},style:td||{animation:`${an} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
|
|
188
188
|
90deg,
|
|
189
189
|
transparent,
|
|
190
190
|
${(e.vars||e).palette.action.hover},
|
|
191
191
|
transparent
|
|
192
|
-
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:
|
|
193
|
-
group flex items-center justify-center
|
|
194
|
-
text-red-500 dark:text-red-400
|
|
195
|
-
font-bold text-lg leading-none
|
|
196
|
-
cursor-help select-none
|
|
197
|
-
transition-transform duration-200
|
|
198
|
-
focus:outline-none focus:text-red-600 dark:focus:text-red-300
|
|
199
|
-
${n?"scale-110":"hover:scale-110"}
|
|
200
|
-
`,children:"*"}),n&&m.jsxs("div",{id:s,className:`
|
|
201
|
-
absolute bottom-full left-0 mb-1.5 z-[100]
|
|
202
|
-
/* Responsive Width: Fijo en desktop, limitado al viewport en móvil */
|
|
203
|
-
w-64 max-w-[85vw] sm:max-w-xs
|
|
204
|
-
bg-white dark:bg-gray-800
|
|
205
|
-
border border-gray-200 dark:border-gray-700
|
|
206
|
-
rounded-lg shadow-xl
|
|
207
|
-
animate-in fade-in zoom-in-95 slide-in-from-bottom-1 duration-150
|
|
208
|
-
origin-bottom-left
|
|
209
|
-
`,onClick:u=>u.stopPropagation(),children:[m.jsx("div",{className:"px-3 py-2 border-b border-gray-100 dark:border-gray-700/50 bg-gray-50/80 dark:bg-gray-800/80 rounded-t-lg backdrop-blur-sm",children:m.jsxs("h4",{className:"text-[10px] font-bold text-gray-500 dark:text-gray-400 uppercase tracking-wider flex items-center gap-1.5",children:[m.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:m.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Requisitos"]})}),m.jsx("ul",{className:"p-1.5 space-y-0.5",children:e.map((u,d)=>m.jsxs("li",{className:`
|
|
210
|
-
flex items-start gap-2 px-2 py-1.5 rounded
|
|
211
|
-
text-xs text-gray-600 dark:text-gray-300
|
|
212
|
-
hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors
|
|
213
|
-
`,children:[m.jsx("span",{className:"text-blue-500 dark:text-blue-400 mt-[2px]",children:"•"}),m.jsx("span",{className:"leading-snug",children:u})]},d))}),m.jsx("div",{className:"absolute -bottom-1 left-1.5 w-2 h-2 bg-white dark:bg-gray-800 border-b border-r border-gray-200 dark:border-gray-700 rotate-45"})]})]})},Q0=_l,Mf=({para:e,texto:t,obligatorio:n,requisitos:r,className:i="",children:s,...a})=>m.jsxs("div",{className:`flex items-center gap-2 mb-1.5 ${i}`,...a,children:[m.jsx("label",{htmlFor:e,className:"text-sm font-medium text-gray-800 dark:text-gray-100 cursor-pointer select-none",children:t}),n&&(r&&r.length>0?m.jsx(_l,{requisitos:r}):m.jsx("span",{className:"text-xs text-red-500 font-bold select-none",title:"Campo obligatorio",children:"*"})),s]}),ex=Mf;function tx(e){const t=typeof e;switch(t){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 t}}function Af(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const s=tx(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function jf(e,t,n,r){return e[t]===void 0?null:Af(e,t,n,r)}function qa(){return null}jf.isRequired=Af;qa.isRequired=qa;const Ul=process.env.NODE_ENV==="production"?qa:jf;function nx(e){return Ee("MuiPaper",e)}Re("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 ox=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ke(s,nx,i)},rx=B("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(ye(({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:t})=>!t.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)"}}]}))),Zn=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiPaper"}),i=_t(),{className:s,component:a="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=r,p={...r,component:a,elevation:l,square:c,variant:u},f=ox(p);return process.env.NODE_ENV!=="production"&&i.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
214
|
-
`)),m.jsx(rx,{as:a,ownerState:p,className:ce(f.root,s),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[l],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[l]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Li("#fff",Na(l))}, ${Li("#fff",Na(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Zn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:Rt(Ul,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});function ix(e){return Ee("MuiCard",e)}Re("MuiCard",["root"]);const sx=e=>{const{classes:t}=e;return ke({root:["root"]},ix,t)},ax=B(Zn,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Hl=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCard"}),{className:i,raised:s=!1,...a}=r,l={...r,raised:s},c=sx(l);return m.jsx(ax,{className:ce(c.root,i),elevation:s?8:void 0,ref:n,ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Hl.propTypes={children:o.node,classes:o.object,className:o.string,raised:Rt(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function lx(e){return Ee("MuiCardActionArea",e)}const aa=Re("MuiCardActionArea",["root","focusVisible","focusHighlight"]),cx=e=>{const{classes:t}=e;return ke({root:["root"],focusHighlight:["focusHighlight"]},lx,t)},ux=B(kn,{name:"MuiCardActionArea",slot:"Root"})(ye(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${aa.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${aa.focusVisible} .${aa.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),dx=B("span",{name:"MuiCardActionArea",slot:"FocusHighlight"})(ye(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),$f=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardActionArea"}),{children:i,className:s,focusVisibleClassName:a,slots:l={},slotProps:c={},...u}=r,d=r,p=cx(d),f={slots:l,slotProps:c},[b,g]=we("root",{elementType:ux,externalForwardedProps:{...f,...u},shouldForwardComponentProp:!0,ownerState:d,ref:n,className:ce(p.root,s),additionalProps:{focusVisibleClassName:ce(a,p.focusVisible)}}),[h,v]=we("focusHighlight",{elementType:dx,externalForwardedProps:f,ownerState:d,ref:n,className:p.focusHighlight});return m.jsxs(b,{...g,children:[i,m.jsx(h,{...v})]})});process.env.NODE_ENV!=="production"&&($f.propTypes={children:o.node,classes:o.object,className:o.string,focusVisibleClassName:o.string,slotProps:o.shape({focusHighlight:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({focusHighlight:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function px(e){return Ee("MuiCardContent",e)}Re("MuiCardContent",["root"]);const fx=e=>{const{classes:t}=e;return ke({root:["root"]},px,t)},hx=B("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Nf=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardContent"}),{className:i,component:s="div",...a}=r,l={...r,component:s},c=fx(l);return m.jsx(hx,{as:s,className:ce(c.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Nf.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function mx(e){return Ee("MuiCardMedia",e)}Re("MuiCardMedia",["root","media","img"]);const gx=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return ke({root:["root",n&&"media",r&&"img"]},mx,t)},bx=B("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),yx=["video","audio","picture","iframe","img"],vx=["picture","img"],Lf=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardMedia"}),{children:i,className:s,component:a="div",image:l,src:c,style:u,...d}=r,p=yx.includes(a),f=!p&&l?{backgroundImage:`url("${l}")`,...u}:u,b={...r,component:a,isMediaComponent:p,isImageComponent:vx.includes(a)},g=gx(b);return m.jsx(bx,{className:ce(g.root,s),as:a,role:!p&&l?"img":void 0,ref:n,style:f,ownerState:b,src:p?l||c:void 0,...d,children:i})});process.env.NODE_ENV!=="production"&&(Lf.propTypes={children:Rt(o.node,e=>!e.children&&!e.image&&!e.src&&!e.component?new Error("MUI: Either `children`, `image`, `src` or `component` prop must be specified."):null),classes:o.object,className:o.string,component:o.elementType,image:o.string,src:o.string,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Df=({variante:e="estandar",relleno:t="m",efectoHover:n,clicable:r,titulo:i,subtitulo:s,accionCabecera:a,multimedia:l,cabecera:c,pie:u,alHacerClick:d,className:p="",children:f,sx:b,...g})=>{const h=_t(),v=j=>j==="contorno"||j==="suave"?"outlined":"elevation",w=j=>{switch(j){case"ninguno":return 0;case"p":return 1.5;case"g":return 3;default:return 2}},C=r||!!d,S=C?$f:H.Fragment,x=C?{component:"div",onClick:d}:{},T=()=>e==="suave"?{backgroundColor:h.palette.mode==="dark"?fe.alpha(h.palette.primary.main,.05):fe.alpha(h.palette.primary.main,.03),borderColor:h.palette.mode==="dark"?fe.alpha(h.palette.primary.main,.1):fe.alpha(h.palette.primary.main,.08)}:e==="estandar"?{backgroundColor:h.palette.background.paper}:{},P=()=>c?m.jsx(qe,{sx:{p:w(t),pb:0},children:c}):i?m.jsxs(qe,{sx:{p:w(t),pb:0,display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:1},children:[m.jsxs(qe,{sx:{display:"flex",flexDirection:"column"},children:[m.jsx(at,{variant:"h6",component:"div",sx:{fontWeight:600,lineHeight:1.2,fontSize:"1rem",color:h.palette.text.primary},children:i}),s&&m.jsx(at,{variant:"body2",color:"text.secondary",sx:{mt:.5,fontSize:"0.875rem"},children:s})]}),a&&m.jsx(qe,{sx:{mt:-.5,mr:-.5},children:a})]}):null;return m.jsx(Hl,{variant:v(e)==="outlined"?"outlined":void 0,elevation:e==="estandar"?2:0,className:p,sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:"12px",...T(),...n&&{transition:"transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{transform:"translateY(-4px)",boxShadow:h.shadows[8],...e!=="estandar"&&{borderColor:h.palette.primary.main}}},...b},...g,children:m.jsxs(S,{...x,children:[typeof l=="string"?m.jsx(Lf,{component:"img",image:l,alt:"Multimedia",height:"180",sx:{objectFit:"cover"}}):l,P(),m.jsx(Nf,{sx:{p:w(t),flexGrow:1,"&:last-child":{pb:w(t)}},children:f}),u&&m.jsx(qe,{sx:{p:w(t),pt:0,mt:"auto",borderTop:e==="contorno"?`1px solid ${h.palette.divider}`:"none",...e==="contorno"&&{pt:w(t)}},children:u})]})})},xx=Df,Bf=({antetitulo:e,titulo:t,subtitulo:n,alineacion:r="left",etiquetaPrimaria:i,etiquetaSecundaria:s,alClickPrimario:a,alClickSecundario:l,alturaCompleta:c=!1,urlImagenFondo:u,capaOscura:d=!0,className:p="",children:f,...b})=>{const g=r==="center"?"text-center items-center":"text-left items-start",h=!!u;return m.jsxs("section",{className:`
|
|
215
|
-
relative overflow-hidden
|
|
216
|
-
border border-gray-200/80 dark:border-gray-700/80
|
|
217
|
-
rounded-2xl
|
|
218
|
-
px-6 py-10 md:px-10 md:py-14
|
|
219
|
-
shadow-sm
|
|
220
|
-
flex
|
|
221
|
-
${c?"min-h-[60vh]":""}
|
|
222
|
-
${h?"bg-cover bg-center":"bg-gradient-to-b from-white to-gray-50 dark:from-gray-900 dark:to-gray-950"}
|
|
223
|
-
${p}
|
|
224
|
-
`,style:h?{backgroundImage:`url(${u})`}:void 0,...b,children:[h&&d&&m.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-[1px]"}),m.jsxs("div",{className:`
|
|
225
|
-
relative z-10
|
|
226
|
-
max-w-3xl mx-auto flex flex-col gap-6
|
|
227
|
-
${g}
|
|
228
|
-
`,children:[e&&m.jsx("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-blue-50 text-blue-700 dark:bg-blue-900/60 dark:text-blue-100",children:e}),m.jsxs("div",{className:"space-y-3 md:space-y-4",children:[m.jsx("h1",{className:`
|
|
229
|
-
text-3xl md:text-4xl lg:text-5xl font-extrabold tracking-tight
|
|
230
|
-
${h?"text-white":"text-gray-900 dark:text-white"}
|
|
231
|
-
`,children:t}),n&&m.jsx("p",{className:`
|
|
232
|
-
text-base md:text-lg max-w-2xl
|
|
233
|
-
${h?"text-gray-100/90":"text-gray-600 dark:text-gray-300"}
|
|
234
|
-
`,children:n})]}),(i||s)&&m.jsxs("div",{className:`
|
|
235
|
-
flex flex-wrap gap-3 mt-2
|
|
236
|
-
${r==="center"?"justify-center":"justify-start"}
|
|
237
|
-
`,children:[i&&a&&m.jsx("button",{type:"button",className:"inline-flex items-center justify-center px-4 py-2.5 text-sm font-semibold rounded-lg bg-blue-600 text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",onClick:a,children:i}),s&&l&&m.jsx("button",{type:"button",className:`
|
|
238
|
-
inline-flex items-center justify-center px-4 py-2.5 text-sm font-semibold rounded-lg border
|
|
239
|
-
${h?"border-white/60 text-white bg-white/5 hover:bg-white/10":"border-gray-300 text-gray-700 bg-white hover:bg-gray-50 dark:bg-gray-800 dark:border-gray-600 dark:text-gray-100 dark:hover:bg-gray-700"}
|
|
240
|
-
focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500
|
|
241
|
-
`,onClick:l,children:s})]}),f]})]})},wx=Bf,Cx={info:"bg-blue-50 text-blue-800 border-blue-200 dark:bg-blue-900/30 dark:text-blue-100 dark:border-blue-800/60",success:"bg-emerald-50 text-emerald-800 border-emerald-200 dark:bg-emerald-900/30 dark:text-emerald-100 dark:border-emerald-800/60",warning:"bg-amber-50 text-amber-800 border-amber-200 dark:bg-amber-900/30 dark:text-amber-100 dark:border-amber-800/60",error:"bg-red-50 text-red-800 border-red-200 dark:bg-red-900/30 dark:text-red-100 dark:border-red-800/60",neutral:"bg-gray-50 text-gray-800 border-gray-200 dark:bg-gray-900/40 dark:text-gray-100 dark:border-gray-700"},Vf=({titulo:e,descripcion:t,variante:n="info",icono:r,cerrable:i=!1,abierto:s,alCerrar:a,anchoCompleto:l=!0,className:c="",children:u,...d})=>{const[p,f]=H.useState(!0);if(!(s!==void 0?s:p))return null;const g=Cx[n],h=r??(n==="success"?"✅":n==="warning"?"⚠️":n==="error"?"⛔":n==="neutral"?"💡":"ℹ️"),v=n==="error"||n==="warning"?"alert":"status",w=()=>{s===void 0&&f(!1),a&&a()};return m.jsx("div",{className:l?"w-full":"inline-flex",...d,children:m.jsxs("div",{className:`
|
|
242
|
-
flex w-full items-start gap-3 border rounded-lg px-4 py-3
|
|
243
|
-
shadow-sm ${g} ${c}
|
|
244
|
-
`,role:v,children:[h&&m.jsx("div",{className:"mt-0.5 text-xl shrink-0","aria-hidden":"true",children:h}),m.jsxs("div",{className:"flex-1 min-w-0",children:[e&&m.jsx("p",{className:"text-sm font-semibold leading-5 truncate",children:e}),t&&m.jsx("p",{className:"mt-0.5 text-xs sm:text-sm leading-5",children:t}),u]}),i&&m.jsx("button",{type:"button",className:"shrink-0 p-1.5 rounded-md hover:bg-black/5 dark:hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-blue-500",onClick:w,"aria-label":"Cerrar aviso",children:m.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:m.jsx("path",{fillRule:"evenodd",d:`M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414
|
|
245
|
-
1.414L11.414 10l4.293 4.293a1 1 0 01-1.414
|
|
246
|
-
1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586
|
|
247
|
-
10 4.293 5.707a1 1 0 010-1.414z`,clipRule:"evenodd"})})})]})})},Sx=Vf;function Tx(e){return Ee("MuiAlert",e)}const $u=Re("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Px(e){return Ee("MuiIconButton",e)}const Nu=Re("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Ox=e=>{const{classes:t,disabled:n,color:r,edge:i,size:s,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${z(r)}`,i&&`edge${z(i)}`,`size${z(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ke(l,Px,t)},Ex=B(kn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${z(n.color)}`],n.edge&&t[`edge${z(n.edge)}`],t[`size${z(n.size)}`]]}})(ye(({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:t=>!t.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}}]})),ye(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].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)}}],[`&.${Nu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Nu.loading}`]:{color:"transparent"}}))),Rx=B("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"}}]})),Ho=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiIconButton"}),{edge:i=!1,children:s,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:f=null,loadingIndicator:b,...g}=r,h=jn(p),v=b??m.jsx(Un,{"aria-labelledby":h,color:"inherit",size:16}),w={...r,edge:i,color:l,disabled:c,disableFocusRipple:u,loading:f,loadingIndicator:v,size:d},C=Ox(w);return m.jsxs(Ex,{id:f?h:p,className:ce(C.root,a),centerRipple:!0,focusRipple:!u,disabled:c||f,ref:n,...g,ownerState:w,children:[typeof f=="boolean"&&m.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:m.jsx(Rx,{className:C.loadingIndicator,ownerState:w,children:f&&v})}),s]})});process.env.NODE_ENV!=="production"&&(Ho.propTypes={children:Rt(o.node,e=>O.Children.toArray(e.children).some(n=>O.isValidElement(n)&&n.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(`
|
|
248
|
-
`)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const kx=dt(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Ix=dt(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Mx=dt(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Ax=dt(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Ff=dt(m.jsx("path",{d:"M19 6.41L17.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"),jx=e=>{const{variant:t,color:n,severity:r,classes:i}=e,s={root:["root",`color${z(n||r)}`,`${t}${z(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ke(s,Tx,i)},$x=B(Zn,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${z(n.color||n.severity)}`]]}})(ye(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Ke(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${$u.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ke(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${$u.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ke(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),Nx=B("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Lx=B("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Dx=B("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Lu={success:m.jsx(kx,{fontSize:"inherit"}),warning:m.jsx(Ix,{fontSize:"inherit"}),error:m.jsx(Mx,{fontSize:"inherit"}),info:m.jsx(Ax,{fontSize:"inherit"})},ql=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiAlert"}),{action:i,children:s,className:a,closeText:l="Close",color:c,components:u={},componentsProps:d={},icon:p,iconMapping:f=Lu,onClose:b,role:g="alert",severity:h="success",slotProps:v={},slots:w={},variant:C="standard",...S}=r,x={...r,color:c,severity:h,variant:C,colorSeverity:c||h},T=jx(x),P={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...w},slotProps:{...d,...v}},[j,R]=we("root",{ref:n,shouldForwardComponentProp:!0,className:ce(T.root,a),elementType:$x,externalForwardedProps:{...P,...S},ownerState:x,additionalProps:{role:g,elevation:0}}),[k,I]=we("icon",{className:T.icon,elementType:Nx,externalForwardedProps:P,ownerState:x}),[A,y]=we("message",{className:T.message,elementType:Lx,externalForwardedProps:P,ownerState:x}),[N,M]=we("action",{className:T.action,elementType:Dx,externalForwardedProps:P,ownerState:x}),[L,E]=we("closeButton",{elementType:Ho,externalForwardedProps:P,ownerState:x}),[V,F]=we("closeIcon",{elementType:Ff,externalForwardedProps:P,ownerState:x});return m.jsxs(j,{...R,children:[p!==!1?m.jsx(k,{...I,children:p||f[h]||Lu[h]}):null,m.jsx(A,{...y,children:s}),i!=null?m.jsx(N,{...M,children:i}):null,i==null&&b?m.jsx(N,{...M,children:m.jsx(L,{size:"small","aria-label":l,title:l,color:"inherit",onClick:b,...E,children:m.jsx(V,{fontSize:"small",...F})})}):null]})});process.env.NODE_ENV!=="production"&&(ql.propTypes={action:o.node,children:o.node,classes:o.object,className:o.string,closeText:o.string,color:o.oneOfType([o.oneOf(["error","info","success","warning"]),o.string]),components:o.shape({CloseButton:o.elementType,CloseIcon:o.elementType}),componentsProps:o.shape({closeButton:o.object,closeIcon:o.object}),icon:o.node,iconMapping:o.shape({error:o.node,info:o.node,success:o.node,warning:o.node}),onClose:o.func,role:o.string,severity:o.oneOfType([o.oneOf(["error","info","success","warning"]),o.string]),slotProps:o.shape({action:o.oneOfType([o.func,o.object]),closeButton:o.oneOfType([o.func,o.object]),closeIcon:o.oneOfType([o.func,o.object]),icon:o.oneOfType([o.func,o.object]),message:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({action:o.elementType,closeButton:o.elementType,closeIcon:o.elementType,icon:o.elementType,message:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function Bx(e){return Ee("MuiAlertTitle",e)}Re("MuiAlertTitle",["root"]);const Vx=e=>{const{classes:t}=e;return ke({root:["root"]},Bx,t)},Fx=B(at,{name:"MuiAlertTitle",slot:"Root"})(ye(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Gl=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiAlertTitle"}),{className:i,...s}=r,a=r,l=Vx(a);return m.jsx(Fx,{gutterBottom:!0,component:"div",ownerState:a,ref:n,className:ce(l.root,i),...s})});process.env.NODE_ENV!=="production"&&(Gl.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const zf=e=>e.scrollTop;function qo(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function zx(e){return Ee("MuiCollapse",e)}Re("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Wx=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return ke(r,zx,n)},_x=B("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(ye(({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:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Ux=B("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Hx=B("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Wi=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCollapse"}),{addEndListener:i,children:s,className:a,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:p,onEntered:f,onEntering:b,onExit:g,onExited:h,onExiting:v,orientation:w="vertical",slots:C={},slotProps:S={},style:x,timeout:T=of.standard,TransitionComponent:P=dn,...j}=r,R={...r,orientation:w,collapsedSize:l},k=Wx(R),I=_t(),A=Wn(),y=O.useRef(null),N=O.useRef(),M=typeof l=="number"?`${l}px`:l,L=w==="horizontal",E=L?"width":"height",V=O.useRef(null),F=it(n,V),W=he=>Ae=>{if(he){const Me=V.current;Ae===void 0?he(Me):he(Me,Ae)}},D=()=>y.current?y.current[L?"clientWidth":"clientHeight"]:0,$=W((he,Ae)=>{y.current&&L&&(y.current.style.position="absolute"),he.style[E]=M,p&&p(he,Ae)}),Z=W((he,Ae)=>{const Me=D();y.current&&L&&(y.current.style.position="");const{duration:oe,easing:$e}=qo({style:x,timeout:T,easing:u},{mode:"enter"});if(T==="auto"){const Ce=I.transitions.getAutoHeightDuration(Me);he.style.transitionDuration=`${Ce}ms`,N.current=Ce}else he.style.transitionDuration=typeof oe=="string"?oe:`${oe}ms`;he.style[E]=`${Me}px`,he.style.transitionTimingFunction=$e,b&&b(he,Ae)}),te=W((he,Ae)=>{he.style[E]="auto",f&&f(he,Ae)}),re=W(he=>{he.style[E]=`${D()}px`,g&&g(he)}),J=W(h),U=W(he=>{const Ae=D(),{duration:Me,easing:oe}=qo({style:x,timeout:T,easing:u},{mode:"exit"});if(T==="auto"){const $e=I.transitions.getAutoHeightDuration(Ae);he.style.transitionDuration=`${$e}ms`,N.current=$e}else he.style.transitionDuration=typeof Me=="string"?Me:`${Me}ms`;he.style[E]=M,he.style.transitionTimingFunction=oe,v&&v(he)}),ie=he=>{T==="auto"&&A.start(N.current||0,he),i&&i(V.current,he)},de={slots:C,slotProps:S,component:c},[ne,ee]=we("root",{ref:F,className:ce(k.root,a),elementType:_x,externalForwardedProps:de,ownerState:R,additionalProps:{style:{[L?"minWidth":"minHeight"]:M,...x}}}),[pe,_]=we("wrapper",{ref:y,className:k.wrapper,elementType:Ux,externalForwardedProps:de,ownerState:R}),[ae,ue]=we("wrapperInner",{className:k.wrapperInner,elementType:Hx,externalForwardedProps:de,ownerState:R});return m.jsx(P,{in:d,onEnter:$,onEntered:te,onEntering:Z,onExit:re,onExited:J,onExiting:U,addEndListener:ie,nodeRef:V,timeout:T==="auto"?null:T,...j,children:(he,{ownerState:Ae,...Me})=>{const oe={...R,state:he};return m.jsx(ne,{...ee,className:ce(ee.className,{entered:k.entered,exited:!d&&M==="0px"&&k.hidden}[he]),ownerState:oe,...Me,children:m.jsx(pe,{..._,ownerState:oe,children:m.jsx(ae,{...ue,ownerState:oe,children:s})})})}})});process.env.NODE_ENV!=="production"&&(Wi.propTypes={addEndListener:o.func,children:o.node,classes:o.object,className:o.string,collapsedSize:o.oneOfType([o.number,o.string]),component:Yr,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,orientation:o.oneOf(["horizontal","vertical"]),slotProps:o.shape({root:o.oneOfType([o.func,o.object]),wrapper:o.oneOfType([o.func,o.object]),wrapperInner:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,wrapper:o.elementType,wrapperInner:o.elementType}),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});Wi&&(Wi.muiSupportAuto=!0);const Wf=({variante:e="info",diseno:t="estandar",titulo:n,descripcion:r,cerrable:i=!1,abierto:s=!0,alCerrar:a,tiempoAutoCierre:l,accion:c,icono:u,className:d="",children:p,sx:f,...b})=>{const g=_t(),[h,v]=H.useState(s);H.useEffect(()=>{v(s)},[s]),H.useEffect(()=>{if(l&&l>0&&h){const P=setTimeout(()=>{a&&a(),v(!1)},l);return()=>clearTimeout(P)}},[l,h,a]);const w=P=>{switch(P){case"peligro":return"error";case"exito":return"success";case"advertencia":return"warning";default:return"info"}},C=P=>{switch(P){case"lleno":return"filled";case"contorno":return"outlined";default:return"standard"}},S=()=>{if(t!=="suave")return{};const P=w(e),j=g.palette[P];if(!j)return{};const R=j.main;return{backgroundColor:fe.alpha(R,.12),color:R,"& .MuiAlert-icon":{color:R},"& .MuiAlertTitle-root":{color:R}}},x=()=>{a&&a(),v(!1)},T=s!==void 0?s:h;return m.jsx(Wi,{in:T,children:m.jsxs(ql,{severity:w(e),variant:C(t),onClose:i||a?x:void 0,className:d,icon:u,action:c,sx:{borderRadius:"12px",mb:2,border:t==="contorno"?"1px solid":void 0,boxShadow:t==="lleno"?"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06)":"0 1px 2px 0 rgba(0,0,0,0.05)",alignItems:"center",...S(),"& .MuiAlertTitle-root":{fontWeight:700,mb:r||p?.5:0,fontSize:"0.95rem",lineHeight:1.4},"& .MuiAlert-message":{width:"100%",padding:0,display:"flex",flexDirection:"column",justifyContent:"center"},"& .MuiAlert-icon":{padding:0,mr:1.5,opacity:t==="suave"?1:.9},...f},...b,children:[n&&m.jsx(Gl,{children:n}),r&&m.jsx(qe,{component:"div",sx:{opacity:.9},children:r}),p]})})},qx=Wf;function Gx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function _f(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let l;const c=s.type;return typeof c=="function"&&!Gx(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const xo=Rt(o.element,_f);xo.isRequired=Rt(o.element.isRequired,_f);function wo(e){return parseInt(O.version,10)>=19?e?.props?.ref||null:e?.ref||null}function Ga(e){return`scale(${e}, ${e**2})`}const Kx={entering:{opacity:1,transform:Ga(1)},entered:{opacity:1,transform:"none"}},la=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Go=O.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:s,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:b,style:g,timeout:h="auto",TransitionComponent:v=dn,...w}=t,C=Wn(),S=O.useRef(),x=_t(),T=O.useRef(null),P=it(T,wo(s),n),j=L=>E=>{if(L){const V=T.current;E===void 0?L(V):L(V,E)}},R=j(d),k=j((L,E)=>{zf(L);const{duration:V,delay:F,easing:W}=qo({style:g,timeout:h,easing:a},{mode:"enter"});let D;h==="auto"?(D=x.transitions.getAutoHeightDuration(L.clientHeight),S.current=D):D=V,L.style.transition=[x.transitions.create("opacity",{duration:D,delay:F}),x.transitions.create("transform",{duration:la?D:D*.666,delay:F,easing:W})].join(","),c&&c(L,E)}),I=j(u),A=j(b),y=j(L=>{const{duration:E,delay:V,easing:F}=qo({style:g,timeout:h,easing:a},{mode:"exit"});let W;h==="auto"?(W=x.transitions.getAutoHeightDuration(L.clientHeight),S.current=W):W=E,L.style.transition=[x.transitions.create("opacity",{duration:W,delay:V}),x.transitions.create("transform",{duration:la?W:W*.666,delay:la?V:V||W*.333,easing:F})].join(","),L.style.opacity=0,L.style.transform=Ga(.75),p&&p(L)}),N=j(f),M=L=>{h==="auto"&&C.start(S.current||0,L),r&&r(T.current,L)};return m.jsx(v,{appear:i,in:l,nodeRef:T,onEnter:k,onEntered:I,onEntering:R,onExit:y,onExited:N,onExiting:A,addEndListener:M,timeout:h==="auto"?null:h,...w,children:(L,{ownerState:E,...V})=>O.cloneElement(s,{style:{opacity:0,transform:Ga(.75),visibility:L==="exited"&&!l?"hidden":void 0,...Kx[L],...g,...s.props.style},ref:P,...V})})});process.env.NODE_ENV!=="production"&&(Go.propTypes={addEndListener:o.func,appear:o.bool,children:xo.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});Go&&(Go.muiSupportAuto=!0);function In(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=i||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Ft="top",on="bottom",rn="right",zt="left",Kl="auto",Xr=[Ft,on,rn,zt],Ko="start",Dr="end",Yx="clippingParents",Uf="viewport",pr="popper",Xx="reference",Du=Xr.reduce(function(e,t){return e.concat([t+"-"+Ko,t+"-"+Dr])},[]),Hf=[].concat(Xr,[Kl]).reduce(function(e,t){return e.concat([t,t+"-"+Ko,t+"-"+Dr])},[]),Zx="beforeRead",Jx="read",Qx="afterRead",ew="beforeMain",tw="main",nw="afterMain",ow="beforeWrite",rw="write",iw="afterWrite",sw=[Zx,Jx,Qx,ew,tw,nw,ow,rw,iw];function Sn(e){return e?(e.nodeName||"").toLowerCase():null}function Gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yo(e){var t=Gt(e).Element;return e instanceof t||e instanceof Element}function Qt(e){var t=Gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yl(e){if(typeof ShadowRoot>"u")return!1;var t=Gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function aw(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!Qt(s)||!Sn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function lw(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!Qt(i)||!Sn(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(c){i.removeAttribute(c)}))})}}const cw={name:"applyStyles",enabled:!0,phase:"write",fn:aw,effect:lw,requires:["computeStyles"]};function xn(e){return e.split("-")[0]}var mo=Math.max,_i=Math.min,Yo=Math.round;function Ka(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function qf(){return!/^((?!chrome|android).)*safari/i.test(Ka())}function Xo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&Qt(e)&&(i=e.offsetWidth>0&&Yo(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Yo(r.height)/e.offsetHeight||1);var a=yo(e)?Gt(e):window,l=a.visualViewport,c=!qf()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/i,d=(r.top+(c&&l?l.offsetTop:0))/s,p=r.width/i,f=r.height/s;return{width:p,height:f,top:d,right:u+p,bottom:d+f,left:u,x:u,y:d}}function Xl(e){var t=Xo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Gf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Yl(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Mn(e){return Gt(e).getComputedStyle(e)}function uw(e){return["table","td","th"].indexOf(Sn(e))>=0}function Jn(e){return((yo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Cs(e){return Sn(e)==="html"?e:e.assignedSlot||e.parentNode||(Yl(e)?e.host:null)||Jn(e)}function Bu(e){return!Qt(e)||Mn(e).position==="fixed"?null:e.offsetParent}function dw(e){var t=/firefox/i.test(Ka()),n=/Trident/i.test(Ka());if(n&&Qt(e)){var r=Mn(e);if(r.position==="fixed")return null}var i=Cs(e);for(Yl(i)&&(i=i.host);Qt(i)&&["html","body"].indexOf(Sn(i))<0;){var s=Mn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Zr(e){for(var t=Gt(e),n=Bu(e);n&&uw(n)&&Mn(n).position==="static";)n=Bu(n);return n&&(Sn(n)==="html"||Sn(n)==="body"&&Mn(n).position==="static")?t:n||dw(e)||t}function Zl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kr(e,t,n){return mo(e,_i(t,n))}function pw(e,t,n){var r=kr(e,t,n);return r>n?n:r}function Kf(){return{top:0,right:0,bottom:0,left:0}}function Yf(e){return Object.assign({},Kf(),e)}function Xf(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var fw=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Yf(typeof t!="number"?t:Xf(t,Xr))};function hw(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=xn(n.placement),c=Zl(l),u=[zt,rn].indexOf(l)>=0,d=u?"height":"width";if(!(!s||!a)){var p=fw(i.padding,n),f=Xl(s),b=c==="y"?Ft:zt,g=c==="y"?on:rn,h=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],v=a[c]-n.rects.reference[c],w=Zr(s),C=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,S=h/2-v/2,x=p[b],T=C-f[d]-p[g],P=C/2-f[d]/2+S,j=kr(x,P,T),R=c;n.modifiersData[r]=(t={},t[R]=j,t.centerOffset=j-P,t)}}function mw(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Gf(t.elements.popper,i)&&(t.elements.arrow=i))}const gw={name:"arrow",enabled:!0,phase:"main",fn:hw,effect:mw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zo(e){return e.split("-")[1]}var bw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yw(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Yo(n*i)/i||0,y:Yo(r*i)/i||0}}function Vu(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,f=a.x,b=f===void 0?0:f,g=a.y,h=g===void 0?0:g,v=typeof d=="function"?d({x:b,y:h}):{x:b,y:h};b=v.x,h=v.y;var w=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),S=zt,x=Ft,T=window;if(u){var P=Zr(n),j="clientHeight",R="clientWidth";if(P===Gt(n)&&(P=Jn(n),Mn(P).position!=="static"&&l==="absolute"&&(j="scrollHeight",R="scrollWidth")),P=P,i===Ft||(i===zt||i===rn)&&s===Dr){x=on;var k=p&&P===T&&T.visualViewport?T.visualViewport.height:P[j];h-=k-r.height,h*=c?1:-1}if(i===zt||(i===Ft||i===on)&&s===Dr){S=rn;var I=p&&P===T&&T.visualViewport?T.visualViewport.width:P[R];b-=I-r.width,b*=c?1:-1}}var A=Object.assign({position:l},u&&bw),y=d===!0?yw({x:b,y:h},Gt(n)):{x:b,y:h};if(b=y.x,h=y.y,c){var N;return Object.assign({},A,(N={},N[x]=C?"0":"",N[S]=w?"0":"",N.transform=(T.devicePixelRatio||1)<=1?"translate("+b+"px, "+h+"px)":"translate3d("+b+"px, "+h+"px, 0)",N))}return Object.assign({},A,(t={},t[x]=C?h+"px":"",t[S]=w?b+"px":"",t.transform="",t))}function vw(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:xn(t.placement),variation:Zo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Vu(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Vu(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vw,data:{}};var di={passive:!0};function ww(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,c=Gt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,di)}),l&&c.addEventListener("resize",n.update,di),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,di)}),l&&c.removeEventListener("resize",n.update,di)}}const Cw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ww,data:{}};var Sw={left:"right",right:"left",bottom:"top",top:"bottom"};function Pi(e){return e.replace(/left|right|bottom|top/g,function(t){return Sw[t]})}var Tw={start:"end",end:"start"};function Fu(e){return e.replace(/start|end/g,function(t){return Tw[t]})}function Jl(e){var t=Gt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ql(e){return Xo(Jn(e)).left+Jl(e).scrollLeft}function Pw(e,t){var n=Gt(e),r=Jn(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;var u=qf();(u||!u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l+Ql(e),y:c}}function Ow(e){var t,n=Jn(e),r=Jl(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=mo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=mo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Ql(e),c=-r.scrollTop;return Mn(i||n).direction==="rtl"&&(l+=mo(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function ec(e){var t=Mn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Zf(e){return["html","body","#document"].indexOf(Sn(e))>=0?e.ownerDocument.body:Qt(e)&&ec(e)?e:Zf(Cs(e))}function Ir(e,t){var n;t===void 0&&(t=[]);var r=Zf(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=Gt(r),a=i?[s].concat(s.visualViewport||[],ec(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(Ir(Cs(a)))}function Ya(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ew(e,t){var n=Xo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function zu(e,t,n){return t===Uf?Ya(Pw(e,n)):yo(t)?Ew(t,n):Ya(Ow(Jn(e)))}function Rw(e){var t=Ir(Cs(e)),n=["absolute","fixed"].indexOf(Mn(e).position)>=0,r=n&&Qt(e)?Zr(e):e;return yo(r)?t.filter(function(i){return yo(i)&&Gf(i,r)&&Sn(i)!=="body"}):[]}function kw(e,t,n,r){var i=t==="clippingParents"?Rw(e):[].concat(t),s=[].concat(i,[n]),a=s[0],l=s.reduce(function(c,u){var d=zu(e,u,r);return c.top=mo(d.top,c.top),c.right=_i(d.right,c.right),c.bottom=_i(d.bottom,c.bottom),c.left=mo(d.left,c.left),c},zu(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Jf(e){var t=e.reference,n=e.element,r=e.placement,i=r?xn(r):null,s=r?Zo(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case Ft:c={x:a,y:t.y-n.height};break;case on:c={x:a,y:t.y+t.height};break;case rn:c={x:t.x+t.width,y:l};break;case zt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?Zl(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case Ko:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Dr:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Br(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,l=n.boundary,c=l===void 0?Yx:l,u=n.rootBoundary,d=u===void 0?Uf:u,p=n.elementContext,f=p===void 0?pr:p,b=n.altBoundary,g=b===void 0?!1:b,h=n.padding,v=h===void 0?0:h,w=Yf(typeof v!="number"?v:Xf(v,Xr)),C=f===pr?Xx:pr,S=e.rects.popper,x=e.elements[g?C:f],T=kw(yo(x)?x:x.contextElement||Jn(e.elements.popper),c,d,a),P=Xo(e.elements.reference),j=Jf({reference:P,element:S,placement:i}),R=Ya(Object.assign({},S,j)),k=f===pr?R:P,I={top:T.top-k.top+w.top,bottom:k.bottom-T.bottom+w.bottom,left:T.left-k.left+w.left,right:k.right-T.right+w.right},A=e.modifiersData.offset;if(f===pr&&A){var y=A[i];Object.keys(I).forEach(function(N){var M=[rn,on].indexOf(N)>=0?1:-1,L=[Ft,on].indexOf(N)>=0?"y":"x";I[N]+=y[L]*M})}return I}function Iw(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Hf:c,d=Zo(r),p=d?l?Du:Du.filter(function(g){return Zo(g)===d}):Xr,f=p.filter(function(g){return u.indexOf(g)>=0});f.length===0&&(f=p);var b=f.reduce(function(g,h){return g[h]=Br(e,{placement:h,boundary:i,rootBoundary:s,padding:a})[xn(h)],g},{});return Object.keys(b).sort(function(g,h){return b[g]-b[h]})}function Mw(e){if(xn(e)===Kl)return[];var t=Pi(e);return[Fu(e),t,Fu(t)]}function Aw(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,b=n.flipVariations,g=b===void 0?!0:b,h=n.allowedAutoPlacements,v=t.options.placement,w=xn(v),C=w===v,S=c||(C||!g?[Pi(v)]:Mw(v)),x=[v].concat(S).reduce(function(re,J){return re.concat(xn(J)===Kl?Iw(t,{placement:J,boundary:d,rootBoundary:p,padding:u,flipVariations:g,allowedAutoPlacements:h}):J)},[]),T=t.rects.reference,P=t.rects.popper,j=new Map,R=!0,k=x[0],I=0;I<x.length;I++){var A=x[I],y=xn(A),N=Zo(A)===Ko,M=[Ft,on].indexOf(y)>=0,L=M?"width":"height",E=Br(t,{placement:A,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),V=M?N?rn:zt:N?on:Ft;T[L]>P[L]&&(V=Pi(V));var F=Pi(V),W=[];if(s&&W.push(E[y]<=0),l&&W.push(E[V]<=0,E[F]<=0),W.every(function(re){return re})){k=A,R=!1;break}j.set(A,W)}if(R)for(var D=g?3:1,$=function(J){var U=x.find(function(ie){var de=j.get(ie);if(de)return de.slice(0,J).every(function(ne){return ne})});if(U)return k=U,"break"},Z=D;Z>0;Z--){var te=$(Z);if(te==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const jw={name:"flip",enabled:!0,phase:"main",fn:Aw,requiresIfExists:["offset"],data:{_skip:!1}};function Wu(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function _u(e){return[Ft,rn,on,zt].some(function(t){return e[t]>=0})}function $w(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=Br(t,{elementContext:"reference"}),l=Br(t,{altBoundary:!0}),c=Wu(a,r),u=Wu(l,i,s),d=_u(c),p=_u(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const Nw={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$w};function Lw(e,t,n){var r=xn(e),i=[zt,Ft].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*i,[zt,rn].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function Dw(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,a=Hf.reduce(function(d,p){return d[p]=Lw(p,t.rects,s),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Bw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Dw};function Vw(e){var t=e.state,n=e.name;t.modifiersData[n]=Jf({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Fw={name:"popperOffsets",enabled:!0,phase:"read",fn:Vw,data:{}};function zw(e){return e==="x"?"y":"x"}function Ww(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,b=f===void 0?!0:f,g=n.tetherOffset,h=g===void 0?0:g,v=Br(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),w=xn(t.placement),C=Zo(t.placement),S=!C,x=Zl(w),T=zw(x),P=t.modifiersData.popperOffsets,j=t.rects.reference,R=t.rects.popper,k=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,I=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,y={x:0,y:0};if(P){if(s){var N,M=x==="y"?Ft:zt,L=x==="y"?on:rn,E=x==="y"?"height":"width",V=P[x],F=V+v[M],W=V-v[L],D=b?-R[E]/2:0,$=C===Ko?j[E]:R[E],Z=C===Ko?-R[E]:-j[E],te=t.elements.arrow,re=b&&te?Xl(te):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Kf(),U=J[M],ie=J[L],de=kr(0,j[E],re[E]),ne=S?j[E]/2-D-de-U-I.mainAxis:$-de-U-I.mainAxis,ee=S?-j[E]/2+D+de+ie+I.mainAxis:Z+de+ie+I.mainAxis,pe=t.elements.arrow&&Zr(t.elements.arrow),_=pe?x==="y"?pe.clientTop||0:pe.clientLeft||0:0,ae=(N=A?.[x])!=null?N:0,ue=V+ne-ae-_,he=V+ee-ae,Ae=kr(b?_i(F,ue):F,V,b?mo(W,he):W);P[x]=Ae,y[x]=Ae-V}if(l){var Me,oe=x==="x"?Ft:zt,$e=x==="x"?on:rn,Ce=P[T],ve=T==="y"?"height":"width",se=Ce+v[oe],q=Ce-v[$e],le=[Ft,zt].indexOf(w)!==-1,X=(Me=A?.[T])!=null?Me:0,K=le?se:Ce-j[ve]-R[ve]-X+I.altAxis,ge=le?Ce+j[ve]+R[ve]-X-I.altAxis:q,xe=b&&le?pw(K,Ce,ge):kr(b?K:se,Ce,b?ge:q);P[T]=xe,y[T]=xe-Ce}t.modifiersData[r]=y}}const _w={name:"preventOverflow",enabled:!0,phase:"main",fn:Ww,requiresIfExists:["offset"]};function Uw(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Hw(e){return e===Gt(e)||!Qt(e)?Jl(e):Uw(e)}function qw(e){var t=e.getBoundingClientRect(),n=Yo(t.width)/e.offsetWidth||1,r=Yo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Gw(e,t,n){n===void 0&&(n=!1);var r=Qt(t),i=Qt(t)&&qw(t),s=Jn(t),a=Xo(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Sn(t)!=="body"||ec(s))&&(l=Hw(t)),Qt(t)?(c=Xo(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Ql(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Kw(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function Yw(e){var t=Kw(e);return sw.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Xw(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Zw(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Uu={placement:"bottom",modifiers:[],strategy:"absolute"};function Hu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Jw(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?Uu:i;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Uu,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],f=!1,b={state:d,setOptions:function(w){var C=typeof w=="function"?w(d.options):w;h(),d.options=Object.assign({},s,d.options,C),d.scrollParents={reference:yo(l)?Ir(l):l.contextElement?Ir(l.contextElement):[],popper:Ir(c)};var S=Yw(Zw([].concat(r,d.options.modifiers)));return d.orderedModifiers=S.filter(function(x){return x.enabled}),g(),b.update()},forceUpdate:function(){if(!f){var w=d.elements,C=w.reference,S=w.popper;if(Hu(C,S)){d.rects={reference:Gw(C,Zr(S),d.options.strategy==="fixed"),popper:Xl(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(I){return d.modifiersData[I.name]=Object.assign({},I.data)});for(var x=0;x<d.orderedModifiers.length;x++){if(d.reset===!0){d.reset=!1,x=-1;continue}var T=d.orderedModifiers[x],P=T.fn,j=T.options,R=j===void 0?{}:j,k=T.name;typeof P=="function"&&(d=P({state:d,options:R,name:k,instance:b})||d)}}}},update:Xw(function(){return new Promise(function(v){b.forceUpdate(),v(d)})}),destroy:function(){h(),f=!0}};if(!Hu(l,c))return b;b.setOptions(u).then(function(v){!f&&u.onFirstUpdate&&u.onFirstUpdate(v)});function g(){d.orderedModifiers.forEach(function(v){var w=v.name,C=v.options,S=C===void 0?{}:C,x=v.effect;if(typeof x=="function"){var T=x({state:d,name:w,instance:b,options:S}),P=function(){};p.push(T||P)}})}function h(){p.forEach(function(v){return v()}),p=[]}return b}}var Qw=[Cw,Fw,xw,cw,Bw,jw,_w,gw,Nw],eC=Jw({defaultModifiers:Qw});function hn(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...s}=e,a=i?{}:Cf(n,r),{props:l,internalRef:c}=Sf({...s,externalSlotProps:a}),u=it(c,a?.ref,e.additionalProps?.ref);return wf(t,{...l,ref:u},r)}function tC(e){return typeof e=="function"?e():e}const Vr=O.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[a,l]=O.useState(null),c=it(O.isValidElement(r)?wo(r):null,n);if(nn(()=>{s||l(tC(i)||document.body)},[i,s]),nn(()=>{if(a&&!s)return La(n,a),()=>{La(n,null)}},[n,a,s]),s){if(O.isValidElement(r)){const u={ref:c};return O.cloneElement(r,u)}return r}return a&&Ug.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(Vr.propTypes={children:o.node,container:o.oneOfType([In,o.func]),disablePortal:o.bool});process.env.NODE_ENV!=="production"&&(Vr.propTypes=Al(Vr.propTypes));function nC(e){return Ee("MuiPopper",e)}Re("MuiPopper",["root"]);function oC(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Ui(e){return typeof e=="function"?e():e}function Ss(e){return e.nodeType!==void 0}function rC(e){return!Ss(e)}const iC=e=>{const{classes:t}=e;return ke({root:["root"]},nC,t)},sC={},aC=O.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:s,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:f={},slots:b={},TransitionProps:g,ownerState:h,...v}=t,w=O.useRef(null),C=it(w,n),S=O.useRef(null),x=it(S,p),T=O.useRef(x);nn(()=>{T.current=x},[x]),O.useImperativeHandle(p,()=>S.current,[]);const P=oC(u,s),[j,R]=O.useState(P),[k,I]=O.useState(Ui(r));O.useEffect(()=>{S.current&&S.current.forceUpdate()}),O.useEffect(()=>{r&&I(Ui(r))},[r]),nn(()=>{if(!k||!c)return;const L=F=>{R(F.placement)};if(process.env.NODE_ENV!=="production"&&k&&Ss(k)&&k.nodeType===1){const F=k.getBoundingClientRect();process.env.NODE_ENV!=="test"&&F.top===0&&F.left===0&&F.right===0&&F.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
249
|
-
`))}let E=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{L(F)}}];l!=null&&(E=E.concat(l)),d&&d.modifiers!=null&&(E=E.concat(d.modifiers));const V=eC(k,w.current,{placement:P,...d,modifiers:E});return T.current(V),()=>{V.destroy(),T.current(null)}},[k,a,l,c,d,P]);const A={placement:j};g!==null&&(A.TransitionProps=g);const y=iC(t),N=b.root??"div",M=hn({elementType:N,externalSlotProps:f.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:y.root});return m.jsx(N,{...M,children:typeof i=="function"?i(A):i})}),Qf=O.forwardRef(function(t,n){const{anchorEl:r,children:i,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:f=sC,popperRef:b,style:g,transition:h=!1,slotProps:v={},slots:w={},...C}=t,[S,x]=O.useState(!0),T=()=>{x(!1)},P=()=>{x(!0)};if(!c&&!d&&(!h||S))return null;let j;if(s)j=s;else if(r){const I=Ui(r);j=I&&Ss(I)?vt(I).body:vt(null).body}const R=!d&&c&&(!h||S)?"none":void 0,k=h?{in:d,onEnter:T,onExited:P}:void 0;return m.jsx(Vr,{disablePortal:l,container:j,children:m.jsx(aC,{anchorEl:r,direction:a,disablePortal:l,modifiers:u,ref:n,open:h?!S:d,placement:p,popperOptions:f,popperRef:b,slotProps:v,slots:w,...C,style:{position:"fixed",top:0,left:0,display:R,...g},TransitionProps:k,children:i})})});process.env.NODE_ENV!=="production"&&(Qf.propTypes={anchorEl:Rt(o.oneOfType([In,o.object,o.func]),e=>{if(e.open){const t=Ui(e.anchorEl);if(t&&Ss(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
250
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"||rC(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
251
|
-
`))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([In,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Bt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const lC=B(Qf,{name:"MuiPopper",slot:"Root"})({}),Jr=O.forwardRef(function(t,n){const r=tr(),i=Ie({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:f,open:b,placement:g,popperOptions:h,popperRef:v,transition:w,slots:C,slotProps:S,...x}=i,T=C?.root??l?.Root,P={anchorEl:s,container:u,disablePortal:d,keepMounted:p,modifiers:f,open:b,placement:g,popperOptions:h,popperRef:v,transition:w,...x};return m.jsx(lC,{as:a,direction:r?"rtl":"ltr",slots:{root:T},slotProps:S??c,...P,ref:n})});process.env.NODE_ENV!=="production"&&(Jr.propTypes={anchorEl:o.oneOfType([In,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([In,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Bt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function cC(e){return Ee("MuiTooltip",e)}const Ze=Re("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function uC(e){return Math.round(e*1e5)/1e5}const dC=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${z(s.split("-")[0])}`],arrow:["arrow"]};return ke(a,cC,t)},pC=B(Jr,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(ye(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ze.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ze.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ze.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ze.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ze.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ze.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ze.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ze.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),fC=B("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${z(n.placement.split("-")[0])}`]]}})(ye(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Ze.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ze.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ze.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ze.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${uC(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Ze.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ze.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Ze.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ze.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Ze.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ze.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Ze.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ze.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ze.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ze.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),hC=B("span",{name:"MuiTooltip",slot:"Arrow"})(ye(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let pi=!1;const qu=new xs;let fr={x:0,y:0};function fi(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Qr=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:s,classes:a,components:l={},componentsProps:c={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:f=!1,disableTouchListener:b=!1,enterDelay:g=100,enterNextDelay:h=0,enterTouchDelay:v=700,followCursor:w=!1,id:C,leaveDelay:S=0,leaveTouchDelay:x=1500,onClose:T,onOpen:P,open:j,placement:R="bottom",PopperComponent:k,PopperProps:I={},slotProps:A={},slots:y={},title:N,TransitionComponent:M,TransitionProps:L,...E}=r,V=O.isValidElement(s)?s:m.jsx("span",{children:s}),F=_t(),W=tr(),[D,$]=O.useState(),[Z,te]=O.useState(null),re=O.useRef(!1),J=f||w,U=Wn(),ie=Wn(),de=Wn(),ne=Wn(),[ee,pe]=yn({controlled:j,default:!1,name:"Tooltip",state:"open"});let _=ee;if(process.env.NODE_ENV!=="production"){const{current:Le}=O.useRef(j!==void 0);O.useEffect(()=>{D&&D.disabled&&!Le&&N!==""&&D.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
252
|
-
`))},[N,D,Le])}const ae=jn(C),ue=O.useRef(),he=St(()=>{ue.current!==void 0&&(document.body.style.WebkitUserSelect=ue.current,ue.current=void 0),ne.clear()});O.useEffect(()=>he,[he]);const Ae=Le=>{qu.clear(),pi=!0,pe(!0),P&&!_&&P(Le)},Me=St(Le=>{qu.start(800+S,()=>{pi=!1}),pe(!1),T&&_&&T(Le),U.start(F.transitions.duration.shortest,()=>{re.current=!1})}),oe=Le=>{re.current&&Le.type!=="touchstart"||(D&&D.removeAttribute("title"),ie.clear(),de.clear(),g||pi&&h?ie.start(pi?h:g,()=>{Ae(Le)}):Ae(Le))},$e=Le=>{ie.clear(),de.start(S,()=>{Me(Le)})},[,Ce]=O.useState(!1),ve=Le=>{Gn(Le.target)||(Ce(!1),$e(Le))},se=Le=>{D||$(Le.currentTarget),Gn(Le.target)&&(Ce(!0),oe(Le))},q=Le=>{re.current=!0;const Mt=V.props;Mt.onTouchStart&&Mt.onTouchStart(Le)},le=Le=>{q(Le),de.clear(),U.clear(),he(),ue.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.start(v,()=>{document.body.style.WebkitUserSelect=ue.current,oe(Le)})},X=Le=>{V.props.onTouchEnd&&V.props.onTouchEnd(Le),he(),de.start(x,()=>{Me(Le)})};O.useEffect(()=>{if(!_)return;function Le(Mt){Mt.key==="Escape"&&Me(Mt)}return document.addEventListener("keydown",Le),()=>{document.removeEventListener("keydown",Le)}},[Me,_]);const K=it(wo(V),$,n);!N&&N!==0&&(_=!1);const ge=O.useRef(),xe=Le=>{const Mt=V.props;Mt.onMouseMove&&Mt.onMouseMove(Le),fr={x:Le.clientX,y:Le.clientY},ge.current&&ge.current.update()},Te={},Se=typeof N=="string";u?(Te.title=!_&&Se&&!p?N:null,Te["aria-describedby"]=_?ae:null):(Te["aria-label"]=Se?N:null,Te["aria-labelledby"]=_&&!Se?ae:null);const me={...Te,...E,...V.props,className:ce(E.className,V.props.className),onTouchStart:q,ref:K,...w?{onMouseMove:xe}:{}};process.env.NODE_ENV!=="production"&&(me["data-mui-internal-clone-element"]=!0,O.useEffect(()=>{D&&!D.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
253
|
-
`))},[D]));const _e={};b||(me.onTouchStart=le,me.onTouchEnd=X),p||(me.onMouseOver=fi(oe,me.onMouseOver),me.onMouseLeave=fi($e,me.onMouseLeave),J||(_e.onMouseOver=oe,_e.onMouseLeave=$e)),d||(me.onFocus=fi(se,me.onFocus),me.onBlur=fi(ve,me.onBlur),J||(_e.onFocus=se,_e.onBlur=ve)),process.env.NODE_ENV!=="production"&&V.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${V.props.title}\` or the Tooltip component.`].join(`
|
|
254
|
-
`));const De={...r,isRtl:W,arrow:i,disableInteractive:J,placement:R,PopperComponentProp:k,touch:re.current},He=typeof A.popper=="function"?A.popper(De):A.popper,jt=O.useMemo(()=>{let Le=[{name:"arrow",enabled:!!Z,options:{element:Z,padding:4}}];return I.popperOptions?.modifiers&&(Le=Le.concat(I.popperOptions.modifiers)),He?.popperOptions?.modifiers&&(Le=Le.concat(He.popperOptions.modifiers)),{...I.popperOptions,...He?.popperOptions,modifiers:Le}},[Z,I.popperOptions,He?.popperOptions]),Pt=dC(De),gt=typeof A.transition=="function"?A.transition(De):A.transition,Pe={slots:{popper:l.Popper,transition:l.Transition??M,tooltip:l.Tooltip,arrow:l.Arrow,...y},slotProps:{arrow:A.arrow??c.arrow,popper:{...I,...He??c.popper},tooltip:A.tooltip??c.tooltip,transition:{...L,...gt??c.transition}}},[Be,Je]=we("popper",{elementType:pC,externalForwardedProps:Pe,ownerState:De,className:ce(Pt.popper,I?.className)}),[xt,Ue]=we("transition",{elementType:Go,externalForwardedProps:Pe,ownerState:De}),[ot,$t]=we("tooltip",{elementType:fC,className:Pt.tooltip,externalForwardedProps:Pe,ownerState:De}),[It,bt]=we("arrow",{elementType:hC,className:Pt.arrow,externalForwardedProps:Pe,ownerState:De,ref:te});return m.jsxs(O.Fragment,{children:[O.cloneElement(V,me),m.jsx(Be,{as:k??Jr,placement:R,anchorEl:w?{getBoundingClientRect:()=>({top:fr.y,left:fr.x,right:fr.x,bottom:fr.y,width:0,height:0})}:D,popperRef:ge,open:D?_:!1,id:ae,transition:!0,..._e,...Je,popperOptions:jt,children:({TransitionProps:Le})=>m.jsx(xt,{timeout:F.transitions.duration.shorter,...Le,...Ue,children:m.jsxs(ot,{...$t,children:[N,i?m.jsx(It,{...bt}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Qr.propTypes={arrow:o.bool,children:xo.isRequired,classes:o.object,className:o.string,components:o.shape({Arrow:o.elementType,Popper:o.elementType,Tooltip:o.elementType,Transition:o.elementType}),componentsProps:o.shape({arrow:o.object,popper:o.object,tooltip:o.object,transition:o.object}),describeChild:o.bool,disableFocusListener:o.bool,disableHoverListener:o.bool,disableInteractive:o.bool,disableTouchListener:o.bool,enterDelay:o.number,enterNextDelay:o.number,enterTouchDelay:o.number,followCursor:o.bool,id:o.string,leaveDelay:o.number,leaveTouchDelay:o.number,onClose:o.func,onOpen:o.func,open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:o.elementType,PopperProps:o.object,slotProps:o.shape({arrow:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),tooltip:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({arrow:o.elementType,popper:o.elementType,tooltip:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,TransitionComponent:o.elementType,TransitionProps:o.object});const tc={fontSize:"0.8125rem",padding:"8px 12px",maxWidth:250,lineHeight:1.4},eh={...tc,boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},mC=Fe.styled(({className:e,...t})=>m.jsx(Qr,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Ze.arrow}`]:{color:e.palette.grey[900]},[`& .${Ze.tooltip}`]:{backgroundColor:e.palette.grey[900],...eh}})),gC=Fe.styled(({className:e,...t})=>m.jsx(Qr,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Ze.arrow}`]:{color:e.palette.common.white},[`& .${Ze.tooltip}`]:{backgroundColor:e.palette.common.white,color:"rgba(0, 0, 0, 0.87)",boxShadow:e.shadows[4],border:"1px solid #e0e0e0",...tc}})),bC=Fe.styled(({className:e,...t})=>m.jsx(Qr,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Ze.arrow}`]:{color:e.palette.primary.main},[`& .${Ze.tooltip}`]:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,...tc,boxShadow:`0 4px 12px ${Fe.alpha(e.palette.primary.main,.4)}`}})),yC=Fe.styled(({className:e,...t})=>m.jsx(Qr,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Ze.arrow}`]:{color:"#1e40af"},[`& .${Ze.tooltip}`]:{backgroundColor:"#1e40af",color:"#ffffff",...eh}})),th=({contenido:e,children:t,lado:n="arriba",flecha:r=!0,color:i="oscuro",animacion:s="zoom",retraso:a=200,className:l,sx:c,...u})=>{const d=f=>{switch(f){case"arriba":return"top";case"abajo":return"bottom";case"izquierda":return"left";case"derecha":return"right";default:return"top"}},p=i==="claro"?gC:i==="primario"?bC:i==="azul"?yC:mC;return m.jsx(p,{title:e,placement:d(n),arrow:r,enterDelay:a,TransitionComponent:s==="fade"?Fe.Fade:Fe.Zoom,className:l,sx:c,...u,children:t})},vC=th;function xC(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:s}=e,a=Wn();O.useEffect(()=>{if(!i)return;function w(C){C.defaultPrevented||C.key==="Escape"&&r?.(C,"escapeKeyDown")}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[i,r]);const l=St((w,C)=>{r?.(w,C)}),c=St(w=>{!r||w==null||a.start(w,()=>{l(null,"timeout")})});O.useEffect(()=>(i&&c(t),a.clear),[i,t,c,a]);const u=w=>{r?.(w,"clickaway")},d=a.clear,p=O.useCallback(()=>{t!=null&&c(s??t*.5)},[t,s,c]),f=w=>C=>{const S=w.onBlur;S?.(C),p()},b=w=>C=>{const S=w.onFocus;S?.(C),d()},g=w=>C=>{const S=w.onMouseEnter;S?.(C),d()},h=w=>C=>{const S=w.onMouseLeave;S?.(C),p()};return O.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",p),window.addEventListener("blur",d),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",d)}},[n,i,p,d]),{getRootProps:(w={})=>{const C={...ho(e),...ho(w)};return{role:"presentation",...w,...C,onBlur:f(C),onFocus:b(C),onMouseEnter:g(C),onMouseLeave:h(C)}},onClickAway:u}}function Gu(e){return e.substring(2).toLowerCase()}function wC(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Hi(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=e,a=O.useRef(!1),l=O.useRef(null),c=O.useRef(!1),u=O.useRef(!1);O.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=it(wo(t),l),p=St(g=>{const h=u.current;u.current=!1;const v=vt(l.current);if(!c.current||!l.current||"clientX"in g&&wC(g,v))return;if(a.current){a.current=!1;return}let w;g.composedPath?w=g.composedPath().includes(l.current):w=!v.documentElement.contains(g.target)||l.current.contains(g.target),!w&&(n||!h)&&i(g)}),f=g=>h=>{u.current=!0;const v=t.props[g];v&&v(h)},b={ref:d};return s!==!1&&(b[s]=f(s)),O.useEffect(()=>{if(s!==!1){const g=Gu(s),h=vt(l.current),v=()=>{a.current=!0};return h.addEventListener(g,p),h.addEventListener("touchmove",v),()=>{h.removeEventListener(g,p),h.removeEventListener("touchmove",v)}}},[p,s]),r!==!1&&(b[r]=f(r)),O.useEffect(()=>{if(r!==!1){const g=Gu(r),h=vt(l.current);return h.addEventListener(g,p),()=>{h.removeEventListener(g,p)}}},[p,r]),O.cloneElement(t,b)}process.env.NODE_ENV!=="production"&&(Hi.propTypes={children:xo.isRequired,disableReactTree:o.bool,mouseEvent:o.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:o.func.isRequired,touchEvent:o.oneOf(["onTouchEnd","onTouchStart",!1])});process.env.NODE_ENV!=="production"&&(Hi.propTypes=Al(Hi.propTypes));function CC(e){return Ee("MuiSnackbarContent",e)}Re("MuiSnackbarContent",["root","message","action"]);const SC=e=>{const{classes:t}=e;return ke({root:["root"],action:["action"],message:["message"]},CC,t)},TC=B(Zn,{name:"MuiSnackbarContent",slot:"Root"})(ye(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Aa(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Aa(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),PC=B("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),OC=B("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),nh=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSnackbarContent"}),{action:i,className:s,message:a,role:l="alert",...c}=r,u=r,d=SC(u);return m.jsxs(TC,{role:l,elevation:6,className:ce(d.root,s),ownerState:u,ref:n,...c,children:[m.jsx(PC,{className:d.message,ownerState:u,children:a}),i?m.jsx(OC,{className:d.action,ownerState:u,children:i}):null]})});process.env.NODE_ENV!=="production"&&(nh.propTypes={action:o.node,classes:o.object,className:o.string,message:o.node,role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function EC(e){return Ee("MuiSnackbar",e)}Re("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const RC=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${z(n.vertical)}${z(n.horizontal)}`]};return ke(r,EC,t)},kC=B("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${z(n.anchorOrigin.vertical)}${z(n.anchorOrigin.horizontal)}`]]}})(ye(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),oh=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSnackbar"}),i=_t(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:d,className:p,ClickAwayListenerProps:f,ContentProps:b,disableWindowBlurListener:g=!1,message:h,onBlur:v,onClose:w,onFocus:C,onMouseEnter:S,onMouseLeave:x,open:T,resumeHideDuration:P,slots:j={},slotProps:R={},TransitionComponent:k,transitionDuration:I=s,TransitionProps:{onEnter:A,onExited:y,...N}={},...M}=r,L={...r,anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:u,disableWindowBlurListener:g,TransitionComponent:k,transitionDuration:I},E=RC(L),{getRootProps:V,onClickAway:F}=xC(L),[W,D]=O.useState(!0),$=ae=>{D(!0),y&&y(ae)},Z=(ae,ue)=>{D(!1),A&&A(ae,ue)},te={slots:{transition:k,...j},slotProps:{content:b,clickAwayListener:f,transition:N,...R}},[re,J]=we("root",{ref:n,className:[E.root,p],elementType:kC,getSlotProps:V,externalForwardedProps:{...te,...M},ownerState:L}),[U,{ownerState:ie,...de}]=we("clickAwayListener",{elementType:Hi,externalForwardedProps:te,getSlotProps:ae=>({onClickAway:(...ue)=>{const he=ue[0];ae.onClickAway?.(...ue),!he?.defaultMuiPrevented&&F(...ue)}}),ownerState:L}),[ne,ee]=we("content",{elementType:nh,shouldForwardComponentProp:!0,externalForwardedProps:te,additionalProps:{message:h,action:a},ownerState:L}),[pe,_]=we("transition",{elementType:Go,externalForwardedProps:te,getSlotProps:ae=>({onEnter:(...ue)=>{ae.onEnter?.(...ue),Z(...ue)},onExited:(...ue)=>{ae.onExited?.(...ue),$(...ue)}}),additionalProps:{appear:!0,in:T,timeout:I,direction:l==="top"?"down":"up"},ownerState:L});return!T&&W?null:m.jsx(U,{...de,...j.clickAwayListener&&{ownerState:ie},children:m.jsx(re,{...J,children:m.jsx(pe,{..._,children:d||m.jsx(ne,{...ee})})})})});process.env.NODE_ENV!=="production"&&(oh.propTypes={action:o.node,anchorOrigin:o.shape({horizontal:o.oneOf(["center","left","right"]).isRequired,vertical:o.oneOf(["bottom","top"]).isRequired}),autoHideDuration:o.number,children:o.element,classes:o.object,className:o.string,ClickAwayListenerProps:o.object,ContentProps:o.object,disableWindowBlurListener:o.bool,key:()=>null,message:o.node,onBlur:o.func,onClose:o.func,onFocus:o.func,onMouseEnter:o.func,onMouseLeave:o.func,open:o.bool,resumeHideDuration:o.number,slotProps:o.shape({clickAwayListener:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({clickAwayListener:o.elementType,content:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function IC(e){return Ee("MuiLinearProgress",e)}Re("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Xa=4,Za=fe.keyframes`
|
|
192
|
+
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:rd||{"&::after":{animation:`${sn} 2s linear 0.5s infinite`}}}]}})),An=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:a,component:s="span",height:l,style:c,variant:u="text",width:p,...m}=n,y={...n,animation:i,component:s,variant:u,hasChildren:!!m.children},b=ed(y);return h.jsx(od,{as:s,ref:r,className:se(b.root,a),ownerState:y,...m,style:{width:p,height:l,...c}})});process.env.NODE_ENV!=="production"&&(An.propTypes={animation:o.oneOf(["pulse","wave",!1]),children:o.node,classes:o.object,className:o.string,component:o.elementType,height:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rectangular","rounded","text"]),o.string]),width:o.oneOfType([o.number,o.string])});const ln=e=>typeof e=="number"?e:e&&{xs:24,sm:32,md:40,lg:48,xl:64,xxl:80}[e]||40,nd=e=>{const t=ln(e);return{width:t,height:t,fontSize:t/2}},id=J(wo)(({theme:e})=>({"& .MuiBadge-badge":{backgroundColor:"#44b700",color:"#44b700",boxShadow:`0 0 0 2px ${e.palette.background.paper}`,"&::after":{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",animation:"ripple 1.2s infinite ease-in-out",border:"1px solid currentColor",content:'""'}},"@keyframes ripple":{"0%":{transform:"scale(.8)",opacity:1},"100%":{transform:"scale(2.4)",opacity:0}}})),Ja=({tamano:e="md",variante:t="circular",estado:r,imagen:n,texto:i,cargando:a=!1,insignia:s,colorInsignia:l="error",sx:c,children:u,...p})=>{const m=T=>{switch(T){case"cuadrado":return"square";case"redondeado":return"rounded";default:return"circular"}},y=T=>{switch(T){case"primario":return"primary";case"secundario":return"secondary";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"exito":return"success";default:return"error"}},b=()=>{if(s)return s},g=()=>r&&!s?"dot":"standard",d=()=>{if(l&&s)return y(l)||"error";switch(r){case"conectado":return"#44b700";case"desconectado":return"#bdbdbd";case"ocupado":return"#f44336";case"ausente":return"#ff9800";default:return"transparent"}};if(a)return h.jsx(An,{variant:t==="circular"?"circular":"rectangular",width:ln(e),height:ln(e),animation:"wave"});const C=h.jsx(kn,{variant:m(t),src:n,alt:i,sx:[nd(e),...Array.isArray(c)?c:[c]],...p,children:u||(i?i.charAt(0).toUpperCase():null)});return!r&&!s?C:r==="conectado"&&!s?h.jsx(id,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:"dot",children:C}):h.jsx(wo,{overlap:t==="circular"?"circular":"rectangular",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:b(),variant:g(),sx:{"& .MuiBadge-badge":{backgroundColor:s?void 0:d(),color:s?void 0:d()}},color:s?y(l):void 0,children:C})},Qa=({children:e,spacing:t="medium",maximo:r=5,...n})=>h.jsx(Za,{max:r,spacing:t,...n,children:e}),es=e=>{let t=0;for(let n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t);let r="#";for(let n=0;n<3;n+=1){const i=t>>n*8&255;r+=`00${i.toString(16)}`.slice(-2)}return{sx:{bgcolor:r},children:`${e.split(" ")[0][0]}${e.split(" ")[1]?.[0]||""}`}},ad=es,sd=Qa,ld=Ja,ts=Pe(h.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),Mn=({requisitos:e=[]})=>{const[t,r]=le.useState(!1),n=le.useRef(null),i=W.useTheme();return h.jsx(W.ClickAwayListener,{onClickAway:()=>r(!1),children:h.jsxs(W.Box,{sx:{display:"inline-flex",alignItems:"center",ml:.25},children:[h.jsx(W.Box,{component:"button",ref:n,type:"button",onClick:a=>{a.stopPropagation(),a.preventDefault(),r(s=>!s)},onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),"aria-label":"Ver requisitos",sx:{display:"flex",alignItems:"center",justifyContent:"center",color:i.palette.error.main,fontWeight:700,fontSize:18,lineHeight:1,cursor:"help",userSelect:"none",background:"none",border:"none",p:0,transition:i.transitions.create("transform"),"&:hover":{transform:"scale(1.1)"},"&:focus-visible":{outline:`2px solid ${i.palette.primary.main}`,borderRadius:.5}},children:"*"}),h.jsx(W.Popper,{open:t,anchorEl:n.current,placement:"top-start",transition:!0,sx:{zIndex:i.zIndex.tooltip},children:({TransitionProps:a})=>h.jsx(W.Fade,{...a,timeout:150,children:h.jsxs(W.Paper,{elevation:8,sx:{width:256,maxWidth:"85vw",mb:.75,overflow:"hidden",border:`1px solid ${i.palette.divider}`},children:[h.jsx(W.Box,{sx:{px:1.5,py:1,borderBottom:`1px solid ${W.alpha(i.palette.divider,.5)}`,bgcolor:W.alpha(i.palette.background.default,.8),backdropFilter:"blur(8px)"},children:h.jsxs(W.Typography,{variant:"caption",fontWeight:700,color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:"0.05em",display:"flex",alignItems:"center",gap:.75},children:[h.jsx(ts,{sx:{fontSize:12}}),"Requisitos"]})}),h.jsx(W.Box,{component:"ul",sx:{p:.75,m:0,listStyle:"none"},children:e.map((s,l)=>h.jsxs(W.Box,{component:"li",sx:{display:"flex",alignItems:"flex-start",gap:1,px:1,py:.75,borderRadius:1,transition:i.transitions.create("background-color"),"&:hover":{bgcolor:i.palette.action.hover}},children:[h.jsx(W.Typography,{sx:{color:i.palette.primary.main,mt:"1px",fontSize:10},children:"●"}),h.jsx(W.Typography,{variant:"caption",color:"text.secondary",sx:{lineHeight:1.4},children:s})]},l))})]})})})]})})},cd=Mn,rs=({para:e,texto:t,obligatorio:r,requisitos:n,children:i})=>{const a=W.useTheme();return h.jsxs(W.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.75},children:[h.jsx(W.Typography,{component:"label",htmlFor:e,variant:"body2",fontWeight:500,sx:{cursor:"pointer",userSelect:"none",color:a.palette.text.primary},children:t}),r&&(n&&n.length>0?h.jsx(Mn,{requisitos:n}):h.jsx(W.Typography,{component:"span",sx:{fontSize:12,color:a.palette.error.main,fontWeight:700,userSelect:"none"},title:"Campo obligatorio",children:"*"})),i]})},ud=rs;function pd(e){const t=typeof e;switch(t){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 t}}function os(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=pd(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function ns(e,t,r,n){return e[t]===void 0?null:os(e,t,r,n)}function cn(){return null}ns.isRequired=os;cn.isRequired=cn;const is=process.env.NODE_ENV==="production"?cn:ns;function dd(e){return Te("MuiPaper",e)}we("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 fd=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return $e(a,dd,i)},md=J("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(ye(({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:t})=>!t.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)"}}]}))),Eo=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiPaper"}),i=Ge(),{className:a,component:s="div",elevation:l=1,square:c=!1,variant:u="elevation",...p}=n,m={...n,component:s,elevation:l,square:c,variant:u},y=fd(m);return process.env.NODE_ENV!=="production"&&i.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
193
|
+
`)),h.jsx(md,{as:s,ownerState:m,className:se(y.root,a),ref:r,...p,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[l],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[l]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Kr("#fff",Jo(l))}, ${Kr("#fff",Jo(l))})`}},...p.style}})});process.env.NODE_ENV!=="production"&&(Eo.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:it(is,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});function hd(e){return Te("MuiCard",e)}we("MuiCard",["root"]);const gd=e=>{const{classes:t}=e;return $e({root:["root"]},hd,t)},yd=J(Eo,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),as=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiCard"}),{className:i,raised:a=!1,...s}=n,l={...n,raised:a},c=gd(l);return h.jsx(yd,{className:se(c.root,i),elevation:a?8:void 0,ref:r,ownerState:l,...s})});process.env.NODE_ENV!=="production"&&(as.propTypes={children:o.node,classes:o.object,className:o.string,raised:it(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function bd(e){return Te("MuiCardActionArea",e)}const Lo=we("MuiCardActionArea",["root","focusVisible","focusHighlight"]),vd=e=>{const{classes:t}=e;return $e({root:["root"],focusHighlight:["focusHighlight"]},bd,t)},xd=J(To,{name:"MuiCardActionArea",slot:"Root"})(ye(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${Lo.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${Lo.focusVisible} .${Lo.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),Cd=J("span",{name:"MuiCardActionArea",slot:"FocusHighlight"})(ye(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),ss=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiCardActionArea"}),{children:i,className:a,focusVisibleClassName:s,slots:l={},slotProps:c={},...u}=n,p=n,m=vd(p),y={slots:l,slotProps:c},[b,g]=ge("root",{elementType:xd,externalForwardedProps:{...y,...u},shouldForwardComponentProp:!0,ownerState:p,ref:r,className:se(m.root,a),additionalProps:{focusVisibleClassName:se(s,m.focusVisible)}}),[d,C]=ge("focusHighlight",{elementType:Cd,externalForwardedProps:y,ownerState:p,className:m.focusHighlight});return h.jsxs(b,{...g,children:[i,h.jsx(d,{...C})]})});process.env.NODE_ENV!=="production"&&(ss.propTypes={children:o.node,classes:o.object,className:o.string,focusVisibleClassName:o.string,slotProps:o.shape({focusHighlight:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({focusHighlight:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Td(e){return Te("MuiCardContent",e)}we("MuiCardContent",["root"]);const wd=e=>{const{classes:t}=e;return $e({root:["root"]},Td,t)},Ed=J("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),ls=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiCardContent"}),{className:i,component:a="div",...s}=n,l={...n,component:a},c=wd(l);return h.jsx(Ed,{as:a,className:se(c.root,i),ownerState:l,ref:r,...s})});process.env.NODE_ENV!=="production"&&(ls.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Sd(e){return Te("MuiCardMedia",e)}we("MuiCardMedia",["root","media","img"]);const Od=e=>{const{classes:t,isMediaComponent:r,isImageComponent:n}=e;return $e({root:["root",r&&"media",n&&"img"]},Sd,t)},Rd=J("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{isMediaComponent:n,isImageComponent:i}=r;return[t.root,n&&t.media,i&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),Pd=["video","audio","picture","iframe","img"],$d=["picture","img"],cs=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiCardMedia"}),{children:i,className:a,component:s="div",image:l,src:c,style:u,...p}=n,m=Pd.includes(s),y=!m&&l?{backgroundImage:`url("${l}")`,...u}:u,b={...n,component:s,isMediaComponent:m,isImageComponent:$d.includes(s)},g=Od(b);return h.jsx(Rd,{className:se(g.root,a),as:s,role:!m&&l?"img":void 0,ref:r,style:y,ownerState:b,src:m?l||c:void 0,...p,children:i})});process.env.NODE_ENV!=="production"&&(cs.propTypes={children:it(o.node,e=>!e.children&&!e.image&&!e.src&&!e.component?new Error("MUI: Either `children`, `image`, `src` or `component` prop must be specified."):null),classes:o.object,className:o.string,component:o.elementType,image:o.string,src:o.string,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const us=({variante:e="estandar",relleno:t="m",efectoHover:r,clicable:n,titulo:i,subtitulo:a,accionCabecera:s,multimedia:l,cabecera:c,pie:u,alHacerClick:p,className:m="",children:y,sx:b,...g})=>{const d=Ge(),C=P=>P==="contorno"||P==="suave"?"outlined":"elevation",T=P=>{switch(P){case"ninguno":return 0;case"p":return 1.5;case"g":return 3;default:return 2}},R=n||!!p,S=R?ss:le.Fragment,v=R?{component:"div",onClick:p}:{},x=()=>e==="suave"?{backgroundColor:d.palette.mode==="dark"?re.alpha(d.palette.primary.main,.05):re.alpha(d.palette.primary.main,.03),borderColor:d.palette.mode==="dark"?re.alpha(d.palette.primary.main,.1):re.alpha(d.palette.primary.main,.08)}:e==="estandar"?{backgroundColor:d.palette.background.paper}:{},w=()=>c?h.jsx(de,{sx:{p:T(t),pb:0},children:c}):i?h.jsxs(de,{sx:{p:T(t),pb:0,display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:1},children:[h.jsxs(de,{sx:{display:"flex",flexDirection:"column"},children:[h.jsx(Fe,{variant:"h6",component:"div",sx:{fontWeight:600,lineHeight:1.2,fontSize:"1rem",color:d.palette.text.primary},children:i}),a&&h.jsx(Fe,{variant:"body2",color:"text.secondary",sx:{mt:.5,fontSize:"0.875rem"},children:a})]}),s&&h.jsx(de,{sx:{mt:-.5,mr:-.5},children:s})]}):null;return h.jsx(as,{variant:C(e)==="outlined"?"outlined":void 0,elevation:e==="estandar"?2:0,className:m,sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:"12px",...x(),...r&&{transition:"transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{transform:"translateY(-4px)",boxShadow:d.shadows[8],...e!=="estandar"&&{borderColor:d.palette.primary.main}}},...b},...g,children:h.jsxs(S,{...v,children:[typeof l=="string"?h.jsx(cs,{component:"img",image:l,alt:"Multimedia",height:"180",sx:{objectFit:"cover"}}):l,w(),h.jsx(ls,{sx:{p:T(t),flexGrow:1,"&:last-child":{pb:T(t)}},children:y}),u&&h.jsx(de,{sx:{p:T(t),pt:0,mt:"auto",borderTop:e==="contorno"?`1px solid ${d.palette.divider}`:"none",...e==="contorno"&&{pt:T(t)}},children:u})]})})},jd=us,kd={izquierda:"left",left:"left",centro:"center",center:"center"},ps=({antetitulo:e,titulo:t,subtitulo:r,alineacion:n="izquierda",etiquetaPrimaria:i,etiquetaSecundaria:a,alClickPrimario:s,alClickSecundario:l,alturaCompleta:c=!1,urlImagenFondo:u,capaOscura:p=!0,children:m})=>{const y=W.useTheme(),b=kd[n]??"left",g=!!u;return h.jsxs(W.Box,{component:"section",sx:{position:"relative",overflow:"hidden",border:`1px solid ${W.alpha(y.palette.divider,.8)}`,borderRadius:4,px:{xs:3,md:5},py:{xs:5,md:7},boxShadow:y.shadows[1],display:"flex",minHeight:c?"60vh":void 0,...g?{backgroundImage:`url(${u})`,backgroundSize:"cover",backgroundPosition:"center"}:{background:`linear-gradient(to bottom, ${y.palette.background.paper}, ${y.palette.background.default})`}},children:[g&&p&&h.jsx(W.Box,{sx:{position:"absolute",inset:0,bgcolor:W.alpha(y.palette.common.black,.4),backdropFilter:"blur(1px)"}}),h.jsxs(W.Box,{sx:{position:"relative",zIndex:1,maxWidth:720,mx:"auto",display:"flex",flexDirection:"column",gap:3,textAlign:b,alignItems:b==="center"?"center":"flex-start"},children:[e&&h.jsx(W.Chip,{label:e,size:"small",sx:{bgcolor:W.alpha(y.palette.primary.main,.1),color:y.palette.primary.main,fontWeight:500,fontSize:12}}),h.jsxs(W.Box,{sx:{display:"flex",flexDirection:"column",gap:{xs:1.5,md:2}},children:[t&&h.jsx(W.Typography,{variant:"h3",fontWeight:800,letterSpacing:"-0.02em",sx:{fontSize:{xs:28,md:36,lg:44},color:g?y.palette.common.white:y.palette.text.primary},children:t}),r&&h.jsx(W.Typography,{variant:"body1",sx:{maxWidth:560,fontSize:{xs:14,md:16},color:g?W.alpha(y.palette.common.white,.9):y.palette.text.secondary},children:r})]}),(i||a)&&h.jsxs(W.Box,{sx:{display:"flex",flexWrap:"wrap",gap:1.5,mt:1,justifyContent:b==="center"?"center":"flex-start"},children:[i&&s&&h.jsx(W.Button,{variant:"contained",onClick:s,sx:{textTransform:"none",fontWeight:600},children:i}),a&&l&&h.jsx(W.Button,{variant:"outlined",onClick:l,sx:{textTransform:"none",fontWeight:600,...g&&{borderColor:W.alpha(y.palette.common.white,.6),color:y.palette.common.white,"&:hover":{borderColor:y.palette.common.white,bgcolor:W.alpha(y.palette.common.white,.1)}}},children:a})]}),m]})]})},Ad=ps,ds=Pe(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"),Md=Pe(h.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),Id=Pe([h.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),h.jsx("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber"),In=Pe(h.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.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"}),"ErrorOutline"),Nd=Pe(h.jsx("path",{d:"M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7m2.85 11.1-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1"}),"LightbulbOutlined"),Bd={exito:"exito",success:"exito",advertencia:"advertencia",warning:"advertencia",neutro:"neutro",neutral:"neutro",info:"info",error:"error"},Dd={info:h.jsx(ts,{fontSize:"small"}),exito:h.jsx(Md,{fontSize:"small"}),advertencia:h.jsx(Id,{fontSize:"small"}),error:h.jsx(In,{fontSize:"small"}),neutro:h.jsx(Nd,{fontSize:"small"})},fs=({titulo:e,descripcion:t,variante:r="info",icono:n,cerrable:i=!1,abierto:a,alCerrar:s,anchoCompleto:l=!0,children:c})=>{const[u,p]=le.useState(!0),m=W.useTheme(),y=Bd[r]??"info";if(!(a!==void 0?a:u))return null;const g={info:{fondo:W.alpha(m.palette.info.main,.08),texto:m.palette.info.dark,borde:W.alpha(m.palette.info.main,.3)},exito:{fondo:W.alpha(m.palette.success.main,.08),texto:m.palette.success.dark,borde:W.alpha(m.palette.success.main,.3)},advertencia:{fondo:W.alpha(m.palette.warning.main,.08),texto:m.palette.warning.dark,borde:W.alpha(m.palette.warning.main,.3)},error:{fondo:W.alpha(m.palette.error.main,.08),texto:m.palette.error.dark,borde:W.alpha(m.palette.error.main,.3)},neutro:{fondo:W.alpha(m.palette.text.primary,.04),texto:m.palette.text.primary,borde:m.palette.divider}},d=g[y]??g.info,C=n??Dd[y],T=y==="error"||y==="advertencia"?"alert":"status",R=()=>{a===void 0&&p(!1),s?.()};return h.jsx(W.Box,{sx:{width:l?"100%":"auto",display:l?"block":"inline-flex"},children:h.jsxs(W.Box,{role:T,sx:{display:"flex",width:"100%",alignItems:"flex-start",gap:1.5,border:`1px solid ${d.borde}`,borderRadius:2,px:2,py:1.5,bgcolor:d.fondo,color:d.texto,boxShadow:m.shadows[1]},children:[C&&h.jsx(W.Box,{sx:{mt:.25,flexShrink:0,display:"flex"},children:C}),h.jsxs(W.Box,{sx:{flex:1,minWidth:0},children:[e&&h.jsx(W.Typography,{variant:"body2",fontWeight:600,noWrap:!0,children:e}),t&&h.jsx(W.Typography,{variant:"caption",sx:{mt:.25,display:"block",lineHeight:1.5},children:t}),c]}),i&&h.jsx(W.IconButton,{size:"small",onClick:R,"aria-label":"Cerrar aviso",sx:{flexShrink:0,color:"inherit",opacity:.7,"&:hover":{opacity:1}},children:h.jsx(ds,{sx:{fontSize:16}})})]})})},zd=fs;function Fd(e){return Te("MuiAlert",e)}const zi=we("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function _d(e){return Te("MuiIconButton",e)}const Fi=we("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Vd=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a,loading:s}=e,l={root:["root",s&&"loading",r&&"disabled",n!=="default"&&`color${G(n)}`,i&&`edge${G(i)}`,`size${G(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return $e(l,_d,t)},Ld=J(To,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${G(r.color)}`],r.edge&&t[`edge${G(r.edge)}`],t[`size${G(r.size)}`]]}})(ye(({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:t=>!t.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}}]})),ye(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ve()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ve()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].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)}}],[`&.${Fi.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Fi.loading}`]:{color:"transparent"}}))),Wd=J("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"}}]})),Nn=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:p="medium",id:m,loading:y=null,loadingIndicator:b,...g}=n,d=Pr(m),C=b??h.jsx(Ft,{"aria-labelledby":d,color:"inherit",size:16}),T={...n,edge:i,color:l,disabled:c,disableFocusRipple:u,loading:y,loadingIndicator:C,size:p},R=Vd(T);return h.jsxs(Ld,{id:y?d:m,className:se(R.root,s),centerRipple:!0,focusRipple:!u,disabled:c||y,ref:r,...g,ownerState:T,children:[typeof y=="boolean"&&h.jsx("span",{className:R.loadingWrapper,style:{display:"contents"},children:h.jsx(Wd,{className:R.loadingIndicator,ownerState:T,children:y&&C})}),a]})});process.env.NODE_ENV!=="production"&&(Nn.propTypes={children:it(o.node,e=>E.Children.toArray(e.children).some(r=>E.isValidElement(r)&&r.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(`
|
|
194
|
+
`)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Hd=Pe(h.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Ud=Pe(h.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),qd=Pe(h.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Gd=Pe(h.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Yd=Pe(h.jsx("path",{d:"M19 6.41L17.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"),Kd=e=>{const{variant:t,color:r,severity:n,classes:i}=e,a={root:["root",`color${G(r||n)}`,`${t}${G(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return $e(a,Fd,i)},Xd=J(Eo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${G(r.color||r.severity)}`]]}})(ye(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,r=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Ve(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${n}StandardBg`]:r(e.palette[n].light,.9),[`& .${zi.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(Ve(["light"])).map(([n])=>({props:{colorSeverity:n,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${zi.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(Ve(["dark"])).map(([n])=>({props:{colorSeverity:n,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${n}FilledColor`],backgroundColor:e.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[n].dark:e.palette[n].main,color:e.palette.getContrastText(e.palette[n].main)}}}))]}})),Zd=J("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Jd=J("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Qd=J("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),ef={success:h.jsx(Hd,{fontSize:"inherit"}),warning:h.jsx(Ud,{fontSize:"inherit"}),error:h.jsx(qd,{fontSize:"inherit"}),info:h.jsx(Gd,{fontSize:"inherit"})},ms=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiAlert"}),{action:i,children:a,className:s,closeText:l="Close",color:c,components:u={},componentsProps:p={},icon:m,iconMapping:y=ef,onClose:b,role:g="alert",severity:d="success",slotProps:C={},slots:T={},variant:R="standard",...S}=n,v={...n,color:c,severity:d,variant:R,colorSeverity:c||d},x=Kd(v),w={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...T},slotProps:{...p,...C}},[P,I]=ge("root",{ref:r,shouldForwardComponentProp:!0,className:se(x.root,s),elementType:Xd,externalForwardedProps:{...w,...S},ownerState:v,additionalProps:{role:g,elevation:0}}),[M,z]=ge("icon",{className:x.icon,elementType:Zd,externalForwardedProps:w,ownerState:v}),[B,f]=ge("message",{className:x.message,elementType:Jd,externalForwardedProps:w,ownerState:v}),[k,$]=ge("action",{className:x.action,elementType:Qd,externalForwardedProps:w,ownerState:v}),[A,j]=ge("closeButton",{elementType:Nn,externalForwardedProps:w,ownerState:v}),[V,N]=ge("closeIcon",{elementType:Yd,externalForwardedProps:w,ownerState:v});return h.jsxs(P,{...I,children:[m!==!1?h.jsx(M,{...z,children:m||y[d]}):null,h.jsx(B,{...f,children:a}),i!=null?h.jsx(k,{...$,children:i}):null,i==null&&b?h.jsx(k,{...$,children:h.jsx(A,{size:"small","aria-label":l,title:l,color:"inherit",onClick:b,...j,children:h.jsx(V,{fontSize:"small",...N})})}):null]})});process.env.NODE_ENV!=="production"&&(ms.propTypes={action:o.node,children:o.node,classes:o.object,className:o.string,closeText:o.string,color:o.oneOfType([o.oneOf(["error","info","success","warning"]),o.string]),components:o.shape({CloseButton:o.elementType,CloseIcon:o.elementType}),componentsProps:o.shape({closeButton:o.object,closeIcon:o.object}),icon:o.node,iconMapping:o.shape({error:o.node,info:o.node,success:o.node,warning:o.node}),onClose:o.func,role:o.string,severity:o.oneOfType([o.oneOf(["error","info","success","warning"]),o.string]),slotProps:o.shape({action:o.oneOfType([o.func,o.object]),closeButton:o.oneOfType([o.func,o.object]),closeIcon:o.oneOfType([o.func,o.object]),icon:o.oneOfType([o.func,o.object]),message:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({action:o.elementType,closeButton:o.elementType,closeIcon:o.elementType,icon:o.elementType,message:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function tf(e){return Te("MuiAlertTitle",e)}we("MuiAlertTitle",["root"]);const rf=e=>{const{classes:t}=e;return $e({root:["root"]},tf,t)},of=J(Fe,{name:"MuiAlertTitle",slot:"Root"})(ye(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),hs=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiAlertTitle"}),{className:i,...a}=n,s=n,l=rf(s);return h.jsx(of,{gutterBottom:!0,component:"div",ownerState:s,ref:r,className:se(l.root,i),...a})});process.env.NODE_ENV!=="production"&&(hs.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const gs=e=>e.scrollTop;function Qt(e,t){const{timeout:r,easing:n,style:i={}}=e;return{duration:i.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:i.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:i.transitionDelay}}function nf(e){return Te("MuiCollapse",e)}we("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const af=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return $e(n,nf,r)},sf=J("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(ye(({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:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),lf=J("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),cf=J("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),to=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:s,collapsedSize:l="0px",component:c,easing:u,in:p,onEnter:m,onEntered:y,onEntering:b,onExit:g,onExited:d,onExiting:C,orientation:T="vertical",slots:R={},slotProps:S={},style:v,timeout:x=Ta.standard,TransitionComponent:w=lt,...P}=n,I={...n,orientation:T,collapsedSize:l},M=af(I),z=Ge(),B=Dt(),f=E.useRef(null),k=E.useRef(),$=typeof l=="number"?`${l}px`:l,A=T==="horizontal",j=A?"width":"height",V=E.useRef(null),N=Le(r,V),L=te=>Ee=>{if(te){const me=V.current;Ee===void 0?te(me):te(me,Ee)}},O=()=>f.current?f.current[A?"clientWidth":"clientHeight"]:0,_=L((te,Ee)=>{f.current&&A&&(f.current.style.position="absolute"),te.style[j]=$,m&&m(te,Ee)}),U=L((te,Ee)=>{const me=O();f.current&&A&&(f.current.style.position="");const{duration:he,easing:Ae}=Qt({style:v,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const je=z.transitions.getAutoHeightDuration(me);te.style.transitionDuration=`${je}ms`,k.current=je}else te.style.transitionDuration=typeof he=="string"?he:`${he}ms`;te.style[j]=`${me}px`,te.style.transitionTimingFunction=Ae,b&&b(te,Ee)}),H=L((te,Ee)=>{te.style[j]="auto",y&&y(te,Ee)}),Y=L(te=>{te.style[j]=`${O()}px`,g&&g(te)}),Z=L(d),Q=L(te=>{const Ee=O(),{duration:me,easing:he}=Qt({style:v,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const Ae=z.transitions.getAutoHeightDuration(Ee);te.style.transitionDuration=`${Ae}ms`,k.current=Ae}else te.style.transitionDuration=typeof me=="string"?me:`${me}ms`;te.style[j]=$,te.style.transitionTimingFunction=he,C&&C(te)}),ee=te=>{x==="auto"&&B.start(k.current||0,te),i&&i(V.current,te)},X={slots:R,slotProps:S,component:c},[ne,q]=ge("root",{ref:N,className:se(M.root,s),elementType:sf,externalForwardedProps:X,ownerState:I,additionalProps:{style:{[A?"minWidth":"minHeight"]:$,...v}}}),[oe,F]=ge("wrapper",{ref:f,className:M.wrapper,elementType:lf,externalForwardedProps:X,ownerState:I}),[ce,ie]=ge("wrapperInner",{className:M.wrapperInner,elementType:cf,externalForwardedProps:X,ownerState:I});return h.jsx(w,{in:p,onEnter:_,onEntered:H,onEntering:U,onExit:Y,onExited:Z,onExiting:Q,addEndListener:ee,nodeRef:V,timeout:x==="auto"?null:x,...P,children:(te,{ownerState:Ee,...me})=>{const he={...I,state:te};return h.jsx(ne,{...q,className:se(q.className,{entered:M.entered,exited:!p&&$==="0px"&&M.hidden}[te]),ownerState:he,...me,children:h.jsx(oe,{...F,ownerState:he,children:h.jsx(ce,{...ie,ownerState:he,children:a})})})}})});process.env.NODE_ENV!=="production"&&(to.propTypes={addEndListener:o.func,children:o.node,classes:o.object,className:o.string,collapsedSize:o.oneOfType([o.number,o.string]),component:xo,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,orientation:o.oneOf(["horizontal","vertical"]),slotProps:o.shape({root:o.oneOfType([o.func,o.object]),wrapper:o.oneOfType([o.func,o.object]),wrapperInner:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,wrapper:o.elementType,wrapperInner:o.elementType}),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});to&&(to.muiSupportAuto=!0);const ys=({variante:e="info",diseno:t="estandar",titulo:r,descripcion:n,cerrable:i=!1,abierto:a=!0,alCerrar:s,tiempoAutoCierre:l,accion:c,icono:u,children:p,sx:m,...y})=>{const b=Ge(),[g,d]=le.useState(a);le.useEffect(()=>{d(a)},[a]),le.useEffect(()=>{if(l&&l>0&&g){const x=setTimeout(()=>{s?.(),d(!1)},l);return()=>clearTimeout(x)}},[l,g,s]);const C=x=>{switch(x){case"peligro":return"error";case"exito":return"success";case"advertencia":return"warning";default:return"info"}},T=x=>{switch(x){case"lleno":return"filled";case"contorno":return"outlined";default:return"standard"}},R=x=>{switch(x){case"success":return b.palette.success.main;case"warning":return b.palette.warning.main;case"error":return b.palette.error.main;default:return b.palette.info.main}},S=()=>{if(t!=="suave")return{};const x=R(C(e));return{backgroundColor:re.alpha(x,.12),color:x,"& .MuiAlert-icon":{color:x},"& .MuiAlertTitle-root":{color:x}}},v=()=>{s?.(),d(!1)};return h.jsx(to,{in:g,children:h.jsxs(ms,{severity:C(e),variant:T(t),onClose:i||s?v:void 0,icon:u,action:c,sx:[{borderRadius:"12px",mb:2,border:t==="contorno"?"1px solid":void 0,boxShadow:t==="lleno"?b.shadows[4]:b.shadows[1],alignItems:"center",...S(),"& .MuiAlertTitle-root":{fontWeight:700,mb:n||p?.5:0,fontSize:"0.95rem",lineHeight:1.4},"& .MuiAlert-message":{width:"100%",padding:0,display:"flex",flexDirection:"column",justifyContent:"center"},"& .MuiAlert-icon":{padding:0,mr:1.5,opacity:t==="suave"?1:.9}},...Array.isArray(m)?m:m?[m]:[]],...y,children:[r&&h.jsx(hs,{children:r}),n&&h.jsx(de,{component:"div",sx:{opacity:.9},children:n}),p]})})},uf=ys;function pf(e){return Te("MuiLinearProgress",e)}we("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const un=4,pn=re.keyframes`
|
|
255
195
|
0% {
|
|
256
196
|
left: -35%;
|
|
257
197
|
right: 100%;
|
|
@@ -266,9 +206,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
266
206
|
left: 100%;
|
|
267
207
|
right: -90%;
|
|
268
208
|
}
|
|
269
|
-
`,
|
|
270
|
-
animation: ${
|
|
271
|
-
`:null,
|
|
209
|
+
`,df=typeof pn!="string"?re.css`
|
|
210
|
+
animation: ${pn} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
211
|
+
`:null,dn=re.keyframes`
|
|
272
212
|
0% {
|
|
273
213
|
left: -200%;
|
|
274
214
|
right: 100%;
|
|
@@ -283,9 +223,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
283
223
|
left: 107%;
|
|
284
224
|
right: -8%;
|
|
285
225
|
}
|
|
286
|
-
`,
|
|
287
|
-
animation: ${
|
|
288
|
-
`:null,
|
|
226
|
+
`,ff=typeof dn!="string"?re.css`
|
|
227
|
+
animation: ${dn} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
228
|
+
`:null,fn=re.keyframes`
|
|
289
229
|
0% {
|
|
290
230
|
opacity: 1;
|
|
291
231
|
background-position: 0 -23px;
|
|
@@ -300,40 +240,33 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
300
240
|
opacity: 1;
|
|
301
241
|
background-position: -200px -23px;
|
|
302
242
|
}
|
|
303
|
-
`,
|
|
304
|
-
animation: ${
|
|
305
|
-
`:null,$C=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${z(r)}`,n],dashed:["dashed",`dashedColor${z(r)}`],bar1:["bar","bar1",`barColor${z(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${z(r)}`,n==="buffer"&&`color${z(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return ke(i,IC,t)},nc=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),NC=B("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${z(n.color)}`],t[n.variant]]}})(ye(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t},style:{backgroundColor:nc(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),LC=B("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${z(n.color)}`]]}})(ye(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Ke()).map(([t])=>{const n=nc(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),jC||{animation:`${Qa} 3s infinite linear`}),DC=B("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${z(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(ye(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Xa}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Xa}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:MC||{animation:`${Za} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),BC=B("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${z(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(ye(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:nc(e,t),transition:`transform .${Xa}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:AC||{animation:`${Ja} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),oc=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiLinearProgress"}),{className:i,color:s="primary",value:a,valueBuffer:l,variant:c="indeterminate",...u}=r,d={...r,color:s,variant:c},p=$C(d),f=tr(),b={},g={bar1:{},bar2:{}};if(c==="determinate"||c==="buffer")if(a!==void 0){b["aria-valuenow"]=Math.round(a),b["aria-valuemin"]=0,b["aria-valuemax"]=100;let h=a-100;f&&(h=-h),g.bar1.transform=`translateX(${h}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(c==="buffer")if(l!==void 0){let h=(l||0)-100;f&&(h=-h),g.bar2.transform=`translateX(${h}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return m.jsxs(NC,{className:ce(p.root,i),ownerState:d,role:"progressbar",...b,ref:n,...u,children:[c==="buffer"?m.jsx(LC,{className:p.dashed,ownerState:d}):null,m.jsx(DC,{className:p.bar1,ownerState:d,style:g.bar1}),c==="determinate"?null:m.jsx(BC,{className:p.bar2,ownerState:d,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(oc.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number,valueBuffer:o.number,variant:o.oneOf(["buffer","determinate","indeterminate","query"])});const VC=Fe.styled(ql,{shouldForwardProp:e=>e!=="estilo"&&e!=="varianteColor"})(({theme:e,estilo:t,varianteColor:n})=>{const r={width:"100%",boxShadow:e.shadows[6],alignItems:"center","& .MuiAlert-icon":{fontSize:"1.5rem"}};if(t==="cristal"){const i=e.palette.mode==="dark";return{...r,backgroundColor:i?Fe.alpha(n,.2):Fe.alpha(n,.15),backdropFilter:"blur(10px)",color:i?e.palette.getContrastText(e.palette.background.paper):e.palette.text.primary,border:`1px solid ${Fe.alpha(n,.3)}`,"& .MuiAlert-icon":{color:n}}}return t==="suave"?{...r}:t==="contorno"?{...r,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,border:`2px solid ${n}`,"& .MuiAlert-icon":{color:n}}:{...r}}),rc=({abierto:e,alCerrar:t,variante:n="info",estilo:r="solido",titulo:i,mensaje:s,posicion:a="abajo-derecha",animacion:l="slide",duracion:c=6e3,mostrarIcono:u=!0,mostrarProgreso:d=!1,cerrable:p=!0,accion:f,className:b,sx:g,...h})=>{const v=Fe.useTheme(),[w,C]=H.useState(0);H.useEffect(()=>{if(e&&c&&d){C(0);const R=100,I=100/(c/R),A=setInterval(()=>{C(y=>y>=100?(clearInterval(A),100):y+I)},R);return()=>clearInterval(A)}},[e,c,d]);const S=(R,k)=>{k!=="clickaway"&&t&&t()},x=R=>{const[k,I]=R.split("-");return{vertical:k==="arriba"?"top":"bottom",horizontal:I==="izquierda"?"left":I==="derecha"?"right":"center"}},P={info:v.palette.info.main,exito:v.palette.success.main,advertencia:v.palette.warning.main,error:v.palette.error.main}[n],j=l==="grow"?Fe.Grow:l==="fade"?Fe.Zoom:Fe.Slide;return m.jsx(oh,{open:e,autoHideDuration:c,onClose:S,anchorOrigin:x(a),TransitionComponent:j,className:b,sx:g,...h,children:m.jsxs(VC,{onClose:p?S:void 0,severity:n==="exito"?"success":n==="advertencia"?"warning":n,variant:r==="solido"?"filled":"standard",estilo:r,varianteColor:P,icon:u?void 0:!1,action:f,children:[i&&m.jsx(Gl,{sx:{fontWeight:"bold"},children:i}),s,d&&c&&m.jsx(oc,{variant:"determinate",value:w,sx:{position:"absolute",bottom:0,left:0,right:0,height:4,bgcolor:Fe.alpha(v.palette.common.white,.3),"& .MuiLinearProgress-bar":{bgcolor:Fe.alpha(v.palette.common.white,.8)}}})]})})},FC=rc,zC=rc,rh=({valor:e=0,maximo:t=100,etiqueta:n,mostrarPorcentaje:r=!1,etiquetaInterna:i=!1,indeterminado:s=!1,tamano:a="md",variante:l="primario",rayado:c=!1,animado:u=!1,colorPersonalizado:d,className:p="",sx:f,...b})=>{const g=_t(),v={xs:4,sm:8,md:12,lg:16,xl:24}[a]||12,C={primario:"primary",secundario:"secondary",error:"error",info:"info",exito:"success",advertencia:"warning"}[l]||"primary",S=Math.min(100,Math.max(0,e/t*100)),x=g.palette.mode==="dark"?"rgba(0,0,0,0.15)":"rgba(255,255,255,0.3)",T=c||u?{backgroundImage:`linear-gradient(45deg,${x} 25%,transparent 25%,transparent 50%,${x} 50%,${x} 75%,transparent 75%,transparent)`,backgroundSize:"1rem 1rem",...u&&{animation:"progreso-rayas 1s linear infinite","@keyframes progreso-rayas":{"0%":{backgroundPosition:"1rem 0"},"100%":{backgroundPosition:"0 0"}}}}:{},P={color:g.palette.getContrastText(d||g.palette[C==="inherit"?"primary":C].main),fontWeight:"bold",fontSize:"0.75rem",lineHeight:1,textShadow:"0 1px 2px rgba(0,0,0,0.2)"};return m.jsxs(qe,{width:"100%",className:p,children:[!i&&(n||r)&&m.jsxs(qe,{display:"flex",justifyContent:"space-between",mb:.5,alignItems:"center",children:[n&&m.jsx(at,{variant:"body2",color:"text.secondary",fontWeight:500,children:n}),r&&m.jsx(at,{variant:"body2",color:"text.secondary",fontWeight:600,children:s?"":`${Math.round(S)}%`})]}),m.jsxs(qe,{position:"relative",width:"100%",children:[m.jsx(oc,{variant:s?"indeterminate":"determinate",value:S,color:C,sx:{height:v,borderRadius:v/2,backgroundColor:g.palette.mode==="dark"?fe.alpha(g.palette.common.white,.08):fe.alpha(g.palette.common.black,.08),"& .MuiLinearProgress-bar":{borderRadius:v/2,...d&&{backgroundColor:d},...T},...f},...b}),i&&!s&&v>=12&&m.jsx(qe,{position:"absolute",top:0,left:0,bottom:0,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1,sx:{pointerEvents:"none"},children:m.jsxs(at,{variant:"caption",sx:P,children:[n," ",r?`${Math.round(S)}%`:""]})})]})]})},WC=rh,ih={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},_C=dt(m.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),UC=dt(m.jsx("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function HC(e){return Ee("MuiRating",e)}const hr=Re("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);function qC(e){const t=e.toString().split(".")[1];return t?t.length:0}function ca(e,t){if(e==null)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(qC(t)))}const GC=e=>{const{classes:t,size:n,readOnly:r,disabled:i,emptyValueFocused:s,focusVisible:a}=e,l={root:["root",`size${z(n)}`,i&&"disabled",a&&"focusVisible",r&&"readOnly"],label:["label","pristine"],labelEmptyValue:[s&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return ke(l,HC,t)},KC=B("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hr.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${z(n.size)}`],n.readOnly&&t.readOnly]}})(ye(({theme:e})=>({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${hr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${hr.focusVisible} .${hr.iconActive}`]:{outline:"1px solid #999"},[`& .${hr.visuallyHidden}`]:ih,variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(30)}},{props:({ownerState:t})=>t.readOnly,style:{pointerEvents:"none"}}]}))),sh=B("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:e},t)=>[t.label,e.emptyValueFocused&&t.labelEmptyValueActive]})({cursor:"inherit",variants:[{props:({ownerState:e})=>e.emptyValueFocused,style:{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}}]}),YC=B("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.iconEmpty&&t.iconEmpty,n.iconFilled&&t.iconFilled,n.iconHover&&t.iconHover,n.iconFocus&&t.iconFocus,n.iconActive&&t.iconActive]}})(ye(({theme:e})=>({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none",variants:[{props:({ownerState:t})=>t.iconActive,style:{transform:"scale(1.2)"}},{props:({ownerState:t})=>t.iconEmpty,style:{color:(e.vars||e).palette.action.disabled}}]}))),XC=B("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>Kr(e)&&e!=="iconActive",overridesResolver:(e,t)=>{const{iconActive:n}=e;return[t.decimal,n&&t.iconActive]}})({position:"relative",variants:[{props:({iconActive:e})=>e,style:{transform:"scale(1.2)"}}]});function ah(e){const{value:t,...n}=e;return m.jsx("span",{...n})}process.env.NODE_ENV!=="production"&&(ah.propTypes={value:o.number.isRequired});function el(e){const{classes:t,disabled:n,emptyIcon:r,focus:i,getLabelText:s,highlightSelectedOnly:a,hover:l,icon:c,IconContainerComponent:u,isActive:d,itemValue:p,labelProps:f,name:b,onBlur:g,onChange:h,onClick:v,onFocus:w,readOnly:C,ownerState:S,ratingValue:x,ratingValueRounded:T,slots:P={},slotProps:j={}}=e,R=a?p===x:p<=x,k=p<=l,I=p<=i,A=p===T,y=`${b}-${jn()}`,N={slots:P,slotProps:j},[M,L]=we("icon",{elementType:YC,className:ce(t.icon,R?t.iconFilled:t.iconEmpty,k&&t.iconHover,I&&t.iconFocus,d&&t.iconActive),externalForwardedProps:N,ownerState:{...S,iconEmpty:!R,iconFilled:R,iconHover:k,iconFocus:I,iconActive:d},additionalProps:{value:p},internalForwardedProps:{as:u}}),[E,V]=we("label",{elementType:sh,externalForwardedProps:N,ownerState:{...S,emptyValueFocused:void 0},additionalProps:{style:f?.style,htmlFor:y}}),F=m.jsx(M,{...L,children:r&&!R?r:c});return C?m.jsx("span",{...f,children:F}):m.jsxs(O.Fragment,{children:[m.jsxs(E,{...V,children:[F,m.jsx("span",{className:t.visuallyHidden,children:s(p)})]}),m.jsx("input",{className:t.visuallyHidden,onFocus:w,onBlur:g,onChange:h,onClick:v,disabled:n,value:p,id:y,type:"radio",name:b,checked:A})]})}process.env.NODE_ENV!=="production"&&(el.propTypes={classes:o.object.isRequired,disabled:o.bool.isRequired,emptyIcon:o.node,focus:o.number.isRequired,getLabelText:o.func.isRequired,highlightSelectedOnly:o.bool.isRequired,hover:o.number.isRequired,icon:o.node,IconContainerComponent:o.elementType.isRequired,isActive:o.bool.isRequired,itemValue:o.number.isRequired,labelProps:o.object,name:o.string,onBlur:o.func.isRequired,onChange:o.func.isRequired,onClick:o.func.isRequired,onFocus:o.func.isRequired,ownerState:o.object.isRequired,ratingValue:o.number,ratingValueRounded:o.number,readOnly:o.bool.isRequired,slotProps:o.object,slots:o.object});const ZC=m.jsx(_C,{fontSize:"inherit"}),JC=m.jsx(UC,{fontSize:"inherit"});function QC(e){return`${e||"0"} Star${e!==1?"s":""}`}const lh=O.forwardRef(function(t,n){const r=Ie({name:"MuiRating",props:t}),{component:i="span",className:s,defaultValue:a=null,disabled:l=!1,emptyIcon:c=JC,emptyLabelText:u="Empty",getLabelText:d=QC,highlightSelectedOnly:p=!1,icon:f=ZC,IconContainerComponent:b=ah,max:g=5,name:h,onChange:v,onChangeActive:w,onMouseLeave:C,onMouseMove:S,precision:x=1,readOnly:T=!1,size:P="medium",value:j,slots:R={},slotProps:k={},...I}=r,A=jn(h),[y,N]=yn({controlled:j,default:a,name:"Rating"}),M=ca(y,x),L=tr(),[{hover:E,focus:V},F]=O.useState({hover:-1,focus:-1});let W=M;E!==-1&&(W=E),V!==-1&&(W=V);const[D,$]=O.useState(!1),Z=O.useRef(),te=it(Z,n),re=ve=>{S&&S(ve);const se=Z.current,{right:q,left:le,width:X}=se.getBoundingClientRect();let K;L?K=(q-ve.clientX)/X:K=(ve.clientX-le)/X;let ge=ca(g*K+x/2,x);ge=ao(ge,x,g),F(xe=>xe.hover===ge&&xe.focus===ge?xe:{hover:ge,focus:ge}),$(!1),w&&E!==ge&&w(ve,ge)},J=ve=>{C&&C(ve);const se=-1;F({hover:se,focus:se}),w&&E!==se&&w(ve,se)},U=ve=>{let se=ve.target.value===""?null:parseFloat(ve.target.value);E!==-1&&(se=E),N(se),v&&v(ve,se)},ie=ve=>{ve.clientX===0&&ve.clientY===0||(F({hover:-1,focus:-1}),N(null),v&&parseFloat(ve.target.value)===M&&v(ve,null))},de=ve=>{Gn(ve.target)&&$(!0);const se=parseFloat(ve.target.value);F(q=>({hover:q.hover,focus:se}))},ne=ve=>{if(E!==-1)return;Gn(ve.target)||$(!1);const se=-1;F(q=>({hover:q.hover,focus:se}))},[ee,pe]=O.useState(!1),_={...r,component:i,defaultValue:a,disabled:l,emptyIcon:c,emptyLabelText:u,emptyValueFocused:ee,focusVisible:D,getLabelText:d,icon:f,IconContainerComponent:b,max:g,precision:x,readOnly:T,size:P},ae=GC(_),ue={slots:R,slotProps:k},[he,Ae]=we("root",{ref:te,className:ce(ae.root,s),elementType:KC,externalForwardedProps:{...ue,...I,component:i},getSlotProps:ve=>({...ve,onMouseMove:se=>{re(se),ve.onMouseMove?.(se)},onMouseLeave:se=>{J(se),ve.onMouseLeave?.(se)}}),ownerState:_,additionalProps:{role:T?"img":null,"aria-label":T?d(W):null}}),[Me,oe]=we("label",{className:ce(ae.label,ae.labelEmptyValue),elementType:sh,externalForwardedProps:ue,ownerState:_}),[$e,Ce]=we("decimal",{className:ae.decimal,elementType:XC,externalForwardedProps:ue,ownerState:_});return m.jsxs(he,{...Ae,children:[Array.from(new Array(g)).map((ve,se)=>{const q=se+1,le={classes:ae,disabled:l,emptyIcon:c,focus:V,getLabelText:d,highlightSelectedOnly:p,hover:E,icon:f,IconContainerComponent:b,name:A,onBlur:ne,onChange:U,onClick:ie,onFocus:de,ratingValue:W,ratingValueRounded:M,readOnly:T,ownerState:_,slots:R,slotProps:k},X=q===Math.ceil(W)&&(E!==-1||V!==-1);if(x<1){const K=Array.from(new Array(1/x));return H.createElement($e,{...Ce,key:q,className:ce(Ce.className,X&&ae.iconActive),iconActive:X},K.map((ge,xe)=>{const Te=ca(q-1+(xe+1)*x,x);return m.jsx(el,{...le,isActive:!1,itemValue:Te,labelProps:{style:K.length-1===xe?{}:{width:Te===W?`${(xe+1)*x*100}%`:"0%",overflow:"hidden",position:"absolute"}}},Te)}))}return m.jsx(el,{...le,isActive:X,itemValue:q},q)}),!T&&!l&&m.jsxs(Me,{...oe,children:[m.jsx("input",{className:ae.visuallyHidden,value:"",id:`${A}-empty`,type:"radio",name:A,checked:M==null,onFocus:()=>pe(!0),onBlur:()=>pe(!1),onChange:U}),m.jsx("span",{className:ae.visuallyHidden,children:u})]})]})});process.env.NODE_ENV!=="production"&&(lh.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,defaultValue:o.number,disabled:o.bool,emptyIcon:o.node,emptyLabelText:o.node,getLabelText:o.func,highlightSelectedOnly:o.bool,icon:o.node,IconContainerComponent:o.elementType,max:o.number,name:o.string,onChange:o.func,onChangeActive:o.func,onMouseLeave:o.func,onMouseMove:o.func,precision:Rt(o.number,e=>e.precision<.1?new Error(["MUI: The prop `precision` should be above 0.1.","A value below this limit has an imperceptible impact."].join(`
|
|
306
|
-
`)):null),readOnly:o.bool,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),slotProps:o.shape({decimal:o.oneOfType([o.func,o.object]),icon:o.oneOfType([o.func,o.object]),label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({decimal:o.elementType,icon:o.elementType,label:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number});const
|
|
243
|
+
`,mf=typeof fn!="string"?re.css`
|
|
244
|
+
animation: ${fn} 3s infinite linear;
|
|
245
|
+
`:null,hf=e=>{const{classes:t,variant:r,color:n}=e,i={root:["root",`color${G(n)}`,r],dashed:["dashed",`dashedColor${G(n)}`],bar1:["bar","bar1",`barColor${G(n)}`,(r==="indeterminate"||r==="query")&&"bar1Indeterminate",r==="determinate"&&"bar1Determinate",r==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",r!=="buffer"&&`barColor${G(n)}`,r==="buffer"&&`color${G(n)}`,(r==="indeterminate"||r==="query")&&"bar2Indeterminate",r==="buffer"&&"bar2Buffer"]};return $e(i,pf,t)},Bn=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),gf=J("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${G(r.color)}`],t[r.variant]]}})(ye(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Ve()).map(([t])=>({props:{color:t},style:{backgroundColor:Bn(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),yf=J("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${G(r.color)}`]]}})(ye(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(Ve()).map(([t])=>{const r=Bn(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`}}})]})),mf||{animation:`${fn} 3s infinite linear`}),bf=J("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t.bar1,t[`barColor${G(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar1Indeterminate,r.variant==="determinate"&&t.bar1Determinate,r.variant==="buffer"&&t.bar1Buffer]}})(ye(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(Ve()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${un}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${un}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:df||{animation:`${pn} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),vf=J("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t.bar2,t[`barColor${G(r.color)}`],(r.variant==="indeterminate"||r.variant==="query")&&t.bar2Indeterminate,r.variant==="buffer"&&t.bar2Buffer]}})(ye(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(Ve()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(Ve()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Bn(e,t),transition:`transform .${un}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:ff||{animation:`${dn} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Dn=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiLinearProgress"}),{className:i,color:a="primary",value:s,valueBuffer:l,variant:c="indeterminate",...u}=n,p={...n,color:a,variant:c},m=hf(p),y=bo(),b={},g={bar1:{},bar2:{}};if(c==="determinate"||c==="buffer")if(s!==void 0){b["aria-valuenow"]=Math.round(s),b["aria-valuemin"]=0,b["aria-valuemax"]=100;let d=s-100;y&&(d=-d),g.bar1.transform=`translateX(${d}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(c==="buffer")if(l!==void 0){let d=(l||0)-100;y&&(d=-d),g.bar2.transform=`translateX(${d}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return h.jsxs(gf,{className:se(m.root,i),ownerState:p,role:"progressbar",...b,ref:r,...u,children:[c==="buffer"?h.jsx(yf,{className:m.dashed,ownerState:p}):null,h.jsx(bf,{className:m.bar1,ownerState:p,style:g.bar1}),c==="determinate"?null:h.jsx(vf,{className:m.bar2,ownerState:p,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(Dn.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number,valueBuffer:o.number,variant:o.oneOf(["buffer","determinate","indeterminate","query"])});const bs=({valor:e=0,maximo:t=100,etiqueta:r,mostrarPorcentaje:n=!1,etiquetaInterna:i=!1,indeterminado:a=!1,tamano:s="md",variante:l="primario",rayado:c=!1,animado:u=!1,colorPersonalizado:p,className:m="",sx:y,...b})=>{const g=Ge(),C={xs:4,sm:8,md:12,lg:16,xl:24}[s]||12,R={primario:"primary",secundario:"secondary",error:"error",info:"info",exito:"success",advertencia:"warning"}[l]||"primary",S=Math.min(100,Math.max(0,e/t*100)),v=g.palette.mode==="dark"?"rgba(0,0,0,0.15)":"rgba(255,255,255,0.3)",x=c||u?{backgroundImage:`linear-gradient(45deg,${v} 25%,transparent 25%,transparent 50%,${v} 50%,${v} 75%,transparent 75%,transparent)`,backgroundSize:"1rem 1rem",...u&&{animation:"progreso-rayas 1s linear infinite","@keyframes progreso-rayas":{"0%":{backgroundPosition:"1rem 0"},"100%":{backgroundPosition:"0 0"}}}}:{},w={color:g.palette.getContrastText(p||g.palette[R==="inherit"?"primary":R].main),fontWeight:"bold",fontSize:"0.75rem",lineHeight:1,textShadow:"0 1px 2px rgba(0,0,0,0.2)"};return h.jsxs(de,{width:"100%",className:m,children:[!i&&(r||n)&&h.jsxs(de,{display:"flex",justifyContent:"space-between",mb:.5,alignItems:"center",children:[r&&h.jsx(Fe,{variant:"body2",color:"text.secondary",fontWeight:500,children:r}),n&&h.jsx(Fe,{variant:"body2",color:"text.secondary",fontWeight:600,children:a?"":`${Math.round(S)}%`})]}),h.jsxs(de,{position:"relative",width:"100%",children:[h.jsx(Dn,{variant:a?"indeterminate":"determinate",value:S,color:R,sx:{height:C,borderRadius:C/2,backgroundColor:g.palette.mode==="dark"?re.alpha(g.palette.common.white,.08):re.alpha(g.palette.common.black,.08),"& .MuiLinearProgress-bar":{borderRadius:C/2,...p&&{backgroundColor:p},...x},...y},...b}),i&&!a&&C>=12&&h.jsx(de,{position:"absolute",top:0,left:0,bottom:0,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1,sx:{pointerEvents:"none"},children:h.jsxs(Fe,{variant:"caption",sx:w,children:[r," ",n?`${Math.round(S)}%`:""]})})]})]})},xf=bs,Cf={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Tf=Pe(h.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),wf=Pe(h.jsx("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function Ef(e){return Te("MuiRating",e)}const sr=we("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);function Sf(e){const t=e.toString().split(".")[1];return t?t.length:0}function Wo(e,t){if(e==null)return e;const r=Math.round(e/t)*t;return Number(r.toFixed(Sf(t)))}const Of=e=>{const{classes:t,size:r,readOnly:n,disabled:i,emptyValueFocused:a,focusVisible:s}=e,l={root:["root",`size${G(r)}`,i&&"disabled",s&&"focusVisible",n&&"readOnly"],label:["label","pristine"],labelEmptyValue:[a&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return $e(l,Ef,t)},Rf=J("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${sr.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${G(r.size)}`],r.readOnly&&t.readOnly]}})(ye(({theme:e})=>({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${sr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${sr.focusVisible} .${sr.iconActive}`]:{outline:"1px solid #999"},[`& .${sr.visuallyHidden}`]:Cf,variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(30)}},{props:({ownerState:t})=>t.readOnly,style:{pointerEvents:"none"}}]}))),vs=J("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:e},t)=>[t.label,e.emptyValueFocused&&t.labelEmptyValueActive]})({cursor:"inherit",variants:[{props:({ownerState:e})=>e.emptyValueFocused,style:{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}}]}),Pf=J("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.iconEmpty&&t.iconEmpty,r.iconFilled&&t.iconFilled,r.iconHover&&t.iconHover,r.iconFocus&&t.iconFocus,r.iconActive&&t.iconActive]}})(ye(({theme:e})=>({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none",variants:[{props:({ownerState:t})=>t.iconActive,style:{transform:"scale(1.2)"}},{props:({ownerState:t})=>t.iconEmpty,style:{color:(e.vars||e).palette.action.disabled}}]}))),$f=J("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>ka(e)&&e!=="iconActive",overridesResolver:(e,t)=>{const{iconActive:r}=e;return[t.decimal,r&&t.iconActive]}})({position:"relative",variants:[{props:({iconActive:e})=>e,style:{transform:"scale(1.2)"}}]});function xs(e){const{value:t,...r}=e;return h.jsx("span",{...r})}process.env.NODE_ENV!=="production"&&(xs.propTypes={value:o.number.isRequired});function mn(e){const{classes:t,disabled:r,emptyIcon:n,focus:i,getLabelText:a,highlightSelectedOnly:s,hover:l,icon:c,IconContainerComponent:u,isActive:p,itemValue:m,labelProps:y,name:b,onBlur:g,onChange:d,onClick:C,onFocus:T,readOnly:R,ownerState:S,ratingValue:v,ratingValueRounded:x,slots:w={},slotProps:P={}}=e,I=s?m===v:m<=v,M=m<=l,z=m<=i,B=m===x,f=`${b}-${Pr()}`,k={slots:w,slotProps:P},[$,A]=ge("icon",{elementType:Pf,className:se(t.icon,I?t.iconFilled:t.iconEmpty,M&&t.iconHover,z&&t.iconFocus,p&&t.iconActive),externalForwardedProps:k,ownerState:{...S,iconEmpty:!I,iconFilled:I,iconHover:M,iconFocus:z,iconActive:p},additionalProps:{value:m},internalForwardedProps:{as:u}}),[j,V]=ge("label",{elementType:vs,externalForwardedProps:k,ownerState:{...S,emptyValueFocused:void 0},additionalProps:{style:y?.style,htmlFor:f}}),N=h.jsx($,{...A,children:n&&!I?n:c});return R?h.jsx("span",{...y,children:N}):h.jsxs(E.Fragment,{children:[h.jsxs(j,{...V,children:[N,h.jsx("span",{className:t.visuallyHidden,children:a(m)})]}),h.jsx("input",{className:t.visuallyHidden,onFocus:T,onBlur:g,onChange:d,onClick:C,disabled:r,value:m,id:f,type:"radio",name:b,checked:B})]})}process.env.NODE_ENV!=="production"&&(mn.propTypes={classes:o.object.isRequired,disabled:o.bool.isRequired,emptyIcon:o.node,focus:o.number.isRequired,getLabelText:o.func.isRequired,highlightSelectedOnly:o.bool.isRequired,hover:o.number.isRequired,icon:o.node,IconContainerComponent:o.elementType.isRequired,isActive:o.bool.isRequired,itemValue:o.number.isRequired,labelProps:o.object,name:o.string,onBlur:o.func.isRequired,onChange:o.func.isRequired,onClick:o.func.isRequired,onFocus:o.func.isRequired,ownerState:o.object.isRequired,ratingValue:o.number,ratingValueRounded:o.number,readOnly:o.bool.isRequired,slotProps:o.object,slots:o.object});const jf=h.jsx(Tf,{fontSize:"inherit"}),kf=h.jsx(wf,{fontSize:"inherit"});function Af(e){return`${e||"0"} Star${e!==1?"s":""}`}const Cs=E.forwardRef(function(t,r){const n=Re({name:"MuiRating",props:t}),{component:i="span",className:a,defaultValue:s=null,disabled:l=!1,emptyIcon:c=kf,emptyLabelText:u="Empty",getLabelText:p=Af,highlightSelectedOnly:m=!1,icon:y=jf,IconContainerComponent:b=xs,max:g=5,name:d,onChange:C,onChangeActive:T,onMouseLeave:R,onMouseMove:S,precision:v=1,readOnly:x=!1,size:w="medium",value:P,slots:I={},slotProps:M={},...z}=n,B=Pr(d),[f,k]=Ia({controlled:P,default:s,name:"Rating"}),$=Wo(f,v),A=bo(),[{hover:j,focus:V},N]=E.useState({hover:-1,focus:-1});let L=$;j!==-1&&(L=j),V!==-1&&(L=V);const[O,_]=E.useState(!1),U=E.useRef(),H=Le(U,r),Y=ae=>{S&&S(ae);const K=U.current,{right:Be,left:ze,width:Ye}=K.getBoundingClientRect();let We;A?We=(Be-ae.clientX)/Ye:We=(ae.clientX-ze)/Ye;let _e=Wo(g*We+v/2,v);_e=ma(_e,v,g),N(He=>He.hover===_e&&He.focus===_e?He:{hover:_e,focus:_e}),_(!1),T&&j!==_e&&T(ae,_e)},Z=ae=>{R&&R(ae);const K=-1;N({hover:K,focus:K}),T&&j!==K&&T(ae,K)},Q=ae=>{let K=ae.target.value===""?null:parseFloat(ae.target.value);j!==-1&&(K=j),k(K),C&&C(ae,K)},ee=ae=>{ae.clientX===0&&ae.clientY===0||(N({hover:-1,focus:-1}),k(null),C&&parseFloat(ae.target.value)===$&&C(ae,null))},X=ae=>{Jt(ae.target)&&_(!0);const K=parseFloat(ae.target.value);N(Be=>({hover:Be.hover,focus:K}))},ne=ae=>{if(j!==-1)return;Jt(ae.target)||_(!1);const K=-1;N(Be=>({hover:Be.hover,focus:K}))},[q,oe]=E.useState(!1),F={...n,component:i,defaultValue:s,disabled:l,emptyIcon:c,emptyLabelText:u,emptyValueFocused:q,focusVisible:O,getLabelText:p,icon:y,IconContainerComponent:b,max:g,precision:v,readOnly:x,size:w},ce=Of(F),ie={slots:I,slotProps:M},[te,Ee]=ge("root",{ref:H,className:se(ce.root,a),elementType:Rf,externalForwardedProps:{...ie,...z,component:i},getSlotProps:ae=>({...ae,onMouseMove:K=>{Y(K),ae.onMouseMove?.(K)},onMouseLeave:K=>{Z(K),ae.onMouseLeave?.(K)}}),ownerState:F,additionalProps:{role:x?"img":null,"aria-label":x?p(L):null}}),[me,he]=ge("label",{className:se(ce.label,ce.labelEmptyValue),elementType:vs,externalForwardedProps:ie,ownerState:F}),[Ae,je]=ge("decimal",{className:ce.decimal,elementType:$f,externalForwardedProps:ie,ownerState:F});return h.jsxs(te,{...Ee,children:[Array.from(new Array(g)).map((ae,K)=>{const Be=K+1,ze={classes:ce,disabled:l,emptyIcon:c,focus:V,getLabelText:p,highlightSelectedOnly:m,hover:j,icon:y,IconContainerComponent:b,name:B,onBlur:ne,onChange:Q,onClick:ee,onFocus:X,ratingValue:L,ratingValueRounded:$,readOnly:x,ownerState:F,slots:I,slotProps:M},Ye=Be===Math.ceil(L)&&(j!==-1||V!==-1);if(v<1){const We=Array.from(new Array(1/v));return le.createElement(Ae,{...je,key:Be,className:se(je.className,Ye&&ce.iconActive),iconActive:Ye},We.map((_e,He)=>{const Ke=Wo(Be-1+(He+1)*v,v);return h.jsx(mn,{...ze,isActive:!1,itemValue:Ke,labelProps:{style:We.length-1===He?{}:{width:Ke===L?`${(He+1)*v*100}%`:"0%",overflow:"hidden",position:"absolute"}}},Ke)}))}return h.jsx(mn,{...ze,isActive:Ye,itemValue:Be},Be)}),!x&&!l&&h.jsxs(me,{...he,children:[h.jsx("input",{className:ce.visuallyHidden,value:"",id:`${B}-empty`,type:"radio",name:B,checked:$==null,onFocus:()=>oe(!0),onBlur:()=>oe(!1),onChange:Q}),h.jsx("span",{className:ce.visuallyHidden,children:u})]})]})});process.env.NODE_ENV!=="production"&&(Cs.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,defaultValue:o.number,disabled:o.bool,emptyIcon:o.node,emptyLabelText:o.node,getLabelText:o.func,highlightSelectedOnly:o.bool,icon:o.node,IconContainerComponent:o.elementType,max:o.number,name:o.string,onChange:o.func,onChangeActive:o.func,onMouseLeave:o.func,onMouseMove:o.func,precision:it(o.number,e=>e.precision<.1?new Error(["MUI: The prop `precision` should be above 0.1.","A value below this limit has an imperceptible impact."].join(`
|
|
246
|
+
`)):null),readOnly:o.bool,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),slotProps:o.shape({decimal:o.oneOfType([o.func,o.object]),icon:o.oneOfType([o.func,o.object]),label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({decimal:o.elementType,icon:o.elementType,label:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number});const Mf=re.keyframes`
|
|
307
247
|
0% { transform: scale(1); }
|
|
308
248
|
50% { transform: scale(1.2); }
|
|
309
249
|
100% { transform: scale(1); }
|
|
310
|
-
`,
|
|
311
|
-
text-[10px] font-mono font-medium transition-colors duration-300
|
|
312
|
-
${a||c?"text-red-500":l?"text-amber-500":"text-gray-400 dark:text-gray-500"}
|
|
313
|
-
`,children:[s,"/",r]})]})},o1=({helperText:e,error:t,value:n,maxLength:r,showCount:i,...s})=>m.jsx(uh,{textoAyuda:e,mensajeError:t,valor:n,longitudMaxima:r,mostrarContador:i,...s});fe.keyframes`
|
|
250
|
+
`,If=J(Cs,{shouldForwardProp:e=>e!=="colorPersonalizado"&&e!=="animado"&&e!=="brillo"})(({theme:e,colorPersonalizado:t,animado:r,brillo:n})=>({"& .MuiRating-iconFilled":{color:t,filter:n?`drop-shadow(0 0 2px ${t})`:"none",transition:"transform 0.2s ease-in-out"},"& .MuiRating-iconHover":{color:t,filter:n?`drop-shadow(0 0 4px ${t})`:"none",transform:r?"scale(1.2)":"none"},"& .MuiRating-iconActive":{animation:r?`${Mf} 0.4s ease-out`:"none"}})),Ts=({valor:e,maximo:t=5,precision:r=1,soloLectura:n=!1,deshabilitado:i=!1,tamano:a="m",color:s="advertencia",etiquetas:l,mostrarEtiqueta:c=!1,alCambiar:u,iconoPersonalizado:p,iconoVacioPersonalizado:m,animado:y=!0,brillo:b=!1,className:g,sx:d,...C})=>{const T=Ge(),[R,S]=le.useState(-1),x={p:"small",m:"medium",g:"large",xg:"large"}[a],w=a==="xg"?1.5:1,I={primario:T.palette.primary.main,secundario:T.palette.secondary.main,exito:T.palette.success.main,advertencia:T.palette.warning.main,error:T.palette.error.main,info:T.palette.info.main}[s]||T.palette.warning.main,M=z=>l?l[z]||z:`${z} Estrellas`;return h.jsxs(de,{className:g,sx:{display:"flex",alignItems:"center",gap:1,opacity:i?.5:1,pointerEvents:i?"none":"auto",...d},children:[h.jsx(If,{name:"codeplex-rating",value:e,max:t,precision:r,readOnly:n,disabled:i,size:x,colorPersonalizado:I,animado:y,brillo:b,onChange:(z,B)=>{u&&u(B)},onChangeActive:(z,B)=>{S(B)},icon:p,emptyIcon:m,sx:{transform:`scale(${w})`,transformOrigin:"left center"},...C}),c&&(e!==null||R!==-1)&&h.jsx(Fe,{variant:"body2",color:"text.secondary",sx:{minWidth:20,ml:a==="xg"?2:0,fontWeight:500},children:l?M(R!==-1?R:e||0):R!==-1?R:e})]})},Nf=Ts,ws=({textoAyuda:e,mensajeError:t,valor:r,longitudMaxima:n,mostrarContador:i})=>{const a=W.useTheme(),s=r?.toString().length??0,l=!!t,c=n?s>=n*.9:!1,u=n?s>=n:!1;if(!e&&!t&&!i)return null;const p=l||u?a.palette.error.main:c?a.palette.warning.main:a.palette.text.disabled;return h.jsxs(W.Box,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",mt:.75,px:.5,gap:2},children:[h.jsx(W.Box,{sx:{flex:1,minWidth:0},children:l?h.jsxs(W.Typography,{variant:"caption",fontWeight:500,sx:{color:a.palette.error.main,display:"flex",alignItems:"center",gap:.5},children:[h.jsx(In,{sx:{fontSize:12,flexShrink:0}}),t]}):e?h.jsx(W.Typography,{variant:"caption",color:"text.secondary",sx:{lineHeight:1.3},children:e}):null}),i&&n&&h.jsxs(W.Typography,{variant:"caption",sx:{fontFamily:"monospace",fontWeight:500,color:p,transition:a.transitions.create("color"),fontSize:10},children:[s,"/",n]})]})},Bf=({helperText:e,error:t,value:r,maxLength:n,showCount:i})=>h.jsx(ws,{textoAyuda:e,mensajeError:t,valor:r,longitudMaxima:n,mostrarContador:i});re.keyframes`
|
|
314
251
|
0% { transform: translateX(-100%); }
|
|
315
252
|
100% { transform: translateX(100%); }
|
|
316
|
-
`;const r1=B(Wl)(({theme:e,colorBase:t})=>({backgroundColor:t||(e.palette.mode==="dark"?fe.alpha(e.palette.common.white,.08):fe.alpha(e.palette.common.black,.06)),borderRadius:8,"&.MuiSkeleton-text":{marginBottom:4,marginTop:0,borderRadius:4}})),dh=({variante:e="texto",ancho:t,alto:n,animacion:r="pulso",colorBase:i,className:s,...a})=>{const l=u=>u==="texto"?"text":u==="rectangular"?"rectangular":u==="redondeado"?"rounded":u==="circular"?"circular":"text",c=u=>u==="pulso"?"pulse":u==="ola"?"wave":u===!1?!1:"pulse";return m.jsx(r1,{variant:l(e),width:t,height:n,animation:c(r),colorBase:i,className:s,...a})},i1=dh;function Ku({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,i)=>n(r)===n(t[i]))}function Yu(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function s1(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:s,trim:a=!1}=e;return(l,{inputValue:c,getOptionLabel:u})=>{let d=a?c.trim():c;n&&(d=d.toLowerCase()),t&&(d=Yu(d));const p=d?l.filter(f=>{let b=(s||u)(f);return n&&(b=b.toLowerCase()),t&&(b=Yu(b)),i==="start"?b.startsWith(d):b.includes(d)}):l;return typeof r=="number"?p.slice(0,r):p}}const a1=s1(),Xu=5,l1=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),c1=[];function Zu(e,t,n,r){if(t||e==null||r)return"";const i=n(e);return typeof i=="string"?i:""}function u1(e){const{unstable_isActiveElementInListbox:t=l1,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:s=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?c1:null,disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:b,disabledItemsFocusable:g=!1,disableListWrap:h=!1,filterOptions:v=a1,filterSelectedOptions:w=!1,freeSolo:C=!1,getOptionDisabled:S,getOptionKey:x,getOptionLabel:T=Q=>Q.label??Q,groupBy:P,handleHomeEndKeys:j=!e.freeSolo,id:R,includeInputInList:k=!1,inputValue:I,isOptionEqualToValue:A=(Q,G)=>Q===G,multiple:y=!1,onChange:N,onClose:M,onHighlightChange:L,onInputChange:E,onOpen:V,open:F,openOnFocus:W=!1,options:D,readOnly:$=!1,renderValue:Z,selectOnFocus:te=!e.freeSolo,value:re}=e,J=jn(R);let U=T;U=Q=>{const G=T(Q);if(typeof G!="string"){if(process.env.NODE_ENV!=="production"){const be=G===void 0?"undefined":`${typeof G} (${G})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${be} instead of a string for ${JSON.stringify(Q)}.`)}return String(G)}return G};const ie=O.useRef(!1),de=O.useRef(!0),ne=O.useRef(null),ee=O.useRef(null),[pe,_]=O.useState(null),[ae,ue]=O.useState(-1),he=i?0:-1,Ae=O.useRef(he),Me=O.useRef(Zu(d??re,y,U)).current,[oe,$e]=yn({controlled:re,default:d,name:u}),[Ce,ve]=yn({controlled:I,default:Me,name:u,state:"inputValue"}),[se,q]=O.useState(!1),le=O.useCallback((Q,G,be)=>{if(!(y?oe.length<G.length:G!==null)&&!l)return;const Ne=Zu(G,y,U,Z);Ce!==Ne&&(ve(Ne),E&&E(Q,Ne,be))},[U,Ce,y,E,ve,l,oe,Z]),[X,K]=yn({controlled:F,default:!1,name:u,state:"open"}),[ge,xe]=O.useState(!0),Te=!y&&oe!=null&&Ce===U(oe),Se=X&&!$,me=Se?v(D.filter(Q=>!(w&&(y?oe:[oe]).some(G=>G!==null&&A(Q,G)))),{inputValue:Te&&ge?"":Ce,getOptionLabel:U}):[],_e=Fl({filteredOptions:me,value:oe,inputValue:Ce});O.useEffect(()=>{const Q=oe!==_e.value;se&&!Q||C&&!Q||le(null,oe,"reset")},[oe,le,se,_e.value,C]);const De=X&&me.length>0&&!$,He=St(Q=>{if(Q===-1)ne.current.focus();else{const G=Z?"data-item-index":"data-tag-index";pe.querySelector(`[${G}="${Q}"]`).focus()}});O.useEffect(()=>{y&&ae>oe.length-1&&(ue(-1),He(-1))},[oe,y,ae,He]);function jt(Q,G){if(!ee.current||Q<0||Q>=me.length)return-1;let be=Q;for(;;){const je=ee.current.querySelector(`[data-option-index="${be}"]`),Ne=g?!1:!je||je.disabled||je.getAttribute("aria-disabled")==="true";if(je&&je.hasAttribute("tabindex")&&!Ne)return be;if(G==="next"?be=(be+1)%me.length:be=(be-1+me.length)%me.length,be===Q)return-1}}const Pt=St(({event:Q,index:G,reason:be})=>{if(Ae.current=G,G===-1?ne.current.removeAttribute("aria-activedescendant"):ne.current.setAttribute("aria-activedescendant",`${J}-option-${G}`),L&&["mouse","keyboard","touch"].includes(be)&&L(Q,G===-1?null:me[G],be),!ee.current)return;const je=ee.current.querySelector(`[role="option"].${n}-focused`);je&&(je.classList.remove(`${n}-focused`),je.classList.remove(`${n}-focusVisible`));let Ne=ee.current;if(ee.current.getAttribute("role")!=="listbox"&&(Ne=ee.current.parentElement.querySelector('[role="listbox"]')),!Ne)return;if(G===-1){Ne.scrollTop=0;return}const lt=ee.current.querySelector(`[data-option-index="${G}"]`);if(lt&&(lt.classList.add(`${n}-focused`),be==="keyboard"&<.classList.add(`${n}-focusVisible`),Ne.scrollHeight>Ne.clientHeight&&be!=="mouse"&&be!=="touch")){const ht=lt,Vt=Ne.clientHeight+Ne.scrollTop,To=ht.offsetTop+ht.offsetHeight;To>Vt?Ne.scrollTop=To-Ne.clientHeight:ht.offsetTop-ht.offsetHeight*(P?1.3:0)<Ne.scrollTop&&(Ne.scrollTop=ht.offsetTop-ht.offsetHeight*(P?1.3:0))}}),gt=St(({event:Q,diff:G,direction:be="next",reason:je})=>{if(!Se)return;const lt=jt((()=>{const ht=me.length-1;if(G==="reset")return he;if(G==="start")return 0;if(G==="end")return ht;const Vt=Ae.current+G;return Vt<0?Vt===-1&&k?-1:h&&Ae.current!==-1||Math.abs(G)>1?0:ht:Vt>ht?Vt===ht+1&&k?-1:h||Math.abs(G)>1?ht:0:Vt})(),be);if(Pt({index:lt,reason:je,event:Q}),r&&G!=="reset")if(lt===-1)ne.current.value=Ce;else{const ht=U(me[lt]);ne.current.value=ht,ht.toLowerCase().indexOf(Ce.toLowerCase())===0&&Ce.length>0&&ne.current.setSelectionRange(Ce.length,ht.length)}}),Pe=!Ku({array1:_e.filteredOptions,array2:me,parser:U}),Be=()=>{const Q=(G,be)=>{const je=G?U(G):"",Ne=be?U(be):"";return je===Ne};if(Ae.current!==-1&&!Ku({array1:_e.filteredOptions,array2:me,parser:U})&&_e.inputValue===Ce&&(y?oe.length===_e.value.length&&_e.value.every((G,be)=>U(oe[be])===U(G)):Q(_e.value,oe))){const G=_e.filteredOptions[Ae.current];if(G)return me.findIndex(be=>U(be)===U(G))}return-1},Je=O.useCallback(()=>{if(!Se)return;const Q=Be();if(Q!==-1){Ae.current=Q;return}const G=y?oe[0]:oe;if(me.length===0||G==null){gt({diff:"reset"});return}if(ee.current){if(G!=null){const be=me[Ae.current];if(y&&be&&oe.findIndex(Ne=>A(be,Ne))!==-1)return;const je=me.findIndex(Ne=>A(Ne,G));je===-1?gt({diff:"reset"}):Pt({index:je});return}if(Ae.current>=me.length-1){Pt({index:me.length-1});return}Pt({index:Ae.current})}},[me.length,y?!1:oe,gt,Pt,Se,Ce,y]),xt=St(Q=>{La(ee,Q),Q&&Je()});process.env.NODE_ENV!=="production"&&O.useEffect(()=>{(!ne.current||ne.current.nodeName!=="INPUT")&&(ne.current&&ne.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
317
|
-
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${ne.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"",u==="useAutocomplete"?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join(`
|
|
318
|
-
`)))},[u]),O.useEffect(()=>{(Pe||Se)&&Je()},[Je,Pe,Se]);const Ue=Q=>{X||(K(!0),xe(!0),V&&V(Q))},ot=(Q,G)=>{X&&(K(!1),M&&M(Q,G))},$t=(Q,G,be,je)=>{if(y){if(oe.length===G.length&&oe.every((Ne,lt)=>Ne===G[lt]))return}else if(oe===G)return;N&&N(Q,G,be,je),$e(G)},It=O.useRef(!1),bt=(Q,G,be="selectOption",je="options")=>{let Ne=be,lt=G;if(y){if(lt=Array.isArray(oe)?oe.slice():[],process.env.NODE_ENV!=="production"){const Vt=lt.filter(To=>A(G,To));Vt.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${Vt.length} matches.`].join(`
|
|
319
|
-
`))}const ht=lt.findIndex(Vt=>A(G,Vt));ht===-1?lt.push(G):je!=="freeSolo"&&(lt.splice(ht,1),Ne="removeOption")}le(Q,lt,Ne),$t(Q,lt,Ne,{option:G}),!f&&(!Q||!Q.ctrlKey&&!Q.metaKey)&&ot(Q,Ne),(a===!0||a==="touch"&&It.current||a==="mouse"&&!It.current)&&ne.current.blur()};function Le(Q,G){if(Q===-1)return-1;let be=Q;for(;;){if(G==="next"&&be===oe.length||G==="previous"&&be===-1)return-1;const je=Z?"data-item-index":"data-tag-index",Ne=pe.querySelector(`[${je}="${be}"]`);if(!Ne||!Ne.hasAttribute("tabindex")||Ne.disabled||Ne.getAttribute("aria-disabled")==="true")be+=G==="next"?1:-1;else return be}}const Mt=(Q,G)=>{if(!y)return;Ce===""&&ot(Q,"toggleInput");let be=ae;ae===-1?Ce===""&&G==="previous"&&(be=oe.length-1):(be+=G==="next"?1:-1,be<0&&(be=0),be===oe.length&&(be=-1)),be=Le(be,G),ue(be),He(be)},ii=Q=>{ie.current=!0,ve(""),E&&E(Q,"","clear"),$t(Q,y?[]:null,"clear")},zs=Q=>G=>{if(Q.onKeyDown&&Q.onKeyDown(G),!G.defaultMuiPrevented&&(ae!==-1&&!["ArrowLeft","ArrowRight"].includes(G.key)&&(ue(-1),He(-1)),G.which!==229))switch(G.key){case"Home":Se&&j&&(G.preventDefault(),gt({diff:"start",direction:"next",reason:"keyboard",event:G}));break;case"End":Se&&j&&(G.preventDefault(),gt({diff:"end",direction:"previous",reason:"keyboard",event:G}));break;case"PageUp":G.preventDefault(),gt({diff:-Xu,direction:"previous",reason:"keyboard",event:G}),Ue(G);break;case"PageDown":G.preventDefault(),gt({diff:Xu,direction:"next",reason:"keyboard",event:G}),Ue(G);break;case"ArrowDown":G.preventDefault(),gt({diff:1,direction:"next",reason:"keyboard",event:G}),Ue(G);break;case"ArrowUp":G.preventDefault(),gt({diff:-1,direction:"previous",reason:"keyboard",event:G}),Ue(G);break;case"ArrowLeft":!y&&Z&&oe!=null?(ue(0),He(0)):Mt(G,"previous");break;case"ArrowRight":!y&&Z?(ue(-1),He(-1)):Mt(G,"next");break;case"Enter":if(Ae.current!==-1&&Se){const be=me[Ae.current],je=S?S(be):!1;if(G.preventDefault(),je)return;bt(G,be,"selectOption"),r&&ne.current.setSelectionRange(ne.current.value.length,ne.current.value.length)}else C&&Ce!==""&&Te===!1&&(y&&G.preventDefault(),bt(G,Ce,"createOption","freeSolo"));break;case"Escape":Se?(G.preventDefault(),G.stopPropagation(),ot(G,"escape")):c&&(Ce!==""||y&&oe.length>0||Z)&&(G.preventDefault(),G.stopPropagation(),ii(G));break;case"Backspace":if(y&&!$&&Ce===""&&oe.length>0){const be=ae===-1?oe.length-1:ae,je=oe.slice();je.splice(be,1),$t(G,je,"removeOption",{option:oe[be]})}!y&&Z&&!$&&($e(null),ue(-1),He(-1));break;case"Delete":if(y&&!$&&Ce===""&&oe.length>0&&ae!==-1){const be=ae,je=oe.slice();je.splice(be,1),$t(G,je,"removeOption",{option:oe[be]})}!y&&Z&&!$&&($e(null),ue(-1),He(-1));break}},Co=Q=>{q(!0),ae!==-1&&(ue(-1),He(-1)),W&&!ie.current&&Ue(Q)},So=Q=>{if(t(ee)){ne.current.focus();return}q(!1),de.current=!0,ie.current=!1,s&&Ae.current!==-1&&Se?bt(Q,me[Ae.current],"blur"):s&&C&&Ce!==""?bt(Q,Ce,"blur","freeSolo"):l&&le(Q,oe,"blur"),ot(Q,"blur")},ar=Q=>{const G=Q.target.value;Ce!==G&&(ve(G),xe(!1),E&&E(Q,G,"input")),G===""?!p&&!y&&$t(Q,null,"clear"):Ue(Q)},Ws=Q=>{const G=Number(Q.currentTarget.getAttribute("data-option-index"));Ae.current!==G&&Pt({event:Q,index:G,reason:"mouse"})},_s=Q=>{Pt({event:Q,index:Number(Q.currentTarget.getAttribute("data-option-index")),reason:"touch"}),It.current=!0},Us=Q=>{const G=Number(Q.currentTarget.getAttribute("data-option-index"));bt(Q,me[G],"selectOption"),It.current=!1},Hs=Q=>G=>{const be=oe.slice();be.splice(Q,1),$t(G,be,"removeOption",{option:oe[Q]})},lr=Q=>{$t(Q,null,"removeOption",{option:oe})},wt=Q=>{X?ot(Q,"toggleInput"):Ue(Q)},Tt=Q=>{Q.currentTarget.contains(Q.target)&&Q.target.getAttribute("id")!==J&&Q.preventDefault()},$n=Q=>{Q.currentTarget.contains(Q.target)&&(ne.current.focus(),te&&de.current&&ne.current.selectionEnd-ne.current.selectionStart===0&&ne.current.select(),de.current=!1)},qs=Q=>{!b&&(Ce===""||!X)&&wt(Q)};let cr=C&&Ce.length>0;cr=cr||(y?oe.length>0:oe!==null);let si=me;if(P){const Q=new Map;let G=!1;si=me.reduce((be,je,Ne)=>{const lt=P(je);return be.length>0&&be[be.length-1].group===lt?be[be.length-1].options.push(je):(process.env.NODE_ENV!=="production"&&(Q.get(lt)&&!G&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),G=!0),Q.set(lt,!0)),be.push({key:Ne,index:Ne,group:lt,options:[je]})),be},[])}return b&&se&&So(),{getRootProps:(Q={})=>({...Q,onKeyDown:zs(Q),onMouseDown:Tt,onClick:$n}),getInputLabelProps:()=>({id:`${J}-label`,htmlFor:J}),getInputProps:()=>({id:J,value:Ce,onBlur:So,onFocus:Co,onChange:ar,onMouseDown:qs,"aria-activedescendant":Se?"":null,"aria-autocomplete":r?"both":"list","aria-controls":De?`${J}-listbox`:void 0,"aria-expanded":De,autoComplete:"off",ref:ne,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:b}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ii}),getItemProps:({index:Q=0}={})=>({...y&&{key:Q},...Z?{"data-item-index":Q}:{"data-tag-index":Q},tabIndex:-1,...!$&&{onDelete:y?Hs(Q):lr}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:wt}),getTagProps:({index:Q})=>({key:Q,"data-tag-index":Q,tabIndex:-1,...!$&&{onDelete:Hs(Q)}}),getListboxProps:()=>({role:"listbox",id:`${J}-listbox`,"aria-labelledby":`${J}-label`,ref:xt,onMouseDown:Q=>{Q.preventDefault()}}),getOptionProps:({index:Q,option:G})=>{const be=(y?oe:[oe]).some(Ne=>Ne!=null&&A(G,Ne)),je=S?S(G):!1;return{key:x?.(G)??U(G),tabIndex:-1,role:"option",id:`${J}-option-${Q}`,onMouseMove:Ws,onClick:Us,onTouchStart:_s,"data-option-index":Q,"aria-disabled":je,"aria-selected":be}},id:J,inputValue:Ce,value:oe,dirty:cr,expanded:Se&&pe,popupOpen:Se,focused:se||ae!==-1,anchorEl:pe,setAnchorEl:_,focusedItem:ae,focusedTag:ae,groupedOptions:si}}function d1(e){return Ee("MuiListSubheader",e)}Re("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const p1=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:s}=e,a={root:["root",n!=="default"&&`color${z(n)}`,!r&&"gutters",i&&"inset",!s&&"sticky"]};return ke(a,d1,t)},f1=B("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${z(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(ye(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Jo=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListSubheader"}),{className:i,color:s="default",component:a="li",disableGutters:l=!1,disableSticky:c=!1,inset:u=!1,...d}=r,p={...r,color:s,component:a,disableGutters:l,disableSticky:c,inset:u},f=p1(p);return m.jsx(f1,{as:a,className:ce(f.root,i),ref:n,ownerState:p,...d})});Jo&&(Jo.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Jo.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOf(["default","inherit","primary"]),component:o.elementType,disableGutters:o.bool,disableSticky:o.bool,inset:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const h1=dt(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function m1(e){return Ee("MuiChip",e)}const We=Re("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),g1=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:s,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${z(r)}`,`color${z(i)}`,l&&"clickable",l&&`clickableColor${z(i)}`,a&&"deletable",a&&`deletableColor${z(i)}`,`${c}${z(i)}`],label:["label",`label${z(r)}`],avatar:["avatar",`avatar${z(r)}`,`avatarColor${z(i)}`],icon:["icon",`icon${z(r)}`,`iconColor${z(s)}`],deleteIcon:["deleteIcon",`deleteIcon${z(r)}`,`deleteIconColor${z(i)}`,`deleteIcon${z(c)}Color${z(i)}`]};return ke(u,m1,t)},b1=B("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:s,onDelete:a,size:l,variant:c}=n;return[{[`& .${We.avatar}`]:t.avatar},{[`& .${We.avatar}`]:t[`avatar${z(l)}`]},{[`& .${We.avatar}`]:t[`avatarColor${z(r)}`]},{[`& .${We.icon}`]:t.icon},{[`& .${We.icon}`]:t[`icon${z(l)}`]},{[`& .${We.icon}`]:t[`iconColor${z(i)}`]},{[`& .${We.deleteIcon}`]:t.deleteIcon},{[`& .${We.deleteIcon}`]:t[`deleteIcon${z(l)}`]},{[`& .${We.deleteIcon}`]:t[`deleteIconColor${z(r)}`]},{[`& .${We.deleteIcon}`]:t[`deleteIcon${z(c)}Color${z(r)}`]},t.root,t[`size${z(l)}`],t[`color${z(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${z(r)}`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${z(r)}`],t[c],t[`${c}${z(r)}`]]}})(ye(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${We.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${We.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${We.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${We.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${We.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${We.icon}`]:{marginLeft:5,marginRight:-6},[`& .${We.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${We.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${We.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ke(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${We.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${We.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${We.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${We.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Ke(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${We.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${We.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ke(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${We.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${We.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${We.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${We.avatar}`]:{marginLeft:4},[`& .${We.avatarSmall}`]:{marginLeft:2},[`& .${We.icon}`]:{marginLeft:4},[`& .${We.iconSmall}`]:{marginLeft:2},[`& .${We.deleteIcon}`]:{marginRight:5},[`& .${We.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ke()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${We.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${We.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${We.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),y1=B("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${z(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Ju(e){return e.key==="Backspace"||e.key==="Delete"}const Ts=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiChip"}),{avatar:i,className:s,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:f,onClick:b,onDelete:g,onKeyDown:h,onKeyUp:v,size:w="medium",variant:C="filled",tabIndex:S,skipFocusWhenDisabled:x=!1,slots:T={},slotProps:P={},...j}=r,R=O.useRef(null),k=it(R,n),I=U=>{U.stopPropagation(),g&&g(U)},A=U=>{U.currentTarget===U.target&&Ju(U)&&U.preventDefault(),h&&h(U)},y=U=>{U.currentTarget===U.target&&g&&Ju(U)&&g(U),v&&v(U)},N=a!==!1&&b?!0:a,M=N||g?kn:c||"div",L={...r,component:M,disabled:d,size:w,color:l,iconColor:O.isValidElement(p)&&p.props.color||l,onDelete:!!g,clickable:N,variant:C},E=g1(L),V=M===kn?{component:c||"div",focusVisibleClassName:E.focusVisible,...g&&{disableRipple:!0}}:{};let F=null;g&&(F=u&&O.isValidElement(u)?O.cloneElement(u,{className:ce(u.props.className,E.deleteIcon),onClick:I}):m.jsx(h1,{className:E.deleteIcon,onClick:I}));let W=null;i&&O.isValidElement(i)&&(W=O.cloneElement(i,{className:ce(E.avatar,i.props.className)}));let D=null;p&&O.isValidElement(p)&&(D=O.cloneElement(p,{className:ce(E.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&W&&D&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const $={slots:T,slotProps:P},[Z,te]=we("root",{elementType:b1,externalForwardedProps:{...$,...j},ownerState:L,shouldForwardComponentProp:!0,ref:k,className:ce(E.root,s),additionalProps:{disabled:N&&d?!0:void 0,tabIndex:x&&d?-1:S,...V},getSlotProps:U=>({...U,onClick:ie=>{U.onClick?.(ie),b?.(ie)},onKeyDown:ie=>{U.onKeyDown?.(ie),A(ie)},onKeyUp:ie=>{U.onKeyUp?.(ie),y(ie)}})}),[re,J]=we("label",{elementType:y1,externalForwardedProps:$,ownerState:L,className:E.label});return m.jsxs(Z,{as:M,...te,children:[W||D,m.jsx(re,{...J,children:f}),F]})});process.env.NODE_ENV!=="production"&&(Ts.propTypes={avatar:o.element,children:xv,classes:o.object,className:o.string,clickable:o.bool,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,deleteIcon:o.element,disabled:o.bool,icon:o.element,label:o.node,onClick:o.func,onDelete:o.func,onKeyDown:o.func,onKeyUp:o.func,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),skipFocusWhenDisabled:o.bool,slotProps:o.shape({label:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({label:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,variant:o.oneOfType([o.oneOf(["filled","outlined"]),o.string])});function hi(e){return parseInt(e,10)||0}const v1={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function x1(e){for(const t in e)return!1;return!0}function Qu(e){return x1(e)||e.outerHeightStyle===0&&!e.overflowing}const ph=O.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:s=1,style:a,value:l,...c}=t,{current:u}=O.useRef(l!=null),d=O.useRef(null),p=it(n,d),f=O.useRef(null),b=O.useRef(null),g=O.useCallback(()=>{const S=d.current,x=b.current;if(!S||!x)return;const P=Rn(S).getComputedStyle(S);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=P.width,x.value=S.value||t.placeholder||"x",x.value.slice(-1)===`
|
|
320
|
-
`&&(x.value+=" ");const j=P.boxSizing,R=hi(P.paddingBottom)+hi(P.paddingTop),k=hi(P.borderBottomWidth)+hi(P.borderTopWidth),I=x.scrollHeight;x.value="x";const A=x.scrollHeight;let y=I;s&&(y=Math.max(Number(s)*A,y)),i&&(y=Math.min(Number(i)*A,y)),y=Math.max(y,A);const N=y+(j==="border-box"?R+k:0),M=Math.abs(y-I)<=1;return{outerHeightStyle:N,overflowing:M}},[i,s,t.placeholder]),h=St(()=>{const S=d.current,x=g();if(!S||!x||Qu(x))return!1;const T=x.outerHeightStyle;return f.current!=null&&f.current!==T}),v=O.useCallback(()=>{const S=d.current,x=g();if(!S||!x||Qu(x))return;const T=x.outerHeightStyle;f.current!==T&&(f.current=T,S.style.height=`${T}px`),S.style.overflow=x.overflowing?"hidden":""},[g]),w=O.useRef(-1);nn(()=>{const S=ff(v),x=d?.current;if(!x)return;const T=Rn(x);T.addEventListener("resize",S);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{h()&&(P.unobserve(x),cancelAnimationFrame(w.current),v(),w.current=requestAnimationFrame(()=>{P.observe(x)}))}),P.observe(x)),()=>{S.clear(),cancelAnimationFrame(w.current),T.removeEventListener("resize",S),P&&P.disconnect()}},[g,v,h]),nn(()=>{v()});const C=S=>{u||v();const x=S.target,T=x.value.length,P=x.value.endsWith(`
|
|
321
|
-
`),j=x.selectionStart===T;P&&j&&x.setSelectionRange(T,T),r&&r(S)};return m.jsxs(O.Fragment,{children:[m.jsx("textarea",{value:l,onChange:C,ref:p,rows:s,style:a,...c}),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...v1.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(ph.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function Qn({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const ei=O.createContext(void 0);process.env.NODE_ENV!=="production"&&(ei.displayName="FormControlContext");function pn(){return O.useContext(ei)}function ed(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function qi(e,t=!1){return e&&(ed(e.value)&&e.value!==""||t&&ed(e.defaultValue)&&e.defaultValue!=="")}function w1(e){return e.startAdornment}function C1(e){return Ee("MuiInputBase",e)}const Ut=Re("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var td;const Ps=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${z(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Os=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},S1=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:s,focused:a,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:f,startAdornment:b,type:g}=e,h={root:["root",`color${z(n)}`,r&&"disabled",i&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",f&&f!=="medium"&&`size${z(f)}`,d&&"multiline",b&&"adornedStart",s&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return ke(h,C1,t)},Es=B("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ps})(ye(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ut.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Rs=B("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Os})(ye(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ut.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ut.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),nd=mv({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ks=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:f,disableInjectingGlobalStyles:b,endAdornment:g,error:h,fullWidth:v=!1,id:w,inputComponent:C="input",inputProps:S={},inputRef:x,margin:T,maxRows:P,minRows:j,multiline:R=!1,name:k,onBlur:I,onChange:A,onClick:y,onFocus:N,onKeyDown:M,onKeyUp:L,placeholder:E,readOnly:V,renderSuffix:F,rows:W,size:D,slotProps:$={},slots:Z={},startAdornment:te,type:re="text",value:J,...U}=r,ie=S.value!=null?S.value:J,{current:de}=O.useRef(ie!=null),ne=O.useRef(),ee=O.useCallback(me=>{process.env.NODE_ENV!=="production"&&me&&me.nodeName!=="INPUT"&&!me.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
322
|
-
`))},[]),pe=it(ne,x,S.ref,ee),[_,ae]=O.useState(!1),ue=pn();process.env.NODE_ENV!=="production"&&O.useEffect(()=>{if(ue)return ue.registerEffect()},[ue]);const he=Qn({props:r,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","size","required","filled"]});he.focused=ue?ue.focused:_,O.useEffect(()=>{!ue&&f&&_&&(ae(!1),I&&I())},[ue,f,_,I]);const Ae=ue&&ue.onFilled,Me=ue&&ue.onEmpty,oe=O.useCallback(me=>{qi(me)?Ae&&Ae():Me&&Me()},[Ae,Me]);nn(()=>{de&&oe({value:ie})},[ie,oe,de]);const $e=me=>{N&&N(me),S.onFocus&&S.onFocus(me),ue&&ue.onFocus?ue.onFocus(me):ae(!0)},Ce=me=>{I&&I(me),S.onBlur&&S.onBlur(me),ue&&ue.onBlur?ue.onBlur(me):ae(!1)},ve=(me,..._e)=>{if(!de){const De=me.target||ne.current;if(De==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Cn(1));oe({value:De.value})}S.onChange&&S.onChange(me,..._e),A&&A(me,..._e)};O.useEffect(()=>{oe(ne.current)},[]);const se=me=>{ne.current&&me.currentTarget===me.target&&ne.current.focus(),y&&y(me)};let q=C,le=S;R&&q==="input"&&(W?(process.env.NODE_ENV!=="production"&&(j||P)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),le={type:void 0,minRows:W,maxRows:W,...le}):le={type:void 0,maxRows:P,minRows:j,...le},q=ph);const X=me=>{oe(me.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};O.useEffect(()=>{ue&&ue.setAdornedStart(!!te)},[ue,te]);const K={...r,color:he.color||"primary",disabled:he.disabled,endAdornment:g,error:he.error,focused:he.focused,formControl:ue,fullWidth:v,hiddenLabel:he.hiddenLabel,multiline:R,size:he.size,startAdornment:te,type:re},ge=S1(K),xe=Z.root||u.Root||Es,Te=$.root||d.root||{},Se=Z.input||u.Input||Rs;return le={...le,...$.input??d.input},m.jsxs(O.Fragment,{children:[!b&&typeof nd=="function"&&(td||(td=m.jsx(nd,{}))),m.jsxs(xe,{...Te,ref:n,onClick:se,...U,...!vn(xe)&&{ownerState:{...K,...Te.ownerState}},className:ce(ge.root,Te.className,l,V&&"MuiInputBase-readOnly"),children:[te,m.jsx(ei.Provider,{value:null,children:m.jsx(Se,{"aria-invalid":he.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:p,disabled:he.disabled,id:w,onAnimationStart:X,name:k,placeholder:E,readOnly:V,required:he.required,rows:W,value:ie,onKeyDown:M,onKeyUp:L,type:re,...le,...!vn(Se)&&{as:q,ownerState:{...K,...le.ownerState}},ref:pe,className:ce(ge.input,le.className,V&&"MuiInputBase-readOnly"),onBlur:Ce,onChange:ve,onFocus:$e})}),g,F?F({...he,startAdornment:te}):null]})]})});process.env.NODE_ENV!=="production"&&(ks.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:Yr,inputProps:o.object,inputRef:Bt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function T1(e){return Ee("MuiInput",e)}const Fn={...Ut,...Re("MuiInput",["root","underline","input"])};function P1(e){return Ee("MuiOutlinedInput",e)}const Kt={...Ut,...Re("MuiOutlinedInput",["root","notchedOutline","input"])};function O1(e){return Ee("MuiFilledInput",e)}const Ht={...Ut,...Re("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},fh=dt(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function E1(e){return Ee("MuiAutocomplete",e)}const ze=Re("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var od,rd;const R1=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:s,hasClearIcon:a,hasPopupIcon:l,inputFocused:c,popupOpen:u,size:d}=e,p={root:["root",r&&"expanded",i&&"focused",s&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${z(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ke(p,E1,t)},k1=B("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:s,inputFocused:a,size:l}=n;return[{[`& .${ze.tag}`]:t.tag},{[`& .${ze.tag}`]:t[`tagSize${z(l)}`]},{[`& .${ze.inputRoot}`]:t.inputRoot},{[`& .${ze.input}`]:t.input},{[`& .${ze.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,s&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${ze.focused} .${ze.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${ze.clearIndicator}`]:{visibility:"visible"}},[`& .${ze.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${ze.inputRoot}`]:{[`.${ze.hasPopupIcon}&, .${ze.hasClearIcon}&`]:{paddingRight:30},[`.${ze.hasPopupIcon}.${ze.hasClearIcon}&`]:{paddingRight:56},[`& .${ze.input}`]:{width:0,minWidth:30}},[`& .${Fn.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Fn.root}.${Ut.sizeSmall}`]:{[`& .${Fn.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Kt.root}`]:{padding:9,[`.${ze.hasPopupIcon}&, .${ze.hasClearIcon}&`]:{paddingRight:39},[`.${ze.hasPopupIcon}.${ze.hasClearIcon}&`]:{paddingRight:65},[`& .${ze.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${ze.endAdornment}`]:{right:9}},[`& .${Kt.root}.${Ut.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${ze.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Ht.root}`]:{paddingTop:19,paddingLeft:8,[`.${ze.hasPopupIcon}&, .${ze.hasClearIcon}&`]:{paddingRight:39},[`.${ze.hasPopupIcon}.${ze.hasClearIcon}&`]:{paddingRight:65},[`& .${Ht.input}`]:{padding:"7px 4px"},[`& .${ze.endAdornment}`]:{right:9}},[`& .${Ht.root}.${Ut.sizeSmall}`]:{paddingBottom:1,[`& .${Ht.input}`]:{padding:"2.5px 4px"}},[`& .${Ut.hiddenLabel}`]:{paddingTop:8},[`& .${Ht.root}.${Ut.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${ze.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Ht.root}.${Ut.hiddenLabel}.${Ut.sizeSmall}`]:{[`& .${ze.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${ze.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${ze.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${ze.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${ze.inputRoot}`]:{flexWrap:"wrap"}}}]}),I1=B("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),M1=B(Ho,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),A1=B(Ho,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),j1=B(Jr,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ze.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(ye(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),$1=B(Zn,{name:"MuiAutocomplete",slot:"Paper"})(ye(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),N1=B("div",{name:"MuiAutocomplete",slot:"Loading"})(ye(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),L1=B("div",{name:"MuiAutocomplete",slot:"NoOptions"})(ye(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),D1=B("ul",{name:"MuiAutocomplete",slot:"Listbox"})(ye(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${ze.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${ze.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${ze.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ze.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),B1=B(Jo,{name:"MuiAutocomplete",slot:"GroupLabel"})(ye(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),V1=B("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${ze.option}`]:{paddingLeft:24}}),hh=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:s=!1,autoSelect:a=!1,blurOnSelect:l=!1,ChipProps:c,className:u,clearIcon:d=od||(od=m.jsx(Ff,{fontSize:"small"})),clearOnBlur:p=!r.freeSolo,clearOnEscape:f=!1,clearText:b="Clear",closeText:g="Close",componentsProps:h,defaultValue:v=r.multiple?[]:null,disableClearable:w=!1,disableCloseOnSelect:C=!1,disabled:S=!1,disabledItemsFocusable:x=!1,disableListWrap:T=!1,disablePortal:P=!1,filterOptions:j,filterSelectedOptions:R=!1,forcePopupIcon:k="auto",freeSolo:I=!1,fullWidth:A=!1,getLimitTagsText:y=Ge=>`+${Ge}`,getOptionDisabled:N,getOptionKey:M,getOptionLabel:L,isOptionEqualToValue:E,groupBy:V,handleHomeEndKeys:F=!r.freeSolo,id:W,includeInputInList:D=!1,inputValue:$,limitTags:Z=-1,ListboxComponent:te,ListboxProps:re,loading:J=!1,loadingText:U="Loading…",multiple:ie=!1,noOptionsText:de="No options",onChange:ne,onClose:ee,onHighlightChange:pe,onInputChange:_,onOpen:ae,open:ue,openOnFocus:he=!1,openText:Ae="Open",options:Me,PaperComponent:oe,PopperComponent:$e,popupIcon:Ce=rd||(rd=m.jsx(fh,{})),readOnly:ve=!1,renderGroup:se,renderInput:q,renderOption:le,renderTags:X,renderValue:K,selectOnFocus:ge=!r.freeSolo,size:xe="medium",slots:Te={},slotProps:Se={},value:me,..._e}=r,{getRootProps:De,getInputProps:He,getInputLabelProps:jt,getPopupIndicatorProps:Pt,getClearProps:gt,getItemProps:Pe,getListboxProps:Be,getOptionProps:Je,value:xt,dirty:Ue,expanded:ot,id:$t,popupOpen:It,focused:bt,focusedItem:Le,anchorEl:Mt,setAnchorEl:ii,inputValue:zs,groupedOptions:Co}=u1({...r,componentName:"Autocomplete"}),So=!w&&!S&&Ue&&!ve,ar=(!I||k===!0)&&k!==!1,{onMouseDown:Ws}=He(),{ref:_s,...Us}=Be(),lr=L||(Ge=>Ge.label??Ge),wt={...r,disablePortal:P,expanded:ot,focused:bt,fullWidth:A,getOptionLabel:lr,hasClearIcon:So,hasPopupIcon:ar,inputFocused:Le===-1,popupOpen:It,size:xe},Tt=R1(wt),$n={slots:{paper:oe,popper:$e,...Te},slotProps:{chip:c,listbox:re,...h,...Se}},[qs,cr]=we("listbox",{elementType:D1,externalForwardedProps:$n,ownerState:wt,className:Tt.listbox,additionalProps:Us,ref:_s}),[si,Q]=we("paper",{elementType:Zn,externalForwardedProps:$n,ownerState:wt,className:Tt.paper}),[G,be]=we("popper",{elementType:Jr,externalForwardedProps:$n,ownerState:wt,className:Tt.popper,additionalProps:{disablePortal:P,style:{width:Mt?Mt.clientWidth:null},role:"presentation",anchorEl:Mt,open:It}});let je;const Ne=Ge=>({className:Tt.tag,disabled:S,...Pe(Ge)});if(ie?xt.length>0&&(X?je=X(xt,Ne,wt):K?je=K(xt,Ne,wt):je=xt.map((Ge,Nn)=>{const{key:Ln,...ur}=Ne({index:Nn});return m.jsx(Ts,{label:lr(Ge),size:xe,...ur,...$n.slotProps.chip},Ln)})):K&&xt!=null&&(je=K(xt,Ne,wt)),Z>-1&&Array.isArray(je)){const Ge=je.length-Z;!bt&&Ge>0&&(je=je.splice(0,Z),je.push(m.jsx("span",{className:Tt.tag,children:y(Ge)},je.length)))}const ht=se||(Ge=>m.jsxs("li",{children:[m.jsx(B1,{className:Tt.groupLabel,ownerState:wt,component:"div",children:Ge.group}),m.jsx(V1,{className:Tt.groupUl,ownerState:wt,children:Ge.children})]},Ge.key)),To=le||((Ge,Nn)=>{const{key:Ln,...ur}=Ge;return m.jsx("li",{...ur,children:lr(Nn)},Ln)}),Uc=(Ge,Nn)=>{const Ln=Je({option:Ge,index:Nn});return To({...Ln,className:Tt.option},Ge,{selected:Ln["aria-selected"],index:Nn,inputValue:zs},wt)},Hc=$n.slotProps.clearIndicator,qc=$n.slotProps.popupIndicator;return m.jsxs(O.Fragment,{children:[m.jsx(k1,{ref:n,className:ce(Tt.root,u),ownerState:wt,...De(_e),children:q({id:$t,disabled:S,fullWidth:!0,size:xe==="small"?"small":void 0,InputLabelProps:jt(),InputProps:{ref:ii,className:Tt.inputRoot,startAdornment:je,onMouseDown:Ge=>{Ge.target===Ge.currentTarget&&Ws(Ge)},...(So||ar)&&{endAdornment:m.jsxs(I1,{className:Tt.endAdornment,ownerState:wt,children:[So?m.jsx(M1,{...gt(),"aria-label":b,title:b,ownerState:wt,...Hc,className:ce(Tt.clearIndicator,Hc?.className),children:d}):null,ar?m.jsx(A1,{...Pt(),disabled:S,"aria-label":It?g:Ae,title:It?g:Ae,ownerState:wt,...qc,className:ce(Tt.popupIndicator,qc?.className),children:Ce}):null]})}},inputProps:{className:Tt.input,disabled:S,readOnly:ve,...He()}})}),Mt?m.jsx(j1,{as:G,...be,children:m.jsxs($1,{as:si,...Q,children:[J&&Co.length===0?m.jsx(N1,{className:Tt.loading,ownerState:wt,children:U}):null,Co.length===0&&!I&&!J?m.jsx(L1,{className:Tt.noOptions,ownerState:wt,role:"presentation",onMouseDown:Ge=>{Ge.preventDefault()},children:de}):null,Co.length>0?m.jsx(qs,{as:te,...cr,children:Co.map((Ge,Nn)=>V?ht({key:Ge.key,group:Ge.group,children:Ge.options.map((Ln,ur)=>Uc(Ln,Ge.index+ur))}):Uc(Ge,Nn))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(hh.propTypes={autoComplete:o.bool,autoHighlight:o.bool,autoSelect:o.bool,blurOnSelect:o.oneOfType([o.oneOf(["mouse","touch"]),o.bool]),ChipProps:o.object,classes:o.object,className:o.string,clearIcon:o.node,clearOnBlur:o.bool,clearOnEscape:o.bool,clearText:o.string,closeText:o.string,componentsProps:o.shape({clearIndicator:o.object,paper:o.object,popper:o.object,popupIndicator:o.object}),defaultValue:Rt(o.any,e=>e.multiple&&e.defaultValue!==void 0&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join(`
|
|
323
|
-
`)):null),disableClearable:o.bool,disableCloseOnSelect:o.bool,disabled:o.bool,disabledItemsFocusable:o.bool,disableListWrap:o.bool,disablePortal:o.bool,filterOptions:o.func,filterSelectedOptions:o.bool,forcePopupIcon:o.oneOfType([o.oneOf(["auto"]),o.bool]),freeSolo:o.bool,fullWidth:o.bool,getLimitTagsText:o.func,getOptionDisabled:o.func,getOptionKey:o.func,getOptionLabel:o.func,groupBy:o.func,handleHomeEndKeys:o.bool,id:o.string,includeInputInList:o.bool,inputValue:o.string,isOptionEqualToValue:o.func,limitTags:Ul,ListboxComponent:o.elementType,ListboxProps:o.object,loading:o.bool,loadingText:o.node,multiple:o.bool,noOptionsText:o.node,onChange:o.func,onClose:o.func,onHighlightChange:o.func,onInputChange:o.func,onKeyDown:o.func,onOpen:o.func,open:o.bool,openOnFocus:o.bool,openText:o.string,options:o.array.isRequired,PaperComponent:o.elementType,PopperComponent:o.elementType,popupIcon:o.node,readOnly:o.bool,renderGroup:o.func,renderInput:o.func.isRequired,renderOption:o.func,renderTags:o.func,renderValue:o.func,selectOnFocus:o.bool,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({chip:o.oneOfType([o.func,o.object]),clearIndicator:o.oneOfType([o.func,o.object]),listbox:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),popupIndicator:o.oneOfType([o.func,o.object])}),slots:o.shape({listbox:o.elementType,paper:o.elementType,popper:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:Rt(o.any,e=>e.multiple&&e.value!==void 0&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join(`
|
|
324
|
-
`)):null)});const F1=e=>{const{classes:t,disableUnderline:n}=e,i=ke({root:["root",!n&&"underline"],input:["input"]},T1,t);return{...t,...i}},z1=B(Es,{shouldForwardProp:e=>kt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ps(e,t),!n.disableUnderline&&t.underline]}})(ye(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Fn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Fn.disabled}, .${Fn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Fn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ke()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),W1=B(Rs,{name:"MuiInput",slot:"Input",overridesResolver:Os})({}),Is=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:f="text",...b}=r,g=F1(r),v={root:{ownerState:{disableUnderline:i}}},w=d??a?At(d??a,v):v,C=p.root??s.Root??z1,S=p.input??s.Input??W1;return m.jsx(ks,{slots:{root:C,input:S},slotProps:w,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:f,...b,classes:g})});process.env.NODE_ENV!=="production"&&(Is.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Bt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});Is.muiName="Input";const _1=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:s,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",s==="small"&&`size${z(s)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},u=ke(c,O1,t);return{...t,...u}},U1=B(Es,{shouldForwardProp:e=>kt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ps(e,t),!n.disableUnderline&&t.underline]}})(ye(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ht.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ht.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ht.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ht.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ht.disabled}, .${Ht.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ht.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ke()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),H1=B(Rs,{name:"MuiFilledInput",slot:"Input",overridesResolver:Os})(ye(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ms=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:f={},type:b="text",...g}=r,h={...r,disableUnderline:i,fullWidth:l,inputComponent:u,multiline:d,type:b},v=_1(r),w={root:{ownerState:h},input:{ownerState:h}},C=p??a?At(w,p??a):w,S=f.root??s.Root??U1,x=f.input??s.Input??H1;return m.jsx(ks,{slots:{root:S,input:x},slotProps:C,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:b,...g,classes:v})});process.env.NODE_ENV!=="production"&&(Ms.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Bt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});Ms.muiName="Input";var id;const q1=B("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:kt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),G1=B("legend",{name:"MuiNotchedOutlined",shouldForwardProp:kt})(ye(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function mh(e){const{children:t,classes:n,className:r,label:i,notched:s,...a}=e,l=i!=null&&i!=="",c={...e,notched:s,withLabel:l};return m.jsx(q1,{"aria-hidden":!0,className:r,ownerState:c,...a,children:m.jsx(G1,{ownerState:c,children:l?m.jsx("span",{children:i}):id||(id=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(mh.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const K1=e=>{const{classes:t}=e,r=ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},P1,t);return{...t,...r}},Y1=B(Es,{shouldForwardProp:e=>kt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ps})(ye(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Kt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Kt.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Kt.focused} .${Kt.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ke()).map(([n])=>({props:{color:n},style:{[`&.${Kt.focused} .${Kt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Kt.error} .${Kt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Kt.disabled} .${Kt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),X1=B(mh,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ye(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Z1=B(Rs,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Os})(ye(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),As=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:u,slots:d={},slotProps:p={},type:f="text",...b}=r,g=K1(r),h=pn(),v=Qn({props:r,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:h,fullWidth:s,hiddenLabel:v.hiddenLabel,multiline:c,size:v.size,type:f},C=d.root??i.Root??Y1,S=d.input??i.Input??Z1,[x,T]=we("notchedOutline",{elementType:X1,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:w,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:l!=null&&l!==""&&v.required?m.jsxs(O.Fragment,{children:[l," ","*"]}):l}});return m.jsx(ks,{slots:{root:C,input:S},slotProps:p,renderSuffix:P=>m.jsx(x,{...T,notched:typeof u<"u"?u:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:s,inputComponent:a,multiline:c,ref:n,type:f,...b,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(As.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Bt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});As.muiName="Input";function J1(e){return Ee("MuiFormLabel",e)}const Mr=Re("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Q1=e=>{const{classes:t,color:n,focused:r,disabled:i,error:s,filled:a,required:l}=e,c={root:["root",`color${z(n)}`,i&&"disabled",s&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return ke(c,J1,t)},eS=B("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ye(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t},style:{[`&.${Mr.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Mr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mr.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),tS=B("span",{name:"MuiFormLabel",slot:"Asterisk"})(ye(({theme:e})=>({[`&.${Mr.error}`]:{color:(e.vars||e).palette.error.main}}))),Gi=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:a,component:l="label",disabled:c,error:u,filled:d,focused:p,required:f,...b}=r,g=pn(),h=Qn({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),v={...r,color:h.color||"primary",component:l,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},w=Q1(v);return m.jsxs(eS,{as:l,ownerState:v,className:ce(w.root,s),ref:n,...b,children:[i,h.required&&m.jsxs(tS,{ownerState:v,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Gi.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function nS(e){return Ee("MuiInputLabel",e)}Re("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const oS=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:s,variant:a,required:l}=e,c={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",r&&r!=="medium"&&`size${z(r)}`,a],asterisk:[l&&"asterisk"]},u=ke(c,nS,t);return{...t,...u}},rS=B(Gi,{shouldForwardProp:e=>kt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mr.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ye(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ic=O.forwardRef(function(t,n){const r=Ie({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:a,variant:l,className:c,...u}=r,d=pn();let p=a;typeof p>"u"&&d&&(p=d.filled||d.focused||d.adornedStart);const f=Qn({props:r,muiFormControl:d,states:["size","variant","required","focused"]}),b={...r,disableAnimation:i,formControl:d,shrink:p,size:f.size,variant:f.variant,required:f.required,focused:f.focused},g=oS(b);return m.jsx(rS,{"data-shrink":p,ref:n,className:ce(g.root,c),...u,ownerState:b,classes:g})});process.env.NODE_ENV!=="production"&&(ic.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function iS(e){return Ee("MuiFormControl",e)}Re("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const sS=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${z(n)}`,r&&"fullWidth"]};return ke(i,iS,t)},aS=B("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${z(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),js=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormControl"}),{children:i,className:s,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:f=!1,margin:b="none",required:g=!1,size:h="medium",variant:v="outlined",...w}=r,C={...r,color:a,component:l,disabled:c,error:u,fullWidth:p,hiddenLabel:f,margin:b,required:g,size:h,variant:v},S=sS(C),[x,T]=O.useState(()=>{let E=!1;return i&&O.Children.forEach(i,V=>{if(!Rr(V,["Input","Select"]))return;const F=Rr(V,["Select"])?V.props.input:V;F&&w1(F.props)&&(E=!0)}),E}),[P,j]=O.useState(()=>{let E=!1;return i&&O.Children.forEach(i,V=>{Rr(V,["Input","Select"])&&(qi(V.props,!0)||qi(V.props.inputProps,!0))&&(E=!0)}),E}),[R,k]=O.useState(!1);c&&R&&k(!1);const I=d!==void 0&&!c?d:R;let A;const y=O.useRef(!1);process.env.NODE_ENV!=="production"&&(A=()=>(y.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
325
|
-
`)),y.current=!0,()=>{y.current=!1}));const N=O.useCallback(()=>{j(!0)},[]),M=O.useCallback(()=>{j(!1)},[]),L=O.useMemo(()=>({adornedStart:x,setAdornedStart:T,color:a,disabled:c,error:u,filled:P,focused:I,fullWidth:p,hiddenLabel:f,size:h,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:M,onFilled:N,registerEffect:A,required:g,variant:v}),[x,a,c,u,P,I,p,f,A,M,N,g,h,v]);return m.jsx(ei.Provider,{value:L,children:m.jsx(aS,{as:l,ownerState:C,className:ce(S.root,s),ref:n,...w,children:i})})});process.env.NODE_ENV!=="production"&&(js.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function lS(e){return Ee("MuiFormHelperText",e)}const sd=Re("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ad;const cS=e=>{const{classes:t,contained:n,size:r,disabled:i,error:s,filled:a,focused:l,required:c}=e,u={root:["root",i&&"disabled",s&&"error",r&&`size${z(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return ke(u,lS,t)},uS=B("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${z(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ye(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${sd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${sd.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),sc=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:a="p",disabled:l,error:c,filled:u,focused:d,margin:p,required:f,variant:b,...g}=r,h=pn(),v=Qn({props:r,muiFormControl:h,states:["variant","size","disabled","error","filled","focused","required"]}),w={...r,component:a,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete w.ownerState;const C=cS(w);return m.jsx(uS,{as:a,className:ce(C.root,s),ref:n,...g,ownerState:w,children:i===" "?ad||(ad=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(sc.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});const en=O.createContext({});process.env.NODE_ENV!=="production"&&(en.displayName="ListContext");function dS(e){return Ee("MuiList",e)}Re("MuiList",["root","padding","dense","subheader"]);const pS=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ke({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},dS,t)},fS=B("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ac=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiList"}),{children:i,className:s,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=r,p=O.useMemo(()=>({dense:l}),[l]),f={...r,component:a,dense:l,disablePadding:c},b=pS(f);return m.jsx(en.Provider,{value:p,children:m.jsxs(fS,{as:a,className:ce(b.root,s),ref:n,ownerState:f,...d,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(ac.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Cr(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function gh(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function ua(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ld(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function bh(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function mr(e,t,n,r,i,s){let a=!1,l=i(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!bh(l,s)||c)l=i(e,l,n);else return l.focus(),!0}return!1}const yh=O.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...f}=t,b=O.useRef(null),g=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nn(()=>{i&&b.current.focus()},[i]),O.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:x})=>{const T=!b.current.style.width;if(S.clientHeight<b.current.clientHeight&&T){const P=`${gh(Rn(S))}px`;b.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=P,b.current.style.width=`calc(100% + ${P})`}return b.current}}),[]);const h=S=>{const x=b.current,T=S.key;if(S.ctrlKey||S.metaKey||S.altKey){d&&d(S);return}const j=Cr(vt(x));if(T==="ArrowDown")S.preventDefault(),mr(x,j,u,c,ua);else if(T==="ArrowUp")S.preventDefault(),mr(x,j,u,c,ld);else if(T==="Home")S.preventDefault(),mr(x,null,u,c,ua);else if(T==="End")S.preventDefault(),mr(x,null,u,c,ld);else if(T.length===1){const R=g.current,k=T.toLowerCase(),I=performance.now();R.keys.length>0&&(I-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&k!==R.keys[0]&&(R.repeating=!1)),R.lastTime=I,R.keys.push(k);const A=j&&!R.repeating&&bh(j,R);R.previousKeyMatched&&(A||mr(x,j,!1,c,ua,R))?S.preventDefault():R.previousKeyMatched=!1}d&&d(S)},v=it(b,n);let w=-1;O.Children.forEach(a,(S,x)=>{if(!O.isValidElement(S)){w===x&&(w+=1,w>=a.length&&(w=-1));return}process.env.NODE_ENV!=="production"&&Hn.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
326
|
-
`)),S.props.disabled||(p==="selectedMenu"&&S.props.selected||w===-1)&&(w=x),w===x&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(w+=1,w>=a.length&&(w=-1))});const C=O.Children.map(a,(S,x)=>{if(x===w){const T={};return s&&(T.autoFocus=!0),S.props.tabIndex===void 0&&p==="selectedMenu"&&(T.tabIndex=0),O.cloneElement(S,T)}return S});return m.jsx(ac,{role:"menu",ref:v,className:l,onKeyDown:h,tabIndex:i?0:-1,...f,children:C})});process.env.NODE_ENV!=="production"&&(yh.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function hS(e){const t=vt(e);return t.body===e?Rn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ar(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cd(e){return parseInt(Rn(e).getComputedStyle(e).paddingRight,10)||0}function mS(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ud(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,a=>{const l=!s.includes(a),c=!mS(a);l&&c&&Ar(a,i)})}function da(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function gS(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(hS(r)){const a=gh(Rn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${cd(r)+a}px`;const l=vt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${cd(c)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=vt(r).body;else{const a=r.parentElement,l=Rn(r);s=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:l})=>{s?a.style.setProperty(l,s):a.style.removeProperty(l)})}}function bS(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class yS{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ar(t.modalRef,!1);const i=bS(n);ud(n,t.mount,t.modalRef,i,!0);const s=da(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=da(this.containers,s=>s.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=gS(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=da(this.containers,a=>a.modals.includes(t)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Ar(t.modalRef,n),ud(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&Ar(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const vS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xS(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function wS(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function CS(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||wS(e))}function SS(e){const t=[],n=[];return Array.from(e.querySelectorAll(vS)).forEach((r,i)=>{const s=xS(r);s===-1||!CS(r)||(s===0?t.push(r):n.push({documentOrder:i,tabIndex:s,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function TS(){return!0}function Ki(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=SS,isEnabled:a=TS,open:l}=e,c=O.useRef(!1),u=O.useRef(null),d=O.useRef(null),p=O.useRef(null),f=O.useRef(null),b=O.useRef(!1),g=O.useRef(null),h=it(wo(t),g),v=O.useRef(null);O.useEffect(()=>{!l||!g.current||(b.current=!n)},[n,l]),O.useEffect(()=>{if(!l||!g.current)return;const S=vt(g.current),x=Cr(S);return g.current.contains(x)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
327
|
-
`)),g.current.setAttribute("tabIndex","-1")),b.current&&g.current.focus()),()=>{i||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),O.useEffect(()=>{if(!l||!g.current)return;const S=vt(g.current),x=Cr(S),T=R=>{v.current=R,!(r||!a()||R.key!=="Tab")&&x===g.current&&R.shiftKey&&(c.current=!0,d.current&&d.current.focus())},P=()=>{const R=g.current;if(R===null)return;const k=Cr(S);if(!S.hasFocus()||!a()||c.current){c.current=!1;return}if(R.contains(k)||r&&k!==u.current&&k!==d.current)return;if(k!==f.current)f.current=null;else if(f.current!==null)return;if(!b.current)return;let I=[];if((k===u.current||k===d.current)&&(I=s(g.current)),I.length>0){const A=!!(v.current?.shiftKey&&v.current?.key==="Tab"),y=I[0],N=I[I.length-1];typeof y!="string"&&typeof N!="string"&&(A?N.focus():y.focus())}else R.focus()};S.addEventListener("focusin",P),S.addEventListener("keydown",T,!0);const j=setInterval(()=>{const R=Cr(S);R&&R.tagName==="BODY"&&P()},50);return()=>{clearInterval(j),S.removeEventListener("focusin",P),S.removeEventListener("keydown",T,!0)}},[n,r,i,a,l,s]);const w=S=>{p.current===null&&(p.current=S.relatedTarget),b.current=!0,f.current=S.target;const x=t.props.onFocus;x&&x(S)},C=S=>{p.current===null&&(p.current=S.relatedTarget),b.current=!0};return m.jsxs(O.Fragment,{children:[m.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:h,onFocus:w}),m.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ki.propTypes={children:xo,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired});process.env.NODE_ENV!=="production"&&(Ki.propTypes=Al(Ki.propTypes));const PS={entering:{opacity:1},entered:{opacity:1}},vh=O.forwardRef(function(t,n){const r=_t(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:f,onExit:b,onExited:g,onExiting:h,style:v,timeout:w=i,TransitionComponent:C=dn,...S}=t,x=O.useRef(null),T=it(x,wo(l),n),P=M=>L=>{if(M){const E=x.current;L===void 0?M(E):M(E,L)}},j=P(f),R=P((M,L)=>{zf(M);const E=qo({style:v,timeout:w,easing:c},{mode:"enter"});M.style.webkitTransition=r.transitions.create("opacity",E),M.style.transition=r.transitions.create("opacity",E),d&&d(M,L)}),k=P(p),I=P(h),A=P(M=>{const L=qo({style:v,timeout:w,easing:c},{mode:"exit"});M.style.webkitTransition=r.transitions.create("opacity",L),M.style.transition=r.transitions.create("opacity",L),b&&b(M)}),y=P(g),N=M=>{s&&s(x.current,M)};return m.jsx(C,{appear:a,in:u,nodeRef:x,onEnter:R,onEntered:k,onEntering:j,onExit:A,onExited:y,onExiting:I,addEndListener:N,timeout:w,...S,children:(M,{ownerState:L,...E})=>O.cloneElement(l,{style:{opacity:0,visibility:M==="exited"&&!u?"hidden":void 0,...PS[M],...v,...l.props.style},ref:T,...E})})});process.env.NODE_ENV!=="production"&&(vh.propTypes={addEndListener:o.func,appear:o.bool,children:xo.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function OS(e){return Ee("MuiBackdrop",e)}Re("MuiBackdrop",["root","invisible"]);const ES=e=>{const{classes:t,invisible:n}=e;return ke({root:["root",n&&"invisible"]},OS,t)},RS=B("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),xh=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:a="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:p={},slots:f={},TransitionComponent:b,transitionDuration:g,...h}=r,v={...r,component:a,invisible:l},w=ES(v),C={transition:b,root:u.Root,...f},S={...d,...p},x={component:a,slots:C,slotProps:S},[T,P]=we("root",{elementType:RS,externalForwardedProps:x,className:ce(w.root,s),ownerState:v}),[j,R]=we("transition",{elementType:vh,externalForwardedProps:x,ownerState:v});return m.jsx(j,{in:c,timeout:g,...h,...R,children:m.jsx(T,{"aria-hidden":!0,...P,classes:w,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(xh.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function kS(e){return typeof e=="function"?e():e}function IS(e){return e?e.props.hasOwnProperty("in"):!1}const dd=()=>{},mi=new yS;function MS(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,p=O.useRef({}),f=O.useRef(null),b=O.useRef(null),g=it(b,d),[h,v]=O.useState(!u),w=IS(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const S=()=>vt(f.current),x=()=>(p.current.modalRef=b.current,p.current.mount=f.current,p.current),T=()=>{mi.mount(x(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},P=St(()=>{const L=kS(t)||S().body;mi.add(x(),L),b.current&&T()}),j=()=>mi.isTopModal(x()),R=St(L=>{f.current=L,L&&(u&&j()?T():b.current&&Ar(b.current,C))}),k=O.useCallback(()=>{mi.remove(x(),C)},[C]);O.useEffect(()=>()=>{k()},[k]),O.useEffect(()=>{u?P():(!w||!i)&&k()},[u,k,w,i,P]);const I=L=>E=>{L.onKeyDown?.(E),!(E.key!=="Escape"||E.which===229||!j())&&(n||(E.stopPropagation(),c&&c(E,"escapeKeyDown")))},A=L=>E=>{L.onClick?.(E),E.target===E.currentTarget&&c&&c(E,"backdropClick")};return{getRootProps:(L={})=>{const E=ho(e);delete E.onTransitionEnter,delete E.onTransitionExited;const V={...E,...L};return{role:"presentation",...V,onKeyDown:I(V),ref:g}},getBackdropProps:(L={})=>{const E=L;return{"aria-hidden":!0,...E,onClick:A(E),open:u}},getTransitionProps:()=>{const L=()=>{v(!1),s&&s()},E=()=>{v(!0),a&&a(),i&&k()};return{onEnter:Ia(L,l?.props.onEnter??dd),onExited:Ia(E,l?.props.onExited??dd)}},rootRef:g,portalRef:R,isTopModal:j,exited:h,hasTransition:w}}function AS(e){return Ee("MuiModal",e)}Re("MuiModal",["root","hidden","backdrop"]);const jS=e=>{const{open:t,exited:n,classes:r}=e;return ke({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},AS,r)},$S=B("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ye(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),NS=B(xh,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),wh=O.forwardRef(function(t,n){const r=Ie({name:"MuiModal",props:t}),{BackdropComponent:i=NS,BackdropProps:s,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:p,components:f={},componentsProps:b={},disableAutoFocus:g=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:v=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:S=!1,hideBackdrop:x=!1,keepMounted:T=!1,onClose:P,onTransitionEnter:j,onTransitionExited:R,open:k,slotProps:I={},slots:A={},theme:y,...N}=r,M={...r,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:h,disableEscapeKeyDown:v,disablePortal:w,disableRestoreFocus:C,disableScrollLock:S,hideBackdrop:x,keepMounted:T},{getRootProps:L,getBackdropProps:E,getTransitionProps:V,portalRef:F,isTopModal:W,exited:D,hasTransition:$}=MS({...M,rootRef:n}),Z={...M,exited:D},te=jS(Z),re={};if(u.props.tabIndex===void 0&&(re.tabIndex="-1"),$){const{onEnter:ee,onExited:pe}=V();re.onEnter=ee,re.onExited=pe}const J={slots:{root:f.Root,backdrop:f.Backdrop,...A},slotProps:{...b,...I}},[U,ie]=we("root",{ref:n,elementType:$S,externalForwardedProps:{...J,...N,component:p},getSlotProps:L,ownerState:Z,className:ce(l,te?.root,!Z.open&&Z.exited&&te?.hidden)}),[de,ne]=we("backdrop",{ref:s?.ref,elementType:i,externalForwardedProps:J,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:ee=>E({...ee,onClick:pe=>{ee?.onClick&&ee.onClick(pe)}}),className:ce(s?.className,te?.backdrop),ownerState:Z});return!T&&!k&&(!$||D)?null:m.jsx(Vr,{ref:F,container:d,disablePortal:w,children:m.jsxs(U,{...ie,children:[!x&&i?m.jsx(de,{...ne}):null,m.jsx(Ki,{disableEnforceFocus:h,disableAutoFocus:g,disableRestoreFocus:C,isEnabled:W,open:k,children:O.cloneElement(u,re)})]})})});process.env.NODE_ENV!=="production"&&(wh.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:xo.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([In,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function LS(e){return Ee("MuiPopover",e)}Re("MuiPopover",["root","paper"]);function pd(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function fd(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function hd(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Sr(e){return typeof e=="function"?e():e}const DS=e=>{const{classes:t}=e;return ke({root:["root"],paper:["paper"]},LS,t)},BS=B(wh,{name:"MuiPopover",slot:"Root"})({}),Ch=B(Zn,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Sh=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:f=8,marginThreshold:b=16,open:g,PaperProps:h={},slots:v={},slotProps:w={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:x="auto",TransitionProps:T={},disableScrollLock:P=!1,...j}=r,R=O.useRef(),k={...r,anchorOrigin:a,anchorReference:c,elevation:f,marginThreshold:b,transformOrigin:C,TransitionComponent:S,transitionDuration:x,TransitionProps:T},I=DS(k),A=O.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const ee=Sr(s),pe=ee&&ee.nodeType===1?ee:vt(R.current).body,_=pe.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ae=pe.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ae.top===0&&ae.left===0&&ae.right===0&&ae.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
328
|
-
`))}return{top:_.top+pd(_,a.vertical),left:_.left+fd(_,a.horizontal)}},[s,a.horizontal,a.vertical,l,c]),y=O.useCallback(ee=>({vertical:pd(ee,C.vertical),horizontal:fd(ee,C.horizontal)}),[C.horizontal,C.vertical]),N=O.useCallback(ee=>{const pe={width:ee.offsetWidth,height:ee.offsetHeight},_=y(pe);if(c==="none")return{top:null,left:null,transformOrigin:hd(_)};const ae=A();let ue=ae.top-_.vertical,he=ae.left-_.horizontal;const Ae=ue+pe.height,Me=he+pe.width,oe=Rn(Sr(s)),$e=oe.innerHeight-b,Ce=oe.innerWidth-b;if(b!==null&&ue<b){const ve=ue-b;ue-=ve,_.vertical+=ve}else if(b!==null&&Ae>$e){const ve=Ae-$e;ue-=ve,_.vertical+=ve}if(process.env.NODE_ENV!=="production"&&pe.height>$e&&pe.height&&$e&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${pe.height-$e}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
329
|
-
`)),b!==null&&he<b){const ve=he-b;he-=ve,_.horizontal+=ve}else if(Me>Ce){const ve=Me-Ce;he-=ve,_.horizontal+=ve}return{top:`${Math.round(ue)}px`,left:`${Math.round(he)}px`,transformOrigin:hd(_)}},[s,c,A,y,b]),[M,L]=O.useState(g),E=O.useCallback(()=>{const ee=R.current;if(!ee)return;const pe=N(ee);pe.top!==null&&ee.style.setProperty("top",pe.top),pe.left!==null&&(ee.style.left=pe.left),ee.style.transformOrigin=pe.transformOrigin,L(!0)},[N]);O.useEffect(()=>(P&&window.addEventListener("scroll",E),()=>window.removeEventListener("scroll",E)),[s,P,E]);const V=()=>{E()},F=()=>{L(!1)};O.useEffect(()=>{g&&E()}),O.useImperativeHandle(i,()=>g?{updatePosition:()=>{E()}}:null,[g,E]),O.useEffect(()=>{if(!g)return;const ee=ff(()=>{E()}),pe=Rn(Sr(s));return pe.addEventListener("resize",ee),()=>{ee.clear(),pe.removeEventListener("resize",ee)}},[s,g,E]);let W=x;const D={slots:{transition:S,...v},slotProps:{transition:T,paper:h,...w}},[$,Z]=we("transition",{elementType:Go,externalForwardedProps:D,ownerState:k,getSlotProps:ee=>({...ee,onEntering:(pe,_)=>{ee.onEntering?.(pe,_),V()},onExited:pe=>{ee.onExited?.(pe),F()}}),additionalProps:{appear:!0,in:g}});x==="auto"&&!$.muiSupportAuto&&(W=void 0);const te=p||(s?vt(Sr(s)).body:void 0),[re,{slots:J,slotProps:U,...ie}]=we("root",{ref:n,elementType:BS,externalForwardedProps:{...D,...j},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:v.backdrop},slotProps:{backdrop:hf(typeof w.backdrop=="function"?w.backdrop(k):w.backdrop,{invisible:!0})},container:te,open:g},ownerState:k,className:ce(I.root,d)}),[de,ne]=we("paper",{ref:R,className:I.paper,elementType:Ch,externalForwardedProps:D,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:M?void 0:{opacity:0}},ownerState:k});return m.jsx(re,{...ie,...!vn(re)&&{slots:J,slotProps:U,disableScrollLock:P},children:m.jsx($,{...Z,timeout:W,children:m.jsx(de,{...ne,children:u})})})});process.env.NODE_ENV!=="production"&&(Sh.propTypes={action:Bt,anchorEl:Rt(o.oneOfType([In,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Sr(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
330
|
-
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
331
|
-
`))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([In,o.func]),disableScrollLock:o.bool,elevation:Ul,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:Yr}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function VS(e){return Ee("MuiMenu",e)}Re("MuiMenu",["root","paper","list"]);const FS={vertical:"top",horizontal:"right"},zS={vertical:"top",horizontal:"left"},WS=e=>{const{classes:t}=e;return ke({root:["root"],paper:["paper"],list:["list"]},VS,t)},_S=B(Sh,{shouldForwardProp:e=>kt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),US=B(Ch,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),HS=B(yh,{name:"MuiMenu",slot:"List"})({outline:0}),Th=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:b="auto",TransitionProps:{onEntering:g,...h}={},variant:v="selectedMenu",slots:w={},slotProps:C={},...S}=r,x=tr(),T={...r,autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:g,PaperProps:p,transitionDuration:b,TransitionProps:h,variant:v},P=WS(T),j=i&&!l&&d,R=O.useRef(null),k=(W,D)=>{R.current&&R.current.adjustStyleForScrollbar(W,{direction:x?"rtl":"ltr"}),g&&g(W,D)},I=W=>{W.key==="Tab"&&(W.preventDefault(),u&&u(W,"tabKeyDown"))};let A=-1;O.Children.map(s,(W,D)=>{O.isValidElement(W)&&(process.env.NODE_ENV!=="production"&&Hn.isFragment(W)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
332
|
-
`)),W.props.disabled||(v==="selectedMenu"&&W.props.selected||A===-1)&&(A=D))});const y={slots:w,slotProps:{list:c,transition:h,paper:p,...C}},N=hn({elementType:w.root,externalSlotProps:C.root,ownerState:T,className:[P.root,a]}),[M,L]=we("paper",{className:P.paper,elementType:US,externalForwardedProps:y,shouldForwardComponentProp:!0,ownerState:T}),[E,V]=we("list",{className:ce(P.list,c.className),elementType:HS,shouldForwardComponentProp:!0,externalForwardedProps:y,getSlotProps:W=>({...W,onKeyDown:D=>{I(D),W.onKeyDown?.(D)}}),ownerState:T}),F=typeof y.slotProps.transition=="function"?y.slotProps.transition(T):y.slotProps.transition;return m.jsx(_S,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?FS:zS,slots:{root:w.root,paper:M,backdrop:w.backdrop,...w.transition&&{transition:w.transition}},slotProps:{root:N,paper:L,backdrop:typeof C.backdrop=="function"?C.backdrop(T):C.backdrop,transition:{...F,onEntering:(...W)=>{k(...W),F?.onEntering?.(...W)}}},open:d,ref:n,transitionDuration:b,ownerState:T,...S,classes:f,children:m.jsx(E,{actions:R,autoFocus:i&&(A===-1||l),autoFocusItem:j,variant:v,...V,children:s})})});process.env.NODE_ENV!=="production"&&(Th.propTypes={anchorEl:o.oneOfType([In,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function qS(e){return Ee("MuiNativeSelect",e)}const lc=Re("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),GS=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,l={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${z(n)}`,s&&"iconOpen",r&&"disabled"]};return ke(l,qS,t)},Ph=B("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${lc.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),KS=B(Ph,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:kt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${lc.multiple}`]:t.multiple}]}})({}),Oh=B("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${lc.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),YS=B(Oh,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${z(n.variant)}`],n.open&&t.iconOpen]}})({}),Eh=O.forwardRef(function(t,n){const{className:r,disabled:i,error:s,IconComponent:a,inputRef:l,variant:c="standard",...u}=t,d={...t,disabled:i,variant:c,error:s},p=GS(d);return m.jsxs(O.Fragment,{children:[m.jsx(KS,{ownerState:d,className:ce(p.select,r),disabled:i,ref:l||n,...u}),t.multiple?null:m.jsx(YS,{as:a,ownerState:d,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(Eh.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Bt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});function Rh(e){return Ee("MuiSelect",e)}const gr=Re("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var md;const XS=B(Ph,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${gr.select}`]:t.select},{[`&.${gr.select}`]:t[n.variant]},{[`&.${gr.error}`]:t.error},{[`&.${gr.multiple}`]:t.multiple}]}})({[`&.${gr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ZS=B(Oh,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${z(n.variant)}`],n.open&&t.iconOpen]}})({}),JS=B("input",{shouldForwardProp:e=>Kr(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function gd(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function QS(e){return e==null||typeof e=="string"&&!e.trim()}const eT=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,l={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${z(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ke(l,Rh,t)},kh=O.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:f,error:b=!1,IconComponent:g,inputRef:h,labelId:v,MenuProps:w={},multiple:C,name:S,onBlur:x,onChange:T,onClose:P,onFocus:j,onKeyDown:R,onMouseDown:k,onOpen:I,open:A,readOnly:y,renderValue:N,required:M,SelectDisplayProps:L={},tabIndex:E,type:V,value:F,variant:W="standard",...D}=t,[$,Z]=yn({controlled:F,default:d,name:"Select"}),[te,re]=yn({controlled:A,default:u,name:"Select"}),J=O.useRef(null),U=O.useRef(null),[ie,de]=O.useState(null),{current:ne}=O.useRef(A!=null),[ee,pe]=O.useState(),_=it(n,h),ae=O.useCallback(Pe=>{U.current=Pe,Pe&&de(Pe)},[]),ue=ie?.parentNode;O.useImperativeHandle(_,()=>({focus:()=>{U.current.focus()},node:J.current,value:$}),[$]),O.useEffect(()=>{u&&te&&ie&&!ne&&(pe(a?null:ue.clientWidth),U.current.focus())},[ie,a]),O.useEffect(()=>{s&&U.current.focus()},[s]),O.useEffect(()=>{if(!v)return;const Pe=vt(U.current).getElementById(v);if(Pe){const Be=()=>{getSelection().isCollapsed&&U.current.focus()};return Pe.addEventListener("click",Be),()=>{Pe.removeEventListener("click",Be)}}},[v]);const he=(Pe,Be)=>{Pe?I&&I(Be):P&&P(Be),ne||(pe(a?null:ue.clientWidth),re(Pe))},Ae=Pe=>{k?.(Pe),Pe.button===0&&(Pe.preventDefault(),U.current.focus(),he(!0,Pe))},Me=Pe=>{he(!1,Pe)},oe=O.Children.toArray(l),$e=Pe=>{const Be=oe.find(Je=>Je.props.value===Pe.target.value);Be!==void 0&&(Z(Be.props.value),T&&T(Pe,Be))},Ce=Pe=>Be=>{let Je;if(Be.currentTarget.hasAttribute("tabindex")){if(C){Je=Array.isArray($)?$.slice():[];const xt=$.indexOf(Pe.props.value);xt===-1?Je.push(Pe.props.value):Je.splice(xt,1)}else Je=Pe.props.value;if(Pe.props.onClick&&Pe.props.onClick(Be),$!==Je&&(Z(Je),T)){const xt=Be.nativeEvent||Be,Ue=new xt.constructor(xt.type,xt);Object.defineProperty(Ue,"target",{writable:!0,value:{value:Je,name:S}}),T(Ue,Pe)}C||he(!1,Be)}},ve=Pe=>{y||([" ","ArrowUp","ArrowDown","Enter"].includes(Pe.key)&&(Pe.preventDefault(),he(!0,Pe)),R?.(Pe))},se=ie!==null&&te,q=Pe=>{!se&&x&&(Object.defineProperty(Pe,"target",{writable:!0,value:{value:$,name:S}}),x(Pe))};delete D["aria-invalid"];let le,X;const K=[];let ge=!1,xe=!1;(qi({value:$})||f)&&(N?le=N($):ge=!0);const Te=oe.map(Pe=>{if(!O.isValidElement(Pe))return null;process.env.NODE_ENV!=="production"&&Hn.isFragment(Pe)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
333
|
-
`));let Be;if(C){if(!Array.isArray($))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Cn(2));Be=$.some(Je=>gd(Je,Pe.props.value)),Be&&ge&&K.push(Pe.props.children)}else Be=gd($,Pe.props.value),Be&&ge&&(X=Pe.props.children);return Be&&(xe=!0),O.cloneElement(Pe,{"aria-selected":Be?"true":"false",onClick:Ce(Pe),onKeyUp:Je=>{Je.key===" "&&Je.preventDefault(),Pe.props.onKeyUp&&Pe.props.onKeyUp(Je)},role:"option",selected:Be,value:void 0,"data-value":Pe.props.value})});process.env.NODE_ENV!=="production"&&O.useEffect(()=>{if(!xe&&!C&&$!==""){const Pe=oe.map(Be=>Be.props.value);console.warn([`MUI: You have provided an out-of-range value \`${$}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Pe.filter(Be=>Be!=null).map(Be=>`\`${Be}\``).join(", ")||'""'}.`].join(`
|
|
334
|
-
`))}},[xe,oe,C,S,$]),ge&&(C?K.length===0?le=null:le=K.reduce((Pe,Be,Je)=>(Pe.push(Be),Je<K.length-1&&Pe.push(", "),Pe),[]):le=X);let Se=ee;!a&&ne&&ie&&(Se=ue.clientWidth);let me;typeof E<"u"?me=E:me=p?null:0;const _e=L.id||(S?`mui-component-select-${S}`:void 0),De={...t,variant:W,value:$,open:se,error:b},He=eT(De),jt={...w.PaperProps,...typeof w.slotProps?.paper=="function"?w.slotProps.paper(De):w.slotProps?.paper},Pt={...w.MenuListProps,...typeof w.slotProps?.list=="function"?w.slotProps.list(De):w.slotProps?.list},gt=jn();return m.jsxs(O.Fragment,{children:[m.jsx(XS,{as:"div",ref:ae,tabIndex:me,role:"combobox","aria-controls":se?gt:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":se?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,_e].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":M?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:ve,onMouseDown:p||y?null:Ae,onBlur:q,onFocus:j,...L,ownerState:De,className:ce(L.className,He.select,c),id:_e,children:QS(le)?md||(md=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):le}),m.jsx(JS,{"aria-invalid":b,value:Array.isArray($)?$.join(","):$,name:S,ref:J,"aria-hidden":!0,onChange:$e,tabIndex:-1,disabled:p,className:He.nativeInput,autoFocus:s,required:M,...D,ownerState:De}),m.jsx(ZS,{as:g,className:He.icon,ownerState:De}),m.jsx(Th,{id:`menu-${S||""}`,anchorEl:ue,open:se,onClose:Me,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...w,slotProps:{...w.slotProps,list:{"aria-labelledby":v,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:gt,...Pt},paper:{...jt,style:{minWidth:Se,...jt!=null?jt.style:null}}},children:Te})]})});process.env.NODE_ENV!=="production"&&(kh.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Bt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const tT=e=>{const{classes:t}=e,r=ke({root:["root"]},Rh,t);return{...t,...r}},cc={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>kt(e)&&e!=="variant"},nT=B(Is,cc)(""),oT=B(As,cc)(""),rT=B(Ms,cc)(""),$s=O.forwardRef(function(t,n){const r=Ie({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=fh,id:p,input:f,inputProps:b,label:g,labelId:h,MenuProps:v,multiple:w=!1,native:C=!1,onClose:S,onOpen:x,open:T,renderValue:P,SelectDisplayProps:j,variant:R="outlined",...k}=r,I=C?Eh:kh,A=pn(),y=Qn({props:r,muiFormControl:A,states:["variant","error"]}),N=y.variant||R,M={...r,variant:N,classes:a},L=tT(M),{root:E,...V}=L,F=f||{standard:m.jsx(nT,{ownerState:M}),outlined:m.jsx(oT,{label:g,ownerState:M}),filled:m.jsx(rT,{ownerState:M})}[N],W=it(n,wo(F));return m.jsx(O.Fragment,{children:O.cloneElement(F,{inputComponent:I,inputProps:{children:s,error:y.error,IconComponent:d,variant:N,type:void 0,multiple:w,...C?{id:p}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:h,MenuProps:v,onClose:S,onOpen:x,open:T,renderValue:P,SelectDisplayProps:{id:p,...j}},...b,classes:b?At(V,b.classes):V,...f?f.props.inputProps:{}},...(w&&C||u)&&N==="outlined"?{notched:!0}:{},ref:W,className:ce(F.props.className,l,L.root),...!f&&{variant:N},...k})})});process.env.NODE_ENV!=="production"&&($s.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])});$s.muiName="Select";function iT(e){return Ee("MuiTextField",e)}Re("MuiTextField",["root"]);const sT={standard:Is,filled:Ms,outlined:As},aT=e=>{const{classes:t}=e;return ke({root:["root"]},iT,t)},lT=B(js,{name:"MuiTextField",slot:"Root"})({}),nr=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:a,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:f,fullWidth:b=!1,helperText:g,id:h,InputLabelProps:v,inputProps:w,InputProps:C,inputRef:S,label:x,maxRows:T,minRows:P,multiline:j=!1,name:R,onBlur:k,onChange:I,onFocus:A,placeholder:y,required:N=!1,rows:M,select:L=!1,SelectProps:E,slots:V={},slotProps:F={},type:W,value:D,variant:$="outlined",...Z}=r,te={...r,autoFocus:s,color:c,disabled:d,error:p,fullWidth:b,multiline:j,required:N,select:L,variant:$},re=aT(te);process.env.NODE_ENV!=="production"&&L&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const J=jn(h),U=g&&J?`${J}-helper-text`:void 0,ie=x&&J?`${J}-label`:void 0,de=sT[$],ne={slots:V,slotProps:{input:C,inputLabel:v,htmlInput:w,formHelperText:f,select:E,...F}},ee={},pe=ne.slotProps.inputLabel;$==="outlined"&&(pe&&typeof pe.shrink<"u"&&(ee.notched=pe.shrink),ee.label=x),L&&((!E||!E.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const[_,ae]=we("root",{elementType:lT,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...Z},ownerState:te,className:ce(re.root,l),ref:n,additionalProps:{disabled:d,error:p,fullWidth:b,required:N,color:c,variant:$}}),[ue,he]=we("input",{elementType:de,externalForwardedProps:ne,additionalProps:ee,ownerState:te}),[Ae,Me]=we("inputLabel",{elementType:ic,externalForwardedProps:ne,ownerState:te}),[oe,$e]=we("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:te}),[Ce,ve]=we("formHelperText",{elementType:sc,externalForwardedProps:ne,ownerState:te}),[se,q]=we("select",{elementType:$s,externalForwardedProps:ne,ownerState:te}),le=m.jsx(ue,{"aria-describedby":U,autoComplete:i,autoFocus:s,defaultValue:u,fullWidth:b,multiline:j,name:R,rows:M,maxRows:T,minRows:P,type:W,value:D,id:J,inputRef:S,onBlur:k,onChange:I,onFocus:A,placeholder:y,inputProps:$e,slots:{input:V.htmlInput?oe:void 0},...he});return m.jsxs(_,{...ae,children:[x!=null&&x!==""&&m.jsx(Ae,{htmlFor:J,id:ie,...Me,children:x}),L?m.jsx(se,{"aria-describedby":U,id:J,labelId:ie,value:D,input:le,...q,children:a}):le,g&&m.jsx(Ce,{id:U,...ve,children:g})]})});process.env.NODE_ENV!=="production"&&(nr.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Bt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const Ih=dt(m.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),cT=B(nr)(({theme:e,errorEstado:t})=>({"& .MuiOutlinedInput-root":{borderRadius:"12px",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:e.palette.mode==="dark"?fe.alpha(e.palette.common.white,.03):e.palette.common.white,paddingRight:"30px","& fieldset":{borderColor:t?e.palette.error.main:e.palette.mode==="dark"?fe.alpha(e.palette.common.white,.2):e.palette.grey[300],borderWidth:"1px",transition:"border-color 0.2s ease"},"&:hover fieldset":{borderColor:t?e.palette.error.dark:e.palette.mode==="dark"?fe.alpha(e.palette.common.white,.4):e.palette.grey[400]},"&.Mui-focused":{backgroundColor:e.palette.mode==="dark"?fe.alpha(e.palette.common.white,.05):e.palette.common.white,boxShadow:t?`0 0 0 4px ${fe.alpha(e.palette.error.main,.1)}`:e.palette.mode==="dark"?`0 4px 12px 0 ${fe.alpha(e.palette.common.black,.4)}`:`0 4px 12px 0 ${fe.alpha(e.palette.primary.main,.1)}`},"&.Mui-focused fieldset":{borderWidth:"2px",borderColor:t?e.palette.error.main:e.palette.primary.main}},"& .MuiInputLabel-root":{color:t?e.palette.error.main:e.palette.text.secondary,"&.Mui-focused":{color:t?e.palette.error.main:e.palette.primary.main,fontWeight:600}}}));function Mh({opciones:e,valor:t,alCambiar:n,etiqueta:r,textoAyuda:i,marcador:s,error:a,mensajeError:l,requerido:c,cargando:u,deshabilitado:d,soloLectura:p,limpiable:f=!0,multiple:b,propsEntrada:g,renderizarEntrada:h,...v}){const w=a&&l?l:i,C=S=>m.jsx(cT,{...S,label:r,placeholder:e.length===0&&!u?"No hay opciones":s,helperText:w,error:a,required:c,errorEstado:a,InputProps:{...S.InputProps,...g?.InputProps,endAdornment:m.jsxs(H.Fragment,{children:[u?m.jsx(Un,{color:"inherit",size:20,sx:{marginRight:1}}):null,S.InputProps.endAdornment]})},...g});return m.jsx(hh,{options:e,value:t,onChange:n,loading:u,disabled:d,readOnly:p,disableClearable:!f,multiple:b,popupIcon:m.jsx(Ih,{}),renderInput:h||C,PaperComponent:S=>m.jsx(Zn,{...S,elevation:8,sx:{borderRadius:"16px",marginTop:"8px",border:x=>`1px solid ${x.palette.mode==="dark"?fe.alpha(x.palette.common.white,.1):fe.alpha(x.palette.common.black,.05)}`,boxShadow:x=>x.palette.mode==="dark"?"0 10px 40px -10px rgba(0,0,0,0.6)":"0 12px 30px -10px rgba(0,0,0,0.15)",overflow:"hidden","& .MuiAutocomplete-listbox":{padding:"8px","& .MuiAutocomplete-option":{borderRadius:"10px",margin:"2px 0",padding:"10px 14px",transition:"all 0.15s ease",fontSize:"0.9rem",'&[aria-selected="true"]':{backgroundColor:x=>fe.alpha(x.palette.primary.main,x.palette.mode==="dark"?.2:.1),color:"primary.main",fontWeight:600,"&.Mui-focused":{backgroundColor:x=>fe.alpha(x.palette.primary.main,x.palette.mode==="dark"?.3:.2)}},"&:hover":{backgroundColor:x=>x.palette.mode==="dark"?fe.alpha(x.palette.common.white,.05):fe.alpha(x.palette.common.black,.04),transform:"translateX(4px)"}},"& .MuiAutocomplete-noOptions":{color:"text.secondary",padding:"16px",textAlign:"center",fontSize:"0.9rem"}}}}),renderTags:(S,x)=>S.map((T,P)=>{const j=v.getOptionLabel?v.getOptionLabel(T):typeof T=="string"?T:T.label||JSON.stringify(T);return m.jsx(Ts,{label:j,...x({index:P}),size:"small",sx:{borderRadius:"8px",backgroundColor:R=>fe.alpha(R.palette.primary.main,.1),color:"primary.main",fontWeight:500,border:"1px solid",borderColor:R=>fe.alpha(R.palette.primary.main,.2),"& .MuiChip-deleteIcon":{color:"primary.main","&:hover":{color:"primary.dark"}}}})}),...v})}const uT=Mh;function dT(e){return O.Children.toArray(e).filter(t=>O.isValidElement(t))}function pT(e){return Ee("MuiButtonGroup",e)}const Ve=Re("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),fT=(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ve.grouped}`]:t.grouped},{[`& .${Ve.grouped}`]:t[`grouped${z(n.orientation)}`]},{[`& .${Ve.grouped}`]:t[`grouped${z(n.variant)}`]},{[`& .${Ve.grouped}`]:t[`grouped${z(n.variant)}${z(n.orientation)}`]},{[`& .${Ve.grouped}`]:t[`grouped${z(n.variant)}${z(n.color)}`]},{[`& .${Ve.firstButton}`]:t.firstButton},{[`& .${Ve.lastButton}`]:t.lastButton},{[`& .${Ve.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},hT=e=>{const{classes:t,color:n,disabled:r,disableElevation:i,fullWidth:s,orientation:a,variant:l}=e,c={root:["root",l,a,s&&"fullWidth",i&&"disableElevation",`color${z(n)}`],grouped:["grouped",`grouped${z(a)}`,`grouped${z(l)}`,`grouped${z(l)}${z(a)}`,`grouped${z(l)}${z(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return ke(c,pT,t)},mT=B("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:fT})(ye(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Ve.lastButton},& .${Ve.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Ve.firstButton},& .${Ve.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Ve.firstButton},& .${Ve.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Ve.lastButton},& .${Ve.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Ve.firstButton},& .${Ve.middleButton}`]:{borderRight:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Ve.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Ve.firstButton},& .${Ve.middleButton}`]:{borderBottom:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Ve.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Ke()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${Ve.firstButton},& .${Ve.middleButton}`]:{borderColor:e.alpha((e.vars||e).palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Ve.firstButton},& .${Ve.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Ve.lastButton},& .${Ve.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Ve.firstButton},& .${Ve.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Ve.lastButton},& .${Ve.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Ve.firstButton},& .${Ve.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Ve.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Ve.firstButton},& .${Ve.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Ve.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Ke(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${Ve.firstButton},& .${Ve.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${Ve.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),Ah=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiButtonGroup"}),{children:i,className:s,color:a="primary",component:l="div",disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,disableRipple:p=!1,fullWidth:f=!1,orientation:b="horizontal",size:g="medium",variant:h="outlined",...v}=r,w={...r,color:a,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,disableRipple:p,fullWidth:f,orientation:b,size:g,variant:h},C=hT(w),S=O.useMemo(()=>({className:C.grouped,color:a,disabled:c,disableElevation:u,disableFocusRipple:d,disableRipple:p,fullWidth:f,size:g,variant:h}),[a,c,u,d,p,f,g,h,C.grouped]),x=dT(i),T=x.length,P=j=>{const R=j===0,k=j===T-1;return R&&k?"":R?C.firstButton:k?C.lastButton:C.middleButton};return m.jsx(mT,{as:l,role:"group",className:ce(C.root,s),ref:n,ownerState:w,...v,children:m.jsx(Ll.Provider,{value:S,children:x.map((j,R)=>m.jsx(Dl.Provider,{value:P(R),children:j},R))})})});process.env.NODE_ENV!=="production"&&(Ah.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,fullWidth:o.bool,orientation:o.oneOf(["horizontal","vertical"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});const gT=B(Ah,{shouldForwardProp:e=>e!=="separado"&&e!=="radio"&&e!=="varianteCustom"})(({theme:e,separado:t,radio:n,varianteCustom:r})=>({boxShadow:t?"none":e.shadows[2],borderRadius:n||(t?0:12),backgroundColor:r==="cristal"?e.palette.mode==="dark"?fe.alpha(e.palette.common.white,.05):fe.alpha(e.palette.common.white,.6):"transparent",backdropFilter:r==="cristal"?"blur(8px)":"none",border:r==="cristal"?`1px solid ${e.palette.mode==="dark"?fe.alpha(e.palette.common.white,.1):fe.alpha(e.palette.common.white,.4)}`:"none",...t&&{boxShadow:"none",backgroundColor:"transparent",border:"none",gap:e.spacing(1),"& .MuiButtonGroup-grouped":{borderRadius:n||8,border:"none !important",boxShadow:e.shadows[1],"&:not(:last-of-type)":{borderRight:"none !important"}}},"& .MuiButtonGroup-firstButton, & .MuiButtonGroup-lastButton":{borderRadius:t?n||8:void 0}})),bT=({children:e,tamano:t="m",variante:n="contenido",color:r="primario",orientacion:i="horizontal",separado:s=!1,radio:a,...l})=>{const c=p=>p==="contenido"?"contained":p==="texto"?"text":p==="contorno"?"outlined":p==="cristal"?"text":"contained",u=p=>p==="primario"?"primary":p==="secundario"?"secondary":p==="exito"?"success":p==="error"?"error":p==="info"?"info":p==="advertencia"?"warning":p==="oscuro"||p==="claro"?"inherit":"primary",d=p=>p==="p"?"small":p==="m"?"medium":p==="g"?"large":"medium";return m.jsx(gT,{size:d(t),variant:c(n),color:u(r),orientation:i,separado:s,radio:a,varianteCustom:n,...l,children:e})};function yT(e){return Ee("PrivateSwitchBase",e)}Re("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const vT=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,s={root:["root",n&&"checked",r&&"disabled",i&&`edge${z(i)}`],input:["input"]};return ke(s,yT,t)},xT=B(kn,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),wT=B("input",{name:"MuiSwitchBase",shouldForwardProp:kt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ns=O.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:f,inputRef:b,name:g,onBlur:h,onChange:v,onFocus:w,readOnly:C,required:S=!1,tabIndex:x,type:T,value:P,slots:j={},slotProps:R={},...k}=t,[I,A]=yn({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),y=pn(),N=J=>{w&&w(J),y&&y.onFocus&&y.onFocus(J)},M=J=>{h&&h(J),y&&y.onBlur&&y.onBlur(J)},L=J=>{if(J.nativeEvent.defaultPrevented)return;const U=J.target.checked;A(U),v&&v(J,U)};let E=l;y&&typeof E>"u"&&(E=y.disabled);const V=T==="checkbox"||T==="radio",F={...t,checked:I,disabled:E,disableFocusRipple:c,edge:u},W=vT(F),D={slots:j,slotProps:{input:f,...R}},[$,Z]=we("root",{ref:n,elementType:xT,className:W.root,shouldForwardComponentProp:!0,externalForwardedProps:{...D,component:"span",...k},getSlotProps:J=>({...J,onFocus:U=>{J.onFocus?.(U),N(U)},onBlur:U=>{J.onBlur?.(U),M(U)}}),ownerState:F,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:E,role:void 0,tabIndex:null}}),[te,re]=we("input",{ref:b,elementType:wT,className:W.input,externalForwardedProps:D,getSlotProps:J=>({...J,onChange:U=>{J.onChange?.(U),L(U)}}),ownerState:F,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:E,id:V?p:void 0,name:g,readOnly:C,required:S,tabIndex:x,type:T,...T==="checkbox"&&P===void 0?{}:{value:P}}});return m.jsxs($,{...Z,children:[m.jsx(te,{...re}),I?s:d]})});process.env.NODE_ENV!=="production"&&(Ns.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:Bt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const CT=dt(m.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),ST=dt(m.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),TT=dt(m.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function PT(e){return Ee("MuiCheckbox",e)}const pa=Re("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),OT=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,s={root:["root",n&&"indeterminate",`color${z(r)}`,`size${z(i)}`]},a=ke(s,PT,t);return{...t,...a}},ET=B(Ns,{shouldForwardProp:e=>kt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${z(n.size)}`],n.color!=="default"&&t[`color${z(n.color)}`]]}})(ye(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t},style:{[`&.${pa.checked}, &.${pa.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${pa.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),RT=m.jsx(ST,{}),kT=m.jsx(CT,{}),IT=m.jsx(TT,{}),Yi=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCheckbox"}),{checkedIcon:i=RT,color:s="primary",icon:a=kT,indeterminate:l=!1,indeterminateIcon:c=IT,inputProps:u,size:d="medium",disableRipple:p=!1,className:f,slots:b={},slotProps:g={},...h}=r,v=l?c:a,w=l?c:i,C={...r,disableRipple:p,color:s,indeterminate:l,size:d},S=OT(C),x=g.input??u,[T,P]=we("root",{ref:n,elementType:ET,className:ce(S.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:g,...h},ownerState:C,additionalProps:{type:"checkbox",icon:O.cloneElement(v,{fontSize:v.props.fontSize??d}),checkedIcon:O.cloneElement(w,{fontSize:w.props.fontSize??d}),disableRipple:p,slots:b,slotProps:{input:hf(typeof x=="function"?x(C):x,{"data-indeterminate":l})}}});return m.jsx(T,{...P,classes:S})});process.env.NODE_ENV!=="production"&&(Yi.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function MT(e){return Ee("MuiFormControlLabel",e)}const Tr=Re("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),AT=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:s}=e,a={root:["root",n&&"disabled",`labelPlacement${z(r)}`,i&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return ke(a,MT,t)},jT=B("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Tr.label}`]:t.label},t.root,t[`labelPlacement${z(n.labelPlacement)}`]]}})(ye(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Tr.disabled}`]:{cursor:"default"},[`& .${Tr.label}`]:{[`&.${Tr.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),$T=B("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(ye(({theme:e})=>({[`&.${Tr.error}`]:{color:(e.vars||e).palette.error.main}}))),Ls=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:a={},control:l,disabled:c,disableTypography:u,inputRef:d,label:p,labelPlacement:f="end",name:b,onChange:g,required:h,slots:v={},slotProps:w={},value:C,...S}=r,x=pn(),T=c??l.props.disabled??x?.disabled,P=h??l.props.required,j={disabled:T,required:P};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof l.props[L]>"u"&&typeof r[L]<"u"&&(j[L]=r[L])});const R=Qn({props:r,muiFormControl:x,states:["error"]}),k={...r,disabled:T,labelPlacement:f,required:P,error:R.error},I=AT(k),A={slots:v,slotProps:{...a,...w}},[y,N]=we("typography",{elementType:at,externalForwardedProps:A,ownerState:k});let M=p;return M!=null&&M.type!==at&&!u&&(M=m.jsx(y,{component:"span",...N,className:ce(I.label,N?.className),children:M})),m.jsxs(jT,{className:ce(I.root,s),ownerState:k,ref:n,...S,children:[O.cloneElement(l,j),P?m.jsxs("div",{children:[M,m.jsxs($T,{ownerState:k,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}):M]})});process.env.NODE_ENV!=="production"&&(Ls.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:Bt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function NT(e){return Ee("MuiFormGroup",e)}Re("MuiFormGroup",["root","row","error"]);const LT=e=>{const{classes:t,row:n,error:r}=e;return ke({root:["root",n&&"row",r&&"error"]},NT,t)},DT=B("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),uc=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...a}=r,l=pn(),c=Qn({props:r,muiFormControl:l,states:["error"]}),u={...r,row:s,error:c.error},d=LT(u);return m.jsx(DT,{className:ce(d.root,i),ownerState:u,ref:n,...a})});process.env.NODE_ENV!=="production"&&(uc.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const jh=B("span")(({theme:e,tamanoPx:t,variante:n,error:r})=>({borderRadius:6,width:t,height:t,boxShadow:n==="borde"?`inset 0 0 0 2px ${e.palette.divider}`:e.palette.mode==="dark"?"0 0 0 1px rgb(16 22 26 / 40%)":"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:n==="borde"?"transparent":e.palette.mode==="dark"?"#394b59":"#f5f8fa",backgroundImage:n==="borde"?"none":e.palette.mode==="dark"?"linear-gradient(180deg,hsla(0,0%,100%,.05),hsla(0,0%,100%,0))":"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",".Mui-focusVisible &":{outline:"2px auto rgba(19,124,189,.6)",outlineOffset:2},"input:hover ~ &":{backgroundColor:e.palette.mode==="dark"?"#30404d":"#ebf1f5",borderColor:r?e.palette.error.main:e.palette.primary.main},"input:disabled ~ &":{boxShadow:"none",background:e.palette.mode==="dark"?"rgba(57,75,89,.5)":"rgba(206,217,224,.5)",cursor:"not-allowed"},...r&&{boxShadow:`inset 0 0 0 2px ${e.palette.error.main}`,backgroundColor:fe.alpha(e.palette.error.main,.1)}})),$h=B(jh)(({theme:e,colorHex:t,variante:n})=>({backgroundColor:t,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))",boxShadow:`0 0 0 1px ${t}`,"&::before":{display:"block",width:"100%",height:"100%",backgroundImage:`url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E")`,content:'""',backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"80%"},"input:hover ~ &":{backgroundColor:t,filter:"brightness(95%)"}})),BT=B($h)({"&::before":{backgroundImage:`url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3' y='7' width='10' height='2' rx='1' fill='%23fff'/%3E%3C/svg%3E")`}}),dc=H.forwardRef(({etiqueta:e,posicionEtiqueta:t="derecha",seleccionado:n,indeterminado:r=!1,deshabilitado:i=!1,soloLectura:s=!1,requerido:a=!1,error:l=!1,tamano:c="m",color:u="primario",variante:d="estandar",alCambiar:p,sx:f,className:b,...g},h)=>{const v=_t(),C={p:16,m:20,g:24}[c],x={primario:v.palette.primary.main,secundario:v.palette.secondary.main,exito:v.palette.success.main,error:v.palette.error.main,info:v.palette.info.main,advertencia:v.palette.warning.main}[u]||v.palette.primary.main,T={derecha:"end",izquierda:"start",arriba:"top",abajo:"bottom"},P=m.jsx(Yi,{ref:h,checked:n,indeterminate:r,disabled:i,readOnly:s,required:a,onChange:p,sx:{"&:hover":{bgcolor:"transparent"},p:1,...f},disableRipple:!0,icon:m.jsx(jh,{tamanoPx:C,variante:d,error:l}),checkedIcon:m.jsx($h,{tamanoPx:C,variante:d,colorHex:l?v.palette.error.main:x}),indeterminateIcon:m.jsx(BT,{tamanoPx:C,variante:d,colorHex:l?v.palette.error.main:x}),inputProps:{"aria-label":typeof e=="string"?e:"Casilla"},...g});return e?m.jsx(Ls,{control:P,label:m.jsxs(at,{variant:"body2",sx:{fontSize:c==="g"?"1rem":c==="p"?"0.8125rem":"0.875rem",color:i?"text.disabled":l?"error.main":"text.primary",fontWeight:500},children:[e," ",a&&m.jsx("span",{style:{color:v.palette.error.main},children:"*"})]}),labelPlacement:T[t],disabled:i,className:b,sx:{mx:0,gap:1,"&.MuiFormControlLabel-labelPlacementStart":{marginLeft:0,marginRight:0}}}):m.jsx("span",{className:b,children:P})});dc.displayName="CodeplexCasilla";const VT=dc;function FT(e){return Ee("MuiInputAdornment",e)}const bd=Re("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var yd;const zT=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${z(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},WT=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:s,variant:a}=e,l={root:["root",n&&"disablePointerEvents",i&&`position${z(i)}`,a,r&&"hiddenLabel",s&&`size${z(s)}`]};return ke(l,FT,t)},_T=B("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:zT})(ye(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${bd.positionStart}&:not(.${bd.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),vo=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiInputAdornment"}),{children:i,className:s,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...p}=r,f=pn()||{};let b=d;d&&f.variant&&process.env.NODE_ENV!=="production"&&d===f.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),f&&!b&&(b=f.variant);const g={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:l,position:u,variant:b},h=WT(g);return m.jsx(ei.Provider,{value:null,children:m.jsx(_T,{as:a,ownerState:g,className:ce(h.root,s),ref:n,...p,children:typeof i=="string"&&!c?m.jsx(at,{color:"textSecondary",children:i}):m.jsxs(O.Fragment,{children:[u==="start"?yd||(yd=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,i]})})})});process.env.NODE_ENV!=="production"&&(vo.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disablePointerEvents:o.bool,disableTypography:o.bool,position:o.oneOf(["end","start"]).isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});const UT=dt(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),HT=dt(m.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),qT=B(nr)(({theme:e,errorEstado:t})=>({"& .MuiOutlinedInput-root":{borderRadius:12,backgroundColor:e.palette.mode==="dark"?fe.alpha(e.palette.common.white,.03):fe.alpha(e.palette.common.black,.01),transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","& fieldset":{borderColor:t?e.palette.error.main:e.palette.mode==="dark"?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.12)"},"&:hover":{backgroundColor:e.palette.mode==="dark"?fe.alpha(e.palette.common.white,.05):fe.alpha(e.palette.common.black,.02)},"&:hover fieldset":{borderColor:t?e.palette.error.dark:e.palette.primary.main},"&.Mui-focused fieldset":{borderColor:t?e.palette.error.main:e.palette.primary.main,borderWidth:2,boxShadow:t?`0 0 0 4px ${fe.alpha(e.palette.error.main,.1)}`:`0 0 0 4px ${fe.alpha(e.palette.primary.main,.1)}`},"& input[type=number]":{"-moz-appearance":"textfield","&::-webkit-outer-spin-button":{"-webkit-appearance":"none",margin:0},"&::-webkit-inner-spin-button":{"-webkit-appearance":"none",margin:0}},"& .MuiInputAdornment-root .MuiIconButton-root":{opacity:.5,transition:"all 0.2s","&:hover":{opacity:1,backgroundColor:fe.alpha(e.palette.primary.main,.1)},"&.Mui-disabled":{opacity:.2}},"&:hover .MuiInputAdornment-root .MuiIconButton-root":{opacity:.7}},"& .MuiInputLabel-root":{color:t?e.palette.error.main:e.palette.text.secondary,"&.Mui-focused":{color:t?e.palette.error.main:e.palette.primary.main,fontWeight:600}}})),Nh=({etiqueta:e,textoAyuda:t,minimo:n,maximo:r,paso:i=1,valor:s,valorPorDefecto:a,alineacion:l="centro",mostrarControles:c=!0,error:u,mensajeError:d,deshabilitado:p,soloLectura:f,anchoCompleto:b=!1,alCambiar:g,InputProps:h,...v})=>{const w=s!==void 0,[C,S]=H.useState(w?s?.toString()??"":a?.toString()??"");H.useEffect(()=>{w&&S(s?.toString()??"")},[s,w]);const x=C,T=A=>{if(A===""||A==="-"){S(A),A===""&&!w&&g?.(null);return}const y=parseFloat(A);isNaN(y)||(w||S(A),g?.(y))},P=()=>{let A=parseFloat(C);if(isNaN(A))return void 0;let y=A;typeof n=="number"&&A<n&&(y=n),typeof r=="number"&&A>r&&(y=r),y!==A&&(w||S(y.toString()),g?.(y))},j=()=>{let y=parseFloat(x||"0")+i;y=Math.round(y*1e4)/1e4,!(r!==void 0&&y>r)&&(w||S(y.toString()),g?.(y))},R=()=>{let y=parseFloat(x||"0")-i;y=Math.round(y*1e4)/1e4,!(n!==void 0&&y<n)&&(w||S(y.toString()),g?.(y))},k={izquierda:"left",centro:"center",derecha:"right"},I=u&&d?d:t;return m.jsx(qT,{type:"number",label:e,value:x,onChange:A=>T(A.target.value),onBlur:P,disabled:p,error:u,helperText:I,fullWidth:b,errorEstado:u,InputProps:{readOnly:f,startAdornment:c?m.jsx(vo,{position:"start",children:m.jsx(Ho,{onClick:R,disabled:p||f||n!==void 0&&parseFloat(x||"0")<=n,edge:"start",size:"small",children:m.jsx(HT,{fontSize:"small"})})}):null,endAdornment:c?m.jsx(vo,{position:"end",children:m.jsx(Ho,{onClick:j,disabled:p||f||r!==void 0&&parseFloat(x||"0")>=r,edge:"end",size:"small",children:m.jsx(UT,{fontSize:"small"})})}):null,sx:{"& input":{textAlign:k[l]||"center"},paddingRight:c?void 0:"14px"},...h},...v})},GT=Nh,KT=dt(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),YT=dt(m.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),XT=B("span",{name:"MuiRadioButtonIcon",shouldForwardProp:kt})({position:"relative",display:"flex"}),ZT=B(KT,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),JT=B(YT,{name:"MuiRadioButtonIcon"})(ye(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function pc(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return m.jsxs(XT,{className:n.root,ownerState:i,children:[m.jsx(ZT,{fontSize:r,className:n.background,ownerState:i}),m.jsx(JT,{fontSize:r,className:n.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(pc.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const fc=O.createContext(void 0);process.env.NODE_ENV!=="production"&&(fc.displayName="RadioGroupContext");function QT(){return O.useContext(fc)}function eP(e){return Ee("MuiRadio",e)}const vd=Re("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),tP=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${z(n)}`,r!=="medium"&&`size${z(r)}`]};return{...t,...ke(i,eP,t)}},nP=B(Ns,{shouldForwardProp:e=>kt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${z(n.size)}`],t[`color${z(n.color)}`]]}})(ye(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${vd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${vd.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function oP(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const rP=m.jsx(pc,{checked:!0}),iP=m.jsx(pc,{}),Lh=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=rP,color:a="primary",icon:l=iP,name:c,onChange:u,size:d="medium",className:p,disabled:f,disableRipple:b=!1,slots:g={},slotProps:h={},inputProps:v,...w}=r,C=pn();let S=f;C&&typeof S>"u"&&(S=C.disabled),S??=!1;const x={...r,disabled:S,disableRipple:b,color:a,size:d},T=tP(x),P=QT();let j=i;const R=Ia(u,P&&P.onChange);let k=c;P&&(typeof j>"u"&&(j=oP(P.value,r.value)),typeof k>"u"&&(k=P.name));const I=h.input??v,[A,y]=we("root",{ref:n,elementType:nP,className:ce(T.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:h,...w},getSlotProps:N=>({...N,onChange:(M,...L)=>{N.onChange?.(M,...L),R(M,...L)}}),ownerState:x,additionalProps:{type:"radio",icon:O.cloneElement(l,{fontSize:l.props.fontSize??d}),checkedIcon:O.cloneElement(s,{fontSize:s.props.fontSize??d}),disabled:S,name:k,checked:j,slots:g,slotProps:{input:typeof I=="function"?I(x):I}}});return m.jsx(A,{...y,classes:T})});process.env.NODE_ENV!=="production"&&(Lh.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:Bt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function sP(e){return Ee("MuiRadioGroup",e)}Re("MuiRadioGroup",["root","row","error"]);const aP=e=>{const{classes:t,row:n,error:r}=e;return ke({root:["root",n&&"row",r&&"error"]},sP,t)},Dh=O.forwardRef(function(t,n){const{actions:r,children:i,className:s,defaultValue:a,name:l,onChange:c,value:u,...d}=t,p=O.useRef(null),f=aP(t),[b,g]=yn({controlled:u,default:a,name:"RadioGroup"});O.useImperativeHandle(r,()=>({focus:()=>{let C=p.current.querySelector("input:not(:disabled):checked");C||(C=p.current.querySelector("input:not(:disabled)")),C&&C.focus()}}),[]);const h=it(n,p),v=jn(l),w=O.useMemo(()=>({name:v,onChange(C){g(C.target.value),c&&c(C,C.target.value)},value:b}),[v,c,g,b]);return m.jsx(fc.Provider,{value:w,children:m.jsx(uc,{role:"radiogroup",ref:h,className:ce(f.root,s),...d,children:i})})});process.env.NODE_ENV!=="production"&&(Dh.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const Bh=B("span")(({theme:e})=>({borderRadius:"50%",width:20,height:20,boxShadow:e.palette.mode==="dark"?"0 0 0 1px rgb(16 22 26 / 40%)":"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:e.palette.mode==="dark"?"#394b59":"#f5f8fa",backgroundImage:e.palette.mode==="dark"?"linear-gradient(180deg,hsla(0,0%,100%,.05),hsla(0,0%,100%,0))":"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",".Mui-focusVisible &":{outline:"2px auto rgba(19,124,189,.6)",outlineOffset:2},"input:hover ~ &":{backgroundColor:e.palette.mode==="dark"?"#30404d":"#ebf1f5"},"input:disabled ~ &":{boxShadow:"none",background:e.palette.mode==="dark"?"rgba(57,75,89,.5)":"rgba(206,217,224,.5)"}})),lP=B(Bh)({backgroundColor:"#137cbd",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&::before":{display:"block",width:20,height:20,backgroundImage:"radial-gradient(#fff,#fff 28%,transparent 32%)",content:'""'},"input:hover ~ &":{backgroundColor:"#106ba3"}}),hc=H.forwardRef(({etiqueta:e,posicionEtiqueta:t,sx:n,...r},i)=>{const s=m.jsx(Lh,{ref:i,sx:{"&:hover":{bgcolor:"transparent"},...n},disableRipple:!0,color:"default",checkedIcon:m.jsx(lP,{}),icon:m.jsx(Bh,{}),...r});return e?m.jsx(Ls,{control:s,label:e,labelPlacement:t,sx:{"& .MuiFormControlLabel-label":{fontSize:"0.95rem",fontWeight:500,userSelect:"none"}}}):s});hc.displayName="CodeplexRadio";const Vh=({etiqueta:e,opciones:t,orientacion:n="vertical",valor:r,alCambiar:i,color:s,error:a,mensajeError:l,children:c,...u})=>{const d=t?t.map(f=>({value:f.valor,label:f.etiqueta,disabled:f.deshabilitado})):null,p=m.jsx(Dh,{row:n==="horizontal",value:r,onChange:i,...u,children:d?d.map(f=>m.jsx(hc,{value:f.value,etiqueta:f.label,disabled:f.disabled},f.value)):c});return e||a?m.jsxs(js,{component:"fieldset",error:a,children:[e&&m.jsx(Gi,{component:"legend",className:"mb-2 font-semibold",sx:{"&.Mui-focused":{color:a?"error.main":"primary.main"}},children:e}),p,a&&l&&m.jsx(Gi,{error:!0,sx:{fontSize:"0.75rem",marginTop:.5},children:l})]}):p},cP=Vh;function uP(e){return Ee("MuiDivider",e)}const xd=Re("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dP=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:a,textAlign:l,variant:c}=e;return ke({root:["root",t&&"absolute",c,s&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},uP,r)},pP=B("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ye(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),fP=B("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ye(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Fr=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiDivider"}),{absolute:i=!1,children:s,className:a,orientation:l="horizontal",component:c=s||l==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:p=c!=="hr"?"separator":void 0,textAlign:f="center",variant:b="fullWidth",...g}=r,h={...r,absolute:i,component:c,flexItem:u,light:d,orientation:l,role:p,textAlign:f,variant:b},v=dP(h);return m.jsx(pP,{as:c,className:ce(v.root,a),role:p,ref:n,ownerState:h,"aria-orientation":p==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...g,children:s?m.jsx(fP,{className:v.wrapper,ownerState:h,children:s}):null})});Fr&&(Fr.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Fr.propTypes={absolute:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,flexItem:o.bool,light:o.bool,orientation:o.oneOf(["horizontal","vertical"]),role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),textAlign:o.oneOf(["center","left","right"]),variant:o.oneOfType([o.oneOf(["fullWidth","inset","middle"]),o.string])});function hP(e){return Ee("MuiListItemIcon",e)}const wd=Re("MuiListItemIcon",["root","alignItemsFlexStart"]),mP=e=>{const{alignItems:t,classes:n}=e;return ke({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},hP,n)},gP=B("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(ye(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Fh=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItemIcon"}),{className:i,...s}=r,a=O.useContext(en),l={...r,alignItems:a.alignItems},c=mP(l);return m.jsx(gP,{className:ce(c.root,i),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(Fh.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function bP(e){return Ee("MuiListItemText",e)}const Do=Re("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),yP=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:s}=e;return ke({root:["root",n&&"inset",s&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},bP,t)},vP=B("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Do.primary}`]:t.primary},{[`& .${Do.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${zi.root}:where(& .${Do.primary})`]:{display:"block"},[`.${zi.root}:where(& .${Do.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),zh=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItemText"}),{children:i,className:s,disableTypography:a=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:p,slots:f={},slotProps:b={},...g}=r,{dense:h}=O.useContext(en);let v=c??i,w=d;const C={...r,disableTypography:a,inset:l,primary:!!v,secondary:!!w,dense:h},S=yP(C),x={slots:f,slotProps:{primary:u,secondary:p,...b}},[T,P]=we("root",{className:ce(S.root,s),elementType:vP,externalForwardedProps:{...x,...g},ownerState:C,ref:n}),[j,R]=we("primary",{className:S.primary,elementType:at,externalForwardedProps:x,ownerState:C}),[k,I]=we("secondary",{className:S.secondary,elementType:at,externalForwardedProps:x,ownerState:C});return v!=null&&v.type!==at&&!a&&(v=m.jsx(j,{variant:h?"body2":"body1",component:R?.variant?void 0:"span",...R,children:v})),w!=null&&w.type!==at&&!a&&(w=m.jsx(k,{variant:"body2",color:"textSecondary",...I,children:w})),m.jsxs(T,{...P,children:[v,w]})});process.env.NODE_ENV!=="production"&&(zh.propTypes={children:o.node,classes:o.object,className:o.string,disableTypography:o.bool,inset:o.bool,primary:o.node,primaryTypographyProps:o.object,secondary:o.node,secondaryTypographyProps:o.object,slotProps:o.shape({primary:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),secondary:o.oneOfType([o.func,o.object])}),slots:o.shape({primary:o.elementType,root:o.elementType,secondary:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function xP(e){return Ee("MuiMenuItem",e)}const br=Re("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),wP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},CP=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:s,classes:a}=e,c=ke({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},xP,a);return{...a,...c}},SP=B(kn,{shouldForwardProp:e=>kt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:wP})(ye(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${br.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${br.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${br.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${br.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${br.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${xd.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${xd.inset}`]:{marginLeft:52},[`& .${Do.root}`]:{marginTop:0,marginBottom:0},[`& .${Do.inset}`]:{paddingLeft:36},[`& .${wd.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${wd.root} svg`]:{fontSize:"1.25rem"}}}]}))),_o=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:f,...b}=r,g=O.useContext(en),h=O.useMemo(()=>({dense:a||g.dense||!1,disableGutters:c}),[g.dense,a,c]),v=O.useRef(null);nn(()=>{i&&(v.current?v.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const w={...r,dense:h.dense,divider:l,disableGutters:c},C=CP(r),S=it(v,n);let x;return r.disabled||(x=p!==void 0?p:-1),m.jsx(en.Provider,{value:h,children:m.jsx(SP,{ref:S,role:d,tabIndex:x,component:s,focusVisibleClassName:ce(C.focusVisible,u),className:ce(C.root,f),...b,ownerState:w,classes:C})})});process.env.NODE_ENV!=="production"&&(_o.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});const Wh=dt(m.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),TP=B($s)(({theme:e})=>({borderRadius:12,backgroundColor:e.palette.mode==="dark"?"rgba(255,255,255,0.05)":"#fff",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","& .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.mode==="dark"?"rgba(255,255,255,0.2)":"rgba(0,0,0,0.15)",transition:"all 0.2s"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary.main},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2,boxShadow:`0 0 0 4px ${e.palette.mode==="dark"?"rgba(96, 165, 250, 0.2)":"rgba(37, 99, 235, 0.1)"}`},"&.Mui-error .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main},"&.Mui-error.Mui-focused .MuiOutlinedInput-notchedOutline":{boxShadow:`0 0 0 4px ${e.palette.mode==="dark"?"rgba(239, 68, 68, 0.2)":"rgba(220, 38, 38, 0.1)"}`}})),PP=B(_o)(({theme:e})=>({position:"sticky",bottom:0,backgroundColor:e.palette.background.paper,borderTop:`1px solid ${e.palette.divider}`,color:e.palette.primary.main,fontWeight:600,zIndex:1,"&:hover":{backgroundColor:e.palette.action.hover},display:"flex",justifyContent:"center",textAlign:"center"})),OP=B(Jo)(({theme:e})=>({position:"sticky",top:0,zIndex:2,backgroundColor:e.palette.background.paper,padding:"12px 16px",borderBottom:`1px solid ${e.palette.divider}`,lineHeight:"initial"})),_h=({value:e,onChange:t,size:n,multiple:r=!1,error:i,disabled:s,required:a,variant:l="outlined",displayEmpty:c,etiqueta:u,opciones:d,textoAyuda:p,marcador:f,renderizarValor:b,alCambiar:g,tamano:h,alCrearNuevo:v,textoCrearNuevo:w="Agregar opción...",mensajeError:C,buscable:S,children:x,sx:T,...P})=>{const j=_t(),R=g||t,k=h||n,[I,A]=H.useState(""),y=H.useMemo(()=>N(d),[d]);function N($){return $?$.map(Z=>({value:Z.valor,label:Z.etiqueta,disabled:Z.deshabilitado})):[]}const M=H.useMemo(()=>{if(!S||!I.trim())return y;const $=I.toLowerCase();return y.filter(Z=>String(Z.label).toLowerCase().includes($))},[y,I,S]),L=$=>{if(R){const te={target:{value:Array.isArray(e)?e.filter(re=>re!==$):[],name:P.name}};R(te,null)}},E=e===""||e===null||Array.isArray(e)&&e.length===0,V=$=>{if(b)return b($);if(r){const Z=Array.isArray($)?$:[$];return y.length>0?m.jsx(qe,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:Z.map(te=>{const re=y.find(J=>J.value===te);return m.jsx(Ts,{label:re?.label||te,size:"small",onDelete:()=>L(te),onMouseDown:J=>J.stopPropagation(),sx:{borderRadius:"8px",backgroundColor:J=>fe.alpha(J.palette.primary.main,.1),color:j.palette.primary.main,fontWeight:500,border:"1px solid",borderColor:J=>fe.alpha(J.palette.primary.main,.2),"& .MuiChip-deleteIcon":{color:j.palette.primary.main,"&:hover":{color:j.palette.primary.dark}}}},te)})}):Z.join(", ")}return y.length>0?($===""||$===null)&&f?m.jsx("span",{style:{color:j.palette.text.disabled},children:f}):y.find(te=>te.value===$)?.label||$:$},F=b||r||y.length>0,W=!E||!!f,D=i&&C?C:p;return m.jsxs(js,{fullWidth:!0,error:i,disabled:s,required:a,variant:l,sx:{minWidth:120,my:1,...T},children:[u&&m.jsx(ic,{id:`select-label-${u}`,shrink:W,children:u}),m.jsxs(TP,{labelId:u?`select-label-${u}`:void 0,label:u,value:e,onChange:R,size:k,multiple:r,displayEmpty:!!f||c,renderValue:F?V:void 0,IconComponent:Ih,onClose:()=>A(""),MenuProps:{autoFocus:!1,MenuListProps:{disablePadding:!0,sx:{pb:0,pt:0}},PaperProps:{elevation:0,sx:{mt:1.5,borderRadius:3,boxShadow:"0 8px 32px rgba(0,0,0,0.12)",border:"1px solid",borderColor:j.palette.mode==="dark"?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.05)",maxHeight:320,paddingBottom:v?0:1,"& .MuiList-root":{paddingTop:0,paddingBottom:0},"& .MuiMenuItem-root":{borderRadius:1.5,mx:1,my:.5,py:1,fontSize:"0.95rem",transition:"all 0.2s","&:hover":{backgroundColor:j.palette.action.hover,pl:2.5},"&.Mui-selected":{backgroundColor:j.palette.primary.light,color:j.palette.primary.contrastText,fontWeight:600,"&:hover":{backgroundColor:j.palette.primary.main}}}}}},...P,children:[S&&m.jsx(OP,{children:m.jsx(nr,{size:"small",fullWidth:!0,placeholder:"Buscar...",value:I,onChange:$=>A($.target.value),onKeyDown:$=>$.stopPropagation(),onClick:$=>$.stopPropagation(),onMouseDown:$=>$.stopPropagation(),InputProps:{startAdornment:m.jsx(vo,{position:"start",children:m.jsx(Wh,{fontSize:"small",color:"action"})})},sx:{"& .MuiOutlinedInput-root":{borderRadius:2,backgroundColor:j.palette.action.hover,"& fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"}}}})}),f&&m.jsx(_o,{value:"",disabled:!0,sx:{display:"none"},children:m.jsx("span",{style:{color:j.palette.text.disabled},children:f})}),M.length>0?M.map($=>m.jsx(_o,{value:$.value,disabled:$.disabled,children:$.label},$.value)):S&&M.length===0&&I?m.jsx(_o,{disabled:!0,children:m.jsx("span",{style:{opacity:.7},children:"No hay resultados"})}):x,v&&m.jsxs(PP,{onClick:$=>{$.stopPropagation(),v()},value:"",disableRipple:!0,children:["+ ",w]})]}),D&&m.jsx(sc,{children:D})]})},EP=_h;function RP(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const kP=2;function Mo(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function Uh(e,t){return e-t}function Cd(e,t){const{index:n}=e.reduce((r,i,s)=>{const a=Math.abs(t-i);return r===null||a<r.distance||a===r.distance?{distance:a,index:s}:r},null)??{};return n}function gi(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Xi(e,t,n){return(e-t)*100/(n-t)}function IP(e,t,n){return(n-t)*e+t}function MP(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function AP(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(MP(t)))}function Sd({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Uh)}function bi({sliderRef:e,activeIndex:t,setActive:n}){const r=vt(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function yi(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?RP(e,t):!1}const jP={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},$P=e=>e;let vi;function Td(){return vi===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?vi=CSS.supports("touch-action","none"):vi=!0),vi}function NP(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:s=!1,marks:a=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:p,orientation:f="horizontal",rootRef:b,scale:g=$P,step:h=1,shiftStep:v=10,tabIndex:w,value:C}=e,S=O.useRef(void 0),[x,T]=O.useState(-1),[P,j]=O.useState(-1),[R,k]=O.useState(!1),I=O.useRef(0),A=O.useRef(null),[y,N]=yn({controlled:C,default:n??c,name:"Slider"}),M=d&&((X,K,ge)=>{const xe=X.nativeEvent||X,Te=new xe.constructor(xe.type,xe);Object.defineProperty(Te,"target",{writable:!0,value:{value:K,name:u}}),A.current=K,d(Te,K,ge)}),L=Array.isArray(y);let E=L?y.slice().sort(Uh):[y];E=E.map(X=>X==null?c:ao(X,c,l));const V=a===!0&&h!==null?[...Array(Math.floor((l-c)/h)+1)].map((X,K)=>({value:c+h*K})):a||[],F=V.map(X=>X.value),[W,D]=O.useState(-1),$=O.useRef(null),Z=it(b,$),te=X=>K=>{const ge=Number(K.currentTarget.getAttribute("data-index"));Gn(K.target)&&D(ge),j(ge),X?.onFocus?.(K)},re=X=>K=>{Gn(K.target)||D(-1),j(-1),X?.onBlur?.(K)},J=(X,K)=>{const ge=Number(X.currentTarget.getAttribute("data-index")),xe=E[ge],Te=F.indexOf(xe);let Se=K;if(V&&h==null){const me=F[F.length-1];Se>=me?Se=me:Se<=F[0]?Se=F[0]:Se=Se<xe?F[Te-1]:F[Te+1]}if(Se=ao(Se,c,l),L){i&&(Se=ao(Se,E[ge-1]||-1/0,E[ge+1]||1/0));const me=Se;Se=Sd({values:E,newValue:Se,index:ge});let _e=ge;i||(_e=Se.indexOf(me)),bi({sliderRef:$,activeIndex:_e})}N(Se),D(ge),M&&!yi(Se,y)&&M(X,Se,ge),p&&p(X,A.current??Se)},U=X=>K=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(K.key)){K.preventDefault();const ge=Number(K.currentTarget.getAttribute("data-index")),xe=E[ge];let Te=null;if(h!=null){const Se=K.shiftKey?v:h;switch(K.key){case"ArrowUp":Te=Mo(xe,Se,1,c,l);break;case"ArrowRight":Te=Mo(xe,Se,s?-1:1,c,l);break;case"ArrowDown":Te=Mo(xe,Se,-1,c,l);break;case"ArrowLeft":Te=Mo(xe,Se,s?1:-1,c,l);break;case"PageUp":Te=Mo(xe,v,1,c,l);break;case"PageDown":Te=Mo(xe,v,-1,c,l);break;case"Home":Te=c;break;case"End":Te=l;break}}else if(V){const Se=F[F.length-1],me=F.indexOf(xe),_e=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],De=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];_e.includes(K.key)?me===0?Te=F[0]:Te=F[me-1]:De.includes(K.key)&&(me===F.length-1?Te=Se:Te=F[me+1])}Te!=null&&J(K,Te)}X?.onKeyDown?.(K)};nn(()=>{r&&$.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&x!==-1&&T(-1),r&&W!==-1&&D(-1);const ie=X=>K=>{X.onChange?.(K),J(K,K.target.valueAsNumber)},de=O.useRef(void 0);let ne=f;s&&f==="horizontal"&&(ne+="-reverse");const ee=({finger:X,move:K=!1})=>{const{current:ge}=$,{width:xe,height:Te,bottom:Se,left:me}=ge.getBoundingClientRect();let _e;ne.startsWith("vertical")?_e=(Se-X.y)/Te:_e=(X.x-me)/xe,ne.includes("-reverse")&&(_e=1-_e);let De;if(De=IP(_e,c,l),h)De=AP(De,h,c);else{const jt=Cd(F,De);De=F[jt]}De=ao(De,c,l);let He=0;if(L){K?He=de.current:He=Cd(E,De),i&&(De=ao(De,E[He-1]||-1/0,E[He+1]||1/0));const jt=De;De=Sd({values:E,newValue:De,index:He}),i&&K||(He=De.indexOf(jt),de.current=He)}return{newValue:De,activeIndex:He}},pe=St(X=>{const K=gi(X,S);if(!K)return;if(I.current+=1,X.type==="mousemove"&&X.buttons===0){_(X);return}const{newValue:ge,activeIndex:xe}=ee({finger:K,move:!0});bi({sliderRef:$,activeIndex:xe,setActive:T}),N(ge),!R&&I.current>kP&&k(!0),M&&!yi(ge,y)&&M(X,ge,xe)}),_=St(X=>{const K=gi(X,S);if(k(!1),!K)return;const{newValue:ge}=ee({finger:K,move:!0});T(-1),X.type==="touchend"&&j(-1),p&&p(X,A.current??ge),S.current=void 0,ue()}),ae=St(X=>{if(r)return;Td()||X.preventDefault();const K=X.changedTouches[0];K!=null&&(S.current=K.identifier);const ge=gi(X,S);if(ge!==!1){const{newValue:Te,activeIndex:Se}=ee({finger:ge});bi({sliderRef:$,activeIndex:Se,setActive:T}),N(Te),M&&!yi(Te,y)&&M(X,Te,Se)}I.current=0;const xe=vt($.current);xe.addEventListener("touchmove",pe,{passive:!0}),xe.addEventListener("touchend",_,{passive:!0})}),ue=O.useCallback(()=>{const X=vt($.current);X.removeEventListener("mousemove",pe),X.removeEventListener("mouseup",_),X.removeEventListener("touchmove",pe),X.removeEventListener("touchend",_)},[_,pe]);O.useEffect(()=>{const{current:X}=$;return X.addEventListener("touchstart",ae,{passive:Td()}),()=>{X.removeEventListener("touchstart",ae),ue()}},[ue,ae]),O.useEffect(()=>{r&&ue()},[r,ue]);const he=X=>K=>{if(X.onMouseDown?.(K),r||K.defaultPrevented||K.button!==0)return;K.preventDefault();const ge=gi(K,S);if(ge!==!1){const{newValue:Te,activeIndex:Se}=ee({finger:ge});bi({sliderRef:$,activeIndex:Se,setActive:T}),N(Te),M&&!yi(Te,y)&&M(K,Te,Se)}I.current=0;const xe=vt($.current);xe.addEventListener("mousemove",pe,{passive:!0}),xe.addEventListener("mouseup",_)},Ae=Xi(L?E[0]:c,c,l),Me=Xi(E[E.length-1],c,l)-Ae,oe=(X={})=>{const K=ho(X),ge={onMouseDown:he(K||{})},xe={...K,...ge};return{...X,ref:Z,...xe}},$e=X=>K=>{X.onMouseOver?.(K);const ge=Number(K.currentTarget.getAttribute("data-index"));j(ge)},Ce=X=>K=>{X.onMouseLeave?.(K),j(-1)},ve=(X={})=>{const K=ho(X),ge={onMouseOver:$e(K||{}),onMouseLeave:Ce(K||{})};return{...X,...K,...ge}},se=X=>({pointerEvents:x!==-1&&x!==X?"none":void 0});let q;return f==="vertical"&&(q=s?"vertical-rl":"vertical-lr"),{active:x,axis:ne,axisProps:jP,dragging:R,focusedThumbIndex:W,getHiddenInputProps:(X={})=>{const K=ho(X),ge={onChange:ie(K||{}),onFocus:te(K||{}),onBlur:re(K||{}),onKeyDown:U(K||{})},xe={...K,...ge};return{tabIndex:w,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(l),"aria-valuemin":g(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...X,...xe,style:{...ih,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:q}}},getRootProps:oe,getThumbProps:ve,marks:V,open:P,range:L,rootRef:Z,trackLeap:Me,trackOffset:Ae,values:E,getThumbStyle:se}}const LP=e=>!e||!vn(e);function DP(e){return Ee("MuiSlider",e)}const Zt=Re("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),BP=e=>{const{open:t}=e;return{offset:ce(t&&Zt.valueLabelOpen),circle:Zt.valueLabelCircle,label:Zt.valueLabelLabel}};function Hh(e){const{children:t,className:n,value:r}=e,i=BP(e);return t?O.cloneElement(t,{className:t.props.className},m.jsxs(O.Fragment,{children:[t.props.children,m.jsx("span",{className:ce(i.offset,n),"aria-hidden":!0,children:m.jsx("span",{className:i.circle,children:m.jsx("span",{className:i.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Hh.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function Pd(e){return e}const VP=B("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${z(n.color)}`],n.size!=="medium"&&t[`size${z(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(ye(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Zt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Zt.dragging}`]:{[`& .${Zt.thumb}, & .${Zt.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),FP=B("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),zP=B("span",{name:"MuiSlider",slot:"Track"})(ye(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),WP=B("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${z(n.color)}`],n.size!=="medium"&&t[`thumbSize${z(n.size)}`]]}})(ye(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Zt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Ke()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Zt.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Zt.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),qh=B(Hh,{name:"MuiSlider",slot:"ValueLabel"})(ye(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Zt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Zt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(qh.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const _P=B("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Kr(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(ye(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),UP=B("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Kr(e)&&e!=="markLabelActive"})(ye(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),HP=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:s,classes:a,color:l,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",l&&`color${z(l)}`,c&&`size${z(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${z(c)}`,l&&`thumbColor${z(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return ke(u,DP,a)},qP=({children:e})=>e,Gh=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSlider"}),i=tr(),{"aria-label":s,"aria-valuetext":a,"aria-labelledby":l,component:c="span",components:u={},componentsProps:d={},color:p="primary",classes:f,className:b,disableSwap:g=!1,disabled:h=!1,getAriaLabel:v,getAriaValueText:w,marks:C=!1,max:S=100,min:x=0,name:T,onChange:P,onChangeCommitted:j,orientation:R="horizontal",shiftStep:k=10,size:I="medium",step:A=1,scale:y=Pd,slotProps:N,slots:M,tabIndex:L,track:E="normal",value:V,valueLabelDisplay:F="off",valueLabelFormat:W=Pd,...D}=r,$={...r,isRtl:i,max:S,min:x,classes:f,disabled:h,disableSwap:g,orientation:R,marks:C,color:p,size:I,step:A,shiftStep:k,scale:y,track:E,valueLabelDisplay:F,valueLabelFormat:W},{axisProps:Z,getRootProps:te,getHiddenInputProps:re,getThumbProps:J,open:U,active:ie,axis:de,focusedThumbIndex:ne,range:ee,dragging:pe,marks:_,values:ae,trackOffset:ue,trackLeap:he,getThumbStyle:Ae}=NP({...$,rootRef:n});$.marked=_.length>0&&_.some(Ue=>Ue.label),$.dragging=pe,$.focusedThumbIndex=ne;const Me=HP($),oe=M?.root??u.Root??VP,$e=M?.rail??u.Rail??FP,Ce=M?.track??u.Track??zP,ve=M?.thumb??u.Thumb??WP,se=M?.valueLabel??u.ValueLabel??qh,q=M?.mark??u.Mark??_P,le=M?.markLabel??u.MarkLabel??UP,X=M?.input??u.Input??"input",K=N?.root??d.root,ge=N?.rail??d.rail,xe=N?.track??d.track,Te=N?.thumb??d.thumb,Se=N?.valueLabel??d.valueLabel,me=N?.mark??d.mark,_e=N?.markLabel??d.markLabel,De=N?.input??d.input,He=hn({elementType:oe,getSlotProps:te,externalSlotProps:K,externalForwardedProps:D,additionalProps:{...LP(oe)&&{as:c}},ownerState:{...$,...K?.ownerState},className:[Me.root,b]}),jt=hn({elementType:$e,externalSlotProps:ge,ownerState:$,className:Me.rail}),Pt=hn({elementType:Ce,externalSlotProps:xe,additionalProps:{style:{...Z[de].offset(ue),...Z[de].leap(he)}},ownerState:{...$,...xe?.ownerState},className:Me.track}),gt=hn({elementType:ve,getSlotProps:J,externalSlotProps:Te,ownerState:{...$,...Te?.ownerState},className:Me.thumb}),Pe=hn({elementType:se,externalSlotProps:Se,ownerState:{...$,...Se?.ownerState},className:Me.valueLabel}),Be=hn({elementType:q,externalSlotProps:me,ownerState:$,className:Me.mark}),Je=hn({elementType:le,externalSlotProps:_e,ownerState:$,className:Me.markLabel}),xt=hn({elementType:X,getSlotProps:re,externalSlotProps:De,ownerState:$});return m.jsxs(oe,{...He,children:[m.jsx($e,{...jt}),m.jsx(Ce,{...Pt}),_.filter(Ue=>Ue.value>=x&&Ue.value<=S).map((Ue,ot)=>{const $t=Xi(Ue.value,x,S),It=Z[de].offset($t);let bt;return E===!1?bt=ae.includes(Ue.value):bt=E==="normal"&&(ee?Ue.value>=ae[0]&&Ue.value<=ae[ae.length-1]:Ue.value<=ae[0])||E==="inverted"&&(ee?Ue.value<=ae[0]||Ue.value>=ae[ae.length-1]:Ue.value>=ae[0]),m.jsxs(O.Fragment,{children:[m.jsx(q,{"data-index":ot,...Be,...!vn(q)&&{markActive:bt},style:{...It,...Be.style},className:ce(Be.className,bt&&Me.markActive)}),Ue.label!=null?m.jsx(le,{"aria-hidden":!0,"data-index":ot,...Je,...!vn(le)&&{markLabelActive:bt},style:{...It,...Je.style},className:ce(Me.markLabel,Je.className,bt&&Me.markLabelActive),children:Ue.label}):null]},ot)}),ae.map((Ue,ot)=>{const $t=Xi(Ue,x,S),It=Z[de].offset($t),bt=F==="off"?qP:se;return m.jsx(bt,{...!vn(bt)&&{valueLabelFormat:W,valueLabelDisplay:F,value:typeof W=="function"?W(y(Ue),ot):W,index:ot,open:U===ot||ie===ot||F==="on",disabled:h},...Pe,children:m.jsx(ve,{"data-index":ot,...gt,className:ce(Me.thumb,gt.className,ie===ot&&Me.active,ne===ot&&Me.focusVisible),style:{...It,...Ae(ot),...gt.style},children:m.jsx(X,{"data-index":ot,"aria-label":v?v(ot):s,"aria-valuenow":y(Ue),"aria-labelledby":l,"aria-valuetext":w?w(y(Ue),ot):a,value:ae[ot],...xt})})},ot)})]})});process.env.NODE_ENV!=="production"&&(Gh.propTypes={"aria-label":Rt(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":o.string,"aria-valuetext":Rt(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Mark:o.elementType,MarkLabel:o.elementType,Rail:o.elementType,Root:o.elementType,Thumb:o.elementType,Track:o.elementType,ValueLabel:o.elementType}),componentsProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),defaultValue:o.oneOfType([o.arrayOf(o.number),o.number]),disabled:o.bool,disableSwap:o.bool,getAriaLabel:o.func,getAriaValueText:o.func,marks:o.oneOfType([o.arrayOf(o.shape({label:o.node,value:o.number.isRequired})),o.bool]),max:o.number,min:o.number,name:o.string,onChange:o.func,onChangeCommitted:o.func,orientation:o.oneOf(["horizontal","vertical"]),scale:o.func,shiftStep:o.number,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),slots:o.shape({input:o.elementType,mark:o.elementType,markLabel:o.elementType,rail:o.elementType,root:o.elementType,thumb:o.elementType,track:o.elementType,valueLabel:o.elementType}),step:o.number,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,track:o.oneOf(["inverted","normal",!1]),value:o.oneOfType([o.arrayOf(o.number),o.number]),valueLabelDisplay:o.oneOf(["auto","off","on"]),valueLabelFormat:o.oneOfType([o.func,o.string])});const GP=B(Gh)(({theme:e})=>({height:6,"& .MuiSlider-track":{border:"none",borderRadius:3},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:"#fff",border:"2px solid currentColor","&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"inherit"},"&::before":{display:"none"},boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},"& .MuiSlider-valueLabel":{lineHeight:1.2,fontSize:12,background:"unset",padding:0,width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:e.palette.primary.main,transformOrigin:"bottom left",transform:"translate(50%, -100%) rotate(-45deg) scale(0)","&::before":{display:"none"},"&.MuiSlider-valueLabelOpen":{transform:"translate(50%, -100%) rotate(-45deg) scale(1)"},"& > *":{transform:"rotate(45deg)"}},"& .MuiSlider-mark":{backgroundColor:"#bfbfbf",height:8,width:1,"&.MuiSlider-markActive":{opacity:1,backgroundColor:"currentColor"}}})),Kh=({etiqueta:e,textoAyuda:t,valor:n,minimo:r=0,maximo:i=100,paso:s=1,marcas:a,mostrarEtiquetaValor:l="auto",orientacion:c="horizontal",color:u="primario",alCambiar:d,tamano:p,className:f,sx:b,...g})=>{const h=C=>C==="primario"?"primary":C==="secundario"?"secondary":C==="exito"?"success":C==="error"?"error":C==="info"?"info":C==="advertencia"?"warning":"primary",v=C=>C==="siempre"?"on":C==="nunca"?"off":"auto",w=c==="vertical"?{height:300}:{};return m.jsxs(qe,{sx:{width:"100%",...w,...b},className:f,children:[e&&m.jsx(at,{gutterBottom:!0,variant:"subtitle2",sx:{fontWeight:600,mb:1},children:e}),m.jsx(GP,{value:n,min:r,max:i,step:s,marks:a,valueLabelDisplay:v(l),orientation:c,color:h(u),onChange:d,size:p,...g}),t&&m.jsx(at,{variant:"caption",color:"text.secondary",sx:{mt:.5,display:"block"},children:t})]})},KP=Kh;function YP(e){return Ee("MuiSwitch",e)}const Nt=Re("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),XP=e=>{const{classes:t,edge:n,size:r,color:i,checked:s,disabled:a}=e,l={root:["root",n&&`edge${z(n)}`,`size${z(r)}`],switchBase:["switchBase",`color${z(i)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=ke(l,YP,t);return{...t,...c}},ZP=B("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${z(n.edge)}`],t[`size${z(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Nt.thumb}`]:{width:16,height:16},[`& .${Nt.switchBase}`]:{padding:4,[`&.${Nt.checked}`]:{transform:"translateX(16px)"}}}}]}),JP=B(Ns,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Nt.input}`]:t.input},n.color!=="default"&&t[`color${z(n.color)}`]]}})(ye(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Nt.checked}`]:{transform:"translateX(20px)"},[`&.${Nt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Nt.checked} + .${Nt.track}`]:{opacity:.5},[`&.${Nt.disabled} + .${Nt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Nt.input}`]:{left:"-100%",width:"300%"}})),ye(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Ke(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Nt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${Nt.checked} + .${Nt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),QP=B("span",{name:"MuiSwitch",slot:"Track"})(ye(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),eO=B("span",{name:"MuiSwitch",slot:"Thumb"})(ye(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Yh=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSwitch"}),{className:i,color:s="primary",edge:a=!1,size:l="medium",sx:c,slots:u={},slotProps:d={},...p}=r,f={...r,color:s,edge:a,size:l},b=XP(f),g={slots:u,slotProps:d},[h,v]=we("root",{className:ce(b.root,i),elementType:ZP,externalForwardedProps:g,ownerState:f,additionalProps:{sx:c}}),[w,C]=we("thumb",{className:b.thumb,elementType:eO,externalForwardedProps:g,ownerState:f}),S=m.jsx(w,{...C}),[x,T]=we("track",{className:b.track,elementType:QP,externalForwardedProps:g,ownerState:f});return m.jsxs(h,{...v,children:[m.jsx(JP,{type:"checkbox",icon:S,checkedIcon:S,ref:n,ownerState:f,...p,classes:{...b,root:b.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...d.switchBase&&{root:typeof d.switchBase=="function"?d.switchBase(f):d.switchBase},input:{role:"switch"},...d.input&&{input:typeof d.input=="function"?d.input(f):d.input}}}),m.jsx(x,{...T})]})});process.env.NODE_ENV!=="production"&&(Yh.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node,id:o.string,inputProps:o.object,inputRef:Bt,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),switchBase:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType,switchBase:o.elementType,thumb:o.elementType,track:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const tO=B(Yh)(({theme:e})=>({width:44,height:24,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:22}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(20px)",color:"#fff","& + .MuiSwitch-track":{opacity:1}}},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorPrimary + .MuiSwitch-track":{backgroundColor:e.palette.primary.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorSecondary + .MuiSwitch-track":{backgroundColor:e.palette.secondary.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorSuccess + .MuiSwitch-track":{backgroundColor:e.palette.success.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorError + .MuiSwitch-track":{backgroundColor:e.palette.error.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorWarning + .MuiSwitch-track":{backgroundColor:e.palette.warning.main},"& .MuiSwitch-switchBase.Mui-checked.MuiSwitch-colorInfo + .MuiSwitch-track":{backgroundColor:e.palette.info.main},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgba(0,0,0,0.2)",width:20,height:20,borderRadius:10,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:24/2,opacity:1,backgroundColor:e.palette.mode==="dark"?"rgba(255,255,255,.35)":"rgba(0,0,0,.25)",boxSizing:"border-box"}})),Xh=({etiqueta:e,posicionEtiqueta:t="fin",tamano:n="mediano",seleccionado:r,porDefectoSeleccionado:i,alCambiar:s,color:a="primario",deshabilitado:l,error:c,mensajeError:u,sx:d,className:p,...f})=>{const b=w=>w==="primario"?"primary":w==="secundario"?"secondary":w==="exito"?"success":w==="error"?"error":w==="advertencia"?"warning":w==="info"?"info":"primary",g=w=>w==="pequeno"?"small":"medium",h=w=>w==="inicio"?"start":w==="fin"?"end":w==="arriba"?"top":w==="abajo"?"bottom":"end",v=m.jsx(tO,{checked:r,defaultChecked:i,onChange:s,disabled:l,size:g(n),color:b(a),disableRipple:!0,sx:{...c&&{"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:w=>w.palette.error.main}},...d},className:p,...f});return e?m.jsxs(qe,{sx:{display:"inline-flex",flexDirection:"column"},children:[m.jsx(Ls,{control:v,label:e,labelPlacement:h(t),sx:{margin:0,gap:1,"& .MuiTypography-root":{fontSize:n==="pequeno"?"0.875rem":"1rem",fontWeight:500,color:l?"text.disabled":c?"error.main":"text.primary"}}}),c&&u&&m.jsx(qe,{sx:{color:"error.main",fontSize:"0.75rem",mt:.5,ml:t==="inicio"?0:1},children:u})]}):v},nO=Xh,oO=B(nr)(({theme:e})=>({"& .MuiOutlinedInput-root":{borderRadius:12,transition:"background-color 0.2s, border-color 0.2s, box-shadow 0.2s",backgroundColor:e.palette.mode==="dark"?fe.alpha(e.palette.common.white,.03):fe.alpha(e.palette.common.black,.01),"& fieldset":{borderColor:e.palette.mode==="dark"?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.12)",transition:"border-color 0.2s, border-width 0.2s, box-shadow 0.2s"},"&:hover":{backgroundColor:e.palette.mode==="dark"?fe.alpha(e.palette.common.white,.05):fe.alpha(e.palette.common.black,.02)},"&:hover fieldset":{borderColor:e.palette.primary.main,borderWidth:1},"&.Mui-focused":{backgroundColor:e.palette.mode==="dark"?fe.alpha(e.palette.primary.main,.05):fe.alpha(e.palette.primary.main,.02)},"&.Mui-focused fieldset":{borderWidth:2,borderColor:e.palette.primary.main,boxShadow:`0 0 0 4px ${fe.alpha(e.palette.primary.main,.1)}`},"&.Mui-error fieldset":{borderColor:e.palette.error.main},"&.Mui-error.Mui-focused":{backgroundColor:e.palette.mode==="dark"?fe.alpha(e.palette.error.main,.05):fe.alpha(e.palette.error.main,.02)},"&.Mui-error.Mui-focused fieldset":{borderColor:e.palette.error.main,boxShadow:`0 0 0 4px ${fe.alpha(e.palette.error.main,.1)}`}},"& .MuiInputBase-input":{padding:"12px 14px",fontWeight:500,"&::placeholder":{opacity:.6}},"& .MuiInputLabel-root":{fontSize:"0.95rem",color:e.palette.text.secondary,"&.Mui-focused":{color:e.palette.primary.main,fontWeight:600},"&.Mui-error":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{marginLeft:14,fontSize:"0.75rem",marginTop:4}})),Zh=({etiqueta:e,textoAyuda:t,valor:n,alCambiar:r,deshabilitado:i,soloLectura:s,error:a,mensajeError:l,multilinea:c,filas:u,filasMinimas:d,filasMaximas:p,marcador:f,anchoCompleto:b,tipo:g,iconoInicio:h,iconoFin:v,alEnfocar:w,alDesenfocar:C,InputProps:S,sx:x,...T})=>{const P=a&&l?l:t;return m.jsx(oO,{variant:"outlined",label:e,helperText:P,value:n,onChange:r,disabled:i,error:a,multiline:c,rows:u,minRows:d,maxRows:p,placeholder:f,fullWidth:b,type:g,onFocus:w,onBlur:C,sx:{my:1,...x},InputProps:{readOnly:s,startAdornment:h?m.jsx(vo,{position:"start",children:h}):void 0,endAdornment:v?m.jsx(vo,{position:"end",children:v}):void 0,...S},...T})},rO=Zh;function iO(e){return Ee("MuiCardHeader",e)}const Zi=Re("MuiCardHeader",["root","avatar","action","content","title","subheader"]),sO=e=>{const{classes:t}=e;return ke({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},iO,t)},aO=B("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Zi.title}`]:t.title},{[`& .${Zi.subheader}`]:t.subheader},t.root]})({display:"flex",alignItems:"center",padding:16}),lO=B("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),cO=B("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),uO=B("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${zi.root}:where(& .${Zi.title})`]:{display:"block"},[`.${zi.root}:where(& .${Zi.subheader})`]:{display:"block"}}),Jh=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiCardHeader"}),{action:i,avatar:s,component:a="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:p,slots:f={},slotProps:b={},...g}=r,h={...r,component:a,disableTypography:l},v=sO(h),w={slots:f,slotProps:{title:p,subheader:u,...b}};let C=d;const[S,x]=we("title",{className:v.title,elementType:at,externalForwardedProps:w,ownerState:h,additionalProps:{variant:s?"body2":"h5",component:"span"}});C!=null&&C.type!==at&&!l&&(C=m.jsx(S,{...x,children:C}));let T=c;const[P,j]=we("subheader",{className:v.subheader,elementType:at,externalForwardedProps:w,ownerState:h,additionalProps:{variant:s?"body2":"body1",color:"textSecondary",component:"span"}});T!=null&&T.type!==at&&!l&&(T=m.jsx(P,{...j,children:T}));const[R,k]=we("root",{ref:n,className:v.root,elementType:aO,externalForwardedProps:{...w,...g,component:a},ownerState:h}),[I,A]=we("avatar",{className:v.avatar,elementType:lO,externalForwardedProps:w,ownerState:h}),[y,N]=we("content",{className:v.content,elementType:uO,externalForwardedProps:w,ownerState:h}),[M,L]=we("action",{className:v.action,elementType:cO,externalForwardedProps:w,ownerState:h});return m.jsxs(R,{...k,children:[s&&m.jsx(I,{...A,children:s}),m.jsxs(y,{...N,children:[C,T]}),i&&m.jsx(M,{...L,children:i})]})});process.env.NODE_ENV!=="production"&&(Jh.propTypes={action:o.node,avatar:o.node,children:o.node,classes:o.object,component:o.elementType,disableTypography:o.bool,slotProps:o.shape({action:o.oneOfType([o.func,o.object]),avatar:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),subheader:o.oneOfType([o.func,o.object]),title:o.oneOfType([o.func,o.object])}),slots:o.shape({action:o.elementType,avatar:o.elementType,content:o.elementType,root:o.elementType,subheader:o.elementType,title:o.elementType}),subheader:o.node,subheaderTypographyProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,titleTypographyProps:o.object});function dO(e){return Ee("MuiListItem",e)}Re("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function pO(e){return Ee("MuiListItemButton",e)}const jo=Re("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),fO=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},hO=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:s,divider:a,selected:l}=e,u=ke({root:["root",r&&"dense",!s&&"gutters",a&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},pO,n);return{...n,...u}},mO=B(kn,{shouldForwardProp:e=>kt(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:fO})(ye(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${jo.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${jo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${jo.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${jo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${jo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Qh=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:s=!1,component:a="div",children:l,dense:c=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:p,selected:f=!1,className:b,...g}=r,h=O.useContext(en),v=O.useMemo(()=>({dense:c||h.dense||!1,alignItems:i,disableGutters:u}),[i,h.dense,c,u]),w=O.useRef(null);nn(()=>{s&&(w.current?w.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[s]);const C={...r,alignItems:i,dense:v.dense,disableGutters:u,divider:d,selected:f},S=hO(C),x=it(w,n);return m.jsx(en.Provider,{value:v,children:m.jsx(mO,{ref:x,href:g.href||g.to,component:(g.href||g.to)&&a==="div"?"button":a,focusVisibleClassName:ce(S.focusVisible,p),ownerState:C,className:ce(S.root,b),...g,classes:S,children:l})})});process.env.NODE_ENV!=="production"&&(Qh.propTypes={alignItems:o.oneOf(["center","flex-start"]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,href:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function gO(e){return Ee("MuiListItemSecondaryAction",e)}Re("MuiListItemSecondaryAction",["root","disableGutters"]);const bO=e=>{const{disableGutters:t,classes:n}=e;return ke({root:["root",t&&"disableGutters"]},gO,n)},yO=B("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),mc=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...s}=r,a=O.useContext(en),l={...r,disableGutters:a.disableGutters},c=bO(l);return m.jsx(yO,{className:ce(c.root,i),ownerState:l,ref:n,...s})});process.env.NODE_ENV!=="production"&&(mc.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});mc.muiName="ListItemSecondaryAction";const vO=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},xO=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:s,divider:a,hasSecondaryAction:l}=e;return ke({root:["root",r&&"dense",!i&&"gutters",!s&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},dO,n)},wO=B("div",{name:"MuiListItem",slot:"Root",overridesResolver:vO})(ye(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${jo.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),CO=B("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),em=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiListItem"}),{alignItems:i="center",children:s,className:a,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p,...f}={},dense:b=!1,disableGutters:g=!1,disablePadding:h=!1,divider:v=!1,secondaryAction:w,slotProps:C={},slots:S={},...x}=r,T=O.useContext(en),P=O.useMemo(()=>({dense:b||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,b,g]),j=O.useRef(null),R=O.Children.toArray(s),k=R.length&&Rr(R[R.length-1],["ListItemSecondaryAction"]),I={...r,alignItems:i,dense:P.dense,disableGutters:g,disablePadding:h,divider:v,hasSecondaryAction:k},A=xO(I),y=it(j,n),N={slots:S,slotProps:C},[M,L]=we("secondaryAction",{elementType:mc,externalForwardedProps:N,ownerState:I,className:A.secondaryAction}),E=S.root||c.Root||wO,V=C.root||u.root||{},F={className:ce(A.root,V.className,a),...x};let W=l||"li";return k?(W=!F.component&&!l?"div":W,d==="li"&&(W==="li"?W="div":F.component==="li"&&(F.component="div")),m.jsx(en.Provider,{value:P,children:m.jsxs(CO,{as:d,className:ce(A.container,p),ref:y,ownerState:I,...f,children:[m.jsx(E,{...V,...!vn(E)&&{as:W,ownerState:{...I,...V.ownerState}},...F,children:R}),R.pop()]})})):m.jsx(en.Provider,{value:P,children:m.jsxs(E,{...V,as:W,ref:y,...!vn(E)&&{ownerState:{...I,...V.ownerState}},...F,children:[R,w&&m.jsx(M,{...L,children:w})]})})});process.env.NODE_ENV!=="production"&&(em.propTypes={alignItems:o.oneOf(["center","flex-start"]),children:Rt(o.node,e=>{const t=O.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const i=t[r];if(Rr(i,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),ContainerComponent:Yr,ContainerProps:o.object,dense:o.bool,disableGutters:o.bool,disablePadding:o.bool,divider:o.bool,secondaryAction:o.node,slotProps:o.shape({root:o.object,secondaryAction:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,secondaryAction:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const tl=fe.createStack({createStyledComponent:B("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Ie({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(tl.propTypes={children:o.node,component:o.elementType,direction:o.oneOfType([o.oneOf(["column-reverse","column","row-reverse","row"]),o.arrayOf(o.oneOf(["column-reverse","column","row-reverse","row"])),o.object]),divider:o.node,spacing:o.oneOfType([o.arrayOf(o.oneOfType([o.number,o.string])),o.number,o.object,o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),useFlexGap:o.bool});const SO=dt(m.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"}),"ArrowForwardRounded"),TO=dt(m.jsx("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1"}),"ArrowBackRounded"),PO=B(Hl)(({theme:e})=>({borderRadius:16,border:`1px solid ${e.palette.divider}`,boxShadow:e.shadows[1],overflow:"hidden",height:"100%",display:"flex",flexDirection:"column",flex:1,transition:"box-shadow 0.3s ease, border-color 0.3s ease","&:hover":{boxShadow:e.shadows[4],borderColor:e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[700]}})),OO=B(Jh)(({theme:e})=>({padding:e.spacing(2),backgroundColor:e.palette.mode==="light"?e.palette.grey[50]:fe.alpha(e.palette.common.white,.05),borderBottom:`1px solid ${e.palette.divider}`,"& .MuiCardHeader-title":{fontSize:"1rem",fontWeight:700,color:e.palette.text.primary},"& .MuiCardHeader-subheader":{fontSize:"0.875rem",marginTop:2}})),EO=B(qe)(({theme:e})=>({width:"100%",height:"100%",backgroundColor:e.palette.background.paper,overflow:"auto","&::-webkit-scrollbar":{width:6},"&::-webkit-scrollbar-thumb":{backgroundColor:e.palette.action.hover,borderRadius:3},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"}})),Od=B(Bl)(({theme:e})=>({borderRadius:12,minWidth:44,height:44,border:`1px solid ${e.palette.divider}`,color:e.palette.text.secondary,backgroundColor:e.palette.background.paper,transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{backgroundColor:e.palette.primary.main,borderColor:"transparent",color:e.palette.common.white,boxShadow:e.shadows[4],transform:"translateY(-2px) scale(1.05)"},"&.Mui-disabled":{border:`1px solid ${e.palette.action.disabledBackground}`,backgroundColor:"transparent",transform:"none",boxShadow:"none"}})),RO=B(nr)(({theme:e})=>({"& .MuiOutlinedInput-root":{borderRadius:0,border:"none",backgroundColor:"transparent","& fieldset":{border:"none"},"&.Mui-focused":{boxShadow:"none"}},"& .MuiInputBase-input":{padding:e.spacing(1.5,2),fontSize:"0.875rem"}}));function $o(e,t){return e.filter(n=>t.indexOf(n)===-1)}function fa(e,t){return e.filter(n=>t.indexOf(n)!==-1)}function kO(e,t){return[...e,...$o(t,e)]}const tm=({izquierda:e=[],derecha:t=[],alCambiar:n,tituloIzquierda:r="Opciones",tituloDerecha:i="Elegidos",alto:s=320,buscable:a=!1,deshabilitado:l=!1})=>{const[c,u]=H.useState([]),[d,p]=H.useState(""),[f,b]=H.useState(""),g=fa(c,e),h=fa(c,t),v=H.useMemo(()=>!a||!d?e:e.filter(R=>R.etiqueta.toLowerCase().includes(d.toLowerCase())),[e,d,a]),w=H.useMemo(()=>!a||!f?t:t.filter(R=>R.etiqueta.toLowerCase().includes(f.toLowerCase())),[t,f,a]),C=R=>()=>{if(l||R.deshabilitado)return;const k=c.indexOf(R),I=[...c];k===-1?I.push(R):I.splice(k,1),u(I)},S=R=>fa(c,R).length,x=R=>()=>{if(l)return;const k=R.filter(I=>!I.deshabilitado);S(k)===k.length&&k.length!==0?u($o(c,k)):u(kO(c,k))},T=()=>{n&&(n($o(e,g),t.concat(g)),u($o(c,g)))},P=()=>{n&&(n(e.concat(h),$o(t,h)),u($o(c,h)))},j=(R,k,I,A)=>{const y=k.filter(L=>!L.deshabilitado),N=S(y)===y.length&&y.length!==0,M=S(y)!==y.length&&S(y)!==0;return m.jsxs(PO,{children:[m.jsx(OO,{avatar:m.jsx(Yi,{onClick:x(k),checked:N,indeterminate:M,disabled:y.length===0||l,inputProps:{"aria-label":"todos los elementos seleccionados"},size:"small",sx:{color:"text.secondary","&.Mui-checked":{color:"primary.main"}}}),title:R,subheader:m.jsxs(at,{variant:"caption",color:"text.secondary",sx:{fontWeight:500},children:[S(k)," seleccionados"]})}),a&&m.jsxs(m.Fragment,{children:[m.jsx(Fr,{}),m.jsx(RO,{placeholder:"Buscar...",fullWidth:!0,disabled:l,value:I,onChange:L=>A(L.target.value),InputProps:{startAdornment:m.jsx(vo,{position:"start",children:m.jsx(Wh,{color:"action",fontSize:"small"})})}}),m.jsx(Fr,{})]}),m.jsx(EO,{sx:{height:s},children:m.jsxs(ac,{dense:!0,component:"div",role:"list",sx:{py:1},children:[k.length===0&&m.jsx(qe,{sx:{p:4,textAlign:"center",opacity:.5},children:m.jsx(at,{variant:"caption",children:"No hay elementos"})}),k.map(L=>{const E=`transfer-list-all-item-${L.id}-label`,V=c.indexOf(L)!==-1,F=l||L.deshabilitado;return m.jsx(em,{disablePadding:!0,sx:{mb:.5,px:1},children:m.jsxs(Qh,{role:"listitem",onClick:C(L),disabled:F,selected:V,sx:{borderRadius:2,transition:"all 0.2s","&:hover":{backgroundColor:W=>F?void 0:fe.alpha(W.palette.primary.main,.08)},"&.Mui-selected":{backgroundColor:W=>fe.alpha(W.palette.primary.main,.12),"&:hover":{backgroundColor:W=>fe.alpha(W.palette.primary.main,.16)}}},children:[m.jsx(Fh,{sx:{minWidth:40},children:m.jsx(Yi,{checked:V,tabIndex:-1,disableRipple:!0,disabled:F,inputProps:{"aria-labelledby":E},size:"small",edge:"start"})}),m.jsx(zh,{id:E,primary:L.etiqueta,primaryTypographyProps:{fontWeight:V?600:400,color:V&&!F?"primary.main":"text.primary"}})]})},L.id)})]})})]})};return m.jsxs(tl,{direction:{xs:"column",md:"row"},spacing:3,justifyContent:"center",alignItems:"center",children:[m.jsx(qe,{sx:{width:{xs:"100%",md:"42%"}},children:j(r,v,d,p)}),m.jsx(qe,{children:m.jsxs(tl,{direction:"column",spacing:2,children:[m.jsx(Od,{onClick:T,disabled:g.length===0||l,"aria-label":"mover seleccionados a la derecha",children:m.jsx(SO,{fontSize:"small"})}),m.jsx(Od,{onClick:P,disabled:h.length===0||l,"aria-label":"mover seleccionados a la izquierda",children:m.jsx(TO,{fontSize:"small"})})]})}),m.jsx(qe,{sx:{width:{xs:"100%",md:"42%"}},children:j(i,w,f,b)})]})},IO=tm,MO=({children:e,PaperProps:t,...n})=>{const r=Fe.useTheme();return m.jsx(Fe.Dialog,{PaperProps:{elevation:24,sx:{borderRadius:3,backgroundImage:"none",backgroundColor:r.palette.background.paper,...t?.sx},...t},...n,children:e})},AO=({sx:e,children:t,...n})=>m.jsx(Fe.DialogTitle,{sx:{fontWeight:700,fontSize:"1.25rem",pb:1,...e},...n,children:t}),jO=({sx:e,children:t,...n})=>m.jsx(Fe.DialogContent,{sx:{py:2,...e},...n,children:t}),$O=({sx:e,children:t,...n})=>m.jsx(Fe.DialogContentText,{sx:{mb:2,color:"text.secondary",...e},...n,children:t}),NO=({sx:e,children:t,...n})=>m.jsx(Fe.DialogActions,{sx:{px:3,pb:3,gap:1,...e},...n,children:t}),nm=H.createContext(void 0),om=()=>{const e=H.useContext(nm);if(e===void 0)throw new Error("useNextStep must be used within a NextStepProvider");return e},LO=({children:e})=>{const[t,n]=H.useState(null),[r,i]=H.useState(0),[s,a]=H.useState(!1),l=H.useCallback((d,p)=>{p?setTimeout(()=>{i(d),a(!0)},p):(i(d),a(!0))},[]),c=H.useCallback(()=>{a(!1),n(null)},[]),u=H.useCallback(d=>{n(d),i(0),a(!0)},[]);return m.jsx(nm.Provider,{value:{currentTour:t,currentStep:r,setCurrentStep:l,closeNextStep:c,startNextStep:u,isNextStepVisible:s},children:e})},rm=H.createContext({});function DO(e){const t=H.useRef(null);return t.current===null&&(t.current=e()),t.current}const BO=typeof window<"u",VO=BO?H.useLayoutEffect:H.useEffect,gc=H.createContext(null);function bc(e,t){e.indexOf(t)===-1&&e.push(t)}function Ji(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Tn=(e,t,n)=>n>t?t:n<e?e:n;function nl(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let or=()=>{},An=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(or=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(nl(t,n))},An=(e,t,n)=>{if(!e)throw new Error(nl(t,n))});const Kn={},im=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function sm(e){return typeof e=="object"&&e!==null}const am=e=>/^0[^.\s]+$/u.test(e);function lm(e){let t;return()=>(t===void 0&&(t=e()),t)}const tn=e=>e,FO=(e,t)=>n=>t(e(n)),ti=(...e)=>e.reduce(FO),zr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class yc{constructor(){this.subscriptions=[]}add(t){return bc(this.subscriptions,t),()=>Ji(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const a=this.subscriptions[s];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Wt=e=>e*1e3,Jt=e=>e/1e3;function cm(e,t){return t?e*(1e3/t):0}const Ed=new Set;function vc(e,t,n){e||Ed.has(t)||(console.warn(nl(t,n)),Ed.add(t))}const um=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zO=1e-7,WO=12;function _O(e,t,n,r,i){let s,a,l=0;do a=t+(n-t)/2,s=um(a,r,i)-e,s>0?n=a:t=a;while(Math.abs(s)>zO&&++l<WO);return a}function ni(e,t,n,r){if(e===t&&n===r)return tn;const i=s=>_O(s,0,1,e,n);return s=>s===0||s===1?s:um(i(s),t,r)}const dm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pm=e=>t=>1-e(1-t),fm=ni(.33,1.53,.69,.99),xc=pm(fm),hm=dm(xc),mm=e=>e>=1?1:(e*=2)<1?.5*xc(e):.5*(2-Math.pow(2,-10*(e-1))),wc=e=>1-Math.sin(Math.acos(e)),gm=pm(wc),bm=dm(wc),UO=ni(.42,0,1,1),HO=ni(0,0,.58,1),ym=ni(.42,0,.58,1),qO=e=>Array.isArray(e)&&typeof e[0]!="number",vm=e=>Array.isArray(e)&&typeof e[0]=="number",Rd={linear:tn,easeIn:UO,easeInOut:ym,easeOut:HO,circIn:wc,circInOut:bm,circOut:gm,backIn:xc,backInOut:hm,backOut:fm,anticipate:mm},GO=e=>typeof e=="string",kd=e=>{if(vm(e)){An(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return ni(t,n,r,i)}else if(GO(e))return An(Rd[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Rd[e];return e},xi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function KO(e,t){let n=new Set,r=new Set,i=!1,s=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){a.has(d)&&(u.schedule(d),e()),d(l)}const u={schedule:(d,p=!1,f=!1)=>{const g=f&&i?n:r;return p&&a.add(d),g.add(d),d},cancel:d=>{r.delete(d),a.delete(d)},process:d=>{if(l=d,i){s=!0;return}i=!0;const p=n;n=r,r=p,n.forEach(c),n.clear(),i=!1,s&&(s=!1,u.process(d))}};return u}const YO=40;function xm(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=xi.reduce((S,x)=>(S[x]=KO(s),S),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:p,preRender:f,render:b,postRender:g}=a,h=()=>{const S=Kn.useManualTiming,x=S?i.timestamp:performance.now();n=!1,S||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,YO),1)),i.timestamp=x,i.isProcessing=!0,l.process(i),c.process(i),u.process(i),d.process(i),p.process(i),f.process(i),b.process(i),g.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},v=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:xi.reduce((S,x)=>{const T=a[x];return S[x]=(P,j=!1,R=!1)=>(n||v(),T.schedule(P,j,R)),S},{}),cancel:S=>{for(let x=0;x<xi.length;x++)a[xi[x]].cancel(S)},state:i,steps:a}}const{schedule:rt,cancel:Yn,state:Ot,steps:ha}=xm(typeof requestAnimationFrame<"u"?requestAnimationFrame:tn,!0);let Oi;function XO(){Oi=void 0}const Lt={now:()=>(Oi===void 0&&Lt.set(Ot.isProcessing||Kn.useManualTiming?Ot.timestamp:performance.now()),Oi),set:e=>{Oi=e,queueMicrotask(XO)}},wm=e=>t=>typeof t=="string"&&t.startsWith(e),Cm=wm("--"),ZO=wm("var(--"),Cc=e=>ZO(e)?JO.test(e.split("/*")[0].trim()):!1,JO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Id(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const rr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wr={...rr,transform:e=>Tn(0,1,e)},wi={...rr,default:1},jr=e=>Math.round(e*1e5)/1e5,Sc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function QO(e){return e==null}const eE=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Tc=(e,t)=>n=>!!(typeof n=="string"&&eE.test(n)&&n.startsWith(e)||t&&!QO(n)&&Object.prototype.hasOwnProperty.call(n,t)),Sm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,a,l]=r.match(Sc);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},tE=e=>Tn(0,255,e),ma={...rr,transform:e=>Math.round(tE(e))},uo={test:Tc("rgb","red"),parse:Sm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ma.transform(e)+", "+ma.transform(t)+", "+ma.transform(n)+", "+jr(Wr.transform(r))+")"};function nE(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const ol={test:Tc("#"),parse:nE,transform:uo.transform},oi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vn=oi("deg"),wn=oi("%"),Oe=oi("px"),oE=oi("vh"),rE=oi("vw"),Md={...wn,parse:e=>wn.parse(e)/100,transform:e=>wn.transform(e*100)},Bo={test:Tc("hsl","hue"),parse:Sm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+wn.transform(jr(t))+", "+wn.transform(jr(n))+", "+jr(Wr.transform(r))+")"},yt={test:e=>uo.test(e)||ol.test(e)||Bo.test(e),parse:e=>uo.test(e)?uo.parse(e):Bo.test(e)?Bo.parse(e):ol.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?uo.transform(e):Bo.transform(e),getAnimatableNone:e=>{const t=yt.parse(e);return t.alpha=0,yt.transform(t)}},iE=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function sE(e){return isNaN(e)&&typeof e=="string"&&(e.match(Sc)?.length||0)+(e.match(iE)?.length||0)>0}const Tm="number",Pm="color",aE="var",lE="var(",Ad="${}",cE=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Qo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const l=t.replace(cE,c=>(yt.test(c)?(r.color.push(s),i.push(Pm),n.push(yt.parse(c))):c.startsWith(lE)?(r.var.push(s),i.push(aE),n.push(c)):(r.number.push(s),i.push(Tm),n.push(parseFloat(c))),++s,Ad)).split(Ad);return{values:n,split:l,indexes:r,types:i}}function uE(e){return Qo(e).values}function Om({split:e,types:t}){const n=e.length;return r=>{let i="";for(let s=0;s<n;s++)if(i+=e[s],r[s]!==void 0){const a=t[s];a===Tm?i+=jr(r[s]):a===Pm?i+=yt.transform(r[s]):i+=r[s]}return i}}function dE(e){return Om(Qo(e))}const pE=e=>typeof e=="number"?0:yt.test(e)?yt.getAnimatableNone(e):e,fE=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:pE(e);function hE(e){const t=Qo(e);return Om(t)(t.values.map((r,i)=>fE(r,t.split[i])))}const un={test:sE,parse:uE,createTransformer:dE,getAnimatableNone:hE};function ga(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mE({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,a=0;if(!t)i=s=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=ga(c,l,e+1/3),s=ga(c,l,e),a=ga(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:r}}function Qi(e,t){return n=>n>0?t:e}const st=(e,t,n)=>e+(t-e)*n,ba=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},gE=[ol,uo,Bo],bE=e=>gE.find(t=>t.test(e));function jd(e){const t=bE(e);if(or(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Bo&&(n=mE(n)),n}const $d=(e,t)=>{const n=jd(e),r=jd(t);if(!n||!r)return Qi(e,t);const i={...n};return s=>(i.red=ba(n.red,r.red,s),i.green=ba(n.green,r.green,s),i.blue=ba(n.blue,r.blue,s),i.alpha=st(n.alpha,r.alpha,s),uo.transform(i))},rl=new Set(["none","hidden"]);function yE(e,t){return rl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vE(e,t){return n=>st(e,t,n)}function Pc(e){return typeof e=="number"?vE:typeof e=="string"?Cc(e)?Qi:yt.test(e)?$d:CE:Array.isArray(e)?Em:typeof e=="object"?yt.test(e)?$d:xE:Qi}function Em(e,t){const n=[...e],r=n.length,i=e.map((s,a)=>Pc(s)(s,t[a]));return s=>{for(let a=0;a<r;a++)n[a]=i[a](s);return n}}function xE(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Pc(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function wE(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],a=e.indexes[s][r[s]],l=e.values[a]??0;n[i]=l,r[s]++}return n}const CE=(e,t)=>{const n=un.createTransformer(t),r=Qo(e),i=Qo(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?rl.has(e)&&!i.values.length||rl.has(t)&&!r.values.length?yE(e,t):ti(Em(wE(r,i),i.values),n):(or(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Qi(e,t))};function Rm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?st(e,t,n):Pc(e)(e,t)}const SE=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>rt.update(t,n),stop:()=>Yn(t),now:()=>Ot.isProcessing?Ot.timestamp:Lt.now()}},km=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=Math.round(e(s/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},es=2e4;function Oc(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<es;)t+=n,r=e.next(t);return t>=es?1/0:t}function TE(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(Oc(r),es);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:Jt(i)}}const ut={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function il(e,t){return e*Math.sqrt(1-t*t)}const PE=12;function OE(e,t,n){let r=n;for(let i=1;i<PE;i++)r=r-e(r)/t(r);return r}const ya=.001;function EE({duration:e=ut.duration,bounce:t=ut.bounce,velocity:n=ut.velocity,mass:r=ut.mass}){let i,s;or(e<=Wt(ut.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Tn(ut.minDamping,ut.maxDamping,a),e=Tn(ut.minDuration,ut.maxDuration,Jt(e)),a<1?(i=u=>{const d=u*a,p=d*e,f=d-n,b=il(u,a),g=Math.exp(-p);return ya-f/b*g},s=u=>{const p=u*a*e,f=p*n+n,b=Math.pow(a,2)*Math.pow(u,2)*e,g=Math.exp(-p),h=il(Math.pow(u,2),a);return(-i(u)+ya>0?-1:1)*((f-b)*g)/h}):(i=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-ya+d*p},s=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const l=5/e,c=OE(i,s,l);if(e=Wt(e),isNaN(c))return{stiffness:ut.stiffness,damping:ut.damping,duration:e};{const u=Math.pow(c,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const RE=["duration","bounce"],kE=["stiffness","damping","mass"];function Nd(e,t){return t.some(n=>e[n]!==void 0)}function IE(e){let t={velocity:ut.velocity,stiffness:ut.stiffness,damping:ut.damping,mass:ut.mass,isResolvedFromDuration:!1,...e};if(!Nd(e,kE)&&Nd(e,RE))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Tn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ut.mass,stiffness:i,damping:s}}else{const n=EE({...e,velocity:0});t={...t,...n,mass:ut.mass},t.isResolvedFromDuration=!0}return t}function ts(e=ut.visualDuration,t=ut.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:c,damping:u,mass:d,duration:p,velocity:f,isResolvedFromDuration:b}=IE({...n,velocity:-Jt(n.velocity||0)}),g=f||0,h=u/(2*Math.sqrt(c*d)),v=a-s,w=Jt(Math.sqrt(c/d)),C=Math.abs(v)<5;r||(r=C?ut.restSpeed.granular:ut.restSpeed.default),i||(i=C?ut.restDelta.granular:ut.restDelta.default);let S,x,T,P,j,R;if(h<1)T=il(w,h),P=(g+h*w*v)/T,S=I=>{const A=Math.exp(-h*w*I);return a-A*(P*Math.sin(T*I)+v*Math.cos(T*I))},j=h*w*P+v*T,R=h*w*v-P*T,x=I=>Math.exp(-h*w*I)*(j*Math.sin(T*I)+R*Math.cos(T*I));else if(h===1){S=A=>a-Math.exp(-w*A)*(v+(g+w*v)*A);const I=g+w*v;x=A=>Math.exp(-w*A)*(w*I*A-g)}else{const I=w*Math.sqrt(h*h-1);S=M=>{const L=Math.exp(-h*w*M),E=Math.min(I*M,300);return a-L*((g+h*w*v)*Math.sinh(E)+I*v*Math.cosh(E))/I};const A=(g+h*w*v)/I,y=h*w*A-v*I,N=h*w*v-A*I;x=M=>{const L=Math.exp(-h*w*M),E=Math.min(I*M,300);return L*(y*Math.sinh(E)+N*Math.cosh(E))}}const k={calculatedDuration:b&&p||null,velocity:I=>Wt(x(I)),next:I=>{if(!b&&h<1){const y=Math.exp(-h*w*I),N=Math.sin(T*I),M=Math.cos(T*I),L=a-y*(P*N+v*M),E=Wt(y*(j*N+R*M));return l.done=Math.abs(E)<=r&&Math.abs(a-L)<=i,l.value=l.done?a:L,l}const A=S(I);if(b)l.done=I>=p;else{const y=Wt(x(I));l.done=Math.abs(y)<=r&&Math.abs(a-A)<=i}return l.value=l.done?a:A,l},toString:()=>{const I=Math.min(Oc(k),es),A=km(y=>k.next(I*y).value,I,30);return I+"ms "+A},toTransition:()=>{}};return k}ts.applyToOptions=e=>{const t=TE(e,100,ts);return e.ease=t.ease,e.duration=Wt(t.duration),e.type="keyframes",e};const ME=5;function Im(e,t,n){const r=Math.max(t-ME,0);return cm(n-e(r),t-r)}function sl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const p=e[0],f={done:!1,value:p},b=R=>l!==void 0&&R<l||c!==void 0&&R>c,g=R=>l===void 0?c:c===void 0||Math.abs(l-R)<Math.abs(c-R)?l:c;let h=n*t;const v=p+h,w=a===void 0?v:a(v);w!==v&&(h=w-p);const C=R=>-h*Math.exp(-R/r),S=R=>w+C(R),x=R=>{const k=C(R),I=S(R);f.done=Math.abs(k)<=u,f.value=f.done?w:I};let T,P;const j=R=>{b(f.value)&&(T=R,P=ts({keyframes:[f.value,g(f.value)],velocity:Im(S,R,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:d}))};return j(0),{calculatedDuration:null,next:R=>{let k=!1;return!P&&T===void 0&&(k=!0,x(R),j(R)),T!==void 0&&R>=T?P.next(R-T):(!k&&x(R),f)}}}function AE(e,t,n){const r=[],i=n||Kn.mix||Rm,s=e.length-1;for(let a=0;a<s;a++){let l=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||tn:t;l=ti(c,l)}r.push(l)}return r}function jE(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(An(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=AE(t,r,i),c=l.length,u=d=>{if(a&&d<e[0])return t[0];let p=0;if(c>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const f=zr(e[p],e[p+1],d);return l[p](f)};return n?d=>u(Tn(e[0],e[s-1],d)):u}function $E(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=zr(0,t,r);e.push(st(n,1,i))}}function NE(e){const t=[0];return $E(t,e.length-1),t}function LE(e,t){return e.map(n=>n*t)}function DE(e,t){return e.map(()=>t||ym).splice(0,e.length-1)}function Vo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=qO(r)?r.map(kd):kd(r),s={done:!1,value:t[0]},a=LE(n&&n.length===t.length?n:NE(t),e),l=jE(a,t,{ease:Array.isArray(i)?i:DE(t,i)});return{calculatedDuration:e,next:c=>(s.value=l(c),s.done=c>=e,s)}}const BE=e=>e!==null;function Ds(e,{repeat:t,repeatType:n="loop"},r,i=1){const s=e.filter(BE),l=i<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!l||r===void 0?s[l]:r}const VE={decay:sl,inertia:sl,tween:Vo,keyframes:Vo,spring:ts};function Mm(e){typeof e.type=="string"&&(e.type=VE[e.type])}class Ec{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const FE=e=>e/100;class ns extends Ec{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Lt.now()&&this.tick(Lt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Mm(t);const{type:n=Vo,repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:a=0}=t;let{keyframes:l}=t;const c=n||Vo;process.env.NODE_ENV!=="production"&&c!==Vo&&An(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==Vo&&typeof l[0]!="number"&&(this.mixKeyframes=ti(FE,Rm(l[0],l[1])),l=[0,100]);const u=c({...t,keyframes:l});s==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=Oc(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:p,repeatType:f,repeatDelay:b,type:g,onUpdate:h,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const w=this.currentTime-u*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?w<0:w>i;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,x=r;if(p){const R=Math.min(this.currentTime,i)/l;let k=Math.floor(R),I=R%1;!I&&R>=1&&(I=1),I===1&&k--,k=Math.min(k,p+1),k%2&&(f==="reverse"?(I=1-I,b&&(I-=b/l)):f==="mirror"&&(x=a)),S=Tn(0,1,I)*l}let T;C?(this.delayState.value=d[0],T=this.delayState):T=x.next(S),s&&!C&&(T.value=s(T.value));let{done:P}=T;!C&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return j&&g!==sl&&(T.value=Ds(d,this.options,v,this.speed)),h&&h(T.value),j&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return Jt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jt(t)}get time(){return Jt(this.currentTime)}set time(t){t=Wt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Im(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Lt.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Jt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=SE,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Lt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function zE(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const po=e=>e*180/Math.PI,al=e=>{const t=po(Math.atan2(e[1],e[0]));return ll(t)},WE={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:al,rotateZ:al,skewX:e=>po(Math.atan(e[1])),skewY:e=>po(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ll=e=>(e=e%360,e<0&&(e+=360),e),Ld=al,Dd=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Bd=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),_E={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Dd,scaleY:Bd,scale:e=>(Dd(e)+Bd(e))/2,rotateX:e=>ll(po(Math.atan2(e[6],e[5]))),rotateY:e=>ll(po(Math.atan2(-e[2],e[0]))),rotateZ:Ld,rotate:Ld,skewX:e=>po(Math.atan(e[4])),skewY:e=>po(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function cl(e){return e.includes("scale")?1:0}function ul(e,t){if(!e||e==="none")return cl(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=_E,i=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=WE,i=l}if(!i)return cl(t);const s=r[t],a=i[1].split(",").map(HE);return typeof s=="function"?s(a):a[s]}const UE=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ul(n,t)};function HE(e){return parseFloat(e.trim())}const ir=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],sr=new Set(ir),Vd=e=>e===rr||e===Oe,qE=new Set(["x","y","z"]),GE=ir.filter(e=>!qE.has(e));function KE(e){const t=[];return GE.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const _n={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ul(t,"x"),y:(e,{transform:t})=>ul(t,"y")};_n.translateX=_n.x;_n.translateY=_n.y;const go=new Set;let dl=!1,pl=!1,fl=!1;function Am(){if(pl){const e=Array.from(go).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=KE(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,a])=>{r.getValue(s)?.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}pl=!1,dl=!1,go.forEach(e=>e.complete(fl)),go.clear()}function jm(){go.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(pl=!0)})}function YE(){fl=!0,jm(),Am(),fl=!1}class Rc{constructor(t,n,r,i,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(go.add(this),dl||(dl=!0,rt.read(jm),rt.resolveKeyframes(Am))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const s=i?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&s===void 0&&i.set(t[0])}zE(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),go.delete(this)}cancel(){this.state==="scheduled"&&(go.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const XE=e=>e.startsWith("--");function $m(e,t,n){XE(t)?e.style.setProperty(t,n):e.style[t]=n}const ZE={};function Nm(e,t){const n=lm(e);return()=>ZE[t]??n()}const JE=Nm(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Lm=Nm(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Pr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Fd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pr([0,.65,.55,1]),circOut:Pr([.55,0,1,.45]),backIn:Pr([.31,.01,.66,-.59]),backOut:Pr([.33,1.53,.69,.99])};function Dm(e,t){if(e)return typeof e=="function"?Lm()?km(e,t):"ease-out":vm(e)?Pr(e):Array.isArray(e)?e.map(n=>Dm(n,t)||Fd.easeOut):Fd[e]}function QE(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:a="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const p=Dm(l,i);Array.isArray(p)&&(d.easing=p);const f={delay:r,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(d,f)}function Bm(e){return typeof e=="function"&&"applyToOptions"in e}function eR({type:e,...t}){return Bm(e)&&Lm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Vm extends Ec{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,An(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=eR(t);this.animation=QE(n,r,i,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=Ds(i,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(d),$m(n,r,d),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Jt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jt(t)}get time(){return Jt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Wt(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&JE()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),tn):i(this)}}const Fm={anticipate:mm,backInOut:hm,circInOut:bm};function tR(e){return e in Fm}function nR(e){typeof e.ease=="string"&&tR(e.ease)&&(e.ease=Fm[e.ease])}const va=10;class oR extends Vm{constructor(t){nR(t),Mm(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new ns({...a,autoplay:!1}),c=Math.max(va,Lt.now()-this.startTime),u=Tn(0,va,c-va),d=l.sample(c).value,{name:p}=this.options;s&&p&&$m(s,p,d),n.setWithVelocity(l.sample(Math.max(0,c-u)).value,d,u),l.stop()}}const zd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(un.test(e)||e==="0")&&!e.startsWith("url("));function rR(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function iR(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=zd(i,t),l=zd(s,t);return or(a===l,`You are trying to animate ${t} from "${i}" to "${s}". "${a?s:i}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:rR(e)||(n==="spring"||Bm(n))&&r}function hl(e){e.duration=0,e.type="keyframes"}const zm=new Set(["opacity","clipPath","filter","transform"]),sR=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function aR(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&sR.test(e[t]))return!0;return!1}const lR=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),cR=lm(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function uR(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:a,keyframes:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=t.owner.getProps();return cR()&&n&&(zm.has(n)||lR.has(n)&&aR(l))&&(n!=="transform"||!d)&&!u&&!r&&i!=="mirror"&&s!==0&&a!=="inertia"}const dR=40;class pR extends Ec{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",keyframes:l,name:c,motionValue:u,element:d,...p}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Lt.now();const f={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:a,name:c,motionValue:u,element:d,...p},b=d?.KeyframeResolver||Rc;this.keyframeResolver=new b(l,(g,h,v)=>this.onKeyframesResolved(g,h,f,!v),c,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:s,type:a,velocity:l,delay:c,isHandoff:u,onUpdate:d}=r;this.resolvedAt=Lt.now();let p=!0;iR(t,s,a,l)||(p=!1,(Kn.instantAnimations||!c)&&d?.(Ds(t,r,n)),t[0]=t[t.length-1],hl(r),r.repeat=0);const b={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>dR?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},g=p&&!u&&uR(b),h=b.motionValue?.owner?.current;let v;if(g)try{v=new oR({...b,element:h})}catch{v=new ns(b)}else v=new ns(b);v.finished.then(()=>{this.notifyFinished()}).catch(tn),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),YE()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Wm(e,t,n,r=0,i=1){const s=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),a=e.size,l=(a-1)*r;return typeof n=="function"?n(s,a):i===1?s*r:l-s*r}const fR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hR(e){const t=fR.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const mR=4;function _m(e,t,n=1){An(n<=mR,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=hR(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const a=s.trim();return im(a)?parseFloat(a):a}return Cc(i)?_m(i,t,n+1):i}const gR={type:"spring",stiffness:500,damping:25,restSpeed:10},bR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yR={type:"keyframes",duration:.8},vR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xR=(e,{keyframes:t})=>t.length>2?yR:sr.has(e)?e.startsWith("scale")?bR(t[1]):gR:vR;function Um(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function kc(e,t){const n=e?.[t]??e?.default??e;return n!==e?Um(n,e):n}const wR=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function CR(e){for(const t in e)if(!wR.has(t))return!0;return!1}const Ic=(e,t,n,r={},i,s)=>a=>{const l=kc(r,e)||{},c=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Wt(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:i};CR(l)||Object.assign(d,xR(e,d)),d.duration&&(d.duration=Wt(d.duration)),d.repeatDelay&&(d.repeatDelay=Wt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(hl(d),d.delay===0&&(p=!0)),(Kn.instantAnimations||Kn.skipAnimations||i?.shouldSkipAnimations)&&(p=!0,hl(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,p&&!s&&t.get()!==void 0){const f=Ds(d.keyframes,l);if(f!==void 0){rt.update(()=>{d.onUpdate(f),d.onComplete()});return}}return l.isSync?new ns(d):new pR(d)};function Wd(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Mc(e,t,n,r){if(typeof t=="function"){const[i,s]=Wd(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Wd(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function bo(e,t,n){const r=e.getProps();return Mc(r,t,n!==void 0?n:r.custom,e)}const Hm=new Set(["width","height","top","left","right","bottom",...ir]),_d=30,SR=e=>!isNaN(parseFloat(e));class TR{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=Lt.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=SR(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&vc(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new yc);const r=this.events[t].add(n);return t==="change"?()=>{r(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_d)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_d);return cm(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function er(e,t){return new TR(e,t)}const ml=e=>Array.isArray(e);function PR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,er(n))}function OR(e){return ml(e)?e[e.length-1]||0:e}function ER(e,t){const n=bo(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const a in s){const l=OR(s[a]);PR(e,a,l)}}const Et=e=>!!(e&&e.getVelocity);function RR(e){return!!(Et(e)&&e.add)}function gl(e,t){const n=e.getValue("willChange");if(RR(n))return n.add(t);if(!n&&Kn.WillChange){const r=new Kn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ac(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const kR="framerAppearId",qm="data-"+Ac(kR);function Gm(e){return e.props[qm]}function IR({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Km(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s,transitionEnd:a,...l}=t;const c=e.getDefaultTransition();s=s?Um(s,c):c;const u=s?.reduceMotion;r&&(s=r);const d=[],p=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const b=e.getValue(f,e.latestValues[f]??null),g=l[f];if(g===void 0||p&&IR(p,f))continue;const h={delay:n,...kc(s||{},f)},v=b.get();if(v!==void 0&&!b.isAnimating()&&!Array.isArray(g)&&g===v&&!h.velocity){rt.update(()=>b.set(g));continue}let w=!1;if(window.MotionHandoffAnimation){const x=Gm(e);if(x){const T=window.MotionHandoffAnimation(x,f,rt);T!==null&&(h.startTime=T,w=!0)}}gl(e,f);const C=u??e.shouldReduceMotion;b.start(Ic(f,b,g,C&&Hm.has(f)?{type:!1}:h,e,w));const S=b.animation;S&&d.push(S)}if(a){const f=()=>rt.update(()=>{a&&ER(e,a)});d.length?Promise.all(d).then(f):f()}return d}function bl(e,t,n={}){const r=bo(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(Km(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:p}=i;return MR(e,t,c,u,d,p,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function MR(e,t,n=0,r=0,i=0,s=1,a){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(bl(c,t,{...a,delay:n+(typeof r=="function"?0:r)+Wm(e.variantChildren,c,r,i,s)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function AR(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>bl(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=bl(e,t,n);else{const i=typeof t=="function"?bo(e,t,n.custom):t;r=Promise.all(Km(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const jR={test:e=>e==="auto",parse:e=>e},Ym=e=>t=>t.test(e),Xm=[rr,Oe,wn,Vn,rE,oE,jR],Ud=e=>Xm.find(Ym(e));function $R(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||am(e):!0}const NR=new Set(["brightness","contrast","saturate","opacity"]);function LR(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Sc)||[];if(!r)return e;const i=n.replace(r,"");let s=NR.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const DR=/\b([a-z-]*)\(.*?\)/gu,yl={...un,getAnimatableNone:e=>{const t=e.match(DR);return t?t.map(LR).join(" "):e}},vl={...un,getAnimatableNone:e=>{const t=un.parse(e);return un.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Hd={...rr,transform:Math.round},BR={rotate:Vn,rotateX:Vn,rotateY:Vn,rotateZ:Vn,scale:wi,scaleX:wi,scaleY:wi,scaleZ:wi,skew:Vn,skewX:Vn,skewY:Vn,distance:Oe,translateX:Oe,translateY:Oe,translateZ:Oe,x:Oe,y:Oe,z:Oe,perspective:Oe,transformPerspective:Oe,opacity:Wr,originX:Md,originY:Md,originZ:Oe},jc={borderWidth:Oe,borderTopWidth:Oe,borderRightWidth:Oe,borderBottomWidth:Oe,borderLeftWidth:Oe,borderRadius:Oe,borderTopLeftRadius:Oe,borderTopRightRadius:Oe,borderBottomRightRadius:Oe,borderBottomLeftRadius:Oe,width:Oe,maxWidth:Oe,height:Oe,maxHeight:Oe,top:Oe,right:Oe,bottom:Oe,left:Oe,inset:Oe,insetBlock:Oe,insetBlockStart:Oe,insetBlockEnd:Oe,insetInline:Oe,insetInlineStart:Oe,insetInlineEnd:Oe,padding:Oe,paddingTop:Oe,paddingRight:Oe,paddingBottom:Oe,paddingLeft:Oe,paddingBlock:Oe,paddingBlockStart:Oe,paddingBlockEnd:Oe,paddingInline:Oe,paddingInlineStart:Oe,paddingInlineEnd:Oe,margin:Oe,marginTop:Oe,marginRight:Oe,marginBottom:Oe,marginLeft:Oe,marginBlock:Oe,marginBlockStart:Oe,marginBlockEnd:Oe,marginInline:Oe,marginInlineStart:Oe,marginInlineEnd:Oe,fontSize:Oe,backgroundPositionX:Oe,backgroundPositionY:Oe,...BR,zIndex:Hd,fillOpacity:Wr,strokeOpacity:Wr,numOctaves:Hd},VR={...jc,color:yt,backgroundColor:yt,outlineColor:yt,fill:yt,stroke:yt,borderColor:yt,borderTopColor:yt,borderRightColor:yt,borderBottomColor:yt,borderLeftColor:yt,filter:yl,WebkitFilter:yl,mask:vl,WebkitMask:vl},Zm=e=>VR[e],FR=new Set([yl,vl]);function Jm(e,t){let n=Zm(e);return FR.has(n)||(n=un),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const zR=new Set(["auto","none","0"]);function WR(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!zR.has(s)&&Qo(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=Jm(n,i)}class _R extends Rc{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let p=t[d];if(typeof p=="string"&&(p=p.trim(),Cc(p))){const f=_m(p,n.current);f!==void 0&&(t[d]=f),d===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!Hm.has(r)||t.length!==2)return;const[i,s]=t,a=Ud(i),l=Ud(s),c=Id(i),u=Id(s);if(c!==u&&_n[r]){this.needsMeasurement=!0;return}if(a!==l)if(Vd(a)&&Vd(l))for(let d=0;d<t.length;d++){const p=t[d];typeof p=="string"&&(t[d]=parseFloat(p))}else _n[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||$R(t[i]))&&r.push(i);r.length&&WR(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_n[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,a=r[s];r[s]=_n[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function $c(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const Qm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function UR(e){return sm(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Nc}=xm(queueMicrotask,!1),cn={x:!1,y:!1};function eg(){return cn.x||cn.y}function HR(e){return e==="x"||e==="y"?cn[e]?null:(cn[e]=!0,()=>{cn[e]=!1}):cn.x||cn.y?null:(cn.x=cn.y=!0,()=>{cn.x=cn.y=!1})}function tg(e,t){const n=$c(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function qR(e){return!(e.pointerType==="touch"||eg())}function GR(e,t,n={}){const[r,i,s]=tg(e,n);return r.forEach(a=>{let l=!1,c=!1,u;const d=()=>{a.removeEventListener("pointerleave",g)},p=v=>{u&&(u(v),u=void 0),d()},f=v=>{l=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,p(v))},b=()=>{l=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},g=v=>{if(v.pointerType!=="touch"){if(l){c=!0;return}p(v)}},h=v=>{if(!qR(v))return;c=!1;const w=t(a,v);typeof w=="function"&&(u=w,a.addEventListener("pointerleave",g,i))};a.addEventListener("pointerenter",h,i),a.addEventListener("pointerdown",b,i)}),s}const ng=(e,t)=>t?e===t?!0:ng(e,t.parentElement):!1,Lc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,KR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function YR(e){return KR.has(e.tagName)||e.isContentEditable===!0}const XR=new Set(["INPUT","SELECT","TEXTAREA"]);function ZR(e){return XR.has(e.tagName)||e.isContentEditable===!0}const Ei=new WeakSet;function qd(e){return t=>{t.key==="Enter"&&e(t)}}function xa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const JR=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=qd(()=>{if(Ei.has(n))return;xa(n,"down");const i=qd(()=>{xa(n,"up")}),s=()=>xa(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Gd(e){return Lc(e)&&!eg()}const Kd=new WeakSet;function QR(e,t,n={}){const[r,i,s]=tg(e,n),a=l=>{const c=l.currentTarget;if(!Gd(l)||Kd.has(l))return;Ei.add(c),n.stopPropagation&&Kd.add(l);const u=t(c,l),d=(b,g)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",f),Ei.has(c)&&Ei.delete(c),Gd(b)&&typeof u=="function"&&u(b,{success:g})},p=b=>{d(b,c===window||c===document||n.useGlobalTarget||ng(c,b.target))},f=b=>{d(b,!1)};window.addEventListener("pointerup",p,i),window.addEventListener("pointercancel",f,i)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,i),UR(l)&&(l.addEventListener("focus",u=>JR(u,i)),!YR(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),s}function Dc(e){return sm(e)&&"ownerSVGElement"in e}const Ri=new WeakMap;let ki;const og=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:Dc(r)&&"getBBox"in r?r.getBBox()[t]:r[n],ek=og("inline","width","offsetWidth"),tk=og("block","height","offsetHeight");function nk({target:e,borderBoxSize:t}){Ri.get(e)?.forEach(n=>{n(e,{get width(){return ek(e,t)},get height(){return tk(e,t)}})})}function ok(e){e.forEach(nk)}function rk(){typeof ResizeObserver>"u"||(ki=new ResizeObserver(ok))}function ik(e,t){ki||rk();const n=$c(e);return n.forEach(r=>{let i=Ri.get(r);i||(i=new Set,Ri.set(r,i)),i.add(t),ki?.observe(r)}),()=>{n.forEach(r=>{const i=Ri.get(r);i?.delete(t),i?.size||ki?.unobserve(r)})}}const Ii=new Set;let Fo;function sk(){Fo=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ii.forEach(t=>t(e))},window.addEventListener("resize",Fo)}function ak(e){return Ii.add(e),Fo||sk(),()=>{Ii.delete(e),!Ii.size&&typeof Fo=="function"&&(window.removeEventListener("resize",Fo),Fo=void 0)}}function Yd(e,t){return typeof e=="function"?ak(e):ik(e,t)}function lk(e){return Dc(e)&&e.tagName==="svg"}const ck=[...Xm,yt,un],uk=e=>ck.find(Ym(e)),Xd=()=>({translate:0,scale:1,origin:0,originPoint:0}),zo=()=>({x:Xd(),y:Xd()}),Zd=()=>({min:0,max:0}),Ct=()=>({x:Zd(),y:Zd()}),dk=new WeakMap;function Bs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function _r(e){return typeof e=="string"||Array.isArray(e)}const Bc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vc=["initial",...Bc];function Vs(e){return Bs(e.animate)||Vc.some(t=>_r(e[t]))}function rg(e){return!!(Vs(e)||e.variants)}function pk(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Et(i))e.addValue(r,i);else if(Et(s))e.addValue(r,er(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,er(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const xl={current:null},ig={current:!1},fk=typeof window<"u";function hk(){if(ig.current=!0,!!fk)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xl.current=e.matches;e.addEventListener("change",t),t()}else xl.current=!1}const Jd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let os={};function sg(e){os=e}function mk(){return os}class gk{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:s,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Rc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=Lt.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,rt.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=s,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=Vs(n),this.isVariantNode=rg(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in f){const g=f[b];u[b]!==void 0&&Et(g)&&g.set(u[b])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,dk.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ig.current||hk(),this.shouldReduceMotion=xl.current),process.env.NODE_ENV!=="production"&&vc(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Yn(this.notifyUpdate),Yn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&zm.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:l,times:c,ease:u,duration:d}=n.accelerate,p=new Vm({element:this.current,name:t,keyframes:l,times:c,ease:u,duration:Wt(d)}),f=a(p);this.valueSubscriptions.set(t,()=>{f(),p.cancel()});return}const r=sr.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in os){const n=os[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ct()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Jd.length;r++){const i=Jd[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,a=t[s];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=pk(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=er(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(im(r)||am(r))?r=parseFloat(r):!uk(r)&&un.test(n)&&(r=Jm(t,n)),this.setBaseTarget(t,Et(r)?r.get():r)),Et(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=Mc(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Et(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new yc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Nc.render(this.render)}}class ag extends gk{constructor(){super(...arguments),this.KeyframeResolver=_R}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Et(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class eo{constructor(t){this.isMounted=!1,this.node=t}update(){}}function lg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function bk({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function yk(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function wa(e){return e===void 0||e===1}function wl({scale:e,scaleX:t,scaleY:n}){return!wa(e)||!wa(t)||!wa(n)}function so(e){return wl(e)||cg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cg(e){return Qd(e.x)||Qd(e.y)}function Qd(e){return e&&e!=="0%"}function rs(e,t,n){const r=e-n,i=t*r;return n+i}function ep(e,t,n,r,i){return i!==void 0&&(e=rs(e,i,r)),rs(e,n,r)+t}function Cl(e,t=0,n=1,r,i){e.min=ep(e.min,t,n,r,i),e.max=ep(e.max,t,n,r,i)}function ug(e,{x:t,y:n}){Cl(e.x,t.translate,t.scale,t.originPoint),Cl(e.y,n.translate,n.scale,n.originPoint)}const tp=.999999999999,np=1.0000000000001;function vk(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,a;for(let l=0;l<i;l++){s=n[l],a=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(gn(e.x,-s.scroll.offset.x),gn(e.y,-s.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ug(e,a)),r&&so(s.latestValues)&&Mi(e,s.latestValues,s.layout?.layoutBox))}t.x<np&&t.x>tp&&(t.x=1),t.y<np&&t.y>tp&&(t.y=1)}function gn(e,t){e.min+=t,e.max+=t}function op(e,t,n,r,i=.5){const s=st(e.min,e.max,i);Cl(e,t,n,s,r)}function rp(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Mi(e,t,n){const r=n??e;op(e.x,rp(t.x,r.x),t.scaleX,t.scale,t.originX),op(e.y,rp(t.y,r.y),t.scaleY,t.scale,t.originY)}function dg(e,t){return lg(yk(e.getBoundingClientRect(),t))}function xk(e,t,n){const r=dg(e,n),{scroll:i}=t;return i&&(gn(r.x,i.offset.x),gn(r.y,i.offset.y)),r}const wk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ck=ir.length;function Sk(e,t,n){let r="",i=!0;for(let s=0;s<Ck;s++){const a=ir[s],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=Qm(l,jc[a]);if(!c){i=!1;const d=wk[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Fc(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let a=!1,l=!1;for(const c in t){const u=t[c];if(sr.has(c)){a=!0;continue}else if(Cm(c)){i[c]=u;continue}else{const d=Qm(u,jc[c]);c.startsWith("origin")?(l=!0,s[c]=d):r[c]=d}}if(t.transform||(a||n?r.transform=Sk(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=s;r.transformOrigin=`${c} ${u} ${d}`}}function pg(e,{style:t,vars:n},r,i){const s=e.style;let a;for(a in t)s[a]=t[a];i?.applyProjectionStyles(s,r);for(a in n)s.setProperty(a,n[a])}function ip(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const yr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Oe.test(e))e=parseFloat(e);else return e;const n=ip(e,t.target.x),r=ip(e,t.target.y);return`${n}% ${r}%`}},Tk={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=un.parse(e);if(i.length>5)return r;const s=un.createTransformer(e),a=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=l,i[1+a]/=c;const u=st(l,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),s(i)}},Sl={borderRadius:{...yr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yr,borderTopRightRadius:yr,borderBottomLeftRadius:yr,borderBottomRightRadius:yr,boxShadow:Tk};function fg(e,{layout:t,layoutId:n}){return sr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Sl[e]||e==="opacity")}function zc(e,t,n){const r=e.style,i=t?.style,s={};if(!r)return s;for(const a in r)(Et(r[a])||i&&Et(i[a])||fg(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(s[a]=r[a]);return s}function Pk(e){return window.getComputedStyle(e)}class Ok extends ag{constructor(){super(...arguments),this.type="html",this.renderInstance=pg}readValueFromInstance(t,n){if(sr.has(n))return this.projection?.isProjecting?cl(n):UE(t,n);{const r=Pk(t),i=(Cm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return dg(t,n)}build(t,n,r){Fc(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return zc(t,n,r)}}const Ek={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rk={offset:"strokeDashoffset",array:"strokeDasharray"};function kk(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Ek:Rk;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const Ik=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function hg(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:s=1,pathOffset:a=0,...l},c,u,d){if(Fc(e,l,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:f}=e;p.transform&&(f.transform=p.transform,delete p.transform),(f.transform||p.transformOrigin)&&(f.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),f.transform&&(f.transformBox=d?.transformBox??"fill-box",delete p.transformBox);for(const b of Ik)p[b]!==void 0&&(f[b]=p[b],delete p[b]);t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),i!==void 0&&kk(p,i,s,a,!1)}const mg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),gg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Mk(e,t,n,r){pg(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(mg.has(i)?i:Ac(i),t.attrs[i])}function bg(e,t,n){const r=zc(e,t,n);for(const i in e)if(Et(e[i])||Et(t[i])){const s=ir.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}class Ak extends ag{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ct}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(sr.has(n)){const r=Zm(n);return r&&r.default||0}return n=mg.has(n)?n:Ac(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return bg(t,n,r)}build(t,n,r){hg(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Mk(t,n,r,i)}mount(t){this.isSVGTag=gg(t.tagName),super.mount(t)}}const jk=Vc.length;function yg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?yg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<jk;n++){const r=Vc[n],i=e.props[r];(_r(i)||i===!1)&&(t[r]=i)}return t}function vg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const $k=[...Bc].reverse(),Nk=Bc.length;function Lk(e){return t=>Promise.all(t.map(({animation:n,options:r})=>AR(e,n,r)))}function Dk(e){let t=Lk(e),n=sp(),r=!0,i=!1;const s=u=>(d,p)=>{const f=bo(e,p,u==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:b,transitionEnd:g,...h}=f;d={...d,...h,...g}}return d};function a(u){t=u(e)}function l(u){const{props:d}=e,p=yg(e.parent)||{},f=[],b=new Set;let g={},h=1/0;for(let w=0;w<Nk;w++){const C=$k[w],S=n[C],x=d[C]!==void 0?d[C]:p[C],T=_r(x),P=C===u?S.isActive:null;P===!1&&(h=w);let j=x===p[C]&&x!==d[C]&&T;if(j&&(r||i)&&e.manuallyAnimateOnMount&&(j=!1),S.protectedKeys={...g},!S.isActive&&P===null||!x&&!S.prevProp||Bs(x)||typeof x=="boolean")continue;if(C==="exit"&&S.isActive&&P!==!0){S.prevResolvedValues&&(g={...g,...S.prevResolvedValues});continue}const R=Bk(S.prevProp,x);let k=R||C===u&&S.isActive&&!j&&T||w>h&&T,I=!1;const A=Array.isArray(x)?x:[x];let y=A.reduce(s(C),{});P===!1&&(y={});const{prevResolvedValues:N={}}=S,M={...N,...y},L=F=>{k=!0,b.has(F)&&(I=!0,b.delete(F)),S.needsAnimating[F]=!0;const W=e.getValue(F);W&&(W.liveStyle=!1)};for(const F in M){const W=y[F],D=N[F];if(g.hasOwnProperty(F))continue;let $=!1;ml(W)&&ml(D)?$=!vg(W,D):$=W!==D,$?W!=null?L(F):b.add(F):W!==void 0&&b.has(F)?L(F):S.protectedKeys[F]=!0}S.prevProp=x,S.prevResolvedValues=y,S.isActive&&(g={...g,...y}),(r||i)&&e.blockInitialAnimation&&(k=!1);const E=j&&R;k&&(!E||I)&&f.push(...A.map(F=>{const W={type:C};if(typeof F=="string"&&(r||i)&&!E&&e.manuallyAnimateOnMount&&e.parent){const{parent:D}=e,$=bo(D,F);if(D.enteringChildren&&$){const{delayChildren:Z}=$.transition||{};W.delay=Wm(D.enteringChildren,e,Z)}}return{animation:F,options:W}}))}if(b.size){const w={};if(typeof d.initial!="boolean"){const C=bo(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(w.transition=C.transition)}b.forEach(C=>{const S=e.getBaseTarget(C),x=e.getValue(C);x&&(x.liveStyle=!0),w[C]=S??null}),f.push({animation:w})}let v=!!f.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,i=!1,v?t(f):Promise.resolve()}function c(u,d){if(n[u].isActive===d)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,d)),n[u].isActive=d;const p=l(u);for(const f in n)n[f].protectedKeys={};return p}return{animateChanges:l,setActive:c,setAnimateFunction:a,getState:()=>n,reset:()=>{n=sp(),i=!0}}}function Bk(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!vg(t,e):!1}function oo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sp(){return{animate:oo(!0),whileInView:oo(),whileHover:oo(),whileTap:oo(),whileDrag:oo(),whileFocus:oo(),exit:oo()}}function Tl(e,t){e.min=t.min,e.max=t.max}function ln(e,t){Tl(e.x,t.x),Tl(e.y,t.y)}function ap(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const xg=1e-4,Vk=1-xg,Fk=1+xg,wg=.01,zk=0-wg,Wk=0+wg;function Dt(e){return e.max-e.min}function _k(e,t,n){return Math.abs(e-t)<=n}function lp(e,t,n,r=.5){e.origin=r,e.originPoint=st(t.min,t.max,e.origin),e.scale=Dt(n)/Dt(t),e.translate=st(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Vk&&e.scale<=Fk||isNaN(e.scale))&&(e.scale=1),(e.translate>=zk&&e.translate<=Wk||isNaN(e.translate))&&(e.translate=0)}function $r(e,t,n,r){lp(e.x,t.x,n.x,r?r.originX:void 0),lp(e.y,t.y,n.y,r?r.originY:void 0)}function cp(e,t,n,r=0){const i=r?st(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+Dt(t)}function Uk(e,t,n,r){cp(e.x,t.x,n.x,r?.x),cp(e.y,t.y,n.y,r?.y)}function up(e,t,n,r=0){const i=r?st(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Dt(t)}function is(e,t,n,r){up(e.x,t.x,n.x,r?.x),up(e.y,t.y,n.y,r?.y)}function dp(e,t,n,r,i){return e-=t,e=rs(e,1/n,r),i!==void 0&&(e=rs(e,1/i,r)),e}function Hk(e,t=0,n=1,r=.5,i,s=e,a=e){if(wn.test(t)&&(t=parseFloat(t),t=st(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=st(s.min,s.max,r);e===s&&(l-=t),e.min=dp(e.min,t,n,l,i),e.max=dp(e.max,t,n,l,i)}function pp(e,t,[n,r,i],s,a){Hk(e,t[n],t[r],t[i],t.scale,s,a)}const qk=["x","scaleX","originX"],Gk=["y","scaleY","originY"];function fp(e,t,n,r){pp(e.x,t,qk,n?n.x:void 0,r?r.x:void 0),pp(e.y,t,Gk,n?n.y:void 0,r?r.y:void 0)}function hp(e){return e.translate===0&&e.scale===1}function Cg(e){return hp(e.x)&&hp(e.y)}function mp(e,t){return e.min===t.min&&e.max===t.max}function Kk(e,t){return mp(e.x,t.x)&&mp(e.y,t.y)}function gp(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Sg(e,t){return gp(e.x,t.x)&&gp(e.y,t.y)}function bp(e){return Dt(e.x)/Dt(e.y)}function yp(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function mn(e){return[e("x"),e("y")]}function Yk(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((i||s||a)&&(r=`translate3d(${i}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:p,rotateY:f,skewX:b,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),p&&(r+=`rotateX(${p}deg) `),f&&(r+=`rotateY(${f}deg) `),b&&(r+=`skewX(${b}deg) `),g&&(r+=`skewY(${g}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(r+=`scale(${l}, ${c})`),r||"none"}const Tg=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Xk=Tg.length,vp=e=>typeof e=="string"?parseFloat(e):e,xp=e=>typeof e=="number"||Oe.test(e);function Zk(e,t,n,r,i,s){i?(e.opacity=st(0,n.opacity??1,Jk(r)),e.opacityExit=st(t.opacity??1,0,Qk(r))):s&&(e.opacity=st(t.opacity??1,n.opacity??1,r));for(let a=0;a<Xk;a++){const l=Tg[a];let c=wp(t,l),u=wp(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||xp(c)===xp(u)?(e[l]=Math.max(st(vp(c),vp(u),r),0),(wn.test(u)||wn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=st(t.rotate||0,n.rotate||0,r))}function wp(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Jk=Pg(0,.5,gm),Qk=Pg(.5,.95,tn);function Pg(e,t,n){return r=>r<e?0:r>t?1:n(zr(e,t,r))}function eI(e,t,n){const r=Et(e)?e:er(e);return r.start(Ic("",r,t,n)),r.animation}function Ur(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const tI=(e,t)=>e.depth-t.depth;class nI{constructor(){this.children=[],this.isDirty=!1}add(t){bc(this.children,t),this.isDirty=!0}remove(t){Ji(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tI),this.isDirty=!1,this.children.forEach(t)}}function oI(e,t){const n=Lt.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Yn(r),e(s-t))};return rt.setup(r,!0),()=>Yn(r)}function Ai(e){return Et(e)?e.get():e}class rI{constructor(){this.members=[]}add(t){bc(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(Ji(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Ji(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const r=this.members[n];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:i}=r.options,{layoutDependency:s}=t.options;(i===void 0||i!==s)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const ji={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ca=["","X","Y","Z"],iI=1e3;let sI=0;function Sa(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Og(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Gm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Og(r)}function Eg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},l=t?.()){this.id=sI++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(cI),this.nodes.forEach(mI),this.nodes.forEach(gI),this.nodes.forEach(uI)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new nI)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new yc),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=Dc(a)&&!lk(a),this.instance=a;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let d,p=0;const f=()=>this.root.updateBlockedByResize=!1;rt.read(()=>{p=window.innerWidth}),e(a,()=>{const b=window.innerWidth;b!==p&&(p=b,this.root.updateBlockedByResize=!0,d&&d(),d=oI(f,250),ji.hasAnimatedSinceResize&&(ji.hasAnimatedSinceResize=!1,this.nodes.forEach(Tp)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeLayoutChanged:f,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||wI,{onLayoutAnimationStart:h,onLayoutAnimationComplete:v}=u.getProps(),w=!this.targetLayout||!Sg(this.targetLayout,b),C=!p&&f;if(this.options.layoutRoot||this.resumeFrom||C||p&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...kc(g,"layout"),onPlay:h,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(d,C)}else p||Tp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Yn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(bI),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Og(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const p=this.path[d];p.shouldResetTransform=!0,(typeof p.latestValues.x=="string"||typeof p.latestValues.y=="string")&&(p.isLayoutDirty=!0),p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(pI),this.nodes.forEach(Cp);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Sp);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(fI),this.nodes.forEach(hI),this.nodes.forEach(aI),this.nodes.forEach(lI)):this.nodes.forEach(Sp),this.clearAllSnapshots();const l=Lt.now();Ot.delta=Tn(0,1e3/60,l-Ot.timestamp),Ot.timestamp=l,Ot.isProcessing=!0,ha.update.process(Ot),ha.preRender.process(Ot),ha.render.process(Ot),Ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Nc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(dI),this.sharedNodes.forEach(yI)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Dt(this.snapshot.measuredBox.x)&&!Dt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ct()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Cg(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||so(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),CI(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Ct();const l=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(SI))){const{scroll:u}=this.root;u&&(gn(l.x,u.offset.x),gn(l.y,u.offset.y))}return l}removeElementScroll(a){const l=Ct();if(ln(l,a),this.scroll?.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:p}=u;u!==this.root&&d&&p.layoutScroll&&(d.wasRoot&&ln(l,a),gn(l.x,d.offset.x),gn(l.y,d.offset.y))}return l}applyTransform(a,l=!1,c){const u=c||Ct();ln(u,a);for(let d=0;d<this.path.length;d++){const p=this.path[d];!l&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(gn(u.x,-p.scroll.offset.x),gn(u.y,-p.scroll.offset.y)),so(p.latestValues)&&Mi(u,p.latestValues,p.layout?.layoutBox)}return so(this.latestValues)&&Mi(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(a){const l=Ct();ln(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!so(u.latestValues))continue;let d;u.instance&&(wl(u.latestValues)&&u.updateSnapshot(),d=Ct(),ln(d,u.measurePageBox())),fp(l,u.latestValues,u.snapshot?.layoutBox,d)}return so(this.latestValues)&&fp(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ot.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:p}=this.options;if(!this.layout||!(d||p))return;this.resolvedRelativeTargetAt=Ot.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ct(),this.targetWithTransforms=Ct()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Uk(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ln(this.target,this.layout.layoutBox),ug(this.target,this.targetDelta)):ln(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||wl(this.parent.latestValues)||cg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ct(),this.relativeTargetOrigin=Ct(),is(this.relativeTargetOrigin,l,c,this.options.layoutAnchor||void 0),ln(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Ot.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;ln(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,f=this.treeScale.y;vk(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Ct());const{target:b}=a;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ap(this.prevProjectionDelta.x,this.projectionDelta.x),ap(this.prevProjectionDelta.y,this.projectionDelta.y)),$r(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==f||!yp(this.projectionDelta.x,this.prevProjectionDelta.x)||!yp(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zo(),this.projectionDelta=zo(),this.projectionDeltaWithTransform=zo()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},p=zo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=Ct(),b=c?c.source:void 0,g=this.layout?this.layout.source:void 0,h=b!==g,v=this.getStack(),w=!v||v.members.length<=1,C=!!(h&&!w&&this.options.crossfade===!0&&!this.path.some(xI));this.animationProgress=0;let S;this.mixTargetDelta=x=>{const T=x/1e3;Pp(p.x,a.x,T),Pp(p.y,a.y,T),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(is(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),vI(this.relativeTarget,this.relativeTargetOrigin,f,T),S&&Kk(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Ct()),ln(S,this.relativeTarget)),h&&(this.animationValues=d,Zk(d,u,this.latestValues,T,C,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Yn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{ji.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=er(0)),this.motionValue.jump(0,!1),this.currentAnimation=eI(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),a.onUpdate&&a.onUpdate(l)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(iI),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&Rg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Ct();const p=Dt(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+p;const f=Dt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+f}ln(l,c),Mi(l,d),$r(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new rI),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&Sa("z",a,u,this.animationValues);for(let d=0;d<Ca.length;d++)Sa(`rotate${Ca[d]}`,a,u,this.animationValues),Sa(`skew${Ca[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Ai(l?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Ai(l?.pointerEvents)||""),this.hasProjected&&!so(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let p=Yk(this.projectionDeltaWithTransform,this.treeScale,d);c&&(p=c(d,p)),a.transform=p;const{x:f,y:b}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${b.origin*100}% 0`,u.animationValues?a.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in Sl){if(d[g]===void 0)continue;const{correct:h,applyTo:v,isCSSVariable:w}=Sl[g],C=p==="none"?d[g]:h(d[g],u);if(v){const S=v.length;for(let x=0;x<S;x++)a[v[x]]=C}else w?this.options.visualElement.renderState.vars[g]=C:a[g]=C}this.options.layoutId&&(a.pointerEvents=u===this?Ai(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(Cp),this.root.sharedNodes.clear()}}}function aI(e){e.updateLayout()}function lI(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,s=t.source!==e.layout.source;if(i==="size")mn(d=>{const p=s?t.measuredBox[d]:t.layoutBox[d],f=Dt(p);p.min=n[d].min,p.max=p.min+f});else if(i==="x"||i==="y"){const d=i==="x"?"y":"x";Tl(s?t.measuredBox[d]:t.layoutBox[d],n[d])}else Rg(i,t.layoutBox,n)&&mn(d=>{const p=s?t.measuredBox[d]:t.layoutBox[d],f=Dt(n[d]);p.max=p.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+f)});const a=zo();$r(a,n,t.layoutBox);const l=zo();s?$r(l,e.applyTransform(r,!0),t.measuredBox):$r(l,n,t.layoutBox);const c=!Cg(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:f}=d;if(p&&f){const b=e.options.layoutAnchor||void 0,g=Ct();is(g,t.layoutBox,p.layoutBox,b);const h=Ct();is(h,n,f.layoutBox,b),Sg(g,h)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function cI(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function uI(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dI(e){e.clearSnapshot()}function Cp(e){e.clearMeasurements()}function pI(e){e.isLayoutDirty=!0,e.updateLayout()}function Sp(e){e.isLayoutDirty=!1}function fI(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function hI(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Tp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mI(e){e.resolveTargetDelta()}function gI(e){e.calcProjection()}function bI(e){e.resetSkewAndRotation()}function yI(e){e.removeLeadSnapshot()}function Pp(e,t,n){e.translate=st(t.translate,0,n),e.scale=st(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Op(e,t,n,r){e.min=st(t.min,n.min,r),e.max=st(t.max,n.max,r)}function vI(e,t,n,r){Op(e.x,t.x,n.x,r),Op(e.y,t.y,n.y,r)}function xI(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wI={duration:.45,ease:[.4,0,.1,1]},Ep=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rp=Ep("applewebkit/")&&!Ep("chrome/")?Math.round:tn;function kp(e){e.min=Rp(e.min),e.max=Rp(e.max)}function CI(e){kp(e.x),kp(e.y)}function Rg(e,t,n){return e==="position"||e==="preserve-aspect"&&!_k(bp(t),bp(n),.2)}function SI(e){return e!==e.root&&e.scroll?.wasRoot}const TI=Eg({attachResizeListener:(e,t)=>Ur(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ta={current:void 0},kg=Eg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ta.current){const e=new TI({});e.mount(window),e.setOptions({layoutScroll:!0}),Ta.current=e}return Ta.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ig=H.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function PI(e=!0){const t=H.useContext(gc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=H.useId();H.useEffect(()=>{if(e)return i(s)},[e]);const a=H.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,a]:[!0]}const Mg=H.createContext({strict:!1}),Ip={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Mp=!1;function OI(){if(Mp)return;const e={};for(const t in Ip)e[t]={isEnabled:n=>Ip[t].some(r=>!!n[r])};sg(e),Mp=!0}function Ag(){return OI(),mk()}function EI(e){const t=Ag();for(const n in e)t[n]={...t[n],...e[n]};sg(t)}const RI=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ss(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||RI.has(e)}let jg=e=>!ss(e);function kI(e){typeof e=="function"&&(jg=t=>t.startsWith("on")?!ss(t):e(t))}try{kI(require("@emotion/is-prop-valid").default)}catch{}function II(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||Et(e[i])||(jg(i)||n===!0&&ss(i)||!t&&!ss(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Fs=H.createContext({});function MI(e,t){if(Vs(e)){const{initial:n,animate:r}=e;return{initial:n===!1||_r(n)?n:void 0,animate:_r(r)?r:void 0}}return e.inherit!==!1?t:{}}function AI(e){const{initial:t,animate:n}=MI(e,H.useContext(Fs));return H.useMemo(()=>({initial:t,animate:n}),[Ap(t),Ap(n)])}function Ap(e){return Array.isArray(e)?e.join(" "):e}const Wc=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $g(e,t,n){for(const r in t)!Et(t[r])&&!fg(r,n)&&(e[r]=t[r])}function jI({transformTemplate:e},t){return H.useMemo(()=>{const n=Wc();return Fc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function $I(e,t){const n=e.style||{},r={};return $g(r,n,e),Object.assign(r,jI(e,t)),r}function NI(e,t){const n={},r=$I(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Ng=()=>({...Wc(),attrs:{}});function LI(e,t,n,r){const i=H.useMemo(()=>{const s=Ng();return hg(s,t,gg(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};$g(s,e.style,e),i.style={...s,...i.style}}return i}const DI=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _c(e){return typeof e!="string"||e.includes("-")?!1:!!(DI.indexOf(e)>-1||/[A-Z]/u.test(e))}function BI(e,t,n,{latestValues:r},i,s=!1,a){const c=(a??_c(e)?LI:NI)(t,r,i,e),u=II(t,typeof e=="string",s),d=e!==H.Fragment?{...u,...c,ref:n}:{},{children:p}=t,f=H.useMemo(()=>Et(p)?p.get():p,[p]);return H.createElement(e,{...d,children:f})}function VI({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:FI(n,r,i,e),renderState:t()}}function FI(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=Ai(s[f]);let{initial:a,animate:l}=e;const c=Vs(e),u=rg(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const p=d?l:a;if(p&&typeof p!="boolean"&&!Bs(p)){const f=Array.isArray(p)?p:[p];for(let b=0;b<f.length;b++){const g=Mc(e,f[b]);if(g){const{transitionEnd:h,transition:v,...w}=g;for(const C in w){let S=w[C];if(Array.isArray(S)){const x=d?S.length-1:0;S=S[x]}S!==null&&(i[C]=S)}for(const C in h)i[C]=h[C]}}}return i}const Lg=e=>(t,n)=>{const r=H.useContext(Fs),i=H.useContext(gc),s=()=>VI(e,t,r,i);return n?s():DO(s)},zI=Lg({scrapeMotionValuesFromProps:zc,createRenderState:Wc}),WI=Lg({scrapeMotionValuesFromProps:bg,createRenderState:Ng}),_I=Symbol.for("motionComponentSymbol");function UI(e,t,n){const r=H.useRef(n);H.useInsertionEffect(()=>{r.current=n});const i=H.useRef(null);return H.useCallback(s=>{s&&e.onMount?.(s);const a=r.current;if(typeof a=="function")if(s){const l=a(s);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):a(s);else a&&(a.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const Dg=H.createContext({});function No(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function HI(e,t,n,r,i,s){const{visualElement:a}=H.useContext(Fs),l=H.useContext(Mg),c=H.useContext(gc),u=H.useContext(Ig),d=u.reducedMotion,p=u.skipAnimations,f=H.useRef(null),b=H.useRef(!1);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:p,isSVG:s}),b.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const g=f.current,h=H.useContext(Dg);g&&!g.projection&&i&&(g.type==="html"||g.type==="svg")&&qI(f.current,n,i,h);const v=H.useRef(!1);H.useInsertionEffect(()=>{g&&v.current&&g.update(n,c)});const w=n[qm],C=H.useRef(!!w&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return VO(()=>{b.current=!0,g&&(v.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),C.current&&g.animationState&&g.animationState.animateChanges())}),H.useEffect(()=>{g&&(!C.current&&g.animationState&&g.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),C.current=!1),g.enteringChildren=void 0)}),g}function qI(e,t,n,r){const{layoutId:i,layout:s,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutAnchor:d,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Bg(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!a||l&&No(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:c,layoutRoot:u,layoutAnchor:d})}function Bg(e){if(e)return e.options.allowProjection!==!1?e.projection:Bg(e.parent)}function Pa(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&EI(r);const s=n?n==="svg":_c(e),a=s?WI:zI;function l(u,d){let p;const f={...H.useContext(Ig),...u,layoutId:GI(u)},{isStatic:b}=f,g=AI(u),h=a(u,b);if(!b&&typeof window<"u"){KI(f,r);const v=YI(f);p=v.MeasureLayout,g.visualElement=HI(e,h,f,i,v.ProjectionNode,s)}return m.jsxs(Fs.Provider,{value:g,children:[p&&g.visualElement?m.jsx(p,{visualElement:g.visualElement,...f}):null,BI(e,u,UI(h,g.visualElement,d),h,b,t,s)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=H.forwardRef(l);return c[_I]=e,c}function GI({layoutId:e}){const t=H.useContext(rm).id;return t&&e!==void 0?t+"-"+e:e}function KI(e,t){const n=H.useContext(Mg).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?or(!1,r,"lazy-strict-mode"):An(!1,r,"lazy-strict-mode")}}function YI(e){const t=Ag(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function XI(e,t){if(typeof Proxy>"u")return Pa;const n=new Map,r=(s,a)=>Pa(s,a,e,t),i=(s,a)=>(process.env.NODE_ENV!=="production"&&vc(!1,"motion() is deprecated. Use motion.create() instead."),r(s,a));return new Proxy(i,{get:(s,a)=>a==="create"?r:(n.has(a)||n.set(a,Pa(a,void 0,e,t)),n.get(a))})}const ZI=(e,t)=>t.isSVG??_c(e)?new Ak(t):new Ok(t,{allowProjection:e!==H.Fragment});class JI extends eo{constructor(t){super(t),t.animationState||(t.animationState=Dk(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Bs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let QI=0;class eM extends eo{constructor(){super(...arguments),this.id=QI++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:s,custom:a}=this.node.getProps();if(typeof s=="string"){const l=bo(this.node,s,a);if(l){const{transition:c,transitionEnd:u,...d}=l;for(const p in d)this.node.getValue(p)?.jump(d[p])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const tM={animation:{Feature:JI},exit:{Feature:eM}};function ri(e){return{point:{x:e.pageX,y:e.pageY}}}const nM=e=>t=>Lc(t)&&e(t,ri(t));function Nr(e,t,n,r){return Ur(e,t,nM(n),r)}const Vg=({current:e})=>e?e.ownerDocument.defaultView:null,jp=(e,t)=>Math.abs(e-t);function oM(e,t){const n=jp(e.x,t.x),r=jp(e.y,t.y);return Math.sqrt(n**2+r**2)}const $p=new Set(["auto","scroll"]);class Fg{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:s=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=b=>{this.handleScroll(b.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ci(this.lastRawMoveEventInfo,this.transformPagePoint));const b=Oa(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,h=oM(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!h)return;const{point:v}=b,{timestamp:w}=Ot;this.history.push({...v,timestamp:w});const{onStart:C,onMove:S}=this.handlers;g||(C&&C(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,b)},this.handlePointerMove=(b,g)=>{this.lastMoveEvent=b,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=Ci(g,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(b,g)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Oa(b.type==="pointercancel"?this.lastMoveEventInfo:Ci(g,this.transformPagePoint),this.history);this.startEvent&&h&&h(b,C),v&&v(b,C)},!Lc(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const c=ri(t),u=Ci(c,this.transformPagePoint),{point:d}=u,{timestamp:p}=Ot;this.history=[{...d,timestamp:p}];const{onSessionStart:f}=n;f&&f(t,Oa(u,this.history)),this.removeListeners=ti(Nr(this.contextWindow,"pointermove",this.handlePointerMove),Nr(this.contextWindow,"pointerup",this.handlePointerUp),Nr(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);($p.has(r.overflowX)||$p.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:i.x-n.x,y:i.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,i),rt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Yn(this.updatePoint)}}function Ci(e,t){return t?{point:t(e.point)}:e}function Np(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Oa({point:e},t){return{point:e,delta:Np(e,zg(t)),offset:Np(e,rM(t)),velocity:iM(t,.1)}}function rM(e){return e[0]}function zg(e){return e[e.length-1]}function iM(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=zg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Wt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Wt(t)*2&&(r=e[1]);const s=Jt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const a={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function sM(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?st(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?st(n,e,r.max):Math.min(e,n)),e}function Lp(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function aM(e,{top:t,left:n,bottom:r,right:i}){return{x:Lp(e.x,n,i),y:Lp(e.y,t,r)}}function Dp(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function lM(e,t){return{x:Dp(e.x,t.x),y:Dp(e.y,t.y)}}function cM(e,t){let n=.5;const r=Dt(e),i=Dt(t);return i>r?n=zr(t.min,t.max-r,e.min):r>i&&(n=zr(e.min,e.max-i,t.min)),Tn(0,1,n)}function uM(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Pl=.35;function dM(e=Pl){return e===!1?e=0:e===!0&&(e=Pl),{x:Bp(e,"left","right"),y:Bp(e,"top","bottom")}}function Bp(e,t,n){return{min:Vp(e,t),max:Vp(e,n)}}function Vp(e,t){return typeof e=="number"?e:e[t]||0}const pM=new WeakMap;class fM{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ct(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=p=>{n&&this.snapToCursor(ri(p).point),this.stopAnimation()},a=(p,f)=>{const{drag:b,dragPropagation:g,onDragStart:h}=this.getProps();if(b&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=HR(b),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mn(w=>{let C=this.getAxisMotionValue(w).get()||0;if(wn.test(C)){const{projection:S}=this.visualElement;if(S&&S.layout){const x=S.layout.layoutBox[w];x&&(C=Dt(x)*(parseFloat(C)/100))}}this.originPoint[w]=C}),h&&rt.update(()=>h(p,f),!1,!0),gl(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},l=(p,f)=>{this.latestPointerEvent=p,this.latestPanInfo=f;const{dragPropagation:b,dragDirectionLock:g,onDirectionLock:h,onDrag:v}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:w}=f;if(g&&this.currentDirection===null){this.currentDirection=mM(w),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,w),this.updateAxis("y",f.point,w),this.visualElement.render(),v&&rt.update(()=>v(p,f),!1,!0)},c=(p,f)=>{this.latestPointerEvent=p,this.latestPanInfo=f,this.stop(p,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:p}=this.getProps();(p||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new Fg(t,{onSessionStart:s,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Vg(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!i||!r)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&rt.postRender(()=>l(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Si(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=sM(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&No(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=aM(r.layoutBox,t):this.constraints=!1,this.elastic=dM(n),i!==this.constraints&&!No(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&mn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=uM(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!No(t))return!1;const r=t.current;An(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=xk(r,i.root,this.visualElement.getTransformPagePoint());let a=lM(i.layout.layoutBox,s);if(n){const l=n(bk(a));this.hasMutatedConstraints=!!l,l&&(a=lg(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=mn(d=>{if(!Si(d,n,this.currentDirection))return;let p=c&&c[d]||{};(a===!0||a===d)&&(p={min:0,max:0});const f=i?200:1e6,b=i?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return gl(this.visualElement,t),r.start(Ic(t,r,0,n,this.visualElement,!1))}stopAnimation(){mn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){mn(n=>{const{drag:r}=this.getProps();if(!Si(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:l}=i.layout.layoutBox[n],c=s.get()||0;s.set(t[n]-st(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!No(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};mn(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();i[a]=cM({min:c,max:c},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),mn(a=>{if(!Si(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(st(c,u,i[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;pM.set(this.visualElement,this);const t=this.visualElement.current,n=Nr(t,"pointerdown",u=>{const{drag:d,dragListener:p=!0}=this.getProps(),f=u.target,b=f!==t&&ZR(f);d&&p&&!b&&this.start(u)});let r;const i=()=>{const{dragConstraints:u}=this.getProps();No(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=hM(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,a=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),rt.read(i);const l=Ur(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(mn(p=>{const f=this.getAxisMotionValue(p);f&&(this.originPoint[p]+=u[p].translate,f.set(f.get()+u[p].translate))}),this.visualElement.render())}));return()=>{l(),n(),a(),c&&c(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:a=Pl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:a,dragMomentum:l}}}function Fp(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function hM(e,t,n){const r=Yd(e,Fp(n)),i=Yd(t,Fp(n));return()=>{r(),i()}}function Si(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function mM(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class gM extends eo{constructor(t){super(t),this.removeGroupControls=tn,this.removeListeners=tn,this.controls=new fM(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ea=e=>(t,n)=>{e&&rt.update(()=>e(t,n),!1,!0)};class bM extends eo{constructor(){super(...arguments),this.removePointerDownListener=tn}onPointerDown(t){this.session=new Fg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Vg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ea(t),onStart:Ea(n),onMove:Ea(r),onEnd:(s,a)=>{delete this.session,i&&rt.postRender(()=>i(s,a))}}}mount(){this.removePointerDownListener=Nr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ra=!1;class yM extends H.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),Ra&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ji.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,{projection:a}=r;return a&&(a.isPresent=s,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),Ra=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||rt.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Nc.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;Ra=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Wg(e){const[t,n]=PI(),r=H.useContext(rm);return m.jsx(yM,{...e,layoutGroup:r,switchLayoutGroup:H.useContext(Dg),isPresent:t,safeToRemove:n})}const vM={pan:{Feature:bM},drag:{Feature:gM,ProjectionNode:kg,MeasureLayout:Wg}};function zp(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&rt.postRender(()=>s(t,ri(t)))}class xM extends eo{mount(){const{current:t}=this.node;t&&(this.unmount=GR(t,(n,r)=>(zp(this.node,r,"Start"),i=>zp(this.node,i,"End"))))}unmount(){}}class wM extends eo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ti(Ur(this.node.current,"focus",()=>this.onFocus()),Ur(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Wp(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&rt.postRender(()=>s(t,ri(t)))}class CM extends eo{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=QR(t,(i,s)=>(Wp(this.node,s,"Start"),(a,{success:l})=>Wp(this.node,a,l?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}}const Ol=new WeakMap,ka=new WeakMap,SM=e=>{const t=Ol.get(e.target);t&&t(e)},TM=e=>{e.forEach(SM)};function PM({root:e,...t}){const n=e||document;ka.has(n)||ka.set(n,{});const r=ka.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(TM,{root:e,...t})),r[i]}function OM(e,t,n){const r=PM(t);return Ol.set(e,n),r.observe(e),()=>{Ol.delete(e),r.unobserve(e)}}const EM={some:0,all:1};class RM extends eo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:EM[i]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:p}=this.node.getProps(),f=u?d:p;f&&f(c)};this.stopObserver=OM(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(kM(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function kM({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const IM={inView:{Feature:RM},tap:{Feature:CM},focus:{Feature:wM},hover:{Feature:xM}},MM={layout:{ProjectionNode:kg,MeasureLayout:Wg}},AM={...tM,...IM,...vM,...MM},Or=XI(AM,ZI),jM={some:0,all:1};function $M(e,t,{root:n,margin:r,amount:i="some"}={}){const s=$c(e),a=new WeakMap,l=u=>{u.forEach(d=>{const p=a.get(d.target);if(d.isIntersecting!==!!p)if(d.isIntersecting){const f=t(d.target,d);typeof f=="function"?a.set(d.target,f):c.unobserve(d.target)}else typeof p=="function"&&(p(d),a.delete(d.target))})},c=new IntersectionObserver(l,{root:n,rootMargin:r,threshold:typeof i=="number"?i:jM[i]});return s.forEach(u=>c.observe(u)),()=>c.disconnect()}function NM(e,{root:t,margin:n,amount:r,once:i=!1,initial:s=!1}={}){const[a,l]=H.useState(s);return H.useEffect(()=>{if(!e.current||i&&a)return;const c=()=>(l(!0),i?void 0:()=>l(!1)),u={root:t&&t.current||void 0,margin:n,amount:r};return $M(e.current,c,u)},[t,e,n,i,r]),a}const LM=()=>{const e=typeof window<"u";return console.debug("Navigation is not available, using window adapter! Some features may not work. Use Framework specific adapters for better results."),{push:t=>{e&&(window.history.pushState({},"",t),window.dispatchEvent(new PopStateEvent("popstate",{state:{}})))},getCurrentPath:()=>e?window.location.pathname:"/"}},DM=({step:e,currentStep:t,totalSteps:n,nextStep:r,prevStep:i,skipTour:s,arrow:a})=>m.jsxs("div",{style:{backgroundColor:"white",borderRadius:"0.5rem",boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",padding:"1rem",maxWidth:"32rem",minWidth:"16rem"},children:[m.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1rem"},children:[m.jsx("h2",{style:{fontSize:"1.125rem",fontWeight:"bold"},children:e.title}),e.icon&&m.jsx("span",{style:{fontSize:"1.5rem"},children:e.icon})]}),m.jsx("div",{style:{marginBottom:"1rem",fontSize:"0.875rem"},children:e.content}),m.jsx("div",{style:{marginBottom:"1rem",backgroundColor:"#E5E7EB",borderRadius:"9999px",height:"0.625rem"},children:m.jsx("div",{style:{backgroundColor:"#2563EB",height:"0.625rem",borderRadius:"9999px",width:`${(t+1)/n*100}%`}})}),m.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1rem",fontSize:"0.75rem"},children:[m.jsx("button",{onClick:i,style:{padding:"0.5rem 1rem",fontWeight:"500",color:"#4B5563",backgroundColor:"#F3F4F6",borderRadius:"0.375rem",cursor:"pointer",display:e.showControls?"block":"none"},disabled:t===0,children:"Previous"}),m.jsxs("span",{style:{color:"#6B7280",whiteSpace:"nowrap"},children:[t+1," of ",n]}),t===n-1?m.jsx("button",{onClick:r,style:{padding:"0.5rem 1rem",fontWeight:"500",color:"white",backgroundColor:"#10B981",borderRadius:"0.375rem",cursor:"pointer",display:e.showControls?"block":"none"},children:"Finish"}):m.jsx("button",{onClick:r,style:{padding:"0.5rem 1rem",fontWeight:"500",color:"white",backgroundColor:"#2563EB",borderRadius:"0.375rem",cursor:"pointer",display:e.showControls?"block":"none"},children:"Next"})]}),a,s&&t<n-1&&m.jsx("button",{onClick:s,style:{marginTop:"1rem",fontSize:"0.75rem",width:"100%",padding:"0.5rem 1rem",fontWeight:"500",color:"#4B5563",backgroundColor:"#F3F4F6",borderRadius:"0.375rem",cursor:"pointer",display:e.showSkip?"block":"none"},children:"Skip Tour"})]}),_p=({viewportID:e,children:t})=>{const[n,r]=H.useState(null);return H.useEffect(()=>{if(e){const i=document.getElementById(e);i?r(i):(console.warn(`Element with ID "${e}" not found. Rendering into document body.`),r(document.body))}else r(document.body)},[e]),n?Lo.createPortal(t,n):null},BM=({x:e,y:t,width:n,height:r,padding:i,radius:s,shadowOpacity:a,shadowRgb:l,zIndex:c})=>{const u=e-i/2,d=t-i/2,p=n+i,f=r+i;return m.jsx("div",{style:{position:"absolute",inset:0,zIndex:c,pointerEvents:"none"},children:m.jsxs("svg",{width:"100%",height:"100%",children:[m.jsx("defs",{children:m.jsxs("mask",{id:"smooth-spotlight-mask",children:[m.jsx("rect",{width:"100%",height:"100%",fill:"white"}),m.jsx(Or.rect,{initial:!1,animate:{x:u,y:d,width:p,height:f,rx:s,ry:s},transition:{duration:.4,ease:"easeInOut"},fill:"black"})]})}),m.jsx("rect",{width:"100%",height:"100%",fill:`rgba(${l}, ${a})`,mask:"url(#smooth-spotlight-mask)"})]})})},VM=({children:e,steps:t,shadowRgb:n="0, 0, 0",shadowOpacity:r="0.2",cardTransition:i={ease:"anticipate",duration:.6},cardComponent:s,onStart:a=()=>{},onStepChange:l=()=>{},onComplete:c=()=>{},onSkip:u=()=>{},displayArrow:d=!0,clickThroughOverlay:p=!1,navigationAdapter:f=LM,disableConsoleLogs:b=!1,scrollToTop:g=!0,noInViewScroll:h=!1,overlayZIndex:v=999})=>{const{currentTour:w,currentStep:C,setCurrentStep:S,isNextStepVisible:x,closeNextStep:T}=om(),P=t.find(q=>q.tour===w)?.steps,[j,R]=H.useState(null),[k,I]=H.useState(null),A=H.useRef(null),y=H.useRef(null),N=NM(y),M=20,[L,E]=H.useState(0),[V,F]=H.useState(null),[W,D]=H.useState(null),[$,Z]=H.useState(null),te=f(),re=H.useCallback(()=>{T()},[T]);H.useEffect(()=>(window.addEventListener("popstate",re),()=>{window.removeEventListener("popstate",re)}),[re]),H.useEffect(()=>{F(window.document.body),D(window.document.body.getBoundingClientRect()),Z(window.document.body)},[]);const J=te.getCurrentPath()||"/";H.useEffect(()=>{x&&a?.(w)},[w,a,x]),H.useEffect(()=>{if(x&&P){b||console.log("NextStep: Current Step Changed");const q=P[C];let le=window.document.body;if(q&&q.viewportID){const K=document.querySelector(`#${q.viewportID}`);K&&(le=K)}const X=le.getBoundingClientRect();if(F(le),D(X),Z(Bn(le)),q&&q.selector){const K=document.querySelector(q.selector);if(K){I(ie(K)),A.current=K,R(K);const ge=K.getBoundingClientRect();if(!(ge.top>=-M&&ge.bottom<=window.innerHeight+M)){const Te=ae(P?.[C]?.side||"right");K.scrollIntoView({behavior:"smooth",block:Te.includes("top")?"end":Te.includes("bottom")?"start":"center"})}}}else q.viewportID?I({x:Bn(le).getBoundingClientRect().width/2,y:Bn(le).getBoundingClientRect().height/2,width:0,height:0}):I({x:window.innerWidth/2,y:window.innerHeight/2,width:0,height:0}),A.current=null,R(null)}},[C,P,N,M,x]);const U=()=>{let q=window.document.body;if(P&&C!==void 0){const le=P[C];if(le.viewportID){const X=document.querySelector(`#${le.viewportID}`);X&&(q=X)}}F(q),D(q.getBoundingClientRect()),Z(Bn(q))};H.useEffect(()=>{if(x)return U(),window.addEventListener("resize",U),()=>{window.removeEventListener("resize",U)}},[C,J,P,x]);const ie=q=>{const le=q.getBoundingClientRect();let X=window.document.body,K=window.document.body.getBoundingClientRect();if(P&&C!==void 0){const Te=P[C];if(Te.viewportID){const Se=document.querySelector(`#${Te.viewportID}`);Se&&(X=Se,K=X.getBoundingClientRect())}}const ge=le.top-K.top+X.scrollTop;return{x:le.left-K.left+X.scrollLeft,y:ge,width:le.width,height:le.height}};H.useEffect(()=>{if(x&&P){b||console.log("NextStep: Current Step Changed");const q=P[C];let le=window.document.body;if(q&&q.viewportID){const K=document.querySelector(`#${q.viewportID}`);K&&(le=K)}const X=le.getBoundingClientRect();if(F(le),D(X),Z(Bn(le)),q&&q.selector){const K=document.querySelector(q.selector);if(K){I(ie(K)),A.current=K,R(K);const ge=K.getBoundingClientRect();if(!(ge.top>=-M&&ge.bottom<=window.innerHeight+M)){const Te=ae(P?.[C]?.side||"right");K.scrollIntoView({behavior:"smooth",block:Te.includes("top")?"end":Te.includes("bottom")?"start":"center"})}}}else q.viewportID?I({x:Bn(le).getBoundingClientRect().width/2,y:Bn(le).getBoundingClientRect().height/2,width:0,height:0}):I({x:window.innerWidth/2,y:window.innerHeight/2,width:0,height:0}),A.current=null,R(null)}},[C,P,N,M,x]),H.useEffect(()=>{if(j&&!N&&x){b||console.log("NextStep: Element to Scroll Changed");const q=ae(P?.[C]?.side||"right");h||j.scrollIntoView({behavior:"smooth",block:q.includes("top")?"end":q.includes("bottom")?"start":"center",inline:"center"})}else(g||!j)&&window.scrollTo({top:0,behavior:"smooth"})},[j,N,x]);const de=()=>{if(P){const q=P[C];if(q&&q.selector){const le=document.querySelector(q.selector);le&&I(ie(le))}else{const le=document.querySelector(`#${q.viewportID}`);q.viewportID&&le&&$?I({x:Bn(le).getBoundingClientRect().width/2,y:$.getBoundingClientRect().height/2,width:0,height:0}):I({x:window.innerWidth/2,y:window.innerHeight/2,width:0,height:0}),A.current=null,R(null)}}};H.useEffect(()=>{if(x)return window.addEventListener("resize",de),()=>window.removeEventListener("resize",de)},[C,P,x]),H.useEffect(()=>{const q=()=>{const le=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight);E(le)};return q(),window.addEventListener("resize",q),()=>window.removeEventListener("resize",q)},[]),H.useEffect(()=>{if(!x||!w||!P||C===void 0)return;const q=P[C];if(!q.selector)return;const le=document.querySelector(q.selector);if(!le)return;const X=new ResizeObserver(()=>{de(),U()});return X.observe(le),()=>{X.disconnect()}},[C,w]);const ne=()=>{if(P&&C<P.length-1)try{const q=C+1,le=P[C].nextRoute;if(l?.(q,w),le){te.push(le);const X=P[q].selector;X?new MutationObserver((ge,xe)=>{document.querySelector(X)&&(S(q),_(q),xe.disconnect())}).observe(document.body,{childList:!0,subtree:!0}):S(q)}else S(q),_(q)}catch(q){b||console.error("Error navigating to next route",q)}else P&&C===P.length-1&&(c?.(w),T())},ee=()=>{if(P&&C>0)try{const q=C-1,le=P[C].prevRoute;if(l?.(q,w),le){te.push(le);const X=P[q].selector;X?new MutationObserver((ge,xe)=>{document.querySelector(X)&&(S(q),_(q),xe.disconnect())}).observe(document.body,{childList:!0,subtree:!0}):S(q)}else S(q),_(q)}catch(q){b||console.error("Error navigating to previous route",q)}},pe=()=>{u?.(C,w),T()};H.useEffect(()=>{const q=le=>{if(x&&!P?.[C]?.blockKeyboardControl)switch(le.key){case"ArrowRight":ne();break;case"ArrowLeft":ee();break;case"Escape":pe();break}};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[x,ne,ee,pe]);const _=q=>{if(P){const le=P[q].selector;if(le){const X=document.querySelector(le);if(X){const{top:K}=X.getBoundingClientRect();if(!(K>=-M&&K<=window.innerHeight+M)){const xe=ae(P?.[q]?.side||"right");X.scrollIntoView({behavior:"smooth",block:xe.includes("top")?"end":xe.includes("bottom")?"start":"center"})}I(ie(X))}}else P?.[C].viewportID&&$?I({x:$.getBoundingClientRect().width/2,y:$.getBoundingClientRect().height/2,width:0,height:0}):I({x:window.innerWidth/2,y:window.innerHeight/2,width:0,height:0}),A.current=null,R(null)}},ae=q=>{if(!q||!V)return q;let le=q,X=!1;return(q.startsWith("right")&&k&&V.scrollWidth<k.x+k.width+256||q.startsWith("left")&&k&&k.x<256)&&(X=!0),q.includes("top")&&k&&k.y<256?X?le="bottom":le=q.replace("top","bottom"):q.includes("bottom")&&k&&k.y+k.height+256>V.scrollHeight?X?le="top":le=q.replace("bottom","top"):X&&(le=k&&k.y<256?"bottom":"top"),le},ue=q=>{if(!q||!P?.[C].selector)return{top:"50%",left:"50%",transform:"translate(-50%, -50%)",position:"fixed",margin:"0"};switch(q=ae(q),q){case"top":return{transform:"translate(-50%, 0)",left:"50%",bottom:"100%",marginBottom:"25px"};case"bottom":return{transform:"translate(-50%, 0)",left:"50%",top:"100%",marginTop:"25px"};case"left":return{transform:"translate(0, -50%)",right:"100%",top:"50%",marginRight:"25px"};case"right":return{transform:"translate(0, -50%)",left:"100%",top:"50%",marginLeft:"25px"};case"top-left":return{bottom:"100%",marginBottom:"25px"};case"top-right":return{right:0,bottom:"100%",marginBottom:"25px"};case"bottom-left":return{top:"100%",marginTop:"25px"};case"bottom-right":return{right:0,top:"100%",marginTop:"25px"};case"right-bottom":return{left:"100%",bottom:0,marginLeft:"25px"};case"right-top":return{left:"100%",top:0,marginLeft:"25px"};case"left-bottom":return{right:"100%",bottom:0,marginRight:"25px"};case"left-top":return{right:"100%",top:0,marginRight:"25px"};default:return{}}},he=q=>{switch(q=ae(q),q){case"bottom":return{transform:"translate(-50%, 0) rotate(270deg)",left:"50%",top:"-23px"};case"top":return{transform:"translate(-50%, 0) rotate(90deg)",left:"50%",bottom:"-23px"};case"right":return{transform:"translate(0, -50%) rotate(180deg)",top:"50%",left:"-23px"};case"left":return{transform:"translate(0, -50%) rotate(0deg)",top:"50%",right:"-23px"};case"top-left":return{transform:"rotate(90deg)",left:"10px",bottom:"-23px"};case"top-right":return{transform:"rotate(90deg)",right:"10px",bottom:"-23px"};case"bottom-left":return{transform:"rotate(270deg)",left:"10px",top:"-23px"};case"bottom-right":return{transform:"rotate(270deg)",right:"10px",top:"-23px"};case"right-bottom":return{transform:"rotate(180deg)",left:"-23px",bottom:"10px"};case"right-top":return{transform:"rotate(180deg)",left:"-23px",top:"10px"};case"left-bottom":return{transform:"rotate(0deg)",right:"-23px",bottom:"10px"};case"left-top":return{transform:"rotate(0deg)",right:"-23px",top:"10px"};default:return{display:"none"}}},Ae=({isVisible:q})=>q?m.jsx("svg",{viewBox:"0 0 54 54","data-name":"nextstep-arrow",style:{...he(P?.[C]?.side),position:"absolute",width:"1.5rem",height:"1.5rem",transformOrigin:"center"},children:m.jsx("path",{id:"triangle",d:"M27 27L0 0V54L27 27Z",fill:"currentColor"})}):null,Me={visible:{opacity:1},hidden:{opacity:0}},oe=P?.[C]?.pointerPadding??30,$e=oe/2,Ce=P?.[C]?.pointerRadius??28,ve=V?FM(V):!1,se=H.useCallback(q=>{console.warn("No navigation adapter provided. Please provide a navigation adapter or import one from nextstepjs/adapters/*")},[]);return H.useMemo(()=>f||{push:se,getCurrentPath:()=>"/"},[f,se]),m.jsxs("div",{"data-name":"nextstep-wrapper","data-nextstep":"dev",style:{position:"relative",width:"100%"},children:[m.jsx("div",{"data-name":"nextstep-site",style:{display:"block",width:"100%"},children:e}),k&&x&&V&&m.jsx(_p,{viewportID:P?.[C]?.viewportID,children:m.jsxs(Or.div,{"data-name":"nextstep-overlay",initial:"hidden",animate:x?"visible":"hidden",variants:Me,transition:{duration:.5},style:{position:"absolute",top:0,left:0,overflow:"hidden",height:ve?`${V.scrollHeight}px`:"100%",width:ve?`${V.scrollWidth}px`:"100%",zIndex:v-2,pointerEvents:"none"},children:[!p&&W&&m.jsxs("div",{"data-name":"nextstep-prevent-click-overlay",style:{position:"absolute",inset:0,zIndex:v-1,pointerEvents:"none",height:`${V.scrollHeight}px`,width:`${V.scrollWidth}px`},children:[m.jsx("div",{"data-name":"nextstep-prevent-click-overlay-top",style:{position:"absolute",top:0,left:0,right:0,pointerEvents:"auto",height:Math.max(k.y-$e,0)}}),m.jsx("div",{"data-name":"nextstep-prevent-click-overlay-bottom",style:{position:"absolute",left:0,right:0,bottom:0,pointerEvents:"auto",height:`${Math.max(W.height-(k.y+k.height+$e),0)}px`}}),m.jsx("div",{"data-name":"nextstep-prevent-click-overlay-left",style:{position:"absolute",left:0,top:0,pointerEvents:"auto",width:Math.max(k.x-$e,0),height:W.height}}),m.jsx("div",{"data-name":"nextstep-prevent-click-overlay-right",style:{position:"absolute",top:0,pointerEvents:"auto",left:`${k.x+k.width+$e}px`,right:0,height:W.height}})]}),m.jsx(BM,{x:k.x-$e,y:k.y-$e,width:k.width+oe,height:k.height+oe,padding:oe,radius:Ce,shadowOpacity:r,shadowRgb:n,zIndex:v-1}),m.jsx(Or.div,{"data-name":"nextstep-pointer",style:{position:"relative",zIndex:v,borderRadius:`${Ce}px ${Ce}px ${Ce}px ${Ce}px`,pointerEvents:`${P?.[C]?.disableInteraction?"auto":"none"}`},initial:k?{x:k.x-$e,y:k.y-$e,width:k.width+oe,height:k.height+oe}:{},animate:k?{x:k.x-$e,y:k.y-$e,width:k.width+oe,height:k.height+oe}:{},transition:i,children:m.jsx(Or.div,{"data-name":"nextstep-card",transition:i,style:{...ue(P?.[C]?.side),position:"absolute",display:"flex",flexDirection:"column",maxWidth:"100%",minWidth:"min-content",pointerEvents:"auto",zIndex:v},children:s?m.jsx(s,{step:P?.[C],currentStep:C,totalSteps:P?.length??0,nextStep:ne,prevStep:ee,arrow:m.jsx(Ae,{isVisible:!!(P?.[C]?.selector&&d)}),skipTour:pe}):m.jsx(DM,{step:P?.[C],currentStep:C,totalSteps:P?.length??0,nextStep:ne,prevStep:ee,arrow:m.jsx(Ae,{isVisible:!!(P?.[C]?.selector&&d)}),skipTour:pe})})})]})}),k&&x&&P?.[C]?.viewportID&&$&&m.jsx(_p,{children:m.jsx(Or.div,{"data-name":"nextstep-overlay2",initial:"hidden",animate:x?"visible":"hidden",variants:Me,transition:{duration:.5},style:{position:"absolute",top:0,left:0,overflow:"hidden",height:`${L}px`,width:`${document.body.scrollWidth}px`,zIndex:v-2,pointerEvents:"none"},children:!p&&m.jsxs("div",{style:{position:"absolute",inset:0,zIndex:v-1,pointerEvents:"none",width:"100vw",height:L},children:[m.jsx("div",{style:{position:"absolute",left:0,right:0,top:0,pointerEvents:"auto",height:$.getBoundingClientRect().top+window.scrollY,width:`${document.body.scrollWidth}px`,backgroundColor:`rgba(${n}, ${r})`}}),m.jsx("div",{style:{position:"absolute",left:0,right:0,pointerEvents:"auto",top:`${$.getBoundingClientRect().bottom+window.scrollY}px`,height:`${L-$.getBoundingClientRect().bottom-window.scrollY}px`,width:`${document.body.scrollWidth}px`,backgroundColor:`rgba(${n}, ${r})`}}),m.jsx("div",{style:{position:"absolute",pointerEvents:"auto",left:"0",top:$.getBoundingClientRect().top+window.scrollY,width:$.getBoundingClientRect().left+window.scrollX,height:$.getBoundingClientRect().height,backgroundColor:`rgba(${n}, ${r})`}}),m.jsx("div",{style:{position:"absolute",pointerEvents:"auto",top:$.getBoundingClientRect().top+window.scrollY,left:`${$.getBoundingClientRect().right+window.scrollX}px`,width:`${document.body.scrollWidth-$.getBoundingClientRect().right-window.scrollX}px`,height:$.getBoundingClientRect().height,backgroundColor:`rgba(${n}, ${r})`}})]})})})]})},Bn=e=>{let t=e.parentElement;for(;t;){const n=getComputedStyle(t),r=n.overflowY,i=n.overflowX,s=r==="scroll"||r==="auto",a=i==="scroll"||i==="auto";if(s&&t.scrollHeight>t.clientHeight||a&&t.scrollWidth>t.clientWidth)return t;t=t.parentElement}return e},FM=e=>e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth||e===document.body,zM=({step:e,currentStep:t,totalSteps:n,nextStep:r,prevStep:i,skipTour:s,arrow:a})=>{const l=Fe.useTheme(),c=(t+1)/n*100,u=t===n-1,d=t===0;return m.jsxs(Fe.Box,{sx:{position:"relative",bgcolor:"background.paper",borderRadius:3,boxShadow:l.shadows[16],border:"1px solid",borderColor:Fe.alpha(l.palette.primary.main,.2),maxWidth:420,minWidth:300,overflow:"hidden"},children:[m.jsx(Fe.LinearProgress,{variant:"determinate",value:c,sx:{height:3,bgcolor:Fe.alpha(l.palette.primary.main,.08),"& .MuiLinearProgress-bar":{bgcolor:"primary.main",borderRadius:0}}}),m.jsxs(Fe.Box,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",px:2.5,pt:2,pb:0},children:[m.jsxs(Fe.Box,{sx:{display:"flex",alignItems:"center",gap:1.5,flex:1},children:[e.icon&&m.jsx(Fe.Box,{sx:{fontSize:"1.5rem",display:"flex",alignItems:"center",justifyContent:"center",width:40,height:40,borderRadius:2,bgcolor:Fe.alpha(l.palette.primary.main,.1),color:"primary.main",flexShrink:0},children:e.icon}),m.jsxs(Fe.Box,{children:[m.jsx(Fe.Typography,{variant:"subtitle1",sx:{fontWeight:700,lineHeight:1.2},children:e.title}),m.jsxs(Fe.Typography,{variant:"caption",sx:{color:"text.disabled"},children:["Paso ",t+1," de ",n]})]})]}),s&&m.jsx(Fe.IconButton,{size:"small",onClick:s,sx:{color:"text.disabled",ml:1},children:m.jsx(Gs.Close,{fontSize:"small"})})]}),m.jsx(Fe.Box,{sx:{px:2.5,py:1.5},children:m.jsx(Fe.Typography,{variant:"body2",sx:{color:"text.secondary",lineHeight:1.6},children:e.content})}),m.jsxs(Fe.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,pb:2,pt:.5},children:[m.jsx(Fe.Button,{size:"small",startIcon:m.jsx(Gs.ArrowBack,{}),onClick:i,disabled:d,sx:{visibility:d?"hidden":"visible",textTransform:"none"},children:"Anterior"}),m.jsx(Fe.Button,{size:"small",variant:"contained",endIcon:u?void 0:m.jsx(Gs.ArrowForward,{}),onClick:r,sx:{textTransform:"none",borderRadius:2,px:2.5,boxShadow:"none","&:hover":{boxShadow:l.shadows[2]}},children:u?"Finalizar":"Siguiente"})]}),a]})},WM=e=>e.map(t=>({tour:t.id,steps:t.pasos.map(n=>({icon:n.icono??null,title:n.titulo,content:n.contenido,selector:n.selector,side:n.posicion,showControls:n.mostrarControles??!0,showSkip:n.mostrarSaltar??!0,pointerPadding:n.paddingPuntero??8,pointerRadius:n.radioPuntero??12,disableInteraction:n.deshabilitarInteraccion,nextRoute:n.siguienteRuta,prevRoute:n.anteriorRuta,viewportID:n.viewportId,blockKeyboardControl:!1}))})),_M=({children:e,tours:t,colorSombra:n="0, 0, 0",opacidadSombra:r="0.5",mostrarFlecha:i=!0,clickAtravesOverlay:s=!1,alIniciar:a,alCambiarPaso:l,alCompletar:c,alSaltar:u,tarjetaPersonalizada:d,scrollAlInicio:p=!0,deshabilitarLogs:f=!0,zIndexOverlay:b=1400,offsetSuperior:g=80,offsetInferior:h=60})=>{const v=WM(t),w=H.useRef(v);w.current=v;const C=H.useCallback((T,P)=>{const R=w.current.find(k=>k.tour===P)?.steps[T];R?.selector&&setTimeout(()=>{const k=document.querySelector(R.selector);if(!k)return;const I=k.getBoundingClientRect(),A=window.innerHeight;if(I.top<g){const y=window.scrollY+I.top-g-16;window.scrollTo({top:Math.max(0,y),behavior:"smooth"})}else if(I.bottom>A-h){const y=window.scrollY+I.bottom-A+h+16;window.scrollTo({top:y,behavior:"smooth"})}},400)},[g,h]),S=H.useCallback((T,P)=>{C(T,P),l?.(T,P)},[C,l]),x=H.useCallback(T=>{setTimeout(()=>{w.current.find(R=>R.tour===T)?.steps[0]?.selector&&C(0,T)},100),a?.(T)},[C,a]);return m.jsxs(LO,{children:[m.jsx("style",{children:`
|
|
253
|
+
`;const Df=J(An)(({theme:e,colorBase:t})=>({backgroundColor:t||(e.palette.mode==="dark"?re.alpha(e.palette.common.white,.08):re.alpha(e.palette.common.black,.06)),borderRadius:8,"&.MuiSkeleton-text":{marginBottom:4,marginTop:0,borderRadius:4}})),zn=({variante:e="texto",ancho:t,alto:r,animacion:n="pulso",colorBase:i,className:a,...s})=>{const l=u=>u==="texto"?"text":u==="rectangular"?"rectangular":u==="redondeado"?"rounded":u==="circular"?"circular":"text",c=u=>u==="pulso"?"pulse":u==="ola"?"wave":u===!1?!1:"pulse";return h.jsx(Df,{variant:l(e),width:t,height:r,animation:c(n),colorBase:i,className:a,...s})},zf=zn,Ff=zn;function _f(e){return E.Children.toArray(e).filter(t=>E.isValidElement(t))}function Vf(e){return Te("MuiButtonGroup",e)}const pe=we("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),Lf=(e,t)=>{const{ownerState:r}=e;return[{[`& .${pe.grouped}`]:t.grouped},{[`& .${pe.grouped}`]:t[`grouped${G(r.orientation)}`]},{[`& .${pe.grouped}`]:t[`grouped${G(r.variant)}`]},{[`& .${pe.grouped}`]:t[`grouped${G(r.variant)}${G(r.orientation)}`]},{[`& .${pe.grouped}`]:t[`grouped${G(r.variant)}${G(r.color)}`]},{[`& .${pe.firstButton}`]:t.firstButton},{[`& .${pe.lastButton}`]:t.lastButton},{[`& .${pe.middleButton}`]:t.middleButton},t.root,t[r.variant],r.disableElevation===!0&&t.disableElevation,r.fullWidth&&t.fullWidth,r.orientation==="vertical"&&t.vertical]},Wf=e=>{const{classes:t,color:r,disabled:n,disableElevation:i,fullWidth:a,orientation:s,variant:l}=e,c={root:["root",l,s,a&&"fullWidth",i&&"disableElevation",`color${G(r)}`],grouped:["grouped",`grouped${G(s)}`,`grouped${G(l)}`,`grouped${G(l)}${G(s)}`,`grouped${G(l)}${G(r)}`,n&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return $e(c,Vf,t)},Hf=J("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:Lf})(ye(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2],[`& .${pe.grouped}`]:{boxShadow:"none","&:hover":{boxShadow:"none"}}}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${pe.lastButton},& .${pe.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${pe.firstButton},& .${pe.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${pe.firstButton},& .${pe.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${pe.lastButton},& .${pe.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${pe.firstButton},& .${pe.middleButton}`]:{borderRight:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${pe.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${pe.firstButton},& .${pe.middleButton}`]:{borderBottom:e.vars?`1px solid ${e.alpha(e.vars.palette.common.onBackground,.23)}`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${pe.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Ve()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${pe.firstButton},& .${pe.middleButton}`]:{borderColor:e.alpha((e.vars||e).palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${pe.firstButton},& .${pe.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${pe.lastButton},& .${pe.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${pe.firstButton},& .${pe.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${pe.lastButton},& .${pe.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${pe.firstButton},& .${pe.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${pe.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${pe.firstButton},& .${pe.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${pe.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Ve(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${pe.firstButton},& .${pe.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${pe.grouped}`]:{minWidth:40}}))),Es=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiButtonGroup"}),{children:i,className:a,color:s="primary",component:l="div",disabled:c=!1,disableElevation:u=!1,disableFocusRipple:p=!1,disableRipple:m=!1,fullWidth:y=!1,orientation:b="horizontal",size:g="medium",variant:d="outlined",...C}=n,T={...n,color:s,component:l,disabled:c,disableElevation:u,disableFocusRipple:p,disableRipple:m,fullWidth:y,orientation:b,size:g,variant:d},R=Wf(T),S=E.useMemo(()=>({className:R.grouped,color:s,disabled:c,disableElevation:u,disableFocusRipple:p,disableRipple:m,fullWidth:y,size:g,variant:d}),[s,c,u,p,m,y,g,d,R.grouped]),v=_f(i),x=v.length,w=P=>{const I=P===0,M=P===x-1;return I&&M?"":I?R.firstButton:M?R.lastButton:R.middleButton};return h.jsx(Hf,{as:l,role:"group",className:se(R.root,a),ref:r,ownerState:T,...C,children:h.jsx(Pn.Provider,{value:S,children:v.map((P,I)=>h.jsx($n.Provider,{value:w(I),children:P},I))})})});process.env.NODE_ENV!=="production"&&(Es.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,fullWidth:o.bool,orientation:o.oneOf(["horizontal","vertical"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});const Uf=J(Es,{shouldForwardProp:e=>e!=="separado"&&e!=="radio"&&e!=="varianteCustom"})(({theme:e,separado:t,radio:r,varianteCustom:n})=>({boxShadow:t?"none":e.shadows[2],borderRadius:r||(t?0:12),backgroundColor:n==="cristal"?e.palette.mode==="dark"?re.alpha(e.palette.common.white,.05):re.alpha(e.palette.common.white,.6):"transparent",backdropFilter:n==="cristal"?"blur(8px)":"none",border:n==="cristal"?`1px solid ${e.palette.mode==="dark"?re.alpha(e.palette.common.white,.1):re.alpha(e.palette.common.white,.4)}`:"none",...t&&{boxShadow:"none",backgroundColor:"transparent",border:"none",gap:e.spacing(1),"& .MuiButtonGroup-grouped":{borderRadius:r||8,border:"none !important",boxShadow:e.shadows[1],"&:not(:last-of-type)":{borderRight:"none !important"}}},"& .MuiButtonGroup-firstButton, & .MuiButtonGroup-lastButton":{borderRadius:t?r||8:void 0}})),qf=({children:e,tamano:t="m",variante:r="contenido",color:n="primario",orientacion:i="horizontal",separado:a=!1,radio:s,...l})=>{const c=m=>m==="contenido"?"contained":m==="texto"?"text":m==="contorno"?"outlined":m==="cristal"?"text":"contained",u=m=>m==="primario"?"primary":m==="secundario"?"secondary":m==="exito"?"success":m==="error"?"error":m==="info"?"info":m==="advertencia"?"warning":m==="oscuro"||m==="claro"?"inherit":"primary",p=m=>m==="p"?"small":m==="m"?"medium":m==="g"?"large":"medium";return h.jsx(Uf,{size:p(t),variant:c(r),color:u(n),orientation:i,separado:a,radio:s,varianteCustom:r,...l,children:e})},Gf=({step:e,currentStep:t,totalSteps:r,nextStep:n,prevStep:i,skipTour:a,arrow:s})=>{const l=W.useTheme(),c=(t+1)/r*100,u=t===r-1,p=t===0;return h.jsxs(W.Box,{sx:{position:"relative",bgcolor:"background.paper",borderRadius:3,boxShadow:l.shadows[16],border:"1px solid",borderColor:W.alpha(l.palette.primary.main,.2),maxWidth:420,minWidth:300,overflow:"hidden"},children:[h.jsx(W.LinearProgress,{variant:"determinate",value:c,sx:{height:3,bgcolor:W.alpha(l.palette.primary.main,.08),"& .MuiLinearProgress-bar":{bgcolor:"primary.main",borderRadius:0}}}),h.jsxs(W.Box,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",px:2.5,pt:2,pb:0},children:[h.jsxs(W.Box,{sx:{display:"flex",alignItems:"center",gap:1.5,flex:1},children:[e.icon&&h.jsx(W.Box,{sx:{fontSize:"1.5rem",display:"flex",alignItems:"center",justifyContent:"center",width:40,height:40,borderRadius:2,bgcolor:W.alpha(l.palette.primary.main,.1),color:"primary.main",flexShrink:0},children:e.icon}),h.jsxs(W.Box,{children:[h.jsx(W.Typography,{variant:"subtitle1",sx:{fontWeight:700,lineHeight:1.2},children:e.title}),h.jsxs(W.Typography,{variant:"caption",sx:{color:"text.disabled"},children:["Paso ",t+1," de ",r]})]})]}),a&&h.jsx(W.IconButton,{size:"small",onClick:a,sx:{color:"text.disabled",ml:1},children:h.jsx(Po.Close,{fontSize:"small"})})]}),h.jsx(W.Box,{sx:{px:2.5,py:1.5},children:h.jsx(W.Typography,{variant:"body2",sx:{color:"text.secondary",lineHeight:1.6},children:e.content})}),h.jsxs(W.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,pb:2,pt:.5},children:[h.jsx(W.Button,{size:"small",startIcon:h.jsx(Po.ArrowBack,{}),onClick:i,disabled:p,sx:{visibility:p?"hidden":"visible",textTransform:"none"},children:"Anterior"}),h.jsx(W.Button,{size:"small",variant:"contained",endIcon:u?void 0:h.jsx(Po.ArrowForward,{}),onClick:n,sx:{textTransform:"none",borderRadius:2,px:2.5,boxShadow:"none","&:hover":{boxShadow:l.shadows[2]}},children:u?"Finalizar":"Siguiente"})]}),s]})},Yf=e=>e.map(t=>({tour:t.id,steps:t.pasos.map(r=>({icon:r.icono??null,title:r.titulo,content:r.contenido,selector:r.selector,side:r.posicion,showControls:r.mostrarControles??!0,showSkip:r.mostrarSaltar??!0,pointerPadding:r.paddingPuntero??8,pointerRadius:r.radioPuntero??12,disableInteraction:r.deshabilitarInteraccion,nextRoute:r.siguienteRuta,prevRoute:r.anteriorRuta,viewportID:r.viewportId,blockKeyboardControl:!1}))})),Kf=({children:e,tours:t,colorSombra:r="0, 0, 0",opacidadSombra:n="0.5",mostrarFlecha:i=!0,clickAtravesOverlay:a=!1,alIniciar:s,alCambiarPaso:l,alCompletar:c,alSaltar:u,tarjetaPersonalizada:p,scrollAlInicio:m=!0,deshabilitarLogs:y=!0,zIndexOverlay:b=1400,offsetSuperior:g=80,offsetInferior:d=60})=>{const C=Yf(t),T=le.useRef(C);T.current=C;const R=le.useCallback((x,w)=>{const I=T.current.find(M=>M.tour===w)?.steps[x];I?.selector&&setTimeout(()=>{const M=document.querySelector(I.selector);if(!M)return;const z=M.getBoundingClientRect(),B=window.innerHeight;if(z.top<g){const f=window.scrollY+z.top-g-16;window.scrollTo({top:Math.max(0,f),behavior:"smooth"})}else if(z.bottom>B-d){const f=window.scrollY+z.bottom-B+d+16;window.scrollTo({top:f,behavior:"smooth"})}},400)},[g,d]),S=le.useCallback((x,w)=>{R(x,w),l?.(x,w)},[R,l]),v=le.useCallback(x=>{setTimeout(()=>{T.current.find(I=>I.tour===x)?.steps[0]?.selector&&R(0,x)},100),s?.(x)},[R,s]);return h.jsxs(Yo.NextStepProvider,{children:[h.jsx("style",{children:`
|
|
335
254
|
html {
|
|
336
255
|
scroll-padding-top: ${g}px;
|
|
337
|
-
scroll-padding-bottom: ${
|
|
256
|
+
scroll-padding-bottom: ${d}px;
|
|
338
257
|
}
|
|
339
|
-
`}),m.jsx(VM,{steps:v,shadowRgb:n,shadowOpacity:r,displayArrow:i,clickThroughOverlay:s,onStart:x,onStepChange:S,onComplete:c,onSkip:u,cardComponent:d??zM,scrollToTop:p,disableConsoleLogs:f,overlayZIndex:b,children:e})]})};exports.CodeplexAlert=qx;exports.CodeplexAlerta=Wf;exports.CodeplexAutocompletado=Mh;exports.CodeplexAutocomplete=uT;exports.CodeplexAvatar=J0;exports.CodeplexAvatarGroup=Z0;exports.CodeplexAvatarUsuario=Rf;exports.CodeplexAviso=Vf;exports.CodeplexAyudaEntrada=uh;exports.CodeplexBadge=w0;exports.CodeplexBanner=Sx;exports.CodeplexBoton=Vl;exports.CodeplexButton=f0;exports.CodeplexCampoNumero=Nh;exports.CodeplexCampoTexto=Zh;exports.CodeplexCard=xx;exports.CodeplexCargando=Pf;exports.CodeplexCasilla=dc;exports.CodeplexCheckbox=VT;exports.CodeplexDeslizador=Kh;exports.CodeplexDialogo=MO;exports.CodeplexDialogoAcciones=NO;exports.CodeplexDialogoContenido=jO;exports.CodeplexDialogoTexto=$O;exports.CodeplexDialogoTitulo=AO;exports.CodeplexElementoMenu=_o;exports.CodeplexEncabezadoPrincipal=Bf;exports.CodeplexEsqueleto=dh;exports.CodeplexEtiquetaInteligente=Mf;exports.CodeplexGrupoAvatares=kf;exports.CodeplexGrupoBotones=bT;exports.CodeplexGrupoFormulario=uc;exports.CodeplexGrupoRadio=Vh;exports.CodeplexInputHelper=o1;exports.CodeplexInsignia=Tf;exports.CodeplexInterruptor=Xh;exports.CodeplexJumbotron=wx;exports.CodeplexKbd=I0;exports.CodeplexListaTransferencia=tm;exports.CodeplexMensajeEmergente=th;exports.CodeplexNotificacion=rc;exports.CodeplexNumberField=GT;exports.CodeplexPopupRequisitos=_l;exports.CodeplexProgreso=rh;exports.CodeplexProgress=WC;exports.CodeplexRadio=hc;exports.CodeplexRadioGroup=cP;exports.CodeplexRating=n1;exports.CodeplexRequirementsPopup=Q0;exports.CodeplexSelect=EP;exports.CodeplexSelector=_h;exports.CodeplexSkeleton=i1;exports.CodeplexSlider=KP;exports.CodeplexSmartLabel=ex;exports.CodeplexSpinner=k0;exports.CodeplexSubcabeceraLista=Jo;exports.CodeplexSwitch=nO;exports.CodeplexTarjeta=Df;exports.CodeplexTeclado=Of;exports.CodeplexTextField=rO;exports.CodeplexToast=zC;exports.CodeplexTooltip=vC;exports.CodeplexTostada=FC;exports.CodeplexTour=_M;exports.CodeplexTransferList=IO;exports.CodeplexValoracion=ch;exports.EntradaOcultaVisualmente=p0;exports.Ui=qg;exports.avatarCadena=If;exports.stringAvatar=X0;exports.useNextStep=om;
|
|
258
|
+
`}),h.jsx(Yo.NextStepReact,{steps:C,shadowRgb:r,shadowOpacity:n,displayArrow:i,clickThroughOverlay:a,onStart:v,onStepChange:S,onComplete:c,onSkip:u,cardComponent:p??Gf,scrollToTop:m,disableConsoleLogs:y,overlayZIndex:b,children:e})]})},Ho=Pe(h.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),Xf=Pe(h.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),Zf=Pe(h.jsx("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2M3 19c0 1.1.9 2 2 2h3V10H3z"}),"TableChart"),Jf=Pe(h.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M8 20H4v-4h4zm0-6H4v-4h4zm0-6H4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4z"}),"GridOn"),Qf=Pe(h.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z"}),"PictureAsPdf"),em=Pe(h.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),tm=Pe(h.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),rm=Pe(h.jsx("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),om=Pe(h.jsx("path",{d:"M12 3v9.28c-.47-.17-.97-.28-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3z"}),"Audiotrack"),nm=Pe(h.jsx("path",{d:"M20 6h-8l-2-2H6.83l14.93 14.93c.15-.28.24-.59.24-.93V8c0-1.1-.9-2-2-2M2.1 2.1.69 3.51l1.56 1.56c-.15.28-.24.59-.24.93L2 18c0 1.1.9 2 2 2h13.17l3.31 3.31 1.41-1.41z"}),"FolderOff"),im={excel:{aceptar:".xlsx,.xls",etiqueta:"Subir Excel",descripcion:"Excel (.xlsx, .xls)"},csv:{aceptar:".csv",etiqueta:"Subir CSV",descripcion:"Archivo CSV (.csv)"},hojaCalculo:{aceptar:".xlsx,.xls,.csv,.ods,.numbers",etiqueta:"Subir hoja de cálculo",descripcion:"Excel, CSV, ODS, Numbers"},pdf:{aceptar:".pdf",etiqueta:"Subir PDF",descripcion:"Archivo PDF (.pdf)"},documento:{aceptar:".pdf,.doc,.docx,.odt,.txt,.rtf",etiqueta:"Subir documento",descripcion:"PDF, Word, ODT, TXT"},imagen:{aceptar:"image/*",etiqueta:"Subir imagen",descripcion:"PNG, JPG, WebP, GIF, SVG..."},video:{aceptar:"video/*",etiqueta:"Subir video",descripcion:"MP4, WebM, MOV, AVI..."},audio:{aceptar:"audio/*",etiqueta:"Subir audio",descripcion:"MP3, WAV, OGG, AAC..."},cualquiera:{aceptar:"*",etiqueta:"Subir archivo",descripcion:"Cualquier tipo de archivo"}},zr=e=>{if(e===0)return"0 B";const t=1024,r=["B","KB","MB","GB"],n=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,n)).toFixed(1))} ${r[n]}`},am=e=>e.size===0&&e.type===""&&!e.name.includes("."),sm=({nombre:e,color:t})=>{const r=e.split(".").pop()?.toLowerCase()??"",n={fontSize:20,color:t};return["xlsx","xls"].includes(r)?h.jsx(Zf,{sx:n}):r==="csv"?h.jsx(Jf,{sx:n}):r==="pdf"?h.jsx(Qf,{sx:n}):["doc","docx","odt","txt","rtf"].includes(r)?h.jsx(em,{sx:n}):["jpg","jpeg","png","gif","webp","svg","bmp"].includes(r)?h.jsx(tm,{sx:n}):["mp4","avi","mov","webm","mkv"].includes(r)?h.jsx(rm,{sx:n}):["mp3","wav","ogg","aac","flac"].includes(r)?h.jsx(om,{sx:n}):h.jsx(Xf,{sx:n})},lm=(e,t)=>{const r=e.split(".").pop()?.toLowerCase()??"";return["xlsx","xls","csv","ods","numbers"].includes(r)?t.success.main:r==="pdf"?t.error.main:["doc","docx","odt","txt","rtf"].includes(r)?t.info.main:["jpg","jpeg","png","gif","webp","svg"].includes(r)?"#9C27B0":["mp4","avi","mov","webm"].includes(r)?t.warning.main:["mp3","wav","ogg","aac"].includes(r)?"#E91E63":t.text.secondary},cm=J(de,{shouldForwardProp:e=>!["arrastrandoSobre","tieneError","deshabilitado"].includes(String(e))})(({theme:e,arrastrandoSobre:t,tieneError:r,deshabilitado:n})=>({border:`2px dashed ${r?e.palette.error.main:t?e.palette.primary.main:e.palette.divider}`,borderRadius:12,padding:e.spacing(4),textAlign:"center",cursor:n?"not-allowed":"pointer",transition:e.transitions.create(["border-color","background-color"],{duration:200}),backgroundColor:t?re.alpha(e.palette.primary.main,.06):r?re.alpha(e.palette.error.main,.04):e.palette.mode==="dark"?re.alpha(e.palette.common.white,.02):re.alpha(e.palette.common.black,.01),opacity:n?.5:1,userSelect:"none","&:hover":n?{}:{borderColor:r?e.palette.error.main:e.palette.primary.main,backgroundColor:re.alpha(e.palette.primary.main,.04)}})),um=({variante:e="zona",tipoPreestablecido:t,multiple:r=!1,aceptar:n,tamanoMaximo:i,etiqueta:a,descripcion:s,mostrarLista:l=!0,anchoCompleto:c=!1,deshabilitado:u=!1,alCambiar:p,alError:m})=>{const y=Ge(),b=le.useRef(null),g=le.useRef(0),[d,C]=le.useState([]),[T,R]=le.useState(!1),[S,v]=le.useState(null),x=t?im[t]:null,w=n??(x?.aceptar==="*"?void 0:x?.aceptar),P=a??x?.etiqueta,I=s??x?.descripcion,M=(()=>{if(I)return I;const O=[];return w&&O.push(w),i&&O.push(`Máx. ${zr(i)}`),O.length>0?O.join(" · "):r?"Múltiples archivos permitidos":"Un archivo a la vez"})(),z=le.useCallback(O=>{const _=[],U=[];return O.forEach(H=>{if(am(H)){U.push(`"${H.name}" es una carpeta — solo se permiten archivos.`);return}if(i&&H.size>i){U.push(`"${H.name}" supera el máximo permitido (${zr(i)}).`);return}if(w){const Y=w.split(",").map(X=>X.trim().toLowerCase()),Z=("."+(H.name.split(".").pop()??"")).toLowerCase(),Q=H.type.toLowerCase();if(!Y.some(X=>X==="*"?!0:X.startsWith(".")?X===Z:X.endsWith("/*")?Q.startsWith(X.slice(0,-1)):X===Q)){U.push(`"${H.name}" no es un tipo permitido. Se acepta: ${w}`);return}}_.push(H)}),{validos:_,errores:U}},[w,i]),B=le.useCallback(O=>{if(!O||u)return;const _=Array.from(O),{validos:U,errores:H}=z(_);if(H.length>0){const Z=H[0];v(Z),m?.(H),setTimeout(()=>v(null),3e3)}if(U.length===0)return;const Y=U.map(Z=>({id:`${Z.name}-${Z.size}-${Date.now()}-${Math.random()}`,archivo:Z}));C(Z=>{const Q=r?[...Z,...Y]:Y;return p?.(Q.map(ee=>ee.archivo)),Q})},[u,r,z,p,m]),f=O=>{C(_=>{const U=_.filter(H=>H.id!==O);return p?.(U.map(H=>H.archivo)),U})},k=O=>{O.preventDefault(),O.stopPropagation(),!u&&(g.current++,R(!0))},$=O=>{O.preventDefault(),O.stopPropagation()},A=O=>{O.preventDefault(),O.stopPropagation(),g.current--,g.current<=0&&(g.current=0,R(!1))},j=O=>{O.preventDefault(),O.stopPropagation(),g.current=0,R(!1),B(O.dataTransfer.files)},V=O=>{O.stopPropagation(),u||b.current?.click()},N={onDragEnter:k,onDragOver:$,onDragLeave:A,onDrop:j},L=S!==null;return h.jsxs(de,{sx:{width:c?"100%":"auto",display:c?"block":"inline-block"},children:[h.jsx("input",{ref:b,type:"file",multiple:r,accept:w,style:{display:"none"},onChange:O=>B(O.target.files),onClick:O=>{O.target.value=""}}),e==="zona"&&h.jsxs(cm,{arrastrandoSobre:T,tieneError:L,deshabilitado:u,onClick:V,...N,sx:{width:c?"100%":"auto"},children:[L?h.jsx(nm,{sx:{fontSize:48,color:"error.main",mb:1}}):h.jsx(Ho,{sx:{fontSize:48,color:T?"primary.main":"text.disabled",mb:1,transition:"color 0.2s"}}),h.jsx(Fe,{variant:"subtitle1",fontWeight:600,color:L?"error":"text.primary",children:L?S:P??(T?"Suelta los archivos aquí":"Arrastra archivos o haz clic para seleccionar")}),!L&&h.jsx(Fe,{variant:"body2",color:"text.secondary",sx:{mt:.5},children:M})]}),e==="compacto"&&h.jsxs(de,{onClick:V,...N,sx:{display:"inline-flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:2,border:`1px solid ${T?y.palette.primary.main:L?y.palette.error.main:y.palette.divider}`,cursor:u?"not-allowed":"pointer",transition:y.transitions.create(["border-color","background-color"]),opacity:u?.5:1,backgroundColor:T?re.alpha(y.palette.primary.main,.04):L?re.alpha(y.palette.error.main,.04):"transparent",userSelect:"none","&:hover":u?{}:{borderColor:y.palette.primary.main,backgroundColor:re.alpha(y.palette.primary.main,.04)}},children:[h.jsx(Ho,{fontSize:"small",sx:{color:L?"error.main":"primary.main"}}),h.jsx(Fe,{variant:"body2",fontWeight:500,color:L?"error":"text.primary",children:L?"Tipo no permitido":P??"Seleccionar archivo"}),!L&&I&&h.jsxs(Fe,{variant:"caption",color:"text.secondary",children:["(",I,")"]}),!L&&i&&!I&&h.jsxs(Fe,{variant:"caption",color:"text.secondary",children:["(máx. ",zr(i),")"]})]}),e==="boton"&&h.jsxs(de,{component:"button",disabled:u,onClick:V,...N,sx:{display:"inline-flex",alignItems:"center",gap:1,px:2.5,py:1,borderRadius:2,border:"none",backgroundColor:L?"error.main":"primary.main",color:"primary.contrastText",cursor:u?"not-allowed":"pointer",fontFamily:"inherit",fontSize:"0.875rem",fontWeight:600,transition:"background-color 0.2s",opacity:u?.5:1,userSelect:"none","&:hover:not(:disabled)":{backgroundColor:L?"error.dark":"primary.dark"}},children:[h.jsx(Ho,{fontSize:"small"}),L?"Tipo no permitido":P??"Subir archivo"]}),l&&d.length>0&&h.jsx(de,{sx:{mt:1.5,display:"flex",flexDirection:"column",gap:.75},children:d.map(O=>{const _=lm(O.archivo.name,y.palette);return h.jsxs(de,{sx:{display:"flex",alignItems:"center",gap:1.5,px:1.5,py:1,borderRadius:2,border:`1px solid ${O.error?y.palette.error.light:y.palette.divider}`,backgroundColor:O.error?re.alpha(y.palette.error.main,.04):y.palette.background.paper},children:[O.error?h.jsx(In,{sx:{fontSize:20,color:"error.main",flexShrink:0}}):O.progreso===100?h.jsx(La,{sx:{fontSize:20,color:"success.main",flexShrink:0}}):h.jsx(de,{sx:{flexShrink:0},children:h.jsx(sm,{nombre:O.archivo.name,color:_})}),h.jsxs(de,{sx:{flex:1,overflow:"hidden",minWidth:0},children:[h.jsx(Fe,{variant:"body2",fontWeight:500,noWrap:!0,children:O.archivo.name}),O.error?h.jsx(Fe,{variant:"caption",color:"error",children:O.error}):h.jsx(Fe,{variant:"caption",color:"text.secondary",children:zr(O.archivo.size)}),O.progreso!==void 0&&O.progreso<100&&h.jsx(Dn,{variant:"determinate",value:O.progreso,sx:{mt:.5,borderRadius:1,height:4}})]}),h.jsx(Nn,{size:"small",onClick:()=>f(O.id),"aria-label":`Eliminar ${O.archivo.name}`,sx:{flexShrink:0,opacity:.6,"&:hover":{opacity:1}},children:h.jsx(ds,{sx:{fontSize:16}})})]},O.id)})})]})};function Pt(e,t,r,n,i){if(process.env.NODE_ENV==="production")return null;const a=e[t],s=i||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function pm(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Ss(e,t,r,n,i){const a=e[t],s=i||t;if(a==null||typeof window>"u")return null;let l;const c=a.type;return typeof c=="function"&&!pm(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const nr=it(o.element,Ss);nr.isRequired=it(o.element.isRequired,Ss);function jr(e){return parseInt(E.version,10)>=19?e?.props?.ref||null:e?.ref||null}function hn(e){return`scale(${e}, ${e**2})`}const dm={entering:{opacity:1,transform:hn(1)},entered:{opacity:1,transform:"none"}},Uo=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Cr=E.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:p,onExit:m,onExited:y,onExiting:b,style:g,timeout:d="auto",TransitionComponent:C=lt,...T}=t,R=Dt(),S=E.useRef(),v=Ge(),x=E.useRef(null),w=Le(x,jr(a),r),P=A=>j=>{if(A){const V=x.current;j===void 0?A(V):A(V,j)}},I=P(p),M=P((A,j)=>{gs(A);const{duration:V,delay:N,easing:L}=Qt({style:g,timeout:d,easing:s},{mode:"enter"});let O;d==="auto"?(O=v.transitions.getAutoHeightDuration(A.clientHeight),S.current=O):O=V,A.style.transition=[v.transitions.create("opacity",{duration:O,delay:N}),v.transitions.create("transform",{duration:Uo?O:O*.666,delay:N,easing:L})].join(","),c&&c(A,j)}),z=P(u),B=P(b),f=P(A=>{const{duration:j,delay:V,easing:N}=Qt({style:g,timeout:d,easing:s},{mode:"exit"});let L;d==="auto"?(L=v.transitions.getAutoHeightDuration(A.clientHeight),S.current=L):L=j,A.style.transition=[v.transitions.create("opacity",{duration:L,delay:V}),v.transitions.create("transform",{duration:Uo?L:L*.666,delay:Uo?V:V||L*.333,easing:N})].join(","),A.style.opacity=0,A.style.transform=hn(.75),m&&m(A)}),k=P(y),$=A=>{d==="auto"&&R.start(S.current||0,A),n&&n(x.current,A)};return h.jsx(C,{appear:i,in:l,nodeRef:x,onEnter:M,onEntered:z,onEntering:I,onExit:f,onExited:k,onExiting:B,addEndListener:$,timeout:d==="auto"?null:d,...T,children:(A,{ownerState:j,...V})=>E.cloneElement(a,{style:{opacity:0,transform:hn(.75),visibility:A==="exited"&&!l?"hidden":void 0,...dm[A],...g,...a.props.style},ref:w,...V})})});process.env.NODE_ENV!=="production"&&(Cr.propTypes={addEndListener:o.func,appear:o.bool,children:nr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});Cr&&(Cr.muiSupportAuto=!0);function fm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function mm(e){const t=st(e);return t.body===e?Rt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function gr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _i(e){return parseFloat(Rt(e).getComputedStyle(e).paddingRight)||0}function hm(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function Vi(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,s=>{const l=!a.includes(s),c=!hm(s);l&&c&&gr(s,i)})}function qo(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function gm(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(mm(n)){const s=fm(Rt(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${_i(n)+s}px`;const l=st(n).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${_i(c)+s}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=st(n).body;else{const s=n.parentElement,l=Rt(n);a=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:s,property:l})=>{a?s.style.setProperty(l,a):s.style.removeProperty(l)})}}function ym(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class bm{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&gr(t.modalRef,!1);const i=ym(r);Vi(r,t.mount,t.modalRef,i,!0);const a=qo(this.containers,s=>s.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=qo(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=gm(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=qo(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&gr(t.modalRef,r),Vi(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&gr(s.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Fr(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const vm=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xm(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Cm(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function Tm(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Cm(e))}function wm(e){const t=[],r=[];return Array.from(e.querySelectorAll(vm)).forEach((n,i)=>{const a=xm(n);a===-1||!Tm(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function Em(){return!0}function ro(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=wm,isEnabled:s=Em,open:l}=e,c=E.useRef(!1),u=E.useRef(null),p=E.useRef(null),m=E.useRef(null),y=E.useRef(null),b=E.useRef(!1),g=E.useRef(null),d=Le(jr(t),g),C=E.useRef(null);E.useEffect(()=>{!l||!g.current||(b.current=!r)},[r,l]),E.useEffect(()=>{if(!l||!g.current)return;const S=st(g.current),v=Fr(S);return g.current.contains(v)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
259
|
+
`)),g.current.setAttribute("tabIndex","-1")),b.current&&g.current.focus()),()=>{i||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[l]),E.useEffect(()=>{if(!l||!g.current)return;const S=st(g.current),v=P=>{if(C.current=P,n||!s()||P.key!=="Tab")return;Fr(S)===g.current&&P.shiftKey&&(c.current=!0,p.current&&p.current.focus())},x=()=>{const P=g.current;if(P===null)return;const I=Fr(S);if(!S.hasFocus()||!s()||c.current){c.current=!1;return}if(P.contains(I)||n&&I!==u.current&&I!==p.current)return;if(I!==y.current)y.current=null;else if(y.current!==null)return;if(!b.current)return;let M=[];if((I===u.current||I===p.current)&&(M=a(g.current)),M.length>0){const z=!!(C.current?.shiftKey&&C.current?.key==="Tab"),B=M[0],f=M[M.length-1];typeof B!="string"&&typeof f!="string"&&(z?f.focus():B.focus())}else P.focus()};S.addEventListener("focusin",x),S.addEventListener("keydown",v,!0);const w=setInterval(()=>{const P=Fr(S);P&&P.tagName==="BODY"&&x()},50);return()=>{clearInterval(w),S.removeEventListener("focusin",x),S.removeEventListener("keydown",v,!0)}},[r,n,i,s,l,a]);const T=S=>{m.current===null&&(m.current=S.relatedTarget),b.current=!0,y.current=S.target;const v=t.props.onFocus;v&&v(S)},R=S=>{m.current===null&&(m.current=S.relatedTarget),b.current=!0};return h.jsxs(E.Fragment,{children:[h.jsx("div",{tabIndex:l?0:-1,onFocus:R,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:d,onFocus:T}),h.jsx("div",{tabIndex:l?0:-1,onFocus:R,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ro.propTypes={children:nr,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired});process.env.NODE_ENV!=="production"&&(ro.propTypes=xa(ro.propTypes));function Sm(e){return typeof e=="function"?e():e}const Tr=E.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[s,l]=E.useState(null),c=Le(E.isValidElement(n)?jr(n):null,r);if(Ot(()=>{a||l(Sm(i)||document.body)},[i,a]),Ot(()=>{if(s&&!a)return ji(r,s),()=>{ji(r,null)}},[r,s,a]),a){if(E.isValidElement(n)){const u={ref:c};return E.cloneElement(n,u)}return n}return s&&el.createPortal(n,s)});process.env.NODE_ENV!=="production"&&(Tr.propTypes={children:o.node,container:o.oneOfType([Pt,o.func]),disablePortal:o.bool});process.env.NODE_ENV!=="production"&&(Tr.propTypes=xa(Tr.propTypes));const Om={entering:{opacity:1},entered:{opacity:1}},Os=E.forwardRef(function(t,r){const n=Ge(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:u,onEnter:p,onEntered:m,onEntering:y,onExit:b,onExited:g,onExiting:d,style:C,timeout:T=i,TransitionComponent:R=lt,...S}=t,v=E.useRef(null),x=Le(v,jr(l),r),w=$=>A=>{if($){const j=v.current;A===void 0?$(j):$(j,A)}},P=w(y),I=w(($,A)=>{gs($);const j=Qt({style:C,timeout:T,easing:c},{mode:"enter"});$.style.webkitTransition=n.transitions.create("opacity",j),$.style.transition=n.transitions.create("opacity",j),p&&p($,A)}),M=w(m),z=w(d),B=w($=>{const A=Qt({style:C,timeout:T,easing:c},{mode:"exit"});$.style.webkitTransition=n.transitions.create("opacity",A),$.style.transition=n.transitions.create("opacity",A),b&&b($)}),f=w(g),k=$=>{a&&a(v.current,$)};return h.jsx(R,{appear:s,in:u,nodeRef:v,onEnter:I,onEntered:M,onEntering:P,onExit:B,onExited:f,onExiting:z,addEndListener:k,timeout:T,...S,children:($,{ownerState:A,...j})=>E.cloneElement(l,{style:{opacity:0,visibility:$==="exited"&&!u?"hidden":void 0,...Om[$],...C,...l.props.style},ref:x,...j})})});process.env.NODE_ENV!=="production"&&(Os.propTypes={addEndListener:o.func,appear:o.bool,children:nr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function Rm(e){return Te("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const Pm=e=>{const{classes:t,invisible:r}=e;return $e({root:["root",r&&"invisible"]},Rm,t)},$m=J("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Rs=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:l=!1,open:c,components:u={},componentsProps:p={},slotProps:m={},slots:y={},TransitionComponent:b,transitionDuration:g,...d}=n,C={...n,component:s,invisible:l},T=Pm(C),R={transition:b,root:u.Root,...y},S={...p,...m},v={component:s,slots:R,slotProps:S},[x,w]=ge("root",{elementType:$m,externalForwardedProps:v,className:se(T.root,a),ownerState:C}),[P,I]=ge("transition",{elementType:Os,externalForwardedProps:v,ownerState:C});return h.jsx(P,{in:c,timeout:g,...d,...I,children:h.jsx(x,{"aria-hidden":!0,...w,ref:r,children:i})})});process.env.NODE_ENV!=="production"&&(Rs.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function jm(e){return typeof e=="function"?e():e}function km(e){return e?e.props.hasOwnProperty("in"):!1}const Li=()=>{},_r=new bm;function Am(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:p}=e,m=E.useRef({}),y=E.useRef(null),b=E.useRef(null),g=Le(b,p),[d,C]=E.useState(!u),T=km(l);let R=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(R=!1);const S=()=>st(y.current),v=()=>(m.current.modalRef=b.current,m.current.mount=y.current,m.current),x=()=>{_r.mount(v(),{disableScrollLock:n}),b.current&&(b.current.scrollTop=0)},w=yt(()=>{const A=jm(t)||S().body;_r.add(v(),A),b.current&&x()}),P=()=>_r.isTopModal(v()),I=yt(A=>{y.current=A,A&&(u&&P()?x():b.current&&gr(b.current,R))}),M=E.useCallback(()=>{_r.remove(v(),R)},[R]);E.useEffect(()=>()=>{M()},[M]),E.useEffect(()=>{u?w():(!T||!i)&&M()},[u,M,T,i,w]);const z=A=>j=>{A.onKeyDown?.(j),!(j.key!=="Escape"||j.which===229||!P())&&(r||(j.stopPropagation(),c&&c(j,"escapeKeyDown")))},B=A=>j=>{A.onClick?.(j),j.target===j.currentTarget&&c&&c(j,"backdropClick")};return{getRootProps:(A={})=>{const j=qa(e);delete j.onTransitionEnter,delete j.onTransitionExited;const V={...j,...A};return{role:"presentation",...V,onKeyDown:z(V),ref:g}},getBackdropProps:(A={})=>{const j=A;return{"aria-hidden":!0,...j,onClick:B(j),open:u}},getTransitionProps:()=>{const A=()=>{C(!1),a&&a()},j=()=>{C(!0),s&&s(),i&&M()};return{onEnter:ai(A,l?.props.onEnter??Li),onExited:ai(j,l?.props.onExited??Li)}},rootRef:g,portalRef:I,isTopModal:P,exited:d,hasTransition:T}}function Mm(e){return Te("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const Im=e=>{const{open:t,exited:r,classes:n}=e;return $e({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Mm,n)},Nm=J("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(ye(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Bm=J(Rs,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Ps=E.forwardRef(function(t,r){const n=Re({name:"MuiModal",props:t}),{BackdropComponent:i=Bm,BackdropProps:a,classes:s,className:l,closeAfterTransition:c=!1,children:u,container:p,component:m,components:y={},componentsProps:b={},disableAutoFocus:g=!1,disableEnforceFocus:d=!1,disableEscapeKeyDown:C=!1,disablePortal:T=!1,disableRestoreFocus:R=!1,disableScrollLock:S=!1,hideBackdrop:v=!1,keepMounted:x=!1,onClose:w,onTransitionEnter:P,onTransitionExited:I,open:M,slotProps:z={},slots:B={},theme:f,...k}=n,$={...n,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:d,disableEscapeKeyDown:C,disablePortal:T,disableRestoreFocus:R,disableScrollLock:S,hideBackdrop:v,keepMounted:x},{getRootProps:A,getBackdropProps:j,getTransitionProps:V,portalRef:N,isTopModal:L,exited:O,hasTransition:_}=Am({...$,rootRef:r}),U={...$,exited:O},H=Im(U),Y={};if(u.props.tabIndex===void 0&&(Y.tabIndex="-1"),_){const{onEnter:q,onExited:oe}=V();Y.onEnter=q,Y.onExited=oe}const Z={slots:{root:y.Root,backdrop:y.Backdrop,...B},slotProps:{...b,...z}},[Q,ee]=ge("root",{ref:r,elementType:Nm,externalForwardedProps:{...Z,...k,component:m},getSlotProps:A,ownerState:U,className:se(l,H?.root,!U.open&&U.exited&&H?.hidden)}),[X,ne]=ge("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:Z,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:q=>j({...q,onClick:oe=>{q?.onClick&&q.onClick(oe)}}),className:se(a?.className,H?.backdrop),ownerState:U});return!x&&!M&&(!_||O)?null:h.jsx(Tr,{ref:N,container:p,disablePortal:T,children:h.jsxs(Q,{...ee,children:[!v&&i?h.jsx(X,{...ne}):null,h.jsx(ro,{disableEnforceFocus:d,disableAutoFocus:g,disableRestoreFocus:R,isEnabled:L,open:M,children:E.cloneElement(u,Y)})]})})});process.env.NODE_ENV!=="production"&&(Ps.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:nr.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Pt,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Dm(e){return Te("MuiPopover",e)}we("MuiPopover",["root","paper"]);function Wi(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Hi(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Ui(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function mr(e){return typeof e=="function"?e():e}const zm=e=>{const{classes:t}=e;return $e({root:["root"],paper:["paper"]},Dm,t)},Fm=J(Ps,{name:"MuiPopover",slot:"Root"})({}),_m=J(Eo,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$s=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:p,container:m,elevation:y=8,marginThreshold:b=16,open:g,PaperProps:d={},slots:C={},slotProps:T={},transformOrigin:R={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:v="auto",TransitionProps:x={},disableScrollLock:w=!1,...P}=n,I=E.useRef(),M={...n,anchorOrigin:s,anchorReference:c,elevation:y,marginThreshold:b,transformOrigin:R,TransitionComponent:S,transitionDuration:v,TransitionProps:x},z=zm(M),B=E.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const q=mr(a),oe=q&&q.nodeType===1?q:st(I.current).body,F=oe.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ce=oe.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ce.top===0&&ce.left===0&&ce.right===0&&ce.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
260
|
+
`))}return{top:F.top+Wi(F,s.vertical),left:F.left+Hi(F,s.horizontal)}},[a,s.horizontal,s.vertical,l,c]),f=E.useCallback(q=>({vertical:Wi(q,R.vertical),horizontal:Hi(q,R.horizontal)}),[R.horizontal,R.vertical]),k=E.useCallback(q=>{const oe={width:q.offsetWidth,height:q.offsetHeight},F=f(oe);if(c==="none")return{top:null,left:null,transformOrigin:Ui(F)};const ce=B();let ie=ce.top-F.vertical,te=ce.left-F.horizontal;const Ee=ie+oe.height,me=te+oe.width,he=Rt(mr(a)),Ae=he.innerHeight-b,je=he.innerWidth-b;if(b!==null&&ie<b){const ae=ie-b;ie-=ae,F.vertical+=ae}else if(b!==null&&Ee>Ae){const ae=Ee-Ae;ie-=ae,F.vertical+=ae}if(process.env.NODE_ENV!=="production"&&oe.height>Ae&&oe.height&&Ae&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${oe.height-Ae}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
261
|
+
`)),b!==null&&te<b){const ae=te-b;te-=ae,F.horizontal+=ae}else if(me>je){const ae=me-je;te-=ae,F.horizontal+=ae}return{top:`${Math.round(ie)}px`,left:`${Math.round(te)}px`,transformOrigin:Ui(F)}},[a,c,B,f,b]),[$,A]=E.useState(g),j=E.useCallback(()=>{const q=I.current;if(!q)return;const oe=k(q);oe.top!==null&&q.style.setProperty("top",oe.top),oe.left!==null&&(q.style.left=oe.left),q.style.transformOrigin=oe.transformOrigin,A(!0)},[k]);E.useEffect(()=>(w&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[a,w,j]);const V=()=>{j()},N=()=>{A(!1)};E.useEffect(()=>{g&&j()}),E.useImperativeHandle(i,()=>g?{updatePosition:()=>{j()}}:null,[g,j]),E.useEffect(()=>{if(!g)return;const q=Ma(()=>{j()}),oe=Rt(mr(a));return oe.addEventListener("resize",q),()=>{q.clear(),oe.removeEventListener("resize",q)}},[a,g,j]);let L=v;const O={slots:{transition:S,...C},slotProps:{transition:x,paper:d,...T}},[_,U]=ge("transition",{elementType:Cr,externalForwardedProps:O,ownerState:M,getSlotProps:q=>({...q,onEntering:(oe,F)=>{q.onEntering?.(oe,F),V()},onExited:oe=>{q.onExited?.(oe),N()}}),additionalProps:{appear:!0,in:g}});v==="auto"&&!_.muiSupportAuto&&(L=void 0);const H=m||(a?st(mr(a)).body:void 0),[Y,{slots:Z,slotProps:Q,...ee}]=ge("root",{ref:r,elementType:Fm,externalForwardedProps:{...O,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:C.backdrop},slotProps:{backdrop:Au(typeof T.backdrop=="function"?T.backdrop(M):T.backdrop,{invisible:!0})},container:H,open:g},ownerState:M,className:se(z.root,p)}),[X,ne]=ge("paper",{ref:I,className:z.paper,elementType:_m,externalForwardedProps:O,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:$?void 0:{opacity:0}},ownerState:M});return h.jsx(Y,{...ee,...!eo(Y)&&{slots:Z,slotProps:Q,disableScrollLock:w},children:h.jsx(_,{...U,timeout:L,children:h.jsx(X,{...ne,children:u})})})});process.env.NODE_ENV!=="production"&&($s.propTypes={action:$r,anchorEl:it(o.oneOfType([Pt,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=mr(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
262
|
+
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
263
|
+
`))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([Pt,o.func]),disableScrollLock:o.bool,elevation:is,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:xo}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});var Ue="top",rt="bottom",ot="right",qe="left",Fn="auto",kr=[Ue,rt,ot,qe],er="start",wr="end",Vm="clippingParents",js="viewport",lr="popper",Lm="reference",qi=kr.reduce(function(e,t){return e.concat([t+"-"+er,t+"-"+wr])},[]),ks=[].concat(kr,[Fn]).reduce(function(e,t){return e.concat([t,t+"-"+er,t+"-"+wr])},[]),Wm="beforeRead",Hm="read",Um="afterRead",qm="beforeMain",Gm="main",Ym="afterMain",Km="beforeWrite",Xm="write",Zm="afterWrite",Jm=[Wm,Hm,Um,qm,Gm,Ym,Km,Xm,Zm];function ft(e){return e?(e.nodeName||"").toLowerCase():null}function Je(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vt(e){var t=Je(e).Element;return e instanceof t||e instanceof Element}function tt(e){var t=Je(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _n(e){if(typeof ShadowRoot>"u")return!1;var t=Je(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Qm(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!tt(a)||!ft(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(s){var l=i[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function eh(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=s.reduce(function(c,u){return c[u]="",c},{});!tt(i)||!ft(i)||(Object.assign(i.style,l),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}const th={name:"applyStyles",enabled:!0,phase:"write",fn:Qm,effect:eh,requires:["computeStyles"]};function dt(e){return e.split("-")[0]}var _t=Math.max,oo=Math.min,tr=Math.round;function gn(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function As(){return!/^((?!chrome|android).)*safari/i.test(gn())}function rr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&tt(e)&&(i=e.offsetWidth>0&&tr(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&tr(n.height)/e.offsetHeight||1);var s=Vt(e)?Je(e):window,l=s.visualViewport,c=!As()&&r,u=(n.left+(c&&l?l.offsetLeft:0))/i,p=(n.top+(c&&l?l.offsetTop:0))/a,m=n.width/i,y=n.height/a;return{width:m,height:y,top:p,right:u+m,bottom:p+y,left:u,x:u,y:p}}function Vn(e){var t=rr(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Ms(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&_n(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function xt(e){return Je(e).getComputedStyle(e)}function rh(e){return["table","td","th"].indexOf(ft(e))>=0}function jt(e){return((Vt(e)?e.ownerDocument:e.document)||window.document).documentElement}function So(e){return ft(e)==="html"?e:e.assignedSlot||e.parentNode||(_n(e)?e.host:null)||jt(e)}function Gi(e){return!tt(e)||xt(e).position==="fixed"?null:e.offsetParent}function oh(e){var t=/firefox/i.test(gn()),r=/Trident/i.test(gn());if(r&&tt(e)){var n=xt(e);if(n.position==="fixed")return null}var i=So(e);for(_n(i)&&(i=i.host);tt(i)&&["html","body"].indexOf(ft(i))<0;){var a=xt(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Ar(e){for(var t=Je(e),r=Gi(e);r&&rh(r)&&xt(r).position==="static";)r=Gi(r);return r&&(ft(r)==="html"||ft(r)==="body"&&xt(r).position==="static")?t:r||oh(e)||t}function Ln(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yr(e,t,r){return _t(e,oo(t,r))}function nh(e,t,r){var n=yr(e,t,r);return n>r?r:n}function Is(){return{top:0,right:0,bottom:0,left:0}}function Ns(e){return Object.assign({},Is(),e)}function Bs(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var ih=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ns(typeof t!="number"?t:Bs(t,kr))};function ah(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,l=dt(r.placement),c=Ln(l),u=[qe,ot].indexOf(l)>=0,p=u?"height":"width";if(!(!a||!s)){var m=ih(i.padding,r),y=Vn(a),b=c==="y"?Ue:qe,g=c==="y"?rt:ot,d=r.rects.reference[p]+r.rects.reference[c]-s[c]-r.rects.popper[p],C=s[c]-r.rects.reference[c],T=Ar(a),R=T?c==="y"?T.clientHeight||0:T.clientWidth||0:0,S=d/2-C/2,v=m[b],x=R-y[p]-m[g],w=R/2-y[p]/2+S,P=yr(v,w,x),I=c;r.modifiersData[n]=(t={},t[I]=P,t.centerOffset=P-w,t)}}function sh(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Ms(t.elements.popper,i)&&(t.elements.arrow=i))}const lh={name:"arrow",enabled:!0,phase:"main",fn:ah,effect:sh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function or(e){return e.split("-")[1]}var ch={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uh(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:tr(r*i)/i||0,y:tr(n*i)/i||0}}function Yi(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,m=e.isFixed,y=s.x,b=y===void 0?0:y,g=s.y,d=g===void 0?0:g,C=typeof p=="function"?p({x:b,y:d}):{x:b,y:d};b=C.x,d=C.y;var T=s.hasOwnProperty("x"),R=s.hasOwnProperty("y"),S=qe,v=Ue,x=window;if(u){var w=Ar(r),P="clientHeight",I="clientWidth";if(w===Je(r)&&(w=jt(r),xt(w).position!=="static"&&l==="absolute"&&(P="scrollHeight",I="scrollWidth")),w=w,i===Ue||(i===qe||i===ot)&&a===wr){v=rt;var M=m&&w===x&&x.visualViewport?x.visualViewport.height:w[P];d-=M-n.height,d*=c?1:-1}if(i===qe||(i===Ue||i===rt)&&a===wr){S=ot;var z=m&&w===x&&x.visualViewport?x.visualViewport.width:w[I];b-=z-n.width,b*=c?1:-1}}var B=Object.assign({position:l},u&&ch),f=p===!0?uh({x:b,y:d},Je(r)):{x:b,y:d};if(b=f.x,d=f.y,c){var k;return Object.assign({},B,(k={},k[v]=R?"0":"",k[S]=T?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+b+"px, "+d+"px)":"translate3d("+b+"px, "+d+"px, 0)",k))}return Object.assign({},B,(t={},t[v]=R?d+"px":"",t[S]=T?b+"px":"",t.transform="",t))}function ph(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,l=r.roundOffsets,c=l===void 0?!0:l,u={placement:dt(t.placement),variation:or(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Yi(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yi(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const dh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ph,data:{}};var Vr={passive:!0};function fh(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,s=n.resize,l=s===void 0?!0:s,c=Je(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(p){p.addEventListener("scroll",r.update,Vr)}),l&&c.addEventListener("resize",r.update,Vr),function(){a&&u.forEach(function(p){p.removeEventListener("scroll",r.update,Vr)}),l&&c.removeEventListener("resize",r.update,Vr)}}const mh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fh,data:{}};var hh={left:"right",right:"left",bottom:"top",top:"bottom"};function qr(e){return e.replace(/left|right|bottom|top/g,function(t){return hh[t]})}var gh={start:"end",end:"start"};function Ki(e){return e.replace(/start|end/g,function(t){return gh[t]})}function Wn(e){var t=Je(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Hn(e){return rr(jt(e)).left+Wn(e).scrollLeft}function yh(e,t){var r=Je(e),n=jt(e),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,l=0,c=0;if(i){a=i.width,s=i.height;var u=As();(u||!u&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:l+Hn(e),y:c}}function bh(e){var t,r=jt(e),n=Wn(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=_t(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=_t(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+Hn(e),c=-n.scrollTop;return xt(i||r).direction==="rtl"&&(l+=_t(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function Un(e){var t=xt(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Ds(e){return["html","body","#document"].indexOf(ft(e))>=0?e.ownerDocument.body:tt(e)&&Un(e)?e:Ds(So(e))}function br(e,t){var r;t===void 0&&(t=[]);var n=Ds(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Je(n),s=i?[a].concat(a.visualViewport||[],Un(n)?n:[]):n,l=t.concat(s);return i?l:l.concat(br(So(s)))}function yn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vh(e,t){var r=rr(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Xi(e,t,r){return t===js?yn(yh(e,r)):Vt(t)?vh(t,r):yn(bh(jt(e)))}function xh(e){var t=br(So(e)),r=["absolute","fixed"].indexOf(xt(e).position)>=0,n=r&&tt(e)?Ar(e):e;return Vt(n)?t.filter(function(i){return Vt(i)&&Ms(i,n)&&ft(i)!=="body"}):[]}function Ch(e,t,r,n){var i=t==="clippingParents"?xh(e):[].concat(t),a=[].concat(i,[r]),s=a[0],l=a.reduce(function(c,u){var p=Xi(e,u,n);return c.top=_t(p.top,c.top),c.right=oo(p.right,c.right),c.bottom=oo(p.bottom,c.bottom),c.left=_t(p.left,c.left),c},Xi(e,s,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function zs(e){var t=e.reference,r=e.element,n=e.placement,i=n?dt(n):null,a=n?or(n):null,s=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,c;switch(i){case Ue:c={x:s,y:t.y-r.height};break;case rt:c={x:s,y:t.y+t.height};break;case ot:c={x:t.x+t.width,y:l};break;case qe:c={x:t.x-r.width,y:l};break;default:c={x:t.x,y:t.y}}var u=i?Ln(i):null;if(u!=null){var p=u==="y"?"height":"width";switch(a){case er:c[u]=c[u]-(t[p]/2-r[p]/2);break;case wr:c[u]=c[u]+(t[p]/2-r[p]/2);break}}return c}function Er(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,l=r.boundary,c=l===void 0?Vm:l,u=r.rootBoundary,p=u===void 0?js:u,m=r.elementContext,y=m===void 0?lr:m,b=r.altBoundary,g=b===void 0?!1:b,d=r.padding,C=d===void 0?0:d,T=Ns(typeof C!="number"?C:Bs(C,kr)),R=y===lr?Lm:lr,S=e.rects.popper,v=e.elements[g?R:y],x=Ch(Vt(v)?v:v.contextElement||jt(e.elements.popper),c,p,s),w=rr(e.elements.reference),P=zs({reference:w,element:S,placement:i}),I=yn(Object.assign({},S,P)),M=y===lr?I:w,z={top:x.top-M.top+T.top,bottom:M.bottom-x.bottom+T.bottom,left:x.left-M.left+T.left,right:M.right-x.right+T.right},B=e.modifiersData.offset;if(y===lr&&B){var f=B[i];Object.keys(z).forEach(function(k){var $=[ot,rt].indexOf(k)>=0?1:-1,A=[Ue,rt].indexOf(k)>=0?"y":"x";z[k]+=f[A]*$})}return z}function Th(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,s=r.padding,l=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?ks:c,p=or(n),m=p?l?qi:qi.filter(function(g){return or(g)===p}):kr,y=m.filter(function(g){return u.indexOf(g)>=0});y.length===0&&(y=m);var b=y.reduce(function(g,d){return g[d]=Er(e,{placement:d,boundary:i,rootBoundary:a,padding:s})[dt(d)],g},{});return Object.keys(b).sort(function(g,d){return b[g]-b[d]})}function wh(e){if(dt(e)===Fn)return[];var t=qr(e);return[Ki(e),t,Ki(t)]}function Eh(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,l=s===void 0?!0:s,c=r.fallbackPlacements,u=r.padding,p=r.boundary,m=r.rootBoundary,y=r.altBoundary,b=r.flipVariations,g=b===void 0?!0:b,d=r.allowedAutoPlacements,C=t.options.placement,T=dt(C),R=T===C,S=c||(R||!g?[qr(C)]:wh(C)),v=[C].concat(S).reduce(function(Y,Z){return Y.concat(dt(Z)===Fn?Th(t,{placement:Z,boundary:p,rootBoundary:m,padding:u,flipVariations:g,allowedAutoPlacements:d}):Z)},[]),x=t.rects.reference,w=t.rects.popper,P=new Map,I=!0,M=v[0],z=0;z<v.length;z++){var B=v[z],f=dt(B),k=or(B)===er,$=[Ue,rt].indexOf(f)>=0,A=$?"width":"height",j=Er(t,{placement:B,boundary:p,rootBoundary:m,altBoundary:y,padding:u}),V=$?k?ot:qe:k?rt:Ue;x[A]>w[A]&&(V=qr(V));var N=qr(V),L=[];if(a&&L.push(j[f]<=0),l&&L.push(j[V]<=0,j[N]<=0),L.every(function(Y){return Y})){M=B,I=!1;break}P.set(B,L)}if(I)for(var O=g?3:1,_=function(Z){var Q=v.find(function(ee){var X=P.get(ee);if(X)return X.slice(0,Z).every(function(ne){return ne})});if(Q)return M=Q,"break"},U=O;U>0;U--){var H=_(U);if(H==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const Sh={name:"flip",enabled:!0,phase:"main",fn:Eh,requiresIfExists:["offset"],data:{_skip:!1}};function Zi(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ji(e){return[Ue,ot,rt,qe].some(function(t){return e[t]>=0})}function Oh(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=Er(t,{elementContext:"reference"}),l=Er(t,{altBoundary:!0}),c=Zi(s,n),u=Zi(l,i,a),p=Ji(c),m=Ji(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const Rh={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Oh};function Ph(e,t,r){var n=dt(e),i=[qe,Ue].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],l=a[1];return s=s||0,l=(l||0)*i,[qe,ot].indexOf(n)>=0?{x:l,y:s}:{x:s,y:l}}function $h(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,s=ks.reduce(function(p,m){return p[m]=Ph(m,t.rects,a),p},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}const jh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$h};function kh(e){var t=e.state,r=e.name;t.modifiersData[r]=zs({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Ah={name:"popperOffsets",enabled:!0,phase:"read",fn:kh,data:{}};function Mh(e){return e==="x"?"y":"x"}function Ih(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,s=r.altAxis,l=s===void 0?!1:s,c=r.boundary,u=r.rootBoundary,p=r.altBoundary,m=r.padding,y=r.tether,b=y===void 0?!0:y,g=r.tetherOffset,d=g===void 0?0:g,C=Er(t,{boundary:c,rootBoundary:u,padding:m,altBoundary:p}),T=dt(t.placement),R=or(t.placement),S=!R,v=Ln(T),x=Mh(v),w=t.modifiersData.popperOffsets,P=t.rects.reference,I=t.rects.popper,M=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,z=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,f={x:0,y:0};if(w){if(a){var k,$=v==="y"?Ue:qe,A=v==="y"?rt:ot,j=v==="y"?"height":"width",V=w[v],N=V+C[$],L=V-C[A],O=b?-I[j]/2:0,_=R===er?P[j]:I[j],U=R===er?-I[j]:-P[j],H=t.elements.arrow,Y=b&&H?Vn(H):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Is(),Q=Z[$],ee=Z[A],X=yr(0,P[j],Y[j]),ne=S?P[j]/2-O-X-Q-z.mainAxis:_-X-Q-z.mainAxis,q=S?-P[j]/2+O+X+ee+z.mainAxis:U+X+ee+z.mainAxis,oe=t.elements.arrow&&Ar(t.elements.arrow),F=oe?v==="y"?oe.clientTop||0:oe.clientLeft||0:0,ce=(k=B?.[v])!=null?k:0,ie=V+ne-ce-F,te=V+q-ce,Ee=yr(b?oo(N,ie):N,V,b?_t(L,te):L);w[v]=Ee,f[v]=Ee-V}if(l){var me,he=v==="x"?Ue:qe,Ae=v==="x"?rt:ot,je=w[x],ae=x==="y"?"height":"width",K=je+C[he],Be=je-C[Ae],ze=[Ue,qe].indexOf(T)!==-1,Ye=(me=B?.[x])!=null?me:0,We=ze?K:je-P[ae]-I[ae]-Ye+z.altAxis,_e=ze?je+P[ae]+I[ae]-Ye-z.altAxis:Be,He=b&&ze?nh(We,je,_e):yr(b?We:K,je,b?_e:Be);w[x]=He,f[x]=He-je}t.modifiersData[n]=f}}const Nh={name:"preventOverflow",enabled:!0,phase:"main",fn:Ih,requiresIfExists:["offset"]};function Bh(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Dh(e){return e===Je(e)||!tt(e)?Wn(e):Bh(e)}function zh(e){var t=e.getBoundingClientRect(),r=tr(t.width)/e.offsetWidth||1,n=tr(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Fh(e,t,r){r===void 0&&(r=!1);var n=tt(t),i=tt(t)&&zh(t),a=jt(t),s=rr(e,i,r),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((ft(t)!=="body"||Un(a))&&(l=Dh(t)),tt(t)?(c=rr(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Hn(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function _h(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!r.has(l)){var c=t.get(l);c&&i(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function Vh(e){var t=_h(e);return Jm.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Lh(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Wh(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Qi={placement:"bottom",modifiers:[],strategy:"absolute"};function ea(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Hh(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?Qi:i;return function(l,c,u){u===void 0&&(u=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qi,a),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},m=[],y=!1,b={state:p,setOptions:function(T){var R=typeof T=="function"?T(p.options):T;d(),p.options=Object.assign({},a,p.options,R),p.scrollParents={reference:Vt(l)?br(l):l.contextElement?br(l.contextElement):[],popper:br(c)};var S=Vh(Wh([].concat(n,p.options.modifiers)));return p.orderedModifiers=S.filter(function(v){return v.enabled}),g(),b.update()},forceUpdate:function(){if(!y){var T=p.elements,R=T.reference,S=T.popper;if(ea(R,S)){p.rects={reference:Fh(R,Ar(S),p.options.strategy==="fixed"),popper:Vn(S)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(z){return p.modifiersData[z.name]=Object.assign({},z.data)});for(var v=0;v<p.orderedModifiers.length;v++){if(p.reset===!0){p.reset=!1,v=-1;continue}var x=p.orderedModifiers[v],w=x.fn,P=x.options,I=P===void 0?{}:P,M=x.name;typeof w=="function"&&(p=w({state:p,options:I,name:M,instance:b})||p)}}}},update:Lh(function(){return new Promise(function(C){b.forceUpdate(),C(p)})}),destroy:function(){d(),y=!0}};if(!ea(l,c))return b;b.setOptions(u).then(function(C){!y&&u.onFirstUpdate&&u.onFirstUpdate(C)});function g(){p.orderedModifiers.forEach(function(C){var T=C.name,R=C.options,S=R===void 0?{}:R,v=C.effect;if(typeof v=="function"){var x=v({state:p,name:T,instance:b,options:S}),w=function(){};m.push(x||w)}})}function d(){m.forEach(function(C){return C()}),m=[]}return b}}var Uh=[mh,Ah,dh,th,jh,Sh,Nh,lh,Rh],qh=Hh({defaultModifiers:Uh});function Gh(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1,...a}=e,s=i?{}:Ua(r,n),{props:l,internalRef:c}=Ga({...a,externalSlotProps:s}),u=Le(c,s?.ref,e.additionalProps?.ref);return Ha(t,{...l,ref:u},n)}function Yh(e){return Te("MuiPopper",e)}we("MuiPopper",["root"]);function Kh(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function no(e){return typeof e=="function"?e():e}function Oo(e){return e.nodeType!==void 0}function Xh(e){return!Oo(e)}const Zh=e=>{const{classes:t}=e;return $e({root:["root"]},Yh,t)},Jh={},Qh=E.forwardRef(function(t,r){const{anchorEl:n,children:i,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:p,popperRef:m,slotProps:y={},slots:b={},TransitionProps:g,ownerState:d,...C}=t,T=E.useRef(null),R=Le(T,r),S=E.useRef(null),v=Le(S,m),x=E.useRef(v);Ot(()=>{x.current=v},[v]),E.useImperativeHandle(m,()=>S.current,[]);const w=Kh(u,a),[P,I]=E.useState(w),[M,z]=E.useState(no(n));E.useEffect(()=>{S.current&&S.current.forceUpdate()}),E.useEffect(()=>{n&&z(no(n))},[n]),Ot(()=>{if(!M||!c)return;const A=N=>{I(N.placement)};if(process.env.NODE_ENV!=="production"&&M&&Oo(M)&&M.nodeType===1){const N=M.getBoundingClientRect();process.env.NODE_ENV!=="test"&&N.top===0&&N.left===0&&N.right===0&&N.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
264
|
+
`))}let j=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:N})=>{A(N)}}];l!=null&&(j=j.concat(l)),p&&p.modifiers!=null&&(j=j.concat(p.modifiers));const V=qh(M,T.current,{placement:w,...p,modifiers:j});return x.current(V),()=>{V.destroy(),x.current(null)}},[M,s,l,c,p,w]);const B={placement:P};g!==null&&(B.TransitionProps=g);const f=Zh(t),k=b.root??"div",$=Gh({elementType:k,externalSlotProps:y.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:R},ownerState:t,className:f.root});return h.jsx(k,{...$,children:typeof i=="function"?i(B):i})}),Fs=E.forwardRef(function(t,r){const{anchorEl:n,children:i,container:a,direction:s="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:p,placement:m="bottom",popperOptions:y=Jh,popperRef:b,style:g,transition:d=!1,slotProps:C={},slots:T={},...R}=t,[S,v]=E.useState(!0),x=()=>{v(!1)},w=()=>{v(!0)};if(!c&&!p&&(!d||S))return null;let P;if(a)P=a;else if(n){const z=no(n);P=z&&Oo(z)?st(z).body:st(null).body}const I=!p&&c&&(!d||S)?"none":void 0,M=d?{in:p,onEnter:x,onExited:w}:void 0;return h.jsx(Tr,{disablePortal:l,container:P,children:h.jsx(Qh,{anchorEl:n,direction:s,disablePortal:l,modifiers:u,ref:r,open:d?!S:p,placement:m,popperOptions:y,popperRef:b,slotProps:C,slots:T,...R,style:{position:"fixed",top:0,left:0,display:I,...g},TransitionProps:M,children:i})})});process.env.NODE_ENV!=="production"&&(Fs.propTypes={anchorEl:it(o.oneOfType([Pt,o.object,o.func]),e=>{if(e.open){const t=no(e.anchorEl);if(t&&Oo(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
265
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||Xh(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
266
|
+
`))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Pt,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:$r,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const eg=J(Fs,{name:"MuiPopper",slot:"Root"})({}),qn=E.forwardRef(function(t,r){const n=bo(),i=Re({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:u,disablePortal:p,keepMounted:m,modifiers:y,open:b,placement:g,popperOptions:d,popperRef:C,transition:T,slots:R,slotProps:S,...v}=i,x=R?.root??l?.Root,w={anchorEl:a,container:u,disablePortal:p,keepMounted:m,modifiers:y,open:b,placement:g,popperOptions:d,popperRef:C,transition:T,...v};return h.jsx(eg,{as:s,direction:n?"rtl":"ltr",slots:{root:x},slotProps:S??c,...w,ref:r})});process.env.NODE_ENV!=="production"&&(qn.propTypes={anchorEl:o.oneOfType([Pt,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Pt,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:$r,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function tg(e){return Te("MuiTooltip",e)}const Ne=we("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function rg(e){return Math.round(e*1e5)/1e5}const og=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:a}=e,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${G(a.split("-")[0])}`],arrow:["arrow"]};return $e(s,tg,t)},ng=J(qn,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(ye(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ne.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ne.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ne.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ne.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ne.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ne.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ne.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ne.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),ig=J("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${G(r.placement.split("-")[0])}`]]}})(ye(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Ne.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ne.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ne.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ne.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${rg(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Ne.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ne.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Ne.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ne.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Ne.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ne.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Ne.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ne.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ne.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ne.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),ag=J("span",{name:"MuiTooltip",slot:"Arrow"})(ye(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Lr=!1;const ta=new Co;let cr={x:0,y:0};function Wr(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const bn=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:a,classes:s,components:l={},componentsProps:c={},describeChild:u=!1,disableFocusListener:p=!1,disableHoverListener:m=!1,disableInteractive:y=!1,disableTouchListener:b=!1,enterDelay:g=100,enterNextDelay:d=0,enterTouchDelay:C=700,followCursor:T=!1,id:R,leaveDelay:S=0,leaveTouchDelay:v=1500,onClose:x,onOpen:w,open:P,placement:I="bottom",PopperComponent:M,PopperProps:z={},slotProps:B={},slots:f={},title:k,TransitionComponent:$,TransitionProps:A,...j}=n,V=E.isValidElement(a)?a:h.jsx("span",{children:a}),N=Ge(),L=bo(),[O,_]=E.useState(),[U,H]=E.useState(null),Y=E.useRef(!1),Z=y||T,Q=Dt(),ee=Dt(),X=Dt(),ne=Dt(),[q,oe]=Ia({controlled:P,default:!1,name:"Tooltip",state:"open"});let F=q;if(process.env.NODE_ENV!=="production"){const{current:ue}=E.useRef(P!==void 0);E.useEffect(()=>{O&&O.disabled&&!ue&&k!==""&&O.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
267
|
+
`))},[k,O,ue])}const ce=Pr(R),ie=E.useRef(),te=yt(()=>{ie.current!==void 0&&(document.body.style.WebkitUserSelect=ie.current,ie.current=void 0),ne.clear()});E.useEffect(()=>te,[te]);const Ee=ue=>{ta.clear(),Lr=!0,oe(!0),w&&!F&&w(ue)},me=yt(ue=>{ta.start(800+S,()=>{Lr=!1}),oe(!1),x&&F&&x(ue),Q.start(N.transitions.duration.shortest,()=>{Y.current=!1})}),he=ue=>{Y.current&&ue.type!=="touchstart"||(O&&O.removeAttribute("title"),ee.clear(),X.clear(),g||Lr&&d?ee.start(Lr?d:g,()=>{Ee(ue)}):Ee(ue))},Ae=ue=>{ee.clear(),X.start(S,()=>{me(ue)})},[,je]=E.useState(!1),ae=ue=>{Jt(ue.target)||(je(!1),Ae(ue))},K=ue=>{O||_(ue.currentTarget),Jt(ue.target)&&(je(!0),he(ue))},Be=ue=>{Y.current=!0;const Tt=V.props;Tt.onTouchStart&&Tt.onTouchStart(ue)},ze=ue=>{Be(ue),X.clear(),Q.clear(),te(),ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.start(C,()=>{document.body.style.WebkitUserSelect=ie.current,he(ue)})},Ye=ue=>{V.props.onTouchEnd&&V.props.onTouchEnd(ue),te(),X.start(v,()=>{me(ue)})};E.useEffect(()=>{if(!F)return;function ue(Tt){Tt.key==="Escape"&&me(Tt)}return document.addEventListener("keydown",ue),()=>{document.removeEventListener("keydown",ue)}},[me,F]);const We=Le(jr(V),_,r);!k&&k!==0&&(F=!1);const _e=E.useRef(),He=ue=>{const Tt=V.props;Tt.onMouseMove&&Tt.onMouseMove(ue),cr={x:ue.clientX,y:ue.clientY},_e.current&&_e.current.update()},Ke={},Lt=typeof k=="string";u?(Ke.title=!F&&Lt&&!m?k:null,Ke["aria-describedby"]=F?ce:null):(Ke["aria-label"]=Lt?k:null,Ke["aria-labelledby"]=F&&!Lt?ce:null);const fe={...Ke,...j,...V.props,className:se(j.className,V.props.className),onTouchStart:Be,ref:We,...T?{onMouseMove:He}:{}};process.env.NODE_ENV!=="production"&&(fe["data-mui-internal-clone-element"]=!0,E.useEffect(()=>{O&&!O.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
268
|
+
`))},[O]));const Ct={};b||(fe.onTouchStart=ze,fe.onTouchEnd=Ye),m||(fe.onMouseOver=Wr(he,fe.onMouseOver),fe.onMouseLeave=Wr(Ae,fe.onMouseLeave),Z||(Ct.onMouseOver=he,Ct.onMouseLeave=Ae)),p||(fe.onFocus=Wr(K,fe.onFocus),fe.onBlur=Wr(ae,fe.onBlur),Z||(Ct.onFocus=K,Ct.onBlur=ae)),process.env.NODE_ENV!=="production"&&V.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${V.props.title}\` or the Tooltip component.`].join(`
|
|
269
|
+
`));const ct={...n,isRtl:L,arrow:i,disableInteractive:Z,placement:I,PopperComponentProp:M,touch:Y.current},ir=typeof B.popper=="function"?B.popper(ct):B.popper,Ws=E.useMemo(()=>{let ue=[{name:"arrow",enabled:!!U,options:{element:U,padding:4}}];return z.popperOptions?.modifiers&&(ue=ue.concat(z.popperOptions.modifiers)),ir?.popperOptions?.modifiers&&(ue=ue.concat(ir.popperOptions.modifiers)),{...z.popperOptions,...ir?.popperOptions,modifiers:ue}},[U,z.popperOptions,ir?.popperOptions]),Ro=og(ct),Hs=typeof B.transition=="function"?B.transition(ct):B.transition,Mr={slots:{popper:l.Popper,transition:l.Transition??$,tooltip:l.Tooltip,arrow:l.Arrow,...f},slotProps:{arrow:B.arrow??c.arrow,popper:{...z,...ir??c.popper},tooltip:B.tooltip??c.tooltip,transition:{...A,...Hs??c.transition}}},[Us,qs]=ge("popper",{elementType:ng,externalForwardedProps:Mr,ownerState:ct,className:se(Ro.popper,z?.className)}),[Gs,Ys]=ge("transition",{elementType:Cr,externalForwardedProps:Mr,ownerState:ct}),[Ks,Xs]=ge("tooltip",{elementType:ig,className:Ro.tooltip,externalForwardedProps:Mr,ownerState:ct}),[Zs,Js]=ge("arrow",{elementType:ag,className:Ro.arrow,externalForwardedProps:Mr,ownerState:ct,ref:H});return h.jsxs(E.Fragment,{children:[E.cloneElement(V,fe),h.jsx(Us,{as:M??qn,placement:I,anchorEl:T?{getBoundingClientRect:()=>({top:cr.y,left:cr.x,right:cr.x,bottom:cr.y,width:0,height:0})}:O,popperRef:_e,open:O?F:!1,id:ce,transition:!0,...Ct,...qs,popperOptions:Ws,children:({TransitionProps:ue})=>h.jsx(Gs,{timeout:N.transitions.duration.shorter,...ue,...Ys,children:h.jsxs(Ks,{...Xs,children:[k,i?h.jsx(Zs,{...Js}):null]})})})]})});process.env.NODE_ENV!=="production"&&(bn.propTypes={arrow:o.bool,children:nr.isRequired,classes:o.object,className:o.string,components:o.shape({Arrow:o.elementType,Popper:o.elementType,Tooltip:o.elementType,Transition:o.elementType}),componentsProps:o.shape({arrow:o.object,popper:o.object,tooltip:o.object,transition:o.object}),describeChild:o.bool,disableFocusListener:o.bool,disableHoverListener:o.bool,disableInteractive:o.bool,disableTouchListener:o.bool,enterDelay:o.number,enterNextDelay:o.number,enterTouchDelay:o.number,followCursor:o.bool,id:o.string,leaveDelay:o.number,leaveTouchDelay:o.number,onClose:o.func,onOpen:o.func,open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:o.elementType,PopperProps:o.object,slotProps:o.shape({arrow:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),tooltip:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({arrow:o.elementType,popper:o.elementType,tooltip:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,TransitionComponent:o.elementType,TransitionProps:o.object});function Hr(e){return parseInt(e,10)||0}const sg={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function lg(e){for(const t in e)return!1;return!0}function ra(e){return lg(e)||e.outerHeightStyle===0&&!e.overflowing}const _s=E.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:s,value:l,...c}=t,{current:u}=E.useRef(l!=null),p=E.useRef(null),m=Le(r,p),y=E.useRef(null),b=E.useRef(null),g=E.useCallback(()=>{const S=p.current,v=b.current;if(!S||!v)return;const w=Rt(S).getComputedStyle(S);if(w.width==="0px")return{outerHeightStyle:0,overflowing:!1};v.style.width=w.width,v.value=S.value||t.placeholder||"x",v.value.slice(-1)===`
|
|
270
|
+
`&&(v.value+=" ");const P=w.boxSizing,I=Hr(w.paddingBottom)+Hr(w.paddingTop),M=Hr(w.borderBottomWidth)+Hr(w.borderTopWidth),z=v.scrollHeight;v.value="x";const B=v.scrollHeight;let f=z;a&&(f=Math.max(Number(a)*B,f)),i&&(f=Math.min(Number(i)*B,f)),f=Math.max(f,B);const k=f+(P==="border-box"?I+M:0),$=Math.abs(f-z)<=1;return{outerHeightStyle:k,overflowing:$}},[i,a,t.placeholder]),d=yt(()=>{const S=p.current,v=g();if(!S||!v||ra(v))return!1;const x=v.outerHeightStyle;return y.current!=null&&y.current!==x}),C=E.useCallback(()=>{const S=p.current,v=g();if(!S||!v||ra(v))return;const x=v.outerHeightStyle;y.current!==x&&(y.current=x,S.style.height=`${x}px`),S.style.overflow=v.overflowing?"hidden":""},[g]),T=E.useRef(-1);Ot(()=>{const S=Ma(C),v=p?.current;if(!v)return;const x=Rt(v);x.addEventListener("resize",S);let w;return typeof ResizeObserver<"u"&&(w=new ResizeObserver(()=>{d()&&(w.unobserve(v),cancelAnimationFrame(T.current),C(),T.current=requestAnimationFrame(()=>{w.observe(v)}))}),w.observe(v)),()=>{S.clear(),cancelAnimationFrame(T.current),x.removeEventListener("resize",S),w&&w.disconnect()}},[g,C,d]),Ot(()=>{C()});const R=S=>{u||C();const v=S.target,x=v.value.length,w=v.value.endsWith(`
|
|
271
|
+
`),P=v.selectionStart===x;w&&P&&v.setSelectionRange(x,x),n&&n(S)};return h.jsxs(E.Fragment,{children:[h.jsx("textarea",{value:l,onChange:R,ref:m,rows:a,style:s,...c}),h.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...sg.shadow,...s,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(_s.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function cg({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const Gn=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(Gn.displayName="FormControlContext");function ug(){return E.useContext(Gn)}function oa(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function pg(e,t=!1){return e&&(oa(e.value)&&e.value!==""||t&&oa(e.defaultValue)&&e.defaultValue!=="")}function dg(e){return Te("MuiInputBase",e)}const vn=we("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var na;const fg=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${G(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},mg=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},hg=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:s,formControl:l,fullWidth:c,hiddenLabel:u,multiline:p,readOnly:m,size:y,startAdornment:b,type:g}=e,d={root:["root",`color${G(r)}`,n&&"disabled",i&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",y&&y!=="medium"&&`size${G(y)}`,p&&"multiline",b&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",m&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",p&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",b&&"inputAdornedStart",a&&"inputAdornedEnd",m&&"readOnly"]};return $e(d,dg,t)},gg=J("div",{name:"MuiInputBase",slot:"Root",overridesResolver:fg})(ye(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${vn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),yg=J("input",{name:"MuiInputBase",slot:"Input",overridesResolver:mg})(ye(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${vn.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${vn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),ia=Ou({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Vs=E.forwardRef(function(t,r){const n=Re({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,color:c,components:u={},componentsProps:p={},defaultValue:m,disabled:y,disableInjectingGlobalStyles:b,endAdornment:g,error:d,fullWidth:C=!1,id:T,inputComponent:R="input",inputProps:S={},inputRef:v,margin:x,maxRows:w,minRows:P,multiline:I=!1,name:M,onBlur:z,onChange:B,onClick:f,onFocus:k,onKeyDown:$,onKeyUp:A,placeholder:j,readOnly:V,renderSuffix:N,rows:L,size:O,slotProps:_={},slots:U={},startAdornment:H,type:Y="text",value:Z,...Q}=n,ee=S.value!=null?S.value:Z,{current:X}=E.useRef(ee!=null),ne=E.useRef(),q=E.useCallback(fe=>{process.env.NODE_ENV!=="production"&&fe&&fe.nodeName!=="INPUT"&&!fe.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
272
|
+
`))},[]),oe=Le(ne,v,S.ref,q),[F,ce]=E.useState(!1),ie=ug();process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(ie)return ie.registerEffect()},[ie]);const te=cg({props:n,muiFormControl:ie,states:["color","disabled","error","hiddenLabel","size","required","filled"]});te.focused=ie?ie.focused:F,E.useEffect(()=>{!ie&&y&&F&&(ce(!1),z&&z())},[ie,y,F,z]);const Ee=ie&&ie.onFilled,me=ie&&ie.onEmpty,he=E.useCallback(fe=>{pg(fe)?Ee&&Ee():me&&me()},[Ee,me]);Ot(()=>{X&&he({value:ee})},[ee,he,X]);const Ae=fe=>{k&&k(fe),S.onFocus&&S.onFocus(fe),ie&&ie.onFocus?ie.onFocus(fe):ce(!0)},je=fe=>{z&&z(fe),S.onBlur&&S.onBlur(fe),ie&&ie.onBlur?ie.onBlur(fe):ce(!1)},ae=(fe,...Ct)=>{if(!X){const ct=fe.target||ne.current;if(ct==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":bt(1));he({value:ct.value})}S.onChange&&S.onChange(fe,...Ct),B&&B(fe,...Ct)};E.useEffect(()=>{he(ne.current)},[]);const K=fe=>{ne.current&&fe.currentTarget===fe.target&&ne.current.focus(),f&&f(fe)};let Be=R,ze=S;I&&Be==="input"&&(L?(process.env.NODE_ENV!=="production"&&(P||w)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ze={type:void 0,minRows:L,maxRows:L,...ze}):ze={type:void 0,maxRows:w,minRows:P,...ze},Be=_s);const Ye=fe=>{he(fe.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};E.useEffect(()=>{ie&&ie.setAdornedStart(!!H)},[ie,H]);const We={...n,color:te.color||"primary",disabled:te.disabled,endAdornment:g,error:te.error,focused:te.focused,formControl:ie,fullWidth:C,hiddenLabel:te.hiddenLabel,multiline:I,size:te.size,startAdornment:H,type:Y},_e=hg(We),He=U.root||u.Root||gg,Ke=_.root||p.root||{},Lt=U.input||u.Input||yg;return ze={...ze,..._.input??p.input},h.jsxs(E.Fragment,{children:[!b&&typeof ia=="function"&&(na||(na=h.jsx(ia,{}))),h.jsxs(He,{...Ke,ref:r,onClick:K,...Q,...!eo(He)&&{ownerState:{...We,...Ke.ownerState}},className:se(_e.root,Ke.className,l,V&&"MuiInputBase-readOnly"),children:[H,h.jsx(Gn.Provider,{value:null,children:h.jsx(Lt,{"aria-invalid":te.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:m,disabled:te.disabled,id:T,onAnimationStart:Ye,name:M,placeholder:j,readOnly:V,required:te.required,rows:L,value:ee,onKeyDown:$,onKeyUp:A,type:Y,...ze,...!eo(Lt)&&{as:Be,ownerState:{...We,...ze.ownerState}},ref:oe,className:se(_e.input,ze.className,V&&"MuiInputBase-readOnly"),onBlur:je,onChange:ae,onFocus:Ae})}),g,N?N({...te,startAdornment:H}):null]})]})});process.env.NODE_ENV!=="production"&&(Vs.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:xo,inputProps:o.object,inputRef:$r,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});const bg=Pe(h.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),vg=Pe(h.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8m-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12m3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8m5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8m3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"ColorLens"),xg=["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548","#607D8B","#9E9E9E","#000000","#FFFFFF","#607D8B","#37474F","#1A237E"],Cg={pequeno:20,mediano:28,grande:36},Tg={pequeno:28,mediano:36,grande:44},Go=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),wg=J(de,{shouldForwardProp:e=>!["seleccionado","tamano"].includes(String(e))})(({theme:e,seleccionado:t,tamano:r})=>({width:r,height:r,borderRadius:4,cursor:"pointer",position:"relative",transition:e.transitions.create(["transform","box-shadow"],{duration:150}),boxShadow:t?`0 0 0 2px ${e.palette.background.paper}, 0 0 0 4px ${e.palette.primary.main}`:`inset 0 0 0 1px ${re.alpha(e.palette.common.black,.15)}`,"&:hover":{transform:"scale(1.15)",boxShadow:`0 0 0 2px ${e.palette.background.paper}, 0 0 0 3px ${e.palette.text.secondary}`}})),Eg=J(de)(({theme:e})=>({padding:e.spacing(2),width:260,backgroundColor:e.palette.background.paper,borderRadius:12,boxShadow:e.shadows[4]})),Sg=J(Vs)(({theme:e})=>({fontSize:"0.8125rem",fontFamily:"monospace","& input":{padding:e.spacing(.75,1),borderRadius:6,border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.mode==="dark"?re.alpha(e.palette.common.white,.05):re.alpha(e.palette.common.black,.04),"&:focus":{outline:"none",borderColor:e.palette.primary.main}}})),Og=J(de,{shouldForwardProp:e=>e!=="deshabilitado"})(({theme:e,deshabilitado:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",width:28,height:28,borderRadius:6,border:`1px solid ${e.palette.divider}`,cursor:t?"not-allowed":"pointer",overflow:"hidden",position:"relative",transition:e.transitions.create(["border-color"]),"&:hover":t?{}:{borderColor:e.palette.primary.main}})),aa=({valor:e,colores:t,tamanoMuestra:r,mostrarInput:n,mostrarPersonalizado:i,alCambiar:a,onCerrar:s})=>{const l=Ge(),c=le.useRef(null),[u,p]=le.useState(e),m=g=>{p(g),a?.(g)},y=g=>{const d=g.target.value;p(d),Go(d)&&a?.(d)},b=()=>{Go(u)||p(e)};return h.jsxs(Eg,{children:[h.jsx(de,{sx:{display:"flex",flexWrap:"wrap",gap:.75},children:t.map(g=>h.jsx(bn,{title:g,placement:"top",arrow:!0,children:h.jsx(wg,{tamano:r,seleccionado:g.toUpperCase()===e.toUpperCase(),sx:{backgroundColor:g},onClick:()=>m(g),children:g.toUpperCase()===e.toUpperCase()&&h.jsx(bg,{sx:{fontSize:r*.55,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:l.palette.getContrastText(g)}})})},g))}),(n||i)&&h.jsxs(de,{sx:{display:"flex",alignItems:"center",gap:1,mt:2,pt:2,borderTop:`1px solid ${l.palette.divider}`},children:[n&&h.jsxs(h.Fragment,{children:[h.jsx(de,{sx:{width:28,height:28,borderRadius:1.5,backgroundColor:Go(u)?u:e,border:`1px solid ${re.alpha(l.palette.common.black,.15)}`,flexShrink:0}}),h.jsx(Sg,{fullWidth:!0,value:u,onChange:y,onBlur:b,inputProps:{maxLength:7,"aria-label":"valor hexadecimal del color"}})]}),i&&h.jsx(bn,{title:"Abre el selector de color del sistema",arrow:!0,children:h.jsxs(Og,{onClick:()=>c.current?.click(),"aria-label":"selector de color personalizado",children:[h.jsx(vg,{sx:{fontSize:16,color:"text.secondary"}}),h.jsx("input",{ref:c,type:"color",value:e,onChange:g=>{p(g.target.value),a?.(g.target.value)},style:{position:"absolute",opacity:0,width:"100%",height:"100%",cursor:"pointer",inset:0,border:"none"},"aria-label":"selector de color nativo"})]})})]})]})},Rg=({valor:e="#2196F3",alCambiar:t,coloresPredefinidos:r=xg,mostrarInput:n=!0,mostrarPersonalizado:i=!0,variante:a="emergente",etiqueta:s,deshabilitado:l=!1,tamano:c="mediano"})=>{const u=Ge(),p=le.useRef(null),[m,y]=le.useState(!1),b=Cg[c],g=Tg[c],d=le.useCallback(C=>{t?.(C)},[t]);return a==="fijo"?h.jsxs(de,{sx:{display:"inline-flex",flexDirection:"column",gap:1},children:[s&&h.jsx(Fe,{variant:"caption",fontWeight:600,color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:"0.5px"},children:s}),h.jsx(aa,{valor:e,colores:r,tamanoMuestra:b,mostrarInput:n,mostrarPersonalizado:i,alCambiar:d})]}):h.jsxs(de,{sx:{display:"inline-flex",flexDirection:"column",gap:.5},children:[s&&h.jsx(Fe,{variant:"caption",fontWeight:600,color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:"0.5px"},children:s}),h.jsxs(de,{ref:p,onClick:()=>!l&&y(!0),sx:{display:"inline-flex",alignItems:"center",gap:1,p:.75,pr:1.5,borderRadius:2,border:`1px solid ${m?u.palette.primary.main:u.palette.divider}`,cursor:l?"not-allowed":"pointer",opacity:l?.5:1,transition:u.transitions.create(["border-color","background-color"]),backgroundColor:u.palette.background.paper,"&:hover":l?{}:{borderColor:u.palette.primary.main,backgroundColor:re.alpha(u.palette.primary.main,.02)}},"aria-label":s??"selector de color",children:[h.jsx(de,{sx:{width:g,height:g,borderRadius:1.5,backgroundColor:e,border:`1px solid ${re.alpha(u.palette.common.black,.15)}`,flexShrink:0}}),h.jsx(Fe,{variant:"body2",fontFamily:"monospace",color:"text.secondary",children:e.toUpperCase()})]}),h.jsx($s,{open:m,anchorEl:p.current,onClose:()=>y(!1),anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{borderRadius:3,overflow:"visible",mt:1,boxShadow:u.shadows[8]}}},children:h.jsx(aa,{valor:e,colores:r,tamanoMuestra:b,mostrarInput:n,mostrarPersonalizado:i,alCambiar:d})})]})},Ls=({etiqueta:e,valor:t,color:r="neutro",subtitulo:n,sx:i})=>{const a=W.useTheme(),s={neutro:a.palette.grey[500],exito:a.palette.success.main,error:a.palette.error.main,aviso:a.palette.warning.main}[r],l=r==="neutro"?a.palette.text.primary:s;return h.jsxs(W.Box,{sx:[{bgcolor:a.palette.background.paper,borderRadius:3,boxShadow:a.shadows[2],borderLeft:`5px solid ${s}`,px:2.5,py:2,minWidth:140,flex:"1 1 0"},...Array.isArray(i)?i:i?[i]:[]],children:[h.jsx(W.Typography,{variant:"overline",sx:{display:"block",color:a.palette.text.secondary,fontWeight:700,fontSize:"0.65rem",letterSpacing:"0.08em",lineHeight:1.2,mb:1},children:e}),h.jsx(W.Typography,{component:"p",sx:{fontWeight:700,color:l,fontSize:{xs:"1.75rem",md:"2rem"},lineHeight:1},children:typeof t=="number"?t.toLocaleString("es-PE"):t}),n&&h.jsx(W.Typography,{variant:"caption",sx:{display:"block",color:a.palette.text.secondary,mt:.75,lineHeight:1.3},children:n})]})};Ls.displayName="CodeplexTarjetaEstadistica";Object.defineProperty(exports,"useNextStep",{enumerable:!0,get:()=>Yo.useNextStep});Object.defineProperty(exports,"CodeplexDialogo",{enumerable:!0,get:()=>mt.CodeplexDialogo});Object.defineProperty(exports,"CodeplexDialogoAcciones",{enumerable:!0,get:()=>mt.CodeplexDialogoAcciones});Object.defineProperty(exports,"CodeplexDialogoContenido",{enumerable:!0,get:()=>mt.CodeplexDialogoContenido});Object.defineProperty(exports,"CodeplexDialogoTexto",{enumerable:!0,get:()=>mt.CodeplexDialogoTexto});Object.defineProperty(exports,"CodeplexDialogoTitulo",{enumerable:!0,get:()=>mt.CodeplexDialogoTitulo});Object.defineProperty(exports,"CodeplexMensajeEmergente",{enumerable:!0,get:()=>mt.CodeplexMensajeEmergente});Object.defineProperty(exports,"CodeplexNotificacion",{enumerable:!0,get:()=>mt.CodeplexNotificacion});Object.defineProperty(exports,"CodeplexToast",{enumerable:!0,get:()=>mt.CodeplexToast});Object.defineProperty(exports,"CodeplexTooltip",{enumerable:!0,get:()=>mt.CodeplexTooltip});Object.defineProperty(exports,"CodeplexTostada",{enumerable:!0,get:()=>mt.CodeplexTostada});exports.CodeplexAlert=uf;exports.CodeplexAlerta=ys;exports.CodeplexAvatar=ld;exports.CodeplexAvatarGroup=sd;exports.CodeplexAvatarUsuario=Ja;exports.CodeplexAviso=fs;exports.CodeplexAyudaEntrada=ws;exports.CodeplexBadge=kp;exports.CodeplexBanner=zd;exports.CodeplexBoton=jn;exports.CodeplexButton=wp;exports.CodeplexCard=jd;exports.CodeplexCargadorArchivos=um;exports.CodeplexCargando=Ka;exports.CodeplexEncabezadoPrincipal=ps;exports.CodeplexEsqueleto=zf;exports.CodeplexEsqueletoContenido=zn;exports.CodeplexEtiquetaInteligente=rs;exports.CodeplexGrupoAvatares=Qa;exports.CodeplexGrupoBotones=qf;exports.CodeplexInputHelper=Bf;exports.CodeplexInsignia=Ya;exports.CodeplexJumbotron=Ad;exports.CodeplexKbd=_p;exports.CodeplexPopupRequisitos=Mn;exports.CodeplexProgreso=bs;exports.CodeplexProgress=xf;exports.CodeplexRating=Nf;exports.CodeplexRequirementsPopup=cd;exports.CodeplexSelectorColor=Rg;exports.CodeplexSkeleton=Ff;exports.CodeplexSmartLabel=ud;exports.CodeplexSpinner=Fp;exports.CodeplexTarjeta=us;exports.CodeplexTarjetaEstadistica=Ls;exports.CodeplexTeclado=Xa;exports.CodeplexTour=Kf;exports.CodeplexValoracion=Ts;exports.EntradaOcultaVisualmente=Tp;exports.Ui=rl;exports.avatarCadena=es;exports.stringAvatar=ad;Object.keys(Yn).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>Yn[e]})});
|