@codeplex-sac/ui 0.0.12 → 0.0.15
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 +115 -110
- package/index.d.ts +1 -0
- package/index.js +18579 -12595
- package/lib/tour/tour.d.ts +101 -0
- package/package.json +4 -3
package/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),Re=require("react"),le=require("@mui/system"),Gd=require("@emotion/styled");require("@emotion/react");const kn=require("react-dom"),it=require("@mui/material");function Ll(e){const o=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(o,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const w=Ll(Re),Kd=Ll(kn),Yd={};function Xd(){return u.jsx("div",{className:Yd.container,children:u.jsx("h1",{children:"Welcome to Ui!"})})}function Zd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nr={exports:{}},rr={exports:{}},Ge={};var os;function Jd(){if(os)return Ge;os=1;var e=typeof Symbol=="function"&&Symbol.for,o=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=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,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function S(T){if(typeof T=="object"&&T!==null){var E=T.$$typeof;switch(E){case o:switch(T=T.type,T){case c:case d:case r:case i:case a:case g:return T;default:switch(T=T&&T.$$typeof,T){case l:case p:case h:case v:case s:return T;default:return E}}case n:return E}}}function x(T){return S(T)===d}return Ge.AsyncMode=c,Ge.ConcurrentMode=d,Ge.ContextConsumer=l,Ge.ContextProvider=s,Ge.Element=o,Ge.ForwardRef=p,Ge.Fragment=r,Ge.Lazy=h,Ge.Memo=v,Ge.Portal=n,Ge.Profiler=i,Ge.StrictMode=a,Ge.Suspense=g,Ge.isAsyncMode=function(T){return x(T)||S(T)===c},Ge.isConcurrentMode=x,Ge.isContextConsumer=function(T){return S(T)===l},Ge.isContextProvider=function(T){return S(T)===s},Ge.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===o},Ge.isForwardRef=function(T){return S(T)===p},Ge.isFragment=function(T){return S(T)===r},Ge.isLazy=function(T){return S(T)===h},Ge.isMemo=function(T){return S(T)===v},Ge.isPortal=function(T){return S(T)===n},Ge.isProfiler=function(T){return S(T)===i},Ge.isStrictMode=function(T){return S(T)===a},Ge.isSuspense=function(T){return S(T)===g},Ge.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===r||T===d||T===i||T===a||T===g||T===b||typeof T=="object"&&T!==null&&(T.$$typeof===h||T.$$typeof===v||T.$$typeof===s||T.$$typeof===l||T.$$typeof===p||T.$$typeof===y||T.$$typeof===C||T.$$typeof===O||T.$$typeof===f)},Ge.typeOf=S,Ge}var Ke={};var ns;function Qd(){return ns||(ns=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,o=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=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,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function S(_){return typeof _=="string"||typeof _=="function"||_===r||_===d||_===i||_===a||_===g||_===b||typeof _=="object"&&_!==null&&(_.$$typeof===h||_.$$typeof===v||_.$$typeof===s||_.$$typeof===l||_.$$typeof===p||_.$$typeof===y||_.$$typeof===C||_.$$typeof===O||_.$$typeof===f)}function x(_){if(typeof _=="object"&&_!==null){var se=_.$$typeof;switch(se){case o:var ie=_.type;switch(ie){case c:case d:case r:case i:case a:case g:return ie;default:var pe=ie&&ie.$$typeof;switch(pe){case l:case p:case h:case v:case s:return pe;default:return se}}case n:return se}}}var T=c,E=d,j=l,P=s,I=o,N=p,A=r,m=h,$=v,R=n,M=i,k=a,z=g,V=!1;function W(_){return V||(V=!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.")),B(_)||x(_)===c}function B(_){return x(_)===d}function L(_){return x(_)===l}function Y(_){return x(_)===s}function Z(_){return typeof _=="object"&&_!==null&&_.$$typeof===o}function oe(_){return x(_)===p}function K(_){return x(_)===r}function U(_){return x(_)===h}function ae(_){return x(_)===v}function ce(_){return x(_)===n}function J(_){return x(_)===i}function X(_){return x(_)===a}function de(_){return x(_)===g}Ke.AsyncMode=T,Ke.ConcurrentMode=E,Ke.ContextConsumer=j,Ke.ContextProvider=P,Ke.Element=I,Ke.ForwardRef=N,Ke.Fragment=A,Ke.Lazy=m,Ke.Memo=$,Ke.Portal=R,Ke.Profiler=M,Ke.StrictMode=k,Ke.Suspense=z,Ke.isAsyncMode=W,Ke.isConcurrentMode=B,Ke.isContextConsumer=L,Ke.isContextProvider=Y,Ke.isElement=Z,Ke.isForwardRef=oe,Ke.isFragment=K,Ke.isLazy=U,Ke.isMemo=ae,Ke.isPortal=ce,Ke.isProfiler=J,Ke.isStrictMode=X,Ke.isSuspense=de,Ke.isValidElementType=S,Ke.typeOf=x})()),Ke}var rs;function Bl(){return rs||(rs=1,process.env.NODE_ENV==="production"?rr.exports=Jd():rr.exports=Qd()),rr.exports}var ya,as;function ep(){if(as)return ya;as=1;var e=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[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 d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ya=a()?Object.assign:function(i,s){for(var l,c=r(i),d,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var g in l)o.call(l,g)&&(c[g]=l[g]);if(e){d=e(l);for(var b=0;b<d.length;b++)n.call(l,d[b])&&(c[d[b]]=l[d[b]])}}return c},ya}var va,is;function di(){if(is)return va;is=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return va=e,va}var xa,ss;function Dl(){return ss||(ss=1,xa=Function.call.bind(Object.prototype.hasOwnProperty)),xa}var Ca,ls;function tp(){if(ls)return Ca;ls=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var o=di(),n={},r=Dl();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function a(i,s,l,c,d){if(process.env.NODE_ENV!=="production"){for(var p in i)if(r(i,p)){var g;try{if(typeof i[p]!="function"){var b=Error((c||"React class")+": "+l+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}g=i[p](s,p,c,l,null,o)}catch(h){g=h}if(g&&!(g 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 g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var v=d?d():"";e("Failed "+l+" type: "+g.message+(v??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ca=a,Ca}var wa,cs;function op(){if(cs)return wa;cs=1;var e=Bl(),o=ep(),n=di(),r=Dl(),a=tp(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return wa=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function g(B){var L=B&&(d&&B[d]||B[p]);if(typeof L=="function")return L}var b="<<anonymous>>",v={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:O(),arrayOf:S,element:x(),elementType:T(),instanceOf:E,node:N(),objectOf:P,oneOf:j,oneOfType:I,shape:m,exact:$};function h(B,L){return B===L?B!==0||1/B===1/L:B!==B&&L!==L}function f(B,L){this.message=B,this.data=L&&typeof L=="object"?L:{},this.stack=""}f.prototype=Error.prototype;function y(B){if(process.env.NODE_ENV!=="production")var L={},Y=0;function Z(K,U,ae,ce,J,X,de){if(ce=ce||b,X=X||ae,de!==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 se=ce+":"+ae;!L[se]&&Y<3&&(i("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+ce+"`. 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."),L[se]=!0,Y++)}}return U[ae]==null?K?U[ae]===null?new f("The "+J+" `"+X+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new f("The "+J+" `"+X+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:B(U,ae,ce,J,X)}var oe=Z.bind(null,!1);return oe.isRequired=Z.bind(null,!0),oe}function C(B){function L(Y,Z,oe,K,U,ae){var ce=Y[Z],J=k(ce);if(J!==B){var X=z(ce);return new f("Invalid "+K+" `"+U+"` of type "+("`"+X+"` supplied to `"+oe+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return y(L)}function O(){return y(s)}function S(B){function L(Y,Z,oe,K,U){if(typeof B!="function")return new f("Property `"+U+"` of component `"+oe+"` has invalid PropType notation inside arrayOf.");var ae=Y[Z];if(!Array.isArray(ae)){var ce=k(ae);return new f("Invalid "+K+" `"+U+"` of type "+("`"+ce+"` supplied to `"+oe+"`, expected an array."))}for(var J=0;J<ae.length;J++){var X=B(ae,J,oe,K,U+"["+J+"]",n);if(X instanceof Error)return X}return null}return y(L)}function x(){function B(L,Y,Z,oe,K){var U=L[Y];if(!l(U)){var ae=k(U);return new f("Invalid "+oe+" `"+K+"` of type "+("`"+ae+"` supplied to `"+Z+"`, expected a single ReactElement."))}return null}return y(B)}function T(){function B(L,Y,Z,oe,K){var U=L[Y];if(!e.isValidElementType(U)){var ae=k(U);return new f("Invalid "+oe+" `"+K+"` of type "+("`"+ae+"` supplied to `"+Z+"`, expected a single ReactElement type."))}return null}return y(B)}function E(B){function L(Y,Z,oe,K,U){if(!(Y[Z]instanceof B)){var ae=B.name||b,ce=W(Y[Z]);return new f("Invalid "+K+" `"+U+"` of type "+("`"+ce+"` supplied to `"+oe+"`, expected ")+("instance of `"+ae+"`."))}return null}return y(L)}function j(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function L(Y,Z,oe,K,U){for(var ae=Y[Z],ce=0;ce<B.length;ce++)if(h(ae,B[ce]))return null;var J=JSON.stringify(B,function(de,_){var se=z(_);return se==="symbol"?String(_):_});return new f("Invalid "+K+" `"+U+"` of value `"+String(ae)+"` "+("supplied to `"+oe+"`, expected one of "+J+"."))}return y(L)}function P(B){function L(Y,Z,oe,K,U){if(typeof B!="function")return new f("Property `"+U+"` of component `"+oe+"` has invalid PropType notation inside objectOf.");var ae=Y[Z],ce=k(ae);if(ce!=="object")return new f("Invalid "+K+" `"+U+"` of type "+("`"+ce+"` supplied to `"+oe+"`, expected an object."));for(var J in ae)if(r(ae,J)){var X=B(ae,J,oe,K,U+"."+J,n);if(X instanceof Error)return X}return null}return y(L)}function I(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var L=0;L<B.length;L++){var Y=B[L];if(typeof Y!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(Y)+" at index "+L+"."),s}function Z(oe,K,U,ae,ce){for(var J=[],X=0;X<B.length;X++){var de=B[X],_=de(oe,K,U,ae,ce,n);if(_==null)return null;_.data&&r(_.data,"expectedType")&&J.push(_.data.expectedType)}var se=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new f("Invalid "+ae+" `"+ce+"` supplied to "+("`"+U+"`"+se+"."))}return y(Z)}function N(){function B(L,Y,Z,oe,K){return R(L[Y])?null:new f("Invalid "+oe+" `"+K+"` supplied to "+("`"+Z+"`, expected a ReactNode."))}return y(B)}function A(B,L,Y,Z,oe){return new f((B||"React class")+": "+L+" type `"+Y+"."+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+oe+"`.")}function m(B){function L(Y,Z,oe,K,U){var ae=Y[Z],ce=k(ae);if(ce!=="object")return new f("Invalid "+K+" `"+U+"` of type `"+ce+"` "+("supplied to `"+oe+"`, expected `object`."));for(var J in B){var X=B[J];if(typeof X!="function")return A(oe,K,U,J,z(X));var de=X(ae,J,oe,K,U+"."+J,n);if(de)return de}return null}return y(L)}function $(B){function L(Y,Z,oe,K,U){var ae=Y[Z],ce=k(ae);if(ce!=="object")return new f("Invalid "+K+" `"+U+"` of type `"+ce+"` "+("supplied to `"+oe+"`, expected `object`."));var J=o({},Y[Z],B);for(var X in J){var de=B[X];if(r(B,X)&&typeof de!="function")return A(oe,K,U,X,z(de));if(!de)return new f("Invalid "+K+" `"+U+"` key `"+X+"` supplied to `"+oe+"`.\nBad object: "+JSON.stringify(Y[Z],null," ")+`
|
|
2
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
3
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
4
|
-
`)):console.error([`MUI: The \`theme.${
|
|
5
|
-
`)));const l=a
|
|
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(
|
|
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(D),null," "));var _=pe(ie,ee,re,J,U+"."+ee,n);if(_)return _}return null}return v($)}function M(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(M);if(D===null||l(D))return!0;var $=p(D);if($){var Z=$.call(D),te;if($!==D.entries){for(;!(te=Z.next()).done;)if(!M(te.value))return!1}else for(;!(te=Z.next()).done;){var re=te.value;if(re&&!M(re[1]))return!1}}else return!1;return!0;default:return!1}}function L(D,$){return D==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function E(D){var $=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":L($,D)?"symbol":$}function V(D){if(typeof D>"u"||D===null)return""+D;var $=E(D);if($==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return $}function F(D){var $=V(D);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function W(D){return!D.constructor||!D.constructor.name?f:D.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Js}var Qs,tu;function Qg(){if(tu)return Qs;tu=1;var e=El();function t(){}function n(){}return n.resetWarningCache=t,Qs=function(){function r(a,l,c,u,d,p){if(p!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Qs}var nu;function eb(){if(nu)return ai.exports;if(nu=1,process.env.NODE_ENV!=="production"){var e=Hp(),t=!0;ai.exports=Jg()(e.isElement,t)}else ai.exports=Qg()();return ai.exports}var tb=eb();const o=Gg(tb);function Gp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Gp(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ce(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Gp(e))&&(r&&(r+=" "),r+=t);return r}function $i(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=i;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)r[s]=a||{};else if(!a)r[s]=l;else{r[s]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;r[s][u]=$i(a[u],l[u],n)}}}else s==="className"&&n&&t.className?r.className=ce(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}function ke(e,t,n=void 0){const r={};for(const i in e){const s=e[i];let a="",l=!0;for(let c=0;c<s.length;c+=1){const u=s[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}r[i]=a}return r}const ou=e=>e,nb=()=>{let e=ou;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ou}}},Kp=nb();function Cn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function z(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Cn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ia(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}var ci={exports:{}},tt={};var ru;function ob(){if(ru)return tt;ru=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function g(h){if(typeof h=="object"&&h!==null){var v=h.$$typeof;switch(v){case e:switch(h=h.type,h){case n:case i:case r:case c:case u:case f:return h;default:switch(h=h&&h.$$typeof,h){case a:case l:case p:case d:return h;case s:return h;default:return v}}case t:return v}}}return tt.ContextConsumer=s,tt.ContextProvider=a,tt.Element=e,tt.ForwardRef=l,tt.Fragment=n,tt.Lazy=p,tt.Memo=d,tt.Portal=t,tt.Profiler=i,tt.StrictMode=r,tt.Suspense=c,tt.SuspenseList=u,tt.isContextConsumer=function(h){return g(h)===s},tt.isContextProvider=function(h){return g(h)===a},tt.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},tt.isForwardRef=function(h){return g(h)===l},tt.isFragment=function(h){return g(h)===n},tt.isLazy=function(h){return g(h)===p},tt.isMemo=function(h){return g(h)===d},tt.isPortal=function(h){return g(h)===t},tt.isProfiler=function(h){return g(h)===i},tt.isStrictMode=function(h){return g(h)===r},tt.isSuspense=function(h){return g(h)===c},tt.isSuspenseList=function(h){return g(h)===u},tt.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===i||h===r||h===c||h===u||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===d||h.$$typeof===a||h.$$typeof===s||h.$$typeof===l||h.$$typeof===b||h.getModuleId!==void 0)},tt.typeOf=g,tt}var nt={};var iu;function rb(){return iu||(iu=1,process.env.NODE_ENV!=="production"&&(function(){function e(h){if(typeof h=="object"&&h!==null){var v=h.$$typeof;switch(v){case t:switch(h=h.type,h){case r:case s:case i:case u:case d:case b:return h;default:switch(h=h&&h.$$typeof,h){case l:case c:case f:case p:return h;case a:return h;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");nt.ContextConsumer=a,nt.ContextProvider=l,nt.Element=t,nt.ForwardRef=c,nt.Fragment=r,nt.Lazy=f,nt.Memo=p,nt.Portal=n,nt.Profiler=s,nt.StrictMode=i,nt.Suspense=u,nt.SuspenseList=d,nt.isContextConsumer=function(h){return e(h)===a},nt.isContextProvider=function(h){return e(h)===l},nt.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},nt.isForwardRef=function(h){return e(h)===c},nt.isFragment=function(h){return e(h)===r},nt.isLazy=function(h){return e(h)===f},nt.isMemo=function(h){return e(h)===p},nt.isPortal=function(h){return e(h)===n},nt.isProfiler=function(h){return e(h)===s},nt.isStrictMode=function(h){return e(h)===i},nt.isSuspense=function(h){return e(h)===u},nt.isSuspenseList=function(h){return e(h)===d},nt.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===s||h===i||h===u||h===d||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===p||h.$$typeof===l||h.$$typeof===a||h.$$typeof===c||h.$$typeof===g||h.getModuleId!==void 0)},nt.typeOf=e})()),nt}var su;function ib(){return su||(su=1,process.env.NODE_ENV==="production"?ci.exports=ob():ci.exports=rb()),ci.exports}var Hn=ib();function bn(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 Yp(e){if(O.isValidElement(e)||Hn.isValidElementType(e)||!bn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Yp(e[n])}),t}function At(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return bn(e)&&bn(t)&&Object.keys(t).forEach(i=>{O.isValidElement(t[i])||Hn.isValidElementType(t[i])?r[i]=t[i]:bn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&bn(e[i])?r[i]=At(e[i],t[i],n):n.clone?r[i]=bn(t[i])?Yp(t[i]):t[i]:r[i]=t[i]}),r}function Er(e,t){return t?At(e,t,{clone:!1}):e}const Xn=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function au(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(i.match(s)?.[1]||0)});return n.length?n.reduce((r,i)=>{const s=t[i];return delete r[i],r[i]=s,r},{...t}):t}function sb(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function ab(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){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\`.`:Cn(18,`(${t})`));return null}const[,r,i]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(s)}function lb(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function n(s,a){s.up=(...l)=>t(e.breakpoints.up(...l),a),s.down=(...l)=>t(e.breakpoints.down(...l),a),s.between=(...l)=>t(e.breakpoints.between(...l),a),s.only=(...l)=>t(e.breakpoints.only(...l),a),s.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},i=s=>(n(r,s),r);return n(i),{...e,containerQueries:i}}const as={xs:0,sm:600,md:900,lg:1200,xl:1536},lu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${as[e]}px)`},cb={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:as[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function En(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||lu;return t.reduce((a,l,c)=>(a[s.up(s.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const s=r.breakpoints||lu;return Object.keys(t).reduce((a,l)=>{if(sb(s.keys,l)){const c=ab(r.containerQueries?r:cb,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(s.values||as).includes(l)){const c=s.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function ub(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function cu(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function ls(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Ni(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ls(e,n)||r,t&&(i=t(i,r,e)),i}function mt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,s=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=ls(c,r)||{};return En(a,l,p=>{let f=Ni(u,i,p);return p===f&&typeof p=="string"&&(f=Ni(u,i,`${t}${p==="default"?"":z(p)}`,p)),n===!1?f:{[n]:f}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Xn}:{},s.filterProps=[t],s}function db(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const pb={m:"margin",p:"padding"},fb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},uu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hb=db(e=>{if(e.length>2)if(uu[e])e=uu[e];else return[e];const[t,n]=e.split(""),r=pb[t],i=fb[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),cs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],us=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],mb=[...cs,...us];function Hr(e,t,n,r){const i=ls(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),typeof i=="string"?i.startsWith("var(")&&s===0?0:i.startsWith("var(")&&s===1?i:`calc(${s} * ${i})`:i*s):Array.isArray(i)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
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[a];return s>=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 Rl(e){return Hr(e,"spacing",8,"spacing")}function qr(e,t){return typeof t=="string"||t==null?t:e(t)}function gb(e,t){return n=>e.reduce((r,i)=>(r[i]=qr(t,n),r),{})}function bb(e,t,n,r){if(!t.includes(n))return null;const i=hb(n),s=gb(i,r),a=e[n];return En(e,a,s)}function Xp(e,t){const n=Rl(e.theme);return Object.keys(e).map(r=>bb(e,t,r,n)).reduce(Er,{})}function pt(e){return Xp(e,cs)}pt.propTypes=process.env.NODE_ENV!=="production"?cs.reduce((e,t)=>(e[t]=Xn,e),{}):{};pt.filterProps=cs;function ft(e){return Xp(e,us)}ft.propTypes=process.env.NODE_ENV!=="production"?us.reduce((e,t)=>(e[t]=Xn,e),{}):{};ft.filterProps=us;process.env.NODE_ENV!=="production"&&mb.reduce((e,t)=>(e[t]=Xn,e),{});function ds(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>t[s]?Er(i,t[s](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Xt(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return mt({prop:e,themeKey:"borders",transform:t})}const yb=sn("border",Xt),vb=sn("borderTop",Xt),xb=sn("borderRight",Xt),wb=sn("borderBottom",Xt),Cb=sn("borderLeft",Xt),Sb=sn("borderColor"),Tb=sn("borderTopColor"),Pb=sn("borderRightColor"),Ob=sn("borderBottomColor"),Eb=sn("borderLeftColor"),Rb=sn("outline",Xt),kb=sn("outlineColor"),ps=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Hr(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:qr(t,r)});return En(e,e.borderRadius,n)}return null};ps.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Xn}:{};ps.filterProps=["borderRadius"];ds(yb,vb,xb,wb,Cb,Sb,Tb,Pb,Ob,Eb,ps,Rb,kb);const fs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Hr(e.theme,"spacing",8,"gap"),n=r=>({gap:qr(t,r)});return En(e,e.gap,n)}return null};fs.propTypes=process.env.NODE_ENV!=="production"?{gap:Xn}:{};fs.filterProps=["gap"];const hs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Hr(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:qr(t,r)});return En(e,e.columnGap,n)}return null};hs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Xn}:{};hs.filterProps=["columnGap"];const ms=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Hr(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:qr(t,r)});return En(e,e.rowGap,n)}return null};ms.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Xn}:{};ms.filterProps=["rowGap"];const Ib=mt({prop:"gridColumn"}),Mb=mt({prop:"gridRow"}),Ab=mt({prop:"gridAutoFlow"}),jb=mt({prop:"gridAutoColumns"}),$b=mt({prop:"gridAutoRows"}),Nb=mt({prop:"gridTemplateColumns"}),Lb=mt({prop:"gridTemplateRows"}),Db=mt({prop:"gridTemplateAreas"}),Bb=mt({prop:"gridArea"});ds(fs,hs,ms,Ib,Mb,Ab,jb,$b,Nb,Lb,Db,Bb);function Wo(e,t){return t==="grey"?t:e}const Vb=mt({prop:"color",themeKey:"palette",transform:Wo}),Fb=mt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wo}),zb=mt({prop:"backgroundColor",themeKey:"palette",transform:Wo});ds(Vb,Fb,zb);function qt(e){return e<=1&&e!==0?`${e*100}%`:e}const Wb=mt({prop:"width",transform:qt}),kl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||as[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:qt(n)}};return En(e,e.maxWidth,t)}return null};kl.filterProps=["maxWidth"];const _b=mt({prop:"minWidth",transform:qt}),Ub=mt({prop:"height",transform:qt}),Hb=mt({prop:"maxHeight",transform:qt}),qb=mt({prop:"minHeight",transform:qt});mt({prop:"size",cssProperty:"width",transform:qt});mt({prop:"size",cssProperty:"height",transform:qt});const Gb=mt({prop:"boxSizing"});ds(Wb,kl,_b,Ub,Hb,qb,Gb);const Gr={border:{themeKey:"borders",transform:Xt},borderTop:{themeKey:"borders",transform:Xt},borderRight:{themeKey:"borders",transform:Xt},borderBottom:{themeKey:"borders",transform:Xt},borderLeft:{themeKey:"borders",transform:Xt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ps},color:{themeKey:"palette",transform:Wo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wo},backgroundColor:{themeKey:"palette",transform:Wo},p:{style:ft},pt:{style:ft},pr:{style:ft},pb:{style:ft},pl:{style:ft},px:{style:ft},py:{style:ft},padding:{style:ft},paddingTop:{style:ft},paddingRight:{style:ft},paddingBottom:{style:ft},paddingLeft:{style:ft},paddingX:{style:ft},paddingY:{style:ft},paddingInline:{style:ft},paddingInlineStart:{style:ft},paddingInlineEnd:{style:ft},paddingBlock:{style:ft},paddingBlockStart:{style:ft},paddingBlockEnd:{style:ft},m:{style:pt},mt:{style:pt},mr:{style:pt},mb:{style:pt},ml:{style:pt},mx:{style:pt},my:{style:pt},margin:{style:pt},marginTop:{style:pt},marginRight:{style:pt},marginBottom:{style:pt},marginLeft:{style:pt},marginX:{style:pt},marginY:{style:pt},marginInline:{style:pt},marginInlineStart:{style:pt},marginInlineEnd:{style:pt},marginBlock:{style:pt},marginBlockStart:{style:pt},marginBlockEnd:{style:pt},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:fs},rowGap:{style:ms},columnGap:{style:hs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qt},maxWidth:{style:kl},minWidth:{transform:qt},height:{transform:qt},maxHeight:{transform:qt},minHeight:{transform:qt},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 Kb(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Yb(e,t){return typeof e=="function"?e(t):e}function Xb(){function e(n,r,i,s){const a={[n]:r,theme:i},l=s[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:p}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=ls(i,u)||{};return p?p(a):En(a,r,g=>{let h=Ni(f,d,g);return g===h&&typeof g=="string"&&(h=Ni(f,d,`${n}${g==="default"?"":z(g)}`,g)),c===!1?h:{[c]:h}})}function t(n){const{sx:r,theme:i={},nested:s}=n||{};if(!r)return null;const a=i.unstable_sxConfig??Gr;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 d=ub(i.breakpoints),p=Object.keys(d);let f=d;return Object.keys(u).forEach(b=>{const g=Yb(u[b],i);if(g!=null)if(typeof g=="object")if(a[b])f=Er(f,e(b,g,i,a));else{const h=En({theme:i},g,v=>({[b]:v}));Kb(h,g)?f[b]=t({sx:g,theme:i,nested:!0}):f=Er(f,h)}else f=Er(f,e(b,g,i,a))}),!s&&i.modularCssLayers?{"@layer sx":au(i,cu(p,f))}:au(i,cu(p,f))}return Array.isArray(r)?r.map(l):l(r)}return t}const Uo=Xb();Uo.filterProps=["sx"];const Zb=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Gr;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Jb(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=Zb(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return bn(l)?{...r,...l}:r}:s={...r,...t},{...i,sx:s}}function ao(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Il(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),ao(e,t,n)}function Qb(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function qn(e){if(e.type)return e;if(e.charAt(0)==="#")return qn(Qb(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))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().`:Cn(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(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.`:Cn(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}const ey=e=>{const t=qn(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},vr=(e,t)=>{try{return ey(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function gs(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,s)=>s<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Zp(e){e=qn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),a=(u,d=(u+n/30)%12)=>i-s*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),gs({type:l,values:c})}function Ma(e){e=qn(e);let t=e.type==="hsl"||e.type==="hsla"?qn(Zp(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function du(e,t){const n=Ma(e),r=Ma(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Li(e,t){return e=qn(e),t=Il(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,gs(e)}function to(e,t,n){try{return Li(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function bs(e,t){if(e=qn(e),t=Il(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return gs(e)}function Qe(e,t,n){try{return bs(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ys(e,t){if(e=qn(e),t=Il(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return gs(e)}function et(e,t,n){try{return ys(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Aa(e,t=.15){return Ma(e)>.5?bs(e,t):ys(e,t)}function ui(e,t,n){try{return Aa(e,t)}catch{return e}}const Lr={black:"#000",white:"#fff"},ty={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"},Po={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Oo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},dr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Eo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ro={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ko={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Jp(){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:Lr.white,default:Lr.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 Qp=Jp();function ef(){return{text:{primary:Lr.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:Lr.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 ja=ef();function pu(e,t,n,r){const i=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ys(e.main,i):t==="dark"&&(e.dark=bs(e.main,s)))}function fu(e,t,n,r,i){const s=i.light||i,a=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function ny(e="light"){return e==="dark"?{main:Eo[200],light:Eo[50],dark:Eo[400]}:{main:Eo[700],light:Eo[400],dark:Eo[800]}}function oy(e="light"){return e==="dark"?{main:Po[200],light:Po[50],dark:Po[400]}:{main:Po[500],light:Po[300],dark:Po[700]}}function ry(e="light"){return e==="dark"?{main:Oo[500],light:Oo[300],dark:Oo[700]}:{main:Oo[700],light:Oo[400],dark:Oo[800]}}function iy(e="light"){return e==="dark"?{main:Ro[400],light:Ro[300],dark:Ro[700]}:{main:Ro[700],light:Ro[500],dark:Ro[900]}}function sy(e="light"){return e==="dark"?{main:ko[400],light:ko[300],dark:ko[700]}:{main:ko[800],light:ko[500],dark:ko[900]}}function ay(e="light"){return e==="dark"?{main:dr[400],light:dr[300],dark:dr[700]}:{main:"#ed6c02",light:dr[500],dark:dr[900]}}function ly(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ml(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...s}=e,a=e.primary||ny(t),l=e.secondary||oy(t),c=e.error||ry(t),u=e.info||iy(t),d=e.success||sy(t),p=e.warning||ay(t);function f(v){if(i)return ly(v);const w=du(v,ja.text.primary)>=n?ja.text.primary:Qp.text.primary;if(process.env.NODE_ENV!=="production"){const C=du(v,w);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${w} on ${v}`,"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 w}const b=({color:v,name:w,mainShade:C=500,lightShade:S=300,darkShade:x=700})=>{if(v={...v},!v.main&&v[C]&&(v.main=v[C]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
|
|
10
|
+
The color object needs to have a \`main\` property or a \`${C}\` property.`:Cn(11,w?` (${w})`:"",C));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
|
|
11
|
+
\`color.main\` should be a string, but \`${JSON.stringify(v.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(i=>i===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),n(...r)}:n}function Cu(e,o){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=o(e.__emotion_styles))}const Es=[];function Ao(e){return Es[0]=e,vu(Es)}const wu="exact-prop: ";function gi(e){return process.env.NODE_ENV==="production"?e:{...e,[wu]:o=>{const n=Object.keys(o).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 Wt=typeof window<"u"?w.useLayoutEffect:w.useEffect,Su=w.createContext();process.env.NODE_ENV!=="production"&&(t.node,t.bool);const mn=()=>w.useContext(Su)??!1,Tu=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(t.node,t.object);function Ou(e){const{theme:o,name:n,props:r}=e;if(!o||!o.components||!o.components[n])return r;const a=o.components[n];return a.defaultProps?yr(a.defaultProps,r,o.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?yr(a,r,o.components.mergeClassNameAndStyle):r}function Eu({props:e,name:o}){const n=w.useContext(Tu);return Ou({props:e,name:o,theme:{components:n}})}let ks=0;function ku(e){const[o,n]=w.useState(e),r=e||o;return w.useEffect(()=>{o==null&&(ks+=1,n(`mui-${ks}`))},[o]),r}const Pu={...w},Ps=Pu.useId;function uo(e){if(Ps!==void 0){const o=Ps();return e??o}return ku(e)}const Ru=e=>{const o=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return o.sort((n,r)=>n.val-r.val),o.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Iu(e){const{values:o={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,i=Ru(o),s=Object.keys(i);function l(b){return`@media (min-width:${typeof o[b]=="number"?o[b]:b}${n})`}function c(b){return`@media (max-width:${(typeof o[b]=="number"?o[b]:b)-r/100}${n})`}function d(b,v){const h=s.indexOf(v);return`@media (min-width:${typeof o[b]=="number"?o[b]:b}${n}) and (max-width:${(h!==-1&&typeof o[s[h]]=="number"?o[s[h]]:v)-r/100}${n})`}function p(b){return s.indexOf(b)+1<s.length?d(b,s[s.indexOf(b)+1]):l(b)}function g(b){const v=s.indexOf(b);return v===0?l(s[1]):v===s.length-1?c(s[v]):d(b,s[s.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:l,down:c,between:d,only:p,not:g,unit:n,...a}}const $u={borderRadius:4};function ju(e=8,o=pi({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(i=>{const s=o(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function Mu(e,o){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?o:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:o})}return n.palette.mode===e?o:{}}function Kl(e={},...o){const{breakpoints:n={},palette:r={},spacing:a,shape:i={},...s}=e,l=Iu(n),c=ju(a);let d=Tt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...$u,...i}},s);return d=up(d),d.applyStyles=Mu,d=o.reduce((p,g)=>Tt(p,g),d),d.unstable_sxConfig={...Gn,...s?.unstable_sxConfig},d.unstable_sx=function(g){return rn({sx:g,theme:this})},d}const Rs=(e,o,n,r=[])=>{let a=e;o.forEach((i,s)=>{s===o.length-1?Array.isArray(a)?a[Number(i)]=n:a&&typeof a=="object"&&(a[i]=n):a&&typeof a=="object"&&(a[i]||(a[i]=r.includes(i)?[]:{}),a=a[i])})},Nu=(e,o,n)=>{function r(a,i=[],s=[]){Object.entries(a).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...i,l],Array.isArray(c)?[...s,l]:s):o([...i,l],c,s))})}r(e)},Au=(e,o)=>typeof o=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?o:`${o}px`:o;function Oa(e,o){const{prefix:n,shouldSkipGeneratingVar:r}=o||{},a={},i={},s={};return Nu(e,(l,c,d)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const p=`--${n?`${n}-`:""}${l.join("-")}`,g=Au(l,c);Object.assign(a,{[p]:g}),Rs(i,l,`var(${p})`,d),Rs(s,l,`var(${p}, ${g})`,d)}},l=>l[0]==="vars"),{css:a,vars:i,varsWithDefaults:s}}function Lu(e,o={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:a,enableContrastVars:i}=o,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...d}=e,{vars:p,css:g,varsWithDefaults:b}=Oa(d,o);let v=b;const h={},{[c]:f,...y}=s;if(Object.entries(y||{}).forEach(([x,T])=>{const{vars:E,css:j,varsWithDefaults:P}=Oa(T,o);v=Tt(v,P),h[x]={css:j,vars:E}}),f){const{css:x,vars:T,varsWithDefaults:E}=Oa(f,o);v=Tt(v,E),h[c]={css:x,vars:T}}function C(x,T){let E=a;if(a==="class"&&(E=".%s"),a==="data"&&(E="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(E=`[${a}="%s"]`),x){if(E==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${s[x]?.palette?.mode||x})`]:{":root":T}};if(E)return e.defaultColorScheme===x?`:root, ${E.replace("%s",String(x))}`:E.replace("%s",String(x))}return":root"}return{vars:v,generateThemeVars:()=>{let x={...p};return Object.entries(h).forEach(([,{vars:T}])=>{x=Tt(x,T)}),x},generateStyleSheets:()=>{const x=[],T=e.defaultColorScheme||"light";function E(I,N){Object.keys(N).length&&x.push(typeof I=="string"?{[I]:{...N}}:I)}E(n(void 0,{...g}),g);const{[T]:j,...P}=h;if(j){const{css:I}=j,N=s[T]?.palette?.mode,A=!r&&N?{colorScheme:N,...I}:{...I};E(n(T,{...A}),A)}return Object.entries(P).forEach(([I,{css:N}])=>{const A=s[I]?.palette?.mode,m=!r&&A?{colorScheme:A,...N}:{...N};E(n(I,{...m}),m)}),i&&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 Bu(e){const o={};return Object.entries(e).forEach(r=>{const[a,i]=r;typeof i=="object"&&(o[a]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),o}function Du(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 zu={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 xe(e,o,n="Mui"){const r=zu[o];return r?`${n}-${r}`:`${Fl.generate(e)}-${o}`}function Fu(e,o){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...o}}function Vu(e){return Math.round(e*1e5)/1e5}const Is={textTransform:"uppercase"},$s='"Roboto", "Helvetica", "Arial", sans-serif';function _u(e,o){const{fontFamily:n=$s,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:p,...g}=typeof o=="function"?o(e):o;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 b=r/14,v=p||(y=>`${y/c*b}rem`),h=(y,C,O,S,x)=>({fontFamily:n,fontWeight:y,fontSize:v(C),lineHeight:O,...n===$s?{letterSpacing:`${Vu(S/C)}em`}:{},...x,...d}),f={h1:h(a,96,1.167,-1.5),h2:h(a,60,1.2,-.5),h3:h(i,48,1.167,0),h4:h(i,34,1.235,.25),h5:h(i,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(i,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(i,16,1.5,.15),body2:h(i,14,1.43,.15),button:h(s,14,1.75,.4,Is),caption:h(i,12,1.66,.4),overline:h(i,12,2.66,1,Is),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Tt({htmlFontSize:c,pxToRem:v,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l,...f},g,{clone:!1})}const Wu=.2,Uu=.14,Hu=.12;function at(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Wu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Uu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Hu})`].join(",")}const qu=["none",at(0,2,1,-1,0,1,1,0,0,1,3,0),at(0,3,1,-2,0,2,2,0,0,1,5,0),at(0,3,3,-2,0,3,4,0,0,1,8,0),at(0,2,4,-1,0,4,5,0,0,1,10,0),at(0,3,5,-1,0,5,8,0,0,1,14,0),at(0,3,5,-1,0,6,10,0,0,1,18,0),at(0,4,5,-2,0,7,10,1,0,2,16,1),at(0,5,5,-3,0,8,10,1,0,3,14,2),at(0,5,6,-3,0,9,12,1,0,3,16,2),at(0,6,6,-3,0,10,14,1,0,4,18,3),at(0,6,7,-4,0,11,15,1,0,4,20,3),at(0,7,8,-4,0,12,17,2,0,5,22,4),at(0,7,8,-4,0,13,19,2,0,5,24,4),at(0,7,9,-4,0,14,21,2,0,5,26,4),at(0,8,9,-5,0,15,22,2,0,6,28,5),at(0,8,10,-5,0,16,24,2,0,6,30,5),at(0,8,11,-5,0,17,26,2,0,6,32,5),at(0,9,11,-5,0,18,28,2,0,7,34,6),at(0,9,12,-6,0,19,29,2,0,7,36,6),at(0,10,13,-6,0,20,31,3,0,8,38,7),at(0,10,13,-6,0,21,33,3,0,8,40,7),at(0,10,14,-6,0,22,35,3,0,8,42,7),at(0,11,14,-7,0,23,36,3,0,9,44,8),at(0,11,15,-7,0,24,38,3,0,9,46,8)],Gu={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)"},Yl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function js(e){return`${Math.round(e)}ms`}function Ku(e){if(!e)return 0;const o=e/36;return Math.min(Math.round((4+15*o**.25+o/5)*10),3e3)}function Yu(e){const o={...Gu,...e.easing},n={...Yl,...e.duration};return{getAutoHeightDuration:Ku,create:(a=["all"],i={})=>{const{duration:s=n.standard,easing:l=o.easeInOut,delay:c=0,...d}=i;if(process.env.NODE_ENV!=="production"){const p=b=>typeof b=="string",g=b=>!Number.isNaN(parseFloat(b));!p(a)&&!Array.isArray(a)&&console.error('MUI: Argument "props" must be a string or Array.'),!g(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.'),!g(c)&&!p(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
25
|
-
`)),Object.keys(
|
|
23
|
+
} });`:Cn(12,w?` (${w})`:"",JSON.stringify(v.main)));return i?(fu(i,v,"light",S,r),fu(i,v,"dark",x,r)):(pu(v,"light",S,r),pu(v,"dark",x,r)),v.contrastText||(v.contrastText=f(v.main)),v};let g;return t==="light"?g=Jp():t==="dark"&&(g=ef()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),At({common:{...Lr},mode:t,primary:b({color:a,name:"primary"}),secondary:b({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:c,name:"error"}),warning:b({color:p,name:"warning"}),info:b({color:u,name:"info"}),success:b({color:d,name:"success"}),grey:ty,contrastThreshold:n,getContrastText:f,augmentColor:b,tonalOffset:r,...g},s)}function cy(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 uy={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 dy(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var py=/[A-Z]|^ms/g,fy=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tf=function(t){return t.charCodeAt(1)===45},hu=function(t){return t!=null&&typeof t!="boolean"},ea=dy(function(e){return tf(e)?e:e.replace(py,"-$&").toLowerCase()}),mu=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(fy,function(r,i,s){return zn={name:i,styles:s,next:zn},i})}return uy[t]!==1&&!tf(t)&&typeof n=="number"&&n!==0?n+"px":n};function Di(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return zn={name:i.name,styles:i.styles,next:zn},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)zn={name:a.name,styles:a.styles,next:zn},a=a.next;var l=s.styles+";";return l}return hy(e,t,n)}}var c=n;return c}function hy(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Di(e,t,n[i])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var l=a;hu(l)&&(r+=ea(s)+":"+mu(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)hu(a[c])&&(r+=ea(s)+":"+mu(s,a[c])+";");else{var u=Di(e,t,a);switch(s){case"animation":case"animationName":{r+=ea(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}return r}var gu=/label:\s*([^\s;{]+)\s*(;|$)/g,zn;function my(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";zn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=Di(n,t,s);else{var a=s;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=Di(n,t,e[l]),r){var c=s;i+=c[l]}gu.lastIndex=0;for(var u="",d;(d=gu.exec(i))!==null;)u+="-"+d[1];var p=cy(i)+u;return{name:p,styles:i,next:zn}}function gy(e,t){const n=_g(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.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
|
+
`)):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(d=>`${d} ${typeof a=="string"?a:Su(a)} ${l} ${typeof c=="string"?c:Su(c)}`).join(",")},...e,easing:t,duration:n}}const qy={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Gy(e){return bn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function rf(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let s=0;s<i.length;s++){const[a,l]=i[s];!Gy(l)||a.startsWith("unstable_")?delete r[a]:bn(l)&&(r[a]={...l},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
26
26
|
|
|
27
|
-
const theme = ${JSON.stringify(
|
|
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.${o}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function sf(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Xt=e=>{try{return e()}catch{}},lf=(e="mui")=>le.unstable_createGetCssVar(e);function Ea(e,o,n,r,a){if(!n)return;n=n===!0?{}:n;const i=a==="dark"?"dark":"light";if(!r){o[a]=tf({...n,palette:{mode:i,...n?.palette},colorSpace:e});return}const{palette:s,...l}=_a({...r,palette:{mode:i,...n?.palette},colorSpace:e});return o[a]={...n,palette:s,opacity:{...Zl(i),...n?.opacity},overlays:n?.overlays||Jl(i)},l}function cf(e={},...o){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:i="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=of,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...p}=e,g=Object.keys(n)[0],b=r||(n.light&&g!=="light"?"light":g),v=lf(i),{[b]:h,light:f,dark:y,...C}=n,O={...C};let S=h;if((b==="dark"&&!("dark"in n)||b==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${b}\` option is either missing or invalid.`:oo(21,b));let x;s&&(x="oklch");const T=Ea(x,O,S,p,b);f&&!O.light&&Ea(x,O,f,void 0,"light"),y&&!O.dark&&Ea(x,O,y,void 0,"dark");let E={defaultColorScheme:b,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:d,getCssVar:v,colorSchemes:O,font:{...Bu(T.typography),...T.font},spacing:sf(p.spacing)};Object.keys(E.colorSchemes).forEach(A=>{const m=E.colorSchemes[A].palette,$=M=>{const k=M.split("-"),z=k[1],V=k[2];return v(M,m[z][V])};m.mode==="light"&&(q(m.common,"background","#fff"),q(m.common,"onBackground","#000")),m.mode==="dark"&&(q(m.common,"background","#000"),q(m.common,"onBackground","#fff"));function R(M,k,z){if(x){let V;return M===Po&&(V=`transparent ${((1-z)*100).toFixed(0)}%`),M===Ze&&(V=`#000 ${(z*100).toFixed(0)}%`),M===Je&&(V=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${x}, ${k}, ${V})`}return M(k,z)}if(af(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){q(m.Alert,"errorColor",R(Ze,m.error.light,.6)),q(m.Alert,"infoColor",R(Ze,m.info.light,.6)),q(m.Alert,"successColor",R(Ze,m.success.light,.6)),q(m.Alert,"warningColor",R(Ze,m.warning.light,.6)),q(m.Alert,"errorFilledBg",$("palette-error-main")),q(m.Alert,"infoFilledBg",$("palette-info-main")),q(m.Alert,"successFilledBg",$("palette-success-main")),q(m.Alert,"warningFilledBg",$("palette-warning-main")),q(m.Alert,"errorFilledColor",Xt(()=>m.getContrastText(m.error.main))),q(m.Alert,"infoFilledColor",Xt(()=>m.getContrastText(m.info.main))),q(m.Alert,"successFilledColor",Xt(()=>m.getContrastText(m.success.main))),q(m.Alert,"warningFilledColor",Xt(()=>m.getContrastText(m.warning.main))),q(m.Alert,"errorStandardBg",R(Je,m.error.light,.9)),q(m.Alert,"infoStandardBg",R(Je,m.info.light,.9)),q(m.Alert,"successStandardBg",R(Je,m.success.light,.9)),q(m.Alert,"warningStandardBg",R(Je,m.warning.light,.9)),q(m.Alert,"errorIconColor",$("palette-error-main")),q(m.Alert,"infoIconColor",$("palette-info-main")),q(m.Alert,"successIconColor",$("palette-success-main")),q(m.Alert,"warningIconColor",$("palette-warning-main")),q(m.AppBar,"defaultBg",$("palette-grey-100")),q(m.Avatar,"defaultBg",$("palette-grey-400")),q(m.Button,"inheritContainedBg",$("palette-grey-300")),q(m.Button,"inheritContainedHoverBg",$("palette-grey-A100")),q(m.Chip,"defaultBorder",$("palette-grey-400")),q(m.Chip,"defaultAvatarColor",$("palette-grey-700")),q(m.Chip,"defaultIconColor",$("palette-grey-700")),q(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(m.LinearProgress,"primaryBg",R(Je,m.primary.main,.62)),q(m.LinearProgress,"secondaryBg",R(Je,m.secondary.main,.62)),q(m.LinearProgress,"errorBg",R(Je,m.error.main,.62)),q(m.LinearProgress,"infoBg",R(Je,m.info.main,.62)),q(m.LinearProgress,"successBg",R(Je,m.success.main,.62)),q(m.LinearProgress,"warningBg",R(Je,m.warning.main,.62)),q(m.Skeleton,"bg",x?R(Po,m.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),q(m.Slider,"primaryTrack",R(Je,m.primary.main,.62)),q(m.Slider,"secondaryTrack",R(Je,m.secondary.main,.62)),q(m.Slider,"errorTrack",R(Je,m.error.main,.62)),q(m.Slider,"infoTrack",R(Je,m.info.main,.62)),q(m.Slider,"successTrack",R(Je,m.success.main,.62)),q(m.Slider,"warningTrack",R(Je,m.warning.main,.62));const M=x?R(Ze,m.background.default,.6825):ir(m.background.default,.8);q(m.SnackbarContent,"bg",M),q(m.SnackbarContent,"color",Xt(()=>x?Va.text.primary:m.getContrastText(M))),q(m.SpeedDialAction,"fabHoverBg",ir(m.background.paper,.15)),q(m.StepConnector,"border",$("palette-grey-400")),q(m.StepContent,"border",$("palette-grey-400")),q(m.Switch,"defaultColor",$("palette-common-white")),q(m.Switch,"defaultDisabledColor",$("palette-grey-100")),q(m.Switch,"primaryDisabledColor",R(Je,m.primary.main,.62)),q(m.Switch,"secondaryDisabledColor",R(Je,m.secondary.main,.62)),q(m.Switch,"errorDisabledColor",R(Je,m.error.main,.62)),q(m.Switch,"infoDisabledColor",R(Je,m.info.main,.62)),q(m.Switch,"successDisabledColor",R(Je,m.success.main,.62)),q(m.Switch,"warningDisabledColor",R(Je,m.warning.main,.62)),q(m.TableCell,"border",R(Je,R(Po,m.divider,1),.88)),q(m.Tooltip,"bg",R(Po,m.grey[700],.92))}if(m.mode==="dark"){q(m.Alert,"errorColor",R(Je,m.error.light,.6)),q(m.Alert,"infoColor",R(Je,m.info.light,.6)),q(m.Alert,"successColor",R(Je,m.success.light,.6)),q(m.Alert,"warningColor",R(Je,m.warning.light,.6)),q(m.Alert,"errorFilledBg",$("palette-error-dark")),q(m.Alert,"infoFilledBg",$("palette-info-dark")),q(m.Alert,"successFilledBg",$("palette-success-dark")),q(m.Alert,"warningFilledBg",$("palette-warning-dark")),q(m.Alert,"errorFilledColor",Xt(()=>m.getContrastText(m.error.dark))),q(m.Alert,"infoFilledColor",Xt(()=>m.getContrastText(m.info.dark))),q(m.Alert,"successFilledColor",Xt(()=>m.getContrastText(m.success.dark))),q(m.Alert,"warningFilledColor",Xt(()=>m.getContrastText(m.warning.dark))),q(m.Alert,"errorStandardBg",R(Ze,m.error.light,.9)),q(m.Alert,"infoStandardBg",R(Ze,m.info.light,.9)),q(m.Alert,"successStandardBg",R(Ze,m.success.light,.9)),q(m.Alert,"warningStandardBg",R(Ze,m.warning.light,.9)),q(m.Alert,"errorIconColor",$("palette-error-main")),q(m.Alert,"infoIconColor",$("palette-info-main")),q(m.Alert,"successIconColor",$("palette-success-main")),q(m.Alert,"warningIconColor",$("palette-warning-main")),q(m.AppBar,"defaultBg",$("palette-grey-900")),q(m.AppBar,"darkBg",$("palette-background-paper")),q(m.AppBar,"darkColor",$("palette-text-primary")),q(m.Avatar,"defaultBg",$("palette-grey-600")),q(m.Button,"inheritContainedBg",$("palette-grey-800")),q(m.Button,"inheritContainedHoverBg",$("palette-grey-700")),q(m.Chip,"defaultBorder",$("palette-grey-700")),q(m.Chip,"defaultAvatarColor",$("palette-grey-300")),q(m.Chip,"defaultIconColor",$("palette-grey-300")),q(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(m.LinearProgress,"primaryBg",R(Ze,m.primary.main,.5)),q(m.LinearProgress,"secondaryBg",R(Ze,m.secondary.main,.5)),q(m.LinearProgress,"errorBg",R(Ze,m.error.main,.5)),q(m.LinearProgress,"infoBg",R(Ze,m.info.main,.5)),q(m.LinearProgress,"successBg",R(Ze,m.success.main,.5)),q(m.LinearProgress,"warningBg",R(Ze,m.warning.main,.5)),q(m.Skeleton,"bg",x?R(Po,m.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),q(m.Slider,"primaryTrack",R(Ze,m.primary.main,.5)),q(m.Slider,"secondaryTrack",R(Ze,m.secondary.main,.5)),q(m.Slider,"errorTrack",R(Ze,m.error.main,.5)),q(m.Slider,"infoTrack",R(Ze,m.info.main,.5)),q(m.Slider,"successTrack",R(Ze,m.success.main,.5)),q(m.Slider,"warningTrack",R(Ze,m.warning.main,.5));const M=x?R(Je,m.background.default,.985):ir(m.background.default,.98);q(m.SnackbarContent,"bg",M),q(m.SnackbarContent,"color",Xt(()=>x?Hl.text.primary:m.getContrastText(M))),q(m.SpeedDialAction,"fabHoverBg",ir(m.background.paper,.15)),q(m.StepConnector,"border",$("palette-grey-600")),q(m.StepContent,"border",$("palette-grey-600")),q(m.Switch,"defaultColor",$("palette-grey-300")),q(m.Switch,"defaultDisabledColor",$("palette-grey-600")),q(m.Switch,"primaryDisabledColor",R(Ze,m.primary.main,.55)),q(m.Switch,"secondaryDisabledColor",R(Ze,m.secondary.main,.55)),q(m.Switch,"errorDisabledColor",R(Ze,m.error.main,.55)),q(m.Switch,"infoDisabledColor",R(Ze,m.info.main,.55)),q(m.Switch,"successDisabledColor",R(Ze,m.success.main,.55)),q(m.Switch,"warningDisabledColor",R(Ze,m.warning.main,.55)),q(m.TableCell,"border",R(Ze,R(Po,m.divider,1),.68)),q(m.Tooltip,"bg",R(Po,m.grey[700],.92))}ro(m.background,"default"),ro(m.background,"paper"),ro(m.common,"background"),ro(m.common,"onBackground"),ro(m,"divider"),Object.keys(m).forEach(M=>{const k=m[M];M!=="tonalOffset"&&k&&typeof k=="object"&&(k.main&&q(m[M],"mainChannel",Pn(Rn(k.main))),k.light&&q(m[M],"lightChannel",Pn(Rn(k.light))),k.dark&&q(m[M],"darkChannel",Pn(Rn(k.dark))),k.contrastText&&q(m[M],"contrastTextChannel",Pn(Rn(k.contrastText))),M==="text"&&(ro(m[M],"primary"),ro(m[M],"secondary")),M==="action"&&(k.active&&ro(m[M],"active"),k.selected&&ro(m[M],"selected")))})}),E=o.reduce((A,m)=>Tt(A,m),E);const j={prefix:i,disableCssColorScheme:a,shouldSkipGeneratingVar:l,getSelector:rf(E),enableContrastVars:s},{vars:P,generateThemeVars:I,generateStyleSheets:N}=Lu(E,j);return E.vars=P,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([A,m])=>{E[A]=m}),E.generateThemeVars=I,E.generateStyleSheets=N,E.generateSpacing=function(){return le.createSpacing(p.spacing,pi(this))},E.getColorSchemeSelector=Du(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...Gn,...p?.unstable_sxConfig},E.unstable_sx=function(m){return rn({sx:m,theme:this})},E.toRuntimeSource=Xl,E}function Ns(e,o,n){e.colorSchemes&&n&&(e.colorSchemes[o]={...n!==!0&&n,palette:mi({...n===!0?{}:n.palette,mode:o})})}function Ql(e={},...o){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...s}=e,l=i||"light",c=a?.[l],d={...a,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return _a(e,...o);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const g=_a({...e,palette:p},...o);return g.defaultColorScheme=l,g.colorSchemes=d,g.palette.mode==="light"&&(g.colorSchemes.light={...d.light!==!0&&d.light,palette:g.palette},Ns(g,"dark",d.dark)),g.palette.mode==="dark"&&(g.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:g.palette},Ns(g,"light",d.light)),g}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),cf({...s,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...o)}const hi=Ql(),Kr="$$material";function jt(){const e=le.useTheme(hi);return process.env.NODE_ENV!=="production"&&w.useDebugValue(e),e[Kr]||e}function ec(e){return u.jsx(le.GlobalStyles,{...e,defaultTheme:hi,themeId:Kr})}process.env.NODE_ENV!=="production"&&(ec.propTypes={styles:t.oneOfType([t.array,t.func,t.number,t.object,t.string,t.bool])});function tc(e,o=""){return e.displayName||e.name||o}function As(e,o,n){const r=tc(o);return e.displayName||(r!==""?`${n}(${r})`:n)}function df(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return tc(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Co.ForwardRef:return As(e,e.render,"ForwardRef");case Co.Memo:return As(e,e.type,"memo");default:return}}}function pf(e){const{variants:o,...n}=e,r={variants:o,style:Ao(n),isProcessed:!0};return r.style===n||o&&o.forEach(a=>{typeof a.style!="function"&&(a.style=Ao(a.style))}),r}const uf=Kl();function ka(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Mo(e,o){return o&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${o}{${String(e.styles)}}`),e}function ff(e){return e?(o,n)=>n[e]:null}function mf(e,o,n){e.theme=yf(e.theme)?n:e.theme[o]||e.theme}function hr(e,o,n){const r=typeof o=="function"?o(e):o;if(Array.isArray(r))return r.flatMap(a=>hr(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?Mo(r.style,n):r.style;else{const{variants:i,...s}=r;a=n?Mo(Ao(s),n):s}return oc(e,r.variants,[a],n)}return r?.isProcessed?n?Mo(Ao(r.style),n):r.style:n?Mo(Ao(r),n):r}function oc(e,o,n=[],r=void 0){let a;e:for(let i=0;i<o.length;i+=1){const s=o[i];if(typeof s.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(a))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"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Mo(Ao(s.style(a)),r):s.style(a))):n.push(r?Mo(Ao(s.style),r):s.style)}return n}function gf(e={}){const{themeId:o,defaultTheme:n=uf,rootShouldForwardProp:r=ka,slotShouldForwardProp:a=ka}=e;function i(l){mf(l,o,n)}return(l,c={})=>{Cu(l,E=>E.filter(j=>j!==rn));const{name:d,slot:p,skipVariantsResolver:g,skipSx:b,overridesResolver:v=ff(nc(p)),...h}=c,f=d&&d.startsWith("Mui")||p?"components":"custom",y=g!==void 0?g:p&&p!=="Root"&&p!=="root"||!1,C=b||!1;let O=ka;p==="Root"||p==="root"?O=r:p?O=a:vf(l)&&(O=void 0);const S=xu(l,{shouldForwardProp:O,label:bf(d,p),...h}),x=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(P){return hr(P,E,P.theme.modularCssLayers?f:void 0)};if(Jt(E)){const j=pf(E);return function(I){return j.variants?hr(I,j,I.theme.modularCssLayers?f:void 0):I.theme.modularCssLayers?Mo(j.style,f):j.style}}return E},T=(...E)=>{const j=[],P=E.map(x),I=[];if(j.push(i),d&&v&&I.push(function($){const M=$.theme.components?.[d]?.styleOverrides;if(!M)return null;const k={};for(const z in M)k[z]=hr($,M[z],$.theme.modularCssLayers?"theme":void 0);return v($,k)}),d&&!y&&I.push(function($){const M=$.theme?.components?.[d]?.variants;return M?oc($,M,[],$.theme.modularCssLayers?"theme":void 0):null}),C||I.push(rn),Array.isArray(P[0])){const m=P.shift(),$=new Array(j.length).fill(""),R=new Array(I.length).fill("");let M;M=[...$,...m,...R],M.raw=[...$,...m.raw,...R],j.unshift(M)}const N=[...j,...P,...I],A=S(...N);return l.muiName&&(A.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(A.displayName=hf(d,p,l)),A};return S.withConfig&&(T.withConfig=S.withConfig),T}}function hf(e,o,n){return e?`${e}${F(o||"")}`:`Styled(${df(n)})`}function bf(e,o){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${nc(o||"Root")}`),n}function yf(e){for(const o in e)return!1;return!0}function vf(e){return typeof e=="string"&&e.charCodeAt(0)>96}function nc(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Kn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ct=e=>Kn(e)&&e!=="classes",D=gf({themeId:Kr,defaultTheme:hi,rootShouldForwardProp:Ct});function xf(e){return function(n){return u.jsx(ec,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Cf(){return ou}const me=le.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(t.node,t.object.isRequired);function Te(e){return Eu(e)}function Ce(e,o,n="Mui"){const r={};return o.forEach(a=>{r[a]=xe(e,a,n)}),r}function wf(e){return xe("MuiSvgIcon",e)}Ce("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Sf=e=>{const{color:o,fontSize:n,classes:r}=e,a={root:["root",o!=="inherit"&&`color${F(o)}`,`fontSize${F(n)}`]};return we(a,wf,r)},Tf=D("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.color!=="inherit"&&o[`color${F(n.color)}`],o[`fontSize${F(n.fontSize)}`]]}})(me(({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:o=>!o.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(([,o])=>o&&o.main).map(([o])=>({props:{color:o},style:{color:(e.vars??e).palette?.[o]?.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}}]}))),wr=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiSvgIcon"}),{children:a,className:i,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:p=!1,titleAccess:g,viewBox:b="0 0 24 24",...v}=r,h=w.isValidElement(a)&&a.type==="svg",f={...r,color:s,component:l,fontSize:c,instanceFontSize:o.fontSize,inheritViewBox:p,viewBox:b,hasSvgAsChild:h},y={};p||(y.viewBox=b);const C=Sf(f);return u.jsxs(Tf,{as:l,className:re(C.root,i),focusable:"false",color:d,"aria-hidden":g?void 0:!0,role:g?"img":void 0,ref:n,...y,...v,...h&&a.props,ownerState:f,children:[h?a.props.children:a,g?u.jsx("title",{children:g}):null]})});process.env.NODE_ENV!=="production"&&(wr.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),t.string]),component:t.elementType,fontSize:t.oneOfType([t.oneOf(["inherit","large","medium","small"]),t.string]),htmlColor:t.string,inheritViewBox:t.bool,shapeRendering:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),titleAccess:t.string,viewBox:t.string});wr.muiName="SvgIcon";function st(e,o){function n(r,a){return u.jsx(wr,{"data-testid":process.env.NODE_ENV!=="production"?`${o}Icon`:void 0,ref:a,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${o}Icon`),n.muiName=wr.muiName,w.memo(w.forwardRef(n))}function rc(e,o=166){let n;function r(...a){const i=()=>{e.apply(this,a)};clearTimeout(n),n=setTimeout(i,o)}return r.clear=()=>{clearTimeout(n)},r}function An(e,o){return w.isValidElement(e)&&o.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function mt(e){return e&&e.ownerDocument||document}function so(e){return mt(e).defaultView||window}function Ua(e,o){typeof e=="function"?e(o):e&&(e.current=o)}function Of(e,o,n,r,a){if(process.env.NODE_ENV==="production")return null;const i=a||o;return typeof e[o]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Qt(e){const{controlled:o,default:n,name:r,state:a="value"}=e,{current:i}=w.useRef(o!==void 0),[s,l]=w.useState(n),c=i?o:s;if(process.env.NODE_ENV!=="production"){w.useEffect(()=>{i!==(o!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${a} state of ${r} to be ${i?"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
|
-
`))},[
|
|
36
|
-
`))},[JSON.stringify(n)])}const
|
|
37
|
-
`))}return!1}const Ls={};function ic(e,o){const n=w.useRef(Ls);return n.current===Ls&&(n.current=e(o)),n}class Sr{static create(){return new Sr}static use(){const o=ic(Sr.create).current,[n,r]=w.useState(!1);return o.shouldMount=n,o.setShouldMount=r,w.useEffect(o.mountEffect,[n]),o}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=If(),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(...o){this.mount().then(()=>this.ref.current?.start(...o))}stop(...o){this.mount().then(()=>this.ref.current?.stop(...o))}pulsate(...o){this.mount().then(()=>this.ref.current?.pulsate(...o))}}function Rf(){return Sr.use()}function If(){let e,o;const n=new Promise((r,a)=>{e=r,o=a});return n.resolve=e,n.reject=o,n}function Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ha.apply(null,arguments)}function sc(e,o){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(o.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function qa(e,o){return qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qa(e,o)}function lc(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,qa(e,o)}const Bs={disabled:!1};var $f=process.env.NODE_ENV!=="production"?t.oneOfType([t.number,t.shape({enter:t.number,exit:t.number,appear:t.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&t.oneOfType([t.string,t.shape({enter:t.string,exit:t.string,active:t.string}),t.shape({enter:t.string,enterDone:t.string,enterActive:t.string,exit:t.string,exitDone:t.string,exitActive:t.string})]);const Tr=Re.createContext(null);var jf=function(o){return o.scrollTop},In="unmounted",Io="exited",$o="entering",Jo="entered",Ga="exiting",Kt=(function(e){lc(o,e);function o(r,a){var i;i=e.call(this,r,a)||this;var s=a,l=s&&!s.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?l?(c=Io,i.appearStatus=$o):c=Jo:r.unmountOnExit||r.mountOnEnter?c=In:c=Io,i.state={status:c},i.nextCallback=null,i}o.getDerivedStateFromProps=function(a,i){var s=a.in;return s&&i.status===In?{status:Io}:null};var n=o.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==$o&&s!==Jo&&(i=$o):(s===$o||s===Jo)&&(i=Ga)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,s,l;return i=s=l=a,a!=null&&typeof a!="number"&&(i=a.exit,s=a.enter,l=a.appear!==void 0?a.appear:s),{exit:i,enter:s,appear:l}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===$o){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:kn.findDOMNode(this);s&&jf(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Io&&this.setState({status:In})},n.performEnter=function(a){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:a,c=this.props.nodeRef?[l]:[kn.findDOMNode(this),l],d=c[0],p=c[1],g=this.getTimeouts(),b=l?g.appear:g.enter;if(!a&&!s||Bs.disabled){this.safeSetState({status:Jo},function(){i.props.onEntered(d)});return}this.props.onEnter(d,p),this.safeSetState({status:$o},function(){i.props.onEntering(d,p),i.onTransitionEnd(b,function(){i.safeSetState({status:Jo},function(){i.props.onEntered(d,p)})})})},n.performExit=function(){var a=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:kn.findDOMNode(this);if(!i||Bs.disabled){this.safeSetState({status:Io},function(){a.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ga},function(){a.props.onExiting(l),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:Io},function(){a.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,a(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:kn.findDOMNode(this),l=a==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],d=c[0],p=c[1];this.props.addEndListener(d,p)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===In)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=sc(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Re.createElement(Tr.Provider,{value:null},typeof s=="function"?s(a,l):Re.cloneElement(Re.Children.only(s),l))},o})(Re.Component);Kt.contextType=Tr;Kt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:t.shape({current:typeof Element>"u"?t.any:function(e,o,n,r,a,i){var s=e[o];return t.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,o,n,r,a,i)}}),children:t.oneOfType([t.func.isRequired,t.element.isRequired]).isRequired,in:t.bool,mountOnEnter:t.bool,unmountOnExit:t.bool,appear:t.bool,enter:t.bool,exit:t.bool,timeout:function(o){var n=$f;o.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[o].concat(a))},addEndListener:t.func,onEnter:t.func,onEntering:t.func,onEntered:t.func,onExit:t.func,onExiting:t.func,onExited:t.func}:{};function Xo(){}Kt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xo,onEntering:Xo,onEntered:Xo,onExit:Xo,onExiting:Xo,onExited:Xo};Kt.UNMOUNTED=In;Kt.EXITED=Io;Kt.ENTERING=$o;Kt.ENTERED=Jo;Kt.EXITING=Ga;function Mf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bi(e,o){var n=function(i){return o&&Re.isValidElement(i)?o(i):i},r=Object.create(null);return e&&Re.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function Nf(e,o){e=e||{},o=o||{};function n(p){return p in o?o[p]:e[p]}var r=Object.create(null),a=[];for(var i in e)i in o?a.length&&(r[i]=a,a=[]):a.push(i);var s,l={};for(var c in o){if(r[c])for(s=0;s<r[c].length;s++){var d=r[c][s];l[r[c][s]]=n(d)}l[c]=n(c)}for(s=0;s<a.length;s++)l[a[s]]=n(a[s]);return l}function No(e,o,n){return n[o]!=null?n[o]:e.props[o]}function Af(e,o){return bi(e.children,function(n){return Re.cloneElement(n,{onExited:o.bind(null,n),in:!0,appear:No(n,"appear",e),enter:No(n,"enter",e),exit:No(n,"exit",e)})})}function Lf(e,o,n){var r=bi(e.children),a=Nf(o,r);return Object.keys(a).forEach(function(i){var s=a[i];if(Re.isValidElement(s)){var l=i in o,c=i in r,d=o[i],p=Re.isValidElement(d)&&!d.props.in;c&&(!l||p)?a[i]=Re.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:No(s,"exit",e),enter:No(s,"enter",e)}):!c&&l&&!p?a[i]=Re.cloneElement(s,{in:!1}):c&&l&&Re.isValidElement(d)&&(a[i]=Re.cloneElement(s,{onExited:n.bind(null,s),in:d.props.in,exit:No(s,"exit",e),enter:No(s,"enter",e)}))}}),a}var Bf=Object.values||function(e){return Object.keys(e).map(function(o){return e[o]})},Df={component:"div",childFactory:function(o){return o}},yi=(function(e){lc(o,e);function o(r,a){var i;i=e.call(this,r,a)||this;var s=i.handleExited.bind(Mf(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=o.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(a,i){var s=i.children,l=i.handleExited,c=i.firstRender;return{children:c?Af(a,l):Lf(a,s,l),firstRender:!1}},n.handleExited=function(a,i){var s=bi(this.props.children);a.key in s||(a.props.onExited&&a.props.onExited(i),this.mounted&&this.setState(function(l){var c=Ha({},l.children);return delete c[a.key],{children:c}}))},n.render=function(){var a=this.props,i=a.component,s=a.childFactory,l=sc(a,["component","childFactory"]),c=this.state.contextValue,d=Bf(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,i===null?Re.createElement(Tr.Provider,{value:c},d):Re.createElement(Tr.Provider,{value:c},Re.createElement(i,l,d))},o})(Re.Component);yi.propTypes=process.env.NODE_ENV!=="production"?{component:t.any,children:t.node,appear:t.bool,enter:t.bool,exit:t.bool,childFactory:t.func}:{};yi.defaultProps=Df;const zf=[];function Ff(e){w.useEffect(e,zf)}class Yr{static create(){return new Yr}currentId=null;start(o,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},o)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function vo(){const e=ic(Yr.create).current;return Ff(e.disposeEffect),e}function cc(e){const{className:o,classes:n,pulsate:r=!1,rippleX:a,rippleY:i,rippleSize:s,in:l,onExited:c,timeout:d}=e,[p,g]=w.useState(!1),b=re(o,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+i,left:-(s/2)+a},h=re(n.child,p&&n.childLeaving,r&&n.childPulsate);return!l&&!p&&g(!0),w.useEffect(()=>{if(!l&&c!=null){const f=setTimeout(c,d);return()=>{clearTimeout(f)}}},[c,l,d]),u.jsx("span",{className:b,style:v,children:u.jsx("span",{className:h})})}process.env.NODE_ENV!=="production"&&(cc.propTypes={classes:t.object.isRequired,className:t.string,in:t.bool,onExited:t.func,pulsate:t.bool,rippleSize:t.number,rippleX:t.number,rippleY:t.number,timeout:t.number.isRequired});const Dt=Ce("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ka=550,Vf=80,_f=le.keyframes`
|
|
32
|
+
export default theme;`}function Tu(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Ky=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Yy(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Li(t,Ky(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Tu(n)})`:ys(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Tu(n)})`:bs(t,n)}})}function $a(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:s={},transitions:a={},typography:l={},shape:c,colorSpace:u,...d}=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.":Cn(20));const p=Ml({...s,colorSpace:u}),f=nf(e);let b=At(f,{mixins:Ly(f.breakpoints,r),palette:p,shadows:Wy.slice(),typography:By(p,l),transitions:Hy(a),zIndex:{...qy}});if(b=At(b,d),b=t.reduce((g,h)=>At(g,h),b),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(v,w)=>{let C;for(C in v){const S=v[C];if(g.includes(C)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const x=Ee("",C);console.error([`MUI: The \`${w}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
33
|
+
`))}v[C]={}}}};Object.keys(b.components).forEach(v=>{const w=b.components[v].styleOverrides;w&&v.startsWith("Mui")&&h(w,v)})}return b.unstable_sxConfig={...Gr,...d?.unstable_sxConfig},b.unstable_sx=function(h){return Uo({sx:h,theme:this})},b.toRuntimeSource=rf,Yy(b),b}function Na(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 Xy=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Na(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function sf(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function af(e){return e==="dark"?Xy:[]}function Zy(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...s}=e,a=Ml({...t,colorSpace:i});return{palette:a,opacity:{...sf(a.mode),...n},overlays:r||af(a.mode),...s}}function Jy(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 Qy=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ev=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let s=i;if(i==="class"&&(s=".%s"),i==="data"&&(s="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(s=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Qy(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:s?{[s.replace("%s",t)]:a,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function tv(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Y(e,t,n){!e[t]&&n&&(e[t]=n)}function xr(e){return typeof e!="string"||!e.startsWith("hsl")?e:Zp(e)}function Pn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=vr(xr(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 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,r,t]);const{current:d}=O.useRef(n);O.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
36
|
+
`))},[JSON.stringify(n)])}const u=O.useCallback(d=>{s||l(d)},[]);return[c,u]}function St(e){const t=O.useRef(e);return nn(()=>{t.current=e}),O.useRef((...n)=>(0,t.current)(...n)).current}function it(...e){const t=O.useRef(void 0),n=O.useCallback(r=>{const i=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{i.forEach(s=>s?.())}},e);return O.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function wv(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function hf(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{wv(u,l[u])&&typeof a[u]=="function"&&(c[u]=(...d)=>{a[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,u=ce(a?.className,l?.className,c?.className),d=n(c,l);return{...l,...c,...d,...!!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 r=t,i=n(e,r),s=ce(r?.className,e?.className);return{...t,...e,...i,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Bt=o.oneOfType([o.func,o.object]);function Rt(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Cv(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Sv(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!Cv(s)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Yr=Rt(o.elementType,Sv);function Gn(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 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`
|
|
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.${o}Chann
|
|
|
44
44
|
transform: scale(1);
|
|
45
45
|
opacity: 0.3;
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
47
|
+
`,Bv=fe.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.${o}Chann
|
|
|
52
52
|
100% {
|
|
53
53
|
opacity: 0;
|
|
54
54
|
}
|
|
55
|
-
`,
|
|
55
|
+
`,Vv=fe.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.${o}Chann
|
|
|
64
64
|
100% {
|
|
65
65
|
transform: scale(1);
|
|
66
66
|
}
|
|
67
|
-
`,
|
|
67
|
+
`,Fv=B("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zv=B(yf,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
68
68
|
opacity: 0;
|
|
69
69
|
position: absolute;
|
|
70
70
|
|
|
71
|
-
&.${
|
|
71
|
+
&.${Yt.rippleVisible} {
|
|
72
72
|
opacity: 0.3;
|
|
73
73
|
transform: scale(1);
|
|
74
|
-
animation-name: ${
|
|
75
|
-
animation-duration: ${
|
|
74
|
+
animation-name: ${Dv};
|
|
75
|
+
animation-duration: ${Fa}ms;
|
|
76
76
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
&.${
|
|
79
|
+
&.${Yt.ripplePulsate} {
|
|
80
80
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
& .${
|
|
83
|
+
& .${Yt.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.${o}Chann
|
|
|
89
89
|
background-color: currentColor;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
& .${
|
|
92
|
+
& .${Yt.childLeaving} {
|
|
93
93
|
opacity: 0;
|
|
94
|
-
animation-name: ${
|
|
95
|
-
animation-duration: ${
|
|
94
|
+
animation-name: ${Bv};
|
|
95
|
+
animation-duration: ${Fa}ms;
|
|
96
96
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
& .${
|
|
99
|
+
& .${Yt.childPulsate} {
|
|
100
100
|
position: absolute;
|
|
101
101
|
/* @noflip */
|
|
102
102
|
left: 0px;
|
|
103
103
|
top: 0;
|
|
104
|
-
animation-name: ${
|
|
104
|
+
animation-name: ${Vv};
|
|
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
|
+
`,vf=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:a,...l}=r,[c,u]=O.useState([]),d=O.useRef(0),p=O.useRef(null);O.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const f=O.useRef(!1),b=Wn(),g=O.useRef(null),h=O.useRef(null),v=O.useCallback(x=>{const{pulsate:T,rippleX:P,rippleY:j,rippleSize:R,cb:k}=x;u(I=>[...I,m.jsx(zv,{classes:{ripple:ce(s.ripple,Yt.ripple),rippleVisible:ce(s.rippleVisible,Yt.rippleVisible),ripplePulsate:ce(s.ripplePulsate,Yt.ripplePulsate),child:ce(s.child,Yt.child),childLeaving:ce(s.childLeaving,Yt.childLeaving),childPulsate:ce(s.childPulsate,Yt.childPulsate)},timeout:Fa,pulsate:T,rippleX:P,rippleY:j,rippleSize:R},d.current)]),d.current+=1,p.current=k},[s]),w=O.useCallback((x={},T={},P=()=>{})=>{const{pulsate:j=!1,center:R=i||T.pulsate,fakeElement:k=!1}=T;if(x?.type==="mousedown"&&f.current){f.current=!1;return}x?.type==="touchstart"&&(f.current=!0);const I=k?null:h.current,A=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let y,N,M;if(R||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)y=Math.round(A.width/2),N=Math.round(A.height/2);else{const{clientX:L,clientY:E}=x.touches&&x.touches.length>0?x.touches[0]:x;y=Math.round(L-A.left),N=Math.round(E-A.top)}if(R)M=Math.sqrt((2*A.width**2+A.height**2)/3),M%2===0&&(M+=1);else{const L=Math.max(Math.abs((I?I.clientWidth:0)-y),y)*2+2,E=Math.max(Math.abs((I?I.clientHeight:0)-N),N)*2+2;M=Math.sqrt(L**2+E**2)}x?.touches?g.current===null&&(g.current=()=>{v({pulsate:j,rippleX:y,rippleY:N,rippleSize:M,cb:P})},b.start(Lv,()=>{g.current&&(g.current(),g.current=null)})):v({pulsate:j,rippleX:y,rippleY:N,rippleSize:M,cb:P})},[i,v,b]),C=O.useCallback(()=>{w({},{pulsate:!0})},[w]),S=O.useCallback((x,T)=>{if(b.clear(),x?.type==="touchend"&&g.current){g.current(),g.current=null,b.start(0,()=>{S(x,T)});return}g.current=null,u(P=>P.length>0?P.slice(1):P),p.current=T},[b]);return O.useImperativeHandle(n,()=>({pulsate:C,start:w,stop:S}),[C,w,S]),m.jsx(Fv,{className:ce(Yt.root,s.root,a),ref:h,...l,children:m.jsx(Nl,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(vf.propTypes={center:o.bool,classes:o.object,className:o.string});function Wv(e){return Ee("MuiButtonBase",e)}const _v=Re("MuiButtonBase",["root","disabled","focusVisible"]),Uv=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=ke({root:["root",t&&"disabled",n&&"focusVisible"]},Wv,i);return n&&r&&(a.root+=` ${r}`),a},Hv=B("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"},[`&.${_v.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kn=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:f=!1,focusVisibleClassName:b,LinkComponent:g="a",onBlur:h,onClick:v,onContextMenu:w,onDragLeave:C,onFocus:S,onFocusVisible:x,onKeyDown:T,onKeyUp:P,onMouseDown:j,onMouseLeave:R,onMouseUp:k,onTouchEnd:I,onTouchMove:A,onTouchStart:y,tabIndex:N=0,TouchRippleProps:M,touchRippleRef:L,type:E,...V}=r,F=O.useRef(null),W=Tv(),D=it(W.ref,L),[$,Z]=O.useState(!1);u&&$&&Z(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{Z(!0),F.current.focus()}}),[]);const te=W.shouldMount&&!d&&!u;O.useEffect(()=>{$&&f&&!d&&W.pulsate()},[d,f,$,W]);const re=On(W,"start",j,p),J=On(W,"stop",w,p),U=On(W,"stop",C,p),ie=On(W,"stop",k,p),de=On(W,"stop",se=>{$&&se.preventDefault(),R&&R(se)},p),ne=On(W,"start",y,p),ee=On(W,"stop",I,p),pe=On(W,"stop",A,p),_=On(W,"stop",se=>{Gn(se.target)||Z(!1),h&&h(se)},!1),ae=St(se=>{F.current||(F.current=se.currentTarget),Gn(se.target)&&(Z(!0),x&&x(se)),S&&S(se)}),ue=()=>{const se=F.current;return c&&c!=="button"&&!(se.tagName==="A"&&se.href)},he=St(se=>{f&&!se.repeat&&$&&se.key===" "&&W.stop(se,()=>{W.start(se)}),se.target===se.currentTarget&&ue()&&se.key===" "&&se.preventDefault(),T&&T(se),se.target===se.currentTarget&&ue()&&se.key==="Enter"&&!u&&(se.preventDefault(),v&&v(se))}),Ae=St(se=>{f&&se.key===" "&&$&&!se.defaultPrevented&&W.stop(se,()=>{W.pulsate(se)}),P&&P(se),v&&se.target===se.currentTarget&&ue()&&se.key===" "&&!se.defaultPrevented&&v(se)});let Me=c;Me==="button"&&(V.href||V.to)&&(Me=g);const oe={};if(Me==="button"){const se=!!V.formAction;oe.type=E===void 0&&!se?"button":E,oe.disabled=u}else!V.href&&!V.to&&(oe.role="button"),u&&(oe["aria-disabled"]=u);const $e=it(n,F),Ce={...r,centerRipple:s,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:f,tabIndex:N,focusVisible:$},ve=Uv(Ce);return m.jsxs(Hv,{as:Me,className:ce(ve.root,l),ownerState:Ce,onBlur:_,onClick:v,onContextMenu:J,onFocus:ae,onKeyDown:he,onKeyUp:Ae,onMouseDown:re,onMouseLeave:de,onMouseUp:ie,onDragLeave:U,onTouchEnd:ee,onTouchMove:pe,onTouchStart:ne,ref:$e,tabIndex:u?-1:N,type:E,...oe,...V,children:[a,te?m.jsx(vf,{ref:D,center:s,...M}):null]})});function On(e,t,n,r=!1){return St(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(kn.propTypes={action:Bt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:Yr,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 qv(e){return typeof e.main=="string"}function Gv(e,t=[]){if(!qv(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ke(e=[]){return([,t])=>t&&Gv(t,e)}function Kv(e){return Ee("MuiCircularProgress",e)}Re("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const an=44,za=fe.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.${o}Chann
|
|
|
115
115
|
100% {
|
|
116
116
|
transform: rotate(360deg);
|
|
117
117
|
}
|
|
118
|
-
`,
|
|
118
|
+
`,Wa=fe.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.${o}Chann
|
|
|
130
130
|
stroke-dasharray: 1px, 200px;
|
|
131
131
|
stroke-dashoffset: -126px;
|
|
132
132
|
}
|
|
133
|
-
`,
|
|
134
|
-
animation: ${
|
|
135
|
-
`:null,
|
|
136
|
-
animation: ${
|
|
137
|
-
`:null,om=e=>{const{classes:o,variant:n,color:r,disableShrink:a}=e,i={root:["root",n,`color${F(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${F(n)}`,a&&"circleDisableShrink"]};return we(i,Qf,o)},nm=D("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[n.variant],o[`color${F(n.color)}`]]}})(me(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:em||{animation:`${Ya} 1.4s linear infinite`}},...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{color:(e.vars||e).palette[o].main}}))]}))),rm=D("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),am=D("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.circle,o[`circle${F(n.variant)}`],n.disableShrink&&o.circleDisableShrink]}})(me(({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:o})=>o.variant==="indeterminate"&&!o.disableShrink,style:tm||{animation:`${Xa} 1.4s ease-in-out infinite`}}]}))),im=D("circle",{name:"MuiCircularProgress",slot:"Track"})(me(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),xo=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiCircularProgress"}),{className:a,color:i="primary",disableShrink:s=!1,enableTrackSlot:l=!1,size:c=40,style:d,thickness:p=3.6,value:g=0,variant:b="indeterminate",...v}=r,h={...r,color:i,disableShrink:s,size:c,thickness:p,value:g,variant:b,enableTrackSlot:l},f=om(h),y={},C={},O={};if(b==="determinate"){const S=2*Math.PI*((Gt-p)/2);y.strokeDasharray=S.toFixed(3),O["aria-valuenow"]=Math.round(g),y.strokeDashoffset=`${((100-g)/100*S).toFixed(3)}px`,C.transform="rotate(-90deg)"}return u.jsx(nm,{className:re(f.root,a),style:{width:c,height:c,...C,...d},ownerState:h,ref:n,role:"progressbar",...O,...v,children:u.jsxs(rm,{className:f.svg,ownerState:h,viewBox:`${Gt/2} ${Gt/2} ${Gt} ${Gt}`,children:[l?u.jsx(im,{className:f.track,ownerState:h,cx:Gt,cy:Gt,r:(Gt-p)/2,fill:"none",strokeWidth:p,"aria-hidden":"true"}):null,u.jsx(am,{className:f.circle,style:y,ownerState:h,cx:Gt,cy:Gt,r:(Gt-p)/2,fill:"none",strokeWidth:p})]})})});process.env.NODE_ENV!=="production"&&(xo.propTypes={classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","primary","secondary","error","info","success","warning"]),t.string]),disableShrink:xt(t.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:t.bool,size:t.oneOfType([t.number,t.string]),style:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),thickness:t.number,value:t.number,variant:t.oneOf(["determinate","indeterminate"])});function sm(e){return xe("MuiButton",e)}const Ro=Ce("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"]),vi=w.createContext({});process.env.NODE_ENV!=="production"&&(vi.displayName="ButtonGroupContext");const xi=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(xi.displayName="ButtonGroupButtonContext");const lm=e=>{const{color:o,disableElevation:n,fullWidth:r,size:a,variant:i,loading:s,loadingPosition:l,classes:c}=e,d={root:["root",s&&"loading",i,`${i}${F(o)}`,`size${F(a)}`,`${i}Size${F(a)}`,`color${F(o)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${F(l)}`],startIcon:["icon","startIcon",`iconSize${F(a)}`],endIcon:["icon","endIcon",`iconSize${F(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=we(d,sm,c);return{...c,...p}},pc=[{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}}}],cm=D(lo,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[n.variant],o[`${n.variant}${F(n.color)}`],o[`size${F(n.size)}`],o[`${n.variant}Size${F(n.size)}`],n.color==="inherit"&&o.colorInherit,n.disableElevation&&o.disableElevation,n.fullWidth&&o.fullWidth,n.loading&&o.loading]}})(me(({theme:e})=>{const o=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"},[`&.${Ro.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]},[`&.${Ro.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ro.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)",[`&.${Ro.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(qe()).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:o,"@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"},[`&.${Ro.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ro.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}),[`&.${Ro.loading}`]:{color:"transparent"}}}]}})),dm=D("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.startIcon,n.loading&&o.startIconLoadingStart,o[`iconSize${F(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}},...pc]})),pm=D("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.endIcon,n.loading&&o.endIconLoadingEnd,o[`iconSize${F(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}},...pc]})),um=D("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}}]})),Ds=D("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Ci=w.forwardRef(function(o,n){const r=w.useContext(vi),a=w.useContext(xi),i=yr(r,o),s=Te({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:d="button",className:p,disabled:g=!1,disableElevation:b=!1,disableFocusRipple:v=!1,endIcon:h,focusVisibleClassName:f,fullWidth:y=!1,id:C,loading:O=null,loadingIndicator:S,loadingPosition:x="center",size:T="medium",startIcon:E,type:j,variant:P="text",...I}=s,N=uo(C),A=S??u.jsx(xo,{"aria-labelledby":N,color:"inherit",size:16}),m={...s,color:c,component:d,disabled:g,disableElevation:b,disableFocusRipple:v,fullWidth:y,loading:O,loadingIndicator:A,loadingPosition:x,size:T,type:j,variant:P},$=lm(m),R=(E||O&&x==="start")&&u.jsx(dm,{className:$.startIcon,ownerState:m,children:E||u.jsx(Ds,{className:$.loadingIconPlaceholder,ownerState:m})}),M=(h||O&&x==="end")&&u.jsx(pm,{className:$.endIcon,ownerState:m,children:h||u.jsx(Ds,{className:$.loadingIconPlaceholder,ownerState:m})}),k=a||"",z=typeof O=="boolean"?u.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:O&&u.jsx(um,{className:$.loadingIndicator,ownerState:m,children:A})}):null;return u.jsxs(cm,{ownerState:m,className:re(r.className,$.root,p,k),component:d,disabled:g||O,focusRipple:!v,focusVisibleClassName:re($.focusVisible,f),ref:n,type:j,id:O?N:C,...I,classes:$,children:[R,x!=="end"&&z,l,x==="end"&&z,M]})});process.env.NODE_ENV!=="production"&&(Ci.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","primary","secondary","success","error","info","warning"]),t.string]),component:t.elementType,disabled:t.bool,disableElevation:t.bool,disableFocusRipple:t.bool,disableRipple:t.bool,endIcon:t.node,focusVisibleClassName:t.string,fullWidth:t.bool,href:t.string,id:t.string,loading:t.bool,loadingIndicator:t.node,loadingPosition:t.oneOf(["center","end","start"]),size:t.oneOfType([t.oneOf(["small","medium","large"]),t.string]),startIcon:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.oneOfType([t.oneOf(["button","reset","submit"]),t.string]),variant:t.oneOfType([t.oneOf(["contained","outlined","text"]),t.string])});function fm(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function mm(e){return parseFloat(e)}const gm=st(u.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"),hm=st(u.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"),zs=le.keyframes`
|
|
133
|
+
`,Yv=typeof za!="string"?fe.css`
|
|
134
|
+
animation: ${za} 1.4s linear infinite;
|
|
135
|
+
`:null,Xv=typeof Wa!="string"?fe.css`
|
|
136
|
+
animation: ${Wa} 1.4s ease-in-out infinite;
|
|
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`
|
|
138
138
|
from { transform: scale(0); opacity: 0; }
|
|
139
139
|
to { transform: scale(1); opacity: 1; }
|
|
140
|
-
`,bm=D("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),wi=Re.forwardRef(({variante:e="primario",tamano:o="md",forma:n="cuadrado",estado:r="inactivo",cargando:a=!1,disabled:i=!1,iconoIzquierda:s,iconoDerecha:l,soloIcono:c=!1,texto:d,textoCargando:p,textoExito:g,textoError:b,children:v,startIcon:h,endIcon:f,sx:y,color:C,alHacerClick:O,...S},x)=>{const T=jt(),E=a?"cargando":r,j=E==="cargando",P=E==="exito",I=E==="error",N=E==="inactivo"&&!i,A=k=>["contorno","secundario"].includes(k)?"outlined":["fantasma","enlace"].includes(k)?"text":"contained",m=k=>k==="xs"?"small":k==="xl"?"large":k==="md"?"medium":k==="sm"?"small":k==="lg"?"large":"medium",$=(k,z)=>{if(z)switch(z){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 z}switch(k){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"}},R=()=>{const k={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:m(o)==="small"?32:m(o)==="large"?48:40,height:m(o)==="small"?32:m(o)==="large"?48:40,padding:0,borderRadius:n==="cuadrado"?"10px":"50%"},"&:hover":{transform:N?"translateY(-1px)":"none",boxShadow:N&&e!=="fantasma"&&e!=="enlace"?"0 4px 12px rgba(0,0,0,0.1)":"none"},"&:active":{transform:N?"scale(0.98)":"none"}};if(o==="xs"?(k.padding=c?0:"2px 8px",k.fontSize="0.75rem",k.minWidth=c?24:"auto",c&&(k.height=24,k.width=24)):o==="xl"&&(k.padding=c?0:"12px 28px",k.fontSize="1.125rem",c&&(k.height=56,k.width=56)),P&&(k.backgroundColor=T.palette.success.main,k.color=T.palette.success.contrastText,k["&:hover"]={backgroundColor:T.palette.success.dark}),I&&(k.backgroundColor=T.palette.error.main,k.color=T.palette.error.contrastText,k["&:hover"]={backgroundColor:T.palette.error.dark}),e==="suave"&&!P&&!I){const z=$("primario",C)||"primary";let V=T.palette.primary.main;z==="error"?V=T.palette.error.main:z==="success"?V=T.palette.success.main:z==="warning"?V=T.palette.warning.main:z==="info"?V=T.palette.info.main:z==="secondary"&&(V=T.palette.secondary.main),k.backgroundColor=le.alpha(V,.1),k.color=V,k.boxShadow="none",k["&:hover"]={...k["&:hover"],backgroundColor:le.alpha(V,.2),boxShadow:"none"}}return e==="fantasma"&&(k.backgroundColor="transparent",k["&:hover"].backgroundColor=le.alpha(T.palette.action.active,.08)),e==="enlace"&&(k.padding=0,k.minWidth="auto",k.borderRadius=0,k.verticalAlign="baseline",k["&:hover"]={textDecoration:"underline",backgroundColor:"transparent",transform:"none",boxShadow:"none"},k["&:active"]={transform:"none"}),e==="oscuro"&&!P&&!I&&(k.backgroundColor="#1f2937",k.color="#ffffff",k["&:hover"]={...k["&:hover"],backgroundColor:"#111827"}),e==="claro"&&!P&&!I&&(k.backgroundColor="#f3f4f6",k.color="#1f2937",k["&:hover"]={...k["&:hover"],backgroundColor:"#e5e7eb"}),k},M=()=>{const k=v||d;return j?u.jsxs(Re.Fragment,{children:[u.jsx(xo,{size:20,color:"inherit",sx:{mr:p?1:0}}),p||k]}):P?u.jsxs(Re.Fragment,{children:[u.jsx(gm,{sx:{mr:g?1:0,animation:`${zs} 0.3s ease-out`}}),g||"¡Éxito!"]}):I?u.jsxs(Re.Fragment,{children:[u.jsx(hm,{sx:{mr:b?1:0,animation:`${zs} 0.3s ease-out`}}),b||"Error"]}):u.jsxs(Re.Fragment,{children:[s&&u.jsx("span",{style:{marginRight:k?8:0,display:"flex"},children:s}),k,l&&u.jsx("span",{style:{marginLeft:k?8:0,display:"flex"},children:l})]})};return u.jsx(Ci,{ref:x,variant:A(e),color:$(e,C),size:m(o),disabled:i||j,onClick:O,disableElevation:!0,startIcon:void 0,endIcon:void 0,sx:{...R(),...y},...S,children:M()})});wi.displayName="CodeplexBoton";const ym=wi;function Si(e){const o=w.useRef({});return w.useEffect(()=>{o.current=e}),o.current}function vm(e){const{badgeContent:o,invisible:n=!1,max:r=99,showZero:a=!1}=e,i=Si({badgeContent:o,max:r});let s=n;n===!1&&o===0&&!a&&(s=!0);const{badgeContent:l,max:c=r}=s?i:e,d=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:s,max:c,displayValue:d}}function xm(e){return xe("MuiBadge",e)}const ho=Ce("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 uc(e,o,n){return e===void 0||eo(e)?o:{...o,ownerState:{...o.ownerState,...n}}}function fc(e,o,n){return typeof e=="function"?e(o,n):e}function Lo(e,o=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!o.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Fs(e){if(e===void 0)return{};const o={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{o[n]=e[n]}),o}function mc(e){const{getSlotProps:o,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:i}=e;if(!o){const v=re(n?.className,i,a?.className,r?.className),h={...n?.style,...a?.style,...r?.style},f={...n,...a,...r};return v.length>0&&(f.className=v),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:void 0}}const s=Lo({...a,...r}),l=Fs(r),c=Fs(a),d=o(s),p=re(d?.className,n?.className,i,a?.className,r?.className),g={...d?.style,...n?.style,...a?.style,...r?.style},b={...d,...n,...c,...l};return p.length>0&&(b.className=p),Object.keys(g).length>0&&(b.style=g),{props:b,internalRef:d.ref}}function ge(e,o){const{className:n,elementType:r,ownerState:a,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...c}=o,{component:d,slots:p={[e]:void 0},slotProps:g={[e]:void 0},...b}=i,v=p[e]||r,h=fc(g[e],a),{props:{component:f,...y},internalRef:C}=mc({className:n,...c,externalForwardedProps:e==="root"?b:void 0,externalSlotProps:h}),O=ot(C,h?.ref,o.ref),S=e==="root"?f||d:f,x=uc(v,{...e==="root"&&!d&&!p[e]&&s,...e!=="root"&&!p[e]&&s,...y,...S&&!l&&{as:S},...S&&l&&{component:S},ref:O},a);return[v,x]}const Pa=10,Ra=4,Cm=e=>{const{color:o,anchorOrigin:n,invisible:r,overlap:a,variant:i,classes:s={}}=e,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${F(n.vertical)}${F(n.horizontal)}`,`anchorOrigin${F(n.vertical)}${F(n.horizontal)}${F(a)}`,`overlap${F(a)}`,o!=="default"&&`color${F(o)}`]};return we(l,xm,s)},wm=D("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Sm=D("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.badge,o[n.variant],o[`anchorOrigin${F(n.anchorOrigin.vertical)}${F(n.anchorOrigin.horizontal)}${F(n.overlap)}`],n.color!=="default"&&o[`color${F(n.color)}`],n.invisible&&o.invisible]}})(me(({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:Pa*2,lineHeight:1,padding:"0 6px",height:Pa*2,borderRadius:Pa,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(qe(["contrastText"])).map(([o])=>({props:{color:o},style:{backgroundColor:(e.vars||e).palette[o].main,color:(e.vars||e).palette[o].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Ra,height:Ra*2,minWidth:Ra*2,padding:0}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="top"&&o.anchorOrigin.horizontal==="right"&&o.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="bottom"&&o.anchorOrigin.horizontal==="right"&&o.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="top"&&o.anchorOrigin.horizontal==="left"&&o.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="bottom"&&o.anchorOrigin.horizontal==="left"&&o.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="top"&&o.anchorOrigin.horizontal==="right"&&o.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="bottom"&&o.anchorOrigin.horizontal==="right"&&o.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="top"&&o.anchorOrigin.horizontal==="left"&&o.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${ho.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:o})=>o.anchorOrigin.vertical==="bottom"&&o.anchorOrigin.horizontal==="left"&&o.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${ho.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 Vs(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const Xr=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiBadge"}),{anchorOrigin:a,className:i,classes:s,component:l,components:c={},componentsProps:d={},children:p,overlap:g="rectangular",color:b="default",invisible:v=!1,max:h=99,badgeContent:f,slots:y,slotProps:C,showZero:O=!1,variant:S="standard",...x}=r,{badgeContent:T,invisible:E,max:j,displayValue:P}=vm({max:h,invisible:v,badgeContent:f,showZero:O}),I=Si({anchorOrigin:Vs(a),color:b,overlap:g,variant:S,badgeContent:f}),N=E||T==null&&S!=="dot",{color:A=b,overlap:m=g,anchorOrigin:$,variant:R=S}=N?I:r,M=Vs($),k=R!=="dot"?P:void 0,z={...r,badgeContent:T,invisible:N,max:j,displayValue:k,showZero:O,anchorOrigin:M,color:A,overlap:m,variant:R},V=Cm(z),W={slots:{root:y?.root??c.Root,badge:y?.badge??c.Badge},slotProps:{root:C?.root??d.root,badge:C?.badge??d.badge}},[B,L]=ge("root",{elementType:wm,externalForwardedProps:{...W,...x},ownerState:z,className:re(V.root,i),ref:n,additionalProps:{as:l}}),[Y,Z]=ge("badge",{elementType:Sm,externalForwardedProps:W,ownerState:z,className:V.badge});return u.jsxs(B,{...L,children:[p,u.jsx(Y,{...Z,children:k})]})});process.env.NODE_ENV!=="production"&&(Xr.propTypes={anchorOrigin:t.shape({horizontal:t.oneOf(["left","right"]),vertical:t.oneOf(["bottom","top"])}),badgeContent:t.node,children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["default","primary","secondary","error","info","success","warning"]),t.string]),component:t.elementType,components:t.shape({Badge:t.elementType,Root:t.elementType}),componentsProps:t.shape({badge:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),invisible:t.bool,max:t.number,overlap:t.oneOf(["circular","rectangular"]),showZero:t.bool,slotProps:t.shape({badge:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({badge:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOfType([t.oneOf(["dot","standard"]),t.string])});const Tm=le.keyframes`
|
|
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`
|
|
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.${o}Chann
|
|
|
151
151
|
100% {
|
|
152
152
|
transform: scale(1);
|
|
153
153
|
}
|
|
154
|
-
`,Om=D(Xr,{shouldForwardProp:e=>e!=="animado"&&e!=="borde"})(({theme:e,animado:o,borde:n})=>({"& .MuiBadge-badge":{...n&&{boxShadow:`0 0 0 2px ${e.palette.background.paper}`},...o&&{animation:`${Tm} 1.5s infinite ease-in-out`}}})),gc=({children:e,color:o="primario",contenido:n,variante:r="estandar",maximo:a=99,mostrarCero:i=!1,superposicion:s="rectangular",invisible:l=!1,posicionVertical:c="arriba",posicionHorizontal:d="derecha",animado:p=!1,borde:g=!1,...b})=>{const v=y=>{switch(y){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"}},h=y=>y==="punto"?"dot":"standard",f=()=>({vertical:c==="arriba"?"top":"bottom",horizontal:d==="derecha"?"right":"left"});return u.jsx(Om,{color:v(o),badgeContent:n,variant:h(r),max:a,showZero:i,overlap:s,invisible:l,anchorOrigin:f(),animado:p,borde:g,...b,children:e})},Em=gc,km=Ce("MuiBox",["root"]),Pm=Ql(),Ue=le.createBox({themeId:Kr,defaultTheme:Pm,defaultClassName:km.root,generateClassName:Fl.generate});process.env.NODE_ENV!=="production"&&(Ue.propTypes={children:t.node,component:t.elementType,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function Rm(e){return xe("MuiTypography",e)}const Or=Ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Im={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},$m=Cf(),jm=e=>{const{align:o,gutterBottom:n,noWrap:r,paragraph:a,variant:i,classes:s}=e,l={root:["root",i,e.align!=="inherit"&&`align${F(o)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return we(l,Rm,s)},Mm=D("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.variant&&o[n.variant],n.align!=="inherit"&&o[`align${F(n.align)}`],n.noWrap&&o.noWrap,n.gutterBottom&&o.gutterBottom,n.paragraph&&o.paragraph]}})(me(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([o,n])=>o!=="inherit"&&n&&typeof n=="object").map(([o,n])=>({props:{variant:o},style:n})),...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{color:(e.vars||e).palette[o].main}})),...Object.entries(e.palette?.text||{}).filter(([,o])=>typeof o=="string").map(([o])=>({props:{color:`text${F(o)}`},style:{color:(e.vars||e).palette.text[o]}})),{props:({ownerState:o})=>o.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:o})=>o.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:o})=>o.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:o})=>o.paragraph,style:{marginBottom:16}}]}))),_s={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},nt=w.forwardRef(function(o,n){const{color:r,...a}=Te({props:o,name:"MuiTypography"}),i=!Im[r],s=$m({...a,...i&&{color:r}}),{align:l="inherit",className:c,component:d,gutterBottom:p=!1,noWrap:g=!1,paragraph:b=!1,variant:v="body1",variantMapping:h=_s,...f}=s,y={...s,align:l,color:r,className:c,component:d,gutterBottom:p,noWrap:g,paragraph:b,variant:v,variantMapping:h},C=d||(b?"p":h[v]||_s[v])||"span",O=jm(y);return u.jsx(Mm,{as:C,ref:n,className:re(O.root,c),...f,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(nt.propTypes={align:t.oneOf(["center","inherit","justify","left","right"]),children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),t.string]),component:t.elementType,gutterBottom:t.bool,noWrap:t.bool,paragraph:t.bool,style:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOfType([t.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),t.string]),variantMapping:t.object});const hc=({tamano:e="md",color:o="primario",tipo:n="borde",etiqueta:r,posicionEtiqueta:a="derecha",pantallaCompleta:i=!1,className:s="",sx:l,...c})=>{const d=jt(),g=typeof e=="number"?e:{xs:16,sm:24,md:40,lg:56,xl:80}[e],v={primario:"primary",secundario:"secondary",error:"error",info:"info",exito:"success",advertencia:"warning",blanco:"inherit",gris:"inherit"}[o]||"primary",f=o==="blanco"?"#ffffff":o==="gris"?d.palette.grey[500]:d.palette[v]?.main||d.palette.primary.main,y=()=>u.jsx(xo,{size:g,color:v,className:s,sx:{color:v==="inherit"?f:void 0,...l},...c}),C=()=>u.jsxs(Ue,{position:"relative",display:"inline-flex",width:g,height:g,className:s,sx:l,children:[u.jsx(xo,{variant:"determinate",value:100,size:g,sx:{color:d.palette.mode==="dark"?le.alpha(f,.2):le.alpha(f,.1),position:"absolute"}}),u.jsx(xo,{variant:"indeterminate",disableShrink:!0,size:g,sx:{color:f,animationDuration:"1.2s",position:"absolute",left:0,"& .MuiCircularProgress-circle":{strokeLinecap:"round"}},...c})]}),O=()=>u.jsx(Ue,{display:"flex",gap:.5,className:s,sx:{height:g,alignItems:"center",...l},children:[0,1,2].map(A=>u.jsx(Ue,{sx:{width:g/3,height:g/3,borderRadius:"50%",bgcolor:f,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=()=>u.jsxs(Ue,{position:"relative",display:"inline-flex",width:g,height:g,className:s,sx:l,children:[u.jsx(Ue,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:f,opacity:.75,animation:"pulso 1s cubic-bezier(0, 0, 0.2, 1) infinite","@keyframes pulso":{"75%, 100%":{transform:"scale(2)",opacity:0}}}}),u.jsx(Ue,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:f}})]}),x=()=>{const A=g/2-g*.1;return u.jsx(Ue,{width:g,height:g,position:"relative",className:s,sx:l,children:[0,1,2,3].map(m=>u.jsx(Ue,{sx:{position:"absolute",width:A,height:A,borderRadius:"50%",bgcolor:f,top:m<2?0:"auto",bottom:m>=2?0:"auto",left:m%2===0?0:"auto",right:m%2!==0?0:"auto",animation:"cuadricula-fade 1.5s infinite linear",animationDelay:m===1?"-0.4s":m===2?"-0.8s":m===3?"-1.2s":"0s","@keyframes cuadricula-fade":{"0%, 100%":{opacity:1},"50%":{opacity:.3}}}},m))})},T=(A,m,$,R)=>u.jsx(Ue,{width:g,height:g,position:"relative",className:s,sx:l,children:Array.from({length:A}).map((M,k)=>u.jsx(Ue,{sx:{transformOrigin:"50% 50%",animation:"spinner-fade 1s linear infinite",animationDelay:`${-1+k/A}s`,transform:`rotate(${k*(360/A)}deg) translate(0, -130%)`,position:"absolute",top:"50%",left:"50%",width:g*m,height:g*$,borderRadius:R,bgcolor:f,"@keyframes spinner-fade":{"0%":{opacity:1},"100%":{opacity:0}}}},k))}),E=()=>T(12,.08,.24,"4px"),j=()=>T(8,.2,.2,"4px"),P=()=>T(12,.15,.15,"50%"),I=()=>{switch(n){case"anillo":return C();case"puntos":return O();case"pulso":return S();case"segmentos":return j();case"lineas":return E();case"puntos-circulo":return P();case"cuadricula":return x();default:return y()}},N=u.jsxs(Ue,{display:"inline-flex",flexDirection:a==="abajo"?"column":"row",alignItems:"center",justifyContent:"center",gap:1.5,children:[I(),r&&u.jsx(nt,{variant:"body2",color:"text.secondary",fontWeight:500,whiteSpace:"nowrap",children:r})]});return i?u.jsx(Ue,{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9999,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:d.palette.mode==="dark"?"rgba(0,0,0,0.85)":"rgba(255, 255, 255, 0.9)",sx:{backdropFilter:"blur(5px)"},children:N}):N},Nm=hc,bc=({teclas:e,tamano:o="md",className:n="",children:r,...a})=>{const i=o==="sm"?"text-[10px] px-1.5 py-0.5":o==="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?u.jsx("span",{className:`inline-flex items-center gap-1 ${n}`,...a,children:e.map((l,c)=>u.jsx("kbd",{className:`${s} ${i}`,children:l},l+c))}):u.jsx("kbd",{className:`${s} ${i} ${n}`,...a,children:r})},Am=bc,Lm=st(u.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 Bm(e){return xe("MuiAvatar",e)}const Dm=Ce("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),zm=e=>{const{classes:o,variant:n,colorDefault:r}=e;return we({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Bm,o)},Fm=D("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[n.variant],n.colorDefault&&o.colorDefault]}})(me(({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]})}}}]}))),Vm=D("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),_m=D(Lm,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function Wm({crossOrigin:e,referrerPolicy:o,src:n,srcSet:r}){const[a,i]=w.useState(!1);return w.useEffect(()=>{if(!n&&!r)return;i(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&i("loaded")},l.onerror=()=>{s&&i("error")},l.crossOrigin=e,l.referrerPolicy=o,l.src=n,r&&(l.srcset=r),()=>{s=!1}},[e,o,n,r]),a}const Ti=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiAvatar"}),{alt:a,children:i,className:s,component:l="div",slots:c={},slotProps:d={},imgProps:p,sizes:g,src:b,srcSet:v,variant:h="circular",...f}=r;let y=null;const C={...r,component:l,variant:h},O=Wm({...p,...typeof d.img=="function"?d.img(C):d.img,src:b,srcSet:v}),S=b||v,x=S&&O!=="error";C.colorDefault=!x,delete C.ownerState;const T=zm(C),[E,j]=ge("root",{ref:n,className:re(T.root,s),elementType:Fm,externalForwardedProps:{slots:c,slotProps:d,component:l,...f},ownerState:C}),[P,I]=ge("img",{className:T.img,elementType:Vm,externalForwardedProps:{slots:c,slotProps:{img:{...p,...d.img}}},additionalProps:{alt:a,src:b,srcSet:v,sizes:g},ownerState:C}),[N,A]=ge("fallback",{className:T.fallback,elementType:_m,externalForwardedProps:{slots:c,slotProps:d},shouldForwardComponentProp:!0,ownerState:C});return x?y=u.jsx(P,{...I}):i||i===0?y=i:S&&a?y=a[0]:y=u.jsx(N,{...A}),u.jsx(E,{...j,children:y})});process.env.NODE_ENV!=="production"&&(Ti.propTypes={alt:t.string,children:t.node,classes:t.object,className:t.string,component:t.elementType,imgProps:t.object,sizes:t.string,slotProps:t.shape({fallback:t.oneOfType([t.func,t.object]),img:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({fallback:t.elementType,img:t.elementType,root:t.elementType}),src:t.string,srcSet:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOfType([t.oneOf(["circular","rounded","square"]),t.string])});function Um(e){return xe("MuiAvatarGroup",e)}const Hm=Ce("MuiAvatarGroup",["root","avatar"]),Ia={small:-16,medium:-8},qm=e=>{const{classes:o}=e;return we({root:["root"],avatar:["avatar"]},Um,o)},Gm=D("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,o)=>[{[`& .${Hm.avatar}`]:o.avatar},o.root]})(me(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${Dm.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),yc=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiAvatarGroup"}),{children:a,className:i,component:s="div",componentsProps:l,max:c=5,renderSurplus:d,slotProps:p={},slots:g={},spacing:b="medium",total:v,variant:h="circular",...f}=r;let y=c<2?2:c;const C={...r,max:c,spacing:b,component:s,variant:h},O=qm(C),S=w.Children.toArray(a).filter(m=>(process.env.NODE_ENV!=="production"&&Co.isFragment(m)&&console.error(["MUI: The AvatarGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
155
|
-
`)),
|
|
156
|
-
`)):null),renderSurplus:
|
|
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
|
+
`)),O.isValidElement(y))),x=b||S.length;x===v&&(v+=1),v=Math.min(x+1,v);const T=Math.min(S.length,v-1),P=Math.max(x-v,x-T,0),j=u?u(P):`+${P}`;let R;w.spacing&&sa[w.spacing]!==void 0?R=sa[w.spacing]:w.spacing===0?R=0:R=-w.spacing||sa.medium;const k={slots:p,slotProps:{surplus:d.additionalAvatar??l?.additionalAvatar,...l,...d}},[I,A]=we("surplus",{elementType:zl,externalForwardedProps:k,className:C.avatar,ownerState:w,additionalProps:{variant:g}});return m.jsxs(W0,{as:a,ownerState:w,className:ce(C.root,s),ref:n,...h,style:{"--AvatarGroup-spacing":`${R}px`,...h.style},children:[P?m.jsx(I,{...A,children:j}):null,S.slice(0,T).reverse().map(y=>O.cloneElement(y,{className:ce(y.props.className,C.avatar),variant:y.props.variant||g}))]})});process.env.NODE_ENV!=="production"&&(Ef.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,componentsProps:o.shape({additionalAvatar:o.object}),max:Rt(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 _0(e){return Ee("MuiSkeleton",e)}Re("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const U0=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:s,height:a}=e;return ke({root:["root",n,r,i&&"withChildren",i&&!s&&"fitContent",i&&!a&&"heightAuto"]},_0,t)},_a=fe.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.${o}Chann
|
|
|
165
165
|
100% {
|
|
166
166
|
opacity: 1;
|
|
167
167
|
}
|
|
168
|
-
`,
|
|
168
|
+
`,Ua=fe.keyframes`
|
|
169
169
|
0% {
|
|
170
170
|
transform: translateX(-100%);
|
|
171
171
|
}
|
|
@@ -178,18 +178,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${o}Chann
|
|
|
178
178
|
100% {
|
|
179
179
|
transform: translateX(100%);
|
|
180
180
|
}
|
|
181
|
-
`,
|
|
182
|
-
animation: ${
|
|
183
|
-
`:null,
|
|
181
|
+
`,H0=typeof _a!="string"?fe.css`
|
|
182
|
+
animation: ${_a} 2s ease-in-out 0.5s infinite;
|
|
183
|
+
`:null,q0=typeof Ua!="string"?fe.css`
|
|
184
184
|
&::after {
|
|
185
|
-
animation: ${
|
|
185
|
+
animation: ${Ua} 2s linear 0.5s infinite;
|
|
186
186
|
}
|
|
187
|
-
`:null,
|
|
187
|
+
`:null,G0=B("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(ye(({theme:e})=>{const t=l0(e.shape.borderRadius)||"px",n=c0(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:`${n}${t}/${Math.round(n/.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:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:H0||{animation:`${_a} 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:
|
|
192
|
+
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:q0||{"&::after":{animation:`${Ua} 2s linear 0.5s infinite`}}}]}})),Wl=O.forwardRef(function(t,n){const r=Ie({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:s,component:a="span",height:l,style:c,variant:u="text",width:d,...p}=r,f={...r,animation:i,component:a,variant:u,hasChildren:!!p.children},b=U0(f);return m.jsx(G0,{as:a,ref:n,className:ce(b.root,s),ownerState:f,...p,style:{width:d,height:l,...c}})});process.env.NODE_ENV!=="production"&&(Wl.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 Ha=e=>typeof e=="number"?e:e&&{xs:24,sm:32,md:40,lg:48,xl:64,xxl:80}[e]||40,K0=e=>{const t=Ha(e);return{width:t,height:t,fontSize:t/2}},Y0=B(ws)(({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}}})),Rf=({tamano:e="md",variante:t="circular",estado:n,imagen:r,texto:i,cargando:s=!1,insignia:a,colorInsignia:l="error",sx:c,children:u,...d})=>{const p=w=>{switch(w){case"cuadrado":return"square";case"redondeado":return"rounded";default:return"circular"}},f=w=>{switch(w){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(a)return a},g=()=>n&&!a?"dot":"standard",h=()=>{if(l&&a)return f(l)||"error";switch(n){case"conectado":return"#44b700";case"desconectado":return"#bdbdbd";case"ocupado":return"#f44336";case"ausente":return"#ff9800";default:return"transparent"}};if(s)return m.jsx(Wl,{variant:t==="circular"?"circular":"rectangular",width:Ha(e),height:Ha(e),animation:"wave"});const v=m.jsx(zl,{variant:p(t),src:r,alt:i,sx:[K0(e),...Array.isArray(c)?c:[c]],...d,children:u||(i?i.charAt(0).toUpperCase():null)});return!n&&!a?v:n==="conectado"&&!a?m.jsx(Y0,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:"dot",children:v}):m.jsx(ws,{overlap:t==="circular"?"circular":"rectangular",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:b(),variant:g(),sx:{"& .MuiBadge-badge":{backgroundColor:a?void 0:h(),color:a?void 0:h()}},color:a?f(l):void 0,children:v})},kf=({children:e,spacing:t="medium",maximo:n=5,...r})=>m.jsx(Ef,{max:n,spacing:t,...r,children:e}),If=e=>{let t=0;for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t);let n="#";for(let r=0;r<3;r+=1){const i=t>>r*8&255;n+=`00${i.toString(16)}`.slice(-2)}return{sx:{bgcolor:n},children:`${e.split(" ")[0][0]}${e.split(" ")[1]?.[0]||""}`}},X0=If,Z0=kf,J0=Rf,_l=({requisitos:e=[],className:t=""})=>{const[n,r]=H.useState(!1),i=H.useRef(null),s=H.useId(),a=u=>{u.stopPropagation(),u.preventDefault(),r(!n)},l=()=>r(!0),c=()=>r(!1);return H.useEffect(()=>{const u=d=>{n&&i.current&&!i.current.contains(d.target)&&r(!1)};return document.addEventListener("click",u),()=>{document.removeEventListener("click",u)}},[n]),m.jsxs("div",{ref:i,className:`relative inline-flex items-center ml-0.5 align-top ${t}`,onMouseEnter:l,onMouseLeave:c,children:[m.jsx("button",{type:"button",onClick:a,"aria-expanded":n,"aria-controls":s,"aria-label":"Ver requisitos",className:`
|
|
193
193
|
group flex items-center justify-center
|
|
194
194
|
text-red-500 dark:text-red-400
|
|
195
195
|
font-bold text-lg leading-none
|
|
@@ -197,7 +197,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${o}Chann
|
|
|
197
197
|
transition-transform duration-200
|
|
198
198
|
focus:outline-none focus:text-red-600 dark:focus:text-red-300
|
|
199
199
|
${n?"scale-110":"hover:scale-110"}
|
|
200
|
-
`,children:"*"}),n&&
|
|
200
|
+
`,children:"*"}),n&&m.jsxs("div",{id:s,className:`
|
|
201
201
|
absolute bottom-full left-0 mb-1.5 z-[100]
|
|
202
202
|
/* Responsive Width: Fijo en desktop, limitado al viewport en móvil */
|
|
203
203
|
w-64 max-w-[85vw] sm:max-w-xs
|
|
@@ -206,12 +206,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${o}Chann
|
|
|
206
206
|
rounded-lg shadow-xl
|
|
207
207
|
animate-in fade-in zoom-in-95 slide-in-from-bottom-1 duration-150
|
|
208
208
|
origin-bottom-left
|
|
209
|
-
`,onClick:
|
|
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
210
|
flex items-start gap-2 px-2 py-1.5 rounded
|
|
211
211
|
text-xs text-gray-600 dark:text-gray-300
|
|
212
212
|
hover:bg-gray-50 dark:hover:bg-gray-700/50 transition-colors
|
|
213
|
-
`,children:[
|
|
214
|
-
`)),
|
|
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
215
|
relative overflow-hidden
|
|
216
216
|
border border-gray-200/80 dark:border-gray-700/80
|
|
217
217
|
rounded-2xl
|
|
@@ -219,39 +219,39 @@ To suppress this warning, you need to explicitly provide the \`palette.${o}Chann
|
|
|
219
219
|
shadow-sm
|
|
220
220
|
flex
|
|
221
221
|
${c?"min-h-[60vh]":""}
|
|
222
|
-
${
|
|
223
|
-
${
|
|
224
|
-
`,style:
|
|
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
225
|
relative z-10
|
|
226
226
|
max-w-3xl mx-auto flex flex-col gap-6
|
|
227
|
-
${
|
|
228
|
-
`,children:[e&&
|
|
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
229
|
text-3xl md:text-4xl lg:text-5xl font-extrabold tracking-tight
|
|
230
|
-
${
|
|
231
|
-
`,children:
|
|
230
|
+
${h?"text-white":"text-gray-900 dark:text-white"}
|
|
231
|
+
`,children:t}),n&&m.jsx("p",{className:`
|
|
232
232
|
text-base md:text-lg max-w-2xl
|
|
233
|
-
${
|
|
234
|
-
`,children:n})]}),(
|
|
233
|
+
${h?"text-gray-100/90":"text-gray-600 dark:text-gray-300"}
|
|
234
|
+
`,children:n})]}),(i||s)&&m.jsxs("div",{className:`
|
|
235
235
|
flex flex-wrap gap-3 mt-2
|
|
236
236
|
${r==="center"?"justify-center":"justify-start"}
|
|
237
|
-
`,children:[a&&
|
|
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
238
|
inline-flex items-center justify-center px-4 py-2.5 text-sm font-semibold rounded-lg border
|
|
239
|
-
${
|
|
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
240
|
focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500
|
|
241
|
-
`,onClick:l,children:
|
|
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
242
|
flex w-full items-start gap-3 border rounded-lg px-4 py-3
|
|
243
|
-
shadow-sm ${
|
|
244
|
-
`,role:
|
|
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
245
|
1.414L11.414 10l4.293 4.293a1 1 0 01-1.414
|
|
246
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"})})})]})})},
|
|
248
|
-
`)):null),classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),t.string]),disabled:t.bool,disableFocusRipple:t.bool,disableRipple:t.bool,edge:t.oneOf(["end","start",!1]),id:t.string,loading:t.bool,loadingIndicator:t.node,size:t.oneOfType([t.oneOf(["small","medium","large"]),t.string]),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});const Ng=st(u.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"),Ag=st(u.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Lg=st(u.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"),Bg=st(u.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"),$c=st(u.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"),Dg=e=>{const{variant:o,color:n,severity:r,classes:a}=e,i={root:["root",`color${F(n||r)}`,`${o}${F(n||r)}`,`${o}`],icon:["icon"],message:["message"],action:["action"]};return we(i,Rg,a)},zg=D(Oo,{name:"MuiAlert",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[n.variant],o[`${n.variant}${F(n.color||n.severity)}`]]}})(me(({theme:e})=>{const o=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(qe(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:o(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${Ws.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(qe(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:o(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${Ws.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(qe(["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)}}}))]}})),Fg=D("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Vg=D("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),_g=D("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Hs={success:u.jsx(Ng,{fontSize:"inherit"}),warning:u.jsx(Ag,{fontSize:"inherit"}),error:u.jsx(Lg,{fontSize:"inherit"}),info:u.jsx(Bg,{fontSize:"inherit"})},Ri=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiAlert"}),{action:a,children:i,className:s,closeText:l="Close",color:c,components:d={},componentsProps:p={},icon:g,iconMapping:b=Hs,onClose:v,role:h="alert",severity:f="success",slotProps:y={},slots:C={},variant:O="standard",...S}=r,x={...r,color:c,severity:f,variant:O,colorSeverity:c||f},T=Dg(x),E={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...C},slotProps:{...p,...y}},[j,P]=ge("root",{ref:n,shouldForwardComponentProp:!0,className:re(T.root,s),elementType:zg,externalForwardedProps:{...E,...S},ownerState:x,additionalProps:{role:h,elevation:0}}),[I,N]=ge("icon",{className:T.icon,elementType:Fg,externalForwardedProps:E,ownerState:x}),[A,m]=ge("message",{className:T.message,elementType:Vg,externalForwardedProps:E,ownerState:x}),[$,R]=ge("action",{className:T.action,elementType:_g,externalForwardedProps:E,ownerState:x}),[M,k]=ge("closeButton",{elementType:an,externalForwardedProps:E,ownerState:x}),[z,V]=ge("closeIcon",{elementType:$c,externalForwardedProps:E,ownerState:x});return u.jsxs(j,{...P,children:[g!==!1?u.jsx(I,{...N,children:g||b[f]||Hs[f]}):null,u.jsx(A,{...m,children:i}),a!=null?u.jsx($,{...R,children:a}):null,a==null&&v?u.jsx($,{...R,children:u.jsx(M,{size:"small","aria-label":l,title:l,color:"inherit",onClick:v,...k,children:u.jsx(z,{fontSize:"small",...V})})}):null]})});process.env.NODE_ENV!=="production"&&(Ri.propTypes={action:t.node,children:t.node,classes:t.object,className:t.string,closeText:t.string,color:t.oneOfType([t.oneOf(["error","info","success","warning"]),t.string]),components:t.shape({CloseButton:t.elementType,CloseIcon:t.elementType}),componentsProps:t.shape({closeButton:t.object,closeIcon:t.object}),icon:t.node,iconMapping:t.shape({error:t.node,info:t.node,success:t.node,warning:t.node}),onClose:t.func,role:t.string,severity:t.oneOfType([t.oneOf(["error","info","success","warning"]),t.string]),slotProps:t.shape({action:t.oneOfType([t.func,t.object]),closeButton:t.oneOfType([t.func,t.object]),closeIcon:t.oneOfType([t.func,t.object]),icon:t.oneOfType([t.func,t.object]),message:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({action:t.elementType,closeButton:t.elementType,closeIcon:t.elementType,icon:t.elementType,message:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOfType([t.oneOf(["filled","outlined","standard"]),t.string])});function Wg(e){return xe("MuiAlertTitle",e)}Ce("MuiAlertTitle",["root"]);const Ug=e=>{const{classes:o}=e;return we({root:["root"]},Wg,o)},Hg=D(nt,{name:"MuiAlertTitle",slot:"Root"})(me(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Ii=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiAlertTitle"}),{className:a,...i}=r,s=r,l=Ug(s);return u.jsx(Hg,{gutterBottom:!0,component:"div",ownerState:s,ref:n,className:re(l.root,a),...i})});process.env.NODE_ENV!=="production"&&(Ii.propTypes={children:t.node,classes:t.object,className:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});const jc=e=>e.scrollTop;function sn(e,o){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[o.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[o.mode]:r),delay:a.transitionDelay}}function qg(e){return xe("MuiCollapse",e)}Ce("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Gg=e=>{const{orientation:o,classes:n}=e,r={root:["root",`${o}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${o}`],wrapperInner:["wrapperInner",`${o}`]};return we(r,qg,n)},Kg=D("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[n.orientation],n.state==="entered"&&o.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&o.hidden]}})(me(({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:o})=>o.state==="exited"&&!o.in&&o.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Yg=D("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Xg=D("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Er=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiCollapse"}),{addEndListener:a,children:i,className:s,collapsedSize:l="0px",component:c,easing:d,in:p,onEnter:g,onEntered:b,onEntering:v,onExit:h,onExited:f,onExiting:y,orientation:C="vertical",slots:O={},slotProps:S={},style:x,timeout:T=Yl.standard,TransitionComponent:E=Kt,...j}=r,P={...r,orientation:C,collapsedSize:l},I=Gg(P),N=jt(),A=vo(),m=w.useRef(null),$=w.useRef(),R=typeof l=="number"?`${l}px`:l,M=C==="horizontal",k=M?"width":"height",z=w.useRef(null),V=ot(n,z),W=pe=>ke=>{if(pe){const Ee=z.current;ke===void 0?pe(Ee):pe(Ee,ke)}},B=()=>m.current?m.current[M?"clientWidth":"clientHeight"]:0,L=W((pe,ke)=>{m.current&&M&&(m.current.style.position="absolute"),pe.style[k]=R,g&&g(pe,ke)}),Y=W((pe,ke)=>{const Ee=B();m.current&&M&&(m.current.style.position="");const{duration:ee,easing:De}=sn({style:x,timeout:T,easing:d},{mode:"enter"});if(T==="auto"){const Se=N.transitions.getAutoHeightDuration(Ee);pe.style.transitionDuration=`${Se}ms`,$.current=Se}else pe.style.transitionDuration=typeof ee=="string"?ee:`${ee}ms`;pe.style[k]=`${Ee}px`,pe.style.transitionTimingFunction=De,v&&v(pe,ke)}),Z=W((pe,ke)=>{pe.style[k]="auto",b&&b(pe,ke)}),oe=W(pe=>{pe.style[k]=`${B()}px`,h&&h(pe)}),K=W(f),U=W(pe=>{const ke=B(),{duration:Ee,easing:ee}=sn({style:x,timeout:T,easing:d},{mode:"exit"});if(T==="auto"){const De=N.transitions.getAutoHeightDuration(ke);pe.style.transitionDuration=`${De}ms`,$.current=De}else pe.style.transitionDuration=typeof Ee=="string"?Ee:`${Ee}ms`;pe.style[k]=R,pe.style.transitionTimingFunction=ee,y&&y(pe)}),ae=pe=>{T==="auto"&&A.start($.current||0,pe),a&&a(z.current,pe)},ce={slots:O,slotProps:S,component:c},[J,X]=ge("root",{ref:V,className:re(I.root,s),elementType:Kg,externalForwardedProps:ce,ownerState:P,additionalProps:{style:{[M?"minWidth":"minHeight"]:R,...x}}}),[de,_]=ge("wrapper",{ref:m,className:I.wrapper,elementType:Yg,externalForwardedProps:ce,ownerState:P}),[se,ie]=ge("wrapperInner",{className:I.wrapperInner,elementType:Xg,externalForwardedProps:ce,ownerState:P});return u.jsx(E,{in:p,onEnter:L,onEntered:Z,onEntering:Y,onExit:oe,onExited:K,onExiting:U,addEndListener:ae,nodeRef:z,timeout:T==="auto"?null:T,...j,children:(pe,{ownerState:ke,...Ee})=>{const ee={...P,state:pe};return u.jsx(J,{...X,className:re(X.className,{entered:I.entered,exited:!p&&R==="0px"&&I.hidden}[pe]),ownerState:ee,...Ee,children:u.jsx(de,{..._,ownerState:ee,children:u.jsx(se,{...ie,ownerState:ee,children:i})})})}})});process.env.NODE_ENV!=="production"&&(Er.propTypes={addEndListener:t.func,children:t.node,classes:t.object,className:t.string,collapsedSize:t.oneOfType([t.number,t.string]),component:Yn,easing:t.oneOfType([t.shape({enter:t.string,exit:t.string}),t.string]),in:t.bool,onEnter:t.func,onEntered:t.func,onEntering:t.func,onExit:t.func,onExited:t.func,onExiting:t.func,orientation:t.oneOf(["horizontal","vertical"]),slotProps:t.shape({root:t.oneOfType([t.func,t.object]),wrapper:t.oneOfType([t.func,t.object]),wrapperInner:t.oneOfType([t.func,t.object])}),slots:t.shape({root:t.elementType,wrapper:t.elementType,wrapperInner:t.elementType}),style:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),timeout:t.oneOfType([t.oneOf(["auto"]),t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})])});Er&&(Er.muiSupportAuto=!0);const Mc=({variante:e="info",diseno:o="estandar",titulo:n,descripcion:r,cerrable:a=!1,abierto:i=!0,alCerrar:s,tiempoAutoCierre:l,accion:c,icono:d,className:p="",children:g,sx:b,...v})=>{const h=jt(),[f,y]=Re.useState(i);Re.useEffect(()=>{y(i)},[i]),Re.useEffect(()=>{if(l&&l>0&&f){const E=setTimeout(()=>{s&&s(),y(!1)},l);return()=>clearTimeout(E)}},[l,f,s]);const C=E=>{switch(E){case"peligro":return"error";case"exito":return"success";case"advertencia":return"warning";default:return"info"}},O=E=>{switch(E){case"lleno":return"filled";case"contorno":return"outlined";default:return"standard"}},S=()=>{if(o!=="suave")return{};const E=C(e),j=h.palette[E];if(!j)return{};const P=j.main;return{backgroundColor:le.alpha(P,.12),color:P,"& .MuiAlert-icon":{color:P},"& .MuiAlertTitle-root":{color:P}}},x=()=>{s&&s(),y(!1)},T=i!==void 0?i:f;return u.jsx(Er,{in:T,children:u.jsxs(Ri,{severity:C(e),variant:O(o),onClose:a||s?x:void 0,className:p,icon:d,action:c,sx:{borderRadius:"12px",mb:2,border:o==="contorno"?"1px solid":void 0,boxShadow:o==="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||g?.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:o==="suave"?1:.9},...b},...v,children:[n&&u.jsx(Ii,{children:n}),r&&u.jsx(Ue,{component:"div",sx:{opacity:.9},children:r}),g]})})},Zg=Mc;function Jg(e){const{prototype:o={}}=e;return!!o.isReactComponent}function Nc(e,o,n,r,a){const i=e[o],s=a||o;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!Jg(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${s}\` 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 Fo=xt(t.element,Nc);Fo.isRequired=xt(t.element.isRequired,Nc);function Vo(e){return parseInt(w.version,10)>=19?e?.props?.ref||null:e?.ref||null}function ti(e){return`scale(${e}, ${e**2})`}const Qg={entering:{opacity:1,transform:ti(1)},entered:{opacity:1,transform:"none"}},ja=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ln=w.forwardRef(function(o,n){const{addEndListener:r,appear:a=!0,children:i,easing:s,in:l,onEnter:c,onEntered:d,onEntering:p,onExit:g,onExited:b,onExiting:v,style:h,timeout:f="auto",TransitionComponent:y=Kt,...C}=o,O=vo(),S=w.useRef(),x=jt(),T=w.useRef(null),E=ot(T,Vo(i),n),j=M=>k=>{if(M){const z=T.current;k===void 0?M(z):M(z,k)}},P=j(p),I=j((M,k)=>{jc(M);const{duration:z,delay:V,easing:W}=sn({style:h,timeout:f,easing:s},{mode:"enter"});let B;f==="auto"?(B=x.transitions.getAutoHeightDuration(M.clientHeight),S.current=B):B=z,M.style.transition=[x.transitions.create("opacity",{duration:B,delay:V}),x.transitions.create("transform",{duration:ja?B:B*.666,delay:V,easing:W})].join(","),c&&c(M,k)}),N=j(d),A=j(v),m=j(M=>{const{duration:k,delay:z,easing:V}=sn({style:h,timeout:f,easing:s},{mode:"exit"});let W;f==="auto"?(W=x.transitions.getAutoHeightDuration(M.clientHeight),S.current=W):W=k,M.style.transition=[x.transitions.create("opacity",{duration:W,delay:z}),x.transitions.create("transform",{duration:ja?W:W*.666,delay:ja?z:z||W*.333,easing:V})].join(","),M.style.opacity=0,M.style.transform=ti(.75),g&&g(M)}),$=j(b),R=M=>{f==="auto"&&O.start(S.current||0,M),r&&r(T.current,M)};return u.jsx(y,{appear:a,in:l,nodeRef:T,onEnter:I,onEntered:N,onEntering:P,onExit:m,onExited:$,onExiting:A,addEndListener:R,timeout:f==="auto"?null:f,...C,children:(M,{ownerState:k,...z})=>w.cloneElement(i,{style:{opacity:0,transform:ti(.75),visibility:M==="exited"&&!l?"hidden":void 0,...Qg[M],...h,...i.props.style},ref:E,...z})})});process.env.NODE_ENV!=="production"&&(ln.propTypes={addEndListener:t.func,appear:t.bool,children:Fo.isRequired,easing:t.oneOfType([t.shape({enter:t.string,exit:t.string}),t.string]),in:t.bool,onEnter:t.func,onEntered:t.func,onEntering:t.func,onExit:t.func,onExited:t.func,onExiting:t.func,style:t.object,timeout:t.oneOfType([t.oneOf(["auto"]),t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})])});ln&&(ln.muiSupportAuto=!0);function co(e,o,n,r,a){if(process.env.NODE_ENV==="production")return null;const i=e[o],s=a||o;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var It="top",Ut="bottom",Ht="right",$t="left",$i="auto",Xn=[It,Ut,Ht,$t],cn="start",Vn="end",eh="clippingParents",Ac="viewport",Cn="popper",th="reference",qs=Xn.reduce(function(e,o){return e.concat([o+"-"+cn,o+"-"+Vn])},[]),Lc=[].concat(Xn,[$i]).reduce(function(e,o){return e.concat([o,o+"-"+cn,o+"-"+Vn])},[]),oh="beforeRead",nh="read",rh="afterRead",ah="beforeMain",ih="main",sh="afterMain",lh="beforeWrite",ch="write",dh="afterWrite",ph=[oh,nh,rh,ah,ih,sh,lh,ch,dh];function no(e){return e?(e.nodeName||"").toLowerCase():null}function Lt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var o=e.ownerDocument;return o&&o.defaultView||window}return e}function Do(e){var o=Lt(e).Element;return e instanceof o||e instanceof Element}function Vt(e){var o=Lt(e).HTMLElement;return e instanceof o||e instanceof HTMLElement}function ji(e){if(typeof ShadowRoot>"u")return!1;var o=Lt(e).ShadowRoot;return e instanceof o||e instanceof ShadowRoot}function uh(e){var o=e.state;Object.keys(o.elements).forEach(function(n){var r=o.styles[n]||{},a=o.attributes[n]||{},i=o.elements[n];!Vt(i)||!no(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(s){var l=a[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function fh(e){var o=e.state,n={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,n.popper),o.styles=n,o.elements.arrow&&Object.assign(o.elements.arrow.style,n.arrow),function(){Object.keys(o.elements).forEach(function(r){var a=o.elements[r],i=o.attributes[r]||{},s=Object.keys(o.styles.hasOwnProperty(r)?o.styles[r]:n[r]),l=s.reduce(function(c,d){return c[d]="",c},{});!Vt(a)||!no(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(c){a.removeAttribute(c)}))})}}const mh={name:"applyStyles",enabled:!0,phase:"write",fn:uh,effect:fh,requires:["computeStyles"]};function to(e){return e.split("-")[0]}var Bo=Math.max,kr=Math.min,dn=Math.round;function oi(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(o){return o.brand+"/"+o.version}).join(" "):navigator.userAgent}function Bc(){return!/^((?!chrome|android).)*safari/i.test(oi())}function pn(e,o,n){o===void 0&&(o=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;o&&Vt(e)&&(a=e.offsetWidth>0&&dn(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&dn(r.height)/e.offsetHeight||1);var s=Do(e)?Lt(e):window,l=s.visualViewport,c=!Bc()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/a,p=(r.top+(c&&l?l.offsetTop:0))/i,g=r.width/a,b=r.height/i;return{width:g,height:b,top:p,right:d+g,bottom:p+b,left:d,x:d,y:p}}function Mi(e){var o=pn(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(o.width-n)<=1&&(n=o.width),Math.abs(o.height-r)<=1&&(r=o.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Dc(e,o){var n=o.getRootNode&&o.getRootNode();if(e.contains(o))return!0;if(n&&ji(n)){var r=o;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function po(e){return Lt(e).getComputedStyle(e)}function gh(e){return["table","td","th"].indexOf(no(e))>=0}function Eo(e){return((Do(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zr(e){return no(e)==="html"?e:e.assignedSlot||e.parentNode||(ji(e)?e.host:null)||Eo(e)}function Gs(e){return!Vt(e)||po(e).position==="fixed"?null:e.offsetParent}function hh(e){var o=/firefox/i.test(oi()),n=/Trident/i.test(oi());if(n&&Vt(e)){var r=po(e);if(r.position==="fixed")return null}var a=Zr(e);for(ji(a)&&(a=a.host);Vt(a)&&["html","body"].indexOf(no(a))<0;){var i=po(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||o&&i.willChange==="filter"||o&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Zn(e){for(var o=Lt(e),n=Gs(e);n&&gh(n)&&po(n).position==="static";)n=Gs(n);return n&&(no(n)==="html"||no(n)==="body"&&po(n).position==="static")?o:n||hh(e)||o}function Ni(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ln(e,o,n){return Bo(e,kr(o,n))}function bh(e,o,n){var r=Ln(e,o,n);return r>n?n:r}function zc(){return{top:0,right:0,bottom:0,left:0}}function Fc(e){return Object.assign({},zc(),e)}function Vc(e,o){return o.reduce(function(n,r){return n[r]=e,n},{})}var yh=function(o,n){return o=typeof o=="function"?o(Object.assign({},n.rects,{placement:n.placement})):o,Fc(typeof o!="number"?o:Vc(o,Xn))};function vh(e){var o,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=to(n.placement),c=Ni(l),d=[$t,Ht].indexOf(l)>=0,p=d?"height":"width";if(!(!i||!s)){var g=yh(a.padding,n),b=Mi(i),v=c==="y"?It:$t,h=c==="y"?Ut:Ht,f=n.rects.reference[p]+n.rects.reference[c]-s[c]-n.rects.popper[p],y=s[c]-n.rects.reference[c],C=Zn(i),O=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,S=f/2-y/2,x=g[v],T=O-b[p]-g[h],E=O/2-b[p]/2+S,j=Ln(x,E,T),P=c;n.modifiersData[r]=(o={},o[P]=j,o.centerOffset=j-E,o)}}function xh(e){var o=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=o.elements.popper.querySelector(a),!a)||Dc(o.elements.popper,a)&&(o.elements.arrow=a))}const Ch={name:"arrow",enabled:!0,phase:"main",fn:vh,effect:xh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function un(e){return e.split("-")[1]}var wh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Sh(e,o){var n=e.x,r=e.y,a=o.devicePixelRatio||1;return{x:dn(n*a)/a||0,y:dn(r*a)/a||0}}function Ks(e){var o,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,g=e.isFixed,b=s.x,v=b===void 0?0:b,h=s.y,f=h===void 0?0:h,y=typeof p=="function"?p({x:v,y:f}):{x:v,y:f};v=y.x,f=y.y;var C=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),S=$t,x=It,T=window;if(d){var E=Zn(n),j="clientHeight",P="clientWidth";if(E===Lt(n)&&(E=Eo(n),po(E).position!=="static"&&l==="absolute"&&(j="scrollHeight",P="scrollWidth")),E=E,a===It||(a===$t||a===Ht)&&i===Vn){x=Ut;var I=g&&E===T&&T.visualViewport?T.visualViewport.height:E[j];f-=I-r.height,f*=c?1:-1}if(a===$t||(a===It||a===Ut)&&i===Vn){S=Ht;var N=g&&E===T&&T.visualViewport?T.visualViewport.width:E[P];v-=N-r.width,v*=c?1:-1}}var A=Object.assign({position:l},d&&wh),m=p===!0?Sh({x:v,y:f},Lt(n)):{x:v,y:f};if(v=m.x,f=m.y,c){var $;return Object.assign({},A,($={},$[x]=O?"0":"",$[S]=C?"0":"",$.transform=(T.devicePixelRatio||1)<=1?"translate("+v+"px, "+f+"px)":"translate3d("+v+"px, "+f+"px, 0)",$))}return Object.assign({},A,(o={},o[x]=O?f+"px":"",o[S]=C?v+"px":"",o.transform="",o))}function Th(e){var o=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:to(o.placement),variation:un(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:a,isFixed:o.options.strategy==="fixed"};o.modifiersData.popperOffsets!=null&&(o.styles.popper=Object.assign({},o.styles.popper,Ks(Object.assign({},d,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:s,roundOffsets:c})))),o.modifiersData.arrow!=null&&(o.styles.arrow=Object.assign({},o.styles.arrow,Ks(Object.assign({},d,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})}const Oh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Th,data:{}};var sr={passive:!0};function Eh(e){var o=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,l=s===void 0?!0:s,c=Lt(o.elements.popper),d=[].concat(o.scrollParents.reference,o.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,sr)}),l&&c.addEventListener("resize",n.update,sr),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,sr)}),l&&c.removeEventListener("resize",n.update,sr)}}const kh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Eh,data:{}};var Ph={left:"right",right:"left",bottom:"top",top:"bottom"};function br(e){return e.replace(/left|right|bottom|top/g,function(o){return Ph[o]})}var Rh={start:"end",end:"start"};function Ys(e){return e.replace(/start|end/g,function(o){return Rh[o]})}function Ai(e){var o=Lt(e),n=o.pageXOffset,r=o.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Li(e){return pn(Eo(e)).left+Ai(e).scrollLeft}function Ih(e,o){var n=Lt(e),r=Eo(e),a=n.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;var d=Bc();(d||!d&&o==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:i,height:s,x:l+Li(e),y:c}}function $h(e){var o,n=Eo(e),r=Ai(e),a=(o=e.ownerDocument)==null?void 0:o.body,i=Bo(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=Bo(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+Li(e),c=-r.scrollTop;return po(a||n).direction==="rtl"&&(l+=Bo(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function Bi(e){var o=po(e),n=o.overflow,r=o.overflowX,a=o.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function _c(e){return["html","body","#document"].indexOf(no(e))>=0?e.ownerDocument.body:Vt(e)&&Bi(e)?e:_c(Zr(e))}function Bn(e,o){var n;o===void 0&&(o=[]);var r=_c(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Lt(r),s=a?[i].concat(i.visualViewport||[],Bi(r)?r:[]):r,l=o.concat(s);return a?l:l.concat(Bn(Zr(s)))}function ni(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jh(e,o){var n=pn(e,!1,o==="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 Xs(e,o,n){return o===Ac?ni(Ih(e,n)):Do(o)?jh(o,n):ni($h(Eo(e)))}function Mh(e){var o=Bn(Zr(e)),n=["absolute","fixed"].indexOf(po(e).position)>=0,r=n&&Vt(e)?Zn(e):e;return Do(r)?o.filter(function(a){return Do(a)&&Dc(a,r)&&no(a)!=="body"}):[]}function Nh(e,o,n,r){var a=o==="clippingParents"?Mh(e):[].concat(o),i=[].concat(a,[n]),s=i[0],l=i.reduce(function(c,d){var p=Xs(e,d,r);return c.top=Bo(p.top,c.top),c.right=kr(p.right,c.right),c.bottom=kr(p.bottom,c.bottom),c.left=Bo(p.left,c.left),c},Xs(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Wc(e){var o=e.reference,n=e.element,r=e.placement,a=r?to(r):null,i=r?un(r):null,s=o.x+o.width/2-n.width/2,l=o.y+o.height/2-n.height/2,c;switch(a){case It:c={x:s,y:o.y-n.height};break;case Ut:c={x:s,y:o.y+o.height};break;case Ht:c={x:o.x+o.width,y:l};break;case $t:c={x:o.x-n.width,y:l};break;default:c={x:o.x,y:o.y}}var d=a?Ni(a):null;if(d!=null){var p=d==="y"?"height":"width";switch(i){case cn:c[d]=c[d]-(o[p]/2-n[p]/2);break;case Vn:c[d]=c[d]+(o[p]/2-n[p]/2);break}}return c}function _n(e,o){o===void 0&&(o={});var n=o,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?eh:l,d=n.rootBoundary,p=d===void 0?Ac:d,g=n.elementContext,b=g===void 0?Cn:g,v=n.altBoundary,h=v===void 0?!1:v,f=n.padding,y=f===void 0?0:f,C=Fc(typeof y!="number"?y:Vc(y,Xn)),O=b===Cn?th:Cn,S=e.rects.popper,x=e.elements[h?O:b],T=Nh(Do(x)?x:x.contextElement||Eo(e.elements.popper),c,p,s),E=pn(e.elements.reference),j=Wc({reference:E,element:S,placement:a}),P=ni(Object.assign({},S,j)),I=b===Cn?P:E,N={top:T.top-I.top+C.top,bottom:I.bottom-T.bottom+C.bottom,left:T.left-I.left+C.left,right:I.right-T.right+C.right},A=e.modifiersData.offset;if(b===Cn&&A){var m=A[a];Object.keys(N).forEach(function($){var R=[Ht,Ut].indexOf($)>=0?1:-1,M=[It,Ut].indexOf($)>=0?"y":"x";N[$]+=m[M]*R})}return N}function Ah(e,o){o===void 0&&(o={});var n=o,r=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?Lc:c,p=un(r),g=p?l?qs:qs.filter(function(h){return un(h)===p}):Xn,b=g.filter(function(h){return d.indexOf(h)>=0});b.length===0&&(b=g);var v=b.reduce(function(h,f){return h[f]=_n(e,{placement:f,boundary:a,rootBoundary:i,padding:s})[to(f)],h},{});return Object.keys(v).sort(function(h,f){return v[h]-v[f]})}function Lh(e){if(to(e)===$i)return[];var o=br(e);return[Ys(e),o,Ys(o)]}function Bh(e){var o=e.state,n=e.options,r=e.name;if(!o.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,p=n.boundary,g=n.rootBoundary,b=n.altBoundary,v=n.flipVariations,h=v===void 0?!0:v,f=n.allowedAutoPlacements,y=o.options.placement,C=to(y),O=C===y,S=c||(O||!h?[br(y)]:Lh(y)),x=[y].concat(S).reduce(function(oe,K){return oe.concat(to(K)===$i?Ah(o,{placement:K,boundary:p,rootBoundary:g,padding:d,flipVariations:h,allowedAutoPlacements:f}):K)},[]),T=o.rects.reference,E=o.rects.popper,j=new Map,P=!0,I=x[0],N=0;N<x.length;N++){var A=x[N],m=to(A),$=un(A)===cn,R=[It,Ut].indexOf(m)>=0,M=R?"width":"height",k=_n(o,{placement:A,boundary:p,rootBoundary:g,altBoundary:b,padding:d}),z=R?$?Ht:$t:$?Ut:It;T[M]>E[M]&&(z=br(z));var V=br(z),W=[];if(i&&W.push(k[m]<=0),l&&W.push(k[z]<=0,k[V]<=0),W.every(function(oe){return oe})){I=A,P=!1;break}j.set(A,W)}if(P)for(var B=h?3:1,L=function(K){var U=x.find(function(ae){var ce=j.get(ae);if(ce)return ce.slice(0,K).every(function(J){return J})});if(U)return I=U,"break"},Y=B;Y>0;Y--){var Z=L(Y);if(Z==="break")break}o.placement!==I&&(o.modifiersData[r]._skip=!0,o.placement=I,o.reset=!0)}}const Dh={name:"flip",enabled:!0,phase:"main",fn:Bh,requiresIfExists:["offset"],data:{_skip:!1}};function Zs(e,o,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-o.height-n.y,right:e.right-o.width+n.x,bottom:e.bottom-o.height+n.y,left:e.left-o.width-n.x}}function Js(e){return[It,Ht,Ut,$t].some(function(o){return e[o]>=0})}function zh(e){var o=e.state,n=e.name,r=o.rects.reference,a=o.rects.popper,i=o.modifiersData.preventOverflow,s=_n(o,{elementContext:"reference"}),l=_n(o,{altBoundary:!0}),c=Zs(s,r),d=Zs(l,a,i),p=Js(c),g=Js(d);o.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:g},o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const Fh={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zh};function Vh(e,o,n){var r=to(e),a=[$t,It].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},o,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*a,[$t,Ht].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function _h(e){var o=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=Lc.reduce(function(p,g){return p[g]=Vh(g,o.rects,i),p},{}),l=s[o.placement],c=l.x,d=l.y;o.modifiersData.popperOffsets!=null&&(o.modifiersData.popperOffsets.x+=c,o.modifiersData.popperOffsets.y+=d),o.modifiersData[r]=s}const Wh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_h};function Uh(e){var o=e.state,n=e.name;o.modifiersData[n]=Wc({reference:o.rects.reference,element:o.rects.popper,placement:o.placement})}const Hh={name:"popperOffsets",enabled:!0,phase:"read",fn:Uh,data:{}};function qh(e){return e==="x"?"y":"x"}function Gh(e){var o=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.padding,b=n.tether,v=b===void 0?!0:b,h=n.tetherOffset,f=h===void 0?0:h,y=_n(o,{boundary:c,rootBoundary:d,padding:g,altBoundary:p}),C=to(o.placement),O=un(o.placement),S=!O,x=Ni(C),T=qh(x),E=o.modifiersData.popperOffsets,j=o.rects.reference,P=o.rects.popper,I=typeof f=="function"?f(Object.assign({},o.rects,{placement:o.placement})):f,N=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),A=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,m={x:0,y:0};if(E){if(i){var $,R=x==="y"?It:$t,M=x==="y"?Ut:Ht,k=x==="y"?"height":"width",z=E[x],V=z+y[R],W=z-y[M],B=v?-P[k]/2:0,L=O===cn?j[k]:P[k],Y=O===cn?-P[k]:-j[k],Z=o.elements.arrow,oe=v&&Z?Mi(Z):{width:0,height:0},K=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:zc(),U=K[R],ae=K[M],ce=Ln(0,j[k],oe[k]),J=S?j[k]/2-B-ce-U-N.mainAxis:L-ce-U-N.mainAxis,X=S?-j[k]/2+B+ce+ae+N.mainAxis:Y+ce+ae+N.mainAxis,de=o.elements.arrow&&Zn(o.elements.arrow),_=de?x==="y"?de.clientTop||0:de.clientLeft||0:0,se=($=A?.[x])!=null?$:0,ie=z+J-se-_,pe=z+X-se,ke=Ln(v?kr(V,ie):V,z,v?Bo(W,pe):W);E[x]=ke,m[x]=ke-z}if(l){var Ee,ee=x==="x"?It:$t,De=x==="x"?Ut:Ht,Se=E[T],he=T==="y"?"height":"width",ne=Se+y[ee],ze=Se-y[De],Me=[It,$t].indexOf(C)!==-1,te=(Ee=A?.[T])!=null?Ee:0,Q=Me?ne:Se-j[he]-P[he]-te+N.altAxis,be=Me?Se+j[he]+P[he]-te-N.altAxis:ze,Oe=v&&Me?bh(Q,Se,be):Ln(v?Q:ne,Se,v?be:ze);E[T]=Oe,m[T]=Oe-Se}o.modifiersData[r]=m}}const Kh={name:"preventOverflow",enabled:!0,phase:"main",fn:Gh,requiresIfExists:["offset"]};function Yh(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Xh(e){return e===Lt(e)||!Vt(e)?Ai(e):Yh(e)}function Zh(e){var o=e.getBoundingClientRect(),n=dn(o.width)/e.offsetWidth||1,r=dn(o.height)/e.offsetHeight||1;return n!==1||r!==1}function Jh(e,o,n){n===void 0&&(n=!1);var r=Vt(o),a=Vt(o)&&Zh(o),i=Eo(o),s=pn(e,a,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((no(o)!=="body"||Bi(i))&&(l=Xh(o)),Vt(o)?(c=pn(o,!0),c.x+=o.clientLeft,c.y+=o.clientTop):i&&(c.x=Li(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Qh(e){var o=new Map,n=new Set,r=[];e.forEach(function(i){o.set(i.name,i)});function a(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=o.get(l);c&&a(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function eb(e){var o=Qh(e);return ph.reduce(function(n,r){return n.concat(o.filter(function(a){return a.phase===r}))},[])}function tb(e){var o;return function(){return o||(o=new Promise(function(n){Promise.resolve().then(function(){o=void 0,n(e())})})),o}}function ob(e){var o=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(o).map(function(n){return o[n]})}var Qs={placement:"bottom",modifiers:[],strategy:"absolute"};function el(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return!o.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function nb(e){e===void 0&&(e={});var o=e,n=o.defaultModifiers,r=n===void 0?[]:n,a=o.defaultOptions,i=a===void 0?Qs:a;return function(l,c,d){d===void 0&&(d=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qs,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},g=[],b=!1,v={state:p,setOptions:function(C){var O=typeof C=="function"?C(p.options):C;f(),p.options=Object.assign({},i,p.options,O),p.scrollParents={reference:Do(l)?Bn(l):l.contextElement?Bn(l.contextElement):[],popper:Bn(c)};var S=eb(ob([].concat(r,p.options.modifiers)));return p.orderedModifiers=S.filter(function(x){return x.enabled}),h(),v.update()},forceUpdate:function(){if(!b){var C=p.elements,O=C.reference,S=C.popper;if(el(O,S)){p.rects={reference:Jh(O,Zn(S),p.options.strategy==="fixed"),popper:Mi(S)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(N){return p.modifiersData[N.name]=Object.assign({},N.data)});for(var x=0;x<p.orderedModifiers.length;x++){if(p.reset===!0){p.reset=!1,x=-1;continue}var T=p.orderedModifiers[x],E=T.fn,j=T.options,P=j===void 0?{}:j,I=T.name;typeof E=="function"&&(p=E({state:p,options:P,name:I,instance:v})||p)}}}},update:tb(function(){return new Promise(function(y){v.forceUpdate(),y(p)})}),destroy:function(){f(),b=!0}};if(!el(l,c))return v;v.setOptions(d).then(function(y){!b&&d.onFirstUpdate&&d.onFirstUpdate(y)});function h(){p.orderedModifiers.forEach(function(y){var C=y.name,O=y.options,S=O===void 0?{}:O,x=y.effect;if(typeof x=="function"){var T=x({state:p,name:C,instance:v,options:S}),E=function(){};g.push(T||E)}})}function f(){g.forEach(function(y){return y()}),g=[]}return v}}var rb=[kh,Hh,Oh,mh,Wh,Dh,Kh,Ch,Fh],ab=nb({defaultModifiers:rb});function Zt(e){const{elementType:o,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...i}=e,s=a?{}:fc(n,r),{props:l,internalRef:c}=mc({...i,externalSlotProps:s}),d=ot(c,s?.ref,e.additionalProps?.ref);return uc(o,{...l,ref:d},r)}function ib(e){return typeof e=="function"?e():e}const Wn=w.forwardRef(function(o,n){const{children:r,container:a,disablePortal:i=!1}=o,[s,l]=w.useState(null),c=ot(w.isValidElement(r)?Vo(r):null,n);if(Wt(()=>{i||l(ib(a)||document.body)},[a,i]),Wt(()=>{if(s&&!i)return Ua(n,s),()=>{Ua(n,null)}},[n,s,i]),i){if(w.isValidElement(r)){const d={ref:c};return w.cloneElement(r,d)}return r}return s&&Kd.createPortal(r,s)});process.env.NODE_ENV!=="production"&&(Wn.propTypes={children:t.node,container:t.oneOfType([co,t.func]),disablePortal:t.bool});process.env.NODE_ENV!=="production"&&(Wn.propTypes=gi(Wn.propTypes));function sb(e){return xe("MuiPopper",e)}Ce("MuiPopper",["root"]);function lb(e,o){if(o==="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 Pr(e){return typeof e=="function"?e():e}function Jr(e){return e.nodeType!==void 0}function cb(e){return!Jr(e)}const db=e=>{const{classes:o}=e;return we({root:["root"]},sb,o)},pb={},ub=w.forwardRef(function(o,n){const{anchorEl:r,children:a,direction:i,disablePortal:s,modifiers:l,open:c,placement:d,popperOptions:p,popperRef:g,slotProps:b={},slots:v={},TransitionProps:h,ownerState:f,...y}=o,C=w.useRef(null),O=ot(C,n),S=w.useRef(null),x=ot(S,g),T=w.useRef(x);Wt(()=>{T.current=x},[x]),w.useImperativeHandle(g,()=>S.current,[]);const E=lb(d,i),[j,P]=w.useState(E),[I,N]=w.useState(Pr(r));w.useEffect(()=>{S.current&&S.current.forceUpdate()}),w.useEffect(()=>{r&&N(Pr(r))},[r]),Wt(()=>{if(!I||!c)return;const M=V=>{P(V.placement)};if(process.env.NODE_ENV!=="production"&&I&&Jr(I)&&I.nodeType===1){const V=I.getBoundingClientRect();process.env.NODE_ENV!=="test"&&V.top===0&&V.left===0&&V.right===0&&V.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
|
|
250
|
-
`))}else if(!
|
|
251
|
-
`))}return null}),children:
|
|
252
|
-
`))},[
|
|
253
|
-
`))},[
|
|
254
|
-
`));const Ne={...r,isRtl:W,arrow:a,disableInteractive:K,placement:P,PopperComponentProp:I,touch:oe.current},We=typeof A.popper=="function"?A.popper(Ne):A.popper,Ot=w.useMemo(()=>{let je=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return N.popperOptions?.modifiers&&(je=je.concat(N.popperOptions.modifiers)),We?.popperOptions?.modifiers&&(je=je.concat(We.popperOptions.modifiers)),{...N.popperOptions,...We?.popperOptions,modifiers:je}},[Y,N.popperOptions,We?.popperOptions]),vt=hb(Ne),ut=typeof A.transition=="function"?A.transition(Ne):A.transition,ye={slots:{popper:l.Popper,transition:l.Transition??R,tooltip:l.Tooltip,arrow:l.Arrow,...m},slotProps:{arrow:A.arrow??c.arrow,popper:{...N,...We??c.popper},tooltip:A.tooltip??c.tooltip,transition:{...M,...ut??c.transition}}},[Ae,Xe]=ge("popper",{elementType:bb,externalForwardedProps:ye,ownerState:Ne,className:re(vt.popper,N?.className)}),[gt,_e]=ge("transition",{elementType:ln,externalForwardedProps:ye,ownerState:Ne}),[tt,Et]=ge("tooltip",{elementType:yb,className:vt.tooltip,externalForwardedProps:ye,ownerState:Ne}),[wt,ft]=ge("arrow",{elementType:vb,className:vt.arrow,externalForwardedProps:ye,ownerState:Ne,ref:Z});return u.jsxs(w.Fragment,{children:[w.cloneElement(z,ue),u.jsx(Ae,{as:I??Jn,placement:P,anchorEl:C?{getBoundingClientRect:()=>({top:wn.y,left:wn.x,right:wn.x,bottom:wn.y,width:0,height:0})}:B,popperRef:be,open:B?_:!1,id:se,transition:!0,...Ve,...Xe,popperOptions:Ot,children:({TransitionProps:je})=>u.jsx(gt,{timeout:V.transitions.duration.shorter,...je,..._e,children:u.jsxs(tt,{...Et,children:[$,a?u.jsx(wt,{...ft}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Qn.propTypes={arrow:t.bool,children:Fo.isRequired,classes:t.object,className:t.string,components:t.shape({Arrow:t.elementType,Popper:t.elementType,Tooltip:t.elementType,Transition:t.elementType}),componentsProps:t.shape({arrow:t.object,popper:t.object,tooltip:t.object,transition:t.object}),describeChild:t.bool,disableFocusListener:t.bool,disableHoverListener:t.bool,disableInteractive:t.bool,disableTouchListener:t.bool,enterDelay:t.number,enterNextDelay:t.number,enterTouchDelay:t.number,followCursor:t.bool,id:t.string,leaveDelay:t.number,leaveTouchDelay:t.number,onClose:t.func,onOpen:t.func,open:t.bool,placement:t.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:t.elementType,PopperProps:t.object,slotProps:t.shape({arrow:t.oneOfType([t.func,t.object]),popper:t.oneOfType([t.func,t.object]),tooltip:t.oneOfType([t.func,t.object]),transition:t.oneOfType([t.func,t.object])}),slots:t.shape({arrow:t.elementType,popper:t.elementType,tooltip:t.elementType,transition:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),title:t.node,TransitionComponent:t.elementType,TransitionProps:t.object});const Di={fontSize:"0.8125rem",padding:"8px 12px",maxWidth:250,lineHeight:1.4},Hc={...Di,boxShadow:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"},xb=it.styled(({className:e,...o})=>u.jsx(Qn,{...o,classes:{popper:e}}))(({theme:e})=>({[`& .${Ye.arrow}`]:{color:e.palette.grey[900]},[`& .${Ye.tooltip}`]:{backgroundColor:e.palette.grey[900],...Hc}})),Cb=it.styled(({className:e,...o})=>u.jsx(Qn,{...o,classes:{popper:e}}))(({theme:e})=>({[`& .${Ye.arrow}`]:{color:e.palette.common.white},[`& .${Ye.tooltip}`]:{backgroundColor:e.palette.common.white,color:"rgba(0, 0, 0, 0.87)",boxShadow:e.shadows[4],border:"1px solid #e0e0e0",...Di}})),wb=it.styled(({className:e,...o})=>u.jsx(Qn,{...o,classes:{popper:e}}))(({theme:e})=>({[`& .${Ye.arrow}`]:{color:e.palette.primary.main},[`& .${Ye.tooltip}`]:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText,...Di,boxShadow:`0 4px 12px ${it.alpha(e.palette.primary.main,.4)}`}})),Sb=it.styled(({className:e,...o})=>u.jsx(Qn,{...o,classes:{popper:e}}))(({theme:e})=>({[`& .${Ye.arrow}`]:{color:"#1e40af"},[`& .${Ye.tooltip}`]:{backgroundColor:"#1e40af",color:"#ffffff",...Hc}})),qc=({contenido:e,children:o,lado:n="arriba",flecha:r=!0,color:a="oscuro",animacion:i="zoom",retraso:s=200,className:l,sx:c,...d})=>{const p=b=>{switch(b){case"arriba":return"top";case"abajo":return"bottom";case"izquierda":return"left";case"derecha":return"right";default:return"top"}},g=a==="claro"?Cb:a==="primario"?wb:a==="azul"?Sb:xb;return u.jsx(g,{title:e,placement:p(n),arrow:r,enterDelay:s,TransitionComponent:i==="fade"?it.Fade:it.Zoom,className:l,sx:c,...d,children:o})},Tb=qc;function Ob(e={}){const{autoHideDuration:o=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:i}=e,s=vo();w.useEffect(()=>{if(!a)return;function C(O){O.defaultPrevented||O.key==="Escape"&&r?.(O,"escapeKeyDown")}return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[a,r]);const l=bt((C,O)=>{r?.(C,O)}),c=bt(C=>{!r||C==null||s.start(C,()=>{l(null,"timeout")})});w.useEffect(()=>(a&&c(o),s.clear),[a,o,c,s]);const d=C=>{r?.(C,"clickaway")},p=s.clear,g=w.useCallback(()=>{o!=null&&c(i??o*.5)},[o,i,c]),b=C=>O=>{const S=C.onBlur;S?.(O),g()},v=C=>O=>{const S=C.onFocus;S?.(O),p()},h=C=>O=>{const S=C.onMouseEnter;S?.(O),p()},f=C=>O=>{const S=C.onMouseLeave;S?.(O),g()};return w.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",g),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",p)}},[n,a,g,p]),{getRootProps:(C={})=>{const O={...Lo(e),...Lo(C)};return{role:"presentation",...C,...O,onBlur:b(O),onFocus:v(O),onMouseEnter:h(O),onMouseLeave:f(O)}},onClickAway:d}}function ol(e){return e.substring(2).toLowerCase()}function Eb(e,o){return o.documentElement.clientWidth<e.clientX||o.documentElement.clientHeight<e.clientY}function Rr(e){const{children:o,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:a,touchEvent:i="onTouchEnd"}=e,s=w.useRef(!1),l=w.useRef(null),c=w.useRef(!1),d=w.useRef(!1);w.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const p=ot(Vo(o),l),g=bt(h=>{const f=d.current;d.current=!1;const y=mt(l.current);if(!c.current||!l.current||"clientX"in h&&Eb(h,y))return;if(s.current){s.current=!1;return}let C;h.composedPath?C=h.composedPath().includes(l.current):C=!y.documentElement.contains(h.target)||l.current.contains(h.target),!C&&(n||!f)&&a(h)}),b=h=>f=>{d.current=!0;const y=o.props[h];y&&y(f)},v={ref:p};return i!==!1&&(v[i]=b(i)),w.useEffect(()=>{if(i!==!1){const h=ol(i),f=mt(l.current),y=()=>{s.current=!0};return f.addEventListener(h,g),f.addEventListener("touchmove",y),()=>{f.removeEventListener(h,g),f.removeEventListener("touchmove",y)}}},[g,i]),r!==!1&&(v[r]=b(r)),w.useEffect(()=>{if(r!==!1){const h=ol(r),f=mt(l.current);return f.addEventListener(h,g),()=>{f.removeEventListener(h,g)}}},[g,r]),w.cloneElement(o,v)}process.env.NODE_ENV!=="production"&&(Rr.propTypes={children:Fo.isRequired,disableReactTree:t.bool,mouseEvent:t.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:t.func.isRequired,touchEvent:t.oneOf(["onTouchEnd","onTouchStart",!1])});process.env.NODE_ENV!=="production"&&(Rr.propTypes=gi(Rr.propTypes));function kb(e){return xe("MuiSnackbarContent",e)}Ce("MuiSnackbarContent",["root","message","action"]);const Pb=e=>{const{classes:o}=e;return we({root:["root"],action:["action"],message:["message"]},kb,o)},Rb=D(Oo,{name:"MuiSnackbarContent",slot:"Root"})(me(({theme:e})=>{const o=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Fa(e.palette.background.default,o)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Fa(e.palette.background.default,o),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Ib=D("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),$b=D("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Gc=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiSnackbarContent"}),{action:a,className:i,message:s,role:l="alert",...c}=r,d=r,p=Pb(d);return u.jsxs(Rb,{role:l,elevation:6,className:re(p.root,i),ownerState:d,ref:n,...c,children:[u.jsx(Ib,{className:p.message,ownerState:d,children:s}),a?u.jsx($b,{className:p.action,ownerState:d,children:a}):null]})});process.env.NODE_ENV!=="production"&&(Gc.propTypes={action:t.node,classes:t.object,className:t.string,message:t.node,role:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function jb(e){return xe("MuiSnackbar",e)}Ce("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Mb=e=>{const{classes:o,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${F(n.vertical)}${F(n.horizontal)}`]};return we(r,jb,o)},Nb=D("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[`anchorOrigin${F(n.anchorOrigin.vertical)}${F(n.anchorOrigin.horizontal)}`]]}})(me(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:o})=>o.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:o})=>o.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:o})=>o.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:o})=>o.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:o})=>o.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Kc=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiSnackbar"}),a=jt(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:p,className:g,ClickAwayListenerProps:b,ContentProps:v,disableWindowBlurListener:h=!1,message:f,onBlur:y,onClose:C,onFocus:O,onMouseEnter:S,onMouseLeave:x,open:T,resumeHideDuration:E,slots:j={},slotProps:P={},TransitionComponent:I,transitionDuration:N=i,TransitionProps:{onEnter:A,onExited:m,...$}={},...R}=r,M={...r,anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:d,disableWindowBlurListener:h,TransitionComponent:I,transitionDuration:N},k=Mb(M),{getRootProps:z,onClickAway:V}=Ob(M),[W,B]=w.useState(!0),L=se=>{B(!0),m&&m(se)},Y=(se,ie)=>{B(!1),A&&A(se,ie)},Z={slots:{transition:I,...j},slotProps:{content:v,clickAwayListener:b,transition:$,...P}},[oe,K]=ge("root",{ref:n,className:[k.root,g],elementType:Nb,getSlotProps:z,externalForwardedProps:{...Z,...R},ownerState:M}),[U,{ownerState:ae,...ce}]=ge("clickAwayListener",{elementType:Rr,externalForwardedProps:Z,getSlotProps:se=>({onClickAway:(...ie)=>{const pe=ie[0];se.onClickAway?.(...ie),!pe?.defaultMuiPrevented&&V(...ie)}}),ownerState:M}),[J,X]=ge("content",{elementType:Gc,shouldForwardComponentProp:!0,externalForwardedProps:Z,additionalProps:{message:f,action:s},ownerState:M}),[de,_]=ge("transition",{elementType:ln,externalForwardedProps:Z,getSlotProps:se=>({onEnter:(...ie)=>{se.onEnter?.(...ie),Y(...ie)},onExited:(...ie)=>{se.onExited?.(...ie),L(...ie)}}),additionalProps:{appear:!0,in:T,timeout:N,direction:l==="top"?"down":"up"},ownerState:M});return!T&&W?null:u.jsx(U,{...ce,...j.clickAwayListener&&{ownerState:ae},children:u.jsx(oe,{...K,children:u.jsx(de,{..._,children:p||u.jsx(J,{...X})})})})});process.env.NODE_ENV!=="production"&&(Kc.propTypes={action:t.node,anchorOrigin:t.shape({horizontal:t.oneOf(["center","left","right"]).isRequired,vertical:t.oneOf(["bottom","top"]).isRequired}),autoHideDuration:t.number,children:t.element,classes:t.object,className:t.string,ClickAwayListenerProps:t.object,ContentProps:t.object,disableWindowBlurListener:t.bool,key:()=>null,message:t.node,onBlur:t.func,onClose:t.func,onFocus:t.func,onMouseEnter:t.func,onMouseLeave:t.func,open:t.bool,resumeHideDuration:t.number,slotProps:t.shape({clickAwayListener:t.oneOfType([t.func,t.object]),content:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),transition:t.oneOfType([t.func,t.object])}),slots:t.shape({clickAwayListener:t.elementType,content:t.elementType,root:t.elementType,transition:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),TransitionComponent:t.elementType,transitionDuration:t.oneOfType([t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})]),TransitionProps:t.object});function Ab(e){return xe("MuiLinearProgress",e)}Ce("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const ri=4,ai=le.keyframes`
|
|
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`
|
|
255
255
|
0% {
|
|
256
256
|
left: -35%;
|
|
257
257
|
right: 100%;
|
|
@@ -266,9 +266,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${o}Chann
|
|
|
266
266
|
left: 100%;
|
|
267
267
|
right: -90%;
|
|
268
268
|
}
|
|
269
|
-
`,
|
|
270
|
-
animation: ${
|
|
271
|
-
`:null,
|
|
269
|
+
`,MC=typeof Za!="string"?fe.css`
|
|
270
|
+
animation: ${Za} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
271
|
+
`:null,Ja=fe.keyframes`
|
|
272
272
|
0% {
|
|
273
273
|
left: -200%;
|
|
274
274
|
right: 100%;
|
|
@@ -283,9 +283,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${o}Chann
|
|
|
283
283
|
left: 107%;
|
|
284
284
|
right: -8%;
|
|
285
285
|
}
|
|
286
|
-
`,
|
|
287
|
-
animation: ${
|
|
288
|
-
`:null,
|
|
286
|
+
`,AC=typeof Ja!="string"?fe.css`
|
|
287
|
+
animation: ${Ja} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
288
|
+
`:null,Qa=fe.keyframes`
|
|
289
289
|
0% {
|
|
290
290
|
opacity: 1;
|
|
291
291
|
background-position: 0 -23px;
|
|
@@ -300,35 +300,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${o}Chann
|
|
|
300
300
|
opacity: 1;
|
|
301
301
|
background-position: -200px -23px;
|
|
302
302
|
}
|
|
303
|
-
`,
|
|
304
|
-
animation: ${
|
|
305
|
-
`:null,zb=e=>{const{classes:o,variant:n,color:r}=e,a={root:["root",`color${F(r)}`,n],dashed:["dashed",`dashedColor${F(r)}`],bar1:["bar","bar1",`barColor${F(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${F(r)}`,n==="buffer"&&`color${F(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return we(a,Ab,o)},zi=(e,o)=>e.vars?e.vars.palette.LinearProgress[`${o}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[o].main,.62):e.darken(e.palette[o].main,.5),Fb=D("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[`color${F(n.color)}`],o[n.variant]]}})(me(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{backgroundColor:zi(e,o)}})),{props:({ownerState:o})=>o.color==="inherit"&&o.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)"}}]}))),Vb=D("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.dashed,o[`dashedColor${F(n.color)}`]]}})(me(({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(qe()).map(([o])=>{const n=zi(e,o);return{props:{color:o},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Db||{animation:`${si} 3s infinite linear`}),_b=D("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.bar,o.bar1,o[`barColor${F(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&o.bar1Indeterminate,n.variant==="determinate"&&o.bar1Determinate,n.variant==="buffer"&&o.bar1Buffer]}})(me(({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(qe()).map(([o])=>({props:{color:o},style:{backgroundColor:(e.vars||e).palette[o].main}})),{props:{variant:"determinate"},style:{transition:`transform .${ri}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${ri}s linear`}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:Lb||{animation:`${ai} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Wb=D("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.bar,o.bar2,o[`barColor${F(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&o.bar2Indeterminate,n.variant==="buffer"&&o.bar2Buffer]}})(me(({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(qe()).map(([o])=>({props:{color:o},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[o].main}})),{props:({ownerState:o})=>o.variant!=="buffer"&&o.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:o})=>o.variant!=="buffer"&&o.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o,variant:"buffer"},style:{backgroundColor:zi(e,o),transition:`transform .${ri}s linear`}})),{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:Bb||{animation:`${ii} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Fi=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiLinearProgress"}),{className:a,color:i="primary",value:s,valueBuffer:l,variant:c="indeterminate",...d}=r,p={...r,color:i,variant:c},g=zb(p),b=mn(),v={},h={bar1:{},bar2:{}};if(c==="determinate"||c==="buffer")if(s!==void 0){v["aria-valuenow"]=Math.round(s),v["aria-valuemin"]=0,v["aria-valuemax"]=100;let f=s-100;b&&(f=-f),h.bar1.transform=`translateX(${f}%)`}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 f=(l||0)-100;b&&(f=-f),h.bar2.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return u.jsxs(Fb,{className:re(g.root,a),ownerState:p,role:"progressbar",...v,ref:n,...d,children:[c==="buffer"?u.jsx(Vb,{className:g.dashed,ownerState:p}):null,u.jsx(_b,{className:g.bar1,ownerState:p,style:h.bar1}),c==="determinate"?null:u.jsx(Wb,{className:g.bar2,ownerState:p,style:h.bar2})]})});process.env.NODE_ENV!=="production"&&(Fi.propTypes={classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","primary","secondary"]),t.string]),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:t.number,valueBuffer:t.number,variant:t.oneOf(["buffer","determinate","indeterminate","query"])});const Ub=it.styled(Ri,{shouldForwardProp:e=>e!=="estilo"&&e!=="varianteColor"})(({theme:e,estilo:o,varianteColor:n})=>{const r={width:"100%",boxShadow:e.shadows[6],alignItems:"center","& .MuiAlert-icon":{fontSize:"1.5rem"}};if(o==="cristal"){const a=e.palette.mode==="dark";return{...r,backgroundColor:a?it.alpha(n,.2):it.alpha(n,.15),backdropFilter:"blur(10px)",color:a?e.palette.getContrastText(e.palette.background.paper):e.palette.text.primary,border:`1px solid ${it.alpha(n,.3)}`,"& .MuiAlert-icon":{color:n}}}return o==="suave"?{...r}:o==="contorno"?{...r,backgroundColor:e.palette.background.paper,color:e.palette.text.primary,border:`2px solid ${n}`,"& .MuiAlert-icon":{color:n}}:{...r}}),Vi=({abierto:e,alCerrar:o,variante:n="info",estilo:r="solido",titulo:a,mensaje:i,posicion:s="abajo-derecha",animacion:l="slide",duracion:c=6e3,mostrarIcono:d=!0,mostrarProgreso:p=!1,cerrable:g=!0,accion:b,className:v,sx:h,...f})=>{const y=it.useTheme(),[C,O]=Re.useState(0);Re.useEffect(()=>{if(e&&c&&p){O(0);const P=100,N=100/(c/P),A=setInterval(()=>{O(m=>m>=100?(clearInterval(A),100):m+N)},P);return()=>clearInterval(A)}},[e,c,p]);const S=(P,I)=>{I!=="clickaway"&&o&&o()},x=P=>{const[I,N]=P.split("-");return{vertical:I==="arriba"?"top":"bottom",horizontal:N==="izquierda"?"left":N==="derecha"?"right":"center"}},E={info:y.palette.info.main,exito:y.palette.success.main,advertencia:y.palette.warning.main,error:y.palette.error.main}[n],j=l==="grow"?it.Grow:l==="fade"?it.Zoom:it.Slide;return u.jsx(Kc,{open:e,autoHideDuration:c,onClose:S,anchorOrigin:x(s),TransitionComponent:j,className:v,sx:h,...f,children:u.jsxs(Ub,{onClose:g?S:void 0,severity:n==="exito"?"success":n==="advertencia"?"warning":n,variant:r==="solido"?"filled":"standard",estilo:r,varianteColor:E,icon:d?void 0:!1,action:b,children:[a&&u.jsx(Ii,{sx:{fontWeight:"bold"},children:a}),i,p&&c&&u.jsx(Fi,{variant:"determinate",value:C,sx:{position:"absolute",bottom:0,left:0,right:0,height:4,bgcolor:it.alpha(y.palette.common.white,.3),"& .MuiLinearProgress-bar":{bgcolor:it.alpha(y.palette.common.white,.8)}}})]})})},Hb=Vi,qb=Vi,Yc=({valor:e=0,maximo:o=100,etiqueta:n,mostrarPorcentaje:r=!1,etiquetaInterna:a=!1,indeterminado:i=!1,tamano:s="md",variante:l="primario",rayado:c=!1,animado:d=!1,colorPersonalizado:p,className:g="",sx:b,...v})=>{const h=jt(),y={xs:4,sm:8,md:12,lg:16,xl:24}[s]||12,O={primario:"primary",secundario:"secondary",error:"error",info:"info",exito:"success",advertencia:"warning"}[l]||"primary",S=Math.min(100,Math.max(0,e/o*100)),x=h.palette.mode==="dark"?"rgba(0,0,0,0.15)":"rgba(255,255,255,0.3)",T=c||d?{backgroundImage:`linear-gradient(45deg,${x} 25%,transparent 25%,transparent 50%,${x} 50%,${x} 75%,transparent 75%,transparent)`,backgroundSize:"1rem 1rem",...d&&{animation:"progreso-rayas 1s linear infinite","@keyframes progreso-rayas":{"0%":{backgroundPosition:"1rem 0"},"100%":{backgroundPosition:"0 0"}}}}:{},E={color:h.palette.getContrastText(p||h.palette[O==="inherit"?"primary":O].main),fontWeight:"bold",fontSize:"0.75rem",lineHeight:1,textShadow:"0 1px 2px rgba(0,0,0,0.2)"};return u.jsxs(Ue,{width:"100%",className:g,children:[!a&&(n||r)&&u.jsxs(Ue,{display:"flex",justifyContent:"space-between",mb:.5,alignItems:"center",children:[n&&u.jsx(nt,{variant:"body2",color:"text.secondary",fontWeight:500,children:n}),r&&u.jsx(nt,{variant:"body2",color:"text.secondary",fontWeight:600,children:i?"":`${Math.round(S)}%`})]}),u.jsxs(Ue,{position:"relative",width:"100%",children:[u.jsx(Fi,{variant:i?"indeterminate":"determinate",value:S,color:O,sx:{height:y,borderRadius:y/2,backgroundColor:h.palette.mode==="dark"?le.alpha(h.palette.common.white,.08):le.alpha(h.palette.common.black,.08),"& .MuiLinearProgress-bar":{borderRadius:y/2,...p&&{backgroundColor:p},...T},...b},...v}),a&&!i&&y>=12&&u.jsx(Ue,{position:"absolute",top:0,left:0,bottom:0,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1,sx:{pointerEvents:"none"},children:u.jsxs(nt,{variant:"caption",sx:E,children:[n," ",r?`${Math.round(S)}%`:""]})})]})]})},Gb=Yc,Xc={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Kb=st(u.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"),Yb=st(u.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 Xb(e){return xe("MuiRating",e)}const Sn=Ce("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);function Zb(e){const o=e.toString().split(".")[1];return o?o.length:0}function Ma(e,o){if(e==null)return e;const n=Math.round(e/o)*o;return Number(n.toFixed(Zb(o)))}const Jb=e=>{const{classes:o,size:n,readOnly:r,disabled:a,emptyValueFocused:i,focusVisible:s}=e,l={root:["root",`size${F(n)}`,a&&"disabled",s&&"focusVisible",r&&"readOnly"],label:["label","pristine"],labelEmptyValue:[i&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return we(l,Xb,o)},Qb=D("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${Sn.visuallyHidden}`]:o.visuallyHidden},o.root,o[`size${F(n.size)}`],n.readOnly&&o.readOnly]}})(me(({theme:e})=>({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${Sn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Sn.focusVisible} .${Sn.iconActive}`]:{outline:"1px solid #999"},[`& .${Sn.visuallyHidden}`]:Xc,variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(30)}},{props:({ownerState:o})=>o.readOnly,style:{pointerEvents:"none"}}]}))),Zc=D("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:e},o)=>[o.label,e.emptyValueFocused&&o.labelEmptyValueActive]})({cursor:"inherit",variants:[{props:({ownerState:e})=>e.emptyValueFocused,style:{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}}]}),ey=D("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.icon,n.iconEmpty&&o.iconEmpty,n.iconFilled&&o.iconFilled,n.iconHover&&o.iconHover,n.iconFocus&&o.iconFocus,n.iconActive&&o.iconActive]}})(me(({theme:e})=>({display:"flex",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),pointerEvents:"none",variants:[{props:({ownerState:o})=>o.iconActive,style:{transform:"scale(1.2)"}},{props:({ownerState:o})=>o.iconEmpty,style:{color:(e.vars||e).palette.action.disabled}}]}))),ty=D("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>Kn(e)&&e!=="iconActive",overridesResolver:(e,o)=>{const{iconActive:n}=e;return[o.decimal,n&&o.iconActive]}})({position:"relative",variants:[{props:({iconActive:e})=>e,style:{transform:"scale(1.2)"}}]});function Jc(e){const{value:o,...n}=e;return u.jsx("span",{...n})}process.env.NODE_ENV!=="production"&&(Jc.propTypes={value:t.number.isRequired});function li(e){const{classes:o,disabled:n,emptyIcon:r,focus:a,getLabelText:i,highlightSelectedOnly:s,hover:l,icon:c,IconContainerComponent:d,isActive:p,itemValue:g,labelProps:b,name:v,onBlur:h,onChange:f,onClick:y,onFocus:C,readOnly:O,ownerState:S,ratingValue:x,ratingValueRounded:T,slots:E={},slotProps:j={}}=e,P=s?g===x:g<=x,I=g<=l,N=g<=a,A=g===T,m=`${v}-${uo()}`,$={slots:E,slotProps:j},[R,M]=ge("icon",{elementType:ey,className:re(o.icon,P?o.iconFilled:o.iconEmpty,I&&o.iconHover,N&&o.iconFocus,p&&o.iconActive),externalForwardedProps:$,ownerState:{...S,iconEmpty:!P,iconFilled:P,iconHover:I,iconFocus:N,iconActive:p},additionalProps:{value:g},internalForwardedProps:{as:d}}),[k,z]=ge("label",{elementType:Zc,externalForwardedProps:$,ownerState:{...S,emptyValueFocused:void 0},additionalProps:{style:b?.style,htmlFor:m}}),V=u.jsx(R,{...M,children:r&&!P?r:c});return O?u.jsx("span",{...b,children:V}):u.jsxs(w.Fragment,{children:[u.jsxs(k,{...z,children:[V,u.jsx("span",{className:o.visuallyHidden,children:i(g)})]}),u.jsx("input",{className:o.visuallyHidden,onFocus:C,onBlur:h,onChange:f,onClick:y,disabled:n,value:g,id:m,type:"radio",name:v,checked:A})]})}process.env.NODE_ENV!=="production"&&(li.propTypes={classes:t.object.isRequired,disabled:t.bool.isRequired,emptyIcon:t.node,focus:t.number.isRequired,getLabelText:t.func.isRequired,highlightSelectedOnly:t.bool.isRequired,hover:t.number.isRequired,icon:t.node,IconContainerComponent:t.elementType.isRequired,isActive:t.bool.isRequired,itemValue:t.number.isRequired,labelProps:t.object,name:t.string,onBlur:t.func.isRequired,onChange:t.func.isRequired,onClick:t.func.isRequired,onFocus:t.func.isRequired,ownerState:t.object.isRequired,ratingValue:t.number,ratingValueRounded:t.number,readOnly:t.bool.isRequired,slotProps:t.object,slots:t.object});const oy=u.jsx(Kb,{fontSize:"inherit"}),ny=u.jsx(Yb,{fontSize:"inherit"});function ry(e){return`${e||"0"} Star${e!==1?"s":""}`}const Qc=w.forwardRef(function(o,n){const r=Te({name:"MuiRating",props:o}),{component:a="span",className:i,defaultValue:s=null,disabled:l=!1,emptyIcon:c=ny,emptyLabelText:d="Empty",getLabelText:p=ry,highlightSelectedOnly:g=!1,icon:b=oy,IconContainerComponent:v=Jc,max:h=5,name:f,onChange:y,onChangeActive:C,onMouseLeave:O,onMouseMove:S,precision:x=1,readOnly:T=!1,size:E="medium",value:j,slots:P={},slotProps:I={},...N}=r,A=uo(f),[m,$]=Qt({controlled:j,default:s,name:"Rating"}),R=Ma(m,x),M=mn(),[{hover:k,focus:z},V]=w.useState({hover:-1,focus:-1});let W=R;k!==-1&&(W=k),z!==-1&&(W=z);const[B,L]=w.useState(!1),Y=w.useRef(),Z=ot(Y,n),oe=he=>{S&&S(he);const ne=Y.current,{right:ze,left:Me,width:te}=ne.getBoundingClientRect();let Q;M?Q=(ze-he.clientX)/te:Q=(he.clientX-Me)/te;let be=Ma(h*Q+x/2,x);be=jo(be,x,h),V(Oe=>Oe.hover===be&&Oe.focus===be?Oe:{hover:be,focus:be}),L(!1),C&&k!==be&&C(he,be)},K=he=>{O&&O(he);const ne=-1;V({hover:ne,focus:ne}),C&&k!==ne&&C(he,ne)},U=he=>{let ne=he.target.value===""?null:parseFloat(he.target.value);k!==-1&&(ne=k),$(ne),y&&y(he,ne)},ae=he=>{he.clientX===0&&he.clientY===0||(V({hover:-1,focus:-1}),$(null),y&&parseFloat(he.target.value)===R&&y(he,null))},ce=he=>{So(he.target)&&L(!0);const ne=parseFloat(he.target.value);V(ze=>({hover:ze.hover,focus:ne}))},J=he=>{if(k!==-1)return;So(he.target)||L(!1);const ne=-1;V(ze=>({hover:ze.hover,focus:ne}))},[X,de]=w.useState(!1),_={...r,component:a,defaultValue:s,disabled:l,emptyIcon:c,emptyLabelText:d,emptyValueFocused:X,focusVisible:B,getLabelText:p,icon:b,IconContainerComponent:v,max:h,precision:x,readOnly:T,size:E},se=Jb(_),ie={slots:P,slotProps:I},[pe,ke]=ge("root",{ref:Z,className:re(se.root,i),elementType:Qb,externalForwardedProps:{...ie,...N,component:a},getSlotProps:he=>({...he,onMouseMove:ne=>{oe(ne),he.onMouseMove?.(ne)},onMouseLeave:ne=>{K(ne),he.onMouseLeave?.(ne)}}),ownerState:_,additionalProps:{role:T?"img":null,"aria-label":T?p(W):null}}),[Ee,ee]=ge("label",{className:re(se.label,se.labelEmptyValue),elementType:Zc,externalForwardedProps:ie,ownerState:_}),[De,Se]=ge("decimal",{className:se.decimal,elementType:ty,externalForwardedProps:ie,ownerState:_});return u.jsxs(pe,{...ke,children:[Array.from(new Array(h)).map((he,ne)=>{const ze=ne+1,Me={classes:se,disabled:l,emptyIcon:c,focus:z,getLabelText:p,highlightSelectedOnly:g,hover:k,icon:b,IconContainerComponent:v,name:A,onBlur:J,onChange:U,onClick:ae,onFocus:ce,ratingValue:W,ratingValueRounded:R,readOnly:T,ownerState:_,slots:P,slotProps:I},te=ze===Math.ceil(W)&&(k!==-1||z!==-1);if(x<1){const Q=Array.from(new Array(1/x));return Re.createElement(De,{...Se,key:ze,className:re(Se.className,te&&se.iconActive),iconActive:te},Q.map((be,Oe)=>{const Pe=Ma(ze-1+(Oe+1)*x,x);return u.jsx(li,{...Me,isActive:!1,itemValue:Pe,labelProps:{style:Q.length-1===Oe?{}:{width:Pe===W?`${(Oe+1)*x*100}%`:"0%",overflow:"hidden",position:"absolute"}}},Pe)}))}return u.jsx(li,{...Me,isActive:te,itemValue:ze},ze)}),!T&&!l&&u.jsxs(Ee,{...ee,children:[u.jsx("input",{className:se.visuallyHidden,value:"",id:`${A}-empty`,type:"radio",name:A,checked:R==null,onFocus:()=>de(!0),onBlur:()=>de(!1),onChange:U}),u.jsx("span",{className:se.visuallyHidden,children:d})]})]})});process.env.NODE_ENV!=="production"&&(Qc.propTypes={children:t.node,classes:t.object,className:t.string,component:t.elementType,defaultValue:t.number,disabled:t.bool,emptyIcon:t.node,emptyLabelText:t.node,getLabelText:t.func,highlightSelectedOnly:t.bool,icon:t.node,IconContainerComponent:t.elementType,max:t.number,name:t.string,onChange:t.func,onChangeActive:t.func,onMouseLeave:t.func,onMouseMove:t.func,precision:xt(t.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:
|
|
303
|
+
`,jC=typeof Qa!="string"?fe.css`
|
|
304
|
+
animation: ${Qa} 3s infinite linear;
|
|
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 e1=fe.keyframes`
|
|
307
307
|
0% { transform: scale(1); }
|
|
308
308
|
50% { transform: scale(1.2); }
|
|
309
309
|
100% { transform: scale(1); }
|
|
310
|
-
`,
|
|
310
|
+
`,t1=B(lh,{shouldForwardProp:e=>e!=="colorPersonalizado"&&e!=="animado"&&e!=="brillo"})(({theme:e,colorPersonalizado:t,animado:n,brillo:r})=>({"& .MuiRating-iconFilled":{color:t,filter:r?`drop-shadow(0 0 2px ${t})`:"none",transition:"transform 0.2s ease-in-out"},"& .MuiRating-iconHover":{color:t,filter:r?`drop-shadow(0 0 4px ${t})`:"none",transform:n?"scale(1.2)":"none"},"& .MuiRating-iconActive":{animation:n?`${e1} 0.4s ease-out`:"none"}})),ch=({valor:e,maximo:t=5,precision:n=1,soloLectura:r=!1,deshabilitado:i=!1,tamano:s="m",color:a="advertencia",etiquetas:l,mostrarEtiqueta:c=!1,alCambiar:u,iconoPersonalizado:d,iconoVacioPersonalizado:p,animado:f=!0,brillo:b=!1,className:g,sx:h,...v})=>{const w=_t(),[C,S]=H.useState(-1),T={p:"small",m:"medium",g:"large",xg:"large"}[s],P=s==="xg"?1.5:1,R={primario:w.palette.primary.main,secundario:w.palette.secondary.main,exito:w.palette.success.main,advertencia:w.palette.warning.main,error:w.palette.error.main,info:w.palette.info.main}[a]||w.palette.warning.main,k=I=>l?l[I]||I:`${I} Estrellas`;return m.jsxs(qe,{className:g,sx:{display:"flex",alignItems:"center",gap:1,opacity:i?.5:1,pointerEvents:i?"none":"auto",...h},children:[m.jsx(t1,{name:"codeplex-rating",value:e,max:t,precision:n,readOnly:r,disabled:i,size:T,colorPersonalizado:R,animado:f,brillo:b,onChange:(I,A)=>{u&&u(A)},onChangeActive:(I,A)=>{S(A)},icon:d,emptyIcon:p,sx:{transform:`scale(${P})`,transformOrigin:"left center"},...v}),c&&(e!==null||C!==-1)&&m.jsx(at,{variant:"body2",color:"text.secondary",sx:{minWidth:20,ml:s==="xg"?2:0,fontWeight:500},children:l?k(C!==-1?C:e||0):C!==-1?C:e})]})},n1=ch,uh=({textoAyuda:e,mensajeError:t,valor:n,longitudMaxima:r,mostrarContador:i})=>{const s=n?.toString().length||0,a=!!t,l=r?s>=r*.9:!1,c=r?s>=r:!1;return!e&&!t&&!i?null:m.jsxs("div",{className:"flex items-start justify-between mt-1.5 px-1 gap-4",children:[m.jsx("div",{className:"flex-1 min-w-0",children:a?m.jsxs("p",{className:"text-xs font-medium text-red-500 flex items-center gap-1 animate-in slide-in-from-left-1 duration-200",children:[m.jsx("svg",{className:"w-3 h-3 flex-shrink-0",viewBox:"0 0 20 20",fill:"currentColor",children:m.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),t]}):e?m.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 leading-tight",children:e}):null}),i&&r&&m.jsxs("div",{className:`
|
|
311
311
|
text-[10px] font-mono font-medium transition-colors duration-300
|
|
312
|
-
${
|
|
313
|
-
`,children:[
|
|
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`
|
|
314
314
|
0% { transform: translateX(-100%); }
|
|
315
315
|
100% { transform: translateX(100%); }
|
|
316
|
-
`;const
|
|
317
|
-
`)):console.error([`MUI: Unable to find the input element. It was resolved to ${
|
|
318
|
-
`)))},[
|
|
319
|
-
`))}const dt=rt.findIndex(Rt=>A(H,Rt));dt===-1?rt.push(H):Ie!=="freeSolo"&&(rt.splice(dt,1),$e="removeOption")}Me(G,rt,$e),Et(G,rt,$e,{option:H}),!b&&(!G||!G.ctrlKey&&!G.metaKey)&&tt(G,$e),(s===!0||s==="touch"&&wt.current||s==="mouse"&&!wt.current)&&J.current.blur()};function je(G,H){if(G===-1)return-1;let fe=G;for(;;){if(H==="next"&&fe===ee.length||H==="previous"&&fe===-1)return-1;const Ie=Y?"data-item-index":"data-tag-index",$e=de.querySelector(`[${Ie}="${fe}"]`);if(!$e||!$e.hasAttribute("tabindex")||$e.disabled||$e.getAttribute("aria-disabled")==="true")fe+=H==="next"?1:-1;else return fe}}const St=(G,H)=>{if(!m)return;Se===""&&tt(G,"toggleInput");let fe=se;se===-1?Se===""&&H==="previous"&&(fe=ee.length-1):(fe+=H==="next"?1:-1,fe<0&&(fe=0),fe===ee.length&&(fe=-1)),fe=je(fe,H),ie(fe),We(fe)},tr=G=>{ae.current=!0,he(""),k&&k(G,"","clear"),Et(G,m?[]:null,"clear")},ua=G=>H=>{if(G.onKeyDown&&G.onKeyDown(H),!H.defaultMuiPrevented&&(se!==-1&&!["ArrowLeft","ArrowRight"].includes(H.key)&&(ie(-1),We(-1)),H.which!==229))switch(H.key){case"Home":ve&&j&&(H.preventDefault(),ut({diff:"start",direction:"next",reason:"keyboard",event:H}));break;case"End":ve&&j&&(H.preventDefault(),ut({diff:"end",direction:"previous",reason:"keyboard",event:H}));break;case"PageUp":H.preventDefault(),ut({diff:-al,direction:"previous",reason:"keyboard",event:H}),_e(H);break;case"PageDown":H.preventDefault(),ut({diff:al,direction:"next",reason:"keyboard",event:H}),_e(H);break;case"ArrowDown":H.preventDefault(),ut({diff:1,direction:"next",reason:"keyboard",event:H}),_e(H);break;case"ArrowUp":H.preventDefault(),ut({diff:-1,direction:"previous",reason:"keyboard",event:H}),_e(H);break;case"ArrowLeft":!m&&Y&&ee!=null?(ie(0),We(0)):St(H,"previous");break;case"ArrowRight":!m&&Y?(ie(-1),We(-1)):St(H,"next");break;case"Enter":if(ke.current!==-1&&ve){const fe=ue[ke.current],Ie=S?S(fe):!1;if(H.preventDefault(),Ie)return;ft(H,fe,"selectOption"),r&&J.current.setSelectionRange(J.current.value.length,J.current.value.length)}else O&&Se!==""&&Pe===!1&&(m&&H.preventDefault(),ft(H,Se,"createOption","freeSolo"));break;case"Escape":ve?(H.preventDefault(),H.stopPropagation(),tt(H,"escape")):c&&(Se!==""||m&&ee.length>0||Y)&&(H.preventDefault(),H.stopPropagation(),tr(H));break;case"Backspace":if(m&&!L&&Se===""&&ee.length>0){const fe=se===-1?ee.length-1:se,Ie=ee.slice();Ie.splice(fe,1),Et(H,Ie,"removeOption",{option:ee[fe]})}!m&&Y&&!L&&(De(null),ie(-1),We(-1));break;case"Delete":if(m&&!L&&Se===""&&ee.length>0&&se!==-1){const fe=se,Ie=ee.slice();Ie.splice(fe,1),Et(H,Ie,"removeOption",{option:ee[fe]})}!m&&Y&&!L&&(De(null),ie(-1),We(-1));break}},_o=G=>{ze(!0),se!==-1&&(ie(-1),We(-1)),W&&!ae.current&&_e(G)},Wo=G=>{if(o(X)){J.current.focus();return}ze(!1),ce.current=!0,ae.current=!1,i&&ke.current!==-1&&ve?ft(G,ue[ke.current],"blur"):i&&O&&Se!==""?ft(G,Se,"blur","freeSolo"):l&&Me(G,ee,"blur"),tt(G,"blur")},hn=G=>{const H=G.target.value;Se!==H&&(he(H),Oe(!1),k&&k(G,H,"input")),H===""?!g&&!m&&Et(G,null,"clear"):_e(G)},fa=G=>{const H=Number(G.currentTarget.getAttribute("data-option-index"));ke.current!==H&&vt({event:G,index:H,reason:"mouse"})},ma=G=>{vt({event:G,index:Number(G.currentTarget.getAttribute("data-option-index")),reason:"touch"}),wt.current=!0},ga=G=>{const H=Number(G.currentTarget.getAttribute("data-option-index"));ft(G,ue[H],"selectOption"),wt.current=!1},ha=G=>H=>{const fe=ee.slice();fe.splice(G,1),Et(H,fe,"removeOption",{option:ee[G]})},bn=G=>{Et(G,null,"removeOption",{option:ee})},ht=G=>{te?tt(G,"toggleInput"):_e(G)},yt=G=>{G.currentTarget.contains(G.target)&&G.target.getAttribute("id")!==K&&G.preventDefault()},fo=G=>{G.currentTarget.contains(G.target)&&(J.current.focus(),Z&&ce.current&&J.current.selectionEnd-J.current.selectionStart===0&&J.current.select(),ce.current=!1)},ba=G=>{!v&&(Se===""||!te)&&ht(G)};let yn=O&&Se.length>0;yn=yn||(m?ee.length>0:ee!==null);let or=ue;if(E){const G=new Map;let H=!1;or=ue.reduce((fe,Ie,$e)=>{const rt=E(Ie);return fe.length>0&&fe[fe.length-1].group===rt?fe[fe.length-1].options.push(Ie):(process.env.NODE_ENV!=="production"&&(G.get(rt)&&!H&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${d} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),H=!0),G.set(rt,!0)),fe.push({key:$e,index:$e,group:rt,options:[Ie]})),fe},[])}return v&&ne&&Wo(),{getRootProps:(G={})=>({...G,onKeyDown:ua(G),onMouseDown:yt,onClick:fo}),getInputLabelProps:()=>({id:`${K}-label`,htmlFor:K}),getInputProps:()=>({id:K,value:Se,onBlur:Wo,onFocus:_o,onChange:hn,onMouseDown:ba,"aria-activedescendant":ve?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ne?`${K}-listbox`:void 0,"aria-expanded":Ne,autoComplete:"off",ref:J,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:tr}),getItemProps:({index:G=0}={})=>({...m&&{key:G},...Y?{"data-item-index":G}:{"data-tag-index":G},tabIndex:-1,...!L&&{onDelete:m?ha(G):bn}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ht}),getTagProps:({index:G})=>({key:G,"data-tag-index":G,tabIndex:-1,...!L&&{onDelete:ha(G)}}),getListboxProps:()=>({role:"listbox",id:`${K}-listbox`,"aria-labelledby":`${K}-label`,ref:gt,onMouseDown:G=>{G.preventDefault()}}),getOptionProps:({index:G,option:H})=>{const fe=(m?ee:[ee]).some($e=>$e!=null&&A(H,$e)),Ie=S?S(H):!1;return{key:x?.(H)??U(H),tabIndex:-1,role:"option",id:`${K}-option-${G}`,onMouseMove:fa,onClick:ga,onTouchStart:ma,"data-option-index":G,"aria-disabled":Ie,"aria-selected":fe}},id:K,inputValue:Se,value:ee,dirty:yn,expanded:ve&&de,popupOpen:ve,focused:ne||se!==-1,anchorEl:de,setAnchorEl:_,focusedItem:se,focusedTag:se,groupedOptions:or}}function hy(e){return xe("MuiListSubheader",e)}Ce("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const by=e=>{const{classes:o,color:n,disableGutters:r,inset:a,disableSticky:i}=e,s={root:["root",n!=="default"&&`color${F(n)}`,!r&&"gutters",a&&"inset",!i&&"sticky"]};return we(s,hy,o)},yy=D("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.color!=="default"&&o[`color${F(n.color)}`],!n.disableGutters&&o.gutters,n.inset&&o.inset,!n.disableSticky&&o.sticky]}})(me(({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:o})=>!o.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:o})=>o.inset,style:{paddingLeft:72}},{props:({ownerState:o})=>!o.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),fn=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiListSubheader"}),{className:a,color:i="default",component:s="li",disableGutters:l=!1,disableSticky:c=!1,inset:d=!1,...p}=r,g={...r,color:i,component:s,disableGutters:l,disableSticky:c,inset:d},b=by(g);return u.jsx(yy,{as:s,className:re(b.root,a),ref:n,ownerState:g,...p})});fn&&(fn.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(fn.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOf(["default","inherit","primary"]),component:t.elementType,disableGutters:t.bool,disableSticky:t.bool,inset:t.bool,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});const vy=st(u.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 xy(e){return xe("MuiChip",e)}const Fe=Ce("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"]),Cy=e=>{const{classes:o,disabled:n,size:r,color:a,iconColor:i,onDelete:s,clickable:l,variant:c}=e,d={root:["root",c,n&&"disabled",`size${F(r)}`,`color${F(a)}`,l&&"clickable",l&&`clickableColor${F(a)}`,s&&"deletable",s&&`deletableColor${F(a)}`,`${c}${F(a)}`],label:["label",`label${F(r)}`],avatar:["avatar",`avatar${F(r)}`,`avatarColor${F(a)}`],icon:["icon",`icon${F(r)}`,`iconColor${F(i)}`],deleteIcon:["deleteIcon",`deleteIcon${F(r)}`,`deleteIconColor${F(a)}`,`deleteIcon${F(c)}Color${F(a)}`]};return we(d,xy,o)},wy=D("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e,{color:r,iconColor:a,clickable:i,onDelete:s,size:l,variant:c}=n;return[{[`& .${Fe.avatar}`]:o.avatar},{[`& .${Fe.avatar}`]:o[`avatar${F(l)}`]},{[`& .${Fe.avatar}`]:o[`avatarColor${F(r)}`]},{[`& .${Fe.icon}`]:o.icon},{[`& .${Fe.icon}`]:o[`icon${F(l)}`]},{[`& .${Fe.icon}`]:o[`iconColor${F(a)}`]},{[`& .${Fe.deleteIcon}`]:o.deleteIcon},{[`& .${Fe.deleteIcon}`]:o[`deleteIcon${F(l)}`]},{[`& .${Fe.deleteIcon}`]:o[`deleteIconColor${F(r)}`]},{[`& .${Fe.deleteIcon}`]:o[`deleteIcon${F(c)}Color${F(r)}`]},o.root,o[`size${F(l)}`],o[`color${F(r)}`],i&&o.clickable,i&&r!=="default"&&o[`clickableColor${F(r)}`],s&&o.deletable,s&&r!=="default"&&o[`deletableColor${F(r)}`],o[c],o[`${c}${F(r)}`]]}})(me(({theme:e})=>{const o=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",[`&.${Fe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Fe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:o,fontSize:e.typography.pxToRem(12)},[`& .${Fe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Fe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Fe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Fe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Fe.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,[`& .${Fe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Fe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(qe(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Fe.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:{[`& .${Fe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:o}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Fe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Fe.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(qe(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Fe.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}`)},[`&.${Fe.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(qe(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Fe.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]}`,[`&.${Fe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Fe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Fe.avatar}`]:{marginLeft:4},[`& .${Fe.avatarSmall}`]:{marginLeft:2},[`& .${Fe.icon}`]:{marginLeft:4},[`& .${Fe.iconSmall}`]:{marginLeft:2},[`& .${Fe.deleteIcon}`]:{marginRight:5},[`& .${Fe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(qe()).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)}`,[`&.${Fe.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Fe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Fe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Sy=D("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:n}=e,{size:r}=n;return[o.label,o[`label${F(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 sl(e){return e.key==="Backspace"||e.key==="Delete"}const Qr=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiChip"}),{avatar:a,className:i,clickable:s,color:l="default",component:c,deleteIcon:d,disabled:p=!1,icon:g,label:b,onClick:v,onDelete:h,onKeyDown:f,onKeyUp:y,size:C="medium",variant:O="filled",tabIndex:S,skipFocusWhenDisabled:x=!1,slots:T={},slotProps:E={},...j}=r,P=w.useRef(null),I=ot(P,n),N=U=>{U.stopPropagation(),h&&h(U)},A=U=>{U.currentTarget===U.target&&sl(U)&&U.preventDefault(),f&&f(U)},m=U=>{U.currentTarget===U.target&&h&&sl(U)&&h(U),y&&y(U)},$=s!==!1&&v?!0:s,R=$||h?lo:c||"div",M={...r,component:R,disabled:p,size:C,color:l,iconColor:w.isValidElement(g)&&g.props.color||l,onDelete:!!h,clickable:$,variant:O},k=Cy(M),z=R===lo?{component:c||"div",focusVisibleClassName:k.focusVisible,...h&&{disableRipple:!0}}:{};let V=null;h&&(V=d&&w.isValidElement(d)?w.cloneElement(d,{className:re(d.props.className,k.deleteIcon),onClick:N}):u.jsx(vy,{className:k.deleteIcon,onClick:N}));let W=null;a&&w.isValidElement(a)&&(W=w.cloneElement(a,{className:re(k.avatar,a.props.className)}));let B=null;g&&w.isValidElement(g)&&(B=w.cloneElement(g,{className:re(k.icon,g.props.className)})),process.env.NODE_ENV!=="production"&&W&&B&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const L={slots:T,slotProps:E},[Y,Z]=ge("root",{elementType:wy,externalForwardedProps:{...L,...j},ownerState:M,shouldForwardComponentProp:!0,ref:I,className:re(k.root,i),additionalProps:{disabled:$&&p?!0:void 0,tabIndex:x&&p?-1:S,...z},getSlotProps:U=>({...U,onClick:ae=>{U.onClick?.(ae),v?.(ae)},onKeyDown:ae=>{U.onKeyDown?.(ae),A(ae)},onKeyUp:ae=>{U.onKeyUp?.(ae),m(ae)}})}),[oe,K]=ge("label",{elementType:Sy,externalForwardedProps:L,ownerState:M,className:k.label});return u.jsxs(Y,{as:R,...Z,children:[W||B,u.jsx(oe,{...K,children:b}),V]})});process.env.NODE_ENV!=="production"&&(Qr.propTypes={avatar:t.element,children:Of,classes:t.object,className:t.string,clickable:t.bool,color:t.oneOfType([t.oneOf(["default","primary","secondary","error","info","success","warning"]),t.string]),component:t.elementType,deleteIcon:t.element,disabled:t.bool,icon:t.element,label:t.node,onClick:t.func,onDelete:t.func,onKeyDown:t.func,onKeyUp:t.func,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),skipFocusWhenDisabled:t.bool,slotProps:t.shape({label:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({label:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),tabIndex:t.number,variant:t.oneOfType([t.oneOf(["filled","outlined"]),t.string])});function dr(e){return parseInt(e,10)||0}const Ty={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Oy(e){for(const o in e)return!1;return!0}function ll(e){return Oy(e)||e.outerHeightStyle===0&&!e.overflowing}const nd=w.forwardRef(function(o,n){const{onChange:r,maxRows:a,minRows:i=1,style:s,value:l,...c}=o,{current:d}=w.useRef(l!=null),p=w.useRef(null),g=ot(n,p),b=w.useRef(null),v=w.useRef(null),h=w.useCallback(()=>{const S=p.current,x=v.current;if(!S||!x)return;const E=so(S).getComputedStyle(S);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=E.width,x.value=S.value||o.placeholder||"x",x.value.slice(-1)===`
|
|
320
|
-
`&&(x.value+=" ");const j=
|
|
321
|
-
`),j=x.selectionStart===T;
|
|
322
|
-
`))},[]),de=ot(J,x,S.ref,X),[_,se]=w.useState(!1),ie=Yt();process.env.NODE_ENV!=="production"&&w.useEffect(()=>{if(ie)return ie.registerEffect()},[ie]);const pe=ko({props:r,muiFormControl:ie,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=ie?ie.focused:_,w.useEffect(()=>{!ie&&b&&_&&(se(!1),N&&N())},[ie,b,_,N]);const ke=ie&&ie.onFilled,Ee=ie&&ie.onEmpty,ee=w.useCallback(ue=>{Ir(ue)?ke&&ke():Ee&&Ee()},[ke,Ee]);Wt(()=>{ce&&ee({value:ae})},[ae,ee,ce]);const De=ue=>{$&&$(ue),S.onFocus&&S.onFocus(ue),ie&&ie.onFocus?ie.onFocus(ue):se(!0)},Se=ue=>{N&&N(ue),S.onBlur&&S.onBlur(ue),ie&&ie.onBlur?ie.onBlur(ue):se(!1)},he=(ue,...Ve)=>{if(!ce){const Ne=ue.target||J.current;if(Ne==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.":oo(1));ee({value:Ne.value})}S.onChange&&S.onChange(ue,...Ve),A&&A(ue,...Ve)};w.useEffect(()=>{ee(J.current)},[]);const ne=ue=>{J.current&&ue.currentTarget===ue.target&&J.current.focus(),m&&m(ue)};let ze=O,Me=S;P&&ze==="input"&&(W?(process.env.NODE_ENV!=="production"&&(j||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Me={type:void 0,minRows:W,maxRows:W,...Me}):Me={type:void 0,maxRows:E,minRows:j,...Me},ze=nd);const te=ue=>{ee(ue.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};w.useEffect(()=>{ie&&ie.setAdornedStart(!!Z)},[ie,Z]);const Q={...r,color:pe.color||"primary",disabled:pe.disabled,endAdornment:h,error:pe.error,focused:pe.focused,formControl:ie,fullWidth:y,hiddenLabel:pe.hiddenLabel,multiline:P,size:pe.size,startAdornment:Z,type:oe},be=Py(Q),Oe=Y.root||d.Root||oa,Pe=L.root||p.root||{},ve=Y.input||d.Input||na;return Me={...Me,...L.input??p.input},u.jsxs(w.Fragment,{children:[!v&&typeof pl=="function"&&(dl||(dl=u.jsx(pl,{}))),u.jsxs(Oe,{...Pe,ref:n,onClick:ne,...U,...!eo(Oe)&&{ownerState:{...Q,...Pe.ownerState}},className:re(be.root,Pe.className,l,z&&"MuiInputBase-readOnly"),children:[Z,u.jsx(er.Provider,{value:null,children:u.jsx(ve,{"aria-invalid":pe.error,"aria-describedby":a,autoComplete:i,autoFocus:s,defaultValue:g,disabled:pe.disabled,id:C,onAnimationStart:te,name:I,placeholder:k,readOnly:z,required:pe.required,rows:W,value:ae,onKeyDown:R,onKeyUp:M,type:oe,...Me,...!eo(ve)&&{as:ze,ownerState:{...Q,...Me.ownerState}},ref:de,className:re(be.input,Me.className,z&&"MuiInputBase-readOnly"),onBlur:Se,onChange:he,onFocus:De})}),h,V?V({...pe,startAdornment:Z}):null]})]})});process.env.NODE_ENV!=="production"&&(ra.propTypes={"aria-describedby":t.string,autoComplete:t.string,autoFocus:t.bool,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["primary","secondary","error","info","success","warning"]),t.string]),components:t.shape({Input:t.elementType,Root:t.elementType}),componentsProps:t.shape({input:t.object,root:t.object}),defaultValue:t.any,disabled:t.bool,disableInjectingGlobalStyles:t.bool,endAdornment:t.node,error:t.bool,fullWidth:t.bool,id:t.string,inputComponent:Yn,inputProps:t.object,inputRef:Pt,margin:t.oneOf(["dense","none"]),maxRows:t.oneOfType([t.number,t.string]),minRows:t.oneOfType([t.number,t.string]),multiline:t.bool,name:t.string,onBlur:t.func,onChange:t.func,onClick:t.func,onFocus:t.func,onInvalid:t.func,onKeyDown:t.func,onKeyUp:t.func,placeholder:t.string,readOnly:t.bool,renderSuffix:t.func,required:t.bool,rows:t.oneOfType([t.number,t.string]),size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),slotProps:t.shape({input:t.object,root:t.object}),slots:t.shape({input:t.elementType,root:t.elementType}),startAdornment:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.string,value:t.any});function Ry(e){return xe("MuiInput",e)}const bo={...Mt,...Ce("MuiInput",["root","underline","input"])};function Iy(e){return xe("MuiOutlinedInput",e)}const Bt={...Mt,...Ce("MuiOutlinedInput",["root","notchedOutline","input"])};function $y(e){return xe("MuiFilledInput",e)}const Nt={...Mt,...Ce("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},rd=st(u.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function jy(e){return xe("MuiAutocomplete",e)}const Be=Ce("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 ul,fl;const My=e=>{const{classes:o,disablePortal:n,expanded:r,focused:a,fullWidth:i,hasClearIcon:s,hasPopupIcon:l,inputFocused:c,popupOpen:d,size:p}=e,g={root:["root",r&&"expanded",a&&"focused",i&&"fullWidth",s&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${F(p)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return we(g,jy,o)},Ny=D("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:a,hasPopupIcon:i,inputFocused:s,size:l}=n;return[{[`& .${Be.tag}`]:o.tag},{[`& .${Be.tag}`]:o[`tagSize${F(l)}`]},{[`& .${Be.inputRoot}`]:o.inputRoot},{[`& .${Be.input}`]:o.input},{[`& .${Be.input}`]:s&&o.inputFocused},o.root,r&&o.fullWidth,i&&o.hasPopupIcon,a&&o.hasClearIcon]}})({[`&.${Be.focused} .${Be.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Be.clearIndicator}`]:{visibility:"visible"}},[`& .${Be.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Be.inputRoot}`]:{[`.${Be.hasPopupIcon}&, .${Be.hasClearIcon}&`]:{paddingRight:30},[`.${Be.hasPopupIcon}.${Be.hasClearIcon}&`]:{paddingRight:56},[`& .${Be.input}`]:{width:0,minWidth:30}},[`& .${bo.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${bo.root}.${Mt.sizeSmall}`]:{[`& .${bo.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Bt.root}`]:{padding:9,[`.${Be.hasPopupIcon}&, .${Be.hasClearIcon}&`]:{paddingRight:39},[`.${Be.hasPopupIcon}.${Be.hasClearIcon}&`]:{paddingRight:65},[`& .${Be.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Be.endAdornment}`]:{right:9}},[`& .${Bt.root}.${Mt.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Be.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Nt.root}`]:{paddingTop:19,paddingLeft:8,[`.${Be.hasPopupIcon}&, .${Be.hasClearIcon}&`]:{paddingRight:39},[`.${Be.hasPopupIcon}.${Be.hasClearIcon}&`]:{paddingRight:65},[`& .${Nt.input}`]:{padding:"7px 4px"},[`& .${Be.endAdornment}`]:{right:9}},[`& .${Nt.root}.${Mt.sizeSmall}`]:{paddingBottom:1,[`& .${Nt.input}`]:{padding:"2.5px 4px"}},[`& .${Mt.hiddenLabel}`]:{paddingTop:8},[`& .${Nt.root}.${Mt.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Be.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Nt.root}.${Mt.hiddenLabel}.${Mt.sizeSmall}`]:{[`& .${Be.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Be.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Be.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Be.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Be.inputRoot}`]:{flexWrap:"wrap"}}}]}),Ay=D("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Ly=D(an,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),By=D(an,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.popupIndicator,n.popupOpen&&o.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Dy=D(Jn,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${Be.option}`]:o.option},o.popper,n.disablePortal&&o.popperDisablePortal]}})(me(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),zy=D(Oo,{name:"MuiAutocomplete",slot:"Paper"})(me(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),Fy=D("div",{name:"MuiAutocomplete",slot:"Loading"})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Vy=D("div",{name:"MuiAutocomplete",slot:"NoOptions"})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),_y=D("ul",{name:"MuiAutocomplete",slot:"Listbox"})(me(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Be.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"},[`&.${Be.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"},[`&.${Be.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),[`&.${Be.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}},[`&.${Be.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),Wy=D(fn,{name:"MuiAutocomplete",slot:"GroupLabel"})(me(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),Uy=D("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Be.option}`]:{paddingLeft:24}}),ad=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:i=!1,autoSelect:s=!1,blurOnSelect:l=!1,ChipProps:c,className:d,clearIcon:p=ul||(ul=u.jsx($c,{fontSize:"small"})),clearOnBlur:g=!r.freeSolo,clearOnEscape:b=!1,clearText:v="Clear",closeText:h="Close",componentsProps:f,defaultValue:y=r.multiple?[]:null,disableClearable:C=!1,disableCloseOnSelect:O=!1,disabled:S=!1,disabledItemsFocusable:x=!1,disableListWrap:T=!1,disablePortal:E=!1,filterOptions:j,filterSelectedOptions:P=!1,forcePopupIcon:I="auto",freeSolo:N=!1,fullWidth:A=!1,getLimitTagsText:m=He=>`+${He}`,getOptionDisabled:$,getOptionKey:R,getOptionLabel:M,isOptionEqualToValue:k,groupBy:z,handleHomeEndKeys:V=!r.freeSolo,id:W,includeInputInList:B=!1,inputValue:L,limitTags:Y=-1,ListboxComponent:Z,ListboxProps:oe,loading:K=!1,loadingText:U="Loading…",multiple:ae=!1,noOptionsText:ce="No options",onChange:J,onClose:X,onHighlightChange:de,onInputChange:_,onOpen:se,open:ie,openOnFocus:pe=!1,openText:ke="Open",options:Ee,PaperComponent:ee,PopperComponent:De,popupIcon:Se=fl||(fl=u.jsx(rd,{})),readOnly:he=!1,renderGroup:ne,renderInput:ze,renderOption:Me,renderTags:te,renderValue:Q,selectOnFocus:be=!r.freeSolo,size:Oe="medium",slots:Pe={},slotProps:ve={},value:ue,...Ve}=r,{getRootProps:Ne,getInputProps:We,getInputLabelProps:Ot,getPopupIndicatorProps:vt,getClearProps:ut,getItemProps:ye,getListboxProps:Ae,getOptionProps:Xe,value:gt,dirty:_e,expanded:tt,id:Et,popupOpen:wt,focused:ft,focusedItem:je,anchorEl:St,setAnchorEl:tr,inputValue:ua,groupedOptions:_o}=gy({...r,componentName:"Autocomplete"}),Wo=!C&&!S&&_e&&!he,hn=(!N||I===!0)&&I!==!1,{onMouseDown:fa}=We(),{ref:ma,...ga}=Ae(),bn=M||(He=>He.label??He),ht={...r,disablePortal:E,expanded:tt,focused:ft,fullWidth:A,getOptionLabel:bn,hasClearIcon:Wo,hasPopupIcon:hn,inputFocused:je===-1,popupOpen:wt,size:Oe},yt=My(ht),fo={slots:{paper:ee,popper:De,...Pe},slotProps:{chip:c,listbox:oe,...f,...ve}},[ba,yn]=ge("listbox",{elementType:_y,externalForwardedProps:fo,ownerState:ht,className:yt.listbox,additionalProps:ga,ref:ma}),[or,G]=ge("paper",{elementType:Oo,externalForwardedProps:fo,ownerState:ht,className:yt.paper}),[H,fe]=ge("popper",{elementType:Jn,externalForwardedProps:fo,ownerState:ht,className:yt.popper,additionalProps:{disablePortal:E,style:{width:St?St.clientWidth:null},role:"presentation",anchorEl:St,open:wt}});let Ie;const $e=He=>({className:yt.tag,disabled:S,...ye(He)});if(ae?gt.length>0&&(te?Ie=te(gt,$e,ht):Q?Ie=Q(gt,$e,ht):Ie=gt.map((He,mo)=>{const{key:go,...vn}=$e({index:mo});return u.jsx(Qr,{label:bn(He),size:Oe,...vn,...fo.slotProps.chip},go)})):Q&>!=null&&(Ie=Q(gt,$e,ht)),Y>-1&&Array.isArray(Ie)){const He=Ie.length-Y;!ft&&He>0&&(Ie=Ie.splice(0,Y),Ie.push(u.jsx("span",{className:yt.tag,children:m(He)},Ie.length)))}const dt=ne||(He=>u.jsxs("li",{children:[u.jsx(Wy,{className:yt.groupLabel,ownerState:ht,component:"div",children:He.group}),u.jsx(Uy,{className:yt.groupUl,ownerState:ht,children:He.children})]},He.key)),Uo=Me||((He,mo)=>{const{key:go,...vn}=He;return u.jsx("li",{...vn,children:bn(mo)},go)}),Qi=(He,mo)=>{const go=Xe({option:He,index:mo});return Uo({...go,className:yt.option},He,{selected:go["aria-selected"],index:mo,inputValue:ua},ht)},es=fo.slotProps.clearIndicator,ts=fo.slotProps.popupIndicator;return u.jsxs(w.Fragment,{children:[u.jsx(Ny,{ref:n,className:re(yt.root,d),ownerState:ht,...Ne(Ve),children:ze({id:Et,disabled:S,fullWidth:!0,size:Oe==="small"?"small":void 0,InputLabelProps:Ot(),InputProps:{ref:tr,className:yt.inputRoot,startAdornment:Ie,onMouseDown:He=>{He.target===He.currentTarget&&fa(He)},...(Wo||hn)&&{endAdornment:u.jsxs(Ay,{className:yt.endAdornment,ownerState:ht,children:[Wo?u.jsx(Ly,{...ut(),"aria-label":v,title:v,ownerState:ht,...es,className:re(yt.clearIndicator,es?.className),children:p}):null,hn?u.jsx(By,{...vt(),disabled:S,"aria-label":wt?h:ke,title:wt?h:ke,ownerState:ht,...ts,className:re(yt.popupIndicator,ts?.className),children:Se}):null]})}},inputProps:{className:yt.input,disabled:S,readOnly:he,...We()}})}),St?u.jsx(Dy,{as:H,...fe,children:u.jsxs(zy,{as:or,...G,children:[K&&_o.length===0?u.jsx(Fy,{className:yt.loading,ownerState:ht,children:U}):null,_o.length===0&&!N&&!K?u.jsx(Vy,{className:yt.noOptions,ownerState:ht,role:"presentation",onMouseDown:He=>{He.preventDefault()},children:ce}):null,_o.length>0?u.jsx(ba,{as:Z,...yn,children:_o.map((He,mo)=>z?dt({key:He.key,group:He.group,children:He.options.map((go,vn)=>Qi(go,He.index+vn))}):Qi(He,mo))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(ad.propTypes={autoComplete:t.bool,autoHighlight:t.bool,autoSelect:t.bool,blurOnSelect:t.oneOfType([t.oneOf(["mouse","touch"]),t.bool]),ChipProps:t.object,classes:t.object,className:t.string,clearIcon:t.node,clearOnBlur:t.bool,clearOnEscape:t.bool,clearText:t.string,closeText:t.string,componentsProps:t.shape({clearIndicator:t.object,paper:t.object,popper:t.object,popupIndicator:t.object}),defaultValue:xt(t.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:
|
|
324
|
-
`)):null)});const Hy=e=>{const{classes:o,disableUnderline:n}=e,a=we({root:["root",!n&&"underline"],input:["input"]},Ry,o);return{...o,...a}},qy=D(oa,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[...ea(e,o),!n.disableUnderline&&o.underline]}})(me(({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"},[`&.${bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bo.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(.${bo.disabled}, .${bo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${bo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(qe()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Gy=D(na,{name:"MuiInput",slot:"Input",overridesResolver:ta})({}),aa=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiInput"}),{disableUnderline:a=!1,components:i={},componentsProps:s,fullWidth:l=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:g={},type:b="text",...v}=r,h=Hy(r),y={root:{ownerState:{disableUnderline:a}}},C=p??s?Tt(p??s,y):y,O=g.root??i.Root??qy,S=g.input??i.Input??Gy;return u.jsx(ra,{slots:{root:O,input:S},slotProps:C,fullWidth:l,inputComponent:c,multiline:d,ref:n,type:b,...v,classes:h})});process.env.NODE_ENV!=="production"&&(aa.propTypes={autoComplete:t.string,autoFocus:t.bool,classes:t.object,color:t.oneOfType([t.oneOf(["primary","secondary"]),t.string]),components:t.shape({Input:t.elementType,Root:t.elementType}),componentsProps:t.shape({input:t.object,root:t.object}),defaultValue:t.any,disabled:t.bool,disableUnderline:t.bool,endAdornment:t.node,error:t.bool,fullWidth:t.bool,id:t.string,inputComponent:t.elementType,inputProps:t.object,inputRef:Pt,margin:t.oneOf(["dense","none"]),maxRows:t.oneOfType([t.number,t.string]),minRows:t.oneOfType([t.number,t.string]),multiline:t.bool,name:t.string,onChange:t.func,placeholder:t.string,readOnly:t.bool,required:t.bool,rows:t.oneOfType([t.number,t.string]),slotProps:t.shape({input:t.object,root:t.object}),slots:t.shape({input:t.elementType,root:t.elementType}),startAdornment:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.string,value:t.any});aa.muiName="Input";const Ky=e=>{const{classes:o,disableUnderline:n,startAdornment:r,endAdornment:a,size:i,hiddenLabel:s,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",a&&"adornedEnd",i==="small"&&`size${F(i)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},d=we(c,$y,o);return{...o,...d}},Yy=D(oa,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[...ea(e,o),!n.disableUnderline&&o.underline]}})(me(({theme:e})=>{const o=e.palette.mode==="light",n=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=o?"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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Nt.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Nt.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:s})=>!s.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"},[`&.${Nt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nt.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(.${Nt.disabled}, .${Nt.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Nt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(qe()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Xy=D(na,{name:"MuiFilledInput",slot:"Input",overridesResolver:ta})(me(({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:o})=>o.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:0}},{props:({ownerState:o})=>o.endAdornment,style:{paddingRight:0}},{props:({ownerState:o})=>o.hiddenLabel&&o.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:o})=>o.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ia=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:i={},componentsProps:s,fullWidth:l=!1,hiddenLabel:c,inputComponent:d="input",multiline:p=!1,slotProps:g,slots:b={},type:v="text",...h}=r,f={...r,disableUnderline:a,fullWidth:l,inputComponent:d,multiline:p,type:v},y=Ky(r),C={root:{ownerState:f},input:{ownerState:f}},O=g??s?Tt(C,g??s):C,S=b.root??i.Root??Yy,x=b.input??i.Input??Xy;return u.jsx(ra,{slots:{root:S,input:x},slotProps:O,fullWidth:l,inputComponent:d,multiline:p,ref:n,type:v,...h,classes:y})});process.env.NODE_ENV!=="production"&&(ia.propTypes={autoComplete:t.string,autoFocus:t.bool,classes:t.object,color:t.oneOfType([t.oneOf(["primary","secondary"]),t.string]),components:t.shape({Input:t.elementType,Root:t.elementType}),componentsProps:t.shape({input:t.object,root:t.object}),defaultValue:t.any,disabled:t.bool,disableUnderline:t.bool,endAdornment:t.node,error:t.bool,fullWidth:t.bool,hiddenLabel:t.bool,id:t.string,inputComponent:t.elementType,inputProps:t.object,inputRef:Pt,margin:t.oneOf(["dense","none"]),maxRows:t.oneOfType([t.number,t.string]),minRows:t.oneOfType([t.number,t.string]),multiline:t.bool,name:t.string,onChange:t.func,placeholder:t.string,readOnly:t.bool,required:t.bool,rows:t.oneOfType([t.number,t.string]),slotProps:t.shape({input:t.object,root:t.object}),slots:t.shape({input:t.elementType,root:t.elementType}),startAdornment:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.string,value:t.any});ia.muiName="Input";var ml;const Zy=D("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ct})({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%"}),Jy=D("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ct})(me(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:o})=>!o.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:o})=>o.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:o})=>o.withLabel&&o.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function id(e){const{children:o,classes:n,className:r,label:a,notched:i,...s}=e,l=a!=null&&a!=="",c={...e,notched:i,withLabel:l};return u.jsx(Zy,{"aria-hidden":!0,className:r,ownerState:c,...s,children:u.jsx(Jy,{ownerState:c,children:l?u.jsx("span",{children:a}):ml||(ml=u.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(id.propTypes={children:t.node,classes:t.object,className:t.string,label:t.node,notched:t.bool.isRequired,style:t.object});const Qy=e=>{const{classes:o}=e,r=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Iy,o);return{...o,...r}},ev=D(oa,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ea})(me(({theme:e})=>{const o=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 .${Bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Bt.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):o}},[`&.${Bt.focused} .${Bt.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(qe()).map(([n])=>({props:{color:n},style:{[`&.${Bt.focused} .${Bt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Bt.error} .${Bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Bt.disabled} .${Bt.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"}}]}})),tv=D(id,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(me(({theme:e})=>{const o=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):o}})),ov=D(na,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ta})(me(({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:o})=>o.multiline,style:{padding:0}},{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:0}},{props:({ownerState:o})=>o.endAdornment,style:{paddingRight:0}}]}))),sa=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:s="input",label:l,multiline:c=!1,notched:d,slots:p={},slotProps:g={},type:b="text",...v}=r,h=Qy(r),f=Yt(),y=ko({props:r,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...r,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:f,fullWidth:i,hiddenLabel:y.hiddenLabel,multiline:c,size:y.size,type:b},O=p.root??a.Root??ev,S=p.input??a.Input??ov,[x,T]=ge("notchedOutline",{elementType:tv,className:h.notchedOutline,shouldForwardComponentProp:!0,ownerState:C,externalForwardedProps:{slots:p,slotProps:g},additionalProps:{label:l!=null&&l!==""&&y.required?u.jsxs(w.Fragment,{children:[l," ","*"]}):l}});return u.jsx(ra,{slots:{root:O,input:S},slotProps:g,renderSuffix:E=>u.jsx(x,{...T,notched:typeof d<"u"?d:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:i,inputComponent:s,multiline:c,ref:n,type:b,...v,classes:{...h,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(sa.propTypes={autoComplete:t.string,autoFocus:t.bool,classes:t.object,color:t.oneOfType([t.oneOf(["primary","secondary"]),t.string]),components:t.shape({Input:t.elementType,Root:t.elementType}),defaultValue:t.any,disabled:t.bool,endAdornment:t.node,error:t.bool,fullWidth:t.bool,id:t.string,inputComponent:t.elementType,inputProps:t.object,inputRef:Pt,label:t.node,margin:t.oneOf(["dense","none"]),maxRows:t.oneOfType([t.number,t.string]),minRows:t.oneOfType([t.number,t.string]),multiline:t.bool,name:t.string,notched:t.bool,onChange:t.func,placeholder:t.string,readOnly:t.bool,required:t.bool,rows:t.oneOfType([t.number,t.string]),slotProps:t.shape({input:t.object,notchedOutline:t.oneOfType([t.func,t.object]),root:t.object}),slots:t.shape({input:t.elementType,notchedOutline:t.elementType,root:t.elementType}),startAdornment:t.node,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.string,value:t.any});sa.muiName="Input";function nv(e){return xe("MuiFormLabel",e)}const Dn=Ce("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),rv=e=>{const{classes:o,color:n,focused:r,disabled:a,error:i,filled:s,required:l}=e,c={root:["root",`color${F(n)}`,a&&"disabled",i&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return we(c,nv,o)},av=D("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.color==="secondary"&&o.colorSecondary,n.filled&&o.filled]}})(me(({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(qe()).map(([o])=>({props:{color:o},style:{[`&.${Dn.focused}`]:{color:(e.vars||e).palette[o].main}}})),{props:{},style:{[`&.${Dn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Dn.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),iv=D("span",{name:"MuiFormLabel",slot:"Asterisk"})(me(({theme:e})=>({[`&.${Dn.error}`]:{color:(e.vars||e).palette.error.main}}))),$r=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiFormLabel"}),{children:a,className:i,color:s,component:l="label",disabled:c,error:d,filled:p,focused:g,required:b,...v}=r,h=Yt(),f=ko({props:r,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),y={...r,color:f.color||"primary",component:l,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},C=rv(y);return u.jsxs(av,{as:l,ownerState:y,className:re(C.root,i),ref:n,...v,children:[a,f.required&&u.jsxs(iv,{ownerState:y,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&($r.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["error","info","primary","secondary","success","warning"]),t.string]),component:t.elementType,disabled:t.bool,error:t.bool,filled:t.bool,focused:t.bool,required:t.bool,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function sv(e){return xe("MuiInputLabel",e)}Ce("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const lv=e=>{const{classes:o,formControl:n,size:r,shrink:a,disableAnimation:i,variant:s,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",a&&"shrink",r&&r!=="medium"&&`size${F(r)}`,s],asterisk:[l&&"asterisk"]},d=we(c,sv,o);return{...o,...d}},cv=D($r,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${Dn.asterisk}`]:o.asterisk},o.root,n.formControl&&o.formControl,n.size==="small"&&o.sizeSmall,n.shrink&&o.shrink,!n.disableAnimation&&o.animated,n.focused&&o.focused,o[n.variant]]}})(me(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:o})=>o.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:o})=>o.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:o})=>!o.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:o,ownerState:n})=>o==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:o,ownerState:n,size:r})=>o==="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:o,ownerState:n})=>o==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),_i=w.forwardRef(function(o,n){const r=Te({name:"MuiInputLabel",props:o}),{disableAnimation:a=!1,margin:i,shrink:s,variant:l,className:c,...d}=r,p=Yt();let g=s;typeof g>"u"&&p&&(g=p.filled||p.focused||p.adornedStart);const b=ko({props:r,muiFormControl:p,states:["size","variant","required","focused"]}),v={...r,disableAnimation:a,formControl:p,shrink:g,size:b.size,variant:b.variant,required:b.required,focused:b.focused},h=lv(v);return u.jsx(cv,{"data-shrink":g,ref:n,className:re(h.root,c),...d,ownerState:v,classes:h})});process.env.NODE_ENV!=="production"&&(_i.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["error","info","primary","secondary","success","warning"]),t.string]),disableAnimation:t.bool,disabled:t.bool,error:t.bool,focused:t.bool,margin:t.oneOf(["dense"]),required:t.bool,shrink:t.bool,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOf(["filled","outlined","standard"])});function dv(e){return xe("MuiFormControl",e)}Ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const pv=e=>{const{classes:o,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${F(n)}`,r&&"fullWidth"]};return we(a,dv,o)},uv=D("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[`margin${F(n.margin)}`],n.fullWidth&&o.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%"}}]}),la=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiFormControl"}),{children:a,className:i,color:s="primary",component:l="div",disabled:c=!1,error:d=!1,focused:p,fullWidth:g=!1,hiddenLabel:b=!1,margin:v="none",required:h=!1,size:f="medium",variant:y="outlined",...C}=r,O={...r,color:s,component:l,disabled:c,error:d,fullWidth:g,hiddenLabel:b,margin:v,required:h,size:f,variant:y},S=pv(O),[x,T]=w.useState(()=>{let k=!1;return a&&w.Children.forEach(a,z=>{if(!An(z,["Input","Select"]))return;const V=An(z,["Select"])?z.props.input:z;V&&Ey(V.props)&&(k=!0)}),k}),[E,j]=w.useState(()=>{let k=!1;return a&&w.Children.forEach(a,z=>{An(z,["Input","Select"])&&(Ir(z.props,!0)||Ir(z.props.inputProps,!0))&&(k=!0)}),k}),[P,I]=w.useState(!1);c&&P&&I(!1);const N=p!==void 0&&!c?p:P;let A;const m=w.useRef(!1);process.env.NODE_ENV!=="production"&&(A=()=>(m.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
325
|
-
`)),
|
|
326
|
-
`)),S.props.disabled||(
|
|
327
|
-
`)),h.current.setAttribute("tabIndex","-1")),v.current&&h.current.focus()),()=>{a||(g.current&&g.current.focus&&(c.current=!0,g.current.focus()),g.current=null)}},[l]),w.useEffect(()=>{if(!l||!h.current)return;const S=mt(h.current),x=$n(S),T=P=>{y.current=P,!(r||!s()||P.key!=="Tab")&&x===h.current&&P.shiftKey&&(c.current=!0,p.current&&p.current.focus())},E=()=>{const P=h.current;if(P===null)return;const I=$n(S);if(!S.hasFocus()||!s()||c.current){c.current=!1;return}if(P.contains(I)||r&&I!==d.current&&I!==p.current)return;if(I!==b.current)b.current=null;else if(b.current!==null)return;if(!v.current)return;let N=[];if((I===d.current||I===p.current)&&(N=i(h.current)),N.length>0){const A=!!(y.current?.shiftKey&&y.current?.key==="Tab"),m=N[0],$=N[N.length-1];typeof m!="string"&&typeof $!="string"&&(A?$.focus():m.focus())}else P.focus()};S.addEventListener("focusin",E),S.addEventListener("keydown",T,!0);const j=setInterval(()=>{const P=$n(S);P&&P.tagName==="BODY"&&E()},50);return()=>{clearInterval(j),S.removeEventListener("focusin",E),S.removeEventListener("keydown",T,!0)}},[n,r,a,s,l,i]);const C=S=>{g.current===null&&(g.current=S.relatedTarget),v.current=!0,b.current=S.target;const x=o.props.onFocus;x&&x(S)},O=S=>{g.current===null&&(g.current=S.relatedTarget),v.current=!0};return u.jsxs(w.Fragment,{children:[u.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:d,"data-testid":"sentinelStart"}),w.cloneElement(o,{ref:f,onFocus:C}),u.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(jr.propTypes={children:Fo,disableAutoFocus:t.bool,disableEnforceFocus:t.bool,disableRestoreFocus:t.bool,getTabbable:t.func,isEnabled:t.func,open:t.bool.isRequired});process.env.NODE_ENV!=="production"&&(jr.propTypes=gi(jr.propTypes));const Iv={entering:{opacity:1},entered:{opacity:1}},dd=w.forwardRef(function(o,n){const r=jt(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:c,in:d,onEnter:p,onEntered:g,onEntering:b,onExit:v,onExited:h,onExiting:f,style:y,timeout:C=a,TransitionComponent:O=Kt,...S}=o,x=w.useRef(null),T=ot(x,Vo(l),n),E=R=>M=>{if(R){const k=x.current;M===void 0?R(k):R(k,M)}},j=E(b),P=E((R,M)=>{jc(R);const k=sn({style:y,timeout:C,easing:c},{mode:"enter"});R.style.webkitTransition=r.transitions.create("opacity",k),R.style.transition=r.transitions.create("opacity",k),p&&p(R,M)}),I=E(g),N=E(f),A=E(R=>{const M=sn({style:y,timeout:C,easing:c},{mode:"exit"});R.style.webkitTransition=r.transitions.create("opacity",M),R.style.transition=r.transitions.create("opacity",M),v&&v(R)}),m=E(h),$=R=>{i&&i(x.current,R)};return u.jsx(O,{appear:s,in:d,nodeRef:x,onEnter:P,onEntered:I,onEntering:j,onExit:A,onExited:m,onExiting:N,addEndListener:$,timeout:C,...S,children:(R,{ownerState:M,...k})=>w.cloneElement(l,{style:{opacity:0,visibility:R==="exited"&&!d?"hidden":void 0,...Iv[R],...y,...l.props.style},ref:T,...k})})});process.env.NODE_ENV!=="production"&&(dd.propTypes={addEndListener:t.func,appear:t.bool,children:Fo.isRequired,easing:t.oneOfType([t.shape({enter:t.string,exit:t.string}),t.string]),in:t.bool,onEnter:t.func,onEntered:t.func,onEntering:t.func,onExit:t.func,onExited:t.func,onExiting:t.func,style:t.object,timeout:t.oneOfType([t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})])});function $v(e){return xe("MuiBackdrop",e)}Ce("MuiBackdrop",["root","invisible"]);const jv=e=>{const{classes:o,invisible:n}=e;return we({root:["root",n&&"invisible"]},$v,o)},Mv=D("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.invisible&&o.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"}}]}),pd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiBackdrop"}),{children:a,className:i,component:s="div",invisible:l=!1,open:c,components:d={},componentsProps:p={},slotProps:g={},slots:b={},TransitionComponent:v,transitionDuration:h,...f}=r,y={...r,component:s,invisible:l},C=jv(y),O={transition:v,root:d.Root,...b},S={...p,...g},x={component:s,slots:O,slotProps:S},[T,E]=ge("root",{elementType:Mv,externalForwardedProps:x,className:re(C.root,i),ownerState:y}),[j,P]=ge("transition",{elementType:dd,externalForwardedProps:x,ownerState:y});return u.jsx(j,{in:c,timeout:h,...f,...P,children:u.jsx(T,{"aria-hidden":!0,...E,classes:C,ref:n,children:a})})});process.env.NODE_ENV!=="production"&&(pd.propTypes={children:t.node,classes:t.object,className:t.string,component:t.elementType,components:t.shape({Root:t.elementType}),componentsProps:t.shape({root:t.object}),invisible:t.bool,open:t.bool.isRequired,slotProps:t.shape({root:t.oneOfType([t.func,t.object]),transition:t.oneOfType([t.func,t.object])}),slots:t.shape({root:t.elementType,transition:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),TransitionComponent:t.elementType,transitionDuration:t.oneOfType([t.number,t.shape({appear:t.number,enter:t.number,exit:t.number})])});function Nv(e){return typeof e=="function"?e():e}function Av(e){return e?e.props.hasOwnProperty("in"):!1}const xl=()=>{},pr=new Sv;function Lv(e){const{container:o,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:d,rootRef:p}=e,g=w.useRef({}),b=w.useRef(null),v=w.useRef(null),h=ot(v,p),[f,y]=w.useState(!d),C=Av(l);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const S=()=>mt(b.current),x=()=>(g.current.modalRef=v.current,g.current.mount=b.current,g.current),T=()=>{pr.mount(x(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},E=bt(()=>{const M=Nv(o)||S().body;pr.add(x(),M),v.current&&T()}),j=()=>pr.isTopModal(x()),P=bt(M=>{b.current=M,M&&(d&&j()?T():v.current&&zn(v.current,O))}),I=w.useCallback(()=>{pr.remove(x(),O)},[O]);w.useEffect(()=>()=>{I()},[I]),w.useEffect(()=>{d?E():(!C||!a)&&I()},[d,I,C,a,E]);const N=M=>k=>{M.onKeyDown?.(k),!(k.key!=="Escape"||k.which===229||!j())&&(n||(k.stopPropagation(),c&&c(k,"escapeKeyDown")))},A=M=>k=>{M.onClick?.(k),k.target===k.currentTarget&&c&&c(k,"backdropClick")};return{getRootProps:(M={})=>{const k=Lo(e);delete k.onTransitionEnter,delete k.onTransitionExited;const z={...k,...M};return{role:"presentation",...z,onKeyDown:N(z),ref:h}},getBackdropProps:(M={})=>{const k=M;return{"aria-hidden":!0,...k,onClick:A(k),open:d}},getTransitionProps:()=>{const M=()=>{y(!1),i&&i()},k=()=>{y(!0),s&&s(),a&&I()};return{onEnter:Da(M,l?.props.onEnter??xl),onExited:Da(k,l?.props.onExited??xl)}},rootRef:h,portalRef:P,isTopModal:j,exited:f,hasTransition:C}}function Bv(e){return xe("MuiModal",e)}Ce("MuiModal",["root","hidden","backdrop"]);const Dv=e=>{const{open:o,exited:n,classes:r}=e;return we({root:["root",!o&&n&&"hidden"],backdrop:["backdrop"]},Bv,r)},zv=D("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,!n.open&&n.exited&&o.hidden]}})(me(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:o})=>!o.open&&o.exited,style:{visibility:"hidden"}}]}))),Fv=D(pd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),ud=w.forwardRef(function(o,n){const r=Te({name:"MuiModal",props:o}),{BackdropComponent:a=Fv,BackdropProps:i,classes:s,className:l,closeAfterTransition:c=!1,children:d,container:p,component:g,components:b={},componentsProps:v={},disableAutoFocus:h=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:y=!1,disablePortal:C=!1,disableRestoreFocus:O=!1,disableScrollLock:S=!1,hideBackdrop:x=!1,keepMounted:T=!1,onClose:E,onTransitionEnter:j,onTransitionExited:P,open:I,slotProps:N={},slots:A={},theme:m,...$}=r,R={...r,closeAfterTransition:c,disableAutoFocus:h,disableEnforceFocus:f,disableEscapeKeyDown:y,disablePortal:C,disableRestoreFocus:O,disableScrollLock:S,hideBackdrop:x,keepMounted:T},{getRootProps:M,getBackdropProps:k,getTransitionProps:z,portalRef:V,isTopModal:W,exited:B,hasTransition:L}=Lv({...R,rootRef:n}),Y={...R,exited:B},Z=Dv(Y),oe={};if(d.props.tabIndex===void 0&&(oe.tabIndex="-1"),L){const{onEnter:X,onExited:de}=z();oe.onEnter=X,oe.onExited=de}const K={slots:{root:b.Root,backdrop:b.Backdrop,...A},slotProps:{...v,...N}},[U,ae]=ge("root",{ref:n,elementType:zv,externalForwardedProps:{...K,...$,component:g},getSlotProps:M,ownerState:Y,className:re(l,Z?.root,!Y.open&&Y.exited&&Z?.hidden)}),[ce,J]=ge("backdrop",{ref:i?.ref,elementType:a,externalForwardedProps:K,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:X=>k({...X,onClick:de=>{X?.onClick&&X.onClick(de)}}),className:re(i?.className,Z?.backdrop),ownerState:Y});return!T&&!I&&(!L||B)?null:u.jsx(Wn,{ref:V,container:p,disablePortal:C,children:u.jsxs(U,{...ae,children:[!x&&a?u.jsx(ce,{...J}):null,u.jsx(jr,{disableEnforceFocus:f,disableAutoFocus:h,disableRestoreFocus:O,isEnabled:W,open:I,children:w.cloneElement(d,oe)})]})})});process.env.NODE_ENV!=="production"&&(ud.propTypes={BackdropComponent:t.elementType,BackdropProps:t.object,children:Fo.isRequired,classes:t.object,className:t.string,closeAfterTransition:t.bool,component:t.elementType,components:t.shape({Backdrop:t.elementType,Root:t.elementType}),componentsProps:t.shape({backdrop:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),container:t.oneOfType([co,t.func]),disableAutoFocus:t.bool,disableEnforceFocus:t.bool,disableEscapeKeyDown:t.bool,disablePortal:t.bool,disableRestoreFocus:t.bool,disableScrollLock:t.bool,hideBackdrop:t.bool,keepMounted:t.bool,onClose:t.func,onTransitionEnter:t.func,onTransitionExited:t.func,open:t.bool.isRequired,slotProps:t.shape({backdrop:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({backdrop:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function Vv(e){return xe("MuiPopover",e)}Ce("MuiPopover",["root","paper"]);function Cl(e,o){let n=0;return typeof o=="number"?n=o:o==="center"?n=e.height/2:o==="bottom"&&(n=e.height),n}function wl(e,o){let n=0;return typeof o=="number"?n=o:o==="center"?n=e.width/2:o==="right"&&(n=e.width),n}function Sl(e){return[e.horizontal,e.vertical].map(o=>typeof o=="number"?`${o}px`:o).join(" ")}function jn(e){return typeof e=="function"?e():e}const _v=e=>{const{classes:o}=e;return we({root:["root"],paper:["paper"]},Vv,o)},Wv=D(ud,{name:"MuiPopover",slot:"Root"})({}),fd=D(Oo,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),md=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiPopover"}),{action:a,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:d,className:p,container:g,elevation:b=8,marginThreshold:v=16,open:h,PaperProps:f={},slots:y={},slotProps:C={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:x="auto",TransitionProps:T={},disableScrollLock:E=!1,...j}=r,P=w.useRef(),I={...r,anchorOrigin:s,anchorReference:c,elevation:b,marginThreshold:v,transformOrigin:O,TransitionComponent:S,transitionDuration:x,TransitionProps:T},N=_v(I),A=w.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 X=jn(i),de=X&&X.nodeType===1?X:mt(P.current).body,_=de.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const se=de.getBoundingClientRect();process.env.NODE_ENV!=="test"&&se.top===0&&se.left===0&&se.right===0&&se.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+
|
|
329
|
-
`)),
|
|
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 \`${
|
|
331
|
-
`))}return null}),anchorOrigin:
|
|
332
|
-
`)),W.props.disabled||(
|
|
333
|
-
`));let
|
|
334
|
-
`))}},[Oe,ee,O,S,L]),be&&(O?Q.length===0?Me=null:Me=Q.reduce((ye,Ae,Xe)=>(ye.push(Ae),Xe<Q.length-1&&ye.push(", "),ye),[]):Me=te);let ve=X;!s&&J&&ae&&(ve=ie.clientWidth);let ue;typeof k<"u"?ue=k:ue=g?null:0;const Ve=M.id||(S?`mui-component-select-${S}`:void 0),Ne={...o,variant:W,value:L,open:ne,error:v},We=a0(Ne),Ot={...C.PaperProps,...typeof C.slotProps?.paper=="function"?C.slotProps.paper(Ne):C.slotProps?.paper},vt={...C.MenuListProps,...typeof C.slotProps?.list=="function"?C.slotProps.list(Ne):C.slotProps?.list},ut=uo();return u.jsxs(w.Fragment,{children:[u.jsx(t0,{as:"div",ref:se,tabIndex:ue,role:"combobox","aria-controls":ne?ut:void 0,"aria-disabled":g?"true":void 0,"aria-expanded":ne?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[y,Ve].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":R?"true":void 0,"aria-invalid":v?"true":void 0,onKeyDown:he,onMouseDown:g||m?null:ke,onBlur:ze,onFocus:j,...M,ownerState:Ne,className:re(M.className,We.select,c),id:Ve,children:r0(Me)?Tl||(Tl=u.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Me}),u.jsx(n0,{"aria-invalid":v,value:Array.isArray(L)?L.join(","):L,name:S,ref:K,"aria-hidden":!0,onChange:De,tabIndex:-1,disabled:g,className:We.nativeInput,autoFocus:i,required:R,...B,ownerState:Ne}),u.jsx(o0,{as:h,className:We.icon,ownerState:Ne}),u.jsx(gd,{id:`menu-${S||""}`,anchorEl:ie,open:ne,onClose:Ee,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,slotProps:{...C.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:ut,...vt},paper:{...Ot,style:{minWidth:ve,...Ot!=null?Ot.style:null}}},children:Pe})]})});process.env.NODE_ENV!=="production"&&(xd.propTypes={"aria-describedby":t.string,"aria-label":t.string,autoFocus:t.bool,autoWidth:t.bool,children:t.node,classes:t.object,className:t.string,defaultOpen:t.bool,defaultValue:t.any,disabled:t.bool,displayEmpty:t.bool,error:t.bool,IconComponent:t.elementType.isRequired,inputRef:Pt,labelId:t.string,MenuProps:t.object,multiple:t.bool,name:t.string,onBlur:t.func,onChange:t.func,onClose:t.func,onFocus:t.func,onOpen:t.func,open:t.bool,readOnly:t.bool,renderValue:t.func,required:t.bool,SelectDisplayProps:t.object,tabIndex:t.oneOfType([t.number,t.string]),type:t.any,value:t.any,variant:t.oneOf(["standard","outlined","filled"])});const i0=e=>{const{classes:o}=e,r=we({root:["root"]},vd,o);return{...o,...r}},qi={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ct(e)&&e!=="variant"},s0=D(aa,qi)(""),l0=D(sa,qi)(""),c0=D(ia,qi)(""),ca=w.forwardRef(function(o,n){const r=Te({name:"MuiSelect",props:o}),{autoWidth:a=!1,children:i,classes:s={},className:l,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:p=rd,id:g,input:b,inputProps:v,label:h,labelId:f,MenuProps:y,multiple:C=!1,native:O=!1,onClose:S,onOpen:x,open:T,renderValue:E,SelectDisplayProps:j,variant:P="outlined",...I}=r,N=O?yd:xd,A=Yt(),m=ko({props:r,muiFormControl:A,states:["variant","error"]}),$=m.variant||P,R={...r,variant:$,classes:s},M=i0(R),{root:k,...z}=M,V=b||{standard:u.jsx(s0,{ownerState:R}),outlined:u.jsx(l0,{label:h,ownerState:R}),filled:u.jsx(c0,{ownerState:R})}[$],W=ot(n,Vo(V));return u.jsx(w.Fragment,{children:w.cloneElement(V,{inputComponent:N,inputProps:{children:i,error:m.error,IconComponent:p,variant:$,type:void 0,multiple:C,...O?{id:g}:{autoWidth:a,defaultOpen:c,displayEmpty:d,labelId:f,MenuProps:y,onClose:S,onOpen:x,open:T,renderValue:E,SelectDisplayProps:{id:g,...j}},...v,classes:v?Tt(z,v.classes):z,...b?b.props.inputProps:{}},...(C&&O||d)&&$==="outlined"?{notched:!0}:{},ref:W,className:re(V.props.className,l,M.root),...!b&&{variant:$},...I})})});process.env.NODE_ENV!=="production"&&(ca.propTypes={autoWidth:t.bool,children:t.node,classes:t.object,className:t.string,defaultOpen:t.bool,defaultValue:t.any,displayEmpty:t.bool,IconComponent:t.elementType,id:t.string,input:t.element,inputProps:t.object,label:t.node,labelId:t.string,MenuProps:t.object,multiple:t.bool,native:t.bool,onChange:t.func,onClose:t.func,onOpen:t.func,open:t.bool,renderValue:t.func,SelectDisplayProps:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:t.oneOfType([t.oneOf([""]),t.any]),variant:t.oneOf(["filled","outlined","standard"])});ca.muiName="Select";function d0(e){return xe("MuiTextField",e)}Ce("MuiTextField",["root"]);const p0={standard:aa,filled:ia,outlined:sa},u0=e=>{const{classes:o}=e;return we({root:["root"]},d0,o)},f0=D(la,{name:"MuiTextField",slot:"Root"})({}),gn=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiTextField"}),{autoComplete:a,autoFocus:i=!1,children:s,className:l,color:c="primary",defaultValue:d,disabled:p=!1,error:g=!1,FormHelperTextProps:b,fullWidth:v=!1,helperText:h,id:f,InputLabelProps:y,inputProps:C,InputProps:O,inputRef:S,label:x,maxRows:T,minRows:E,multiline:j=!1,name:P,onBlur:I,onChange:N,onFocus:A,placeholder:m,required:$=!1,rows:R,select:M=!1,SelectProps:k,slots:z={},slotProps:V={},type:W,value:B,variant:L="outlined",...Y}=r,Z={...r,autoFocus:i,color:c,disabled:p,error:g,fullWidth:v,multiline:j,required:$,select:M,variant:L},oe=u0(Z);process.env.NODE_ENV!=="production"&&M&&!s&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const K=uo(f),U=h&&K?`${K}-helper-text`:void 0,ae=x&&K?`${K}-label`:void 0,ce=p0[L],J={slots:z,slotProps:{input:O,inputLabel:y,htmlInput:C,formHelperText:b,select:k,...V}},X={},de=J.slotProps.inputLabel;L==="outlined"&&(de&&typeof de.shrink<"u"&&(X.notched=de.shrink),X.label=x),M&&((!k||!k.native)&&(X.id=void 0),X["aria-describedby"]=void 0);const[_,se]=ge("root",{elementType:f0,shouldForwardComponentProp:!0,externalForwardedProps:{...J,...Y},ownerState:Z,className:re(oe.root,l),ref:n,additionalProps:{disabled:p,error:g,fullWidth:v,required:$,color:c,variant:L}}),[ie,pe]=ge("input",{elementType:ce,externalForwardedProps:J,additionalProps:X,ownerState:Z}),[ke,Ee]=ge("inputLabel",{elementType:_i,externalForwardedProps:J,ownerState:Z}),[ee,De]=ge("htmlInput",{elementType:"input",externalForwardedProps:J,ownerState:Z}),[Se,he]=ge("formHelperText",{elementType:Wi,externalForwardedProps:J,ownerState:Z}),[ne,ze]=ge("select",{elementType:ca,externalForwardedProps:J,ownerState:Z}),Me=u.jsx(ie,{"aria-describedby":U,autoComplete:a,autoFocus:i,defaultValue:d,fullWidth:v,multiline:j,name:P,rows:R,maxRows:T,minRows:E,type:W,value:B,id:K,inputRef:S,onBlur:I,onChange:N,onFocus:A,placeholder:m,inputProps:De,slots:{input:z.htmlInput?ee:void 0},...pe});return u.jsxs(_,{...se,children:[x!=null&&x!==""&&u.jsx(ke,{htmlFor:K,id:ae,...Ee,children:x}),M?u.jsx(ne,{"aria-describedby":U,id:K,labelId:ae,value:B,input:Me,...ze,children:s}):Me,h&&u.jsx(Se,{id:U,...he,children:h})]})});process.env.NODE_ENV!=="production"&&(gn.propTypes={autoComplete:t.string,autoFocus:t.bool,children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["primary","secondary","error","info","success","warning"]),t.string]),defaultValue:t.any,disabled:t.bool,error:t.bool,FormHelperTextProps:t.object,fullWidth:t.bool,helperText:t.node,id:t.string,InputLabelProps:t.object,inputProps:t.object,InputProps:t.object,inputRef:Pt,label:t.node,margin:t.oneOf(["dense","none","normal"]),maxRows:t.oneOfType([t.number,t.string]),minRows:t.oneOfType([t.number,t.string]),multiline:t.bool,name:t.string,onBlur:t.func,onChange:t.func,onFocus:t.func,placeholder:t.string,required:t.bool,rows:t.oneOfType([t.number,t.string]),select:t.bool,SelectProps:t.object,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),slotProps:t.shape({formHelperText:t.oneOfType([t.func,t.object]),htmlInput:t.oneOfType([t.func,t.object]),input:t.oneOfType([t.func,t.object]),inputLabel:t.oneOfType([t.func,t.object]),select:t.oneOfType([t.func,t.object])}),slots:t.shape({formHelperText:t.elementType,htmlInput:t.elementType,input:t.elementType,inputLabel:t.elementType,root:t.elementType,select:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),type:t.string,value:t.any,variant:t.oneOf(["filled","outlined","standard"])});const Cd=st(u.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),m0=D(gn)(({theme:e,errorEstado:o})=>({"& .MuiOutlinedInput-root":{borderRadius:"12px",transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.03):e.palette.common.white,paddingRight:"30px","& fieldset":{borderColor:o?e.palette.error.main:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.2):e.palette.grey[300],borderWidth:"1px",transition:"border-color 0.2s ease"},"&:hover fieldset":{borderColor:o?e.palette.error.dark:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.4):e.palette.grey[400]},"&.Mui-focused":{backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.05):e.palette.common.white,boxShadow:o?`0 0 0 4px ${le.alpha(e.palette.error.main,.1)}`:e.palette.mode==="dark"?`0 4px 12px 0 ${le.alpha(e.palette.common.black,.4)}`:`0 4px 12px 0 ${le.alpha(e.palette.primary.main,.1)}`},"&.Mui-focused fieldset":{borderWidth:"2px",borderColor:o?e.palette.error.main:e.palette.primary.main}},"& .MuiInputLabel-root":{color:o?e.palette.error.main:e.palette.text.secondary,"&.Mui-focused":{color:o?e.palette.error.main:e.palette.primary.main,fontWeight:600}}}));function wd({opciones:e,valor:o,alCambiar:n,etiqueta:r,textoAyuda:a,marcador:i,error:s,mensajeError:l,requerido:c,cargando:d,deshabilitado:p,soloLectura:g,limpiable:b=!0,multiple:v,propsEntrada:h,renderizarEntrada:f,...y}){const C=s&&l?l:a,O=S=>u.jsx(m0,{...S,label:r,placeholder:e.length===0&&!d?"No hay opciones":i,helperText:C,error:s,required:c,errorEstado:s,InputProps:{...S.InputProps,...h?.InputProps,endAdornment:u.jsxs(Re.Fragment,{children:[d?u.jsx(xo,{color:"inherit",size:20,sx:{marginRight:1}}):null,S.InputProps.endAdornment]})},...h});return u.jsx(ad,{options:e,value:o,onChange:n,loading:d,disabled:p,readOnly:g,disableClearable:!b,multiple:v,popupIcon:u.jsx(Cd,{}),renderInput:f||O,PaperComponent:S=>u.jsx(Oo,{...S,elevation:8,sx:{borderRadius:"16px",marginTop:"8px",border:x=>`1px solid ${x.palette.mode==="dark"?le.alpha(x.palette.common.white,.1):le.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=>le.alpha(x.palette.primary.main,x.palette.mode==="dark"?.2:.1),color:"primary.main",fontWeight:600,"&.Mui-focused":{backgroundColor:x=>le.alpha(x.palette.primary.main,x.palette.mode==="dark"?.3:.2)}},"&:hover":{backgroundColor:x=>x.palette.mode==="dark"?le.alpha(x.palette.common.white,.05):le.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,E)=>{const j=y.getOptionLabel?y.getOptionLabel(T):typeof T=="string"?T:T.label||JSON.stringify(T);return u.jsx(Qr,{label:j,...x({index:E}),size:"small",sx:{borderRadius:"8px",backgroundColor:P=>le.alpha(P.palette.primary.main,.1),color:"primary.main",fontWeight:500,border:"1px solid",borderColor:P=>le.alpha(P.palette.primary.main,.2),"& .MuiChip-deleteIcon":{color:"primary.main","&:hover":{color:"primary.dark"}}}})}),...y})}const g0=wd;function h0(e){return w.Children.toArray(e).filter(o=>w.isValidElement(o))}function b0(e){return xe("MuiButtonGroup",e)}const Le=Ce("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"]),y0=(e,o)=>{const{ownerState:n}=e;return[{[`& .${Le.grouped}`]:o.grouped},{[`& .${Le.grouped}`]:o[`grouped${F(n.orientation)}`]},{[`& .${Le.grouped}`]:o[`grouped${F(n.variant)}`]},{[`& .${Le.grouped}`]:o[`grouped${F(n.variant)}${F(n.orientation)}`]},{[`& .${Le.grouped}`]:o[`grouped${F(n.variant)}${F(n.color)}`]},{[`& .${Le.firstButton}`]:o.firstButton},{[`& .${Le.lastButton}`]:o.lastButton},{[`& .${Le.middleButton}`]:o.middleButton},o.root,o[n.variant],n.disableElevation===!0&&o.disableElevation,n.fullWidth&&o.fullWidth,n.orientation==="vertical"&&o.vertical]},v0=e=>{const{classes:o,color:n,disabled:r,disableElevation:a,fullWidth:i,orientation:s,variant:l}=e,c={root:["root",l,s,i&&"fullWidth",a&&"disableElevation",`color${F(n)}`],grouped:["grouped",`grouped${F(s)}`,`grouped${F(l)}`,`grouped${F(l)}${F(s)}`,`grouped${F(l)}${F(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return we(c,b0,o)},x0=D("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:y0})(me(({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",[`& .${Le.lastButton},& .${Le.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Le.lastButton},& .${Le.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.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)"}`,[`&.${Le.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Le.firstButton},& .${Le.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)"}`,[`&.${Le.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(qe()).flatMap(([o])=>[{props:{variant:"text",color:o},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderColor:e.alpha((e.vars||e).palette[o].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Le.lastButton},& .${Le.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Le.lastButton},& .${Le.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Le.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Le.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(qe(["dark"])).map(([o])=>({props:{variant:"contained",color:o},style:{[`& .${Le.firstButton},& .${Le.middleButton}`]:{borderColor:(e.vars||e).palette[o].dark}}}))],[`& .${Le.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),Sd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiButtonGroup"}),{children:a,className:i,color:s="primary",component:l="div",disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,disableRipple:g=!1,fullWidth:b=!1,orientation:v="horizontal",size:h="medium",variant:f="outlined",...y}=r,C={...r,color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:p,disableRipple:g,fullWidth:b,orientation:v,size:h,variant:f},O=v0(C),S=w.useMemo(()=>({className:O.grouped,color:s,disabled:c,disableElevation:d,disableFocusRipple:p,disableRipple:g,fullWidth:b,size:h,variant:f}),[s,c,d,p,g,b,h,f,O.grouped]),x=h0(a),T=x.length,E=j=>{const P=j===0,I=j===T-1;return P&&I?"":P?O.firstButton:I?O.lastButton:O.middleButton};return u.jsx(x0,{as:l,role:"group",className:re(O.root,i),ref:n,ownerState:C,...y,children:u.jsx(vi.Provider,{value:S,children:x.map((j,P)=>u.jsx(xi.Provider,{value:E(P),children:j},P))})})});process.env.NODE_ENV!=="production"&&(Sd.propTypes={children:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["inherit","primary","secondary","error","info","success","warning"]),t.string]),component:t.elementType,disabled:t.bool,disableElevation:t.bool,disableFocusRipple:t.bool,disableRipple:t.bool,fullWidth:t.bool,orientation:t.oneOf(["horizontal","vertical"]),size:t.oneOfType([t.oneOf(["small","medium","large"]),t.string]),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOfType([t.oneOf(["contained","outlined","text"]),t.string])});const C0=D(Sd,{shouldForwardProp:e=>e!=="separado"&&e!=="radio"&&e!=="varianteCustom"})(({theme:e,separado:o,radio:n,varianteCustom:r})=>({boxShadow:o?"none":e.shadows[2],borderRadius:n||(o?0:12),backgroundColor:r==="cristal"?e.palette.mode==="dark"?le.alpha(e.palette.common.white,.05):le.alpha(e.palette.common.white,.6):"transparent",backdropFilter:r==="cristal"?"blur(8px)":"none",border:r==="cristal"?`1px solid ${e.palette.mode==="dark"?le.alpha(e.palette.common.white,.1):le.alpha(e.palette.common.white,.4)}`:"none",...o&&{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:o?n||8:void 0}})),w0=({children:e,tamano:o="m",variante:n="contenido",color:r="primario",orientacion:a="horizontal",separado:i=!1,radio:s,...l})=>{const c=g=>g==="contenido"?"contained":g==="texto"?"text":g==="contorno"?"outlined":g==="cristal"?"text":"contained",d=g=>g==="primario"?"primary":g==="secundario"?"secondary":g==="exito"?"success":g==="error"?"error":g==="info"?"info":g==="advertencia"?"warning":g==="oscuro"||g==="claro"?"inherit":"primary",p=g=>g==="p"?"small":g==="m"?"medium":g==="g"?"large":"medium";return u.jsx(C0,{size:p(o),variant:c(n),color:d(r),orientation:a,separado:i,radio:s,varianteCustom:n,...l,children:e})};function S0(e){return xe("PrivateSwitchBase",e)}Ce("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const T0=e=>{const{classes:o,checked:n,disabled:r,edge:a}=e,i={root:["root",n&&"checked",r&&"disabled",a&&`edge${F(a)}`],input:["input"]};return we(i,S0,o)},O0=D(lo,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:o})=>e==="start"&&o.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:o})=>e==="end"&&o.size!=="small",style:{marginRight:-12}}]}),E0=D("input",{name:"MuiSwitchBase",shouldForwardProp:Ct})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),da=w.forwardRef(function(o,n){const{autoFocus:r,checked:a,checkedIcon:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:p,id:g,inputProps:b,inputRef:v,name:h,onBlur:f,onChange:y,onFocus:C,readOnly:O,required:S=!1,tabIndex:x,type:T,value:E,slots:j={},slotProps:P={},...I}=o,[N,A]=Qt({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),m=Yt(),$=K=>{C&&C(K),m&&m.onFocus&&m.onFocus(K)},R=K=>{f&&f(K),m&&m.onBlur&&m.onBlur(K)},M=K=>{if(K.nativeEvent.defaultPrevented)return;const U=K.target.checked;A(U),y&&y(K,U)};let k=l;m&&typeof k>"u"&&(k=m.disabled);const z=T==="checkbox"||T==="radio",V={...o,checked:N,disabled:k,disableFocusRipple:c,edge:d},W=T0(V),B={slots:j,slotProps:{input:b,...P}},[L,Y]=ge("root",{ref:n,elementType:O0,className:W.root,shouldForwardComponentProp:!0,externalForwardedProps:{...B,component:"span",...I},getSlotProps:K=>({...K,onFocus:U=>{K.onFocus?.(U),$(U)},onBlur:U=>{K.onBlur?.(U),R(U)}}),ownerState:V,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:k,role:void 0,tabIndex:null}}),[Z,oe]=ge("input",{ref:v,elementType:E0,className:W.input,externalForwardedProps:B,getSlotProps:K=>({...K,onChange:U=>{K.onChange?.(U),M(U)}}),ownerState:V,additionalProps:{autoFocus:r,checked:a,defaultChecked:s,disabled:k,id:z?g:void 0,name:h,readOnly:O,required:S,tabIndex:x,type:T,...T==="checkbox"&&E===void 0?{}:{value:E}}});return u.jsxs(L,{...Y,children:[u.jsx(Z,{...oe}),N?i:p]})});process.env.NODE_ENV!=="production"&&(da.propTypes={autoFocus:t.bool,checked:t.bool,checkedIcon:t.node.isRequired,classes:t.object,className:t.string,defaultChecked:t.bool,disabled:t.bool,disableFocusRipple:t.bool,edge:t.oneOf(["end","start",!1]),icon:t.node.isRequired,id:t.string,inputProps:t.object,inputRef:Pt,name:t.string,onBlur:t.func,onChange:t.func,onFocus:t.func,readOnly:t.bool,required:t.bool,slotProps:t.shape({input:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({input:t.elementType,root:t.elementType}),sx:t.object,tabIndex:t.oneOfType([t.number,t.string]),type:t.string.isRequired,value:t.any});const k0=st(u.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"),P0=st(u.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"),R0=st(u.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 I0(e){return xe("MuiCheckbox",e)}const La=Ce("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),$0=e=>{const{classes:o,indeterminate:n,color:r,size:a}=e,i={root:["root",n&&"indeterminate",`color${F(r)}`,`size${F(a)}`]},s=we(i,I0,o);return{...o,...s}},j0=D(da,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.indeterminate&&o.indeterminate,o[`size${F(n.size)}`],n.color!=="default"&&o[`color${F(n.color)}`]]}})(me(({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(qe()).map(([o])=>({props:{color:o,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{[`&.${La.checked}, &.${La.indeterminate}`]:{color:(e.vars||e).palette[o].main},[`&.${La.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),M0=u.jsx(P0,{}),N0=u.jsx(k0,{}),A0=u.jsx(R0,{}),Mr=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiCheckbox"}),{checkedIcon:a=M0,color:i="primary",icon:s=N0,indeterminate:l=!1,indeterminateIcon:c=A0,inputProps:d,size:p="medium",disableRipple:g=!1,className:b,slots:v={},slotProps:h={},...f}=r,y=l?c:s,C=l?c:a,O={...r,disableRipple:g,color:i,indeterminate:l,size:p},S=$0(O),x=h.input??d,[T,E]=ge("root",{ref:n,elementType:j0,className:re(S.root,b),shouldForwardComponentProp:!0,externalForwardedProps:{slots:v,slotProps:h,...f},ownerState:O,additionalProps:{type:"checkbox",icon:w.cloneElement(y,{fontSize:y.props.fontSize??p}),checkedIcon:w.cloneElement(C,{fontSize:C.props.fontSize??p}),disableRipple:g,slots:v,slotProps:{input:ac(typeof x=="function"?x(O):x,{"data-indeterminate":l})}}});return u.jsx(T,{...E,classes:S})});process.env.NODE_ENV!=="production"&&(Mr.propTypes={checked:t.bool,checkedIcon:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["default","primary","secondary","error","info","success","warning"]),t.string]),defaultChecked:t.bool,disabled:t.bool,disableRipple:t.bool,icon:t.node,id:t.string,indeterminate:t.bool,indeterminateIcon:t.node,inputProps:t.object,onChange:t.func,required:t.bool,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),slotProps:t.shape({input:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({input:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:t.any});function L0(e){return xe("MuiFormControlLabel",e)}const Mn=Ce("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),B0=e=>{const{classes:o,disabled:n,labelPlacement:r,error:a,required:i}=e,s={root:["root",n&&"disabled",`labelPlacement${F(r)}`,a&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",a&&"error"]};return we(s,L0,o)},D0=D("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${Mn.label}`]:o.label},o.root,o[`labelPlacement${F(n.labelPlacement)}`]]}})(me(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Mn.disabled}`]:{cursor:"default"},[`& .${Mn.label}`]:{[`&.${Mn.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:o})=>o==="start"||o==="top"||o==="bottom",style:{marginLeft:16}}]}))),z0=D("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(me(({theme:e})=>({[`&.${Mn.error}`]:{color:(e.vars||e).palette.error.main}}))),pa=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiFormControlLabel"}),{checked:a,className:i,componentsProps:s={},control:l,disabled:c,disableTypography:d,inputRef:p,label:g,labelPlacement:b="end",name:v,onChange:h,required:f,slots:y={},slotProps:C={},value:O,...S}=r,x=Yt(),T=c??l.props.disabled??x?.disabled,E=f??l.props.required,j={disabled:T,required:E};["checked","name","onChange","value","inputRef"].forEach(M=>{typeof l.props[M]>"u"&&typeof r[M]<"u"&&(j[M]=r[M])});const P=ko({props:r,muiFormControl:x,states:["error"]}),I={...r,disabled:T,labelPlacement:b,required:E,error:P.error},N=B0(I),A={slots:y,slotProps:{...s,...C}},[m,$]=ge("typography",{elementType:nt,externalForwardedProps:A,ownerState:I});let R=g;return R!=null&&R.type!==nt&&!d&&(R=u.jsx(m,{component:"span",...$,className:re(N.label,$?.className),children:R})),u.jsxs(D0,{className:re(N.root,i),ownerState:I,ref:n,...S,children:[w.cloneElement(l,j),E?u.jsxs("div",{children:[R,u.jsxs(z0,{ownerState:I,"aria-hidden":!0,className:N.asterisk,children:[" ","*"]})]}):R]})});process.env.NODE_ENV!=="production"&&(pa.propTypes={checked:t.bool,classes:t.object,className:t.string,componentsProps:t.shape({typography:t.object}),control:t.element.isRequired,disabled:t.bool,disableTypography:t.bool,inputRef:Pt,label:t.node,labelPlacement:t.oneOf(["bottom","end","start","top"]),name:t.string,onChange:t.func,required:t.bool,slotProps:t.shape({typography:t.oneOfType([t.func,t.object])}),slots:t.shape({typography:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:t.any});function F0(e){return xe("MuiFormGroup",e)}Ce("MuiFormGroup",["root","row","error"]);const V0=e=>{const{classes:o,row:n,error:r}=e;return we({root:["root",n&&"row",r&&"error"]},F0,o)},_0=D("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.row&&o.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Gi=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiFormGroup"}),{className:a,row:i=!1,...s}=r,l=Yt(),c=ko({props:r,muiFormControl:l,states:["error"]}),d={...r,row:i,error:c.error},p=V0(d);return u.jsx(_0,{className:re(p.root,a),ownerState:d,ref:n,...s})});process.env.NODE_ENV!=="production"&&(Gi.propTypes={children:t.node,classes:t.object,className:t.string,row:t.bool,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});const Td=D("span")(({theme:e,tamanoPx:o,variante:n,error:r})=>({borderRadius:6,width:o,height:o,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:le.alpha(e.palette.error.main,.1)}})),Od=D(Td)(({theme:e,colorHex:o,variante:n})=>({backgroundColor:o,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))",boxShadow:`0 0 0 1px ${o}`,"&::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:o,filter:"brightness(95%)"}})),W0=D(Od)({"&::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")`}}),Ki=Re.forwardRef(({etiqueta:e,posicionEtiqueta:o="derecha",seleccionado:n,indeterminado:r=!1,deshabilitado:a=!1,soloLectura:i=!1,requerido:s=!1,error:l=!1,tamano:c="m",color:d="primario",variante:p="estandar",alCambiar:g,sx:b,className:v,...h},f)=>{const y=jt(),O={p:16,m:20,g:24}[c],x={primario:y.palette.primary.main,secundario:y.palette.secondary.main,exito:y.palette.success.main,error:y.palette.error.main,info:y.palette.info.main,advertencia:y.palette.warning.main}[d]||y.palette.primary.main,T={derecha:"end",izquierda:"start",arriba:"top",abajo:"bottom"},E=u.jsx(Mr,{ref:f,checked:n,indeterminate:r,disabled:a,readOnly:i,required:s,onChange:g,sx:{"&:hover":{bgcolor:"transparent"},p:1,...b},disableRipple:!0,icon:u.jsx(Td,{tamanoPx:O,variante:p,error:l}),checkedIcon:u.jsx(Od,{tamanoPx:O,variante:p,colorHex:l?y.palette.error.main:x}),indeterminateIcon:u.jsx(W0,{tamanoPx:O,variante:p,colorHex:l?y.palette.error.main:x}),inputProps:{"aria-label":typeof e=="string"?e:"Casilla"},...h});return e?u.jsx(pa,{control:E,label:u.jsxs(nt,{variant:"body2",sx:{fontSize:c==="g"?"1rem":c==="p"?"0.8125rem":"0.875rem",color:a?"text.disabled":l?"error.main":"text.primary",fontWeight:500},children:[e," ",s&&u.jsx("span",{style:{color:y.palette.error.main},children:"*"})]}),labelPlacement:T[o],disabled:a,className:v,sx:{mx:0,gap:1,"&.MuiFormControlLabel-labelPlacementStart":{marginLeft:0,marginRight:0}}}):u.jsx("span",{className:v,children:E})});Ki.displayName="CodeplexCasilla";const U0=Ki;function H0(e){return xe("MuiInputAdornment",e)}const El=Ce("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var kl;const q0=(e,o)=>{const{ownerState:n}=e;return[o.root,o[`position${F(n.position)}`],n.disablePointerEvents===!0&&o.disablePointerEvents,o[n.variant]]},G0=e=>{const{classes:o,disablePointerEvents:n,hiddenLabel:r,position:a,size:i,variant:s}=e,l={root:["root",n&&"disablePointerEvents",a&&`position${F(a)}`,s,r&&"hiddenLabel",i&&`size${F(i)}`]};return we(l,H0,o)},K0=D("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:q0})(me(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${El.positionStart}&:not(.${El.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),zo=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiInputAdornment"}),{children:a,className:i,component:s="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:d,variant:p,...g}=r,b=Yt()||{};let v=p;p&&b.variant&&process.env.NODE_ENV!=="production"&&p===b.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),b&&!v&&(v=b.variant);const h={...r,hiddenLabel:b.hiddenLabel,size:b.size,disablePointerEvents:l,position:d,variant:v},f=G0(h);return u.jsx(er.Provider,{value:null,children:u.jsx(K0,{as:s,ownerState:h,className:re(f.root,i),ref:n,...g,children:typeof a=="string"&&!c?u.jsx(nt,{color:"textSecondary",children:a}):u.jsxs(w.Fragment,{children:[d==="start"?kl||(kl=u.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,a]})})})});process.env.NODE_ENV!=="production"&&(zo.propTypes={children:t.node,classes:t.object,className:t.string,component:t.elementType,disablePointerEvents:t.bool,disableTypography:t.bool,position:t.oneOf(["end","start"]).isRequired,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),variant:t.oneOf(["filled","outlined","standard"])});const Y0=st(u.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),X0=st(u.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),Z0=D(gn)(({theme:e,errorEstado:o})=>({"& .MuiOutlinedInput-root":{borderRadius:12,backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.03):le.alpha(e.palette.common.black,.01),transition:"all 0.2s cubic-bezier(0.4, 0, 0.2, 1)","& fieldset":{borderColor:o?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"?le.alpha(e.palette.common.white,.05):le.alpha(e.palette.common.black,.02)},"&:hover fieldset":{borderColor:o?e.palette.error.dark:e.palette.primary.main},"&.Mui-focused fieldset":{borderColor:o?e.palette.error.main:e.palette.primary.main,borderWidth:2,boxShadow:o?`0 0 0 4px ${le.alpha(e.palette.error.main,.1)}`:`0 0 0 4px ${le.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:le.alpha(e.palette.primary.main,.1)},"&.Mui-disabled":{opacity:.2}},"&:hover .MuiInputAdornment-root .MuiIconButton-root":{opacity:.7}},"& .MuiInputLabel-root":{color:o?e.palette.error.main:e.palette.text.secondary,"&.Mui-focused":{color:o?e.palette.error.main:e.palette.primary.main,fontWeight:600}}})),Ed=({etiqueta:e,textoAyuda:o,minimo:n,maximo:r,paso:a=1,valor:i,valorPorDefecto:s,alineacion:l="centro",mostrarControles:c=!0,error:d,mensajeError:p,deshabilitado:g,soloLectura:b,anchoCompleto:v=!1,alCambiar:h,InputProps:f,...y})=>{const C=i!==void 0,[O,S]=Re.useState(C?i?.toString()??"":s?.toString()??"");Re.useEffect(()=>{C&&S(i?.toString()??"")},[i,C]);const x=O,T=A=>{if(A===""||A==="-"){S(A),A===""&&!C&&h?.(null);return}const m=parseFloat(A);isNaN(m)||(C||S(A),h?.(m))},E=()=>{let A=parseFloat(O);if(isNaN(A))return void 0;let m=A;typeof n=="number"&&A<n&&(m=n),typeof r=="number"&&A>r&&(m=r),m!==A&&(C||S(m.toString()),h?.(m))},j=()=>{let m=parseFloat(x||"0")+a;m=Math.round(m*1e4)/1e4,!(r!==void 0&&m>r)&&(C||S(m.toString()),h?.(m))},P=()=>{let m=parseFloat(x||"0")-a;m=Math.round(m*1e4)/1e4,!(n!==void 0&&m<n)&&(C||S(m.toString()),h?.(m))},I={izquierda:"left",centro:"center",derecha:"right"},N=d&&p?p:o;return u.jsx(Z0,{type:"number",label:e,value:x,onChange:A=>T(A.target.value),onBlur:E,disabled:g,error:d,helperText:N,fullWidth:v,errorEstado:d,InputProps:{readOnly:b,startAdornment:c?u.jsx(zo,{position:"start",children:u.jsx(an,{onClick:P,disabled:g||b||n!==void 0&&parseFloat(x||"0")<=n,edge:"start",size:"small",children:u.jsx(X0,{fontSize:"small"})})}):null,endAdornment:c?u.jsx(zo,{position:"end",children:u.jsx(an,{onClick:j,disabled:g||b||r!==void 0&&parseFloat(x||"0")>=r,edge:"end",size:"small",children:u.jsx(Y0,{fontSize:"small"})})}):null,sx:{"& input":{textAlign:I[l]||"center"},paddingRight:c?void 0:"14px"},...f},...y})},J0=Ed,Q0=st(u.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"),ex=st(u.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"),tx=D("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Ct})({position:"relative",display:"flex"}),ox=D(Q0,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),nx=D(ex,{name:"MuiRadioButtonIcon"})(me(({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 Yi(e){const{checked:o=!1,classes:n={},fontSize:r}=e,a={...e,checked:o};return u.jsxs(tx,{className:n.root,ownerState:a,children:[u.jsx(ox,{fontSize:r,className:n.background,ownerState:a}),u.jsx(nx,{fontSize:r,className:n.dot,ownerState:a})]})}process.env.NODE_ENV!=="production"&&(Yi.propTypes={checked:t.bool,classes:t.object,fontSize:t.oneOf(["small","medium"])});const Xi=w.createContext(void 0);process.env.NODE_ENV!=="production"&&(Xi.displayName="RadioGroupContext");function rx(){return w.useContext(Xi)}function ax(e){return xe("MuiRadio",e)}const Pl=Ce("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ix=e=>{const{classes:o,color:n,size:r}=e,a={root:["root",`color${F(n)}`,r!=="medium"&&`size${F(r)}`]};return{...o,...we(a,ax,o)}},sx=D(da,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.size!=="medium"&&o[`size${F(n.size)}`],o[`color${F(n.color)}`]]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Pl.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(qe()).map(([o])=>({props:{color:o,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o,disabled:!1},style:{[`&.${Pl.checked}`]:{color:(e.vars||e).palette[o].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function lx(e,o){return typeof o=="object"&&o!==null?e===o:String(e)===String(o)}const cx=u.jsx(Yi,{checked:!0}),dx=u.jsx(Yi,{}),kd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiRadio"}),{checked:a,checkedIcon:i=cx,color:s="primary",icon:l=dx,name:c,onChange:d,size:p="medium",className:g,disabled:b,disableRipple:v=!1,slots:h={},slotProps:f={},inputProps:y,...C}=r,O=Yt();let S=b;O&&typeof S>"u"&&(S=O.disabled),S??=!1;const x={...r,disabled:S,disableRipple:v,color:s,size:p},T=ix(x),E=rx();let j=a;const P=Da(d,E&&E.onChange);let I=c;E&&(typeof j>"u"&&(j=lx(E.value,r.value)),typeof I>"u"&&(I=E.name));const N=f.input??y,[A,m]=ge("root",{ref:n,elementType:sx,className:re(T.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:f,...C},getSlotProps:$=>({...$,onChange:(R,...M)=>{$.onChange?.(R,...M),P(R,...M)}}),ownerState:x,additionalProps:{type:"radio",icon:w.cloneElement(l,{fontSize:l.props.fontSize??p}),checkedIcon:w.cloneElement(i,{fontSize:i.props.fontSize??p}),disabled:S,name:I,checked:j,slots:h,slotProps:{input:typeof N=="function"?N(x):N}}});return u.jsx(A,{...m,classes:T})});process.env.NODE_ENV!=="production"&&(kd.propTypes={checked:t.bool,checkedIcon:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["default","primary","secondary","error","info","success","warning"]),t.string]),disabled:t.bool,disableRipple:t.bool,icon:t.node,id:t.string,inputProps:t.object,inputRef:Pt,name:t.string,onChange:t.func,required:t.bool,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),slotProps:t.shape({input:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object])}),slots:t.shape({input:t.elementType,root:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:t.any});function px(e){return xe("MuiRadioGroup",e)}Ce("MuiRadioGroup",["root","row","error"]);const ux=e=>{const{classes:o,row:n,error:r}=e;return we({root:["root",n&&"row",r&&"error"]},px,o)},Pd=w.forwardRef(function(o,n){const{actions:r,children:a,className:i,defaultValue:s,name:l,onChange:c,value:d,...p}=o,g=w.useRef(null),b=ux(o),[v,h]=Qt({controlled:d,default:s,name:"RadioGroup"});w.useImperativeHandle(r,()=>({focus:()=>{let O=g.current.querySelector("input:not(:disabled):checked");O||(O=g.current.querySelector("input:not(:disabled)")),O&&O.focus()}}),[]);const f=ot(n,g),y=uo(l),C=w.useMemo(()=>({name:y,onChange(O){h(O.target.value),c&&c(O,O.target.value)},value:v}),[y,c,h,v]);return u.jsx(Xi.Provider,{value:C,children:u.jsx(Gi,{role:"radiogroup",ref:f,className:re(b.root,i),...p,children:a})})});process.env.NODE_ENV!=="production"&&(Pd.propTypes={children:t.node,className:t.string,defaultValue:t.any,name:t.string,onChange:t.func,value:t.any});const Rd=D("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)"}})),fx=D(Rd)({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"}}),Zi=Re.forwardRef(({etiqueta:e,posicionEtiqueta:o,sx:n,...r},a)=>{const i=u.jsx(kd,{ref:a,sx:{"&:hover":{bgcolor:"transparent"},...n},disableRipple:!0,color:"default",checkedIcon:u.jsx(fx,{}),icon:u.jsx(Rd,{}),...r});return e?u.jsx(pa,{control:i,label:e,labelPlacement:o,sx:{"& .MuiFormControlLabel-label":{fontSize:"0.95rem",fontWeight:500,userSelect:"none"}}}):i});Zi.displayName="CodeplexRadio";const Id=({etiqueta:e,opciones:o,orientacion:n="vertical",valor:r,alCambiar:a,color:i,error:s,mensajeError:l,children:c,...d})=>{const p=o?o.map(b=>({value:b.valor,label:b.etiqueta,disabled:b.deshabilitado})):null,g=u.jsx(Pd,{row:n==="horizontal",value:r,onChange:a,...d,children:p?p.map(b=>u.jsx(Zi,{value:b.value,etiqueta:b.label,disabled:b.disabled},b.value)):c});return e||s?u.jsxs(la,{component:"fieldset",error:s,children:[e&&u.jsx($r,{component:"legend",className:"mb-2 font-semibold",sx:{"&.Mui-focused":{color:s?"error.main":"primary.main"}},children:e}),g,s&&l&&u.jsx($r,{error:!0,sx:{fontSize:"0.75rem",marginTop:.5},children:l})]}):g},mx=Id;function gx(e){return xe("MuiDivider",e)}const Rl=Ce("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),hx=e=>{const{absolute:o,children:n,classes:r,flexItem:a,light:i,orientation:s,textAlign:l,variant:c}=e;return we({root:["root",o&&"absolute",c,i&&"light",s==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},gx,r)},bx=D("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.absolute&&o.absolute,o[n.variant],n.light&&o.light,n.orientation==="vertical"&&o.vertical,n.flexItem&&o.flexItem,n.children&&o.withChildren,n.children&&n.orientation==="vertical"&&o.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&o.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&o.textAlignLeft]}})(me(({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:o})=>!!o.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:o})=>o.children&&o.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:o})=>o.orientation==="vertical"&&o.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:o})=>o.textAlign==="right"&&o.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:o})=>o.textAlign==="left"&&o.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),yx=D("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.wrapper,n.orientation==="vertical"&&o.wrapperVertical]}})(me(({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)`}}]}))),Un=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiDivider"}),{absolute:a=!1,children:i,className:s,orientation:l="horizontal",component:c=i||l==="vertical"?"div":"hr",flexItem:d=!1,light:p=!1,role:g=c!=="hr"?"separator":void 0,textAlign:b="center",variant:v="fullWidth",...h}=r,f={...r,absolute:a,component:c,flexItem:d,light:p,orientation:l,role:g,textAlign:b,variant:v},y=hx(f);return u.jsx(bx,{as:c,className:re(y.root,s),role:g,ref:n,ownerState:f,"aria-orientation":g==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...h,children:i?u.jsx(yx,{className:y.wrapper,ownerState:f,children:i}):null})});Un&&(Un.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Un.propTypes={absolute:t.bool,children:t.node,classes:t.object,className:t.string,component:t.elementType,flexItem:t.bool,light:t.bool,orientation:t.oneOf(["horizontal","vertical"]),role:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),textAlign:t.oneOf(["center","left","right"]),variant:t.oneOfType([t.oneOf(["fullWidth","inset","middle"]),t.string])});function vx(e){return xe("MuiListItemIcon",e)}const Il=Ce("MuiListItemIcon",["root","alignItemsFlexStart"]),xx=e=>{const{alignItems:o,classes:n}=e;return we({root:["root",o==="flex-start"&&"alignItemsFlexStart"]},vx,n)},Cx=D("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.alignItems==="flex-start"&&o.alignItemsFlexStart]}})(me(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),$d=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiListItemIcon"}),{className:a,...i}=r,s=w.useContext(_t),l={...r,alignItems:s.alignItems},c=xx(l);return u.jsx(Cx,{className:re(c.root,a),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&($d.propTypes={children:t.node,classes:t.object,className:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function wx(e){return xe("MuiListItemText",e)}const tn=Ce("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Sx=e=>{const{classes:o,inset:n,primary:r,secondary:a,dense:i}=e;return we({root:["root",n&&"inset",i&&"dense",r&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},wx,o)},Tx=D("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[{[`& .${tn.primary}`]:o.primary},{[`& .${tn.secondary}`]:o.secondary},o.root,n.inset&&o.inset,n.primary&&n.secondary&&o.multiline,n.dense&&o.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Or.root}:where(& .${tn.primary})`]:{display:"block"},[`.${Or.root}:where(& .${tn.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),jd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiListItemText"}),{children:a,className:i,disableTypography:s=!1,inset:l=!1,primary:c,primaryTypographyProps:d,secondary:p,secondaryTypographyProps:g,slots:b={},slotProps:v={},...h}=r,{dense:f}=w.useContext(_t);let y=c??a,C=p;const O={...r,disableTypography:s,inset:l,primary:!!y,secondary:!!C,dense:f},S=Sx(O),x={slots:b,slotProps:{primary:d,secondary:g,...v}},[T,E]=ge("root",{className:re(S.root,i),elementType:Tx,externalForwardedProps:{...x,...h},ownerState:O,ref:n}),[j,P]=ge("primary",{className:S.primary,elementType:nt,externalForwardedProps:x,ownerState:O}),[I,N]=ge("secondary",{className:S.secondary,elementType:nt,externalForwardedProps:x,ownerState:O});return y!=null&&y.type!==nt&&!s&&(y=u.jsx(j,{variant:f?"body2":"body1",component:P?.variant?void 0:"span",...P,children:y})),C!=null&&C.type!==nt&&!s&&(C=u.jsx(I,{variant:"body2",color:"textSecondary",...N,children:C})),u.jsxs(T,{...E,children:[y,C]})});process.env.NODE_ENV!=="production"&&(jd.propTypes={children:t.node,classes:t.object,className:t.string,disableTypography:t.bool,inset:t.bool,primary:t.node,primaryTypographyProps:t.object,secondary:t.node,secondaryTypographyProps:t.object,slotProps:t.shape({primary:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),secondary:t.oneOfType([t.func,t.object])}),slots:t.shape({primary:t.elementType,root:t.elementType,secondary:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function Ox(e){return xe("MuiMenuItem",e)}const En=Ce("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ex=(e,o)=>{const{ownerState:n}=e;return[o.root,n.dense&&o.dense,n.divider&&o.divider,!n.disableGutters&&o.gutters]},kx=e=>{const{disabled:o,dense:n,divider:r,disableGutters:a,selected:i,classes:s}=e,c=we({root:["root",n&&"dense",o&&"disabled",!a&&"gutters",r&&"divider",i&&"selected"]},Ox,s);return{...s,...c}},Px=D(lo,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Ex})(me(({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"}},[`&.${En.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${En.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${En.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)}},[`&.${En.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${En.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Rl.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Rl.inset}`]:{marginLeft:52},[`& .${tn.root}`]:{marginTop:0,marginBottom:0},[`& .${tn.inset}`]:{paddingLeft:36},[`& .${Il.root}`]:{minWidth:36},variants:[{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:o})=>o.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:o})=>!o.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:o})=>o.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Il.root} svg`]:{fontSize:"1.25rem"}}}]}))),nn=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiMenuItem"}),{autoFocus:a=!1,component:i="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:d,role:p="menuitem",tabIndex:g,className:b,...v}=r,h=w.useContext(_t),f=w.useMemo(()=>({dense:s||h.dense||!1,disableGutters:c}),[h.dense,s,c]),y=w.useRef(null);Wt(()=>{a&&(y.current?y.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[a]);const C={...r,dense:f.dense,divider:l,disableGutters:c},O=kx(r),S=ot(y,n);let x;return r.disabled||(x=g!==void 0?g:-1),u.jsx(_t.Provider,{value:f,children:u.jsx(Px,{ref:S,role:p,tabIndex:x,component:i,focusVisibleClassName:re(O.focusVisible,d),className:re(O.root,b),...v,ownerState:C,classes:O})})});process.env.NODE_ENV!=="production"&&(nn.propTypes={autoFocus:t.bool,children:t.node,classes:t.object,className:t.string,component:t.elementType,dense:t.bool,disabled:t.bool,disableGutters:t.bool,divider:t.bool,focusVisibleClassName:t.string,role:t.string,selected:t.bool,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),tabIndex:t.number});const Md=st(u.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"),Rx=D(ca)(({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)"}`}})),Ix=D(nn)(({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"})),$x=D(fn)(({theme:e})=>({position:"sticky",top:0,zIndex:2,backgroundColor:e.palette.background.paper,padding:"12px 16px",borderBottom:`1px solid ${e.palette.divider}`,lineHeight:"initial"})),Nd=({value:e,onChange:o,size:n,multiple:r=!1,error:a,disabled:i,required:s,variant:l="outlined",displayEmpty:c,etiqueta:d,opciones:p,textoAyuda:g,marcador:b,renderizarValor:v,alCambiar:h,tamano:f,alCrearNuevo:y,textoCrearNuevo:C="Agregar opción...",mensajeError:O,buscable:S,children:x,sx:T,...E})=>{const j=jt(),P=h||o,I=f||n,[N,A]=Re.useState(""),m=Re.useMemo(()=>$(p),[p]);function $(L){return L?L.map(Y=>({value:Y.valor,label:Y.etiqueta,disabled:Y.deshabilitado})):[]}const R=Re.useMemo(()=>{if(!S||!N.trim())return m;const L=N.toLowerCase();return m.filter(Y=>String(Y.label).toLowerCase().includes(L))},[m,N,S]),M=L=>{if(P){const Z={target:{value:Array.isArray(e)?e.filter(oe=>oe!==L):[],name:E.name}};P(Z,null)}},k=e===""||e===null||Array.isArray(e)&&e.length===0,z=L=>{if(v)return v(L);if(r){const Y=Array.isArray(L)?L:[L];return m.length>0?u.jsx(Ue,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:Y.map(Z=>{const oe=m.find(K=>K.value===Z);return u.jsx(Qr,{label:oe?.label||Z,size:"small",onDelete:()=>M(Z),onMouseDown:K=>K.stopPropagation(),sx:{borderRadius:"8px",backgroundColor:K=>le.alpha(K.palette.primary.main,.1),color:j.palette.primary.main,fontWeight:500,border:"1px solid",borderColor:K=>le.alpha(K.palette.primary.main,.2),"& .MuiChip-deleteIcon":{color:j.palette.primary.main,"&:hover":{color:j.palette.primary.dark}}}},Z)})}):Y.join(", ")}return m.length>0?(L===""||L===null)&&b?u.jsx("span",{style:{color:j.palette.text.disabled},children:b}):m.find(Z=>Z.value===L)?.label||L:L},V=v||r||m.length>0,W=!k||!!b,B=a&&O?O:g;return u.jsxs(la,{fullWidth:!0,error:a,disabled:i,required:s,variant:l,sx:{minWidth:120,my:1,...T},children:[d&&u.jsx(_i,{id:`select-label-${d}`,shrink:W,children:d}),u.jsxs(Rx,{labelId:d?`select-label-${d}`:void 0,label:d,value:e,onChange:P,size:I,multiple:r,displayEmpty:!!b||c,renderValue:V?z:void 0,IconComponent:Cd,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:y?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}}}}}},...E,children:[S&&u.jsx($x,{children:u.jsx(gn,{size:"small",fullWidth:!0,placeholder:"Buscar...",value:N,onChange:L=>A(L.target.value),onKeyDown:L=>L.stopPropagation(),InputProps:{startAdornment:u.jsx(zo,{position:"start",children:u.jsx(Md,{fontSize:"small",color:"action"})})},sx:{"& .MuiOutlinedInput-root":{borderRadius:2,backgroundColor:j.palette.action.hover,"& fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"}}}})}),b&&u.jsx(nn,{value:"",disabled:!0,sx:{display:"none"},children:u.jsx("span",{style:{color:j.palette.text.disabled},children:b})}),R.length>0?R.map(L=>u.jsx(nn,{value:L.value,disabled:L.disabled,children:L.label},L.value)):S&&R.length===0&&N?u.jsx(nn,{disabled:!0,children:u.jsx("span",{style:{opacity:.7},children:"No hay resultados"})}):x,y&&u.jsxs(Ix,{onClick:L=>{L.stopPropagation(),y()},value:"",disableRipple:!0,children:["+ ",C]})]}),B&&u.jsx(Wi,{children:B})]})},jx=Nd;function Mx(e,o,n=(r,a)=>r===a){return e.length===o.length&&e.every((r,a)=>n(r,o[a]))}const Nx=2;function Zo(e,o,n,r,a){return n===1?Math.min(e+o,a):Math.max(e-o,r)}function Ad(e,o){return e-o}function $l(e,o){const{index:n}=e.reduce((r,a,i)=>{const s=Math.abs(o-a);return r===null||s<r.distance||s===r.distance?{distance:s,index:i}:r},null)??{};return n}function ur(e,o){if(o.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const a=n.changedTouches[r];if(a.identifier===o.current)return{x:a.clientX,y:a.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Nr(e,o,n){return(e-o)*100/(n-o)}function Ax(e,o,n){return(n-o)*e+o}function Lx(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 o=e.toString().split(".")[1];return o?o.length:0}function Bx(e,o,n){const r=Math.round((e-n)/o)*o+n;return Number(r.toFixed(Lx(o)))}function jl({values:e,newValue:o,index:n}){const r=e.slice();return r[n]=o,r.sort(Ad)}function fr({sliderRef:e,activeIndex:o,setActive:n}){const r=mt(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==o)&&e.current?.querySelector(`[type="range"][data-index="${o}"]`).focus(),n&&n(o)}function mr(e,o){return typeof e=="number"&&typeof o=="number"?e===o:typeof e=="object"&&typeof o=="object"?Mx(e,o):!1}const Dx={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}%`})}},zx=e=>e;let gr;function Ml(){return gr===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?gr=CSS.supports("touch-action","none"):gr=!0),gr}function Fx(e){const{"aria-labelledby":o,defaultValue:n,disabled:r=!1,disableSwap:a=!1,isRtl:i=!1,marks:s=!1,max:l=100,min:c=0,name:d,onChange:p,onChangeCommitted:g,orientation:b="horizontal",rootRef:v,scale:h=zx,step:f=1,shiftStep:y=10,tabIndex:C,value:O}=e,S=w.useRef(void 0),[x,T]=w.useState(-1),[E,j]=w.useState(-1),[P,I]=w.useState(!1),N=w.useRef(0),A=w.useRef(null),[m,$]=Qt({controlled:O,default:n??c,name:"Slider"}),R=p&&((te,Q,be)=>{const Oe=te.nativeEvent||te,Pe=new Oe.constructor(Oe.type,Oe);Object.defineProperty(Pe,"target",{writable:!0,value:{value:Q,name:d}}),A.current=Q,p(Pe,Q,be)}),M=Array.isArray(m);let k=M?m.slice().sort(Ad):[m];k=k.map(te=>te==null?c:jo(te,c,l));const z=s===!0&&f!==null?[...Array(Math.floor((l-c)/f)+1)].map((te,Q)=>({value:c+f*Q})):s||[],V=z.map(te=>te.value),[W,B]=w.useState(-1),L=w.useRef(null),Y=ot(v,L),Z=te=>Q=>{const be=Number(Q.currentTarget.getAttribute("data-index"));So(Q.target)&&B(be),j(be),te?.onFocus?.(Q)},oe=te=>Q=>{So(Q.target)||B(-1),j(-1),te?.onBlur?.(Q)},K=(te,Q)=>{const be=Number(te.currentTarget.getAttribute("data-index")),Oe=k[be],Pe=V.indexOf(Oe);let ve=Q;if(z&&f==null){const ue=V[V.length-1];ve>=ue?ve=ue:ve<=V[0]?ve=V[0]:ve=ve<Oe?V[Pe-1]:V[Pe+1]}if(ve=jo(ve,c,l),M){a&&(ve=jo(ve,k[be-1]||-1/0,k[be+1]||1/0));const ue=ve;ve=jl({values:k,newValue:ve,index:be});let Ve=be;a||(Ve=ve.indexOf(ue)),fr({sliderRef:L,activeIndex:Ve})}$(ve),B(be),R&&!mr(ve,m)&&R(te,ve,be),g&&g(te,A.current??ve)},U=te=>Q=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Q.key)){Q.preventDefault();const be=Number(Q.currentTarget.getAttribute("data-index")),Oe=k[be];let Pe=null;if(f!=null){const ve=Q.shiftKey?y:f;switch(Q.key){case"ArrowUp":Pe=Zo(Oe,ve,1,c,l);break;case"ArrowRight":Pe=Zo(Oe,ve,i?-1:1,c,l);break;case"ArrowDown":Pe=Zo(Oe,ve,-1,c,l);break;case"ArrowLeft":Pe=Zo(Oe,ve,i?1:-1,c,l);break;case"PageUp":Pe=Zo(Oe,y,1,c,l);break;case"PageDown":Pe=Zo(Oe,y,-1,c,l);break;case"Home":Pe=c;break;case"End":Pe=l;break}}else if(z){const ve=V[V.length-1],ue=V.indexOf(Oe),Ve=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Ne=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ve.includes(Q.key)?ue===0?Pe=V[0]:Pe=V[ue-1]:Ne.includes(Q.key)&&(ue===V.length-1?Pe=ve:Pe=V[ue+1])}Pe!=null&&K(Q,Pe)}te?.onKeyDown?.(Q)};Wt(()=>{r&&L.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&x!==-1&&T(-1),r&&W!==-1&&B(-1);const ae=te=>Q=>{te.onChange?.(Q),K(Q,Q.target.valueAsNumber)},ce=w.useRef(void 0);let J=b;i&&b==="horizontal"&&(J+="-reverse");const X=({finger:te,move:Q=!1})=>{const{current:be}=L,{width:Oe,height:Pe,bottom:ve,left:ue}=be.getBoundingClientRect();let Ve;J.startsWith("vertical")?Ve=(ve-te.y)/Pe:Ve=(te.x-ue)/Oe,J.includes("-reverse")&&(Ve=1-Ve);let Ne;if(Ne=Ax(Ve,c,l),f)Ne=Bx(Ne,f,c);else{const Ot=$l(V,Ne);Ne=V[Ot]}Ne=jo(Ne,c,l);let We=0;if(M){Q?We=ce.current:We=$l(k,Ne),a&&(Ne=jo(Ne,k[We-1]||-1/0,k[We+1]||1/0));const Ot=Ne;Ne=jl({values:k,newValue:Ne,index:We}),a&&Q||(We=Ne.indexOf(Ot),ce.current=We)}return{newValue:Ne,activeIndex:We}},de=bt(te=>{const Q=ur(te,S);if(!Q)return;if(N.current+=1,te.type==="mousemove"&&te.buttons===0){_(te);return}const{newValue:be,activeIndex:Oe}=X({finger:Q,move:!0});fr({sliderRef:L,activeIndex:Oe,setActive:T}),$(be),!P&&N.current>Nx&&I(!0),R&&!mr(be,m)&&R(te,be,Oe)}),_=bt(te=>{const Q=ur(te,S);if(I(!1),!Q)return;const{newValue:be}=X({finger:Q,move:!0});T(-1),te.type==="touchend"&&j(-1),g&&g(te,A.current??be),S.current=void 0,ie()}),se=bt(te=>{if(r)return;Ml()||te.preventDefault();const Q=te.changedTouches[0];Q!=null&&(S.current=Q.identifier);const be=ur(te,S);if(be!==!1){const{newValue:Pe,activeIndex:ve}=X({finger:be});fr({sliderRef:L,activeIndex:ve,setActive:T}),$(Pe),R&&!mr(Pe,m)&&R(te,Pe,ve)}N.current=0;const Oe=mt(L.current);Oe.addEventListener("touchmove",de,{passive:!0}),Oe.addEventListener("touchend",_,{passive:!0})}),ie=w.useCallback(()=>{const te=mt(L.current);te.removeEventListener("mousemove",de),te.removeEventListener("mouseup",_),te.removeEventListener("touchmove",de),te.removeEventListener("touchend",_)},[_,de]);w.useEffect(()=>{const{current:te}=L;return te.addEventListener("touchstart",se,{passive:Ml()}),()=>{te.removeEventListener("touchstart",se),ie()}},[ie,se]),w.useEffect(()=>{r&&ie()},[r,ie]);const pe=te=>Q=>{if(te.onMouseDown?.(Q),r||Q.defaultPrevented||Q.button!==0)return;Q.preventDefault();const be=ur(Q,S);if(be!==!1){const{newValue:Pe,activeIndex:ve}=X({finger:be});fr({sliderRef:L,activeIndex:ve,setActive:T}),$(Pe),R&&!mr(Pe,m)&&R(Q,Pe,ve)}N.current=0;const Oe=mt(L.current);Oe.addEventListener("mousemove",de,{passive:!0}),Oe.addEventListener("mouseup",_)},ke=Nr(M?k[0]:c,c,l),Ee=Nr(k[k.length-1],c,l)-ke,ee=(te={})=>{const Q=Lo(te),be={onMouseDown:pe(Q||{})},Oe={...Q,...be};return{...te,ref:Y,...Oe}},De=te=>Q=>{te.onMouseOver?.(Q);const be=Number(Q.currentTarget.getAttribute("data-index"));j(be)},Se=te=>Q=>{te.onMouseLeave?.(Q),j(-1)},he=(te={})=>{const Q=Lo(te),be={onMouseOver:De(Q||{}),onMouseLeave:Se(Q||{})};return{...te,...Q,...be}},ne=te=>({pointerEvents:x!==-1&&x!==te?"none":void 0});let ze;return b==="vertical"&&(ze=i?"vertical-rl":"vertical-lr"),{active:x,axis:J,axisProps:Dx,dragging:P,focusedThumbIndex:W,getHiddenInputProps:(te={})=>{const Q=Lo(te),be={onChange:ae(Q||{}),onFocus:Z(Q||{}),onBlur:oe(Q||{}),onKeyDown:U(Q||{})},Oe={...Q,...be};return{tabIndex:C,"aria-labelledby":o,"aria-orientation":b,"aria-valuemax":h(l),"aria-valuemin":h(c),name:d,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...te,...Oe,style:{...Xc,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:ze}}},getRootProps:ee,getThumbProps:he,marks:z,open:E,range:M,rootRef:Y,trackLeap:Ee,trackOffset:ke,values:k,getThumbStyle:ne}}const Vx=e=>!e||!eo(e);function _x(e){return xe("MuiSlider",e)}const Ft=Ce("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"]),Wx=e=>{const{open:o}=e;return{offset:re(o&&Ft.valueLabelOpen),circle:Ft.valueLabelCircle,label:Ft.valueLabelLabel}};function Ld(e){const{children:o,className:n,value:r}=e,a=Wx(e);return o?w.cloneElement(o,{className:o.props.className},u.jsxs(w.Fragment,{children:[o.props.children,u.jsx("span",{className:re(a.offset,n),"aria-hidden":!0,children:u.jsx("span",{className:a.circle,children:u.jsx("span",{className:a.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Ld.propTypes={children:t.element.isRequired,className:t.string,value:t.node});function Nl(e){return e}const Ux=D("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,o[`color${F(n.color)}`],n.size!=="medium"&&o[`size${F(n.size)}`],n.marked&&o.marked,n.orientation==="vertical"&&o.vertical,n.track==="inverted"&&o.trackInverted,n.track===!1&&o.trackFalse]}})(me(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Ft.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Ft.dragging}`]:{[`& .${Ft.thumb}, & .${Ft.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(qe()).map(([o])=>({props:{color:o},style:{color:(e.vars||e).palette[o].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}}]}))),Hx=D("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}}]}),qx=D("span",{name:"MuiSlider",slot:"Track"})(me(({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(qe()).map(([o])=>({props:{color:o,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${o}Track`],borderColor:e.vars.palette.Slider[`${o}Track`]}:{backgroundColor:e.lighten(e.palette[o].main,.62),borderColor:e.lighten(e.palette[o].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[o].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[o].main,.5)})}}}))]}))),Gx=D("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.thumb,o[`thumbColor${F(n.color)}`],n.size!=="medium"&&o[`thumbSize${F(n.size)}`]]}})(me(({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%)"},[`&.${Ft.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(qe()).map(([o])=>({props:{color:o},style:{[`&:hover, &.${Ft.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[o].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Ft.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[o].main,.16)}`}}}))]}))),Bd=D(Ld,{name:"MuiSlider",slot:"ValueLabel"})(me(({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%"},[`&.${Ft.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%"},[`&.${Ft.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"&&(Bd.propTypes={children:t.element.isRequired,index:t.number.isRequired,open:t.bool.isRequired,value:t.node});const Kx=D("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Kn(e)&&e!=="markActive",overridesResolver:(e,o)=>{const{markActive:n}=e;return[o.mark,n&&o.markActive]}})(me(({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}}]}))),Yx=D("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Kn(e)&&e!=="markLabelActive"})(me(({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}}]}))),Xx=e=>{const{disabled:o,dragging:n,marked:r,orientation:a,track:i,classes:s,color:l,size:c}=e,d={root:["root",o&&"disabled",n&&"dragging",r&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${F(l)}`,c&&`size${F(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",o&&"disabled",c&&`thumbSize${F(c)}`,l&&`thumbColor${F(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return we(d,_x,s)},Zx=({children:e})=>e,Dd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiSlider"}),a=mn(),{"aria-label":i,"aria-valuetext":s,"aria-labelledby":l,component:c="span",components:d={},componentsProps:p={},color:g="primary",classes:b,className:v,disableSwap:h=!1,disabled:f=!1,getAriaLabel:y,getAriaValueText:C,marks:O=!1,max:S=100,min:x=0,name:T,onChange:E,onChangeCommitted:j,orientation:P="horizontal",shiftStep:I=10,size:N="medium",step:A=1,scale:m=Nl,slotProps:$,slots:R,tabIndex:M,track:k="normal",value:z,valueLabelDisplay:V="off",valueLabelFormat:W=Nl,...B}=r,L={...r,isRtl:a,max:S,min:x,classes:b,disabled:f,disableSwap:h,orientation:P,marks:O,color:g,size:N,step:A,shiftStep:I,scale:m,track:k,valueLabelDisplay:V,valueLabelFormat:W},{axisProps:Y,getRootProps:Z,getHiddenInputProps:oe,getThumbProps:K,open:U,active:ae,axis:ce,focusedThumbIndex:J,range:X,dragging:de,marks:_,values:se,trackOffset:ie,trackLeap:pe,getThumbStyle:ke}=Fx({...L,rootRef:n});L.marked=_.length>0&&_.some(_e=>_e.label),L.dragging=de,L.focusedThumbIndex=J;const Ee=Xx(L),ee=R?.root??d.Root??Ux,De=R?.rail??d.Rail??Hx,Se=R?.track??d.Track??qx,he=R?.thumb??d.Thumb??Gx,ne=R?.valueLabel??d.ValueLabel??Bd,ze=R?.mark??d.Mark??Kx,Me=R?.markLabel??d.MarkLabel??Yx,te=R?.input??d.Input??"input",Q=$?.root??p.root,be=$?.rail??p.rail,Oe=$?.track??p.track,Pe=$?.thumb??p.thumb,ve=$?.valueLabel??p.valueLabel,ue=$?.mark??p.mark,Ve=$?.markLabel??p.markLabel,Ne=$?.input??p.input,We=Zt({elementType:ee,getSlotProps:Z,externalSlotProps:Q,externalForwardedProps:B,additionalProps:{...Vx(ee)&&{as:c}},ownerState:{...L,...Q?.ownerState},className:[Ee.root,v]}),Ot=Zt({elementType:De,externalSlotProps:be,ownerState:L,className:Ee.rail}),vt=Zt({elementType:Se,externalSlotProps:Oe,additionalProps:{style:{...Y[ce].offset(ie),...Y[ce].leap(pe)}},ownerState:{...L,...Oe?.ownerState},className:Ee.track}),ut=Zt({elementType:he,getSlotProps:K,externalSlotProps:Pe,ownerState:{...L,...Pe?.ownerState},className:Ee.thumb}),ye=Zt({elementType:ne,externalSlotProps:ve,ownerState:{...L,...ve?.ownerState},className:Ee.valueLabel}),Ae=Zt({elementType:ze,externalSlotProps:ue,ownerState:L,className:Ee.mark}),Xe=Zt({elementType:Me,externalSlotProps:Ve,ownerState:L,className:Ee.markLabel}),gt=Zt({elementType:te,getSlotProps:oe,externalSlotProps:Ne,ownerState:L});return u.jsxs(ee,{...We,children:[u.jsx(De,{...Ot}),u.jsx(Se,{...vt}),_.filter(_e=>_e.value>=x&&_e.value<=S).map((_e,tt)=>{const Et=Nr(_e.value,x,S),wt=Y[ce].offset(Et);let ft;return k===!1?ft=se.includes(_e.value):ft=k==="normal"&&(X?_e.value>=se[0]&&_e.value<=se[se.length-1]:_e.value<=se[0])||k==="inverted"&&(X?_e.value<=se[0]||_e.value>=se[se.length-1]:_e.value>=se[0]),u.jsxs(w.Fragment,{children:[u.jsx(ze,{"data-index":tt,...Ae,...!eo(ze)&&{markActive:ft},style:{...wt,...Ae.style},className:re(Ae.className,ft&&Ee.markActive)}),_e.label!=null?u.jsx(Me,{"aria-hidden":!0,"data-index":tt,...Xe,...!eo(Me)&&{markLabelActive:ft},style:{...wt,...Xe.style},className:re(Ee.markLabel,Xe.className,ft&&Ee.markLabelActive),children:_e.label}):null]},tt)}),se.map((_e,tt)=>{const Et=Nr(_e,x,S),wt=Y[ce].offset(Et),ft=V==="off"?Zx:ne;return u.jsx(ft,{...!eo(ft)&&{valueLabelFormat:W,valueLabelDisplay:V,value:typeof W=="function"?W(m(_e),tt):W,index:tt,open:U===tt||ae===tt||V==="on",disabled:f},...ye,children:u.jsx(he,{"data-index":tt,...ut,className:re(Ee.thumb,ut.className,ae===tt&&Ee.active,J===tt&&Ee.focusVisible),style:{...wt,...ke(tt),...ut.style},children:u.jsx(te,{"data-index":tt,"aria-label":y?y(tt):i,"aria-valuenow":m(_e),"aria-labelledby":l,"aria-valuetext":C?C(m(_e),tt):s,value:se[tt],...gt})})},tt)})]})});process.env.NODE_ENV!=="production"&&(Dd.propTypes={"aria-label":xt(t.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":t.string,"aria-valuetext":xt(t.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:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["primary","secondary","error","info","success","warning"]),t.string]),components:t.shape({Input:t.elementType,Mark:t.elementType,MarkLabel:t.elementType,Rail:t.elementType,Root:t.elementType,Thumb:t.elementType,Track:t.elementType,ValueLabel:t.elementType}),componentsProps:t.shape({input:t.oneOfType([t.func,t.object]),mark:t.oneOfType([t.func,t.object]),markLabel:t.oneOfType([t.func,t.object]),rail:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),thumb:t.oneOfType([t.func,t.object]),track:t.oneOfType([t.func,t.object]),valueLabel:t.oneOfType([t.func,t.shape({children:t.element,className:t.string,open:t.bool,style:t.object,value:t.node,valueLabelDisplay:t.oneOf(["auto","off","on"])})])}),defaultValue:t.oneOfType([t.arrayOf(t.number),t.number]),disabled:t.bool,disableSwap:t.bool,getAriaLabel:t.func,getAriaValueText:t.func,marks:t.oneOfType([t.arrayOf(t.shape({label:t.node,value:t.number.isRequired})),t.bool]),max:t.number,min:t.number,name:t.string,onChange:t.func,onChangeCommitted:t.func,orientation:t.oneOf(["horizontal","vertical"]),scale:t.func,shiftStep:t.number,size:t.oneOfType([t.oneOf(["small","medium"]),t.string]),slotProps:t.shape({input:t.oneOfType([t.func,t.object]),mark:t.oneOfType([t.func,t.object]),markLabel:t.oneOfType([t.func,t.object]),rail:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),thumb:t.oneOfType([t.func,t.object]),track:t.oneOfType([t.func,t.object]),valueLabel:t.oneOfType([t.func,t.shape({children:t.element,className:t.string,open:t.bool,style:t.object,value:t.node,valueLabelDisplay:t.oneOf(["auto","off","on"])})])}),slots:t.shape({input:t.elementType,mark:t.elementType,markLabel:t.elementType,rail:t.elementType,root:t.elementType,thumb:t.elementType,track:t.elementType,valueLabel:t.elementType}),step:t.number,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),tabIndex:t.number,track:t.oneOf(["inverted","normal",!1]),value:t.oneOfType([t.arrayOf(t.number),t.number]),valueLabelDisplay:t.oneOf(["auto","off","on"]),valueLabelFormat:t.oneOfType([t.func,t.string])});const Jx=D(Dd)(({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"}}})),zd=({etiqueta:e,textoAyuda:o,valor:n,minimo:r=0,maximo:a=100,paso:i=1,marcas:s,mostrarEtiquetaValor:l="auto",orientacion:c="horizontal",color:d="primario",alCambiar:p,tamano:g,className:b,sx:v,...h})=>{const f=O=>O==="primario"?"primary":O==="secundario"?"secondary":O==="exito"?"success":O==="error"?"error":O==="info"?"info":O==="advertencia"?"warning":"primary",y=O=>O==="siempre"?"on":O==="nunca"?"off":"auto",C=c==="vertical"?{height:300}:{};return u.jsxs(Ue,{sx:{width:"100%",...C,...v},className:b,children:[e&&u.jsx(nt,{gutterBottom:!0,variant:"subtitle2",sx:{fontWeight:600,mb:1},children:e}),u.jsx(Jx,{value:n,min:r,max:a,step:i,marks:s,valueLabelDisplay:y(l),orientation:c,color:f(d),onChange:p,size:g,...h}),o&&u.jsx(nt,{variant:"caption",color:"text.secondary",sx:{mt:.5,display:"block"},children:o})]})},Qx=zd;function e1(e){return xe("MuiSwitch",e)}const kt=Ce("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),t1=e=>{const{classes:o,edge:n,size:r,color:a,checked:i,disabled:s}=e,l={root:["root",n&&`edge${F(n)}`,`size${F(r)}`],switchBase:["switchBase",`color${F(a)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=we(l,e1,o);return{...o,...c}},o1=D("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.edge&&o[`edge${F(n.edge)}`],o[`size${F(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,[`& .${kt.thumb}`]:{width:16,height:16},[`& .${kt.switchBase}`]:{padding:4,[`&.${kt.checked}`]:{transform:"translateX(16px)"}}}}]}),n1=D(da,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.switchBase,{[`& .${kt.input}`]:o.input},n.color!=="default"&&o[`color${F(n.color)}`]]}})(me(({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}),[`&.${kt.checked}`]:{transform:"translateX(20px)"},[`&.${kt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${kt.checked} + .${kt.track}`]:{opacity:.5},[`&.${kt.disabled} + .${kt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${kt.input}`]:{left:"-100%",width:"300%"}})),me(({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(qe(["light"])).map(([o])=>({props:{color:o},style:{[`&.${kt.checked}`]:{color:(e.vars||e).palette[o].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${kt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${o}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[o].main,.62):e.darken(e.palette[o].main,.55)}`}},[`&.${kt.checked} + .${kt.track}`]:{backgroundColor:(e.vars||e).palette[o].main}}}))]}))),r1=D("span",{name:"MuiSwitch",slot:"Track"})(me(({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}`}))),a1=D("span",{name:"MuiSwitch",slot:"Thumb"})(me(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Fd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiSwitch"}),{className:a,color:i="primary",edge:s=!1,size:l="medium",sx:c,slots:d={},slotProps:p={},...g}=r,b={...r,color:i,edge:s,size:l},v=t1(b),h={slots:d,slotProps:p},[f,y]=ge("root",{className:re(v.root,a),elementType:o1,externalForwardedProps:h,ownerState:b,additionalProps:{sx:c}}),[C,O]=ge("thumb",{className:v.thumb,elementType:a1,externalForwardedProps:h,ownerState:b}),S=u.jsx(C,{...O}),[x,T]=ge("track",{className:v.track,elementType:r1,externalForwardedProps:h,ownerState:b});return u.jsxs(f,{...y,children:[u.jsx(n1,{type:"checkbox",icon:S,checkedIcon:S,ref:n,ownerState:b,...g,classes:{...v,root:v.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...p.switchBase&&{root:typeof p.switchBase=="function"?p.switchBase(b):p.switchBase},input:{role:"switch"},...p.input&&{input:typeof p.input=="function"?p.input(b):p.input}}}),u.jsx(x,{...T})]})});process.env.NODE_ENV!=="production"&&(Fd.propTypes={checked:t.bool,checkedIcon:t.node,classes:t.object,className:t.string,color:t.oneOfType([t.oneOf(["default","primary","secondary","error","info","success","warning"]),t.string]),defaultChecked:t.bool,disabled:t.bool,disableRipple:t.bool,edge:t.oneOf(["end","start",!1]),icon:t.node,id:t.string,inputProps:t.object,inputRef:Pt,onChange:t.func,required:t.bool,size:t.oneOfType([t.oneOf(["medium","small"]),t.string]),slotProps:t.shape({input:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),switchBase:t.oneOfType([t.func,t.object]),thumb:t.oneOfType([t.func,t.object]),track:t.oneOfType([t.func,t.object])}),slots:t.shape({input:t.elementType,root:t.elementType,switchBase:t.elementType,thumb:t.elementType,track:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),value:t.any});const i1=D(Fd)(({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"}})),Vd=({etiqueta:e,posicionEtiqueta:o="fin",tamano:n="mediano",seleccionado:r,porDefectoSeleccionado:a,alCambiar:i,color:s="primario",deshabilitado:l,error:c,mensajeError:d,sx:p,className:g,...b})=>{const v=C=>C==="primario"?"primary":C==="secundario"?"secondary":C==="exito"?"success":C==="error"?"error":C==="advertencia"?"warning":C==="info"?"info":"primary",h=C=>C==="pequeno"?"small":"medium",f=C=>C==="inicio"?"start":C==="fin"?"end":C==="arriba"?"top":C==="abajo"?"bottom":"end",y=u.jsx(i1,{checked:r,defaultChecked:a,onChange:i,disabled:l,size:h(n),color:v(s),disableRipple:!0,sx:{...c&&{"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:C=>C.palette.error.main}},...p},className:g,...b});return e?u.jsxs(Ue,{sx:{display:"inline-flex",flexDirection:"column"},children:[u.jsx(pa,{control:y,label:e,labelPlacement:f(o),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&&d&&u.jsx(Ue,{sx:{color:"error.main",fontSize:"0.75rem",mt:.5,ml:o==="inicio"?0:1},children:d})]}):y},s1=Vd,l1=D(gn)(({theme:e})=>({"& .MuiOutlinedInput-root":{borderRadius:12,transition:"background-color 0.2s, border-color 0.2s, box-shadow 0.2s",backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.common.white,.03):le.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"?le.alpha(e.palette.common.white,.05):le.alpha(e.palette.common.black,.02)},"&:hover fieldset":{borderColor:e.palette.primary.main,borderWidth:1},"&.Mui-focused":{backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.primary.main,.05):le.alpha(e.palette.primary.main,.02)},"&.Mui-focused fieldset":{borderWidth:2,borderColor:e.palette.primary.main,boxShadow:`0 0 0 4px ${le.alpha(e.palette.primary.main,.1)}`},"&.Mui-error fieldset":{borderColor:e.palette.error.main},"&.Mui-error.Mui-focused":{backgroundColor:e.palette.mode==="dark"?le.alpha(e.palette.error.main,.05):le.alpha(e.palette.error.main,.02)},"&.Mui-error.Mui-focused fieldset":{borderColor:e.palette.error.main,boxShadow:`0 0 0 4px ${le.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}})),_d=({etiqueta:e,textoAyuda:o,valor:n,alCambiar:r,deshabilitado:a,soloLectura:i,error:s,mensajeError:l,multilinea:c,filas:d,filasMinimas:p,filasMaximas:g,marcador:b,anchoCompleto:v,tipo:h,iconoInicio:f,iconoFin:y,alEnfocar:C,alDesenfocar:O,InputProps:S,sx:x,...T})=>{const E=s&&l?l:o;return u.jsx(l1,{variant:"outlined",label:e,helperText:E,value:n,onChange:r,disabled:a,error:s,multiline:c,rows:d,minRows:p,maxRows:g,placeholder:b,fullWidth:v,type:h,onFocus:C,onBlur:O,sx:{my:1,...x},InputProps:{readOnly:i,startAdornment:f?u.jsx(zo,{position:"start",children:f}):void 0,endAdornment:y?u.jsx(zo,{position:"end",children:y}):void 0,...S},...T})},c1=_d;function d1(e){return xe("MuiCardHeader",e)}const Ar=Ce("MuiCardHeader",["root","avatar","action","content","title","subheader"]),p1=e=>{const{classes:o}=e;return we({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},d1,o)},u1=D("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,o)=>[{[`& .${Ar.title}`]:o.title},{[`& .${Ar.subheader}`]:o.subheader},o.root]})({display:"flex",alignItems:"center",padding:16}),f1=D("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),m1=D("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),g1=D("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${Or.root}:where(& .${Ar.title})`]:{display:"block"},[`.${Or.root}:where(& .${Ar.subheader})`]:{display:"block"}}),Wd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiCardHeader"}),{action:a,avatar:i,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:d,title:p,titleTypographyProps:g,slots:b={},slotProps:v={},...h}=r,f={...r,component:s,disableTypography:l},y=p1(f),C={slots:b,slotProps:{title:g,subheader:d,...v}};let O=p;const[S,x]=ge("title",{className:y.title,elementType:nt,externalForwardedProps:C,ownerState:f,additionalProps:{variant:i?"body2":"h5",component:"span"}});O!=null&&O.type!==nt&&!l&&(O=u.jsx(S,{...x,children:O}));let T=c;const[E,j]=ge("subheader",{className:y.subheader,elementType:nt,externalForwardedProps:C,ownerState:f,additionalProps:{variant:i?"body2":"body1",color:"textSecondary",component:"span"}});T!=null&&T.type!==nt&&!l&&(T=u.jsx(E,{...j,children:T}));const[P,I]=ge("root",{ref:n,className:y.root,elementType:u1,externalForwardedProps:{...C,...h,component:s},ownerState:f}),[N,A]=ge("avatar",{className:y.avatar,elementType:f1,externalForwardedProps:C,ownerState:f}),[m,$]=ge("content",{className:y.content,elementType:g1,externalForwardedProps:C,ownerState:f}),[R,M]=ge("action",{className:y.action,elementType:m1,externalForwardedProps:C,ownerState:f});return u.jsxs(P,{...I,children:[i&&u.jsx(N,{...A,children:i}),u.jsxs(m,{...$,children:[O,T]}),a&&u.jsx(R,{...M,children:a})]})});process.env.NODE_ENV!=="production"&&(Wd.propTypes={action:t.node,avatar:t.node,children:t.node,classes:t.object,component:t.elementType,disableTypography:t.bool,slotProps:t.shape({action:t.oneOfType([t.func,t.object]),avatar:t.oneOfType([t.func,t.object]),content:t.oneOfType([t.func,t.object]),root:t.oneOfType([t.func,t.object]),subheader:t.oneOfType([t.func,t.object]),title:t.oneOfType([t.func,t.object])}),slots:t.shape({action:t.elementType,avatar:t.elementType,content:t.elementType,root:t.elementType,subheader:t.elementType,title:t.elementType}),subheader:t.node,subheaderTypographyProps:t.object,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),title:t.node,titleTypographyProps:t.object});function h1(e){return xe("MuiListItem",e)}Ce("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function b1(e){return xe("MuiListItemButton",e)}const Qo=Ce("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),y1=(e,o)=>{const{ownerState:n}=e;return[o.root,n.dense&&o.dense,n.alignItems==="flex-start"&&o.alignItemsFlexStart,n.divider&&o.divider,!n.disableGutters&&o.gutters]},v1=e=>{const{alignItems:o,classes:n,dense:r,disabled:a,disableGutters:i,divider:s,selected:l}=e,d=we({root:["root",r&&"dense",!i&&"gutters",s&&"divider",a&&"disabled",o==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},b1,n);return{...n,...d}},x1=D(lo,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:y1})(me(({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"}},[`&.${Qo.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Qo.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Qo.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)}},[`&.${Qo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:o})=>o.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:o})=>o.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Ud=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiListItemButton"}),{alignItems:a="center",autoFocus:i=!1,component:s="div",children:l,dense:c=!1,disableGutters:d=!1,divider:p=!1,focusVisibleClassName:g,selected:b=!1,className:v,...h}=r,f=w.useContext(_t),y=w.useMemo(()=>({dense:c||f.dense||!1,alignItems:a,disableGutters:d}),[a,f.dense,c,d]),C=w.useRef(null);Wt(()=>{i&&(C.current?C.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[i]);const O={...r,alignItems:a,dense:y.dense,disableGutters:d,divider:p,selected:b},S=v1(O),x=ot(C,n);return u.jsx(_t.Provider,{value:y,children:u.jsx(x1,{ref:x,href:h.href||h.to,component:(h.href||h.to)&&s==="div"?"button":s,focusVisibleClassName:re(S.focusVisible,g),ownerState:O,className:re(S.root,v),...h,classes:S,children:l})})});process.env.NODE_ENV!=="production"&&(Ud.propTypes={alignItems:t.oneOf(["center","flex-start"]),autoFocus:t.bool,children:t.node,classes:t.object,className:t.string,component:t.elementType,dense:t.bool,disabled:t.bool,disableGutters:t.bool,divider:t.bool,focusVisibleClassName:t.string,href:t.string,selected:t.bool,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});function C1(e){return xe("MuiListItemSecondaryAction",e)}Ce("MuiListItemSecondaryAction",["root","disableGutters"]);const w1=e=>{const{disableGutters:o,classes:n}=e;return we({root:["root",o&&"disableGutters"]},C1,n)},S1=D("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:n}=e;return[o.root,n.disableGutters&&o.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Ji=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiListItemSecondaryAction"}),{className:a,...i}=r,s=w.useContext(_t),l={...r,disableGutters:s.disableGutters},c=w1(l);return u.jsx(S1,{className:re(c.root,a),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Ji.propTypes={children:t.node,classes:t.object,className:t.string,sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});Ji.muiName="ListItemSecondaryAction";const T1=(e,o)=>{const{ownerState:n}=e;return[o.root,n.dense&&o.dense,n.alignItems==="flex-start"&&o.alignItemsFlexStart,n.divider&&o.divider,!n.disableGutters&&o.gutters,!n.disablePadding&&o.padding,n.hasSecondaryAction&&o.secondaryAction]},O1=e=>{const{alignItems:o,classes:n,dense:r,disableGutters:a,disablePadding:i,divider:s,hasSecondaryAction:l}=e;return we({root:["root",r&&"dense",!a&&"gutters",!i&&"padding",s&&"divider",o==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},h1,n)},E1=D("div",{name:"MuiListItem",slot:"Root",overridesResolver:T1})(me(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:o})=>!o.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:o})=>!o.disablePadding&&o.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:o})=>!o.disablePadding&&!o.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:o})=>!o.disablePadding&&!!o.secondaryAction,style:{paddingRight:48}},{props:({ownerState:o})=>!!o.secondaryAction,style:{[`& > .${Qo.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:o})=>o.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:o})=>o.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:o})=>o.hasSecondaryAction,style:{paddingRight:48}}]}))),k1=D("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Hd=w.forwardRef(function(o,n){const r=Te({props:o,name:"MuiListItem"}),{alignItems:a="center",children:i,className:s,component:l,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:g,...b}={},dense:v=!1,disableGutters:h=!1,disablePadding:f=!1,divider:y=!1,secondaryAction:C,slotProps:O={},slots:S={},...x}=r,T=w.useContext(_t),E=w.useMemo(()=>({dense:v||T.dense||!1,alignItems:a,disableGutters:h}),[a,T.dense,v,h]),j=w.useRef(null),P=w.Children.toArray(i),I=P.length&&An(P[P.length-1],["ListItemSecondaryAction"]),N={...r,alignItems:a,dense:E.dense,disableGutters:h,disablePadding:f,divider:y,hasSecondaryAction:I},A=O1(N),m=ot(j,n),$={slots:S,slotProps:O},[R,M]=ge("secondaryAction",{elementType:Ji,externalForwardedProps:$,ownerState:N,className:A.secondaryAction}),k=S.root||c.Root||E1,z=O.root||d.root||{},V={className:re(A.root,z.className,s),...x};let W=l||"li";return I?(W=!V.component&&!l?"div":W,p==="li"&&(W==="li"?W="div":V.component==="li"&&(V.component="div")),u.jsx(_t.Provider,{value:E,children:u.jsxs(k1,{as:p,className:re(A.container,g),ref:m,ownerState:N,...b,children:[u.jsx(k,{...z,...!eo(k)&&{as:W,ownerState:{...N,...z.ownerState}},...V,children:P}),P.pop()]})})):u.jsx(_t.Provider,{value:E,children:u.jsxs(k,{...z,as:W,ref:m,...!eo(k)&&{ownerState:{...N,...z.ownerState}},...V,children:[P,C&&u.jsx(R,{...M,children:C})]})})});process.env.NODE_ENV!=="production"&&(Hd.propTypes={alignItems:t.oneOf(["center","flex-start"]),children:xt(t.node,e=>{const o=w.Children.toArray(e.children);let n=-1;for(let r=o.length-1;r>=0;r-=1){const a=o[r];if(An(a,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==o.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:t.object,className:t.string,component:t.elementType,components:t.shape({Root:t.elementType}),componentsProps:t.shape({root:t.object}),ContainerComponent:Yn,ContainerProps:t.object,dense:t.bool,disableGutters:t.bool,disablePadding:t.bool,divider:t.bool,secondaryAction:t.node,slotProps:t.shape({root:t.object,secondaryAction:t.oneOfType([t.func,t.object])}),slots:t.shape({root:t.elementType,secondaryAction:t.elementType}),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object])});const ci=le.createStack({createStyledComponent:D("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Te({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(ci.propTypes={children:t.node,component:t.elementType,direction:t.oneOfType([t.oneOf(["column-reverse","column","row-reverse","row"]),t.arrayOf(t.oneOf(["column-reverse","column","row-reverse","row"])),t.object]),divider:t.node,spacing:t.oneOfType([t.arrayOf(t.oneOfType([t.number,t.string])),t.number,t.object,t.string]),sx:t.oneOfType([t.arrayOf(t.oneOfType([t.func,t.object,t.bool])),t.func,t.object]),useFlexGap:t.bool});const P1=st(u.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"),R1=st(u.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"),I1=D(Pi)(({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]}})),$1=D(Wd)(({theme:e})=>({padding:e.spacing(2),backgroundColor:e.palette.mode==="light"?e.palette.grey[50]:le.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}})),j1=D(Ue)(({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"}})),Al=D(Ci)(({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"}})),M1=D(gn)(({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 en(e,o){return e.filter(n=>o.indexOf(n)===-1)}function Ba(e,o){return e.filter(n=>o.indexOf(n)!==-1)}function N1(e,o){return[...e,...en(o,e)]}const qd=({izquierda:e=[],derecha:o=[],alCambiar:n,tituloIzquierda:r="Opciones",tituloDerecha:a="Elegidos",alto:i=320,buscable:s=!1,deshabilitado:l=!1})=>{const[c,d]=Re.useState([]),[p,g]=Re.useState(""),[b,v]=Re.useState(""),h=Ba(c,e),f=Ba(c,o),y=Re.useMemo(()=>!s||!p?e:e.filter(P=>P.etiqueta.toLowerCase().includes(p.toLowerCase())),[e,p,s]),C=Re.useMemo(()=>!s||!b?o:o.filter(P=>P.etiqueta.toLowerCase().includes(b.toLowerCase())),[o,b,s]),O=P=>()=>{if(l||P.deshabilitado)return;const I=c.indexOf(P),N=[...c];I===-1?N.push(P):N.splice(I,1),d(N)},S=P=>Ba(c,P).length,x=P=>()=>{if(l)return;const I=P.filter(N=>!N.deshabilitado);S(I)===I.length&&I.length!==0?d(en(c,I)):d(N1(c,I))},T=()=>{n&&(n(en(e,h),o.concat(h)),d(en(c,h)))},E=()=>{n&&(n(e.concat(f),en(o,f)),d(en(c,f)))},j=(P,I,N,A)=>{const m=I.filter(M=>!M.deshabilitado),$=S(m)===m.length&&m.length!==0,R=S(m)!==m.length&&S(m)!==0;return u.jsxs(I1,{children:[u.jsx($1,{avatar:u.jsx(Mr,{onClick:x(I),checked:$,indeterminate:R,disabled:m.length===0||l,inputProps:{"aria-label":"todos los elementos seleccionados"},size:"small",sx:{color:"text.secondary","&.Mui-checked":{color:"primary.main"}}}),title:P,subheader:u.jsxs(nt,{variant:"caption",color:"text.secondary",sx:{fontWeight:500},children:[S(I)," seleccionados"]})}),s&&u.jsxs(u.Fragment,{children:[u.jsx(Un,{}),u.jsx(M1,{placeholder:"Buscar...",fullWidth:!0,disabled:l,value:N,onChange:M=>A(M.target.value),InputProps:{startAdornment:u.jsx(zo,{position:"start",children:u.jsx(Md,{color:"action",fontSize:"small"})})}}),u.jsx(Un,{})]}),u.jsx(j1,{sx:{height:i},children:u.jsxs(Ui,{dense:!0,component:"div",role:"list",sx:{py:1},children:[I.length===0&&u.jsx(Ue,{sx:{p:4,textAlign:"center",opacity:.5},children:u.jsx(nt,{variant:"caption",children:"No hay elementos"})}),I.map(M=>{const k=`transfer-list-all-item-${M.id}-label`,z=c.indexOf(M)!==-1,V=l||M.deshabilitado;return u.jsx(Hd,{disablePadding:!0,sx:{mb:.5,px:1},children:u.jsxs(Ud,{role:"listitem",onClick:O(M),disabled:V,selected:z,sx:{borderRadius:2,transition:"all 0.2s","&:hover":{backgroundColor:W=>V?void 0:le.alpha(W.palette.primary.main,.08)},"&.Mui-selected":{backgroundColor:W=>le.alpha(W.palette.primary.main,.12),"&:hover":{backgroundColor:W=>le.alpha(W.palette.primary.main,.16)}}},children:[u.jsx($d,{sx:{minWidth:40},children:u.jsx(Mr,{checked:z,tabIndex:-1,disableRipple:!0,disabled:V,inputProps:{"aria-labelledby":k},size:"small",edge:"start"})}),u.jsx(jd,{id:k,primary:M.etiqueta,primaryTypographyProps:{fontWeight:z?600:400,color:z&&!V?"primary.main":"text.primary"}})]})},M.id)})]})})]})};return u.jsxs(ci,{direction:{xs:"column",md:"row"},spacing:3,justifyContent:"center",alignItems:"center",children:[u.jsx(Ue,{sx:{width:{xs:"100%",md:"42%"}},children:j(r,y,p,g)}),u.jsx(Ue,{children:u.jsxs(ci,{direction:"column",spacing:2,children:[u.jsx(Al,{onClick:T,disabled:h.length===0||l,"aria-label":"mover seleccionados a la derecha",children:u.jsx(P1,{fontSize:"small"})}),u.jsx(Al,{onClick:E,disabled:f.length===0||l,"aria-label":"mover seleccionados a la izquierda",children:u.jsx(R1,{fontSize:"small"})})]})}),u.jsx(Ue,{sx:{width:{xs:"100%",md:"42%"}},children:j(a,C,b,v)})]})},A1=qd,L1=({children:e,PaperProps:o,...n})=>{const r=it.useTheme();return u.jsx(it.Dialog,{PaperProps:{elevation:24,sx:{borderRadius:3,backgroundImage:"none",backgroundColor:r.palette.background.paper,...o?.sx},...o},...n,children:e})},B1=({sx:e,children:o,...n})=>u.jsx(it.DialogTitle,{sx:{fontWeight:700,fontSize:"1.25rem",pb:1,...e},...n,children:o}),D1=({sx:e,children:o,...n})=>u.jsx(it.DialogContent,{sx:{py:2,...e},...n,children:o}),z1=({sx:e,children:o,...n})=>u.jsx(it.DialogContentText,{sx:{mb:2,color:"text.secondary",...e},...n,children:o}),F1=({sx:e,children:o,...n})=>u.jsx(it.DialogActions,{sx:{px:3,pb:3,gap:1,...e},...n,children:o});exports.CodeplexAlert=Zg;exports.CodeplexAlerta=Mc;exports.CodeplexAutocompletado=wd;exports.CodeplexAutocomplete=g0;exports.CodeplexAvatar=ng;exports.CodeplexAvatarGroup=og;exports.CodeplexAvatarUsuario=vc;exports.CodeplexAviso=Ic;exports.CodeplexAyudaEntrada=td;exports.CodeplexBadge=Em;exports.CodeplexBanner=Pg;exports.CodeplexBoton=wi;exports.CodeplexButton=ym;exports.CodeplexCampoNumero=Ed;exports.CodeplexCampoTexto=_d;exports.CodeplexCard=Og;exports.CodeplexCargando=hc;exports.CodeplexCasilla=Ki;exports.CodeplexCheckbox=U0;exports.CodeplexDeslizador=zd;exports.CodeplexDialogo=L1;exports.CodeplexDialogoAcciones=F1;exports.CodeplexDialogoContenido=D1;exports.CodeplexDialogoTexto=z1;exports.CodeplexDialogoTitulo=B1;exports.CodeplexElementoMenu=nn;exports.CodeplexEncabezadoPrincipal=Rc;exports.CodeplexEsqueleto=od;exports.CodeplexEtiquetaInteligente=wc;exports.CodeplexGrupoAvatares=xc;exports.CodeplexGrupoBotones=w0;exports.CodeplexGrupoFormulario=Gi;exports.CodeplexGrupoRadio=Id;exports.CodeplexInputHelper=ly;exports.CodeplexInsignia=gc;exports.CodeplexInterruptor=Vd;exports.CodeplexJumbotron=Eg;exports.CodeplexKbd=Am;exports.CodeplexListaTransferencia=qd;exports.CodeplexMensajeEmergente=qc;exports.CodeplexNotificacion=Vi;exports.CodeplexNumberField=J0;exports.CodeplexPopupRequisitos=Ei;exports.CodeplexProgreso=Yc;exports.CodeplexProgress=Gb;exports.CodeplexRadio=Zi;exports.CodeplexRadioGroup=mx;exports.CodeplexRating=sy;exports.CodeplexRequirementsPopup=rg;exports.CodeplexSelect=jx;exports.CodeplexSelector=Nd;exports.CodeplexSkeleton=dy;exports.CodeplexSlider=Qx;exports.CodeplexSmartLabel=ag;exports.CodeplexSpinner=Nm;exports.CodeplexSubcabeceraLista=fn;exports.CodeplexSwitch=s1;exports.CodeplexTarjeta=Pc;exports.CodeplexTeclado=bc;exports.CodeplexTextField=c1;exports.CodeplexToast=qb;exports.CodeplexTooltip=Tb;exports.CodeplexTostada=Hb;exports.CodeplexTransferList=A1;exports.CodeplexValoracion=ed;exports.EntradaOcultaVisualmente=bm;exports.Ui=Xd;exports.avatarCadena=Cc;exports.stringAvatar=tg;
|
|
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:`
|
|
335
|
+
html {
|
|
336
|
+
scroll-padding-top: ${g}px;
|
|
337
|
+
scroll-padding-bottom: ${h}px;
|
|
338
|
+
}
|
|
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;
|