@codeplex-sac/ui 0.0.20 → 0.0.22

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 CHANGED
@@ -1,11 +1,11 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),N=require("react"),ae=require("@mui/system"),qf=require("@emotion/styled");require("@emotion/react");const G=require("@mui/material"),kn=require("react-dom"),ri=require("@mui/icons-material"),It=require("@codeplex-sac/feedback");function pu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const R=pu(N),Gf=pu(kn),Yf={};function Kf(){return y.jsx("div",{className:Yf.container,children:y.jsx("h1",{children:"Welcome to Ui!"})})}function Xf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fo={exports:{}},zo={exports:{}},Re={};var Va;function Zf(){if(Va)return Re;Va=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=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,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(w){if(typeof w=="object"&&w!==null){var S=w.$$typeof;switch(S){case t:switch(w=w.type,w){case c:case u:case o:case s:case r:case p:return w;default:switch(w=w&&w.$$typeof,w){case l:case d:case m:case g:case a:return w;default:return S}}case n:return S}}}function b(w){return E(w)===u}return Re.AsyncMode=c,Re.ConcurrentMode=u,Re.ContextConsumer=l,Re.ContextProvider=a,Re.Element=t,Re.ForwardRef=d,Re.Fragment=o,Re.Lazy=m,Re.Memo=g,Re.Portal=n,Re.Profiler=s,Re.StrictMode=r,Re.Suspense=p,Re.isAsyncMode=function(w){return b(w)||E(w)===c},Re.isConcurrentMode=b,Re.isContextConsumer=function(w){return E(w)===l},Re.isContextProvider=function(w){return E(w)===a},Re.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Re.isForwardRef=function(w){return E(w)===d},Re.isFragment=function(w){return E(w)===o},Re.isLazy=function(w){return E(w)===m},Re.isMemo=function(w){return E(w)===g},Re.isPortal=function(w){return E(w)===n},Re.isProfiler=function(w){return E(w)===s},Re.isStrictMode=function(w){return E(w)===r},Re.isSuspense=function(w){return E(w)===p},Re.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===u||w===s||w===r||w===p||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===g||w.$$typeof===a||w.$$typeof===l||w.$$typeof===d||w.$$typeof===x||w.$$typeof===T||w.$$typeof===C||w.$$typeof===h)},Re.typeOf=E,Re}var Oe={};var Na;function Jf(){return Na||(Na=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,o=e?Symbol.for("react.fragment"):60107,r=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,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(z){return typeof z=="string"||typeof z=="function"||z===o||z===u||z===s||z===r||z===p||z===f||typeof z=="object"&&z!==null&&(z.$$typeof===m||z.$$typeof===g||z.$$typeof===a||z.$$typeof===l||z.$$typeof===d||z.$$typeof===x||z.$$typeof===T||z.$$typeof===C||z.$$typeof===h)}function b(z){if(typeof z=="object"&&z!==null){var pe=z.$$typeof;switch(pe){case t:var ce=z.type;switch(ce){case c:case u:case o:case s:case r:case p:return ce;default:var re=ce&&ce.$$typeof;switch(re){case l:case d:case m:case g:case a:return re;default:return pe}}case n:return pe}}}var w=c,S=u,M=l,j=a,O=t,A=d,I=o,v=m,D=g,k=n,V=s,$=r,W=p,B=!1;function _(z){return B||(B=!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.")),P(z)||b(z)===c}function P(z){return b(z)===u}function L(z){return b(z)===l}function H(z){return b(z)===a}function q(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function K(z){return b(z)===d}function ee(z){return b(z)===o}function te(z){return b(z)===m}function ne(z){return b(z)===g}function J(z){return b(z)===n}function le(z){return b(z)===s}function Y(z){return b(z)===r}function se(z){return b(z)===p}Oe.AsyncMode=w,Oe.ConcurrentMode=S,Oe.ContextConsumer=M,Oe.ContextProvider=j,Oe.Element=O,Oe.ForwardRef=A,Oe.Fragment=I,Oe.Lazy=v,Oe.Memo=D,Oe.Portal=k,Oe.Profiler=V,Oe.StrictMode=$,Oe.Suspense=W,Oe.isAsyncMode=_,Oe.isConcurrentMode=P,Oe.isContextConsumer=L,Oe.isContextProvider=H,Oe.isElement=q,Oe.isForwardRef=K,Oe.isFragment=ee,Oe.isLazy=te,Oe.isMemo=ne,Oe.isPortal=J,Oe.isProfiler=le,Oe.isStrictMode=Y,Oe.isSuspense=se,Oe.isValidElementType=E,Oe.typeOf=b})()),Oe}var La;function fu(){return La||(La=1,process.env.NODE_ENV==="production"?zo.exports=Zf():zo.exports=Jf()),zo.exports}var ii,Fa;function Qf(){if(Fa)return ii;Fa=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function r(){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 ii=r()?Object.assign:function(s,a){for(var l,c=o(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},ii}var si,za;function Ds(){if(za)return si;za=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return si=e,si}var ai,_a;function hu(){return _a||(_a=1,ai=Function.call.bind(Object.prototype.hasOwnProperty)),ai}var li,Wa;function eh(){if(Wa)return li;Wa=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ds(),n={},o=hu();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function r(s,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in s)if(o(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(m){p=m}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 g=u?u():"";e("Failed "+l+" type: "+p.message+(g??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},li=r,li}var ci,Ua;function th(){if(Ua)return ci;Ua=1;var e=fu(),t=Qf(),n=Ds(),o=hu(),r=eh(),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 ci=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(P){var L=P&&(u&&P[u]||P[d]);if(typeof L=="function")return L}var f="<<anonymous>>",g={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:C(),arrayOf:E,element:b(),elementType:w(),instanceOf:S,node:A(),objectOf:j,oneOf:M,oneOfType:O,shape:v,exact:D};function m(P,L){return P===L?P!==0||1/P===1/L:P!==P&&L!==L}function h(P,L){this.message=P,this.data=L&&typeof L=="object"?L:{},this.stack=""}h.prototype=Error.prototype;function x(P){if(process.env.NODE_ENV!=="production")var L={},H=0;function q(ee,te,ne,J,le,Y,se){if(J=J||f,Y=Y||ne,se!==n){if(c){var z=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 z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=J+":"+ne;!L[pe]&&H<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+J+"`. 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[pe]=!0,H++)}}return te[ne]==null?ee?te[ne]===null?new h("The "+le+" `"+Y+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new h("The "+le+" `"+Y+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:P(te,ne,J,le,Y)}var K=q.bind(null,!1);return K.isRequired=q.bind(null,!0),K}function T(P){function L(H,q,K,ee,te,ne){var J=H[q],le=$(J);if(le!==P){var Y=W(J);return new h("Invalid "+ee+" `"+te+"` of type "+("`"+Y+"` supplied to `"+K+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return x(L)}function C(){return x(a)}function E(P){function L(H,q,K,ee,te){if(typeof P!="function")return new h("Property `"+te+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var ne=H[q];if(!Array.isArray(ne)){var J=$(ne);return new h("Invalid "+ee+" `"+te+"` of type "+("`"+J+"` supplied to `"+K+"`, expected an array."))}for(var le=0;le<ne.length;le++){var Y=P(ne,le,K,ee,te+"["+le+"]",n);if(Y instanceof Error)return Y}return null}return x(L)}function b(){function P(L,H,q,K,ee){var te=L[H];if(!l(te)){var ne=$(te);return new h("Invalid "+K+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return x(P)}function w(){function P(L,H,q,K,ee){var te=L[H];if(!e.isValidElementType(te)){var ne=$(te);return new h("Invalid "+K+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return x(P)}function S(P){function L(H,q,K,ee,te){if(!(H[q]instanceof P)){var ne=P.name||f,J=_(H[q]);return new h("Invalid "+ee+" `"+te+"` of type "+("`"+J+"` supplied to `"+K+"`, expected ")+("instance of `"+ne+"`."))}return null}return x(L)}function M(P){if(!Array.isArray(P))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 L(H,q,K,ee,te){for(var ne=H[q],J=0;J<P.length;J++)if(m(ne,P[J]))return null;var le=JSON.stringify(P,function(se,z){var pe=W(z);return pe==="symbol"?String(z):z});return new h("Invalid "+ee+" `"+te+"` of value `"+String(ne)+"` "+("supplied to `"+K+"`, expected one of "+le+"."))}return x(L)}function j(P){function L(H,q,K,ee,te){if(typeof P!="function")return new h("Property `"+te+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var ne=H[q],J=$(ne);if(J!=="object")return new h("Invalid "+ee+" `"+te+"` of type "+("`"+J+"` supplied to `"+K+"`, expected an object."));for(var le in ne)if(o(ne,le)){var Y=P(ne,le,K,ee,te+"."+le,n);if(Y instanceof Error)return Y}return null}return x(L)}function O(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var L=0;L<P.length;L++){var H=P[L];if(typeof H!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(H)+" at index "+L+"."),a}function q(K,ee,te,ne,J){for(var le=[],Y=0;Y<P.length;Y++){var se=P[Y],z=se(K,ee,te,ne,J,n);if(z==null)return null;z.data&&o(z.data,"expectedType")&&le.push(z.data.expectedType)}var pe=le.length>0?", expected one of type ["+le.join(", ")+"]":"";return new h("Invalid "+ne+" `"+J+"` supplied to "+("`"+te+"`"+pe+"."))}return x(q)}function A(){function P(L,H,q,K,ee){return k(L[H])?null:new h("Invalid "+K+" `"+ee+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return x(P)}function I(P,L,H,q,K){return new h((P||"React class")+": "+L+" type `"+H+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function v(P){function L(H,q,K,ee,te){var ne=H[q],J=$(ne);if(J!=="object")return new h("Invalid "+ee+" `"+te+"` of type `"+J+"` "+("supplied to `"+K+"`, expected `object`."));for(var le in P){var Y=P[le];if(typeof Y!="function")return I(K,ee,te,le,W(Y));var se=Y(ne,le,K,ee,te+"."+le,n);if(se)return se}return null}return x(L)}function D(P){function L(H,q,K,ee,te){var ne=H[q],J=$(ne);if(J!=="object")return new h("Invalid "+ee+" `"+te+"` of type `"+J+"` "+("supplied to `"+K+"`, expected `object`."));var le=t({},H[q],P);for(var Y in le){var se=P[Y];if(o(P,Y)&&typeof se!="function")return I(K,ee,te,Y,W(se));if(!se)return new h("Invalid "+ee+" `"+te+"` key `"+Y+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(H[q],null," ")+`
2
- Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=se(ne,Y,K,ee,te+"."+Y,n);if(z)return z}return null}return x(L)}function k(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(k);if(P===null||l(P))return!0;var L=p(P);if(L){var H=L.call(P),q;if(L!==P.entries){for(;!(q=H.next()).done;)if(!k(q.value))return!1}else for(;!(q=H.next()).done;){var K=q.value;if(K&&!k(K[1]))return!1}}else return!1;return!0;default:return!1}}function V(P,L){return P==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function $(P){var L=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":V(L,P)?"symbol":L}function W(P){if(typeof P>"u"||P===null)return""+P;var L=$(P);if(L==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return L}function B(P){var L=W(P);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function _(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return g.checkPropTypes=r,g.resetWarningCache=r.resetWarningCache,g.PropTypes=g,g},ci}var ui,Ha;function nh(){if(Ha)return ui;Ha=1;var e=Ds();function t(){}function n(){}return n.resetWarningCache=t,ui=function(){function o(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}}o.isRequired=o;function r(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},ui}var qa;function oh(){if(qa)return Fo.exports;if(qa=1,process.env.NODE_ENV!=="production"){var e=fu(),t=!0;Fo.exports=th()(e.isElement,t)}else Fo.exports=nh()();return Fo.exports}var rh=oh();const i=Xf(rh);function mu(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=mu(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function de(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=mu(e))&&(o&&(o+=" "),o+=t);return o}function dr(e,t,n=!1){const o={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const s=r;if(s==="components"||s==="slots")o[s]={...e[s],...o[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)o[s]=a||{};else if(!a)o[s]=l;else{o[s]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;o[s][u]=dr(a[u],l[u],n)}}}else s==="className"&&n&&t.className?o.className=de(e?.className,t?.className):s==="style"&&n&&t.style?o.style={...e?.style,...t?.style}:o[s]===void 0&&(o[s]=e[s])}return o}function Ne(e,t,n=void 0){const o={};for(const r in e){const s=e[r];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]))}o[r]=a}return o}const Ga=e=>e,ih=()=>{let e=Ga;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ga}}},gu=ih();function Lt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`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.":Lt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ya(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}var _o={exports:{}},$e={};var Ka;function sh(){if(Ka)return $e;Ka=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=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"),g=Symbol.for("react.client.reference");function m(h){if(typeof h=="object"&&h!==null){var x=h.$$typeof;switch(x){case e:switch(h=h.type,h){case n:case r:case o: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 x}}case t:return x}}}return $e.ContextConsumer=s,$e.ContextProvider=a,$e.Element=e,$e.ForwardRef=l,$e.Fragment=n,$e.Lazy=p,$e.Memo=d,$e.Portal=t,$e.Profiler=r,$e.StrictMode=o,$e.Suspense=c,$e.SuspenseList=u,$e.isContextConsumer=function(h){return m(h)===s},$e.isContextProvider=function(h){return m(h)===a},$e.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},$e.isForwardRef=function(h){return m(h)===l},$e.isFragment=function(h){return m(h)===n},$e.isLazy=function(h){return m(h)===p},$e.isMemo=function(h){return m(h)===d},$e.isPortal=function(h){return m(h)===t},$e.isProfiler=function(h){return m(h)===r},$e.isStrictMode=function(h){return m(h)===o},$e.isSuspense=function(h){return m(h)===c},$e.isSuspenseList=function(h){return m(h)===u},$e.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===r||h===o||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===g||h.getModuleId!==void 0)},$e.typeOf=m,$e}var Ie={};var Xa;function ah(){return Xa||(Xa=1,process.env.NODE_ENV!=="production"&&(function(){function e(h){if(typeof h=="object"&&h!==null){var x=h.$$typeof;switch(x){case t:switch(h=h.type,h){case o:case s:case r:case u:case d:case g: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 x}}case n:return x}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=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"),g=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");Ie.ContextConsumer=a,Ie.ContextProvider=l,Ie.Element=t,Ie.ForwardRef=c,Ie.Fragment=o,Ie.Lazy=f,Ie.Memo=p,Ie.Portal=n,Ie.Profiler=s,Ie.StrictMode=r,Ie.Suspense=u,Ie.SuspenseList=d,Ie.isContextConsumer=function(h){return e(h)===a},Ie.isContextProvider=function(h){return e(h)===l},Ie.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Ie.isForwardRef=function(h){return e(h)===c},Ie.isFragment=function(h){return e(h)===o},Ie.isLazy=function(h){return e(h)===f},Ie.isMemo=function(h){return e(h)===p},Ie.isPortal=function(h){return e(h)===n},Ie.isProfiler=function(h){return e(h)===s},Ie.isStrictMode=function(h){return e(h)===r},Ie.isSuspense=function(h){return e(h)===u},Ie.isSuspenseList=function(h){return e(h)===d},Ie.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===o||h===s||h===r||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===m||h.getModuleId!==void 0)},Ie.typeOf=e})()),Ie}var Za;function lh(){return Za||(Za=1,process.env.NODE_ENV==="production"?_o.exports=sh():_o.exports=ah()),_o.exports}var yo=lh();function At(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 yu(e){if(R.isValidElement(e)||yo.isValidElementType(e)||!At(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=yu(e[n])}),t}function lt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return At(e)&&At(t)&&Object.keys(t).forEach(r=>{R.isValidElement(t[r])||yo.isValidElementType(t[r])?o[r]=t[r]:At(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&At(e[r])?o[r]=lt(e[r],t[r],n):n.clone?o[r]=At(t[r])?yu(t[r]):t[r]:o[r]=t[r]}),o}function co(e,t){return t?lt(e,t,{clone:!1}):e}const nn=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.string,i.object,i.array]):{};function Ja(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{const s=/min-width:\s*([0-9.]+)/;return+(o.match(s)?.[1]||0)-+(r.match(s)?.[1]||0)});return n.length?n.reduce((o,r)=>{const s=t[r];return delete o[r],o[r]=s,o},{...t}):t}function ch(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function uh(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\`.`:Lt(18,`(${t})`));return null}const[,o,r]=n,s=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(s)}function dh(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 o={},r=s=>(n(o,s),o);return n(r),{...e,containerQueries:r}}const jr={xs:0,sm:600,md:900,lg:1200,xl:1536},Qa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${jr[e]}px)`},ph={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:jr[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ft(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const s=o.breakpoints||Qa;return t.reduce((a,l,c)=>(a[s.up(s.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const s=o.breakpoints||Qa;return Object.keys(t).reduce((a,l)=>{if(ch(s.keys,l)){const c=uh(o.containerQueries?o:ph,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(s.values||jr).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 fh(e={}){return e.keys?.reduce((n,o)=>{const r=e.up(o);return n[r]={},n},{})||{}}function el(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function $r(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,s)=>r&&r[s]?r[s]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function pr(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=$r(e,n)||o,t&&(r=t(r,o,e)),r}function Ge(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,s=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=$r(c,o)||{};return Ft(a,l,p=>{let f=pr(u,r,p);return p===f&&typeof p=="string"&&(f=pr(u,r,`${t}${p==="default"?"":Z(p)}`,p)),n===!1?f:{[n]:f}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:nn}:{},s.filterProps=[t],s}function hh(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const mh={m:"margin",p:"padding"},gh={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},tl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yh=hh(e=>{if(e.length>2)if(tl[e])e=tl[e];else return[e];const[t,n]=e.split(""),o=mh[t],r=gh[n]||"";return Array.isArray(r)?r.map(s=>o+s):[o+r]}),Ir=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Dr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],vh=[...Ir,...Dr];function Ro(e,t,n,o){const r=$r(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${s}.`),typeof r=="string"?r.startsWith("var(")&&s===0?0:r.startsWith("var(")&&s===1?r:`calc(${s} * ${r})`:r*s):Array.isArray(r)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>r.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${a} > ${r.length-1}, you need to add the missing values.`].join(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),N=require("react"),ae=require("@mui/system"),Gf=require("@emotion/styled");require("@emotion/react");const G=require("@mui/material"),kn=require("react-dom"),ri=require("@mui/icons-material"),Ds=require("@atlaskit/pragmatic-drag-and-drop/element/adapter"),It=require("@codeplex-sac/feedback");function fu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const R=fu(N),Yf=fu(kn),Kf={};function Xf(){return y.jsx("div",{className:Kf.container,children:y.jsx("h1",{children:"Welcome to Ui!"})})}function Zf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fo={exports:{}},zo={exports:{}},Re={};var Na;function Jf(){if(Na)return Re;Na=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=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,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(w){if(typeof w=="object"&&w!==null){var S=w.$$typeof;switch(S){case t:switch(w=w.type,w){case c:case u:case o:case s:case r:case p:return w;default:switch(w=w&&w.$$typeof,w){case l:case d:case m:case g:case a:return w;default:return S}}case n:return S}}}function b(w){return E(w)===u}return Re.AsyncMode=c,Re.ConcurrentMode=u,Re.ContextConsumer=l,Re.ContextProvider=a,Re.Element=t,Re.ForwardRef=d,Re.Fragment=o,Re.Lazy=m,Re.Memo=g,Re.Portal=n,Re.Profiler=s,Re.StrictMode=r,Re.Suspense=p,Re.isAsyncMode=function(w){return b(w)||E(w)===c},Re.isConcurrentMode=b,Re.isContextConsumer=function(w){return E(w)===l},Re.isContextProvider=function(w){return E(w)===a},Re.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Re.isForwardRef=function(w){return E(w)===d},Re.isFragment=function(w){return E(w)===o},Re.isLazy=function(w){return E(w)===m},Re.isMemo=function(w){return E(w)===g},Re.isPortal=function(w){return E(w)===n},Re.isProfiler=function(w){return E(w)===s},Re.isStrictMode=function(w){return E(w)===r},Re.isSuspense=function(w){return E(w)===p},Re.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===u||w===s||w===r||w===p||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===g||w.$$typeof===a||w.$$typeof===l||w.$$typeof===d||w.$$typeof===x||w.$$typeof===T||w.$$typeof===C||w.$$typeof===h)},Re.typeOf=E,Re}var Oe={};var La;function Qf(){return La||(La=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,o=e?Symbol.for("react.fragment"):60107,r=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,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function E(z){return typeof z=="string"||typeof z=="function"||z===o||z===u||z===s||z===r||z===p||z===f||typeof z=="object"&&z!==null&&(z.$$typeof===m||z.$$typeof===g||z.$$typeof===a||z.$$typeof===l||z.$$typeof===d||z.$$typeof===x||z.$$typeof===T||z.$$typeof===C||z.$$typeof===h)}function b(z){if(typeof z=="object"&&z!==null){var pe=z.$$typeof;switch(pe){case t:var ce=z.type;switch(ce){case c:case u:case o:case s:case r:case p:return ce;default:var re=ce&&ce.$$typeof;switch(re){case l:case d:case m:case g:case a:return re;default:return pe}}case n:return pe}}}var w=c,S=u,M=l,j=a,O=t,A=d,I=o,v=m,D=g,k=n,V=s,$=r,W=p,B=!1;function _(z){return B||(B=!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.")),P(z)||b(z)===c}function P(z){return b(z)===u}function L(z){return b(z)===l}function H(z){return b(z)===a}function q(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function K(z){return b(z)===d}function ee(z){return b(z)===o}function te(z){return b(z)===m}function ne(z){return b(z)===g}function J(z){return b(z)===n}function le(z){return b(z)===s}function Y(z){return b(z)===r}function se(z){return b(z)===p}Oe.AsyncMode=w,Oe.ConcurrentMode=S,Oe.ContextConsumer=M,Oe.ContextProvider=j,Oe.Element=O,Oe.ForwardRef=A,Oe.Fragment=I,Oe.Lazy=v,Oe.Memo=D,Oe.Portal=k,Oe.Profiler=V,Oe.StrictMode=$,Oe.Suspense=W,Oe.isAsyncMode=_,Oe.isConcurrentMode=P,Oe.isContextConsumer=L,Oe.isContextProvider=H,Oe.isElement=q,Oe.isForwardRef=K,Oe.isFragment=ee,Oe.isLazy=te,Oe.isMemo=ne,Oe.isPortal=J,Oe.isProfiler=le,Oe.isStrictMode=Y,Oe.isSuspense=se,Oe.isValidElementType=E,Oe.typeOf=b})()),Oe}var Fa;function hu(){return Fa||(Fa=1,process.env.NODE_ENV==="production"?zo.exports=Jf():zo.exports=Qf()),zo.exports}var ii,za;function eh(){if(za)return ii;za=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function r(){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 ii=r()?Object.assign:function(s,a){for(var l,c=o(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},ii}var si,_a;function Bs(){if(_a)return si;_a=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return si=e,si}var ai,Wa;function mu(){return Wa||(Wa=1,ai=Function.call.bind(Object.prototype.hasOwnProperty)),ai}var li,Ua;function th(){if(Ua)return li;Ua=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Bs(),n={},o=mu();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function r(s,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in s)if(o(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(m){p=m}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 g=u?u():"";e("Failed "+l+" type: "+p.message+(g??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},li=r,li}var ci,Ha;function nh(){if(Ha)return ci;Ha=1;var e=hu(),t=eh(),n=Bs(),o=mu(),r=th(),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 ci=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(P){var L=P&&(u&&P[u]||P[d]);if(typeof L=="function")return L}var f="<<anonymous>>",g={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:C(),arrayOf:E,element:b(),elementType:w(),instanceOf:S,node:A(),objectOf:j,oneOf:M,oneOfType:O,shape:v,exact:D};function m(P,L){return P===L?P!==0||1/P===1/L:P!==P&&L!==L}function h(P,L){this.message=P,this.data=L&&typeof L=="object"?L:{},this.stack=""}h.prototype=Error.prototype;function x(P){if(process.env.NODE_ENV!=="production")var L={},H=0;function q(ee,te,ne,J,le,Y,se){if(J=J||f,Y=Y||ne,se!==n){if(c){var z=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 z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=J+":"+ne;!L[pe]&&H<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+J+"`. 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[pe]=!0,H++)}}return te[ne]==null?ee?te[ne]===null?new h("The "+le+" `"+Y+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new h("The "+le+" `"+Y+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:P(te,ne,J,le,Y)}var K=q.bind(null,!1);return K.isRequired=q.bind(null,!0),K}function T(P){function L(H,q,K,ee,te,ne){var J=H[q],le=$(J);if(le!==P){var Y=W(J);return new h("Invalid "+ee+" `"+te+"` of type "+("`"+Y+"` supplied to `"+K+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return x(L)}function C(){return x(a)}function E(P){function L(H,q,K,ee,te){if(typeof P!="function")return new h("Property `"+te+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var ne=H[q];if(!Array.isArray(ne)){var J=$(ne);return new h("Invalid "+ee+" `"+te+"` of type "+("`"+J+"` supplied to `"+K+"`, expected an array."))}for(var le=0;le<ne.length;le++){var Y=P(ne,le,K,ee,te+"["+le+"]",n);if(Y instanceof Error)return Y}return null}return x(L)}function b(){function P(L,H,q,K,ee){var te=L[H];if(!l(te)){var ne=$(te);return new h("Invalid "+K+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return x(P)}function w(){function P(L,H,q,K,ee){var te=L[H];if(!e.isValidElementType(te)){var ne=$(te);return new h("Invalid "+K+" `"+ee+"` of type "+("`"+ne+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return x(P)}function S(P){function L(H,q,K,ee,te){if(!(H[q]instanceof P)){var ne=P.name||f,J=_(H[q]);return new h("Invalid "+ee+" `"+te+"` of type "+("`"+J+"` supplied to `"+K+"`, expected ")+("instance of `"+ne+"`."))}return null}return x(L)}function M(P){if(!Array.isArray(P))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 L(H,q,K,ee,te){for(var ne=H[q],J=0;J<P.length;J++)if(m(ne,P[J]))return null;var le=JSON.stringify(P,function(se,z){var pe=W(z);return pe==="symbol"?String(z):z});return new h("Invalid "+ee+" `"+te+"` of value `"+String(ne)+"` "+("supplied to `"+K+"`, expected one of "+le+"."))}return x(L)}function j(P){function L(H,q,K,ee,te){if(typeof P!="function")return new h("Property `"+te+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var ne=H[q],J=$(ne);if(J!=="object")return new h("Invalid "+ee+" `"+te+"` of type "+("`"+J+"` supplied to `"+K+"`, expected an object."));for(var le in ne)if(o(ne,le)){var Y=P(ne,le,K,ee,te+"."+le,n);if(Y instanceof Error)return Y}return null}return x(L)}function O(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var L=0;L<P.length;L++){var H=P[L];if(typeof H!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(H)+" at index "+L+"."),a}function q(K,ee,te,ne,J){for(var le=[],Y=0;Y<P.length;Y++){var se=P[Y],z=se(K,ee,te,ne,J,n);if(z==null)return null;z.data&&o(z.data,"expectedType")&&le.push(z.data.expectedType)}var pe=le.length>0?", expected one of type ["+le.join(", ")+"]":"";return new h("Invalid "+ne+" `"+J+"` supplied to "+("`"+te+"`"+pe+"."))}return x(q)}function A(){function P(L,H,q,K,ee){return k(L[H])?null:new h("Invalid "+K+" `"+ee+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return x(P)}function I(P,L,H,q,K){return new h((P||"React class")+": "+L+" type `"+H+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function v(P){function L(H,q,K,ee,te){var ne=H[q],J=$(ne);if(J!=="object")return new h("Invalid "+ee+" `"+te+"` of type `"+J+"` "+("supplied to `"+K+"`, expected `object`."));for(var le in P){var Y=P[le];if(typeof Y!="function")return I(K,ee,te,le,W(Y));var se=Y(ne,le,K,ee,te+"."+le,n);if(se)return se}return null}return x(L)}function D(P){function L(H,q,K,ee,te){var ne=H[q],J=$(ne);if(J!=="object")return new h("Invalid "+ee+" `"+te+"` of type `"+J+"` "+("supplied to `"+K+"`, expected `object`."));var le=t({},H[q],P);for(var Y in le){var se=P[Y];if(o(P,Y)&&typeof se!="function")return I(K,ee,te,Y,W(se));if(!se)return new h("Invalid "+ee+" `"+te+"` key `"+Y+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(H[q],null," ")+`
2
+ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var z=se(ne,Y,K,ee,te+"."+Y,n);if(z)return z}return null}return x(L)}function k(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(k);if(P===null||l(P))return!0;var L=p(P);if(L){var H=L.call(P),q;if(L!==P.entries){for(;!(q=H.next()).done;)if(!k(q.value))return!1}else for(;!(q=H.next()).done;){var K=q.value;if(K&&!k(K[1]))return!1}}else return!1;return!0;default:return!1}}function V(P,L){return P==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function $(P){var L=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":V(L,P)?"symbol":L}function W(P){if(typeof P>"u"||P===null)return""+P;var L=$(P);if(L==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return L}function B(P){var L=W(P);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function _(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return g.checkPropTypes=r,g.resetWarningCache=r.resetWarningCache,g.PropTypes=g,g},ci}var ui,qa;function oh(){if(qa)return ui;qa=1;var e=Bs();function t(){}function n(){}return n.resetWarningCache=t,ui=function(){function o(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}}o.isRequired=o;function r(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},ui}var Ga;function rh(){if(Ga)return Fo.exports;if(Ga=1,process.env.NODE_ENV!=="production"){var e=hu(),t=!0;Fo.exports=nh()(e.isElement,t)}else Fo.exports=oh()();return Fo.exports}var ih=rh();const i=Zf(ih);function gu(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=gu(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function de(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=gu(e))&&(o&&(o+=" "),o+=t);return o}function dr(e,t,n=!1){const o={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const s=r;if(s==="components"||s==="slots")o[s]={...e[s],...o[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)o[s]=a||{};else if(!a)o[s]=l;else{o[s]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;o[s][u]=dr(a[u],l[u],n)}}}else s==="className"&&n&&t.className?o.className=de(e?.className,t?.className):s==="style"&&n&&t.style?o.style={...e?.style,...t?.style}:o[s]===void 0&&(o[s]=e[s])}return o}function Ne(e,t,n=void 0){const o={};for(const r in e){const s=e[r];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]))}o[r]=a}return o}const Ya=e=>e,sh=()=>{let e=Ya;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ya}}},yu=sh();function Lt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`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.":Lt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ka(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}var _o={exports:{}},$e={};var Xa;function ah(){if(Xa)return $e;Xa=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=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"),g=Symbol.for("react.client.reference");function m(h){if(typeof h=="object"&&h!==null){var x=h.$$typeof;switch(x){case e:switch(h=h.type,h){case n:case r:case o: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 x}}case t:return x}}}return $e.ContextConsumer=s,$e.ContextProvider=a,$e.Element=e,$e.ForwardRef=l,$e.Fragment=n,$e.Lazy=p,$e.Memo=d,$e.Portal=t,$e.Profiler=r,$e.StrictMode=o,$e.Suspense=c,$e.SuspenseList=u,$e.isContextConsumer=function(h){return m(h)===s},$e.isContextProvider=function(h){return m(h)===a},$e.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},$e.isForwardRef=function(h){return m(h)===l},$e.isFragment=function(h){return m(h)===n},$e.isLazy=function(h){return m(h)===p},$e.isMemo=function(h){return m(h)===d},$e.isPortal=function(h){return m(h)===t},$e.isProfiler=function(h){return m(h)===r},$e.isStrictMode=function(h){return m(h)===o},$e.isSuspense=function(h){return m(h)===c},$e.isSuspenseList=function(h){return m(h)===u},$e.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===r||h===o||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===g||h.getModuleId!==void 0)},$e.typeOf=m,$e}var Ie={};var Za;function lh(){return Za||(Za=1,process.env.NODE_ENV!=="production"&&(function(){function e(h){if(typeof h=="object"&&h!==null){var x=h.$$typeof;switch(x){case t:switch(h=h.type,h){case o:case s:case r:case u:case d:case g: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 x}}case n:return x}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=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"),g=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");Ie.ContextConsumer=a,Ie.ContextProvider=l,Ie.Element=t,Ie.ForwardRef=c,Ie.Fragment=o,Ie.Lazy=f,Ie.Memo=p,Ie.Portal=n,Ie.Profiler=s,Ie.StrictMode=r,Ie.Suspense=u,Ie.SuspenseList=d,Ie.isContextConsumer=function(h){return e(h)===a},Ie.isContextProvider=function(h){return e(h)===l},Ie.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Ie.isForwardRef=function(h){return e(h)===c},Ie.isFragment=function(h){return e(h)===o},Ie.isLazy=function(h){return e(h)===f},Ie.isMemo=function(h){return e(h)===p},Ie.isPortal=function(h){return e(h)===n},Ie.isProfiler=function(h){return e(h)===s},Ie.isStrictMode=function(h){return e(h)===r},Ie.isSuspense=function(h){return e(h)===u},Ie.isSuspenseList=function(h){return e(h)===d},Ie.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===o||h===s||h===r||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===m||h.getModuleId!==void 0)},Ie.typeOf=e})()),Ie}var Ja;function ch(){return Ja||(Ja=1,process.env.NODE_ENV==="production"?_o.exports=ah():_o.exports=lh()),_o.exports}var yo=ch();function At(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 vu(e){if(R.isValidElement(e)||yo.isValidElementType(e)||!At(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=vu(e[n])}),t}function lt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return At(e)&&At(t)&&Object.keys(t).forEach(r=>{R.isValidElement(t[r])||yo.isValidElementType(t[r])?o[r]=t[r]:At(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&At(e[r])?o[r]=lt(e[r],t[r],n):n.clone?o[r]=At(t[r])?vu(t[r]):t[r]:o[r]=t[r]}),o}function co(e,t){return t?lt(e,t,{clone:!1}):e}const nn=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.string,i.object,i.array]):{};function Qa(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{const s=/min-width:\s*([0-9.]+)/;return+(o.match(s)?.[1]||0)-+(r.match(s)?.[1]||0)});return n.length?n.reduce((o,r)=>{const s=t[r];return delete o[r],o[r]=s,o},{...t}):t}function uh(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function dh(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\`.`:Lt(18,`(${t})`));return null}const[,o,r]=n,s=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(s)}function ph(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 o={},r=s=>(n(o,s),o);return n(r),{...e,containerQueries:r}}const jr={xs:0,sm:600,md:900,lg:1200,xl:1536},el={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${jr[e]}px)`},fh={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:jr[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ft(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const s=o.breakpoints||el;return t.reduce((a,l,c)=>(a[s.up(s.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const s=o.breakpoints||el;return Object.keys(t).reduce((a,l)=>{if(uh(s.keys,l)){const c=dh(o.containerQueries?o:fh,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(s.values||jr).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 hh(e={}){return e.keys?.reduce((n,o)=>{const r=e.up(o);return n[r]={},n},{})||{}}function tl(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function $r(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,s)=>r&&r[s]?r[s]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function pr(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=$r(e,n)||o,t&&(r=t(r,o,e)),r}function Ge(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,s=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=$r(c,o)||{};return Ft(a,l,p=>{let f=pr(u,r,p);return p===f&&typeof p=="string"&&(f=pr(u,r,`${t}${p==="default"?"":Z(p)}`,p)),n===!1?f:{[n]:f}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:nn}:{},s.filterProps=[t],s}function mh(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const gh={m:"margin",p:"padding"},yh={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},nl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vh=mh(e=>{if(e.length>2)if(nl[e])e=nl[e];else return[e];const[t,n]=e.split(""),o=gh[t],r=yh[n]||"";return Array.isArray(r)?r.map(s=>o+s):[o+r]}),Ir=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Dr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],bh=[...Ir,...Dr];function Ro(e,t,n,o){const r=$r(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${s}.`),typeof r=="string"?r.startsWith("var(")&&s===0?0:r.startsWith("var(")&&s===1?r:`calc(${s} * ${r})`:r*s):Array.isArray(r)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>r.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${a} > ${r.length-1}, you need to add the missing values.`].join(`
4
4
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
5
5
  `)));const l=r[a];return s>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof r=="function"?r:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${r}) is invalid.`,"It should be a number, an array or a function."].join(`
6
- `)),()=>{})}function Bs(e){return Ro(e,"spacing",8,"spacing")}function Oo(e,t){return typeof t=="string"||t==null?t:e(t)}function bh(e,t){return n=>e.reduce((o,r)=>(o[r]=Oo(t,n),o),{})}function xh(e,t,n,o){if(!t.includes(n))return null;const r=yh(n),s=bh(r,o),a=e[n];return Ft(e,a,s)}function vu(e,t){const n=Bs(e.theme);return Object.keys(e).map(o=>xh(e,t,o,n)).reduce(co,{})}function Ue(e){return vu(e,Ir)}Ue.propTypes=process.env.NODE_ENV!=="production"?Ir.reduce((e,t)=>(e[t]=nn,e),{}):{};Ue.filterProps=Ir;function He(e){return vu(e,Dr)}He.propTypes=process.env.NODE_ENV!=="production"?Dr.reduce((e,t)=>(e[t]=nn,e),{}):{};He.filterProps=Dr;process.env.NODE_ENV!=="production"&&vh.reduce((e,t)=>(e[t]=nn,e),{});function Br(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(s=>{o[s]=r}),o),{}),n=o=>Object.keys(o).reduce((r,s)=>t[s]?co(r,t[s](o)):r,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,r)=>Object.assign(o,r.propTypes),{}):{},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function dt(e){return typeof e!="number"?e:`${e}px solid`}function yt(e,t){return Ge({prop:e,themeKey:"borders",transform:t})}const wh=yt("border",dt),Th=yt("borderTop",dt),Ch=yt("borderRight",dt),Sh=yt("borderBottom",dt),Eh=yt("borderLeft",dt),Ph=yt("borderColor"),Rh=yt("borderTopColor"),Oh=yt("borderRightColor"),Ah=yt("borderBottomColor"),Mh=yt("borderLeftColor"),kh=yt("outline",dt),jh=yt("outlineColor"),Vr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ro(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:Oo(t,o)});return Ft(e,e.borderRadius,n)}return null};Vr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:nn}:{};Vr.filterProps=["borderRadius"];Br(wh,Th,Ch,Sh,Eh,Ph,Rh,Oh,Ah,Mh,Vr,kh,jh);const Nr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ro(e.theme,"spacing",8,"gap"),n=o=>({gap:Oo(t,o)});return Ft(e,e.gap,n)}return null};Nr.propTypes=process.env.NODE_ENV!=="production"?{gap:nn}:{};Nr.filterProps=["gap"];const Lr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ro(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:Oo(t,o)});return Ft(e,e.columnGap,n)}return null};Lr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:nn}:{};Lr.filterProps=["columnGap"];const Fr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ro(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:Oo(t,o)});return Ft(e,e.rowGap,n)}return null};Fr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:nn}:{};Fr.filterProps=["rowGap"];const $h=Ge({prop:"gridColumn"}),Ih=Ge({prop:"gridRow"}),Dh=Ge({prop:"gridAutoFlow"}),Bh=Ge({prop:"gridAutoColumns"}),Vh=Ge({prop:"gridAutoRows"}),Nh=Ge({prop:"gridTemplateColumns"}),Lh=Ge({prop:"gridTemplateRows"}),Fh=Ge({prop:"gridTemplateAreas"}),zh=Ge({prop:"gridArea"});Br(Nr,Lr,Fr,$h,Ih,Dh,Bh,Vh,Nh,Lh,Fh,zh);function Bn(e,t){return t==="grey"?t:e}const _h=Ge({prop:"color",themeKey:"palette",transform:Bn}),Wh=Ge({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bn}),Uh=Ge({prop:"backgroundColor",themeKey:"palette",transform:Bn});Br(_h,Wh,Uh);function at(e){return e<=1&&e!==0?`${e*100}%`:e}const Hh=Ge({prop:"width",transform:at}),Vs=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||jr[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:at(n)}};return Ft(e,e.maxWidth,t)}return null};Vs.filterProps=["maxWidth"];const qh=Ge({prop:"minWidth",transform:at}),Gh=Ge({prop:"height",transform:at}),Yh=Ge({prop:"maxHeight",transform:at}),Kh=Ge({prop:"minHeight",transform:at});Ge({prop:"size",cssProperty:"width",transform:at});Ge({prop:"size",cssProperty:"height",transform:at});const Xh=Ge({prop:"boxSizing"});Br(Hh,Vs,qh,Gh,Yh,Kh,Xh);const Ao={border:{themeKey:"borders",transform:dt},borderTop:{themeKey:"borders",transform:dt},borderRight:{themeKey:"borders",transform:dt},borderBottom:{themeKey:"borders",transform:dt},borderLeft:{themeKey:"borders",transform:dt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:dt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vr},color:{themeKey:"palette",transform:Bn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bn},backgroundColor:{themeKey:"palette",transform:Bn},p:{style:He},pt:{style:He},pr:{style:He},pb:{style:He},pl:{style:He},px:{style:He},py:{style:He},padding:{style:He},paddingTop:{style:He},paddingRight:{style:He},paddingBottom:{style:He},paddingLeft:{style:He},paddingX:{style:He},paddingY:{style:He},paddingInline:{style:He},paddingInlineStart:{style:He},paddingInlineEnd:{style:He},paddingBlock:{style:He},paddingBlockStart:{style:He},paddingBlockEnd:{style:He},m:{style:Ue},mt:{style:Ue},mr:{style:Ue},mb:{style:Ue},ml:{style:Ue},mx:{style:Ue},my:{style:Ue},margin:{style:Ue},marginTop:{style:Ue},marginRight:{style:Ue},marginBottom:{style:Ue},marginLeft:{style:Ue},marginX:{style:Ue},marginY:{style:Ue},marginInline:{style:Ue},marginInlineStart:{style:Ue},marginInlineEnd:{style:Ue},marginBlock:{style:Ue},marginBlockStart:{style:Ue},marginBlockEnd:{style:Ue},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:Nr},rowGap:{style:Fr},columnGap:{style:Lr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:at},maxWidth:{style:Vs},minWidth:{transform:at},height:{transform:at},maxHeight:{transform:at},minHeight:{transform:at},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Zh(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function Jh(e,t){return typeof e=="function"?e(t):e}function Qh(){function e(n,o,r,s){const a={[n]:o,theme:r},l=s[n];if(!l)return{[n]:o};const{cssProperty:c=n,themeKey:u,transform:d,style:p}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const f=$r(r,u)||{};return p?p(a):Ft(a,o,m=>{let h=pr(f,d,m);return m===h&&typeof m=="string"&&(h=pr(f,d,`${n}${m==="default"?"":Z(m)}`,m)),c===!1?h:{[c]:h}})}function t(n){const{sx:o,theme:r={},nested:s}=n||{};if(!o)return null;const a=r.unstable_sxConfig??Ao;function l(c){let u=c;if(typeof c=="function")u=c(r);else if(typeof c!="object")return c;if(!u)return null;const d=fh(r.breakpoints),p=Object.keys(d);let f=d;return Object.keys(u).forEach(g=>{const m=Jh(u[g],r);if(m!=null)if(typeof m=="object")if(a[g])f=co(f,e(g,m,r,a));else{const h=Ft({theme:r},m,x=>({[g]:x}));Zh(h,m)?f[g]=t({sx:m,theme:r,nested:!0}):f=co(f,h)}else f=co(f,e(g,m,r,a))}),!s&&r.modularCssLayers?{"@layer sx":Ja(r,el(p,f))}:Ja(r,el(p,f))}return Array.isArray(o)?o.map(l):l(o)}return t}const Vn=Qh();Vn.filterProps=["sx"];const em=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ao;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function tm(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=em(n);let s;return Array.isArray(t)?s=[o,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return At(l)?{...o,...l}:o}:s={...o,...t},{...r,sx:s}}function bu(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ns(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}].`),bu(e,t,n)}function nm(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(o=>o+o)),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((o,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Xt(e){if(e.type)return e;if(e.charAt(0)==="#")return Xt(nm(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.
6
+ `)),()=>{})}function Vs(e){return Ro(e,"spacing",8,"spacing")}function Oo(e,t){return typeof t=="string"||t==null?t:e(t)}function xh(e,t){return n=>e.reduce((o,r)=>(o[r]=Oo(t,n),o),{})}function wh(e,t,n,o){if(!t.includes(n))return null;const r=vh(n),s=xh(r,o),a=e[n];return Ft(e,a,s)}function bu(e,t){const n=Vs(e.theme);return Object.keys(e).map(o=>wh(e,t,o,n)).reduce(co,{})}function Ue(e){return bu(e,Ir)}Ue.propTypes=process.env.NODE_ENV!=="production"?Ir.reduce((e,t)=>(e[t]=nn,e),{}):{};Ue.filterProps=Ir;function He(e){return bu(e,Dr)}He.propTypes=process.env.NODE_ENV!=="production"?Dr.reduce((e,t)=>(e[t]=nn,e),{}):{};He.filterProps=Dr;process.env.NODE_ENV!=="production"&&bh.reduce((e,t)=>(e[t]=nn,e),{});function Br(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(s=>{o[s]=r}),o),{}),n=o=>Object.keys(o).reduce((r,s)=>t[s]?co(r,t[s](o)):r,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,r)=>Object.assign(o,r.propTypes),{}):{},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function dt(e){return typeof e!="number"?e:`${e}px solid`}function yt(e,t){return Ge({prop:e,themeKey:"borders",transform:t})}const Th=yt("border",dt),Ch=yt("borderTop",dt),Sh=yt("borderRight",dt),Eh=yt("borderBottom",dt),Ph=yt("borderLeft",dt),Rh=yt("borderColor"),Oh=yt("borderTopColor"),Ah=yt("borderRightColor"),Mh=yt("borderBottomColor"),kh=yt("borderLeftColor"),jh=yt("outline",dt),$h=yt("outlineColor"),Vr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ro(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:Oo(t,o)});return Ft(e,e.borderRadius,n)}return null};Vr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:nn}:{};Vr.filterProps=["borderRadius"];Br(Th,Ch,Sh,Eh,Ph,Rh,Oh,Ah,Mh,kh,Vr,jh,$h);const Nr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ro(e.theme,"spacing",8,"gap"),n=o=>({gap:Oo(t,o)});return Ft(e,e.gap,n)}return null};Nr.propTypes=process.env.NODE_ENV!=="production"?{gap:nn}:{};Nr.filterProps=["gap"];const Lr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ro(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:Oo(t,o)});return Ft(e,e.columnGap,n)}return null};Lr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:nn}:{};Lr.filterProps=["columnGap"];const Fr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ro(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:Oo(t,o)});return Ft(e,e.rowGap,n)}return null};Fr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:nn}:{};Fr.filterProps=["rowGap"];const Ih=Ge({prop:"gridColumn"}),Dh=Ge({prop:"gridRow"}),Bh=Ge({prop:"gridAutoFlow"}),Vh=Ge({prop:"gridAutoColumns"}),Nh=Ge({prop:"gridAutoRows"}),Lh=Ge({prop:"gridTemplateColumns"}),Fh=Ge({prop:"gridTemplateRows"}),zh=Ge({prop:"gridTemplateAreas"}),_h=Ge({prop:"gridArea"});Br(Nr,Lr,Fr,Ih,Dh,Bh,Vh,Nh,Lh,Fh,zh,_h);function Bn(e,t){return t==="grey"?t:e}const Wh=Ge({prop:"color",themeKey:"palette",transform:Bn}),Uh=Ge({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bn}),Hh=Ge({prop:"backgroundColor",themeKey:"palette",transform:Bn});Br(Wh,Uh,Hh);function at(e){return e<=1&&e!==0?`${e*100}%`:e}const qh=Ge({prop:"width",transform:at}),Ns=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||jr[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:at(n)}};return Ft(e,e.maxWidth,t)}return null};Ns.filterProps=["maxWidth"];const Gh=Ge({prop:"minWidth",transform:at}),Yh=Ge({prop:"height",transform:at}),Kh=Ge({prop:"maxHeight",transform:at}),Xh=Ge({prop:"minHeight",transform:at});Ge({prop:"size",cssProperty:"width",transform:at});Ge({prop:"size",cssProperty:"height",transform:at});const Zh=Ge({prop:"boxSizing"});Br(qh,Ns,Gh,Yh,Kh,Xh,Zh);const Ao={border:{themeKey:"borders",transform:dt},borderTop:{themeKey:"borders",transform:dt},borderRight:{themeKey:"borders",transform:dt},borderBottom:{themeKey:"borders",transform:dt},borderLeft:{themeKey:"borders",transform:dt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:dt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vr},color:{themeKey:"palette",transform:Bn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bn},backgroundColor:{themeKey:"palette",transform:Bn},p:{style:He},pt:{style:He},pr:{style:He},pb:{style:He},pl:{style:He},px:{style:He},py:{style:He},padding:{style:He},paddingTop:{style:He},paddingRight:{style:He},paddingBottom:{style:He},paddingLeft:{style:He},paddingX:{style:He},paddingY:{style:He},paddingInline:{style:He},paddingInlineStart:{style:He},paddingInlineEnd:{style:He},paddingBlock:{style:He},paddingBlockStart:{style:He},paddingBlockEnd:{style:He},m:{style:Ue},mt:{style:Ue},mr:{style:Ue},mb:{style:Ue},ml:{style:Ue},mx:{style:Ue},my:{style:Ue},margin:{style:Ue},marginTop:{style:Ue},marginRight:{style:Ue},marginBottom:{style:Ue},marginLeft:{style:Ue},marginX:{style:Ue},marginY:{style:Ue},marginInline:{style:Ue},marginInlineStart:{style:Ue},marginInlineEnd:{style:Ue},marginBlock:{style:Ue},marginBlockStart:{style:Ue},marginBlockEnd:{style:Ue},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:Nr},rowGap:{style:Fr},columnGap:{style:Lr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:at},maxWidth:{style:Ns},minWidth:{transform:at},height:{transform:at},maxHeight:{transform:at},minHeight:{transform:at},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Jh(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function Qh(e,t){return typeof e=="function"?e(t):e}function em(){function e(n,o,r,s){const a={[n]:o,theme:r},l=s[n];if(!l)return{[n]:o};const{cssProperty:c=n,themeKey:u,transform:d,style:p}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const f=$r(r,u)||{};return p?p(a):Ft(a,o,m=>{let h=pr(f,d,m);return m===h&&typeof m=="string"&&(h=pr(f,d,`${n}${m==="default"?"":Z(m)}`,m)),c===!1?h:{[c]:h}})}function t(n){const{sx:o,theme:r={},nested:s}=n||{};if(!o)return null;const a=r.unstable_sxConfig??Ao;function l(c){let u=c;if(typeof c=="function")u=c(r);else if(typeof c!="object")return c;if(!u)return null;const d=hh(r.breakpoints),p=Object.keys(d);let f=d;return Object.keys(u).forEach(g=>{const m=Qh(u[g],r);if(m!=null)if(typeof m=="object")if(a[g])f=co(f,e(g,m,r,a));else{const h=Ft({theme:r},m,x=>({[g]:x}));Jh(h,m)?f[g]=t({sx:m,theme:r,nested:!0}):f=co(f,h)}else f=co(f,e(g,m,r,a))}),!s&&r.modularCssLayers?{"@layer sx":Qa(r,tl(p,f))}:Qa(r,tl(p,f))}return Array.isArray(o)?o.map(l):l(o)}return t}const Vn=em();Vn.filterProps=["sx"];const tm=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Ao;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function nm(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=tm(n);let s;return Array.isArray(t)?s=[o,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return At(l)?{...o,...l}:o}:s={...o,...t},{...r,sx:s}}function xu(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ls(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}].`),xu(e,t,n)}function om(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(o=>o+o)),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((o,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Xt(e){if(e.type)return e;if(e.charAt(0)==="#")return Xt(om(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
7
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Lt(9,e));let o=e.substring(t+1,e.length-1),r;if(n==="color"){if(o=o.split(" "),r=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${r}\` color space.
8
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Lt(10,r))}else o=o.split(",");return o=o.map(s=>parseFloat(s)),{type:n,values:o,colorSpace:r}}const om=e=>{const t=Xt(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},oo=(e,t)=>{try{return om(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function zr(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,s)=>s<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function xu(e){e=Xt(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,s=o*Math.min(r,1-r),a=(u,d=(u+n/30)%12)=>r-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])),zr({type:l,values:c})}function Fi(e){e=Xt(e);let t=e.type==="hsl"||e.type==="hsla"?Xt(xu(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 nl(e,t){const n=Fi(e),o=Fi(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function fr(e,t){return e=Xt(e),t=Ns(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,zr(e)}function sn(e,t,n){try{return fr(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function _r(e,t){if(e=Xt(e),t=Ns(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 zr(e)}function Ae(e,t,n){try{return _r(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Wr(e,t){if(e=Xt(e),t=Ns(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 zr(e)}function Me(e,t,n){try{return Wr(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function rm(e,t=.15){return Fi(e)>.5?_r(e,t):Wr(e,t)}function Wo(e,t,n){try{return rm(e,t)}catch{return e}}const vo={black:"#000",white:"#fff"},im={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"},Cn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Sn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Jn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},En={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Pn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Rn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function wu(){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:vo.white,default:vo.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 Tu=wu();function Cu(){return{text:{primary:vo.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:vo.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 zi=Cu();function ol(e,t,n,o){const r=o.light||o,s=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wr(e.main,r):t==="dark"&&(e.dark=_r(e.main,s)))}function rl(e,t,n,o,r){const s=r.light||r,a=r.dark||r*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]: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 sm(e="light"){return e==="dark"?{main:En[200],light:En[50],dark:En[400]}:{main:En[700],light:En[400],dark:En[800]}}function am(e="light"){return e==="dark"?{main:Cn[200],light:Cn[50],dark:Cn[400]}:{main:Cn[500],light:Cn[300],dark:Cn[700]}}function lm(e="light"){return e==="dark"?{main:Sn[500],light:Sn[300],dark:Sn[700]}:{main:Sn[700],light:Sn[400],dark:Sn[800]}}function cm(e="light"){return e==="dark"?{main:Pn[400],light:Pn[300],dark:Pn[700]}:{main:Pn[700],light:Pn[500],dark:Pn[900]}}function um(e="light"){return e==="dark"?{main:Rn[400],light:Rn[300],dark:Rn[700]}:{main:Rn[800],light:Rn[500],dark:Rn[900]}}function dm(e="light"){return e==="dark"?{main:Jn[400],light:Jn[300],dark:Jn[700]}:{main:"#ed6c02",light:Jn[500],dark:Jn[900]}}function pm(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ls(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:r,...s}=e,a=e.primary||sm(t),l=e.secondary||am(t),c=e.error||lm(t),u=e.info||cm(t),d=e.success||um(t),p=e.warning||dm(t);function f(x){if(r)return pm(x);const T=nl(x,zi.text.primary)>=n?zi.text.primary:Tu.text.primary;if(process.env.NODE_ENV!=="production"){const C=nl(x,T);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${T} on ${x}`,"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(`
8
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Lt(10,r))}else o=o.split(",");return o=o.map(s=>parseFloat(s)),{type:n,values:o,colorSpace:r}}const rm=e=>{const t=Xt(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},oo=(e,t)=>{try{return rm(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function zr(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,s)=>s<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function wu(e){e=Xt(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,s=o*Math.min(r,1-r),a=(u,d=(u+n/30)%12)=>r-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])),zr({type:l,values:c})}function Fi(e){e=Xt(e);let t=e.type==="hsl"||e.type==="hsla"?Xt(wu(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 ol(e,t){const n=Fi(e),o=Fi(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function fr(e,t){return e=Xt(e),t=Ls(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,zr(e)}function sn(e,t,n){try{return fr(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function _r(e,t){if(e=Xt(e),t=Ls(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 zr(e)}function Ae(e,t,n){try{return _r(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Wr(e,t){if(e=Xt(e),t=Ls(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 zr(e)}function Me(e,t,n){try{return Wr(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function im(e,t=.15){return Fi(e)>.5?_r(e,t):Wr(e,t)}function Wo(e,t,n){try{return im(e,t)}catch{return e}}const vo={black:"#000",white:"#fff"},sm={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"},Cn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Sn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Jn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},En={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Pn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Rn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Tu(){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:vo.white,default:vo.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 Cu=Tu();function Su(){return{text:{primary:vo.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:vo.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 zi=Su();function rl(e,t,n,o){const r=o.light||o,s=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wr(e.main,r):t==="dark"&&(e.dark=_r(e.main,s)))}function il(e,t,n,o,r){const s=r.light||r,a=r.dark||r*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]: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 am(e="light"){return e==="dark"?{main:En[200],light:En[50],dark:En[400]}:{main:En[700],light:En[400],dark:En[800]}}function lm(e="light"){return e==="dark"?{main:Cn[200],light:Cn[50],dark:Cn[400]}:{main:Cn[500],light:Cn[300],dark:Cn[700]}}function cm(e="light"){return e==="dark"?{main:Sn[500],light:Sn[300],dark:Sn[700]}:{main:Sn[700],light:Sn[400],dark:Sn[800]}}function um(e="light"){return e==="dark"?{main:Pn[400],light:Pn[300],dark:Pn[700]}:{main:Pn[700],light:Pn[500],dark:Pn[900]}}function dm(e="light"){return e==="dark"?{main:Rn[400],light:Rn[300],dark:Rn[700]}:{main:Rn[800],light:Rn[500],dark:Rn[900]}}function pm(e="light"){return e==="dark"?{main:Jn[400],light:Jn[300],dark:Jn[700]}:{main:"#ed6c02",light:Jn[500],dark:Jn[900]}}function fm(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Fs(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:r,...s}=e,a=e.primary||am(t),l=e.secondary||lm(t),c=e.error||cm(t),u=e.info||um(t),d=e.success||dm(t),p=e.warning||pm(t);function f(x){if(r)return fm(x);const T=ol(x,zi.text.primary)>=n?zi.text.primary:Cu.text.primary;if(process.env.NODE_ENV!=="production"){const C=ol(x,T);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${T} on ${x}`,"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
9
  `))}return T}const g=({color:x,name:T,mainShade:C=500,lightShade:E=300,darkShade:b=700})=>{if(x={...x},!x.main&&x[C]&&(x.main=x[C]),!x.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${T?` (${T})`:""} provided to augmentColor(color) is invalid.
10
10
  The color object needs to have a \`main\` property or a \`${C}\` property.`:Lt(11,T?` (${T})`:"",C));if(typeof x.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${T?` (${T})`:""} provided to augmentColor(color) is invalid.
11
11
  \`color.main\` should be a string, but \`${JSON.stringify(x.main)}\` was provided instead.
@@ -20,21 +20,21 @@ const theme1 = createTheme({ palette: {
20
20
 
21
21
  const theme2 = createTheme({ palette: {
22
22
  primary: { main: green[500] },
23
- } });`:Lt(12,T?` (${T})`:"",JSON.stringify(x.main)));return r?(rl(r,x,"light",E,o),rl(r,x,"dark",b,o)):(ol(x,"light",E,o),ol(x,"dark",b,o)),x.contrastText||(x.contrastText=f(x.main)),x};let m;return t==="light"?m=wu():t==="dark"&&(m=Cu()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),lt({common:{...vo},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:c,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:im,contrastThreshold:n,getContrastText:f,augmentColor:g,tonalOffset:o,...m},s)}function fm(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 hm={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 mm(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var gm=/[A-Z]|^ms/g,ym=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Su=function(t){return t.charCodeAt(1)===45},il=function(t){return t!=null&&typeof t!="boolean"},di=mm(function(e){return Su(e)?e:e.replace(gm,"-$&").toLowerCase()}),sl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ym,function(o,r,s){return Yt={name:r,styles:s,next:Yt},r})}return hm[t]!==1&&!Su(t)&&typeof n=="number"&&n!==0?n+"px":n};function hr(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Yt={name:r.name,styles:r.styles,next:Yt},r.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)Yt={name:a.name,styles:a.styles,next:Yt},a=a.next;var l=s.styles+";";return l}return vm(e,t,n)}}var c=n;return c}function vm(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=hr(e,t,n[r])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var l=a;il(l)&&(o+=di(s)+":"+sl(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)il(a[c])&&(o+=di(s)+":"+sl(s,a[c])+";");else{var u=hr(e,t,a);switch(s){case"animation":case"animationName":{o+=di(s)+":"+u+";";break}default:o+=s+"{"+u+"}"}}}return o}var al=/label:\s*([^\s;{]+)\s*(;|$)/g,Yt;function bm(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";Yt=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,r+=hr(n,t,s);else{var a=s;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=hr(n,t,e[l]),o){var c=s;r+=c[l]}al.lastIndex=0;for(var u="",d;(d=al.exec(r))!==null;)u+="-"+d[1];var p=fm(r)+u;return{name:p,styles:r,next:Yt}}function xm(e,t){const n=qf(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const r=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
24
- `)):o.some(s=>s===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...o)}:n}function wm(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ll=[];function yn(e){return ll[0]=e,bm(ll)}const Tm="exact-prop: ​";function Eu(e){return process.env.NODE_ENV==="production"?e:{...e,[Tm]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}const Zt=typeof window<"u"?R.useLayoutEffect:R.useEffect,Cm=R.createContext();process.env.NODE_ENV!=="production"&&(i.node,i.bool);const Ur=()=>R.useContext(Cm)??!1,Sm=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(i.node,i.object);function Em(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?dr(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?dr(r,o,t.components.mergeClassNameAndStyle):o}function Pm({props:e,name:t}){const n=R.useContext(Sm);return Em({props:e,name:t,theme:{components:n}})}let cl=0;function Rm(e){const[t,n]=R.useState(e),o=e||t;return R.useEffect(()=>{t==null&&(cl+=1,n(`mui-${cl}`))},[t]),o}const Om={...R},ul=Om.useId;function Mo(e){if(ul!==void 0){const t=ul();return e??t}return Rm(e)}const Am=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function Mm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,s=Am(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)-o/100}${n})`}function u(f,g){const m=a.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:g)-o/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 g=a.indexOf(f);return g===0?l(a[1]):g===a.length-1?c(a[g]):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,...r}}const km={borderRadius:4};function jm(e=8,t=Bs({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function $m(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Pu(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:s={},...a}=e,l=Mm(n),c=jm(r);let u=lt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...km,...s}},a);return u=dh(u),u.applyStyles=$m,u=t.reduce((d,p)=>lt(d,p),u),u.unstable_sxConfig={...Ao,...a?.unstable_sxConfig},u.unstable_sx=function(p){return Vn({sx:p,theme:this})},u}const dl=(e,t,n,o=[])=>{let r=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(r)?r[Number(s)]=n:r&&typeof r=="object"&&(r[s]=n):r&&typeof r=="object"&&(r[s]||(r[s]=o.includes(s)?[]:{}),r=r[s])})},Im=(e,t,n)=>{function o(r,s=[],a=[]){Object.entries(r).forEach(([l,c])=>{(!n||n&&!n([...s,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...s,l],Array.isArray(c)?[...a,l]:a):t([...s,l],c,a))})}o(e)},Dm=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function pi(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},s={},a={};return Im(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,p=Dm(l,c);Object.assign(r,{[d]:p}),dl(s,l,`var(${d})`,u),dl(a,l,`var(${d}, ${p})`,u)}},l=>l[0]==="vars"),{css:r,vars:s,varsWithDefaults:a}}function Bm(e,t={}){const{getSelector:n=T,disableCssColorScheme:o,colorSchemeSelector:r,enableContrastVars:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:f}=pi(u,t);let g=f;const m={},{[c]:h,...x}=a;if(Object.entries(x||{}).forEach(([b,w])=>{const{vars:S,css:M,varsWithDefaults:j}=pi(w,t);g=lt(g,j),m[b]={css:M,vars:S}}),h){const{css:b,vars:w,varsWithDefaults:S}=pi(h,t);g=lt(g,S),m[c]={css:b,vars:w}}function T(b,w){let S=r;if(r==="class"&&(S=".%s"),r==="data"&&(S="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(S=`[${r}="%s"]`),b){if(S==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${a[b]?.palette?.mode||b})`]:{":root":w}};if(S)return e.defaultColorScheme===b?`:root, ${S.replace("%s",String(b))}`:S.replace("%s",String(b))}return":root"}return{vars:g,generateThemeVars:()=>{let b={...d};return Object.entries(m).forEach(([,{vars:w}])=>{b=lt(b,w)}),b},generateStyleSheets:()=>{const b=[],w=e.defaultColorScheme||"light";function S(O,A){Object.keys(A).length&&b.push(typeof O=="string"?{[O]:{...A}}:O)}S(n(void 0,{...p}),p);const{[w]:M,...j}=m;if(M){const{css:O}=M,A=a[w]?.palette?.mode,I=!o&&A?{colorScheme:A,...O}:{...O};S(n(w,{...I}),I)}return Object.entries(j).forEach(([O,{css:A}])=>{const I=a[O]?.palette?.mode,v=!o&&I?{colorScheme:I,...A}:{...A};S(n(O,{...v}),v)}),s&&b.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)"}}),b}}}function Vm(e){const t={};return Object.entries(e).forEach(o=>{const[r,s]=o;typeof s=="object"&&(t[r]=`${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 Nm(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 Lm={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 ke(e,t,n="Mui"){const o=Lm[t];return o?`${n}-${o}`:`${gu.generate(e)}-${t}`}function Fm(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function zm(e){return Math.round(e*1e5)/1e5}const pl={textTransform:"uppercase"},fl='"Roboto", "Helvetica", "Arial", sans-serif';function _m(e,t){const{fontFamily:n=fl,fontSize:o=14,fontWeightLight:r=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 o!="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=o/14,g=d||(x=>`${x/c*f}rem`),m=(x,T,C,E,b)=>({fontFamily:n,fontWeight:x,fontSize:g(T),lineHeight:C,...n===fl?{letterSpacing:`${zm(E/T)}em`}:{},...b,...u}),h={h1:m(r,96,1.167,-1.5),h2:m(r,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,pl),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,pl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return lt({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l,...h},p,{clone:!1})}const Wm=.2,Um=.14,Hm=.12;function _e(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Wm})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Um})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Hm})`].join(",")}const qm=["none",_e(0,2,1,-1,0,1,1,0,0,1,3,0),_e(0,3,1,-2,0,2,2,0,0,1,5,0),_e(0,3,3,-2,0,3,4,0,0,1,8,0),_e(0,2,4,-1,0,4,5,0,0,1,10,0),_e(0,3,5,-1,0,5,8,0,0,1,14,0),_e(0,3,5,-1,0,6,10,0,0,1,18,0),_e(0,4,5,-2,0,7,10,1,0,2,16,1),_e(0,5,5,-3,0,8,10,1,0,3,14,2),_e(0,5,6,-3,0,9,12,1,0,3,16,2),_e(0,6,6,-3,0,10,14,1,0,4,18,3),_e(0,6,7,-4,0,11,15,1,0,4,20,3),_e(0,7,8,-4,0,12,17,2,0,5,22,4),_e(0,7,8,-4,0,13,19,2,0,5,24,4),_e(0,7,9,-4,0,14,21,2,0,5,26,4),_e(0,8,9,-5,0,15,22,2,0,6,28,5),_e(0,8,10,-5,0,16,24,2,0,6,30,5),_e(0,8,11,-5,0,17,26,2,0,6,32,5),_e(0,9,11,-5,0,18,28,2,0,7,34,6),_e(0,9,12,-6,0,19,29,2,0,7,36,6),_e(0,10,13,-6,0,20,31,3,0,8,38,7),_e(0,10,13,-6,0,21,33,3,0,8,40,7),_e(0,10,14,-6,0,22,35,3,0,8,42,7),_e(0,11,14,-7,0,23,36,3,0,9,44,8),_e(0,11,15,-7,0,24,38,3,0,9,46,8)],Gm={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)"},Ru={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hl(e){return`${Math.round(e)}ms`}function Ym(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Km(e){const t={...Gm,...e.easing},n={...Ru,...e.duration};return{getAutoHeightDuration:Ym,create:(r=["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(r)&&!Array.isArray(r)&&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(r)?r:[r]).map(d=>`${d} ${typeof a=="string"?a:hl(a)} ${l} ${typeof c=="string"?c:hl(c)}`).join(",")},...e,easing:t,duration:n}}const Xm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Zm(e){return At(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ou(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let s=0;s<r.length;s++){const[a,l]=r[s];!Zm(l)||a.startsWith("unstable_")?delete o[a]:At(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
23
+ } });`:Lt(12,T?` (${T})`:"",JSON.stringify(x.main)));return r?(il(r,x,"light",E,o),il(r,x,"dark",b,o)):(rl(x,"light",E,o),rl(x,"dark",b,o)),x.contrastText||(x.contrastText=f(x.main)),x};let m;return t==="light"?m=Tu():t==="dark"&&(m=Su()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),lt({common:{...vo},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:c,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:sm,contrastThreshold:n,getContrastText:f,augmentColor:g,tonalOffset:o,...m},s)}function hm(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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 mm={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 gm(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ym=/[A-Z]|^ms/g,vm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Eu=function(t){return t.charCodeAt(1)===45},sl=function(t){return t!=null&&typeof t!="boolean"},di=gm(function(e){return Eu(e)?e:e.replace(ym,"-$&").toLowerCase()}),al=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(vm,function(o,r,s){return Yt={name:r,styles:s,next:Yt},r})}return mm[t]!==1&&!Eu(t)&&typeof n=="number"&&n!==0?n+"px":n};function hr(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Yt={name:r.name,styles:r.styles,next:Yt},r.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)Yt={name:a.name,styles:a.styles,next:Yt},a=a.next;var l=s.styles+";";return l}return bm(e,t,n)}}var c=n;return c}function bm(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=hr(e,t,n[r])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var l=a;sl(l)&&(o+=di(s)+":"+al(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)sl(a[c])&&(o+=di(s)+":"+al(s,a[c])+";");else{var u=hr(e,t,a);switch(s){case"animation":case"animationName":{o+=di(s)+":"+u+";";break}default:o+=s+"{"+u+"}"}}}return o}var ll=/label:\s*([^\s;{]+)\s*(;|$)/g,Yt;function xm(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";Yt=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,r+=hr(n,t,s);else{var a=s;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=hr(n,t,e[l]),o){var c=s;r+=c[l]}ll.lastIndex=0;for(var u="",d;(d=ll.exec(r))!==null;)u+="-"+d[1];var p=hm(r)+u;return{name:p,styles:r,next:Yt}}function wm(e,t){const n=Gf(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const r=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
24
+ `)):o.some(s=>s===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...o)}:n}function Tm(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const cl=[];function yn(e){return cl[0]=e,xm(cl)}const Cm="exact-prop: ​";function Pu(e){return process.env.NODE_ENV==="production"?e:{...e,[Cm]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}const Zt=typeof window<"u"?R.useLayoutEffect:R.useEffect,Sm=R.createContext();process.env.NODE_ENV!=="production"&&(i.node,i.bool);const Ur=()=>R.useContext(Sm)??!1,Em=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(i.node,i.object);function Pm(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?dr(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?dr(r,o,t.components.mergeClassNameAndStyle):o}function Rm({props:e,name:t}){const n=R.useContext(Em);return Pm({props:e,name:t,theme:{components:n}})}let ul=0;function Om(e){const[t,n]=R.useState(e),o=e||t;return R.useEffect(()=>{t==null&&(ul+=1,n(`mui-${ul}`))},[t]),o}const Am={...R},dl=Am.useId;function Mo(e){if(dl!==void 0){const t=dl();return e??t}return Om(e)}const Mm=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function km(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,s=Mm(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)-o/100}${n})`}function u(f,g){const m=a.indexOf(g);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:g)-o/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 g=a.indexOf(f);return g===0?l(a[1]):g===a.length-1?c(a[g]):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,...r}}const jm={borderRadius:4};function $m(e=8,t=Vs({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Im(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Ru(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:s={},...a}=e,l=km(n),c=$m(r);let u=lt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...jm,...s}},a);return u=ph(u),u.applyStyles=Im,u=t.reduce((d,p)=>lt(d,p),u),u.unstable_sxConfig={...Ao,...a?.unstable_sxConfig},u.unstable_sx=function(p){return Vn({sx:p,theme:this})},u}const pl=(e,t,n,o=[])=>{let r=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(r)?r[Number(s)]=n:r&&typeof r=="object"&&(r[s]=n):r&&typeof r=="object"&&(r[s]||(r[s]=o.includes(s)?[]:{}),r=r[s])})},Dm=(e,t,n)=>{function o(r,s=[],a=[]){Object.entries(r).forEach(([l,c])=>{(!n||n&&!n([...s,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...s,l],Array.isArray(c)?[...a,l]:a):t([...s,l],c,a))})}o(e)},Bm=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function pi(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},s={},a={};return Dm(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,p=Bm(l,c);Object.assign(r,{[d]:p}),pl(s,l,`var(${d})`,u),pl(a,l,`var(${d}, ${p})`,u)}},l=>l[0]==="vars"),{css:r,vars:s,varsWithDefaults:a}}function Vm(e,t={}){const{getSelector:n=T,disableCssColorScheme:o,colorSchemeSelector:r,enableContrastVars:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:f}=pi(u,t);let g=f;const m={},{[c]:h,...x}=a;if(Object.entries(x||{}).forEach(([b,w])=>{const{vars:S,css:M,varsWithDefaults:j}=pi(w,t);g=lt(g,j),m[b]={css:M,vars:S}}),h){const{css:b,vars:w,varsWithDefaults:S}=pi(h,t);g=lt(g,S),m[c]={css:b,vars:w}}function T(b,w){let S=r;if(r==="class"&&(S=".%s"),r==="data"&&(S="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(S=`[${r}="%s"]`),b){if(S==="media")return e.defaultColorScheme===b?":root":{[`@media (prefers-color-scheme: ${a[b]?.palette?.mode||b})`]:{":root":w}};if(S)return e.defaultColorScheme===b?`:root, ${S.replace("%s",String(b))}`:S.replace("%s",String(b))}return":root"}return{vars:g,generateThemeVars:()=>{let b={...d};return Object.entries(m).forEach(([,{vars:w}])=>{b=lt(b,w)}),b},generateStyleSheets:()=>{const b=[],w=e.defaultColorScheme||"light";function S(O,A){Object.keys(A).length&&b.push(typeof O=="string"?{[O]:{...A}}:O)}S(n(void 0,{...p}),p);const{[w]:M,...j}=m;if(M){const{css:O}=M,A=a[w]?.palette?.mode,I=!o&&A?{colorScheme:A,...O}:{...O};S(n(w,{...I}),I)}return Object.entries(j).forEach(([O,{css:A}])=>{const I=a[O]?.palette?.mode,v=!o&&I?{colorScheme:I,...A}:{...A};S(n(O,{...v}),v)}),s&&b.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)"}}),b}}}function Nm(e){const t={};return Object.entries(e).forEach(o=>{const[r,s]=o;typeof s=="object"&&(t[r]=`${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 Lm(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 Fm={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 ke(e,t,n="Mui"){const o=Fm[t];return o?`${n}-${o}`:`${yu.generate(e)}-${t}`}function zm(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function _m(e){return Math.round(e*1e5)/1e5}const fl={textTransform:"uppercase"},hl='"Roboto", "Helvetica", "Arial", sans-serif';function Wm(e,t){const{fontFamily:n=hl,fontSize:o=14,fontWeightLight:r=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 o!="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=o/14,g=d||(x=>`${x/c*f}rem`),m=(x,T,C,E,b)=>({fontFamily:n,fontWeight:x,fontSize:g(T),lineHeight:C,...n===hl?{letterSpacing:`${_m(E/T)}em`}:{},...b,...u}),h={h1:m(r,96,1.167,-1.5),h2:m(r,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(a,14,1.75,.4,fl),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,fl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return lt({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l,...h},p,{clone:!1})}const Um=.2,Hm=.14,qm=.12;function _e(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Um})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Hm})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${qm})`].join(",")}const Gm=["none",_e(0,2,1,-1,0,1,1,0,0,1,3,0),_e(0,3,1,-2,0,2,2,0,0,1,5,0),_e(0,3,3,-2,0,3,4,0,0,1,8,0),_e(0,2,4,-1,0,4,5,0,0,1,10,0),_e(0,3,5,-1,0,5,8,0,0,1,14,0),_e(0,3,5,-1,0,6,10,0,0,1,18,0),_e(0,4,5,-2,0,7,10,1,0,2,16,1),_e(0,5,5,-3,0,8,10,1,0,3,14,2),_e(0,5,6,-3,0,9,12,1,0,3,16,2),_e(0,6,6,-3,0,10,14,1,0,4,18,3),_e(0,6,7,-4,0,11,15,1,0,4,20,3),_e(0,7,8,-4,0,12,17,2,0,5,22,4),_e(0,7,8,-4,0,13,19,2,0,5,24,4),_e(0,7,9,-4,0,14,21,2,0,5,26,4),_e(0,8,9,-5,0,15,22,2,0,6,28,5),_e(0,8,10,-5,0,16,24,2,0,6,30,5),_e(0,8,11,-5,0,17,26,2,0,6,32,5),_e(0,9,11,-5,0,18,28,2,0,7,34,6),_e(0,9,12,-6,0,19,29,2,0,7,36,6),_e(0,10,13,-6,0,20,31,3,0,8,38,7),_e(0,10,13,-6,0,21,33,3,0,8,40,7),_e(0,10,14,-6,0,22,35,3,0,8,42,7),_e(0,11,14,-7,0,23,36,3,0,9,44,8),_e(0,11,15,-7,0,24,38,3,0,9,46,8)],Ym={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)"},Ou={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ml(e){return`${Math.round(e)}ms`}function Km(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Xm(e){const t={...Ym,...e.easing},n={...Ou,...e.duration};return{getAutoHeightDuration:Km,create:(r=["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(r)&&!Array.isArray(r)&&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(r)?r:[r]).map(d=>`${d} ${typeof a=="string"?a:ml(a)} ${l} ${typeof c=="string"?c:ml(c)}`).join(",")},...e,easing:t,duration:n}}const Zm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Jm(e){return At(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Au(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let s=0;s<r.length;s++){const[a,l]=r[s];!Jm(l)||a.startsWith("unstable_")?delete o[a]:At(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
26
26
 
27
27
  const theme = ${JSON.stringify(t,null,2)};
28
28
 
29
29
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
30
30
  theme.transitions = createTransitions(theme.transitions || {});
31
31
 
32
- export default theme;`}function ml(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Jm=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function Qm(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:fr(t,Jm(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${ml(n)})`:Wr(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${ml(n)})`:_r(t,n)}})}function _i(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,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.":Lt(20));const p=Ls({...s,colorSpace:u}),f=Pu(e);let g=lt(f,{mixins:Fm(f.breakpoints,o),palette:p,shadows:qm.slice(),typography:_m(p,l),transitions:Km(a),zIndex:{...Xm}});if(g=lt(g,d),g=t.reduce((m,h)=>lt(m,h),g),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(x,T)=>{let C;for(C in x){const E=x[C];if(m.includes(C)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const b=ke("",C);console.error([`MUI: The \`${T}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(x,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
33
- `))}x[C]={}}}};Object.keys(g.components).forEach(x=>{const T=g.components[x].styleOverrides;T&&x.startsWith("Mui")&&h(T,x)})}return g.unstable_sxConfig={...Ao,...d?.unstable_sxConfig},g.unstable_sx=function(h){return Vn({sx:h,theme:this})},g.toRuntimeSource=Ou,Qm(g),g}function Wi(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 eg=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Wi(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Au(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Mu(e){return e==="dark"?eg:[]}function tg(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...s}=e,a=Ls({...t,colorSpace:r});return{palette:a,opacity:{...Au(a.mode),...n},overlays:o||Mu(a.mode),...s}}function ng(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 og=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],rg=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let s=r;if(r==="class"&&(s=".%s"),r==="data"&&(s="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(s=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return og(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),s==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:s?{[s.replace("%s",t)]:a,[`${o}, ${s.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(s&&s!=="media")return`${o}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(s)return s.replace("%s",String(t))}return o};function ig(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function F(e,t,n){!e[t]&&n&&(e[t]=n)}function ro(e){return typeof e!="string"||!e.startsWith("hsl")?e:xu(e)}function Bt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=oo(ro(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 sg(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Pt=e=>{try{return e()}catch{}},ag=(e="mui")=>ae.unstable_createGetCssVar(e);function fi(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const s=r==="dark"?"dark":"light";if(!o){t[r]=tg({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=_i({...o,palette:{mode:s,...n?.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...Au(s),...n?.opacity},overlays:n?.overlays||Mu(s)},l}function lg(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=ng,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],f=o||(n.light&&p!=="light"?"light":p),g=ag(s),{[f]:m,light:h,dark:x,...T}=n,C={...T};let E=m;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Lt(21,f));let b;a&&(b="oklch");const w=fi(b,C,E,d,f);h&&!C.light&&fi(b,C,h,void 0,"light"),x&&!C.dark&&fi(b,C,x,void 0,"dark");let S={defaultColorScheme:f,...w,cssVarPrefix:s,colorSchemeSelector:c,rootSelector:u,getCssVar:g,colorSchemes:C,font:{...Vm(w.typography),...w.font},spacing:sg(d.spacing)};Object.keys(S.colorSchemes).forEach(I=>{const v=S.colorSchemes[I].palette,D=V=>{const $=V.split("-"),W=$[1],B=$[2];return g(V,v[W][B])};v.mode==="light"&&(F(v.common,"background","#fff"),F(v.common,"onBackground","#000")),v.mode==="dark"&&(F(v.common,"background","#000"),F(v.common,"onBackground","#fff"));function k(V,$,W){if(b){let B;return V===sn&&(B=`transparent ${((1-W)*100).toFixed(0)}%`),V===Ae&&(B=`#000 ${(W*100).toFixed(0)}%`),V===Me&&(B=`#fff ${(W*100).toFixed(0)}%`),`color-mix(in ${b}, ${$}, ${B})`}return V($,W)}if(ig(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){F(v.Alert,"errorColor",k(Ae,v.error.light,.6)),F(v.Alert,"infoColor",k(Ae,v.info.light,.6)),F(v.Alert,"successColor",k(Ae,v.success.light,.6)),F(v.Alert,"warningColor",k(Ae,v.warning.light,.6)),F(v.Alert,"errorFilledBg",D("palette-error-main")),F(v.Alert,"infoFilledBg",D("palette-info-main")),F(v.Alert,"successFilledBg",D("palette-success-main")),F(v.Alert,"warningFilledBg",D("palette-warning-main")),F(v.Alert,"errorFilledColor",Pt(()=>v.getContrastText(v.error.main))),F(v.Alert,"infoFilledColor",Pt(()=>v.getContrastText(v.info.main))),F(v.Alert,"successFilledColor",Pt(()=>v.getContrastText(v.success.main))),F(v.Alert,"warningFilledColor",Pt(()=>v.getContrastText(v.warning.main))),F(v.Alert,"errorStandardBg",k(Me,v.error.light,.9)),F(v.Alert,"infoStandardBg",k(Me,v.info.light,.9)),F(v.Alert,"successStandardBg",k(Me,v.success.light,.9)),F(v.Alert,"warningStandardBg",k(Me,v.warning.light,.9)),F(v.Alert,"errorIconColor",D("palette-error-main")),F(v.Alert,"infoIconColor",D("palette-info-main")),F(v.Alert,"successIconColor",D("palette-success-main")),F(v.Alert,"warningIconColor",D("palette-warning-main")),F(v.AppBar,"defaultBg",D("palette-grey-100")),F(v.Avatar,"defaultBg",D("palette-grey-400")),F(v.Button,"inheritContainedBg",D("palette-grey-300")),F(v.Button,"inheritContainedHoverBg",D("palette-grey-A100")),F(v.Chip,"defaultBorder",D("palette-grey-400")),F(v.Chip,"defaultAvatarColor",D("palette-grey-700")),F(v.Chip,"defaultIconColor",D("palette-grey-700")),F(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),F(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),F(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),F(v.LinearProgress,"primaryBg",k(Me,v.primary.main,.62)),F(v.LinearProgress,"secondaryBg",k(Me,v.secondary.main,.62)),F(v.LinearProgress,"errorBg",k(Me,v.error.main,.62)),F(v.LinearProgress,"infoBg",k(Me,v.info.main,.62)),F(v.LinearProgress,"successBg",k(Me,v.success.main,.62)),F(v.LinearProgress,"warningBg",k(Me,v.warning.main,.62)),F(v.Skeleton,"bg",b?k(sn,v.text.primary,.11):`rgba(${D("palette-text-primaryChannel")} / 0.11)`),F(v.Slider,"primaryTrack",k(Me,v.primary.main,.62)),F(v.Slider,"secondaryTrack",k(Me,v.secondary.main,.62)),F(v.Slider,"errorTrack",k(Me,v.error.main,.62)),F(v.Slider,"infoTrack",k(Me,v.info.main,.62)),F(v.Slider,"successTrack",k(Me,v.success.main,.62)),F(v.Slider,"warningTrack",k(Me,v.warning.main,.62));const V=b?k(Ae,v.background.default,.6825):Wo(v.background.default,.8);F(v.SnackbarContent,"bg",V),F(v.SnackbarContent,"color",Pt(()=>b?zi.text.primary:v.getContrastText(V))),F(v.SpeedDialAction,"fabHoverBg",Wo(v.background.paper,.15)),F(v.StepConnector,"border",D("palette-grey-400")),F(v.StepContent,"border",D("palette-grey-400")),F(v.Switch,"defaultColor",D("palette-common-white")),F(v.Switch,"defaultDisabledColor",D("palette-grey-100")),F(v.Switch,"primaryDisabledColor",k(Me,v.primary.main,.62)),F(v.Switch,"secondaryDisabledColor",k(Me,v.secondary.main,.62)),F(v.Switch,"errorDisabledColor",k(Me,v.error.main,.62)),F(v.Switch,"infoDisabledColor",k(Me,v.info.main,.62)),F(v.Switch,"successDisabledColor",k(Me,v.success.main,.62)),F(v.Switch,"warningDisabledColor",k(Me,v.warning.main,.62)),F(v.TableCell,"border",k(Me,k(sn,v.divider,1),.88)),F(v.Tooltip,"bg",k(sn,v.grey[700],.92))}if(v.mode==="dark"){F(v.Alert,"errorColor",k(Me,v.error.light,.6)),F(v.Alert,"infoColor",k(Me,v.info.light,.6)),F(v.Alert,"successColor",k(Me,v.success.light,.6)),F(v.Alert,"warningColor",k(Me,v.warning.light,.6)),F(v.Alert,"errorFilledBg",D("palette-error-dark")),F(v.Alert,"infoFilledBg",D("palette-info-dark")),F(v.Alert,"successFilledBg",D("palette-success-dark")),F(v.Alert,"warningFilledBg",D("palette-warning-dark")),F(v.Alert,"errorFilledColor",Pt(()=>v.getContrastText(v.error.dark))),F(v.Alert,"infoFilledColor",Pt(()=>v.getContrastText(v.info.dark))),F(v.Alert,"successFilledColor",Pt(()=>v.getContrastText(v.success.dark))),F(v.Alert,"warningFilledColor",Pt(()=>v.getContrastText(v.warning.dark))),F(v.Alert,"errorStandardBg",k(Ae,v.error.light,.9)),F(v.Alert,"infoStandardBg",k(Ae,v.info.light,.9)),F(v.Alert,"successStandardBg",k(Ae,v.success.light,.9)),F(v.Alert,"warningStandardBg",k(Ae,v.warning.light,.9)),F(v.Alert,"errorIconColor",D("palette-error-main")),F(v.Alert,"infoIconColor",D("palette-info-main")),F(v.Alert,"successIconColor",D("palette-success-main")),F(v.Alert,"warningIconColor",D("palette-warning-main")),F(v.AppBar,"defaultBg",D("palette-grey-900")),F(v.AppBar,"darkBg",D("palette-background-paper")),F(v.AppBar,"darkColor",D("palette-text-primary")),F(v.Avatar,"defaultBg",D("palette-grey-600")),F(v.Button,"inheritContainedBg",D("palette-grey-800")),F(v.Button,"inheritContainedHoverBg",D("palette-grey-700")),F(v.Chip,"defaultBorder",D("palette-grey-700")),F(v.Chip,"defaultAvatarColor",D("palette-grey-300")),F(v.Chip,"defaultIconColor",D("palette-grey-300")),F(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),F(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),F(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),F(v.LinearProgress,"primaryBg",k(Ae,v.primary.main,.5)),F(v.LinearProgress,"secondaryBg",k(Ae,v.secondary.main,.5)),F(v.LinearProgress,"errorBg",k(Ae,v.error.main,.5)),F(v.LinearProgress,"infoBg",k(Ae,v.info.main,.5)),F(v.LinearProgress,"successBg",k(Ae,v.success.main,.5)),F(v.LinearProgress,"warningBg",k(Ae,v.warning.main,.5)),F(v.Skeleton,"bg",b?k(sn,v.text.primary,.13):`rgba(${D("palette-text-primaryChannel")} / 0.13)`),F(v.Slider,"primaryTrack",k(Ae,v.primary.main,.5)),F(v.Slider,"secondaryTrack",k(Ae,v.secondary.main,.5)),F(v.Slider,"errorTrack",k(Ae,v.error.main,.5)),F(v.Slider,"infoTrack",k(Ae,v.info.main,.5)),F(v.Slider,"successTrack",k(Ae,v.success.main,.5)),F(v.Slider,"warningTrack",k(Ae,v.warning.main,.5));const V=b?k(Me,v.background.default,.985):Wo(v.background.default,.98);F(v.SnackbarContent,"bg",V),F(v.SnackbarContent,"color",Pt(()=>b?Tu.text.primary:v.getContrastText(V))),F(v.SpeedDialAction,"fabHoverBg",Wo(v.background.paper,.15)),F(v.StepConnector,"border",D("palette-grey-600")),F(v.StepContent,"border",D("palette-grey-600")),F(v.Switch,"defaultColor",D("palette-grey-300")),F(v.Switch,"defaultDisabledColor",D("palette-grey-600")),F(v.Switch,"primaryDisabledColor",k(Ae,v.primary.main,.55)),F(v.Switch,"secondaryDisabledColor",k(Ae,v.secondary.main,.55)),F(v.Switch,"errorDisabledColor",k(Ae,v.error.main,.55)),F(v.Switch,"infoDisabledColor",k(Ae,v.info.main,.55)),F(v.Switch,"successDisabledColor",k(Ae,v.success.main,.55)),F(v.Switch,"warningDisabledColor",k(Ae,v.warning.main,.55)),F(v.TableCell,"border",k(Ae,k(sn,v.divider,1),.68)),F(v.Tooltip,"bg",k(sn,v.grey[700],.92))}Bt(v.background,"default"),Bt(v.background,"paper"),Bt(v.common,"background"),Bt(v.common,"onBackground"),Bt(v,"divider"),Object.keys(v).forEach(V=>{const $=v[V];V!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&F(v[V],"mainChannel",oo(ro($.main))),$.light&&F(v[V],"lightChannel",oo(ro($.light))),$.dark&&F(v[V],"darkChannel",oo(ro($.dark))),$.contrastText&&F(v[V],"contrastTextChannel",oo(ro($.contrastText))),V==="text"&&(Bt(v[V],"primary"),Bt(v[V],"secondary")),V==="action"&&($.active&&Bt(v[V],"active"),$.selected&&Bt(v[V],"selected")))})}),S=t.reduce((I,v)=>lt(I,v),S);const M={prefix:s,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:rg(S),enableContrastVars:a},{vars:j,generateThemeVars:O,generateStyleSheets:A}=Bm(S,M);return S.vars=j,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([I,v])=>{S[I]=v}),S.generateThemeVars=O,S.generateStyleSheets=A,S.generateSpacing=function(){return ae.createSpacing(d.spacing,Bs(this))},S.getColorSchemeSelector=Nm(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=l,S.unstable_sxConfig={...Ao,...d?.unstable_sxConfig},S.unstable_sx=function(v){return Vn({sx:v,theme:this})},S.toRuntimeSource=Ou,S}function gl(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ls({...n===!0?{}:n.palette,mode:t})})}function ku(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,l=s||"light",c=r?.[l],u={...r,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return _i(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const p=_i({...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},gl(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},gl(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),lg({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Fs=ku(),Hr="$$material";function st(){const e=ae.useTheme(Fs);return process.env.NODE_ENV!=="production"&&R.useDebugValue(e),e[Hr]||e}function ju(e){return y.jsx(ae.GlobalStyles,{...e,defaultTheme:Fs,themeId:Hr})}process.env.NODE_ENV!=="production"&&(ju.propTypes={styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool])});function $u(e,t=""){return e.displayName||e.name||t}function yl(e,t,n){const o=$u(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function cg(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return $u(e,"Component");if(typeof e=="object")switch(e.$$typeof){case yo.ForwardRef:return yl(e,e.render,"ForwardRef");case yo.Memo:return yl(e,e.type,"memo");default:return}}}function ug(e){const{variants:t,...n}=e,o={variants:t,style:yn(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=yn(r.style))}),o}const dg=Pu();function hi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function pn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function pg(e){return e?(t,n)=>n[e]:null}function fg(e,t,n){e.theme=yg(e.theme)?n:e.theme[t]||e.theme}function tr(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>tr(e,r,n));if(Array.isArray(o?.variants)){let r;if(o.isProcessed)r=n?pn(o.style,n):o.style;else{const{variants:s,...a}=o;r=n?pn(yn(a),n):a}return Iu(e,o.variants,[r],n)}return o?.isProcessed?n?pn(yn(o.style),n):o.style:n?pn(yn(o),n):o}function Iu(e,t,n=[],o=void 0){let r;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(r))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"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(o?pn(yn(a.style(r)),o):a.style(r))):n.push(o?pn(yn(a.style),o):a.style)}return n}function hg(e={}){const{themeId:t,defaultTheme:n=dg,rootShouldForwardProp:o=hi,slotShouldForwardProp:r=hi}=e;function s(l){fg(l,t,n)}return(l,c={})=>{wm(l,S=>S.filter(M=>M!==Vn));const{name:u,slot:d,skipVariantsResolver:p,skipSx:f,overridesResolver:g=pg(Du(d)),...m}=c,h=u&&u.startsWith("Mui")||d?"components":"custom",x=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,T=f||!1;let C=hi;d==="Root"||d==="root"?C=o:d?C=r:vg(l)&&(C=void 0);const E=xm(l,{shouldForwardProp:C,label:gg(u,d),...m}),b=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(j){return tr(j,S,j.theme.modularCssLayers?h:void 0)};if(At(S)){const M=ug(S);return function(O){return M.variants?tr(O,M,O.theme.modularCssLayers?h:void 0):O.theme.modularCssLayers?pn(M.style,h):M.style}}return S},w=(...S)=>{const M=[],j=S.map(b),O=[];if(M.push(s),u&&g&&O.push(function(D){const V=D.theme.components?.[u]?.styleOverrides;if(!V)return null;const $={};for(const W in V)$[W]=tr(D,V[W],D.theme.modularCssLayers?"theme":void 0);return g(D,$)}),u&&!x&&O.push(function(D){const V=D.theme?.components?.[u]?.variants;return V?Iu(D,V,[],D.theme.modularCssLayers?"theme":void 0):null}),T||O.push(Vn),Array.isArray(j[0])){const v=j.shift(),D=new Array(M.length).fill(""),k=new Array(O.length).fill("");let V;V=[...D,...v,...k],V.raw=[...D,...v.raw,...k],M.unshift(V)}const A=[...M,...j,...O],I=E(...A);return l.muiName&&(I.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(I.displayName=mg(u,d,l)),I};return E.withConfig&&(w.withConfig=E.withConfig),w}}function mg(e,t,n){return e?`${e}${Z(t||"")}`:`Styled(${cg(n)})`}function gg(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Du(t||"Root")}`),n}function yg(e){for(const t in e)return!1;return!0}function vg(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Du(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Bu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Vu=e=>Bu(e)&&e!=="classes",oe=hg({themeId:Hr,defaultTheme:Fs,rootShouldForwardProp:Vu});function bg(e){return function(n){return y.jsx(ju,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function xg(){return tm}const Se=ae.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(i.node,i.object.isRequired);function De(e){return Pm(e)}function je(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=ke(e,r,n)}),o}function wg(e){return ke("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Tg=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${Z(t)}`,`fontSize${Z(n)}`]};return Ne(r,wg,o)},Cg=oe("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)}`]]}})(Se(({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}}]}))),mr=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiSvgIcon"}),{children:r,className:s,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:f="0 0 24 24",...g}=o,m=R.isValidElement(r)&&r.type==="svg",h={...o,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:m},x={};d||(x.viewBox=f);const T=Tg(h);return y.jsxs(Cg,{as:l,className:de(T.root,s),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...x,...g,...m&&r.props,ownerState:h,children:[m?r.props.children:r,p?y.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(mr.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,fontSize:i.oneOfType([i.oneOf(["inherit","large","medium","small"]),i.string]),htmlColor:i.string,inheritViewBox:i.bool,shapeRendering:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),titleAccess:i.string,viewBox:i.string});mr.muiName="SvgIcon";function Be(e,t){function n(o,r){return y.jsx(mr,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=mr.muiName,R.memo(R.forwardRef(n))}function Nu(e,t=166){let n;function o(...r){const s=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(s,t)}return o.clear=()=>{clearTimeout(n)},o}function Ct(e){return e&&e.ownerDocument||document}function Jt(e){return Ct(e).defaultView||window}function vl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Lu(e){const{controlled:t,default:n,name:o,state:r="value"}=e,{current:s}=R.useRef(t!==void 0),[a,l]=R.useState(n),c=s?t:a;if(process.env.NODE_ENV!=="production"){R.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${r} state of ${o} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} 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(`
32
+ export default theme;`}function gl(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Qm=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function eg(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:fr(t,Qm(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${gl(n)})`:Wr(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${gl(n)})`:_r(t,n)}})}function _i(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,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.":Lt(20));const p=Fs({...s,colorSpace:u}),f=Ru(e);let g=lt(f,{mixins:zm(f.breakpoints,o),palette:p,shadows:Gm.slice(),typography:Wm(p,l),transitions:Xm(a),zIndex:{...Zm}});if(g=lt(g,d),g=t.reduce((m,h)=>lt(m,h),g),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(x,T)=>{let C;for(C in x){const E=x[C];if(m.includes(C)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const b=ke("",C);console.error([`MUI: The \`${T}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(x,null,2),"",`Instead, you need to use the '&.${b}' syntax:`,JSON.stringify({root:{[`&.${b}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
33
+ `))}x[C]={}}}};Object.keys(g.components).forEach(x=>{const T=g.components[x].styleOverrides;T&&x.startsWith("Mui")&&h(T,x)})}return g.unstable_sxConfig={...Ao,...d?.unstable_sxConfig},g.unstable_sx=function(h){return Vn({sx:h,theme:this})},g.toRuntimeSource=Au,eg(g),g}function Wi(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 tg=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Wi(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Mu(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ku(e){return e==="dark"?tg:[]}function ng(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...s}=e,a=Fs({...t,colorSpace:r});return{palette:a,opacity:{...Mu(a.mode),...n},overlays:o||ku(a.mode),...s}}function og(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 rg=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ig=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let s=r;if(r==="class"&&(s=".%s"),r==="data"&&(s="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(s=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return rg(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),s==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:s?{[s.replace("%s",t)]:a,[`${o}, ${s.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(s&&s!=="media")return`${o}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(s)return s.replace("%s",String(t))}return o};function sg(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function F(e,t,n){!e[t]&&n&&(e[t]=n)}function ro(e){return typeof e!="string"||!e.startsWith("hsl")?e:wu(e)}function Bt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=oo(ro(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 ag(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Pt=e=>{try{return e()}catch{}},lg=(e="mui")=>ae.unstable_createGetCssVar(e);function fi(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const s=r==="dark"?"dark":"light";if(!o){t[r]=ng({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=_i({...o,palette:{mode:s,...n?.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...Mu(s),...n?.opacity},overlays:n?.overlays||ku(s)},l}function cg(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=og,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],f=o||(n.light&&p!=="light"?"light":p),g=lg(s),{[f]:m,light:h,dark:x,...T}=n,C={...T};let E=m;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Lt(21,f));let b;a&&(b="oklch");const w=fi(b,C,E,d,f);h&&!C.light&&fi(b,C,h,void 0,"light"),x&&!C.dark&&fi(b,C,x,void 0,"dark");let S={defaultColorScheme:f,...w,cssVarPrefix:s,colorSchemeSelector:c,rootSelector:u,getCssVar:g,colorSchemes:C,font:{...Nm(w.typography),...w.font},spacing:ag(d.spacing)};Object.keys(S.colorSchemes).forEach(I=>{const v=S.colorSchemes[I].palette,D=V=>{const $=V.split("-"),W=$[1],B=$[2];return g(V,v[W][B])};v.mode==="light"&&(F(v.common,"background","#fff"),F(v.common,"onBackground","#000")),v.mode==="dark"&&(F(v.common,"background","#000"),F(v.common,"onBackground","#fff"));function k(V,$,W){if(b){let B;return V===sn&&(B=`transparent ${((1-W)*100).toFixed(0)}%`),V===Ae&&(B=`#000 ${(W*100).toFixed(0)}%`),V===Me&&(B=`#fff ${(W*100).toFixed(0)}%`),`color-mix(in ${b}, ${$}, ${B})`}return V($,W)}if(sg(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){F(v.Alert,"errorColor",k(Ae,v.error.light,.6)),F(v.Alert,"infoColor",k(Ae,v.info.light,.6)),F(v.Alert,"successColor",k(Ae,v.success.light,.6)),F(v.Alert,"warningColor",k(Ae,v.warning.light,.6)),F(v.Alert,"errorFilledBg",D("palette-error-main")),F(v.Alert,"infoFilledBg",D("palette-info-main")),F(v.Alert,"successFilledBg",D("palette-success-main")),F(v.Alert,"warningFilledBg",D("palette-warning-main")),F(v.Alert,"errorFilledColor",Pt(()=>v.getContrastText(v.error.main))),F(v.Alert,"infoFilledColor",Pt(()=>v.getContrastText(v.info.main))),F(v.Alert,"successFilledColor",Pt(()=>v.getContrastText(v.success.main))),F(v.Alert,"warningFilledColor",Pt(()=>v.getContrastText(v.warning.main))),F(v.Alert,"errorStandardBg",k(Me,v.error.light,.9)),F(v.Alert,"infoStandardBg",k(Me,v.info.light,.9)),F(v.Alert,"successStandardBg",k(Me,v.success.light,.9)),F(v.Alert,"warningStandardBg",k(Me,v.warning.light,.9)),F(v.Alert,"errorIconColor",D("palette-error-main")),F(v.Alert,"infoIconColor",D("palette-info-main")),F(v.Alert,"successIconColor",D("palette-success-main")),F(v.Alert,"warningIconColor",D("palette-warning-main")),F(v.AppBar,"defaultBg",D("palette-grey-100")),F(v.Avatar,"defaultBg",D("palette-grey-400")),F(v.Button,"inheritContainedBg",D("palette-grey-300")),F(v.Button,"inheritContainedHoverBg",D("palette-grey-A100")),F(v.Chip,"defaultBorder",D("palette-grey-400")),F(v.Chip,"defaultAvatarColor",D("palette-grey-700")),F(v.Chip,"defaultIconColor",D("palette-grey-700")),F(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),F(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),F(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),F(v.LinearProgress,"primaryBg",k(Me,v.primary.main,.62)),F(v.LinearProgress,"secondaryBg",k(Me,v.secondary.main,.62)),F(v.LinearProgress,"errorBg",k(Me,v.error.main,.62)),F(v.LinearProgress,"infoBg",k(Me,v.info.main,.62)),F(v.LinearProgress,"successBg",k(Me,v.success.main,.62)),F(v.LinearProgress,"warningBg",k(Me,v.warning.main,.62)),F(v.Skeleton,"bg",b?k(sn,v.text.primary,.11):`rgba(${D("palette-text-primaryChannel")} / 0.11)`),F(v.Slider,"primaryTrack",k(Me,v.primary.main,.62)),F(v.Slider,"secondaryTrack",k(Me,v.secondary.main,.62)),F(v.Slider,"errorTrack",k(Me,v.error.main,.62)),F(v.Slider,"infoTrack",k(Me,v.info.main,.62)),F(v.Slider,"successTrack",k(Me,v.success.main,.62)),F(v.Slider,"warningTrack",k(Me,v.warning.main,.62));const V=b?k(Ae,v.background.default,.6825):Wo(v.background.default,.8);F(v.SnackbarContent,"bg",V),F(v.SnackbarContent,"color",Pt(()=>b?zi.text.primary:v.getContrastText(V))),F(v.SpeedDialAction,"fabHoverBg",Wo(v.background.paper,.15)),F(v.StepConnector,"border",D("palette-grey-400")),F(v.StepContent,"border",D("palette-grey-400")),F(v.Switch,"defaultColor",D("palette-common-white")),F(v.Switch,"defaultDisabledColor",D("palette-grey-100")),F(v.Switch,"primaryDisabledColor",k(Me,v.primary.main,.62)),F(v.Switch,"secondaryDisabledColor",k(Me,v.secondary.main,.62)),F(v.Switch,"errorDisabledColor",k(Me,v.error.main,.62)),F(v.Switch,"infoDisabledColor",k(Me,v.info.main,.62)),F(v.Switch,"successDisabledColor",k(Me,v.success.main,.62)),F(v.Switch,"warningDisabledColor",k(Me,v.warning.main,.62)),F(v.TableCell,"border",k(Me,k(sn,v.divider,1),.88)),F(v.Tooltip,"bg",k(sn,v.grey[700],.92))}if(v.mode==="dark"){F(v.Alert,"errorColor",k(Me,v.error.light,.6)),F(v.Alert,"infoColor",k(Me,v.info.light,.6)),F(v.Alert,"successColor",k(Me,v.success.light,.6)),F(v.Alert,"warningColor",k(Me,v.warning.light,.6)),F(v.Alert,"errorFilledBg",D("palette-error-dark")),F(v.Alert,"infoFilledBg",D("palette-info-dark")),F(v.Alert,"successFilledBg",D("palette-success-dark")),F(v.Alert,"warningFilledBg",D("palette-warning-dark")),F(v.Alert,"errorFilledColor",Pt(()=>v.getContrastText(v.error.dark))),F(v.Alert,"infoFilledColor",Pt(()=>v.getContrastText(v.info.dark))),F(v.Alert,"successFilledColor",Pt(()=>v.getContrastText(v.success.dark))),F(v.Alert,"warningFilledColor",Pt(()=>v.getContrastText(v.warning.dark))),F(v.Alert,"errorStandardBg",k(Ae,v.error.light,.9)),F(v.Alert,"infoStandardBg",k(Ae,v.info.light,.9)),F(v.Alert,"successStandardBg",k(Ae,v.success.light,.9)),F(v.Alert,"warningStandardBg",k(Ae,v.warning.light,.9)),F(v.Alert,"errorIconColor",D("palette-error-main")),F(v.Alert,"infoIconColor",D("palette-info-main")),F(v.Alert,"successIconColor",D("palette-success-main")),F(v.Alert,"warningIconColor",D("palette-warning-main")),F(v.AppBar,"defaultBg",D("palette-grey-900")),F(v.AppBar,"darkBg",D("palette-background-paper")),F(v.AppBar,"darkColor",D("palette-text-primary")),F(v.Avatar,"defaultBg",D("palette-grey-600")),F(v.Button,"inheritContainedBg",D("palette-grey-800")),F(v.Button,"inheritContainedHoverBg",D("palette-grey-700")),F(v.Chip,"defaultBorder",D("palette-grey-700")),F(v.Chip,"defaultAvatarColor",D("palette-grey-300")),F(v.Chip,"defaultIconColor",D("palette-grey-300")),F(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),F(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),F(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),F(v.LinearProgress,"primaryBg",k(Ae,v.primary.main,.5)),F(v.LinearProgress,"secondaryBg",k(Ae,v.secondary.main,.5)),F(v.LinearProgress,"errorBg",k(Ae,v.error.main,.5)),F(v.LinearProgress,"infoBg",k(Ae,v.info.main,.5)),F(v.LinearProgress,"successBg",k(Ae,v.success.main,.5)),F(v.LinearProgress,"warningBg",k(Ae,v.warning.main,.5)),F(v.Skeleton,"bg",b?k(sn,v.text.primary,.13):`rgba(${D("palette-text-primaryChannel")} / 0.13)`),F(v.Slider,"primaryTrack",k(Ae,v.primary.main,.5)),F(v.Slider,"secondaryTrack",k(Ae,v.secondary.main,.5)),F(v.Slider,"errorTrack",k(Ae,v.error.main,.5)),F(v.Slider,"infoTrack",k(Ae,v.info.main,.5)),F(v.Slider,"successTrack",k(Ae,v.success.main,.5)),F(v.Slider,"warningTrack",k(Ae,v.warning.main,.5));const V=b?k(Me,v.background.default,.985):Wo(v.background.default,.98);F(v.SnackbarContent,"bg",V),F(v.SnackbarContent,"color",Pt(()=>b?Cu.text.primary:v.getContrastText(V))),F(v.SpeedDialAction,"fabHoverBg",Wo(v.background.paper,.15)),F(v.StepConnector,"border",D("palette-grey-600")),F(v.StepContent,"border",D("palette-grey-600")),F(v.Switch,"defaultColor",D("palette-grey-300")),F(v.Switch,"defaultDisabledColor",D("palette-grey-600")),F(v.Switch,"primaryDisabledColor",k(Ae,v.primary.main,.55)),F(v.Switch,"secondaryDisabledColor",k(Ae,v.secondary.main,.55)),F(v.Switch,"errorDisabledColor",k(Ae,v.error.main,.55)),F(v.Switch,"infoDisabledColor",k(Ae,v.info.main,.55)),F(v.Switch,"successDisabledColor",k(Ae,v.success.main,.55)),F(v.Switch,"warningDisabledColor",k(Ae,v.warning.main,.55)),F(v.TableCell,"border",k(Ae,k(sn,v.divider,1),.68)),F(v.Tooltip,"bg",k(sn,v.grey[700],.92))}Bt(v.background,"default"),Bt(v.background,"paper"),Bt(v.common,"background"),Bt(v.common,"onBackground"),Bt(v,"divider"),Object.keys(v).forEach(V=>{const $=v[V];V!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&F(v[V],"mainChannel",oo(ro($.main))),$.light&&F(v[V],"lightChannel",oo(ro($.light))),$.dark&&F(v[V],"darkChannel",oo(ro($.dark))),$.contrastText&&F(v[V],"contrastTextChannel",oo(ro($.contrastText))),V==="text"&&(Bt(v[V],"primary"),Bt(v[V],"secondary")),V==="action"&&($.active&&Bt(v[V],"active"),$.selected&&Bt(v[V],"selected")))})}),S=t.reduce((I,v)=>lt(I,v),S);const M={prefix:s,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:ig(S),enableContrastVars:a},{vars:j,generateThemeVars:O,generateStyleSheets:A}=Vm(S,M);return S.vars=j,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([I,v])=>{S[I]=v}),S.generateThemeVars=O,S.generateStyleSheets=A,S.generateSpacing=function(){return ae.createSpacing(d.spacing,Vs(this))},S.getColorSchemeSelector=Lm(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=l,S.unstable_sxConfig={...Ao,...d?.unstable_sxConfig},S.unstable_sx=function(v){return Vn({sx:v,theme:this})},S.toRuntimeSource=Au,S}function yl(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Fs({...n===!0?{}:n.palette,mode:t})})}function ju(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,l=s||"light",c=r?.[l],u={...r,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return _i(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const p=_i({...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},yl(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},yl(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),cg({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const zs=ju(),Hr="$$material";function st(){const e=ae.useTheme(zs);return process.env.NODE_ENV!=="production"&&R.useDebugValue(e),e[Hr]||e}function $u(e){return y.jsx(ae.GlobalStyles,{...e,defaultTheme:zs,themeId:Hr})}process.env.NODE_ENV!=="production"&&($u.propTypes={styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool])});function Iu(e,t=""){return e.displayName||e.name||t}function vl(e,t,n){const o=Iu(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function ug(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Iu(e,"Component");if(typeof e=="object")switch(e.$$typeof){case yo.ForwardRef:return vl(e,e.render,"ForwardRef");case yo.Memo:return vl(e,e.type,"memo");default:return}}}function dg(e){const{variants:t,...n}=e,o={variants:t,style:yn(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=yn(r.style))}),o}const pg=Ru();function hi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function pn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function fg(e){return e?(t,n)=>n[e]:null}function hg(e,t,n){e.theme=vg(e.theme)?n:e.theme[t]||e.theme}function tr(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>tr(e,r,n));if(Array.isArray(o?.variants)){let r;if(o.isProcessed)r=n?pn(o.style,n):o.style;else{const{variants:s,...a}=o;r=n?pn(yn(a),n):a}return Du(e,o.variants,[r],n)}return o?.isProcessed?n?pn(yn(o.style),n):o.style:n?pn(yn(o),n):o}function Du(e,t,n=[],o=void 0){let r;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(r))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"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(o?pn(yn(a.style(r)),o):a.style(r))):n.push(o?pn(yn(a.style),o):a.style)}return n}function mg(e={}){const{themeId:t,defaultTheme:n=pg,rootShouldForwardProp:o=hi,slotShouldForwardProp:r=hi}=e;function s(l){hg(l,t,n)}return(l,c={})=>{Tm(l,S=>S.filter(M=>M!==Vn));const{name:u,slot:d,skipVariantsResolver:p,skipSx:f,overridesResolver:g=fg(Bu(d)),...m}=c,h=u&&u.startsWith("Mui")||d?"components":"custom",x=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,T=f||!1;let C=hi;d==="Root"||d==="root"?C=o:d?C=r:bg(l)&&(C=void 0);const E=wm(l,{shouldForwardProp:C,label:yg(u,d),...m}),b=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(j){return tr(j,S,j.theme.modularCssLayers?h:void 0)};if(At(S)){const M=dg(S);return function(O){return M.variants?tr(O,M,O.theme.modularCssLayers?h:void 0):O.theme.modularCssLayers?pn(M.style,h):M.style}}return S},w=(...S)=>{const M=[],j=S.map(b),O=[];if(M.push(s),u&&g&&O.push(function(D){const V=D.theme.components?.[u]?.styleOverrides;if(!V)return null;const $={};for(const W in V)$[W]=tr(D,V[W],D.theme.modularCssLayers?"theme":void 0);return g(D,$)}),u&&!x&&O.push(function(D){const V=D.theme?.components?.[u]?.variants;return V?Du(D,V,[],D.theme.modularCssLayers?"theme":void 0):null}),T||O.push(Vn),Array.isArray(j[0])){const v=j.shift(),D=new Array(M.length).fill(""),k=new Array(O.length).fill("");let V;V=[...D,...v,...k],V.raw=[...D,...v.raw,...k],M.unshift(V)}const A=[...M,...j,...O],I=E(...A);return l.muiName&&(I.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(I.displayName=gg(u,d,l)),I};return E.withConfig&&(w.withConfig=E.withConfig),w}}function gg(e,t,n){return e?`${e}${Z(t||"")}`:`Styled(${ug(n)})`}function yg(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Bu(t||"Root")}`),n}function vg(e){for(const t in e)return!1;return!0}function bg(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Bu(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Vu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Nu=e=>Vu(e)&&e!=="classes",oe=mg({themeId:Hr,defaultTheme:zs,rootShouldForwardProp:Nu});function xg(e){return function(n){return y.jsx($u,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function wg(){return nm}const Se=ae.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(i.node,i.object.isRequired);function De(e){return Rm(e)}function je(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=ke(e,r,n)}),o}function Tg(e){return ke("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Cg=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${Z(t)}`,`fontSize${Z(n)}`]};return Ne(r,Tg,o)},Sg=oe("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)}`]]}})(Se(({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}}]}))),mr=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiSvgIcon"}),{children:r,className:s,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:f="0 0 24 24",...g}=o,m=R.isValidElement(r)&&r.type==="svg",h={...o,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:m},x={};d||(x.viewBox=f);const T=Cg(h);return y.jsxs(Sg,{as:l,className:de(T.root,s),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...x,...g,...m&&r.props,ownerState:h,children:[m?r.props.children:r,p?y.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(mr.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,fontSize:i.oneOfType([i.oneOf(["inherit","large","medium","small"]),i.string]),htmlColor:i.string,inheritViewBox:i.bool,shapeRendering:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),titleAccess:i.string,viewBox:i.string});mr.muiName="SvgIcon";function Be(e,t){function n(o,r){return y.jsx(mr,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=mr.muiName,R.memo(R.forwardRef(n))}function Lu(e,t=166){let n;function o(...r){const s=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(s,t)}return o.clear=()=>{clearTimeout(n)},o}function Ct(e){return e&&e.ownerDocument||document}function Jt(e){return Ct(e).defaultView||window}function bl(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Fu(e){const{controlled:t,default:n,name:o,state:r="value"}=e,{current:s}=R.useRef(t!==void 0),[a,l]=R.useState(n),c=s?t:a;if(process.env.NODE_ENV!=="production"){R.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${r} state of ${o} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} 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
35
  `))},[r,o,t]);const{current:d}=R.useRef(n);R.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
36
- `))},[JSON.stringify(n)])}const u=R.useCallback(d=>{s||l(d)},[]);return[c,u]}function Nt(e){const t=R.useRef(e);return Zt(()=>{t.current=e}),R.useRef((...n)=>(0,t.current)(...n)).current}function et(...e){const t=R.useRef(void 0),n=R.useCallback(o=>{const r=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return s.current=o,()=>{s.current=null}});return()=>{r.forEach(s=>s?.())}},e);return R.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function Sg(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Eg(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{Sg(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=de(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 o=t,r=n(e,o),s=de(o?.className,e?.className);return{...t,...e,...r,...!!s&&{className:s},...o?.style&&e?.style&&{style:{...o.style,...e.style}},...o?.sx&&e?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const ko=i.oneOfType([i.func,i.object]);function vt(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function Pg(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Rg(e,t,n,o,r){const s=e[t],a=r||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!Pg(s)&&(l="Did you accidentally provide a plain function component instead?"),s===R.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${o} \`${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 qr=vt(i.elementType,Rg);function Nn(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 bl={};function Fu(e,t){const n=R.useRef(bl);return n.current===bl&&(n.current=e(t)),n}class gr{static create(){return new gr}static use(){const t=Fu(gr.create).current,[n,o]=R.useState(!1);return t.shouldMount=n,t.setShouldMount=o,R.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=Ag(),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 Og(){return gr.use()}function Ag(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function Ui(){return Ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ui.apply(null,arguments)}function zu(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function Hi(e,t){return Hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Hi(e,t)}function _u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hi(e,t)}const xl={disabled:!1};var Mg=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.shape({enter:i.number,exit:i.number,appear:i.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&i.oneOfType([i.string,i.shape({enter:i.string,exit:i.string,active:i.string}),i.shape({enter:i.string,enterDone:i.string,enterActive:i.string,exit:i.string,exitDone:i.string,exitActive:i.string})]);const yr=N.createContext(null);var kg=function(t){return t.scrollTop},io="unmounted",cn="exited",un="entering",An="entered",qi="exiting",St=(function(e){_u(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var a=r,l=a&&!a.isMounting?o.enter:o.appear,c;return s.appearStatus=null,o.in?l?(c=cn,s.appearStatus=un):c=An:o.unmountOnExit||o.mountOnEnter?c=io:c=cn,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(r,s){var a=r.in;return a&&s.status===io?{status:cn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var s=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==un&&a!==An&&(s=un):(a===un||a===An)&&(s=qi)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,s,a,l;return s=a=l=r,r!=null&&typeof r!="number"&&(s=r.exit,a=r.enter,l=r.appear!==void 0?r.appear:a),{exit:s,enter:a,appear:l}},n.updateStatus=function(r,s){if(r===void 0&&(r=!1),s!==null)if(this.cancelNextCallback(),s===un){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:kn.findDOMNode(this);a&&kg(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cn&&this.setState({status:io})},n.performEnter=function(r){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[kn.findDOMNode(this),l],u=c[0],d=c[1],p=this.getTimeouts(),f=l?p.appear:p.enter;if(!r&&!a||xl.disabled){this.safeSetState({status:An},function(){s.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:un},function(){s.props.onEntering(u,d),s.onTransitionEnd(f,function(){s.safeSetState({status:An},function(){s.props.onEntered(u,d)})})})},n.performExit=function(){var r=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:kn.findDOMNode(this);if(!s||xl.disabled){this.safeSetState({status:cn},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:qi},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:cn},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,s){s=this.setNextCallback(s),this.setState(r,s)},n.setNextCallback=function(r){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,r(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:kn.findDOMNode(this),l=r==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)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===io)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=zu(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return N.createElement(yr.Provider,{value:null},typeof a=="function"?a(r,l):N.cloneElement(N.Children.only(a),l))},t})(N.Component);St.contextType=yr;St.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:i.shape({current:typeof Element>"u"?i.any:function(e,t,n,o,r,s){var a=e[t];return i.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,s)}}),children:i.oneOfType([i.func.isRequired,i.element.isRequired]).isRequired,in:i.bool,mountOnEnter:i.bool,unmountOnExit:i.bool,appear:i.bool,enter:i.bool,exit:i.bool,timeout:function(t){var n=Mg;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];return n.apply(void 0,[t].concat(r))},addEndListener:i.func,onEnter:i.func,onEntering:i.func,onEntered:i.func,onExit:i.func,onExiting:i.func,onExited:i.func}:{};function On(){}St.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:On,onEntering:On,onEntered:On,onExit:On,onExiting:On,onExited:On};St.UNMOUNTED=io;St.EXITED=cn;St.ENTERING=un;St.ENTERED=An;St.EXITING=qi;function jg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zs(e,t){var n=function(s){return t&&N.isValidElement(s)?t(s):s},o=Object.create(null);return e&&N.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function $g(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var o=Object.create(null),r=[];for(var s in e)s in t?r.length&&(o[s]=r,r=[]):r.push(s);var a,l={};for(var c in t){if(o[c])for(a=0;a<o[c].length;a++){var u=o[c][a];l[o[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<r.length;a++)l[r[a]]=n(r[a]);return l}function fn(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Ig(e,t){return zs(e.children,function(n){return N.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:fn(n,"appear",e),enter:fn(n,"enter",e),exit:fn(n,"exit",e)})})}function Dg(e,t,n){var o=zs(e.children),r=$g(t,o);return Object.keys(r).forEach(function(s){var a=r[s];if(N.isValidElement(a)){var l=s in t,c=s in o,u=t[s],d=N.isValidElement(u)&&!u.props.in;c&&(!l||d)?r[s]=N.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:fn(a,"exit",e),enter:fn(a,"enter",e)}):!c&&l&&!d?r[s]=N.cloneElement(a,{in:!1}):c&&l&&N.isValidElement(u)&&(r[s]=N.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:fn(a,"exit",e),enter:fn(a,"enter",e)}))}}),r}var Bg=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Vg={component:"div",childFactory:function(t){return t}},_s=(function(e){_u(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var a=s.handleExited.bind(jg(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(r,s){var a=s.children,l=s.handleExited,c=s.firstRender;return{children:c?Ig(r,l):Dg(r,a,l),firstRender:!1}},n.handleExited=function(r,s){var a=zs(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(l){var c=Ui({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,s=r.component,a=r.childFactory,l=zu(r,["component","childFactory"]),c=this.state.contextValue,u=Bg(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?N.createElement(yr.Provider,{value:c},u):N.createElement(yr.Provider,{value:c},N.createElement(s,l,u))},t})(N.Component);_s.propTypes=process.env.NODE_ENV!=="production"?{component:i.any,children:i.node,appear:i.bool,enter:i.bool,exit:i.bool,childFactory:i.func}:{};_s.defaultProps=Vg;const Ng=[];function Lg(e){R.useEffect(e,Ng)}class Gr{static create(){return new Gr}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 hn(){const e=Fu(Gr.create).current;return Lg(e.disposeEffect),e}function Wu(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:s,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,p]=R.useState(!1),f=de(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),g={width:a,height:a,top:-(a/2)+s,left:-(a/2)+r},m=de(n.child,d&&n.childLeaving,o&&n.childPulsate);return!l&&!d&&p(!0),R.useEffect(()=>{if(!l&&c!=null){const h=setTimeout(c,u);return()=>{clearTimeout(h)}}},[c,l,u]),y.jsx("span",{className:f,style:g,children:y.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(Wu.propTypes={classes:i.object.isRequired,className:i.string,in:i.bool,onExited:i.func,pulsate:i.bool,rippleSize:i.number,rippleX:i.number,rippleY:i.number,timeout:i.number.isRequired});const ut=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Gi=550,Fg=80,zg=ae.keyframes`
36
+ `))},[JSON.stringify(n)])}const u=R.useCallback(d=>{s||l(d)},[]);return[c,u]}function Nt(e){const t=R.useRef(e);return Zt(()=>{t.current=e}),R.useRef((...n)=>(0,t.current)(...n)).current}function et(...e){const t=R.useRef(void 0),n=R.useCallback(o=>{const r=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return s.current=o,()=>{s.current=null}});return()=>{r.forEach(s=>s?.())}},e);return R.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function Eg(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Pg(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{Eg(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=de(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 o=t,r=n(e,o),s=de(o?.className,e?.className);return{...t,...e,...r,...!!s&&{className:s},...o?.style&&e?.style&&{style:{...o.style,...e.style}},...o?.sx&&e?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const ko=i.oneOfType([i.func,i.object]);function vt(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function Rg(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Og(e,t,n,o,r){const s=e[t],a=r||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!Rg(s)&&(l="Did you accidentally provide a plain function component instead?"),s===R.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${o} \`${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 qr=vt(i.elementType,Og);function Nn(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 xl={};function zu(e,t){const n=R.useRef(xl);return n.current===xl&&(n.current=e(t)),n}class gr{static create(){return new gr}static use(){const t=zu(gr.create).current,[n,o]=R.useState(!1);return t.shouldMount=n,t.setShouldMount=o,R.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=Mg(),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 Ag(){return gr.use()}function Mg(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function Ui(){return Ui=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ui.apply(null,arguments)}function _u(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function Hi(e,t){return Hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Hi(e,t)}function Wu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hi(e,t)}const wl={disabled:!1};var kg=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.shape({enter:i.number,exit:i.number,appear:i.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&i.oneOfType([i.string,i.shape({enter:i.string,exit:i.string,active:i.string}),i.shape({enter:i.string,enterDone:i.string,enterActive:i.string,exit:i.string,exitDone:i.string,exitActive:i.string})]);const yr=N.createContext(null);var jg=function(t){return t.scrollTop},io="unmounted",cn="exited",un="entering",An="entered",qi="exiting",St=(function(e){Wu(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var a=r,l=a&&!a.isMounting?o.enter:o.appear,c;return s.appearStatus=null,o.in?l?(c=cn,s.appearStatus=un):c=An:o.unmountOnExit||o.mountOnEnter?c=io:c=cn,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(r,s){var a=r.in;return a&&s.status===io?{status:cn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var s=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==un&&a!==An&&(s=un):(a===un||a===An)&&(s=qi)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,s,a,l;return s=a=l=r,r!=null&&typeof r!="number"&&(s=r.exit,a=r.enter,l=r.appear!==void 0?r.appear:a),{exit:s,enter:a,appear:l}},n.updateStatus=function(r,s){if(r===void 0&&(r=!1),s!==null)if(this.cancelNextCallback(),s===un){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:kn.findDOMNode(this);a&&jg(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cn&&this.setState({status:io})},n.performEnter=function(r){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[kn.findDOMNode(this),l],u=c[0],d=c[1],p=this.getTimeouts(),f=l?p.appear:p.enter;if(!r&&!a||wl.disabled){this.safeSetState({status:An},function(){s.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:un},function(){s.props.onEntering(u,d),s.onTransitionEnd(f,function(){s.safeSetState({status:An},function(){s.props.onEntered(u,d)})})})},n.performExit=function(){var r=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:kn.findDOMNode(this);if(!s||wl.disabled){this.safeSetState({status:cn},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:qi},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:cn},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,s){s=this.setNextCallback(s),this.setState(r,s)},n.setNextCallback=function(r){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,r(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:kn.findDOMNode(this),l=r==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)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===io)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=_u(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return N.createElement(yr.Provider,{value:null},typeof a=="function"?a(r,l):N.cloneElement(N.Children.only(a),l))},t})(N.Component);St.contextType=yr;St.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:i.shape({current:typeof Element>"u"?i.any:function(e,t,n,o,r,s){var a=e[t];return i.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,s)}}),children:i.oneOfType([i.func.isRequired,i.element.isRequired]).isRequired,in:i.bool,mountOnEnter:i.bool,unmountOnExit:i.bool,appear:i.bool,enter:i.bool,exit:i.bool,timeout:function(t){var n=kg;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];return n.apply(void 0,[t].concat(r))},addEndListener:i.func,onEnter:i.func,onEntering:i.func,onEntered:i.func,onExit:i.func,onExiting:i.func,onExited:i.func}:{};function On(){}St.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:On,onEntering:On,onEntered:On,onExit:On,onExiting:On,onExited:On};St.UNMOUNTED=io;St.EXITED=cn;St.ENTERING=un;St.ENTERED=An;St.EXITING=qi;function $g(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _s(e,t){var n=function(s){return t&&N.isValidElement(s)?t(s):s},o=Object.create(null);return e&&N.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function Ig(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var o=Object.create(null),r=[];for(var s in e)s in t?r.length&&(o[s]=r,r=[]):r.push(s);var a,l={};for(var c in t){if(o[c])for(a=0;a<o[c].length;a++){var u=o[c][a];l[o[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<r.length;a++)l[r[a]]=n(r[a]);return l}function fn(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Dg(e,t){return _s(e.children,function(n){return N.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:fn(n,"appear",e),enter:fn(n,"enter",e),exit:fn(n,"exit",e)})})}function Bg(e,t,n){var o=_s(e.children),r=Ig(t,o);return Object.keys(r).forEach(function(s){var a=r[s];if(N.isValidElement(a)){var l=s in t,c=s in o,u=t[s],d=N.isValidElement(u)&&!u.props.in;c&&(!l||d)?r[s]=N.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:fn(a,"exit",e),enter:fn(a,"enter",e)}):!c&&l&&!d?r[s]=N.cloneElement(a,{in:!1}):c&&l&&N.isValidElement(u)&&(r[s]=N.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:fn(a,"exit",e),enter:fn(a,"enter",e)}))}}),r}var Vg=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ng={component:"div",childFactory:function(t){return t}},Ws=(function(e){Wu(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var a=s.handleExited.bind($g(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(r,s){var a=s.children,l=s.handleExited,c=s.firstRender;return{children:c?Dg(r,l):Bg(r,a,l),firstRender:!1}},n.handleExited=function(r,s){var a=_s(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(l){var c=Ui({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,s=r.component,a=r.childFactory,l=_u(r,["component","childFactory"]),c=this.state.contextValue,u=Vg(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?N.createElement(yr.Provider,{value:c},u):N.createElement(yr.Provider,{value:c},N.createElement(s,l,u))},t})(N.Component);Ws.propTypes=process.env.NODE_ENV!=="production"?{component:i.any,children:i.node,appear:i.bool,enter:i.bool,exit:i.bool,childFactory:i.func}:{};Ws.defaultProps=Ng;const Lg=[];function Fg(e){R.useEffect(e,Lg)}class Gr{static create(){return new Gr}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 hn(){const e=zu(Gr.create).current;return Fg(e.disposeEffect),e}function Uu(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:s,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,p]=R.useState(!1),f=de(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),g={width:a,height:a,top:-(a/2)+s,left:-(a/2)+r},m=de(n.child,d&&n.childLeaving,o&&n.childPulsate);return!l&&!d&&p(!0),R.useEffect(()=>{if(!l&&c!=null){const h=setTimeout(c,u);return()=>{clearTimeout(h)}}},[c,l,u]),y.jsx("span",{className:f,style:g,children:y.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(Uu.propTypes={classes:i.object.isRequired,className:i.string,in:i.bool,onExited:i.func,pulsate:i.bool,rippleSize:i.number,rippleX:i.number,rippleY:i.number,timeout:i.number.isRequired});const ut=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Gi=550,zg=80,_g=ae.keyframes`
38
38
  0% {
39
39
  transform: scale(0);
40
40
  opacity: 0.1;
@@ -44,7 +44,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
44
44
  transform: scale(1);
45
45
  opacity: 0.3;
46
46
  }
47
- `,_g=ae.keyframes`
47
+ `,Wg=ae.keyframes`
48
48
  0% {
49
49
  opacity: 1;
50
50
  }
@@ -52,7 +52,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
52
52
  100% {
53
53
  opacity: 0;
54
54
  }
55
- `,Wg=ae.keyframes`
55
+ `,Ug=ae.keyframes`
56
56
  0% {
57
57
  transform: scale(1);
58
58
  }
@@ -64,14 +64,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
64
64
  100% {
65
65
  transform: scale(1);
66
66
  }
67
- `,Ug=oe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Hg=oe(Wu,{name:"MuiTouchRipple",slot:"Ripple"})`
67
+ `,Hg=oe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),qg=oe(Uu,{name:"MuiTouchRipple",slot:"Ripple"})`
68
68
  opacity: 0;
69
69
  position: absolute;
70
70
 
71
71
  &.${ut.rippleVisible} {
72
72
  opacity: 0.3;
73
73
  transform: scale(1);
74
- animation-name: ${zg};
74
+ animation-name: ${_g};
75
75
  animation-duration: ${Gi}ms;
76
76
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
77
77
  }
@@ -91,7 +91,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
91
91
 
92
92
  & .${ut.childLeaving} {
93
93
  opacity: 0;
94
- animation-name: ${_g};
94
+ animation-name: ${Wg};
95
95
  animation-duration: ${Gi}ms;
96
96
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
97
97
  }
@@ -101,13 +101,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
101
101
  /* @noflip */
102
102
  left: 0px;
103
103
  top: 0;
104
- animation-name: ${Wg};
104
+ animation-name: ${Ug};
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
- `,Uu=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:a,...l}=o,[c,u]=R.useState([]),d=R.useRef(0),p=R.useRef(null);R.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const f=R.useRef(!1),g=hn(),m=R.useRef(null),h=R.useRef(null),x=R.useCallback(b=>{const{pulsate:w,rippleX:S,rippleY:M,rippleSize:j,cb:O}=b;u(A=>[...A,y.jsx(Hg,{classes:{ripple:de(s.ripple,ut.ripple),rippleVisible:de(s.rippleVisible,ut.rippleVisible),ripplePulsate:de(s.ripplePulsate,ut.ripplePulsate),child:de(s.child,ut.child),childLeaving:de(s.childLeaving,ut.childLeaving),childPulsate:de(s.childPulsate,ut.childPulsate)},timeout:Gi,pulsate:w,rippleX:S,rippleY:M,rippleSize:j},d.current)]),d.current+=1,p.current=O},[s]),T=R.useCallback((b={},w={},S=()=>{})=>{const{pulsate:M=!1,center:j=r||w.pulsate,fakeElement:O=!1}=w;if(b?.type==="mousedown"&&f.current){f.current=!1;return}b?.type==="touchstart"&&(f.current=!0);const A=O?null:h.current,I=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,D,k;if(j||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)v=Math.round(I.width/2),D=Math.round(I.height/2);else{const{clientX:V,clientY:$}=b.touches&&b.touches.length>0?b.touches[0]:b;v=Math.round(V-I.left),D=Math.round($-I.top)}if(j)k=Math.sqrt((2*I.width**2+I.height**2)/3),k%2===0&&(k+=1);else{const V=Math.max(Math.abs((A?A.clientWidth:0)-v),v)*2+2,$=Math.max(Math.abs((A?A.clientHeight:0)-D),D)*2+2;k=Math.sqrt(V**2+$**2)}b?.touches?m.current===null&&(m.current=()=>{x({pulsate:M,rippleX:v,rippleY:D,rippleSize:k,cb:S})},g.start(Fg,()=>{m.current&&(m.current(),m.current=null)})):x({pulsate:M,rippleX:v,rippleY:D,rippleSize:k,cb:S})},[r,x,g]),C=R.useCallback(()=>{T({},{pulsate:!0})},[T]),E=R.useCallback((b,w)=>{if(g.clear(),b?.type==="touchend"&&m.current){m.current(),m.current=null,g.start(0,()=>{E(b,w)});return}m.current=null,u(S=>S.length>0?S.slice(1):S),p.current=w},[g]);return R.useImperativeHandle(n,()=>({pulsate:C,start:T,stop:E}),[C,T,E]),y.jsx(Ug,{className:de(ut.root,s.root,a),ref:h,...l,children:y.jsx(_s,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Uu.propTypes={center:i.bool,classes:i.object,className:i.string});function qg(e){return ke("MuiButtonBase",e)}const Gg=je("MuiButtonBase",["root","disabled","focusVisible"]),Yg=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=Ne({root:["root",t&&"disabled",n&&"focusVisible"]},qg,r);return n&&o&&(a.root+=` ${o}`),a},Kg=oe("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"},[`&.${Gg.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Yr=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:f=!1,focusVisibleClassName:g,LinkComponent:m="a",onBlur:h,onClick:x,onContextMenu:T,onDragLeave:C,onFocus:E,onFocusVisible:b,onKeyDown:w,onKeyUp:S,onMouseDown:M,onMouseLeave:j,onMouseUp:O,onTouchEnd:A,onTouchMove:I,onTouchStart:v,tabIndex:D=0,TouchRippleProps:k,touchRippleRef:V,type:$,...W}=o,B=R.useRef(null),_=Og(),P=et(_.ref,V),[L,H]=R.useState(!1);u&&L&&H(!1),R.useImperativeHandle(r,()=>({focusVisible:()=>{H(!0),B.current.focus()}}),[]);const q=_.shouldMount&&!d&&!u;R.useEffect(()=>{L&&f&&!d&&_.pulsate()},[d,f,L,_]);const K=Vt(_,"start",M,p),ee=Vt(_,"stop",T,p),te=Vt(_,"stop",C,p),ne=Vt(_,"stop",O,p),J=Vt(_,"stop",X=>{L&&X.preventDefault(),j&&j(X)},p),le=Vt(_,"start",v,p),Y=Vt(_,"stop",A,p),se=Vt(_,"stop",I,p),z=Vt(_,"stop",X=>{Nn(X.target)||H(!1),h&&h(X)},!1),pe=Nt(X=>{B.current||(B.current=X.currentTarget),Nn(X.target)&&(H(!0),b&&b(X)),E&&E(X)}),ce=()=>{const X=B.current;return c&&c!=="button"&&!(X.tagName==="A"&&X.href)},re=Nt(X=>{f&&!X.repeat&&L&&X.key===" "&&_.stop(X,()=>{_.start(X)}),X.target===X.currentTarget&&ce()&&X.key===" "&&X.preventDefault(),w&&w(X),X.target===X.currentTarget&&ce()&&X.key==="Enter"&&!u&&(X.preventDefault(),x&&x(X))}),Ce=Nt(X=>{f&&X.key===" "&&L&&!X.defaultPrevented&&_.stop(X,()=>{_.pulsate(X)}),S&&S(X),x&&X.target===X.currentTarget&&ce()&&X.key===" "&&!X.defaultPrevented&&x(X)});let be=c;be==="button"&&(W.href||W.to)&&(be=m);const me={};if(be==="button"){const X=!!W.formAction;me.type=$===void 0&&!X?"button":$,me.disabled=u}else!W.href&&!W.to&&(me.role="button"),u&&(me["aria-disabled"]=u);const we=et(n,B),Ee={...o,centerRipple:s,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:f,tabIndex:D,focusVisible:L},ue=Yg(Ee);return y.jsxs(Kg,{as:be,className:de(ue.root,l),ownerState:Ee,onBlur:z,onClick:x,onContextMenu:ee,onFocus:pe,onKeyDown:re,onKeyUp:Ce,onMouseDown:K,onMouseLeave:J,onMouseUp:ne,onDragLeave:te,onTouchEnd:Y,onTouchMove:se,onTouchStart:le,ref:we,tabIndex:u?-1:D,type:$,...me,...W,children:[a,q?y.jsx(Uu,{ref:P,center:s,...k}):null]})});function Vt(e,t,n,o=!1){return Nt(r=>(n&&n(r),o||e[t](r),!0))}process.env.NODE_ENV!=="production"&&(Yr.propTypes={action:ko,centerRipple:i.bool,children:i.node,classes:i.object,className:i.string,component:qr,disabled:i.bool,disableRipple:i.bool,disableTouchRipple:i.bool,focusRipple:i.bool,focusVisibleClassName:i.string,formAction:i.oneOfType([i.func,i.string]),href:i.any,LinkComponent:i.elementType,onBlur:i.func,onClick:i.func,onContextMenu:i.func,onDragLeave:i.func,onFocus:i.func,onFocusVisible:i.func,onKeyDown:i.func,onKeyUp:i.func,onMouseDown:i.func,onMouseLeave:i.func,onMouseUp:i.func,onTouchEnd:i.func,onTouchMove:i.func,onTouchStart:i.func,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number,TouchRippleProps:i.object,touchRippleRef:i.oneOfType([i.func,i.shape({current:i.shape({pulsate:i.func.isRequired,start:i.func.isRequired,stop:i.func.isRequired})})]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string])});function Xg(e){return typeof e.main=="string"}function Zg(e,t=[]){if(!Xg(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Qe(e=[]){return([,t])=>t&&Zg(t,e)}function Jg(e){return ke("MuiCircularProgress",e)}je("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const bt=44,Yi=ae.keyframes`
110
+ `,Hu=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:a,...l}=o,[c,u]=R.useState([]),d=R.useRef(0),p=R.useRef(null);R.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const f=R.useRef(!1),g=hn(),m=R.useRef(null),h=R.useRef(null),x=R.useCallback(b=>{const{pulsate:w,rippleX:S,rippleY:M,rippleSize:j,cb:O}=b;u(A=>[...A,y.jsx(qg,{classes:{ripple:de(s.ripple,ut.ripple),rippleVisible:de(s.rippleVisible,ut.rippleVisible),ripplePulsate:de(s.ripplePulsate,ut.ripplePulsate),child:de(s.child,ut.child),childLeaving:de(s.childLeaving,ut.childLeaving),childPulsate:de(s.childPulsate,ut.childPulsate)},timeout:Gi,pulsate:w,rippleX:S,rippleY:M,rippleSize:j},d.current)]),d.current+=1,p.current=O},[s]),T=R.useCallback((b={},w={},S=()=>{})=>{const{pulsate:M=!1,center:j=r||w.pulsate,fakeElement:O=!1}=w;if(b?.type==="mousedown"&&f.current){f.current=!1;return}b?.type==="touchstart"&&(f.current=!0);const A=O?null:h.current,I=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,D,k;if(j||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)v=Math.round(I.width/2),D=Math.round(I.height/2);else{const{clientX:V,clientY:$}=b.touches&&b.touches.length>0?b.touches[0]:b;v=Math.round(V-I.left),D=Math.round($-I.top)}if(j)k=Math.sqrt((2*I.width**2+I.height**2)/3),k%2===0&&(k+=1);else{const V=Math.max(Math.abs((A?A.clientWidth:0)-v),v)*2+2,$=Math.max(Math.abs((A?A.clientHeight:0)-D),D)*2+2;k=Math.sqrt(V**2+$**2)}b?.touches?m.current===null&&(m.current=()=>{x({pulsate:M,rippleX:v,rippleY:D,rippleSize:k,cb:S})},g.start(zg,()=>{m.current&&(m.current(),m.current=null)})):x({pulsate:M,rippleX:v,rippleY:D,rippleSize:k,cb:S})},[r,x,g]),C=R.useCallback(()=>{T({},{pulsate:!0})},[T]),E=R.useCallback((b,w)=>{if(g.clear(),b?.type==="touchend"&&m.current){m.current(),m.current=null,g.start(0,()=>{E(b,w)});return}m.current=null,u(S=>S.length>0?S.slice(1):S),p.current=w},[g]);return R.useImperativeHandle(n,()=>({pulsate:C,start:T,stop:E}),[C,T,E]),y.jsx(Hg,{className:de(ut.root,s.root,a),ref:h,...l,children:y.jsx(Ws,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Hu.propTypes={center:i.bool,classes:i.object,className:i.string});function Gg(e){return ke("MuiButtonBase",e)}const Yg=je("MuiButtonBase",["root","disabled","focusVisible"]),Kg=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=Ne({root:["root",t&&"disabled",n&&"focusVisible"]},Gg,r);return n&&o&&(a.root+=` ${o}`),a},Xg=oe("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"},[`&.${Yg.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Yr=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:f=!1,focusVisibleClassName:g,LinkComponent:m="a",onBlur:h,onClick:x,onContextMenu:T,onDragLeave:C,onFocus:E,onFocusVisible:b,onKeyDown:w,onKeyUp:S,onMouseDown:M,onMouseLeave:j,onMouseUp:O,onTouchEnd:A,onTouchMove:I,onTouchStart:v,tabIndex:D=0,TouchRippleProps:k,touchRippleRef:V,type:$,...W}=o,B=R.useRef(null),_=Ag(),P=et(_.ref,V),[L,H]=R.useState(!1);u&&L&&H(!1),R.useImperativeHandle(r,()=>({focusVisible:()=>{H(!0),B.current.focus()}}),[]);const q=_.shouldMount&&!d&&!u;R.useEffect(()=>{L&&f&&!d&&_.pulsate()},[d,f,L,_]);const K=Vt(_,"start",M,p),ee=Vt(_,"stop",T,p),te=Vt(_,"stop",C,p),ne=Vt(_,"stop",O,p),J=Vt(_,"stop",X=>{L&&X.preventDefault(),j&&j(X)},p),le=Vt(_,"start",v,p),Y=Vt(_,"stop",A,p),se=Vt(_,"stop",I,p),z=Vt(_,"stop",X=>{Nn(X.target)||H(!1),h&&h(X)},!1),pe=Nt(X=>{B.current||(B.current=X.currentTarget),Nn(X.target)&&(H(!0),b&&b(X)),E&&E(X)}),ce=()=>{const X=B.current;return c&&c!=="button"&&!(X.tagName==="A"&&X.href)},re=Nt(X=>{f&&!X.repeat&&L&&X.key===" "&&_.stop(X,()=>{_.start(X)}),X.target===X.currentTarget&&ce()&&X.key===" "&&X.preventDefault(),w&&w(X),X.target===X.currentTarget&&ce()&&X.key==="Enter"&&!u&&(X.preventDefault(),x&&x(X))}),Ce=Nt(X=>{f&&X.key===" "&&L&&!X.defaultPrevented&&_.stop(X,()=>{_.pulsate(X)}),S&&S(X),x&&X.target===X.currentTarget&&ce()&&X.key===" "&&!X.defaultPrevented&&x(X)});let be=c;be==="button"&&(W.href||W.to)&&(be=m);const me={};if(be==="button"){const X=!!W.formAction;me.type=$===void 0&&!X?"button":$,me.disabled=u}else!W.href&&!W.to&&(me.role="button"),u&&(me["aria-disabled"]=u);const we=et(n,B),Ee={...o,centerRipple:s,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:f,tabIndex:D,focusVisible:L},ue=Kg(Ee);return y.jsxs(Xg,{as:be,className:de(ue.root,l),ownerState:Ee,onBlur:z,onClick:x,onContextMenu:ee,onFocus:pe,onKeyDown:re,onKeyUp:Ce,onMouseDown:K,onMouseLeave:J,onMouseUp:ne,onDragLeave:te,onTouchEnd:Y,onTouchMove:se,onTouchStart:le,ref:we,tabIndex:u?-1:D,type:$,...me,...W,children:[a,q?y.jsx(Hu,{ref:P,center:s,...k}):null]})});function Vt(e,t,n,o=!1){return Nt(r=>(n&&n(r),o||e[t](r),!0))}process.env.NODE_ENV!=="production"&&(Yr.propTypes={action:ko,centerRipple:i.bool,children:i.node,classes:i.object,className:i.string,component:qr,disabled:i.bool,disableRipple:i.bool,disableTouchRipple:i.bool,focusRipple:i.bool,focusVisibleClassName:i.string,formAction:i.oneOfType([i.func,i.string]),href:i.any,LinkComponent:i.elementType,onBlur:i.func,onClick:i.func,onContextMenu:i.func,onDragLeave:i.func,onFocus:i.func,onFocusVisible:i.func,onKeyDown:i.func,onKeyUp:i.func,onMouseDown:i.func,onMouseLeave:i.func,onMouseUp:i.func,onTouchEnd:i.func,onTouchMove:i.func,onTouchStart:i.func,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number,TouchRippleProps:i.object,touchRippleRef:i.oneOfType([i.func,i.shape({current:i.shape({pulsate:i.func.isRequired,start:i.func.isRequired,stop:i.func.isRequired})})]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string])});function Zg(e){return typeof e.main=="string"}function Jg(e,t=[]){if(!Zg(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Qe(e=[]){return([,t])=>t&&Jg(t,e)}function Qg(e){return ke("MuiCircularProgress",e)}je("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const bt=44,Yi=ae.keyframes`
111
111
  0% {
112
112
  transform: rotate(0deg);
113
113
  }
@@ -130,14 +130,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
130
130
  stroke-dasharray: 1px, 200px;
131
131
  stroke-dashoffset: -126px;
132
132
  }
133
- `,Qg=typeof Yi!="string"?ae.css`
133
+ `,ey=typeof Yi!="string"?ae.css`
134
134
  animation: ${Yi} 1.4s linear infinite;
135
- `:null,ey=typeof Ki!="string"?ae.css`
135
+ `:null,ty=typeof Ki!="string"?ae.css`
136
136
  animation: ${Ki} 1.4s ease-in-out infinite;
137
- `:null,ty=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,s={root:["root",n,`color${Z(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Z(n)}`,r&&"circleDisableShrink"]};return Ne(s,Jg,t)},ny=oe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Z(n.color)}`]]}})(Se(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Qg||{animation:`${Yi} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),oy=oe("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),ry=oe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Z(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Se(({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:ey||{animation:`${Ki} 1.4s ease-in-out infinite`}}]}))),iy=oe("circle",{name:"MuiCircularProgress",slot:"Track"})(Se(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),vn=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiCircularProgress"}),{className:r,color:s="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:f="indeterminate",...g}=o,m={...o,color:s,disableShrink:a,size:c,thickness:d,value:p,variant:f,enableTrackSlot:l},h=ty(m),x={},T={},C={};if(f==="determinate"){const E=2*Math.PI*((bt-d)/2);x.strokeDasharray=E.toFixed(3),C["aria-valuenow"]=Math.round(p),x.strokeDashoffset=`${((100-p)/100*E).toFixed(3)}px`,T.transform="rotate(-90deg)"}return y.jsx(ny,{className:de(h.root,r),style:{width:c,height:c,...T,...u},ownerState:m,ref:n,role:"progressbar",...C,...g,children:y.jsxs(oy,{className:h.svg,ownerState:m,viewBox:`${bt/2} ${bt/2} ${bt} ${bt}`,children:[l?y.jsx(iy,{className:h.track,ownerState:m,cx:bt,cy:bt,r:(bt-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,y.jsx(ry,{className:h.circle,style:x,ownerState:m,cx:bt,cy:bt,r:(bt-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(vn.propTypes={classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","error","info","success","warning"]),i.string]),disableShrink:vt(i.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:i.bool,size:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),thickness:i.number,value:i.number,variant:i.oneOf(["determinate","indeterminate"])});function sy(e){return ke("MuiButton",e)}const an=je("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"]),Ws=R.createContext({});process.env.NODE_ENV!=="production"&&(Ws.displayName="ButtonGroupContext");const Us=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(Us.displayName="ButtonGroupButtonContext");const ay=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:s,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",s,`${s}${Z(t)}`,`size${Z(r)}`,`${s}Size${Z(r)}`,`color${Z(t)}`,n&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${Z(l)}`],startIcon:["icon","startIcon",`iconSize${Z(r)}`],endIcon:["icon","endIcon",`iconSize${Z(r)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Ne(u,sy,c);return{...c,...d}},Hu=[{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}}}],ly=oe(Yr,{shouldForwardProp:e=>Vu(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]}})(Se(({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"},[`&.${an.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]},[`&.${an.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${an.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)",[`&.${an.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(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].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"},[`&.${an.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${an.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}),[`&.${an.loading}`]:{color:"transparent"}}}]}})),cy=oe("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}},...Hu]})),uy=oe("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}},...Hu]})),dy=oe("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}}]})),wl=oe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),qu=R.forwardRef(function(t,n){const o=R.useContext(Ws),r=R.useContext(Us),s=dr(o,t),a=De({props:s,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:f=!1,disableFocusRipple:g=!1,endIcon:m,focusVisibleClassName:h,fullWidth:x=!1,id:T,loading:C=null,loadingIndicator:E,loadingPosition:b="center",size:w="medium",startIcon:S,type:M,variant:j="text",...O}=a,A=Mo(T),I=E??y.jsx(vn,{"aria-labelledby":A,color:"inherit",size:16}),v={...a,color:c,component:u,disabled:p,disableElevation:f,disableFocusRipple:g,fullWidth:x,loading:C,loadingIndicator:I,loadingPosition:b,size:w,type:M,variant:j},D=ay(v),k=(S||C&&b==="start")&&y.jsx(cy,{className:D.startIcon,ownerState:v,children:S||y.jsx(wl,{className:D.loadingIconPlaceholder,ownerState:v})}),V=(m||C&&b==="end")&&y.jsx(uy,{className:D.endIcon,ownerState:v,children:m||y.jsx(wl,{className:D.loadingIconPlaceholder,ownerState:v})}),$=r||"",W=typeof C=="boolean"?y.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:C&&y.jsx(dy,{className:D.loadingIndicator,ownerState:v,children:I})}):null;return y.jsxs(ly,{ownerState:v,className:de(o.className,D.root,d,$),component:u,disabled:p||C,focusRipple:!g,focusVisibleClassName:de(D.focusVisible,h),ref:n,type:M,id:C?A:T,...O,classes:D,children:[k,b!=="end"&&W,l,b==="end"&&W,V]})});process.env.NODE_ENV!=="production"&&(qu.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","success","error","info","warning"]),i.string]),component:i.elementType,disabled:i.bool,disableElevation:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,endIcon:i.node,focusVisibleClassName:i.string,fullWidth:i.bool,href:i.string,id:i.string,loading:i.bool,loadingIndicator:i.node,loadingPosition:i.oneOf(["center","end","start"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),startIcon:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string]),variant:i.oneOfType([i.oneOf(["contained","outlined","text"]),i.string])});function py(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function fy(e){return parseFloat(e)}const Gu=Be(y.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"),hy=Be(y.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"),Tl=ae.keyframes`
137
+ `:null,ny=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,s={root:["root",n,`color${Z(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Z(n)}`,r&&"circleDisableShrink"]};return Ne(s,Qg,t)},oy=oe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Z(n.color)}`]]}})(Se(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:ey||{animation:`${Yi} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),ry=oe("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),iy=oe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Z(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Se(({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:ty||{animation:`${Ki} 1.4s ease-in-out infinite`}}]}))),sy=oe("circle",{name:"MuiCircularProgress",slot:"Track"})(Se(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),vn=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiCircularProgress"}),{className:r,color:s="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:f="indeterminate",...g}=o,m={...o,color:s,disableShrink:a,size:c,thickness:d,value:p,variant:f,enableTrackSlot:l},h=ny(m),x={},T={},C={};if(f==="determinate"){const E=2*Math.PI*((bt-d)/2);x.strokeDasharray=E.toFixed(3),C["aria-valuenow"]=Math.round(p),x.strokeDashoffset=`${((100-p)/100*E).toFixed(3)}px`,T.transform="rotate(-90deg)"}return y.jsx(oy,{className:de(h.root,r),style:{width:c,height:c,...T,...u},ownerState:m,ref:n,role:"progressbar",...C,...g,children:y.jsxs(ry,{className:h.svg,ownerState:m,viewBox:`${bt/2} ${bt/2} ${bt} ${bt}`,children:[l?y.jsx(sy,{className:h.track,ownerState:m,cx:bt,cy:bt,r:(bt-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,y.jsx(iy,{className:h.circle,style:x,ownerState:m,cx:bt,cy:bt,r:(bt-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(vn.propTypes={classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","error","info","success","warning"]),i.string]),disableShrink:vt(i.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:i.bool,size:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),thickness:i.number,value:i.number,variant:i.oneOf(["determinate","indeterminate"])});function ay(e){return ke("MuiButton",e)}const an=je("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"]),Us=R.createContext({});process.env.NODE_ENV!=="production"&&(Us.displayName="ButtonGroupContext");const Hs=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(Hs.displayName="ButtonGroupButtonContext");const ly=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:s,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",s,`${s}${Z(t)}`,`size${Z(r)}`,`${s}Size${Z(r)}`,`color${Z(t)}`,n&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${Z(l)}`],startIcon:["icon","startIcon",`iconSize${Z(r)}`],endIcon:["icon","endIcon",`iconSize${Z(r)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Ne(u,ay,c);return{...c,...d}},qu=[{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}}}],cy=oe(Yr,{shouldForwardProp:e=>Nu(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]}})(Se(({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"},[`&.${an.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]},[`&.${an.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${an.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)",[`&.${an.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(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].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"},[`&.${an.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${an.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}),[`&.${an.loading}`]:{color:"transparent"}}}]}})),uy=oe("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}},...qu]})),dy=oe("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}},...qu]})),py=oe("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}}]})),Tl=oe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Gu=R.forwardRef(function(t,n){const o=R.useContext(Us),r=R.useContext(Hs),s=dr(o,t),a=De({props:s,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:f=!1,disableFocusRipple:g=!1,endIcon:m,focusVisibleClassName:h,fullWidth:x=!1,id:T,loading:C=null,loadingIndicator:E,loadingPosition:b="center",size:w="medium",startIcon:S,type:M,variant:j="text",...O}=a,A=Mo(T),I=E??y.jsx(vn,{"aria-labelledby":A,color:"inherit",size:16}),v={...a,color:c,component:u,disabled:p,disableElevation:f,disableFocusRipple:g,fullWidth:x,loading:C,loadingIndicator:I,loadingPosition:b,size:w,type:M,variant:j},D=ly(v),k=(S||C&&b==="start")&&y.jsx(uy,{className:D.startIcon,ownerState:v,children:S||y.jsx(Tl,{className:D.loadingIconPlaceholder,ownerState:v})}),V=(m||C&&b==="end")&&y.jsx(dy,{className:D.endIcon,ownerState:v,children:m||y.jsx(Tl,{className:D.loadingIconPlaceholder,ownerState:v})}),$=r||"",W=typeof C=="boolean"?y.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:C&&y.jsx(py,{className:D.loadingIndicator,ownerState:v,children:I})}):null;return y.jsxs(cy,{ownerState:v,className:de(o.className,D.root,d,$),component:u,disabled:p||C,focusRipple:!g,focusVisibleClassName:de(D.focusVisible,h),ref:n,type:M,id:C?A:T,...O,classes:D,children:[k,b!=="end"&&W,l,b==="end"&&W,V]})});process.env.NODE_ENV!=="production"&&(Gu.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","success","error","info","warning"]),i.string]),component:i.elementType,disabled:i.bool,disableElevation:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,endIcon:i.node,focusVisibleClassName:i.string,fullWidth:i.bool,href:i.string,id:i.string,loading:i.bool,loadingIndicator:i.node,loadingPosition:i.oneOf(["center","end","start"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),startIcon:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string]),variant:i.oneOfType([i.oneOf(["contained","outlined","text"]),i.string])});function fy(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function hy(e){return parseFloat(e)}const Yu=Be(y.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"),my=Be(y.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"),Cl=ae.keyframes`
138
138
  from { transform: scale(0); opacity: 0; }
139
139
  to { transform: scale(1); opacity: 1; }
140
- `,my=oe("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),Hs=N.forwardRef(({variante:e="primario",tamano:t="mediano",forma:n="cuadrado",estado:o="inactivo",cargando:r=!1,disabled:s=!1,iconoIzquierda:a,iconoDerecha:l,soloIcono:c=!1,texto:u,textoCargando:d,textoExito:p,textoError:f,children:g,startIcon:m,endIcon:h,sx:x,color:T,alHacerClick:C,anchoCompleto:E,fullWidth:b,...w},S)=>{const M=st(),j=r?"cargando":o,O=j==="cargando",A=j==="exito",I=j==="error",v=j==="inactivo"&&!s,D=B=>["contorno","secundario"].includes(B)?"outlined":["fantasma","enlace"].includes(B)?"text":"contained",k=B=>B==="diminuto"||B==="xs"||B==="pequeno"||B==="sm"?"small":B==="mediano"||B==="md"?"medium":B==="grande"||B==="lg"||B==="enorme"||B==="xl"?"large":"medium",V=(B,_)=>{if(_)switch(_){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 _}switch(B){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"}},$=()=>{const B={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:k(t)==="small"?32:k(t)==="large"?48:40,height:k(t)==="small"?32:k(t)==="large"?48:40,padding:0,borderRadius:n==="cuadrado"?"10px":"50%"},"&:hover":{transform:v?"translateY(-1px)":"none",boxShadow:v&&e!=="fantasma"&&e!=="enlace"?"0 4px 12px rgba(0,0,0,0.1)":"none"},"&:active":{transform:v?"scale(0.98)":"none"}};if(t==="diminuto"||t==="xs"?(B.padding=c?0:"2px 8px",B.fontSize="0.75rem",B.minWidth=c?24:"auto",c&&(B.height=24,B.width=24)):t==="pequeno"||t==="sm"?c&&(B.height=28,B.width=28):(t==="enorme"||t==="xl")&&(B.padding=c?0:"12px 28px",B.fontSize="1.125rem",c&&(B.height=56,B.width=56)),A&&(B.backgroundColor=M.palette.success.main,B.color=M.palette.success.contrastText,B["&:hover"]={backgroundColor:M.palette.success.dark}),I&&(B.backgroundColor=M.palette.error.main,B.color=M.palette.error.contrastText,B["&:hover"]={backgroundColor:M.palette.error.dark}),e==="suave"&&!A&&!I){const _=V("primario",T)||"primary";let P=M.palette.primary.main;_==="error"?P=M.palette.error.main:_==="success"?P=M.palette.success.main:_==="warning"?P=M.palette.warning.main:_==="info"?P=M.palette.info.main:_==="secondary"&&(P=M.palette.secondary.main),B.backgroundColor=ae.alpha(P,.1),B.color=P,B.boxShadow="none",B["&:hover"]={...B["&:hover"],backgroundColor:ae.alpha(P,.2),boxShadow:"none"}}return e==="fantasma"&&(B.backgroundColor="transparent",B["&:hover"]={...B["&:hover"],backgroundColor:ae.alpha(M.palette.action.active,.08)}),e==="enlace"&&(B.padding=0,B.minWidth="auto",B.borderRadius=0,B.verticalAlign="baseline",B["&:hover"]={textDecoration:"underline",backgroundColor:"transparent",transform:"none",boxShadow:"none"},B["&:active"]={transform:"none"}),e==="oscuro"&&!A&&!I&&(B.backgroundColor=M.palette.grey[800],B.color=M.palette.common.white,B["&:hover"]={...B["&:hover"],backgroundColor:M.palette.grey[900]}),e==="claro"&&!A&&!I&&(B.backgroundColor=M.palette.grey[100],B.color=M.palette.grey[800],B["&:hover"]={...B["&:hover"],backgroundColor:M.palette.grey[200]}),B},W=()=>{const B=g||u;return O?y.jsxs(N.Fragment,{children:[y.jsx(vn,{size:20,color:"inherit",sx:{mr:d?1:0}}),d||B]}):A?y.jsxs(N.Fragment,{children:[y.jsx(Gu,{sx:{mr:p?1:0,animation:`${Tl} 0.3s ease-out`}}),p||"¡Éxito!"]}):I?y.jsxs(N.Fragment,{children:[y.jsx(hy,{sx:{mr:f?1:0,animation:`${Tl} 0.3s ease-out`}}),f||"Error"]}):y.jsxs(N.Fragment,{children:[a&&y.jsx("span",{style:{marginRight:B?8:0,display:"flex"},children:a}),B,l&&y.jsx("span",{style:{marginLeft:B?8:0,display:"flex"},children:l})]})};return y.jsx(qu,{ref:S,variant:D(e),color:V(e,T),size:k(t),disabled:s||O,fullWidth:E??b,onClick:C,disableElevation:!0,startIcon:void 0,endIcon:void 0,sx:{...$(),...x},...w,children:W()})});Hs.displayName="CodeplexBoton";const gy=Hs;function Yu(e){const t=R.useRef({});return R.useEffect(()=>{t.current=e}),t.current}function yy(e){const{badgeContent:t,invisible:n=!1,max:o=99,showZero:r=!1}=e,s=Yu({badgeContent:t,max:o});let a=n;n===!1&&t===0&&!r&&(a=!0);const{badgeContent:l,max:c=o}=a?s:e,u=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:a,max:c,displayValue:u}}function vy(e){return ke("MuiBadge",e)}const Ht=je("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 vr(e){return typeof e=="string"}function Ku(e,t,n){return e===void 0||vr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Xu(e,t,n){return typeof e=="function"?e(t,n):e}function Zu(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Cl(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 Ju(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:s}=e;if(!t){const g=de(n?.className,s,r?.className,o?.className),m={...n?.style,...r?.style,...o?.style},h={...n,...r,...o};return g.length>0&&(h.className=g),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:void 0}}const a=Zu({...r,...o}),l=Cl(o),c=Cl(r),u=t(a),d=de(u?.className,n?.className,s,r?.className,o?.className),p={...u?.style,...n?.style,...r?.style,...o?.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 Te(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...f}=s,g=d[e]||o,m=Xu(p[e],r),{props:{component:h,...x},internalRef:T}=Ju({className:n,...c,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:m}),C=et(T,m?.ref,t.ref),E=e==="root"?h||u:h,b=Ku(g,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...x,...E&&!l&&{as:E},...E&&l&&{component:E},ref:C},r);return[g,b]}const mi=10,gi=4,by=e=>{const{color:t,anchorOrigin:n,invisible:o,overlap:r,variant:s,classes:a={}}=e,l={root:["root"],badge:["badge",s,o&&"invisible",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`,`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}${Z(r)}`,`overlap${Z(r)}`,t!=="default"&&`color${Z(t)}`]};return Ne(l,vy,a)},xy=oe("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),wy=oe("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]}})(Se(({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:mi*2,lineHeight:1,padding:"0 6px",height:mi*2,borderRadius:mi,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(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:gi,height:gi*2,minWidth:gi*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%",[`&.${Ht.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%",[`&.${Ht.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%",[`&.${Ht.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%",[`&.${Ht.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%",[`&.${Ht.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%",[`&.${Ht.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%",[`&.${Ht.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%",[`&.${Ht.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 Sl(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const Kr=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiBadge"}),{anchorOrigin:r,className:s,classes:a,component:l,components:c={},componentsProps:u={},children:d,overlap:p="rectangular",color:f="default",invisible:g=!1,max:m=99,badgeContent:h,slots:x,slotProps:T,showZero:C=!1,variant:E="standard",...b}=o,{badgeContent:w,invisible:S,max:M,displayValue:j}=yy({max:m,invisible:g,badgeContent:h,showZero:C}),O=Yu({anchorOrigin:Sl(r),color:f,overlap:p,variant:E,badgeContent:h}),A=S||w==null&&E!=="dot",{color:I=f,overlap:v=p,anchorOrigin:D,variant:k=E}=A?O:o,V=Sl(D),$=k!=="dot"?j:void 0,W={...o,badgeContent:w,invisible:A,max:M,displayValue:$,showZero:C,anchorOrigin:V,color:I,overlap:v,variant:k},B=by(W),_={slots:{root:x?.root??c.Root,badge:x?.badge??c.Badge},slotProps:{root:T?.root??u.root,badge:T?.badge??u.badge}},[P,L]=Te("root",{elementType:xy,externalForwardedProps:{..._,...b},ownerState:W,className:de(B.root,s),ref:n,additionalProps:{as:l}}),[H,q]=Te("badge",{elementType:wy,externalForwardedProps:_,ownerState:W,className:B.badge});return y.jsxs(P,{...L,children:[d,y.jsx(H,{...q,children:$})]})});process.env.NODE_ENV!=="production"&&(Kr.propTypes={anchorOrigin:i.shape({horizontal:i.oneOf(["left","right"]),vertical:i.oneOf(["bottom","top"])}),badgeContent:i.node,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,components:i.shape({Badge:i.elementType,Root:i.elementType}),componentsProps:i.shape({badge:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),invisible:i.bool,max:i.number,overlap:i.oneOf(["circular","rectangular"]),showZero:i.bool,slotProps:i.shape({badge:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({badge:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["dot","standard"]),i.string])});const Ty=ae.keyframes`
140
+ `,gy=oe("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),qs=N.forwardRef(({variante:e="primario",tamano:t="mediano",forma:n="cuadrado",estado:o="inactivo",cargando:r=!1,disabled:s=!1,iconoIzquierda:a,iconoDerecha:l,soloIcono:c=!1,texto:u,textoCargando:d,textoExito:p,textoError:f,children:g,startIcon:m,endIcon:h,sx:x,color:T,alHacerClick:C,anchoCompleto:E,fullWidth:b,...w},S)=>{const M=st(),j=r?"cargando":o,O=j==="cargando",A=j==="exito",I=j==="error",v=j==="inactivo"&&!s,D=B=>["contorno","secundario"].includes(B)?"outlined":["fantasma","enlace"].includes(B)?"text":"contained",k=B=>B==="diminuto"||B==="xs"||B==="pequeno"||B==="sm"?"small":B==="mediano"||B==="md"?"medium":B==="grande"||B==="lg"||B==="enorme"||B==="xl"?"large":"medium",V=(B,_)=>{if(_)switch(_){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 _}switch(B){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"}},$=()=>{const B={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:k(t)==="small"?32:k(t)==="large"?48:40,height:k(t)==="small"?32:k(t)==="large"?48:40,padding:0,borderRadius:n==="cuadrado"?"10px":"50%"},"&:hover":{transform:v?"translateY(-1px)":"none",boxShadow:v&&e!=="fantasma"&&e!=="enlace"?"0 4px 12px rgba(0,0,0,0.1)":"none"},"&:active":{transform:v?"scale(0.98)":"none"}};if(t==="diminuto"||t==="xs"?(B.padding=c?0:"2px 8px",B.fontSize="0.75rem",B.minWidth=c?24:"auto",c&&(B.height=24,B.width=24)):t==="pequeno"||t==="sm"?c&&(B.height=28,B.width=28):(t==="enorme"||t==="xl")&&(B.padding=c?0:"12px 28px",B.fontSize="1.125rem",c&&(B.height=56,B.width=56)),A&&(B.backgroundColor=M.palette.success.main,B.color=M.palette.success.contrastText,B["&:hover"]={backgroundColor:M.palette.success.dark}),I&&(B.backgroundColor=M.palette.error.main,B.color=M.palette.error.contrastText,B["&:hover"]={backgroundColor:M.palette.error.dark}),e==="suave"&&!A&&!I){const _=V("primario",T)||"primary";let P=M.palette.primary.main;_==="error"?P=M.palette.error.main:_==="success"?P=M.palette.success.main:_==="warning"?P=M.palette.warning.main:_==="info"?P=M.palette.info.main:_==="secondary"&&(P=M.palette.secondary.main),B.backgroundColor=ae.alpha(P,.1),B.color=P,B.boxShadow="none",B["&:hover"]={...B["&:hover"],backgroundColor:ae.alpha(P,.2),boxShadow:"none"}}return e==="fantasma"&&(B.backgroundColor="transparent",B["&:hover"]={...B["&:hover"],backgroundColor:ae.alpha(M.palette.action.active,.08)}),e==="enlace"&&(B.padding=0,B.minWidth="auto",B.borderRadius=0,B.verticalAlign="baseline",B["&:hover"]={textDecoration:"underline",backgroundColor:"transparent",transform:"none",boxShadow:"none"},B["&:active"]={transform:"none"}),e==="oscuro"&&!A&&!I&&(B.backgroundColor=M.palette.grey[800],B.color=M.palette.common.white,B["&:hover"]={...B["&:hover"],backgroundColor:M.palette.grey[900]}),e==="claro"&&!A&&!I&&(B.backgroundColor=M.palette.grey[100],B.color=M.palette.grey[800],B["&:hover"]={...B["&:hover"],backgroundColor:M.palette.grey[200]}),B},W=()=>{const B=g||u;return O?y.jsxs(N.Fragment,{children:[y.jsx(vn,{size:20,color:"inherit",sx:{mr:d?1:0}}),d||B]}):A?y.jsxs(N.Fragment,{children:[y.jsx(Yu,{sx:{mr:p?1:0,animation:`${Cl} 0.3s ease-out`}}),p||"¡Éxito!"]}):I?y.jsxs(N.Fragment,{children:[y.jsx(my,{sx:{mr:f?1:0,animation:`${Cl} 0.3s ease-out`}}),f||"Error"]}):y.jsxs(N.Fragment,{children:[a&&y.jsx("span",{style:{marginRight:B?8:0,display:"flex"},children:a}),B,l&&y.jsx("span",{style:{marginLeft:B?8:0,display:"flex"},children:l})]})};return y.jsx(Gu,{ref:S,variant:D(e),color:V(e,T),size:k(t),disabled:s||O,fullWidth:E??b,onClick:C,disableElevation:!0,startIcon:void 0,endIcon:void 0,sx:{...$(),...x},...w,children:W()})});qs.displayName="CodeplexBoton";const yy=qs;function Ku(e){const t=R.useRef({});return R.useEffect(()=>{t.current=e}),t.current}function vy(e){const{badgeContent:t,invisible:n=!1,max:o=99,showZero:r=!1}=e,s=Ku({badgeContent:t,max:o});let a=n;n===!1&&t===0&&!r&&(a=!0);const{badgeContent:l,max:c=o}=a?s:e,u=l&&Number(l)>c?`${c}+`:l;return{badgeContent:l,invisible:a,max:c,displayValue:u}}function by(e){return ke("MuiBadge",e)}const Ht=je("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 vr(e){return typeof e=="string"}function Xu(e,t,n){return e===void 0||vr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Zu(e,t,n){return typeof e=="function"?e(t,n):e}function Ju(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Sl(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 Qu(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:s}=e;if(!t){const g=de(n?.className,s,r?.className,o?.className),m={...n?.style,...r?.style,...o?.style},h={...n,...r,...o};return g.length>0&&(h.className=g),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:void 0}}const a=Ju({...r,...o}),l=Sl(o),c=Sl(r),u=t(a),d=de(u?.className,n?.className,s,r?.className,o?.className),p={...u?.style,...n?.style,...r?.style,...o?.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 Te(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...f}=s,g=d[e]||o,m=Zu(p[e],r),{props:{component:h,...x},internalRef:T}=Qu({className:n,...c,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:m}),C=et(T,m?.ref,t.ref),E=e==="root"?h||u:h,b=Xu(g,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...x,...E&&!l&&{as:E},...E&&l&&{component:E},ref:C},r);return[g,b]}const mi=10,gi=4,xy=e=>{const{color:t,anchorOrigin:n,invisible:o,overlap:r,variant:s,classes:a={}}=e,l={root:["root"],badge:["badge",s,o&&"invisible",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`,`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}${Z(r)}`,`overlap${Z(r)}`,t!=="default"&&`color${Z(t)}`]};return Ne(l,by,a)},wy=oe("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Ty=oe("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]}})(Se(({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:mi*2,lineHeight:1,padding:"0 6px",height:mi*2,borderRadius:mi,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(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:gi,height:gi*2,minWidth:gi*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%",[`&.${Ht.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%",[`&.${Ht.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%",[`&.${Ht.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%",[`&.${Ht.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%",[`&.${Ht.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%",[`&.${Ht.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%",[`&.${Ht.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%",[`&.${Ht.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 El(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const Kr=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiBadge"}),{anchorOrigin:r,className:s,classes:a,component:l,components:c={},componentsProps:u={},children:d,overlap:p="rectangular",color:f="default",invisible:g=!1,max:m=99,badgeContent:h,slots:x,slotProps:T,showZero:C=!1,variant:E="standard",...b}=o,{badgeContent:w,invisible:S,max:M,displayValue:j}=vy({max:m,invisible:g,badgeContent:h,showZero:C}),O=Ku({anchorOrigin:El(r),color:f,overlap:p,variant:E,badgeContent:h}),A=S||w==null&&E!=="dot",{color:I=f,overlap:v=p,anchorOrigin:D,variant:k=E}=A?O:o,V=El(D),$=k!=="dot"?j:void 0,W={...o,badgeContent:w,invisible:A,max:M,displayValue:$,showZero:C,anchorOrigin:V,color:I,overlap:v,variant:k},B=xy(W),_={slots:{root:x?.root??c.Root,badge:x?.badge??c.Badge},slotProps:{root:T?.root??u.root,badge:T?.badge??u.badge}},[P,L]=Te("root",{elementType:wy,externalForwardedProps:{..._,...b},ownerState:W,className:de(B.root,s),ref:n,additionalProps:{as:l}}),[H,q]=Te("badge",{elementType:Ty,externalForwardedProps:_,ownerState:W,className:B.badge});return y.jsxs(P,{...L,children:[d,y.jsx(H,{...q,children:$})]})});process.env.NODE_ENV!=="production"&&(Kr.propTypes={anchorOrigin:i.shape({horizontal:i.oneOf(["left","right"]),vertical:i.oneOf(["bottom","top"])}),badgeContent:i.node,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,components:i.shape({Badge:i.elementType,Root:i.elementType}),componentsProps:i.shape({badge:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),invisible:i.bool,max:i.number,overlap:i.oneOf(["circular","rectangular"]),showZero:i.bool,slotProps:i.shape({badge:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({badge:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["dot","standard"]),i.string])});const Cy=ae.keyframes`
141
141
  0% {
142
142
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
143
143
  transform: scale(1);
@@ -151,9 +151,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
151
151
  100% {
152
152
  transform: scale(1);
153
153
  }
154
- `,Cy=oe(Kr,{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:`${Ty} 1.5s infinite ease-in-out`}}})),Qu=({children:e,color:t="primario",contenido:n,variante:o="estandar",maximo:r=99,mostrarCero:s=!1,superposicion:a="rectangular",invisible:l=!1,posicionVertical:c="arriba",posicionHorizontal:u="derecha",animado:d=!1,borde:p=!1,...f})=>{const g=x=>{switch(x){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"}},m=x=>x==="punto"?"dot":"standard",h=()=>({vertical:c==="arriba"?"top":"bottom",horizontal:u==="derecha"?"right":"left"});return y.jsx(Cy,{color:g(t),badgeContent:n,variant:m(o),max:r,showZero:s,overlap:a,invisible:l,anchorOrigin:h(),animado:d,borde:p,...f,children:e})},Sy=Qu,Ey=je("MuiBox",["root"]),Py=ku(),ve=ae.createBox({themeId:Hr,defaultTheme:Py,defaultClassName:Ey.root,generateClassName:gu.generate});process.env.NODE_ENV!=="production"&&(ve.propTypes={children:i.node,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Ry(e){return ke("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Oy={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Ay=xg(),My=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:s,classes:a}=e,l={root:["root",s,e.align!=="inherit"&&`align${Z(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return Ne(l,Ry,a)},ky=oe("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]}})(Se(({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(Qe()).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}}]}))),El={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ke=R.forwardRef(function(t,n){const{color:o,...r}=De({props:t,name:"MuiTypography"}),s=!Oy[o],a=Ay({...r,...s&&{color:o}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:f=!1,variant:g="body1",variantMapping:m=El,...h}=a,x={...a,align:l,color:o,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:f,variant:g,variantMapping:m},T=u||(f?"p":m[g]||El[g])||"span",C=My(x);return y.jsx(ky,{as:T,ref:n,className:de(C.root,c),...h,ownerState:x,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...h.style}})});process.env.NODE_ENV!=="production"&&(Ke.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),i.string]),component:i.elementType,gutterBottom:i.bool,noWrap:i.bool,paragraph:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),i.string]),variantMapping:i.object});const ed=({tamano:e="md",color:t="primario",tipo:n="borde",etiqueta:o,posicionEtiqueta:r="derecha",pantallaCompleta:s=!1,className:a="",sx:l,...c})=>{const u=st(),p=typeof e=="number"?e:{xs:16,sm:24,md:40,lg:56,xl:80}[e],g={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[g]?.main??u.palette.primary.main,x=()=>y.jsx(vn,{size:p,color:g,className:a,sx:{color:g==="inherit"?h:void 0,...l},...c}),T=()=>y.jsxs(ve,{position:"relative",display:"inline-flex",width:p,height:p,className:a,sx:l,children:[y.jsx(vn,{variant:"determinate",value:100,size:p,sx:{color:u.palette.mode==="dark"?ae.alpha(h,.2):ae.alpha(h,.1),position:"absolute"}}),y.jsx(vn,{variant:"indeterminate",disableShrink:!0,size:p,sx:{color:h,animationDuration:"1.2s",position:"absolute",left:0,"& .MuiCircularProgress-circle":{strokeLinecap:"round"}},...c})]}),C=()=>y.jsx(ve,{display:"flex",gap:.5,className:a,sx:{height:p,alignItems:"center",...l},children:[0,1,2].map(I=>y.jsx(ve,{sx:{width:p/3,height:p/3,borderRadius:"50%",bgcolor:h,animation:"rebote 1.4s infinite ease-in-out both",animationDelay:`${I*.16}s`,"@keyframes rebote":{"0%, 80%, 100%":{transform:"scale(0)"},"40%":{transform:"scale(1)"}}}},I))}),E=()=>y.jsxs(ve,{position:"relative",display:"inline-flex",width:p,height:p,className:a,sx:l,children:[y.jsx(ve,{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}}}}),y.jsx(ve,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:h}})]}),b=()=>{const I=p/2-p*.1;return y.jsx(ve,{width:p,height:p,position:"relative",className:a,sx:l,children:[0,1,2,3].map(v=>y.jsx(ve,{sx:{position:"absolute",width:I,height:I,borderRadius:"50%",bgcolor:h,top:v<2?0:"auto",bottom:v>=2?0:"auto",left:v%2===0?0:"auto",right:v%2!==0?0:"auto",animation:"cuadricula-fade 1.5s infinite linear",animationDelay:v===1?"-0.4s":v===2?"-0.8s":v===3?"-1.2s":"0s","@keyframes cuadricula-fade":{"0%, 100%":{opacity:1},"50%":{opacity:.3}}}},v))})},w=(I,v,D,k)=>y.jsx(ve,{width:p,height:p,position:"relative",className:a,sx:l,children:Array.from({length:I}).map((V,$)=>y.jsx(ve,{sx:{transformOrigin:"50% 50%",animation:"spinner-fade 1s linear infinite",animationDelay:`${-1+$/I}s`,transform:`rotate(${$*(360/I)}deg) translate(0, -130%)`,position:"absolute",top:"50%",left:"50%",width:p*v,height:p*D,borderRadius:k,bgcolor:h,"@keyframes spinner-fade":{"0%":{opacity:1},"100%":{opacity:0}}}},$))}),S=()=>w(12,.08,.24,"4px"),M=()=>w(8,.2,.2,"4px"),j=()=>w(12,.15,.15,"50%"),O=()=>{switch(n){case"anillo":return T();case"puntos":return C();case"pulso":return E();case"segmentos":return M();case"lineas":return S();case"puntos-circulo":return j();case"cuadricula":return b();default:return x()}},A=y.jsxs(ve,{display:"inline-flex",flexDirection:r==="abajo"?"column":"row",alignItems:"center",justifyContent:"center",gap:1.5,children:[O(),o&&y.jsx(Ke,{variant:"body2",color:"text.secondary",fontWeight:500,whiteSpace:"nowrap",children:o})]});return s?y.jsx(ve,{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:A}):A},jy=ed,td=({teclas:e,tamano:t="md",className:n="",children:o,...r})=>{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?y.jsx("span",{className:`inline-flex items-center gap-1 ${n}`,...r,children:e.map((l,c)=>y.jsx("kbd",{className:`${a} ${s}`,children:l},l+c))}):y.jsx("kbd",{className:`${a} ${s} ${n}`,...r,children:o})},$y=td,Iy=Be(y.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 Dy(e){return ke("MuiAvatar",e)}const By=je("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),Vy=e=>{const{classes:t,variant:n,colorDefault:o}=e;return Ne({root:["root",n,o&&"colorDefault"],img:["img"],fallback:["fallback"]},Dy,t)},Ny=oe("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Se(({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]})}}}]}))),Ly=oe("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Fy=oe(Iy,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function zy({crossOrigin:e,referrerPolicy:t,src:n,srcSet:o}){const[r,s]=R.useState(!1);return R.useEffect(()=>{if(!n&&!o)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,o&&(l.srcset=o),()=>{a=!1}},[e,t,n,o]),r}const qs=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiAvatar"}),{alt:r,children:s,className:a,component:l="div",slots:c={},slotProps:u={},imgProps:d,sizes:p,src:f,srcSet:g,variant:m="circular",...h}=o;let x=null;const T={...o,component:l,variant:m},C=zy({...d,...typeof u.img=="function"?u.img(T):u.img,src:f,srcSet:g}),E=f||g,b=E&&C!=="error";T.colorDefault=!b,delete T.ownerState;const w=Vy(T),[S,M]=Te("root",{ref:n,className:de(w.root,a),elementType:Ny,externalForwardedProps:{slots:c,slotProps:u,component:l,...h},ownerState:T}),[j,O]=Te("img",{className:w.img,elementType:Ly,externalForwardedProps:{slots:c,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:r,src:f,srcSet:g,sizes:p},ownerState:T}),[A,I]=Te("fallback",{className:w.fallback,elementType:Fy,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:T});return b?x=y.jsx(j,{...O}):s||s===0?x=s:E&&r?x=r[0]:x=y.jsx(A,{...I}),y.jsx(S,{...M,children:x})});process.env.NODE_ENV!=="production"&&(qs.propTypes={alt:i.string,children:i.node,classes:i.object,className:i.string,component:i.elementType,imgProps:i.object,sizes:i.string,slotProps:i.shape({fallback:i.oneOfType([i.func,i.object]),img:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({fallback:i.elementType,img:i.elementType,root:i.elementType}),src:i.string,srcSet:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["circular","rounded","square"]),i.string])});function _y(e){return ke("MuiAvatarGroup",e)}const Wy=je("MuiAvatarGroup",["root","avatar"]),yi={small:-16,medium:-8},Uy=e=>{const{classes:t}=e;return Ne({root:["root"],avatar:["avatar"]},_y,t)},Hy=oe("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Wy.avatar}`]:t.avatar},t.root]})(Se(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${By.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),nd=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiAvatarGroup"}),{children:r,className:s,component:a="div",componentsProps:l,max:c=5,renderSurplus:u,slotProps:d={},slots:p={},spacing:f="medium",total:g,variant:m="circular",...h}=o;let x=c<2?2:c;const T={...o,max:c,spacing:f,component:a,variant:m},C=Uy(T),E=R.Children.toArray(r).filter(v=>(process.env.NODE_ENV!=="production"&&yo.isFragment(v)&&console.error(["MUI: The AvatarGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
155
- `)),R.isValidElement(v))),b=g||E.length;b===x&&(x+=1),x=Math.min(b+1,x);const w=Math.min(E.length,x-1),S=Math.max(b-x,b-w,0),M=u?u(S):`+${S}`;let j;T.spacing&&yi[T.spacing]!==void 0?j=yi[T.spacing]:T.spacing===0?j=0:j=-T.spacing||yi.medium;const O={slots:p,slotProps:{surplus:d.additionalAvatar??l?.additionalAvatar,...l,...d}},[A,I]=Te("surplus",{elementType:qs,externalForwardedProps:O,className:C.avatar,ownerState:T,additionalProps:{variant:m}});return y.jsxs(Hy,{as:a,ownerState:T,className:de(C.root,s),ref:n,...h,style:{"--AvatarGroup-spacing":`${j}px`,...h.style},children:[S?y.jsx(A,{...I,children:M}):null,E.slice(0,w).reverse().map(v=>R.cloneElement(v,{className:de(v.props.className,C.avatar),variant:v.props.variant||m}))]})});process.env.NODE_ENV!=="production"&&(nd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,componentsProps:i.shape({additionalAvatar:i.object}),max:vt(i.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:i.func,slotProps:i.shape({additionalAvatar:i.object,surplus:i.oneOfType([i.func,i.object])}),slots:i.shape({surplus:i.elementType}),spacing:i.oneOfType([i.oneOf(["medium","small"]),i.number]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),total:i.number,variant:i.oneOfType([i.oneOf(["circular","rounded","square"]),i.string])});function qy(e){return ke("MuiSkeleton",e)}je("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Gy=e=>{const{classes:t,variant:n,animation:o,hasChildren:r,width:s,height:a}=e;return Ne({root:["root",n,o,r&&"withChildren",r&&!s&&"fitContent",r&&!a&&"heightAuto"]},qy,t)},Xi=ae.keyframes`
154
+ `,Sy=oe(Kr,{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:`${Cy} 1.5s infinite ease-in-out`}}})),ed=({children:e,color:t="primario",contenido:n,variante:o="estandar",maximo:r=99,mostrarCero:s=!1,superposicion:a="rectangular",invisible:l=!1,posicionVertical:c="arriba",posicionHorizontal:u="derecha",animado:d=!1,borde:p=!1,...f})=>{const g=x=>{switch(x){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"}},m=x=>x==="punto"?"dot":"standard",h=()=>({vertical:c==="arriba"?"top":"bottom",horizontal:u==="derecha"?"right":"left"});return y.jsx(Sy,{color:g(t),badgeContent:n,variant:m(o),max:r,showZero:s,overlap:a,invisible:l,anchorOrigin:h(),animado:d,borde:p,...f,children:e})},Ey=ed,Py=je("MuiBox",["root"]),Ry=ju(),ve=ae.createBox({themeId:Hr,defaultTheme:Ry,defaultClassName:Py.root,generateClassName:yu.generate});process.env.NODE_ENV!=="production"&&(ve.propTypes={children:i.node,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Oy(e){return ke("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ay={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},My=wg(),ky=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:s,classes:a}=e,l={root:["root",s,e.align!=="inherit"&&`align${Z(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return Ne(l,Oy,a)},jy=oe("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]}})(Se(({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(Qe()).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}}]}))),Pl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ke=R.forwardRef(function(t,n){const{color:o,...r}=De({props:t,name:"MuiTypography"}),s=!Ay[o],a=My({...r,...s&&{color:o}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:f=!1,variant:g="body1",variantMapping:m=Pl,...h}=a,x={...a,align:l,color:o,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:f,variant:g,variantMapping:m},T=u||(f?"p":m[g]||Pl[g])||"span",C=ky(x);return y.jsx(jy,{as:T,ref:n,className:de(C.root,c),...h,ownerState:x,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...h.style}})});process.env.NODE_ENV!=="production"&&(Ke.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),i.string]),component:i.elementType,gutterBottom:i.bool,noWrap:i.bool,paragraph:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),i.string]),variantMapping:i.object});const td=({tamano:e="md",color:t="primario",tipo:n="borde",etiqueta:o,posicionEtiqueta:r="derecha",pantallaCompleta:s=!1,className:a="",sx:l,...c})=>{const u=st(),p=typeof e=="number"?e:{xs:16,sm:24,md:40,lg:56,xl:80}[e],g={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[g]?.main??u.palette.primary.main,x=()=>y.jsx(vn,{size:p,color:g,className:a,sx:{color:g==="inherit"?h:void 0,...l},...c}),T=()=>y.jsxs(ve,{position:"relative",display:"inline-flex",width:p,height:p,className:a,sx:l,children:[y.jsx(vn,{variant:"determinate",value:100,size:p,sx:{color:u.palette.mode==="dark"?ae.alpha(h,.2):ae.alpha(h,.1),position:"absolute"}}),y.jsx(vn,{variant:"indeterminate",disableShrink:!0,size:p,sx:{color:h,animationDuration:"1.2s",position:"absolute",left:0,"& .MuiCircularProgress-circle":{strokeLinecap:"round"}},...c})]}),C=()=>y.jsx(ve,{display:"flex",gap:.5,className:a,sx:{height:p,alignItems:"center",...l},children:[0,1,2].map(I=>y.jsx(ve,{sx:{width:p/3,height:p/3,borderRadius:"50%",bgcolor:h,animation:"rebote 1.4s infinite ease-in-out both",animationDelay:`${I*.16}s`,"@keyframes rebote":{"0%, 80%, 100%":{transform:"scale(0)"},"40%":{transform:"scale(1)"}}}},I))}),E=()=>y.jsxs(ve,{position:"relative",display:"inline-flex",width:p,height:p,className:a,sx:l,children:[y.jsx(ve,{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}}}}),y.jsx(ve,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:h}})]}),b=()=>{const I=p/2-p*.1;return y.jsx(ve,{width:p,height:p,position:"relative",className:a,sx:l,children:[0,1,2,3].map(v=>y.jsx(ve,{sx:{position:"absolute",width:I,height:I,borderRadius:"50%",bgcolor:h,top:v<2?0:"auto",bottom:v>=2?0:"auto",left:v%2===0?0:"auto",right:v%2!==0?0:"auto",animation:"cuadricula-fade 1.5s infinite linear",animationDelay:v===1?"-0.4s":v===2?"-0.8s":v===3?"-1.2s":"0s","@keyframes cuadricula-fade":{"0%, 100%":{opacity:1},"50%":{opacity:.3}}}},v))})},w=(I,v,D,k)=>y.jsx(ve,{width:p,height:p,position:"relative",className:a,sx:l,children:Array.from({length:I}).map((V,$)=>y.jsx(ve,{sx:{transformOrigin:"50% 50%",animation:"spinner-fade 1s linear infinite",animationDelay:`${-1+$/I}s`,transform:`rotate(${$*(360/I)}deg) translate(0, -130%)`,position:"absolute",top:"50%",left:"50%",width:p*v,height:p*D,borderRadius:k,bgcolor:h,"@keyframes spinner-fade":{"0%":{opacity:1},"100%":{opacity:0}}}},$))}),S=()=>w(12,.08,.24,"4px"),M=()=>w(8,.2,.2,"4px"),j=()=>w(12,.15,.15,"50%"),O=()=>{switch(n){case"anillo":return T();case"puntos":return C();case"pulso":return E();case"segmentos":return M();case"lineas":return S();case"puntos-circulo":return j();case"cuadricula":return b();default:return x()}},A=y.jsxs(ve,{display:"inline-flex",flexDirection:r==="abajo"?"column":"row",alignItems:"center",justifyContent:"center",gap:1.5,children:[O(),o&&y.jsx(Ke,{variant:"body2",color:"text.secondary",fontWeight:500,whiteSpace:"nowrap",children:o})]});return s?y.jsx(ve,{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:A}):A},$y=td,nd=({teclas:e,tamano:t="md",className:n="",children:o,...r})=>{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?y.jsx("span",{className:`inline-flex items-center gap-1 ${n}`,...r,children:e.map((l,c)=>y.jsx("kbd",{className:`${a} ${s}`,children:l},l+c))}):y.jsx("kbd",{className:`${a} ${s} ${n}`,...r,children:o})},Iy=nd,Dy=Be(y.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 By(e){return ke("MuiAvatar",e)}const Vy=je("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),Ny=e=>{const{classes:t,variant:n,colorDefault:o}=e;return Ne({root:["root",n,o&&"colorDefault"],img:["img"],fallback:["fallback"]},By,t)},Ly=oe("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Se(({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]})}}}]}))),Fy=oe("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),zy=oe(Dy,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function _y({crossOrigin:e,referrerPolicy:t,src:n,srcSet:o}){const[r,s]=R.useState(!1);return R.useEffect(()=>{if(!n&&!o)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,o&&(l.srcset=o),()=>{a=!1}},[e,t,n,o]),r}const Gs=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiAvatar"}),{alt:r,children:s,className:a,component:l="div",slots:c={},slotProps:u={},imgProps:d,sizes:p,src:f,srcSet:g,variant:m="circular",...h}=o;let x=null;const T={...o,component:l,variant:m},C=_y({...d,...typeof u.img=="function"?u.img(T):u.img,src:f,srcSet:g}),E=f||g,b=E&&C!=="error";T.colorDefault=!b,delete T.ownerState;const w=Ny(T),[S,M]=Te("root",{ref:n,className:de(w.root,a),elementType:Ly,externalForwardedProps:{slots:c,slotProps:u,component:l,...h},ownerState:T}),[j,O]=Te("img",{className:w.img,elementType:Fy,externalForwardedProps:{slots:c,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:r,src:f,srcSet:g,sizes:p},ownerState:T}),[A,I]=Te("fallback",{className:w.fallback,elementType:zy,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:T});return b?x=y.jsx(j,{...O}):s||s===0?x=s:E&&r?x=r[0]:x=y.jsx(A,{...I}),y.jsx(S,{...M,children:x})});process.env.NODE_ENV!=="production"&&(Gs.propTypes={alt:i.string,children:i.node,classes:i.object,className:i.string,component:i.elementType,imgProps:i.object,sizes:i.string,slotProps:i.shape({fallback:i.oneOfType([i.func,i.object]),img:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({fallback:i.elementType,img:i.elementType,root:i.elementType}),src:i.string,srcSet:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["circular","rounded","square"]),i.string])});function Wy(e){return ke("MuiAvatarGroup",e)}const Uy=je("MuiAvatarGroup",["root","avatar"]),yi={small:-16,medium:-8},Hy=e=>{const{classes:t}=e;return Ne({root:["root"],avatar:["avatar"]},Wy,t)},qy=oe("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Uy.avatar}`]:t.avatar},t.root]})(Se(({theme:e})=>({display:"flex",flexDirection:"row-reverse",[`& .${Vy.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:"var(--AvatarGroup-spacing, -8px)","&:last-child":{marginLeft:0}}}))),od=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiAvatarGroup"}),{children:r,className:s,component:a="div",componentsProps:l,max:c=5,renderSurplus:u,slotProps:d={},slots:p={},spacing:f="medium",total:g,variant:m="circular",...h}=o;let x=c<2?2:c;const T={...o,max:c,spacing:f,component:a,variant:m},C=Hy(T),E=R.Children.toArray(r).filter(v=>(process.env.NODE_ENV!=="production"&&yo.isFragment(v)&&console.error(["MUI: The AvatarGroup component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
155
+ `)),R.isValidElement(v))),b=g||E.length;b===x&&(x+=1),x=Math.min(b+1,x);const w=Math.min(E.length,x-1),S=Math.max(b-x,b-w,0),M=u?u(S):`+${S}`;let j;T.spacing&&yi[T.spacing]!==void 0?j=yi[T.spacing]:T.spacing===0?j=0:j=-T.spacing||yi.medium;const O={slots:p,slotProps:{surplus:d.additionalAvatar??l?.additionalAvatar,...l,...d}},[A,I]=Te("surplus",{elementType:Gs,externalForwardedProps:O,className:C.avatar,ownerState:T,additionalProps:{variant:m}});return y.jsxs(qy,{as:a,ownerState:T,className:de(C.root,s),ref:n,...h,style:{"--AvatarGroup-spacing":`${j}px`,...h.style},children:[S?y.jsx(A,{...I,children:M}):null,E.slice(0,w).reverse().map(v=>R.cloneElement(v,{className:de(v.props.className,C.avatar),variant:v.props.variant||m}))]})});process.env.NODE_ENV!=="production"&&(od.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,componentsProps:i.shape({additionalAvatar:i.object}),max:vt(i.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:i.func,slotProps:i.shape({additionalAvatar:i.object,surplus:i.oneOfType([i.func,i.object])}),slots:i.shape({surplus:i.elementType}),spacing:i.oneOfType([i.oneOf(["medium","small"]),i.number]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),total:i.number,variant:i.oneOfType([i.oneOf(["circular","rounded","square"]),i.string])});function Gy(e){return ke("MuiSkeleton",e)}je("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Yy=e=>{const{classes:t,variant:n,animation:o,hasChildren:r,width:s,height:a}=e;return Ne({root:["root",n,o,r&&"withChildren",r&&!s&&"fitContent",r&&!a&&"heightAuto"]},Gy,t)},Xi=ae.keyframes`
157
157
  0% {
158
158
  opacity: 1;
159
159
  }
@@ -178,20 +178,20 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
178
178
  100% {
179
179
  transform: translateX(100%);
180
180
  }
181
- `,Yy=typeof Xi!="string"?ae.css`
181
+ `,Ky=typeof Xi!="string"?ae.css`
182
182
  animation: ${Xi} 2s ease-in-out 0.5s infinite;
183
- `:null,Ky=typeof Zi!="string"?ae.css`
183
+ `:null,Xy=typeof Zi!="string"?ae.css`
184
184
  &::after {
185
185
  animation: ${Zi} 2s linear 0.5s infinite;
186
186
  }
187
- `:null,Xy=oe("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]}})(Se(({theme:e})=>{const t=py(e.shape.borderRadius)||"px",n=fy(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:o})=>o.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:o})=>o.hasChildren&&!o.width,style:{maxWidth:"fit-content"}},{props:({ownerState:o})=>o.hasChildren&&!o.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Yy||{animation:`${Xi} 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(
187
+ `:null,Zy=oe("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]}})(Se(({theme:e})=>{const t=fy(e.shape.borderRadius)||"px",n=hy(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:o})=>o.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:o})=>o.hasChildren&&!o.width,style:{maxWidth:"fit-content"}},{props:({ownerState:o})=>o.hasChildren&&!o.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Ky||{animation:`${Xi} 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:Ky||{"&::after":{animation:`${Zi} 2s linear 0.5s infinite`}}}]}})),Gs=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:s,component:a="span",height:l,style:c,variant:u="text",width:d,...p}=o,f={...o,animation:r,component:a,variant:u,hasChildren:!!p.children},g=Gy(f);return y.jsx(Xy,{as:a,ref:n,className:de(g.root,s),ownerState:f,...p,style:{width:d,height:l,...c}})});process.env.NODE_ENV!=="production"&&(Gs.propTypes={animation:i.oneOf(["pulse","wave",!1]),children:i.node,classes:i.object,className:i.string,component:i.elementType,height:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["circular","rectangular","rounded","text"]),i.string]),width:i.oneOfType([i.number,i.string])});const Ji=e=>typeof e=="number"?e:e&&{xs:24,sm:32,md:40,lg:48,xl:64,xxl:80}[e]||40,Zy=e=>{const t=Ji(e);return{width:t,height:t,fontSize:t/2}},Jy=oe(Kr)(({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}}})),od=({tamano:e="md",variante:t="circular",estado:n,imagen:o,texto:r,cargando:s=!1,insignia:a,colorInsignia:l="error",sx:c,children:u,...d})=>{const p=T=>{switch(T){case"cuadrado":return"square";case"redondeado":return"rounded";default:return"circular"}},f=T=>{switch(T){case"primario":return"primary";case"secundario":return"secondary";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"exito":return"success";default:return"error"}},g=()=>{if(a)return a},m=()=>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 y.jsx(Gs,{variant:t==="circular"?"circular":"rectangular",width:Ji(e),height:Ji(e),animation:"wave"});const x=y.jsx(qs,{variant:p(t),src:o,alt:r,sx:[Zy(e),...Array.isArray(c)?c:[c]],...d,children:u||(r?r.charAt(0).toUpperCase():null)});return!n&&!a?x:n==="conectado"&&!a?y.jsx(Jy,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:"dot",children:x}):y.jsx(Kr,{overlap:t==="circular"?"circular":"rectangular",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:g(),variant:m(),sx:{"& .MuiBadge-badge":{backgroundColor:a?void 0:h(),color:a?void 0:h()}},color:a?f(l):void 0,children:x})},rd=({children:e,spacing:t="medium",maximo:n=5,...o})=>y.jsx(nd,{max:n,spacing:t,...o,children:e}),id=e=>{let t=0;for(let o=0;o<e.length;o+=1)t=e.charCodeAt(o)+((t<<5)-t);let n="#";for(let o=0;o<3;o+=1){const r=t>>o*8&255;n+=`00${r.toString(16)}`.slice(-2)}return{sx:{bgcolor:n},children:`${e.split(" ")[0][0]}${e.split(" ")[1]?.[0]||""}`}},Qy=id,ev=rd,tv=od,sd=Be(y.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),Ys=({requisitos:e=[]})=>{const[t,n]=N.useState(!1),o=N.useRef(null),r=G.useTheme();return y.jsx(G.ClickAwayListener,{onClickAway:()=>n(!1),children:y.jsxs(G.Box,{sx:{display:"inline-flex",alignItems:"center",ml:.25},children:[y.jsx(G.Box,{component:"button",ref:o,type:"button",onClick:s=>{s.stopPropagation(),s.preventDefault(),n(a=>!a)},onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),"aria-label":"Ver requisitos",sx:{display:"flex",alignItems:"center",justifyContent:"center",color:r.palette.error.main,fontWeight:700,fontSize:18,lineHeight:1,cursor:"help",userSelect:"none",background:"none",border:"none",p:0,transition:r.transitions.create("transform"),"&:hover":{transform:"scale(1.1)"},"&:focus-visible":{outline:`2px solid ${r.palette.primary.main}`,borderRadius:.5}},children:"*"}),y.jsx(G.Popper,{open:t,anchorEl:o.current,placement:"top-start",transition:!0,sx:{zIndex:r.zIndex.tooltip},children:({TransitionProps:s})=>y.jsx(G.Fade,{...s,timeout:150,children:y.jsxs(G.Paper,{elevation:8,sx:{width:256,maxWidth:"85vw",mb:.75,overflow:"hidden",border:`1px solid ${r.palette.divider}`},children:[y.jsx(G.Box,{sx:{px:1.5,py:1,borderBottom:`1px solid ${G.alpha(r.palette.divider,.5)}`,bgcolor:G.alpha(r.palette.background.default,.8),backdropFilter:"blur(8px)"},children:y.jsxs(G.Typography,{variant:"caption",fontWeight:700,color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:"0.05em",display:"flex",alignItems:"center",gap:.75},children:[y.jsx(sd,{sx:{fontSize:12}}),"Requisitos"]})}),y.jsx(G.Box,{component:"ul",sx:{p:.75,m:0,listStyle:"none"},children:e.map((a,l)=>y.jsxs(G.Box,{component:"li",sx:{display:"flex",alignItems:"flex-start",gap:1,px:1,py:.75,borderRadius:1,transition:r.transitions.create("background-color"),"&:hover":{bgcolor:r.palette.action.hover}},children:[y.jsx(G.Typography,{sx:{color:r.palette.primary.main,mt:"1px",fontSize:10},children:"●"}),y.jsx(G.Typography,{variant:"caption",color:"text.secondary",sx:{lineHeight:1.4},children:a})]},l))})]})})})]})})},nv=Ys,ad=({para:e,texto:t,obligatorio:n,requisitos:o,children:r})=>{const s=G.useTheme();return y.jsxs(G.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.75},children:[y.jsx(G.Typography,{component:"label",htmlFor:e,variant:"body2",fontWeight:500,sx:{cursor:"pointer",userSelect:"none",color:s.palette.text.primary},children:t}),n&&(o&&o.length>0?y.jsx(Ys,{requisitos:o}):y.jsx(G.Typography,{component:"span",sx:{fontSize:12,color:s.palette.error.main,fontWeight:700,userSelect:"none"},title:"Campo obligatorio",children:"*"})),r]})},ov=ad;function rv(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 ld(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const s=rv(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function cd(e,t,n,o){return e[t]===void 0?null:ld(e,t,n,o)}function Qi(){return null}cd.isRequired=ld;Qi.isRequired=Qi;const ud=process.env.NODE_ENV==="production"?Qi:cd;function iv(e){return ke("MuiPaper",e)}je("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 sv=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,s={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Ne(s,iv,r)},av=oe("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}`]]}})(Se(({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)"}}]}))),Xr=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiPaper"}),r=st(),{className:s,component:a="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=o,p={...o,component:a,elevation:l,square:c,variant:u},f=sv(p);return process.env.NODE_ENV!=="production"&&r.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
193
- `)),y.jsx(av,{as:a,ownerState:p,className:de(f.root,s),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[l],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[l]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${fr("#fff",Wi(l))}, ${fr("#fff",Wi(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Xr.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,elevation:vt(ud,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:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["elevation","outlined"]),i.string])});function lv(e){return ke("MuiCard",e)}je("MuiCard",["root"]);const cv=e=>{const{classes:t}=e;return Ne({root:["root"]},lv,t)},uv=oe(Xr,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),dd=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiCard"}),{className:r,raised:s=!1,...a}=o,l={...o,raised:s},c=cv(l);return y.jsx(uv,{className:de(c.root,r),elevation:s?8:void 0,ref:n,ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(dd.propTypes={children:i.node,classes:i.object,className:i.string,raised:vt(i.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function dv(e){return ke("MuiCardActionArea",e)}const vi=je("MuiCardActionArea",["root","focusVisible","focusHighlight"]),pv=e=>{const{classes:t}=e;return Ne({root:["root"],focusHighlight:["focusHighlight"]},dv,t)},fv=oe(Yr,{name:"MuiCardActionArea",slot:"Root"})(Se(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${vi.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${vi.focusVisible} .${vi.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),hv=oe("span",{name:"MuiCardActionArea",slot:"FocusHighlight"})(Se(({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})}))),pd=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiCardActionArea"}),{children:r,className:s,focusVisibleClassName:a,slots:l={},slotProps:c={},...u}=o,d=o,p=pv(d),f={slots:l,slotProps:c},[g,m]=Te("root",{elementType:fv,externalForwardedProps:{...f,...u},shouldForwardComponentProp:!0,ownerState:d,ref:n,className:de(p.root,s),additionalProps:{focusVisibleClassName:de(a,p.focusVisible)}}),[h,x]=Te("focusHighlight",{elementType:hv,externalForwardedProps:f,ownerState:d,className:p.focusHighlight});return y.jsxs(g,{...m,children:[r,y.jsx(h,{...x})]})});process.env.NODE_ENV!=="production"&&(pd.propTypes={children:i.node,classes:i.object,className:i.string,focusVisibleClassName:i.string,slotProps:i.shape({focusHighlight:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({focusHighlight:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function mv(e){return ke("MuiCardContent",e)}je("MuiCardContent",["root"]);const gv=e=>{const{classes:t}=e;return Ne({root:["root"]},mv,t)},yv=oe("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),fd=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiCardContent"}),{className:r,component:s="div",...a}=o,l={...o,component:s},c=gv(l);return y.jsx(yv,{as:s,className:de(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(fd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function vv(e){return ke("MuiCardMedia",e)}je("MuiCardMedia",["root","media","img"]);const bv=e=>{const{classes:t,isMediaComponent:n,isImageComponent:o}=e;return Ne({root:["root",n&&"media",o&&"img"]},vv,t)},xv=oe("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:o,isImageComponent:r}=n;return[t.root,o&&t.media,r&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),wv=["video","audio","picture","iframe","img"],Tv=["picture","img"],hd=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiCardMedia"}),{children:r,className:s,component:a="div",image:l,src:c,style:u,...d}=o,p=wv.includes(a),f=!p&&l?{backgroundImage:`url("${l}")`,...u}:u,g={...o,component:a,isMediaComponent:p,isImageComponent:Tv.includes(a)},m=bv(g);return y.jsx(xv,{className:de(m.root,s),as:a,role:!p&&l?"img":void 0,ref:n,style:f,ownerState:g,src:p?l||c:void 0,...d,children:r})});process.env.NODE_ENV!=="production"&&(hd.propTypes={children:vt(i.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:i.object,className:i.string,component:i.elementType,image:i.string,src:i.string,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const md=({variante:e="estandar",relleno:t="m",efectoHover:n,clicable:o,titulo:r,subtitulo:s,accionCabecera:a,multimedia:l,cabecera:c,pie:u,alHacerClick:d,className:p="",children:f,sx:g,...m})=>{const h=st(),x=M=>M==="contorno"||M==="suave"?"outlined":"elevation",T=M=>{switch(M){case"ninguno":return 0;case"p":return 1.5;case"g":return 3;default:return 2}},C=o||!!d,E=C?pd:N.Fragment,b=C?{component:"div",onClick:d}:{},w=()=>e==="suave"?{backgroundColor:h.palette.mode==="dark"?ae.alpha(h.palette.primary.main,.05):ae.alpha(h.palette.primary.main,.03),borderColor:h.palette.mode==="dark"?ae.alpha(h.palette.primary.main,.1):ae.alpha(h.palette.primary.main,.08)}:e==="estandar"?{backgroundColor:h.palette.background.paper}:{},S=()=>c?y.jsx(ve,{sx:{p:T(t),pb:0},children:c}):r?y.jsxs(ve,{sx:{p:T(t),pb:0,display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:1},children:[y.jsxs(ve,{sx:{display:"flex",flexDirection:"column"},children:[y.jsx(Ke,{variant:"h6",component:"div",sx:{fontWeight:600,lineHeight:1.2,fontSize:"1rem",color:h.palette.text.primary},children:r}),s&&y.jsx(Ke,{variant:"body2",color:"text.secondary",sx:{mt:.5,fontSize:"0.875rem"},children:s})]}),a&&y.jsx(ve,{sx:{mt:-.5,mr:-.5},children:a})]}):null;return y.jsx(dd,{variant:x(e)==="outlined"?"outlined":void 0,elevation:e==="estandar"?2:0,className:p,sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:"12px",...w(),...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}}},...g},...m,children:y.jsxs(E,{...b,children:[typeof l=="string"?y.jsx(hd,{component:"img",image:l,alt:"Multimedia",height:"180",sx:{objectFit:"cover"}}):l,S(),y.jsx(fd,{sx:{p:T(t),flexGrow:1,"&:last-child":{pb:T(t)}},children:f}),u&&y.jsx(ve,{sx:{p:T(t),pt:0,mt:"auto",borderTop:e==="contorno"?`1px solid ${h.palette.divider}`:"none",...e==="contorno"&&{pt:T(t)}},children:u})]})})},Cv=md,Sv={izquierda:"left",left:"left",centro:"center",center:"center"},gd=({antetitulo:e,titulo:t,subtitulo:n,alineacion:o="izquierda",etiquetaPrimaria:r,etiquetaSecundaria:s,alClickPrimario:a,alClickSecundario:l,alturaCompleta:c=!1,urlImagenFondo:u,capaOscura:d=!0,children:p})=>{const f=G.useTheme(),g=Sv[o]??"left",m=!!u;return y.jsxs(G.Box,{component:"section",sx:{position:"relative",overflow:"hidden",border:`1px solid ${G.alpha(f.palette.divider,.8)}`,borderRadius:4,px:{xs:3,md:5},py:{xs:5,md:7},boxShadow:f.shadows[1],display:"flex",minHeight:c?"60vh":void 0,...m?{backgroundImage:`url(${u})`,backgroundSize:"cover",backgroundPosition:"center"}:{background:`linear-gradient(to bottom, ${f.palette.background.paper}, ${f.palette.background.default})`}},children:[m&&d&&y.jsx(G.Box,{sx:{position:"absolute",inset:0,bgcolor:G.alpha(f.palette.common.black,.4),backdropFilter:"blur(1px)"}}),y.jsxs(G.Box,{sx:{position:"relative",zIndex:1,maxWidth:720,mx:"auto",display:"flex",flexDirection:"column",gap:3,textAlign:g,alignItems:g==="center"?"center":"flex-start"},children:[e&&y.jsx(G.Chip,{label:e,size:"small",sx:{bgcolor:G.alpha(f.palette.primary.main,.1),color:f.palette.primary.main,fontWeight:500,fontSize:12}}),y.jsxs(G.Box,{sx:{display:"flex",flexDirection:"column",gap:{xs:1.5,md:2}},children:[t&&y.jsx(G.Typography,{variant:"h3",fontWeight:800,letterSpacing:"-0.02em",sx:{fontSize:{xs:28,md:36,lg:44},color:m?f.palette.common.white:f.palette.text.primary},children:t}),n&&y.jsx(G.Typography,{variant:"body1",sx:{maxWidth:560,fontSize:{xs:14,md:16},color:m?G.alpha(f.palette.common.white,.9):f.palette.text.secondary},children:n})]}),(r||s)&&y.jsxs(G.Box,{sx:{display:"flex",flexWrap:"wrap",gap:1.5,mt:1,justifyContent:g==="center"?"center":"flex-start"},children:[r&&a&&y.jsx(G.Button,{variant:"contained",onClick:a,sx:{textTransform:"none",fontWeight:600},children:r}),s&&l&&y.jsx(G.Button,{variant:"outlined",onClick:l,sx:{textTransform:"none",fontWeight:600,...m&&{borderColor:G.alpha(f.palette.common.white,.6),color:f.palette.common.white,"&:hover":{borderColor:f.palette.common.white,bgcolor:G.alpha(f.palette.common.white,.1)}}},children:s})]}),p]})]})},Ev=gd,yd=Be(y.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Pv=Be(y.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),Rv=Be([y.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),y.jsx("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber"),Ks=Be(y.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),Ov=Be(y.jsx("path",{d:"M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7m2.85 11.1-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1"}),"LightbulbOutlined"),Av={exito:"exito",success:"exito",advertencia:"advertencia",warning:"advertencia",neutro:"neutro",neutral:"neutro",info:"info",error:"error"},Mv={info:y.jsx(sd,{fontSize:"small"}),exito:y.jsx(Pv,{fontSize:"small"}),advertencia:y.jsx(Rv,{fontSize:"small"}),error:y.jsx(Ks,{fontSize:"small"}),neutro:y.jsx(Ov,{fontSize:"small"})},vd=({titulo:e,descripcion:t,variante:n="info",icono:o,cerrable:r=!1,abierto:s,alCerrar:a,anchoCompleto:l=!0,children:c})=>{const[u,d]=N.useState(!0),p=G.useTheme(),f=Av[n]??"info";if(!(s!==void 0?s:u))return null;const m={info:{fondo:G.alpha(p.palette.info.main,.08),texto:p.palette.info.dark,borde:G.alpha(p.palette.info.main,.3)},exito:{fondo:G.alpha(p.palette.success.main,.08),texto:p.palette.success.dark,borde:G.alpha(p.palette.success.main,.3)},advertencia:{fondo:G.alpha(p.palette.warning.main,.08),texto:p.palette.warning.dark,borde:G.alpha(p.palette.warning.main,.3)},error:{fondo:G.alpha(p.palette.error.main,.08),texto:p.palette.error.dark,borde:G.alpha(p.palette.error.main,.3)},neutro:{fondo:G.alpha(p.palette.text.primary,.04),texto:p.palette.text.primary,borde:p.palette.divider}},h=m[f]??m.info,x=o??Mv[f],T=f==="error"||f==="advertencia"?"alert":"status",C=()=>{s===void 0&&d(!1),a?.()};return y.jsx(G.Box,{sx:{width:l?"100%":"auto",display:l?"block":"inline-flex"},children:y.jsxs(G.Box,{role:T,sx:{display:"flex",width:"100%",alignItems:"flex-start",gap:1.5,border:`1px solid ${h.borde}`,borderRadius:2,px:2,py:1.5,bgcolor:h.fondo,color:h.texto,boxShadow:p.shadows[1]},children:[x&&y.jsx(G.Box,{sx:{mt:.25,flexShrink:0,display:"flex"},children:x}),y.jsxs(G.Box,{sx:{flex:1,minWidth:0},children:[e&&y.jsx(G.Typography,{variant:"body2",fontWeight:600,noWrap:!0,children:e}),t&&y.jsx(G.Typography,{variant:"caption",sx:{mt:.25,display:"block",lineHeight:1.5},children:t}),c]}),r&&y.jsx(G.IconButton,{size:"small",onClick:C,"aria-label":"Cerrar aviso",sx:{flexShrink:0,color:"inherit",opacity:.7,"&:hover":{opacity:1}},children:y.jsx(yd,{sx:{fontSize:16}})})]})})},kv=vd;function jv(e){return ke("MuiAlert",e)}const Pl=je("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 $v(e){return ke("MuiIconButton",e)}const Rl=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Iv=e=>{const{classes:t,disabled:n,color:o,edge:r,size:s,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",o!=="default"&&`color${Z(o)}`,r&&`edge${Z(r)}`,`size${Z(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ne(l,$v,t)},Dv=oe(Yr,{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)}`]]}})(Se(({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}}]})),Se(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Qe()).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)}}],[`&.${Rl.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Rl.loading}`]:{color:"transparent"}}))),Bv=oe("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"}}]})),Xs=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiIconButton"}),{edge:r=!1,children:s,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:f=null,loadingIndicator:g,...m}=o,h=Mo(p),x=g??y.jsx(vn,{"aria-labelledby":h,color:"inherit",size:16}),T={...o,edge:r,color:l,disabled:c,disableFocusRipple:u,loading:f,loadingIndicator:x,size:d},C=Iv(T);return y.jsxs(Dv,{id:f?h:p,className:de(C.root,a),centerRipple:!0,focusRipple:!u,disabled:c||f,ref:n,...m,ownerState:T,children:[typeof f=="boolean"&&y.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:y.jsx(Bv,{className:C.loadingIndicator,ownerState:T,children:f&&x})}),s]})});process.env.NODE_ENV!=="production"&&(Xs.propTypes={children:vt(i.node,e=>R.Children.toArray(e.children).some(n=>R.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(`
194
- `)):null),classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),id:i.string,loading:i.bool,loadingIndicator:i.node,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const Vv=Be(y.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"),Nv=Be(y.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Lv=Be(y.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"),Fv=Be(y.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"),zv=Be(y.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"),_v=e=>{const{variant:t,color:n,severity:o,classes:r}=e,s={root:["root",`color${Z(n||o)}`,`${t}${Z(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ne(s,jv,r)},Wv=oe(Xr,{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)}`]]}})(Se(({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(Qe(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${Pl.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(Qe(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${Pl.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(Qe(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),Uv=oe("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Hv=oe("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),qv=oe("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Gv={success:y.jsx(Vv,{fontSize:"inherit"}),warning:y.jsx(Nv,{fontSize:"inherit"}),error:y.jsx(Lv,{fontSize:"inherit"}),info:y.jsx(Fv,{fontSize:"inherit"})},bd=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiAlert"}),{action:r,children:s,className:a,closeText:l="Close",color:c,components:u={},componentsProps:d={},icon:p,iconMapping:f=Gv,onClose:g,role:m="alert",severity:h="success",slotProps:x={},slots:T={},variant:C="standard",...E}=o,b={...o,color:c,severity:h,variant:C,colorSeverity:c||h},w=_v(b),S={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...T},slotProps:{...d,...x}},[M,j]=Te("root",{ref:n,shouldForwardComponentProp:!0,className:de(w.root,a),elementType:Wv,externalForwardedProps:{...S,...E},ownerState:b,additionalProps:{role:m,elevation:0}}),[O,A]=Te("icon",{className:w.icon,elementType:Uv,externalForwardedProps:S,ownerState:b}),[I,v]=Te("message",{className:w.message,elementType:Hv,externalForwardedProps:S,ownerState:b}),[D,k]=Te("action",{className:w.action,elementType:qv,externalForwardedProps:S,ownerState:b}),[V,$]=Te("closeButton",{elementType:Xs,externalForwardedProps:S,ownerState:b}),[W,B]=Te("closeIcon",{elementType:zv,externalForwardedProps:S,ownerState:b});return y.jsxs(M,{...j,children:[p!==!1?y.jsx(O,{...A,children:p||f[h]}):null,y.jsx(I,{...v,children:s}),r!=null?y.jsx(D,{...k,children:r}):null,r==null&&g?y.jsx(D,{...k,children:y.jsx(V,{size:"small","aria-label":l,title:l,color:"inherit",onClick:g,...$,children:y.jsx(W,{fontSize:"small",...B})})}):null]})});process.env.NODE_ENV!=="production"&&(bd.propTypes={action:i.node,children:i.node,classes:i.object,className:i.string,closeText:i.string,color:i.oneOfType([i.oneOf(["error","info","success","warning"]),i.string]),components:i.shape({CloseButton:i.elementType,CloseIcon:i.elementType}),componentsProps:i.shape({closeButton:i.object,closeIcon:i.object}),icon:i.node,iconMapping:i.shape({error:i.node,info:i.node,success:i.node,warning:i.node}),onClose:i.func,role:i.string,severity:i.oneOfType([i.oneOf(["error","info","success","warning"]),i.string]),slotProps:i.shape({action:i.oneOfType([i.func,i.object]),closeButton:i.oneOfType([i.func,i.object]),closeIcon:i.oneOfType([i.func,i.object]),icon:i.oneOfType([i.func,i.object]),message:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({action:i.elementType,closeButton:i.elementType,closeIcon:i.elementType,icon:i.elementType,message:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["filled","outlined","standard"]),i.string])});function Yv(e){return ke("MuiAlertTitle",e)}je("MuiAlertTitle",["root"]);const Kv=e=>{const{classes:t}=e;return Ne({root:["root"]},Yv,t)},Xv=oe(Ke,{name:"MuiAlertTitle",slot:"Root"})(Se(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),xd=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiAlertTitle"}),{className:r,...s}=o,a=o,l=Kv(a);return y.jsx(Xv,{gutterBottom:!0,component:"div",ownerState:a,ref:n,className:de(l.root,r),...s})});process.env.NODE_ENV!=="production"&&(xd.propTypes={children:i.node,classes:i.object,className:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const wd=e=>e.scrollTop;function Ln(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function Zv(e){return ke("MuiCollapse",e)}je("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Jv=e=>{const{orientation:t,classes:n}=e,o={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ne(o,Zv,n)},Qv=oe("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]}})(Se(({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"}}]}))),e0=oe("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),t0=oe("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),br=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiCollapse"}),{addEndListener:r,children:s,className:a,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:p,onEntered:f,onEntering:g,onExit:m,onExited:h,onExiting:x,orientation:T="vertical",slots:C={},slotProps:E={},style:b,timeout:w=Ru.standard,TransitionComponent:S=St,...M}=o,j={...o,orientation:T,collapsedSize:l},O=Jv(j),A=st(),I=hn(),v=R.useRef(null),D=R.useRef(),k=typeof l=="number"?`${l}px`:l,V=T==="horizontal",$=V?"width":"height",W=R.useRef(null),B=et(n,W),_=re=>Ce=>{if(re){const be=W.current;Ce===void 0?re(be):re(be,Ce)}},P=()=>v.current?v.current[V?"clientWidth":"clientHeight"]:0,L=_((re,Ce)=>{v.current&&V&&(v.current.style.position="absolute"),re.style[$]=k,p&&p(re,Ce)}),H=_((re,Ce)=>{const be=P();v.current&&V&&(v.current.style.position="");const{duration:me,easing:we}=Ln({style:b,timeout:w,easing:u},{mode:"enter"});if(w==="auto"){const Ee=A.transitions.getAutoHeightDuration(be);re.style.transitionDuration=`${Ee}ms`,D.current=Ee}else re.style.transitionDuration=typeof me=="string"?me:`${me}ms`;re.style[$]=`${be}px`,re.style.transitionTimingFunction=we,g&&g(re,Ce)}),q=_((re,Ce)=>{re.style[$]="auto",f&&f(re,Ce)}),K=_(re=>{re.style[$]=`${P()}px`,m&&m(re)}),ee=_(h),te=_(re=>{const Ce=P(),{duration:be,easing:me}=Ln({style:b,timeout:w,easing:u},{mode:"exit"});if(w==="auto"){const we=A.transitions.getAutoHeightDuration(Ce);re.style.transitionDuration=`${we}ms`,D.current=we}else re.style.transitionDuration=typeof be=="string"?be:`${be}ms`;re.style[$]=k,re.style.transitionTimingFunction=me,x&&x(re)}),ne=re=>{w==="auto"&&I.start(D.current||0,re),r&&r(W.current,re)},J={slots:C,slotProps:E,component:c},[le,Y]=Te("root",{ref:B,className:de(O.root,a),elementType:Qv,externalForwardedProps:J,ownerState:j,additionalProps:{style:{[V?"minWidth":"minHeight"]:k,...b}}}),[se,z]=Te("wrapper",{ref:v,className:O.wrapper,elementType:e0,externalForwardedProps:J,ownerState:j}),[pe,ce]=Te("wrapperInner",{className:O.wrapperInner,elementType:t0,externalForwardedProps:J,ownerState:j});return y.jsx(S,{in:d,onEnter:L,onEntered:q,onEntering:H,onExit:K,onExited:ee,onExiting:te,addEndListener:ne,nodeRef:W,timeout:w==="auto"?null:w,...M,children:(re,{ownerState:Ce,...be})=>{const me={...j,state:re};return y.jsx(le,{...Y,className:de(Y.className,{entered:O.entered,exited:!d&&k==="0px"&&O.hidden}[re]),ownerState:me,...be,children:y.jsx(se,{...z,ownerState:me,children:y.jsx(pe,{...ce,ownerState:me,children:s})})})}})});process.env.NODE_ENV!=="production"&&(br.propTypes={addEndListener:i.func,children:i.node,classes:i.object,className:i.string,collapsedSize:i.oneOfType([i.number,i.string]),component:qr,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,orientation:i.oneOf(["horizontal","vertical"]),slotProps:i.shape({root:i.oneOfType([i.func,i.object]),wrapper:i.oneOfType([i.func,i.object]),wrapperInner:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType,wrapper:i.elementType,wrapperInner:i.elementType}),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),timeout:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});br&&(br.muiSupportAuto=!0);const Td=({variante:e="info",diseno:t="estandar",titulo:n,descripcion:o,cerrable:r=!1,abierto:s=!0,alCerrar:a,tiempoAutoCierre:l,accion:c,icono:u,children:d,sx:p,...f})=>{const g=st(),[m,h]=N.useState(s);N.useEffect(()=>{h(s)},[s]),N.useEffect(()=>{if(l&&l>0&&m){const w=setTimeout(()=>{a?.(),h(!1)},l);return()=>clearTimeout(w)}},[l,m,a]);const x=w=>{switch(w){case"peligro":return"error";case"exito":return"success";case"advertencia":return"warning";default:return"info"}},T=w=>{switch(w){case"lleno":return"filled";case"contorno":return"outlined";default:return"standard"}},C=w=>{switch(w){case"success":return g.palette.success.main;case"warning":return g.palette.warning.main;case"error":return g.palette.error.main;default:return g.palette.info.main}},E=()=>{if(t!=="suave")return{};const w=C(x(e));return{backgroundColor:ae.alpha(w,.12),color:w,"& .MuiAlert-icon":{color:w},"& .MuiAlertTitle-root":{color:w}}},b=()=>{a?.(),h(!1)};return y.jsx(br,{in:m,children:y.jsxs(bd,{severity:x(e),variant:T(t),onClose:r||a?b:void 0,icon:u,action:c,sx:[{borderRadius:"12px",mb:2,border:t==="contorno"?"1px solid":void 0,boxShadow:t==="lleno"?g.shadows[4]:g.shadows[1],alignItems:"center",...E(),"& .MuiAlertTitle-root":{fontWeight:700,mb:o||d?.5:0,fontSize:"0.95rem",lineHeight:1.4},"& .MuiAlert-message":{width:"100%",padding:0,display:"flex",flexDirection:"column",justifyContent:"center"},"& .MuiAlert-icon":{padding:0,mr:1.5,opacity:t==="suave"?1:.9}},...Array.isArray(p)?p:p?[p]:[]],...f,children:[n&&y.jsx(xd,{children:n}),o&&y.jsx(ve,{component:"div",sx:{opacity:.9},children:o}),d]})})},n0=Td;function o0(e){return ke("MuiLinearProgress",e)}je("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const es=4,ts=ae.keyframes`
192
+ )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Xy||{"&::after":{animation:`${Zi} 2s linear 0.5s infinite`}}}]}})),Ys=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:s,component:a="span",height:l,style:c,variant:u="text",width:d,...p}=o,f={...o,animation:r,component:a,variant:u,hasChildren:!!p.children},g=Yy(f);return y.jsx(Zy,{as:a,ref:n,className:de(g.root,s),ownerState:f,...p,style:{width:d,height:l,...c}})});process.env.NODE_ENV!=="production"&&(Ys.propTypes={animation:i.oneOf(["pulse","wave",!1]),children:i.node,classes:i.object,className:i.string,component:i.elementType,height:i.oneOfType([i.number,i.string]),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["circular","rectangular","rounded","text"]),i.string]),width:i.oneOfType([i.number,i.string])});const Ji=e=>typeof e=="number"?e:e&&{xs:24,sm:32,md:40,lg:48,xl:64,xxl:80}[e]||40,Jy=e=>{const t=Ji(e);return{width:t,height:t,fontSize:t/2}},Qy=oe(Kr)(({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}}})),rd=({tamano:e="md",variante:t="circular",estado:n,imagen:o,texto:r,cargando:s=!1,insignia:a,colorInsignia:l="error",sx:c,children:u,...d})=>{const p=T=>{switch(T){case"cuadrado":return"square";case"redondeado":return"rounded";default:return"circular"}},f=T=>{switch(T){case"primario":return"primary";case"secundario":return"secondary";case"error":return"error";case"info":return"info";case"advertencia":return"warning";case"exito":return"success";default:return"error"}},g=()=>{if(a)return a},m=()=>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 y.jsx(Ys,{variant:t==="circular"?"circular":"rectangular",width:Ji(e),height:Ji(e),animation:"wave"});const x=y.jsx(Gs,{variant:p(t),src:o,alt:r,sx:[Jy(e),...Array.isArray(c)?c:[c]],...d,children:u||(r?r.charAt(0).toUpperCase():null)});return!n&&!a?x:n==="conectado"&&!a?y.jsx(Qy,{overlap:"circular",anchorOrigin:{vertical:"bottom",horizontal:"right"},variant:"dot",children:x}):y.jsx(Kr,{overlap:t==="circular"?"circular":"rectangular",anchorOrigin:{vertical:"bottom",horizontal:"right"},badgeContent:g(),variant:m(),sx:{"& .MuiBadge-badge":{backgroundColor:a?void 0:h(),color:a?void 0:h()}},color:a?f(l):void 0,children:x})},id=({children:e,spacing:t="medium",maximo:n=5,...o})=>y.jsx(od,{max:n,spacing:t,...o,children:e}),sd=e=>{let t=0;for(let o=0;o<e.length;o+=1)t=e.charCodeAt(o)+((t<<5)-t);let n="#";for(let o=0;o<3;o+=1){const r=t>>o*8&255;n+=`00${r.toString(16)}`.slice(-2)}return{sx:{bgcolor:n},children:`${e.split(" ")[0][0]}${e.split(" ")[1]?.[0]||""}`}},ev=sd,tv=id,nv=rd,ad=Be(y.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),Ks=({requisitos:e=[]})=>{const[t,n]=N.useState(!1),o=N.useRef(null),r=G.useTheme();return y.jsx(G.ClickAwayListener,{onClickAway:()=>n(!1),children:y.jsxs(G.Box,{sx:{display:"inline-flex",alignItems:"center",ml:.25},children:[y.jsx(G.Box,{component:"button",ref:o,type:"button",onClick:s=>{s.stopPropagation(),s.preventDefault(),n(a=>!a)},onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),"aria-label":"Ver requisitos",sx:{display:"flex",alignItems:"center",justifyContent:"center",color:r.palette.error.main,fontWeight:700,fontSize:18,lineHeight:1,cursor:"help",userSelect:"none",background:"none",border:"none",p:0,transition:r.transitions.create("transform"),"&:hover":{transform:"scale(1.1)"},"&:focus-visible":{outline:`2px solid ${r.palette.primary.main}`,borderRadius:.5}},children:"*"}),y.jsx(G.Popper,{open:t,anchorEl:o.current,placement:"top-start",transition:!0,sx:{zIndex:r.zIndex.tooltip},children:({TransitionProps:s})=>y.jsx(G.Fade,{...s,timeout:150,children:y.jsxs(G.Paper,{elevation:8,sx:{width:256,maxWidth:"85vw",mb:.75,overflow:"hidden",border:`1px solid ${r.palette.divider}`},children:[y.jsx(G.Box,{sx:{px:1.5,py:1,borderBottom:`1px solid ${G.alpha(r.palette.divider,.5)}`,bgcolor:G.alpha(r.palette.background.default,.8),backdropFilter:"blur(8px)"},children:y.jsxs(G.Typography,{variant:"caption",fontWeight:700,color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:"0.05em",display:"flex",alignItems:"center",gap:.75},children:[y.jsx(ad,{sx:{fontSize:12}}),"Requisitos"]})}),y.jsx(G.Box,{component:"ul",sx:{p:.75,m:0,listStyle:"none"},children:e.map((a,l)=>y.jsxs(G.Box,{component:"li",sx:{display:"flex",alignItems:"flex-start",gap:1,px:1,py:.75,borderRadius:1,transition:r.transitions.create("background-color"),"&:hover":{bgcolor:r.palette.action.hover}},children:[y.jsx(G.Typography,{sx:{color:r.palette.primary.main,mt:"1px",fontSize:10},children:"●"}),y.jsx(G.Typography,{variant:"caption",color:"text.secondary",sx:{lineHeight:1.4},children:a})]},l))})]})})})]})})},ov=Ks,ld=({para:e,texto:t,obligatorio:n,requisitos:o,children:r})=>{const s=G.useTheme();return y.jsxs(G.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.75},children:[y.jsx(G.Typography,{component:"label",htmlFor:e,variant:"body2",fontWeight:500,sx:{cursor:"pointer",userSelect:"none",color:s.palette.text.primary},children:t}),n&&(o&&o.length>0?y.jsx(Ks,{requisitos:o}):y.jsx(G.Typography,{component:"span",sx:{fontSize:12,color:s.palette.error.main,fontWeight:700,userSelect:"none"},title:"Campo obligatorio",children:"*"})),r]})},rv=ld;function iv(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 cd(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const s=iv(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function ud(e,t,n,o){return e[t]===void 0?null:cd(e,t,n,o)}function Qi(){return null}ud.isRequired=cd;Qi.isRequired=Qi;const dd=process.env.NODE_ENV==="production"?Qi:ud;function sv(e){return ke("MuiPaper",e)}je("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 av=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,s={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Ne(s,sv,r)},lv=oe("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}`]]}})(Se(({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)"}}]}))),Xr=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiPaper"}),r=st(),{className:s,component:a="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=o,p={...o,component:a,elevation:l,square:c,variant:u},f=av(p);return process.env.NODE_ENV!=="production"&&r.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
193
+ `)),y.jsx(lv,{as:a,ownerState:p,className:de(f.root,s),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[l],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[l]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${fr("#fff",Wi(l))}, ${fr("#fff",Wi(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Xr.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,elevation:vt(dd,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:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["elevation","outlined"]),i.string])});function cv(e){return ke("MuiCard",e)}je("MuiCard",["root"]);const uv=e=>{const{classes:t}=e;return Ne({root:["root"]},cv,t)},dv=oe(Xr,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),pd=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiCard"}),{className:r,raised:s=!1,...a}=o,l={...o,raised:s},c=uv(l);return y.jsx(dv,{className:de(c.root,r),elevation:s?8:void 0,ref:n,ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(pd.propTypes={children:i.node,classes:i.object,className:i.string,raised:vt(i.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function pv(e){return ke("MuiCardActionArea",e)}const vi=je("MuiCardActionArea",["root","focusVisible","focusHighlight"]),fv=e=>{const{classes:t}=e;return Ne({root:["root"],focusHighlight:["focusHighlight"]},pv,t)},hv=oe(Yr,{name:"MuiCardActionArea",slot:"Root"})(Se(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${vi.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${vi.focusVisible} .${vi.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),mv=oe("span",{name:"MuiCardActionArea",slot:"FocusHighlight"})(Se(({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})}))),fd=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiCardActionArea"}),{children:r,className:s,focusVisibleClassName:a,slots:l={},slotProps:c={},...u}=o,d=o,p=fv(d),f={slots:l,slotProps:c},[g,m]=Te("root",{elementType:hv,externalForwardedProps:{...f,...u},shouldForwardComponentProp:!0,ownerState:d,ref:n,className:de(p.root,s),additionalProps:{focusVisibleClassName:de(a,p.focusVisible)}}),[h,x]=Te("focusHighlight",{elementType:mv,externalForwardedProps:f,ownerState:d,className:p.focusHighlight});return y.jsxs(g,{...m,children:[r,y.jsx(h,{...x})]})});process.env.NODE_ENV!=="production"&&(fd.propTypes={children:i.node,classes:i.object,className:i.string,focusVisibleClassName:i.string,slotProps:i.shape({focusHighlight:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({focusHighlight:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function gv(e){return ke("MuiCardContent",e)}je("MuiCardContent",["root"]);const yv=e=>{const{classes:t}=e;return Ne({root:["root"]},gv,t)},vv=oe("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),hd=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiCardContent"}),{className:r,component:s="div",...a}=o,l={...o,component:s},c=yv(l);return y.jsx(vv,{as:s,className:de(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(hd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function bv(e){return ke("MuiCardMedia",e)}je("MuiCardMedia",["root","media","img"]);const xv=e=>{const{classes:t,isMediaComponent:n,isImageComponent:o}=e;return Ne({root:["root",n&&"media",o&&"img"]},bv,t)},wv=oe("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:o,isImageComponent:r}=n;return[t.root,o&&t.media,r&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),Tv=["video","audio","picture","iframe","img"],Cv=["picture","img"],md=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiCardMedia"}),{children:r,className:s,component:a="div",image:l,src:c,style:u,...d}=o,p=Tv.includes(a),f=!p&&l?{backgroundImage:`url("${l}")`,...u}:u,g={...o,component:a,isMediaComponent:p,isImageComponent:Cv.includes(a)},m=xv(g);return y.jsx(wv,{className:de(m.root,s),as:a,role:!p&&l?"img":void 0,ref:n,style:f,ownerState:g,src:p?l||c:void 0,...d,children:r})});process.env.NODE_ENV!=="production"&&(md.propTypes={children:vt(i.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:i.object,className:i.string,component:i.elementType,image:i.string,src:i.string,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const gd=({variante:e="estandar",relleno:t="m",efectoHover:n,clicable:o,titulo:r,subtitulo:s,accionCabecera:a,multimedia:l,cabecera:c,pie:u,alHacerClick:d,className:p="",children:f,sx:g,...m})=>{const h=st(),x=M=>M==="contorno"||M==="suave"?"outlined":"elevation",T=M=>{switch(M){case"ninguno":return 0;case"p":return 1.5;case"g":return 3;default:return 2}},C=o||!!d,E=C?fd:N.Fragment,b=C?{component:"div",onClick:d}:{},w=()=>e==="suave"?{backgroundColor:h.palette.mode==="dark"?ae.alpha(h.palette.primary.main,.05):ae.alpha(h.palette.primary.main,.03),borderColor:h.palette.mode==="dark"?ae.alpha(h.palette.primary.main,.1):ae.alpha(h.palette.primary.main,.08)}:e==="estandar"?{backgroundColor:h.palette.background.paper}:{},S=()=>c?y.jsx(ve,{sx:{p:T(t),pb:0},children:c}):r?y.jsxs(ve,{sx:{p:T(t),pb:0,display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:1},children:[y.jsxs(ve,{sx:{display:"flex",flexDirection:"column"},children:[y.jsx(Ke,{variant:"h6",component:"div",sx:{fontWeight:600,lineHeight:1.2,fontSize:"1rem",color:h.palette.text.primary},children:r}),s&&y.jsx(Ke,{variant:"body2",color:"text.secondary",sx:{mt:.5,fontSize:"0.875rem"},children:s})]}),a&&y.jsx(ve,{sx:{mt:-.5,mr:-.5},children:a})]}):null;return y.jsx(pd,{variant:x(e)==="outlined"?"outlined":void 0,elevation:e==="estandar"?2:0,className:p,sx:{display:"flex",flexDirection:"column",height:"100%",borderRadius:"12px",...w(),...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}}},...g},...m,children:y.jsxs(E,{...b,children:[typeof l=="string"?y.jsx(md,{component:"img",image:l,alt:"Multimedia",height:"180",sx:{objectFit:"cover"}}):l,S(),y.jsx(hd,{sx:{p:T(t),flexGrow:1,"&:last-child":{pb:T(t)}},children:f}),u&&y.jsx(ve,{sx:{p:T(t),pt:0,mt:"auto",borderTop:e==="contorno"?`1px solid ${h.palette.divider}`:"none",...e==="contorno"&&{pt:T(t)}},children:u})]})})},Sv=gd,Ev={izquierda:"left",left:"left",centro:"center",center:"center"},yd=({antetitulo:e,titulo:t,subtitulo:n,alineacion:o="izquierda",etiquetaPrimaria:r,etiquetaSecundaria:s,alClickPrimario:a,alClickSecundario:l,alturaCompleta:c=!1,urlImagenFondo:u,capaOscura:d=!0,children:p})=>{const f=G.useTheme(),g=Ev[o]??"left",m=!!u;return y.jsxs(G.Box,{component:"section",sx:{position:"relative",overflow:"hidden",border:`1px solid ${G.alpha(f.palette.divider,.8)}`,borderRadius:4,px:{xs:3,md:5},py:{xs:5,md:7},boxShadow:f.shadows[1],display:"flex",minHeight:c?"60vh":void 0,...m?{backgroundImage:`url(${u})`,backgroundSize:"cover",backgroundPosition:"center"}:{background:`linear-gradient(to bottom, ${f.palette.background.paper}, ${f.palette.background.default})`}},children:[m&&d&&y.jsx(G.Box,{sx:{position:"absolute",inset:0,bgcolor:G.alpha(f.palette.common.black,.4),backdropFilter:"blur(1px)"}}),y.jsxs(G.Box,{sx:{position:"relative",zIndex:1,maxWidth:720,mx:"auto",display:"flex",flexDirection:"column",gap:3,textAlign:g,alignItems:g==="center"?"center":"flex-start"},children:[e&&y.jsx(G.Chip,{label:e,size:"small",sx:{bgcolor:G.alpha(f.palette.primary.main,.1),color:f.palette.primary.main,fontWeight:500,fontSize:12}}),y.jsxs(G.Box,{sx:{display:"flex",flexDirection:"column",gap:{xs:1.5,md:2}},children:[t&&y.jsx(G.Typography,{variant:"h3",fontWeight:800,letterSpacing:"-0.02em",sx:{fontSize:{xs:28,md:36,lg:44},color:m?f.palette.common.white:f.palette.text.primary},children:t}),n&&y.jsx(G.Typography,{variant:"body1",sx:{maxWidth:560,fontSize:{xs:14,md:16},color:m?G.alpha(f.palette.common.white,.9):f.palette.text.secondary},children:n})]}),(r||s)&&y.jsxs(G.Box,{sx:{display:"flex",flexWrap:"wrap",gap:1.5,mt:1,justifyContent:g==="center"?"center":"flex-start"},children:[r&&a&&y.jsx(G.Button,{variant:"contained",onClick:a,sx:{textTransform:"none",fontWeight:600},children:r}),s&&l&&y.jsx(G.Button,{variant:"outlined",onClick:l,sx:{textTransform:"none",fontWeight:600,...m&&{borderColor:G.alpha(f.palette.common.white,.6),color:f.palette.common.white,"&:hover":{borderColor:f.palette.common.white,bgcolor:G.alpha(f.palette.common.white,.1)}}},children:s})]}),p]})]})},Pv=yd,vd=Be(y.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Rv=Be(y.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),Ov=Be([y.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),y.jsx("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber"),Xs=Be(y.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),Av=Be(y.jsx("path",{d:"M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7m2.85 11.1-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1"}),"LightbulbOutlined"),Mv={exito:"exito",success:"exito",advertencia:"advertencia",warning:"advertencia",neutro:"neutro",neutral:"neutro",info:"info",error:"error"},kv={info:y.jsx(ad,{fontSize:"small"}),exito:y.jsx(Rv,{fontSize:"small"}),advertencia:y.jsx(Ov,{fontSize:"small"}),error:y.jsx(Xs,{fontSize:"small"}),neutro:y.jsx(Av,{fontSize:"small"})},bd=({titulo:e,descripcion:t,variante:n="info",icono:o,cerrable:r=!1,abierto:s,alCerrar:a,anchoCompleto:l=!0,children:c})=>{const[u,d]=N.useState(!0),p=G.useTheme(),f=Mv[n]??"info";if(!(s!==void 0?s:u))return null;const m={info:{fondo:G.alpha(p.palette.info.main,.08),texto:p.palette.info.dark,borde:G.alpha(p.palette.info.main,.3)},exito:{fondo:G.alpha(p.palette.success.main,.08),texto:p.palette.success.dark,borde:G.alpha(p.palette.success.main,.3)},advertencia:{fondo:G.alpha(p.palette.warning.main,.08),texto:p.palette.warning.dark,borde:G.alpha(p.palette.warning.main,.3)},error:{fondo:G.alpha(p.palette.error.main,.08),texto:p.palette.error.dark,borde:G.alpha(p.palette.error.main,.3)},neutro:{fondo:G.alpha(p.palette.text.primary,.04),texto:p.palette.text.primary,borde:p.palette.divider}},h=m[f]??m.info,x=o??kv[f],T=f==="error"||f==="advertencia"?"alert":"status",C=()=>{s===void 0&&d(!1),a?.()};return y.jsx(G.Box,{sx:{width:l?"100%":"auto",display:l?"block":"inline-flex"},children:y.jsxs(G.Box,{role:T,sx:{display:"flex",width:"100%",alignItems:"flex-start",gap:1.5,border:`1px solid ${h.borde}`,borderRadius:2,px:2,py:1.5,bgcolor:h.fondo,color:h.texto,boxShadow:p.shadows[1]},children:[x&&y.jsx(G.Box,{sx:{mt:.25,flexShrink:0,display:"flex"},children:x}),y.jsxs(G.Box,{sx:{flex:1,minWidth:0},children:[e&&y.jsx(G.Typography,{variant:"body2",fontWeight:600,noWrap:!0,children:e}),t&&y.jsx(G.Typography,{variant:"caption",sx:{mt:.25,display:"block",lineHeight:1.5},children:t}),c]}),r&&y.jsx(G.IconButton,{size:"small",onClick:C,"aria-label":"Cerrar aviso",sx:{flexShrink:0,color:"inherit",opacity:.7,"&:hover":{opacity:1}},children:y.jsx(vd,{sx:{fontSize:16}})})]})})},jv=bd;function $v(e){return ke("MuiAlert",e)}const Rl=je("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 Iv(e){return ke("MuiIconButton",e)}const Ol=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Dv=e=>{const{classes:t,disabled:n,color:o,edge:r,size:s,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",o!=="default"&&`color${Z(o)}`,r&&`edge${Z(r)}`,`size${Z(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ne(l,Iv,t)},Bv=oe(Yr,{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)}`]]}})(Se(({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}}]})),Se(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Qe()).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)}}],[`&.${Ol.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Ol.loading}`]:{color:"transparent"}}))),Vv=oe("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"}}]})),Zs=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiIconButton"}),{edge:r=!1,children:s,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:f=null,loadingIndicator:g,...m}=o,h=Mo(p),x=g??y.jsx(vn,{"aria-labelledby":h,color:"inherit",size:16}),T={...o,edge:r,color:l,disabled:c,disableFocusRipple:u,loading:f,loadingIndicator:x,size:d},C=Dv(T);return y.jsxs(Bv,{id:f?h:p,className:de(C.root,a),centerRipple:!0,focusRipple:!u,disabled:c||f,ref:n,...m,ownerState:T,children:[typeof f=="boolean"&&y.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:y.jsx(Vv,{className:C.loadingIndicator,ownerState:T,children:f&&x})}),s]})});process.env.NODE_ENV!=="production"&&(Zs.propTypes={children:vt(i.node,e=>R.Children.toArray(e.children).some(n=>R.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(`
194
+ `)):null),classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),id:i.string,loading:i.bool,loadingIndicator:i.node,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const Nv=Be(y.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"),Lv=Be(y.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Fv=Be(y.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"),zv=Be(y.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"),_v=Be(y.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"),Wv=e=>{const{variant:t,color:n,severity:o,classes:r}=e,s={root:["root",`color${Z(n||o)}`,`${t}${Z(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ne(s,$v,r)},Uv=oe(Xr,{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)}`]]}})(Se(({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(Qe(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${Rl.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(Qe(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${Rl.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(Qe(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),Hv=oe("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),qv=oe("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Gv=oe("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Yv={success:y.jsx(Nv,{fontSize:"inherit"}),warning:y.jsx(Lv,{fontSize:"inherit"}),error:y.jsx(Fv,{fontSize:"inherit"}),info:y.jsx(zv,{fontSize:"inherit"})},xd=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiAlert"}),{action:r,children:s,className:a,closeText:l="Close",color:c,components:u={},componentsProps:d={},icon:p,iconMapping:f=Yv,onClose:g,role:m="alert",severity:h="success",slotProps:x={},slots:T={},variant:C="standard",...E}=o,b={...o,color:c,severity:h,variant:C,colorSeverity:c||h},w=Wv(b),S={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...T},slotProps:{...d,...x}},[M,j]=Te("root",{ref:n,shouldForwardComponentProp:!0,className:de(w.root,a),elementType:Uv,externalForwardedProps:{...S,...E},ownerState:b,additionalProps:{role:m,elevation:0}}),[O,A]=Te("icon",{className:w.icon,elementType:Hv,externalForwardedProps:S,ownerState:b}),[I,v]=Te("message",{className:w.message,elementType:qv,externalForwardedProps:S,ownerState:b}),[D,k]=Te("action",{className:w.action,elementType:Gv,externalForwardedProps:S,ownerState:b}),[V,$]=Te("closeButton",{elementType:Zs,externalForwardedProps:S,ownerState:b}),[W,B]=Te("closeIcon",{elementType:_v,externalForwardedProps:S,ownerState:b});return y.jsxs(M,{...j,children:[p!==!1?y.jsx(O,{...A,children:p||f[h]}):null,y.jsx(I,{...v,children:s}),r!=null?y.jsx(D,{...k,children:r}):null,r==null&&g?y.jsx(D,{...k,children:y.jsx(V,{size:"small","aria-label":l,title:l,color:"inherit",onClick:g,...$,children:y.jsx(W,{fontSize:"small",...B})})}):null]})});process.env.NODE_ENV!=="production"&&(xd.propTypes={action:i.node,children:i.node,classes:i.object,className:i.string,closeText:i.string,color:i.oneOfType([i.oneOf(["error","info","success","warning"]),i.string]),components:i.shape({CloseButton:i.elementType,CloseIcon:i.elementType}),componentsProps:i.shape({closeButton:i.object,closeIcon:i.object}),icon:i.node,iconMapping:i.shape({error:i.node,info:i.node,success:i.node,warning:i.node}),onClose:i.func,role:i.string,severity:i.oneOfType([i.oneOf(["error","info","success","warning"]),i.string]),slotProps:i.shape({action:i.oneOfType([i.func,i.object]),closeButton:i.oneOfType([i.func,i.object]),closeIcon:i.oneOfType([i.func,i.object]),icon:i.oneOfType([i.func,i.object]),message:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({action:i.elementType,closeButton:i.elementType,closeIcon:i.elementType,icon:i.elementType,message:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["filled","outlined","standard"]),i.string])});function Kv(e){return ke("MuiAlertTitle",e)}je("MuiAlertTitle",["root"]);const Xv=e=>{const{classes:t}=e;return Ne({root:["root"]},Kv,t)},Zv=oe(Ke,{name:"MuiAlertTitle",slot:"Root"})(Se(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),wd=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiAlertTitle"}),{className:r,...s}=o,a=o,l=Xv(a);return y.jsx(Zv,{gutterBottom:!0,component:"div",ownerState:a,ref:n,className:de(l.root,r),...s})});process.env.NODE_ENV!=="production"&&(wd.propTypes={children:i.node,classes:i.object,className:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const Td=e=>e.scrollTop;function Ln(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function Jv(e){return ke("MuiCollapse",e)}je("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Qv=e=>{const{orientation:t,classes:n}=e,o={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ne(o,Jv,n)},e0=oe("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]}})(Se(({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"}}]}))),t0=oe("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),n0=oe("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),br=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiCollapse"}),{addEndListener:r,children:s,className:a,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:p,onEntered:f,onEntering:g,onExit:m,onExited:h,onExiting:x,orientation:T="vertical",slots:C={},slotProps:E={},style:b,timeout:w=Ou.standard,TransitionComponent:S=St,...M}=o,j={...o,orientation:T,collapsedSize:l},O=Qv(j),A=st(),I=hn(),v=R.useRef(null),D=R.useRef(),k=typeof l=="number"?`${l}px`:l,V=T==="horizontal",$=V?"width":"height",W=R.useRef(null),B=et(n,W),_=re=>Ce=>{if(re){const be=W.current;Ce===void 0?re(be):re(be,Ce)}},P=()=>v.current?v.current[V?"clientWidth":"clientHeight"]:0,L=_((re,Ce)=>{v.current&&V&&(v.current.style.position="absolute"),re.style[$]=k,p&&p(re,Ce)}),H=_((re,Ce)=>{const be=P();v.current&&V&&(v.current.style.position="");const{duration:me,easing:we}=Ln({style:b,timeout:w,easing:u},{mode:"enter"});if(w==="auto"){const Ee=A.transitions.getAutoHeightDuration(be);re.style.transitionDuration=`${Ee}ms`,D.current=Ee}else re.style.transitionDuration=typeof me=="string"?me:`${me}ms`;re.style[$]=`${be}px`,re.style.transitionTimingFunction=we,g&&g(re,Ce)}),q=_((re,Ce)=>{re.style[$]="auto",f&&f(re,Ce)}),K=_(re=>{re.style[$]=`${P()}px`,m&&m(re)}),ee=_(h),te=_(re=>{const Ce=P(),{duration:be,easing:me}=Ln({style:b,timeout:w,easing:u},{mode:"exit"});if(w==="auto"){const we=A.transitions.getAutoHeightDuration(Ce);re.style.transitionDuration=`${we}ms`,D.current=we}else re.style.transitionDuration=typeof be=="string"?be:`${be}ms`;re.style[$]=k,re.style.transitionTimingFunction=me,x&&x(re)}),ne=re=>{w==="auto"&&I.start(D.current||0,re),r&&r(W.current,re)},J={slots:C,slotProps:E,component:c},[le,Y]=Te("root",{ref:B,className:de(O.root,a),elementType:e0,externalForwardedProps:J,ownerState:j,additionalProps:{style:{[V?"minWidth":"minHeight"]:k,...b}}}),[se,z]=Te("wrapper",{ref:v,className:O.wrapper,elementType:t0,externalForwardedProps:J,ownerState:j}),[pe,ce]=Te("wrapperInner",{className:O.wrapperInner,elementType:n0,externalForwardedProps:J,ownerState:j});return y.jsx(S,{in:d,onEnter:L,onEntered:q,onEntering:H,onExit:K,onExited:ee,onExiting:te,addEndListener:ne,nodeRef:W,timeout:w==="auto"?null:w,...M,children:(re,{ownerState:Ce,...be})=>{const me={...j,state:re};return y.jsx(le,{...Y,className:de(Y.className,{entered:O.entered,exited:!d&&k==="0px"&&O.hidden}[re]),ownerState:me,...be,children:y.jsx(se,{...z,ownerState:me,children:y.jsx(pe,{...ce,ownerState:me,children:s})})})}})});process.env.NODE_ENV!=="production"&&(br.propTypes={addEndListener:i.func,children:i.node,classes:i.object,className:i.string,collapsedSize:i.oneOfType([i.number,i.string]),component:qr,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,orientation:i.oneOf(["horizontal","vertical"]),slotProps:i.shape({root:i.oneOfType([i.func,i.object]),wrapper:i.oneOfType([i.func,i.object]),wrapperInner:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType,wrapper:i.elementType,wrapperInner:i.elementType}),style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),timeout:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});br&&(br.muiSupportAuto=!0);const Cd=({variante:e="info",diseno:t="estandar",titulo:n,descripcion:o,cerrable:r=!1,abierto:s=!0,alCerrar:a,tiempoAutoCierre:l,accion:c,icono:u,children:d,sx:p,...f})=>{const g=st(),[m,h]=N.useState(s);N.useEffect(()=>{h(s)},[s]),N.useEffect(()=>{if(l&&l>0&&m){const w=setTimeout(()=>{a?.(),h(!1)},l);return()=>clearTimeout(w)}},[l,m,a]);const x=w=>{switch(w){case"peligro":return"error";case"exito":return"success";case"advertencia":return"warning";default:return"info"}},T=w=>{switch(w){case"lleno":return"filled";case"contorno":return"outlined";default:return"standard"}},C=w=>{switch(w){case"success":return g.palette.success.main;case"warning":return g.palette.warning.main;case"error":return g.palette.error.main;default:return g.palette.info.main}},E=()=>{if(t!=="suave")return{};const w=C(x(e));return{backgroundColor:ae.alpha(w,.12),color:w,"& .MuiAlert-icon":{color:w},"& .MuiAlertTitle-root":{color:w}}},b=()=>{a?.(),h(!1)};return y.jsx(br,{in:m,children:y.jsxs(xd,{severity:x(e),variant:T(t),onClose:r||a?b:void 0,icon:u,action:c,sx:[{borderRadius:"12px",mb:2,border:t==="contorno"?"1px solid":void 0,boxShadow:t==="lleno"?g.shadows[4]:g.shadows[1],alignItems:"center",...E(),"& .MuiAlertTitle-root":{fontWeight:700,mb:o||d?.5:0,fontSize:"0.95rem",lineHeight:1.4},"& .MuiAlert-message":{width:"100%",padding:0,display:"flex",flexDirection:"column",justifyContent:"center"},"& .MuiAlert-icon":{padding:0,mr:1.5,opacity:t==="suave"?1:.9}},...Array.isArray(p)?p:p?[p]:[]],...f,children:[n&&y.jsx(wd,{children:n}),o&&y.jsx(ve,{component:"div",sx:{opacity:.9},children:o}),d]})})},o0=Cd;function r0(e){return ke("MuiLinearProgress",e)}je("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const es=4,ts=ae.keyframes`
195
195
  0% {
196
196
  left: -35%;
197
197
  right: 100%;
@@ -206,7 +206,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
206
206
  left: 100%;
207
207
  right: -90%;
208
208
  }
209
- `,r0=typeof ts!="string"?ae.css`
209
+ `,i0=typeof ts!="string"?ae.css`
210
210
  animation: ${ts} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
211
211
  `:null,ns=ae.keyframes`
212
212
  0% {
@@ -223,7 +223,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
223
223
  left: 107%;
224
224
  right: -8%;
225
225
  }
226
- `,i0=typeof ns!="string"?ae.css`
226
+ `,s0=typeof ns!="string"?ae.css`
227
227
  animation: ${ns} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
228
228
  `:null,os=ae.keyframes`
229
229
  0% {
@@ -240,33 +240,33 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
240
240
  opacity: 1;
241
241
  background-position: -200px -23px;
242
242
  }
243
- `,s0=typeof os!="string"?ae.css`
243
+ `,a0=typeof os!="string"?ae.css`
244
244
  animation: ${os} 3s infinite linear;
245
- `:null,a0=e=>{const{classes:t,variant:n,color:o}=e,r={root:["root",`color${Z(o)}`,n],dashed:["dashed",`dashedColor${Z(o)}`],bar1:["bar","bar1",`barColor${Z(o)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${Z(o)}`,n==="buffer"&&`color${Z(o)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ne(r,o0,t)},Zs=(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),l0=oe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Z(n.color)}`],t[n.variant]]}})(Se(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{backgroundColor:Zs(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)"}}]}))),c0=oe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Z(n.color)}`]]}})(Se(({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(([t])=>{const n=Zs(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),s0||{animation:`${os} 3s infinite linear`}),u0=oe("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]}})(Se(({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(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${es}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${es}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:r0||{animation:`${ts} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),d0=oe("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]}})(Se(({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(([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(Qe()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Zs(e,t),transition:`transform .${es}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:i0||{animation:`${ns} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Js=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiLinearProgress"}),{className:r,color:s="primary",value:a,valueBuffer:l,variant:c="indeterminate",...u}=o,d={...o,color:s,variant:c},p=a0(d),f=Ur(),g={},m={bar1:{},bar2:{}};if(c==="determinate"||c==="buffer")if(a!==void 0){g["aria-valuenow"]=Math.round(a),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let h=a-100;f&&(h=-h),m.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),m.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 y.jsxs(l0,{className:de(p.root,r),ownerState:d,role:"progressbar",...g,ref:n,...u,children:[c==="buffer"?y.jsx(c0,{className:p.dashed,ownerState:d}):null,y.jsx(u0,{className:p.bar1,ownerState:d,style:m.bar1}),c==="determinate"?null:y.jsx(d0,{className:p.bar2,ownerState:d,style:m.bar2})]})});process.env.NODE_ENV!=="production"&&(Js.propTypes={classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.number,valueBuffer:i.number,variant:i.oneOf(["buffer","determinate","indeterminate","query"])});const Cd=({valor:e=0,maximo:t=100,etiqueta:n,mostrarPorcentaje:o=!1,etiquetaInterna:r=!1,indeterminado:s=!1,tamano:a="md",variante:l="primario",rayado:c=!1,animado:u=!1,colorPersonalizado:d,className:p="",sx:f,...g})=>{const m=st(),x={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",E=Math.min(100,Math.max(0,e/t*100)),b=m.palette.mode==="dark"?"rgba(0,0,0,0.15)":"rgba(255,255,255,0.3)",w=c||u?{backgroundImage:`linear-gradient(45deg,${b} 25%,transparent 25%,transparent 50%,${b} 50%,${b} 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"}}}}:{},S={color:m.palette.getContrastText(d||m.palette[C==="inherit"?"primary":C].main),fontWeight:"bold",fontSize:"0.75rem",lineHeight:1,textShadow:"0 1px 2px rgba(0,0,0,0.2)"};return y.jsxs(ve,{width:"100%",className:p,children:[!r&&(n||o)&&y.jsxs(ve,{display:"flex",justifyContent:"space-between",mb:.5,alignItems:"center",children:[n&&y.jsx(Ke,{variant:"body2",color:"text.secondary",fontWeight:500,children:n}),o&&y.jsx(Ke,{variant:"body2",color:"text.secondary",fontWeight:600,children:s?"":`${Math.round(E)}%`})]}),y.jsxs(ve,{position:"relative",width:"100%",children:[y.jsx(Js,{variant:s?"indeterminate":"determinate",value:E,color:C,sx:{height:x,borderRadius:x/2,backgroundColor:m.palette.mode==="dark"?ae.alpha(m.palette.common.white,.08):ae.alpha(m.palette.common.black,.08),"& .MuiLinearProgress-bar":{borderRadius:x/2,...d&&{backgroundColor:d},...w},...f},...g}),r&&!s&&x>=12&&y.jsx(ve,{position:"absolute",top:0,left:0,bottom:0,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1,sx:{pointerEvents:"none"},children:y.jsxs(Ke,{variant:"caption",sx:S,children:[n," ",o?`${Math.round(E)}%`:""]})})]})]})},p0=Cd,f0={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},h0=Be(y.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"),m0=Be(y.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 g0(e){return ke("MuiRating",e)}const Qn=je("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);function y0(e){const t=e.toString().split(".")[1];return t?t.length:0}function bi(e,t){if(e==null)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(y0(t)))}const v0=e=>{const{classes:t,size:n,readOnly:o,disabled:r,emptyValueFocused:s,focusVisible:a}=e,l={root:["root",`size${Z(n)}`,r&&"disabled",a&&"focusVisible",o&&"readOnly"],label:["label","pristine"],labelEmptyValue:[s&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return Ne(l,g0,t)},b0=oe("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qn.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${Z(n.size)}`],n.readOnly&&t.readOnly]}})(Se(({theme:e})=>({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${Qn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Qn.focusVisible} .${Qn.iconActive}`]:{outline:"1px solid #999"},[`& .${Qn.visuallyHidden}`]:f0,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"}}]}))),Sd=oe("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%"}}]}),x0=oe("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]}})(Se(({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}}]}))),w0=oe("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>Bu(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 Ed(e){const{value:t,...n}=e;return y.jsx("span",{...n})}process.env.NODE_ENV!=="production"&&(Ed.propTypes={value:i.number.isRequired});function rs(e){const{classes:t,disabled:n,emptyIcon:o,focus:r,getLabelText:s,highlightSelectedOnly:a,hover:l,icon:c,IconContainerComponent:u,isActive:d,itemValue:p,labelProps:f,name:g,onBlur:m,onChange:h,onClick:x,onFocus:T,readOnly:C,ownerState:E,ratingValue:b,ratingValueRounded:w,slots:S={},slotProps:M={}}=e,j=a?p===b:p<=b,O=p<=l,A=p<=r,I=p===w,v=`${g}-${Mo()}`,D={slots:S,slotProps:M},[k,V]=Te("icon",{elementType:x0,className:de(t.icon,j?t.iconFilled:t.iconEmpty,O&&t.iconHover,A&&t.iconFocus,d&&t.iconActive),externalForwardedProps:D,ownerState:{...E,iconEmpty:!j,iconFilled:j,iconHover:O,iconFocus:A,iconActive:d},additionalProps:{value:p},internalForwardedProps:{as:u}}),[$,W]=Te("label",{elementType:Sd,externalForwardedProps:D,ownerState:{...E,emptyValueFocused:void 0},additionalProps:{style:f?.style,htmlFor:v}}),B=y.jsx(k,{...V,children:o&&!j?o:c});return C?y.jsx("span",{...f,children:B}):y.jsxs(R.Fragment,{children:[y.jsxs($,{...W,children:[B,y.jsx("span",{className:t.visuallyHidden,children:s(p)})]}),y.jsx("input",{className:t.visuallyHidden,onFocus:T,onBlur:m,onChange:h,onClick:x,disabled:n,value:p,id:v,type:"radio",name:g,checked:I})]})}process.env.NODE_ENV!=="production"&&(rs.propTypes={classes:i.object.isRequired,disabled:i.bool.isRequired,emptyIcon:i.node,focus:i.number.isRequired,getLabelText:i.func.isRequired,highlightSelectedOnly:i.bool.isRequired,hover:i.number.isRequired,icon:i.node,IconContainerComponent:i.elementType.isRequired,isActive:i.bool.isRequired,itemValue:i.number.isRequired,labelProps:i.object,name:i.string,onBlur:i.func.isRequired,onChange:i.func.isRequired,onClick:i.func.isRequired,onFocus:i.func.isRequired,ownerState:i.object.isRequired,ratingValue:i.number,ratingValueRounded:i.number,readOnly:i.bool.isRequired,slotProps:i.object,slots:i.object});const T0=y.jsx(h0,{fontSize:"inherit"}),C0=y.jsx(m0,{fontSize:"inherit"});function S0(e){return`${e||"0"} Star${e!==1?"s":""}`}const Pd=R.forwardRef(function(t,n){const o=De({name:"MuiRating",props:t}),{component:r="span",className:s,defaultValue:a=null,disabled:l=!1,emptyIcon:c=C0,emptyLabelText:u="Empty",getLabelText:d=S0,highlightSelectedOnly:p=!1,icon:f=T0,IconContainerComponent:g=Ed,max:m=5,name:h,onChange:x,onChangeActive:T,onMouseLeave:C,onMouseMove:E,precision:b=1,readOnly:w=!1,size:S="medium",value:M,slots:j={},slotProps:O={},...A}=o,I=Mo(h),[v,D]=Lu({controlled:M,default:a,name:"Rating"}),k=bi(v,b),V=Ur(),[{hover:$,focus:W},B]=R.useState({hover:-1,focus:-1});let _=k;$!==-1&&(_=$),W!==-1&&(_=W);const[P,L]=R.useState(!1),H=R.useRef(),q=et(H,n),K=ue=>{E&&E(ue);const X=H.current,{right:U,left:Q,width:fe}=X.getBoundingClientRect();let he;V?he=(U-ue.clientX)/fe:he=(ue.clientX-Q)/fe;let Pe=bi(m*he+b/2,b);Pe=bu(Pe,b,m),B(Le=>Le.hover===Pe&&Le.focus===Pe?Le:{hover:Pe,focus:Pe}),L(!1),T&&$!==Pe&&T(ue,Pe)},ee=ue=>{C&&C(ue);const X=-1;B({hover:X,focus:X}),T&&$!==X&&T(ue,X)},te=ue=>{let X=ue.target.value===""?null:parseFloat(ue.target.value);$!==-1&&(X=$),D(X),x&&x(ue,X)},ne=ue=>{ue.clientX===0&&ue.clientY===0||(B({hover:-1,focus:-1}),D(null),x&&parseFloat(ue.target.value)===k&&x(ue,null))},J=ue=>{Nn(ue.target)&&L(!0);const X=parseFloat(ue.target.value);B(U=>({hover:U.hover,focus:X}))},le=ue=>{if($!==-1)return;Nn(ue.target)||L(!1);const X=-1;B(U=>({hover:U.hover,focus:X}))},[Y,se]=R.useState(!1),z={...o,component:r,defaultValue:a,disabled:l,emptyIcon:c,emptyLabelText:u,emptyValueFocused:Y,focusVisible:P,getLabelText:d,icon:f,IconContainerComponent:g,max:m,precision:b,readOnly:w,size:S},pe=v0(z),ce={slots:j,slotProps:O},[re,Ce]=Te("root",{ref:q,className:de(pe.root,s),elementType:b0,externalForwardedProps:{...ce,...A,component:r},getSlotProps:ue=>({...ue,onMouseMove:X=>{K(X),ue.onMouseMove?.(X)},onMouseLeave:X=>{ee(X),ue.onMouseLeave?.(X)}}),ownerState:z,additionalProps:{role:w?"img":null,"aria-label":w?d(_):null}}),[be,me]=Te("label",{className:de(pe.label,pe.labelEmptyValue),elementType:Sd,externalForwardedProps:ce,ownerState:z}),[we,Ee]=Te("decimal",{className:pe.decimal,elementType:w0,externalForwardedProps:ce,ownerState:z});return y.jsxs(re,{...Ce,children:[Array.from(new Array(m)).map((ue,X)=>{const U=X+1,Q={classes:pe,disabled:l,emptyIcon:c,focus:W,getLabelText:d,highlightSelectedOnly:p,hover:$,icon:f,IconContainerComponent:g,name:I,onBlur:le,onChange:te,onClick:ne,onFocus:J,ratingValue:_,ratingValueRounded:k,readOnly:w,ownerState:z,slots:j,slotProps:O},fe=U===Math.ceil(_)&&($!==-1||W!==-1);if(b<1){const he=Array.from(new Array(1/b));return N.createElement(we,{...Ee,key:U,className:de(Ee.className,fe&&pe.iconActive),iconActive:fe},he.map((Pe,Le)=>{const ze=bi(U-1+(Le+1)*b,b);return y.jsx(rs,{...Q,isActive:!1,itemValue:ze,labelProps:{style:he.length-1===Le?{}:{width:ze===_?`${(Le+1)*b*100}%`:"0%",overflow:"hidden",position:"absolute"}}},ze)}))}return y.jsx(rs,{...Q,isActive:fe,itemValue:U},U)}),!w&&!l&&y.jsxs(be,{...me,children:[y.jsx("input",{className:pe.visuallyHidden,value:"",id:`${I}-empty`,type:"radio",name:I,checked:k==null,onFocus:()=>se(!0),onBlur:()=>se(!1),onChange:te}),y.jsx("span",{className:pe.visuallyHidden,children:u})]})]})});process.env.NODE_ENV!=="production"&&(Pd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,defaultValue:i.number,disabled:i.bool,emptyIcon:i.node,emptyLabelText:i.node,getLabelText:i.func,highlightSelectedOnly:i.bool,icon:i.node,IconContainerComponent:i.elementType,max:i.number,name:i.string,onChange:i.func,onChangeActive:i.func,onMouseLeave:i.func,onMouseMove:i.func,precision:vt(i.number,e=>e.precision<.1?new Error(["MUI: The prop `precision` should be above 0.1.","A value below this limit has an imperceptible impact."].join(`
246
- `)):null),readOnly:i.bool,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),slotProps:i.shape({decimal:i.oneOfType([i.func,i.object]),icon:i.oneOfType([i.func,i.object]),label:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({decimal:i.elementType,icon:i.elementType,label:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.number});const E0=ae.keyframes`
245
+ `:null,l0=e=>{const{classes:t,variant:n,color:o}=e,r={root:["root",`color${Z(o)}`,n],dashed:["dashed",`dashedColor${Z(o)}`],bar1:["bar","bar1",`barColor${Z(o)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${Z(o)}`,n==="buffer"&&`color${Z(o)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ne(r,r0,t)},Js=(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),c0=oe("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Z(n.color)}`],t[n.variant]]}})(Se(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Qe()).map(([t])=>({props:{color:t},style:{backgroundColor:Js(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)"}}]}))),u0=oe("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Z(n.color)}`]]}})(Se(({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(([t])=>{const n=Js(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),a0||{animation:`${os} 3s infinite linear`}),d0=oe("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]}})(Se(({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(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${es}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${es}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:i0||{animation:`${ts} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),p0=oe("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]}})(Se(({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(([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(Qe()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Js(e,t),transition:`transform .${es}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:s0||{animation:`${ns} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Qs=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiLinearProgress"}),{className:r,color:s="primary",value:a,valueBuffer:l,variant:c="indeterminate",...u}=o,d={...o,color:s,variant:c},p=l0(d),f=Ur(),g={},m={bar1:{},bar2:{}};if(c==="determinate"||c==="buffer")if(a!==void 0){g["aria-valuenow"]=Math.round(a),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let h=a-100;f&&(h=-h),m.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),m.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 y.jsxs(c0,{className:de(p.root,r),ownerState:d,role:"progressbar",...g,ref:n,...u,children:[c==="buffer"?y.jsx(u0,{className:p.dashed,ownerState:d}):null,y.jsx(d0,{className:p.bar1,ownerState:d,style:m.bar1}),c==="determinate"?null:y.jsx(p0,{className:p.bar2,ownerState:d,style:m.bar2})]})});process.env.NODE_ENV!=="production"&&(Qs.propTypes={classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.number,valueBuffer:i.number,variant:i.oneOf(["buffer","determinate","indeterminate","query"])});const Sd=({valor:e=0,maximo:t=100,etiqueta:n,mostrarPorcentaje:o=!1,etiquetaInterna:r=!1,indeterminado:s=!1,tamano:a="md",variante:l="primario",rayado:c=!1,animado:u=!1,colorPersonalizado:d,className:p="",sx:f,...g})=>{const m=st(),x={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",E=Math.min(100,Math.max(0,e/t*100)),b=m.palette.mode==="dark"?"rgba(0,0,0,0.15)":"rgba(255,255,255,0.3)",w=c||u?{backgroundImage:`linear-gradient(45deg,${b} 25%,transparent 25%,transparent 50%,${b} 50%,${b} 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"}}}}:{},S={color:m.palette.getContrastText(d||m.palette[C==="inherit"?"primary":C].main),fontWeight:"bold",fontSize:"0.75rem",lineHeight:1,textShadow:"0 1px 2px rgba(0,0,0,0.2)"};return y.jsxs(ve,{width:"100%",className:p,children:[!r&&(n||o)&&y.jsxs(ve,{display:"flex",justifyContent:"space-between",mb:.5,alignItems:"center",children:[n&&y.jsx(Ke,{variant:"body2",color:"text.secondary",fontWeight:500,children:n}),o&&y.jsx(Ke,{variant:"body2",color:"text.secondary",fontWeight:600,children:s?"":`${Math.round(E)}%`})]}),y.jsxs(ve,{position:"relative",width:"100%",children:[y.jsx(Qs,{variant:s?"indeterminate":"determinate",value:E,color:C,sx:{height:x,borderRadius:x/2,backgroundColor:m.palette.mode==="dark"?ae.alpha(m.palette.common.white,.08):ae.alpha(m.palette.common.black,.08),"& .MuiLinearProgress-bar":{borderRadius:x/2,...d&&{backgroundColor:d},...w},...f},...g}),r&&!s&&x>=12&&y.jsx(ve,{position:"absolute",top:0,left:0,bottom:0,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1,sx:{pointerEvents:"none"},children:y.jsxs(Ke,{variant:"caption",sx:S,children:[n," ",o?`${Math.round(E)}%`:""]})})]})]})},f0=Sd,h0={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},m0=Be(y.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"),g0=Be(y.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 y0(e){return ke("MuiRating",e)}const Qn=je("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);function v0(e){const t=e.toString().split(".")[1];return t?t.length:0}function bi(e,t){if(e==null)return e;const n=Math.round(e/t)*t;return Number(n.toFixed(v0(t)))}const b0=e=>{const{classes:t,size:n,readOnly:o,disabled:r,emptyValueFocused:s,focusVisible:a}=e,l={root:["root",`size${Z(n)}`,r&&"disabled",a&&"focusVisible",o&&"readOnly"],label:["label","pristine"],labelEmptyValue:[s&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return Ne(l,y0,t)},x0=oe("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qn.visuallyHidden}`]:t.visuallyHidden},t.root,t[`size${Z(n.size)}`],n.readOnly&&t.readOnly]}})(Se(({theme:e})=>({display:"inline-flex",position:"relative",fontSize:e.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${Qn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Qn.focusVisible} .${Qn.iconActive}`]:{outline:"1px solid #999"},[`& .${Qn.visuallyHidden}`]:h0,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"}}]}))),Ed=oe("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%"}}]}),w0=oe("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]}})(Se(({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}}]}))),T0=oe("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>Vu(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 Pd(e){const{value:t,...n}=e;return y.jsx("span",{...n})}process.env.NODE_ENV!=="production"&&(Pd.propTypes={value:i.number.isRequired});function rs(e){const{classes:t,disabled:n,emptyIcon:o,focus:r,getLabelText:s,highlightSelectedOnly:a,hover:l,icon:c,IconContainerComponent:u,isActive:d,itemValue:p,labelProps:f,name:g,onBlur:m,onChange:h,onClick:x,onFocus:T,readOnly:C,ownerState:E,ratingValue:b,ratingValueRounded:w,slots:S={},slotProps:M={}}=e,j=a?p===b:p<=b,O=p<=l,A=p<=r,I=p===w,v=`${g}-${Mo()}`,D={slots:S,slotProps:M},[k,V]=Te("icon",{elementType:w0,className:de(t.icon,j?t.iconFilled:t.iconEmpty,O&&t.iconHover,A&&t.iconFocus,d&&t.iconActive),externalForwardedProps:D,ownerState:{...E,iconEmpty:!j,iconFilled:j,iconHover:O,iconFocus:A,iconActive:d},additionalProps:{value:p},internalForwardedProps:{as:u}}),[$,W]=Te("label",{elementType:Ed,externalForwardedProps:D,ownerState:{...E,emptyValueFocused:void 0},additionalProps:{style:f?.style,htmlFor:v}}),B=y.jsx(k,{...V,children:o&&!j?o:c});return C?y.jsx("span",{...f,children:B}):y.jsxs(R.Fragment,{children:[y.jsxs($,{...W,children:[B,y.jsx("span",{className:t.visuallyHidden,children:s(p)})]}),y.jsx("input",{className:t.visuallyHidden,onFocus:T,onBlur:m,onChange:h,onClick:x,disabled:n,value:p,id:v,type:"radio",name:g,checked:I})]})}process.env.NODE_ENV!=="production"&&(rs.propTypes={classes:i.object.isRequired,disabled:i.bool.isRequired,emptyIcon:i.node,focus:i.number.isRequired,getLabelText:i.func.isRequired,highlightSelectedOnly:i.bool.isRequired,hover:i.number.isRequired,icon:i.node,IconContainerComponent:i.elementType.isRequired,isActive:i.bool.isRequired,itemValue:i.number.isRequired,labelProps:i.object,name:i.string,onBlur:i.func.isRequired,onChange:i.func.isRequired,onClick:i.func.isRequired,onFocus:i.func.isRequired,ownerState:i.object.isRequired,ratingValue:i.number,ratingValueRounded:i.number,readOnly:i.bool.isRequired,slotProps:i.object,slots:i.object});const C0=y.jsx(m0,{fontSize:"inherit"}),S0=y.jsx(g0,{fontSize:"inherit"});function E0(e){return`${e||"0"} Star${e!==1?"s":""}`}const Rd=R.forwardRef(function(t,n){const o=De({name:"MuiRating",props:t}),{component:r="span",className:s,defaultValue:a=null,disabled:l=!1,emptyIcon:c=S0,emptyLabelText:u="Empty",getLabelText:d=E0,highlightSelectedOnly:p=!1,icon:f=C0,IconContainerComponent:g=Pd,max:m=5,name:h,onChange:x,onChangeActive:T,onMouseLeave:C,onMouseMove:E,precision:b=1,readOnly:w=!1,size:S="medium",value:M,slots:j={},slotProps:O={},...A}=o,I=Mo(h),[v,D]=Fu({controlled:M,default:a,name:"Rating"}),k=bi(v,b),V=Ur(),[{hover:$,focus:W},B]=R.useState({hover:-1,focus:-1});let _=k;$!==-1&&(_=$),W!==-1&&(_=W);const[P,L]=R.useState(!1),H=R.useRef(),q=et(H,n),K=ue=>{E&&E(ue);const X=H.current,{right:U,left:Q,width:fe}=X.getBoundingClientRect();let he;V?he=(U-ue.clientX)/fe:he=(ue.clientX-Q)/fe;let Pe=bi(m*he+b/2,b);Pe=xu(Pe,b,m),B(Le=>Le.hover===Pe&&Le.focus===Pe?Le:{hover:Pe,focus:Pe}),L(!1),T&&$!==Pe&&T(ue,Pe)},ee=ue=>{C&&C(ue);const X=-1;B({hover:X,focus:X}),T&&$!==X&&T(ue,X)},te=ue=>{let X=ue.target.value===""?null:parseFloat(ue.target.value);$!==-1&&(X=$),D(X),x&&x(ue,X)},ne=ue=>{ue.clientX===0&&ue.clientY===0||(B({hover:-1,focus:-1}),D(null),x&&parseFloat(ue.target.value)===k&&x(ue,null))},J=ue=>{Nn(ue.target)&&L(!0);const X=parseFloat(ue.target.value);B(U=>({hover:U.hover,focus:X}))},le=ue=>{if($!==-1)return;Nn(ue.target)||L(!1);const X=-1;B(U=>({hover:U.hover,focus:X}))},[Y,se]=R.useState(!1),z={...o,component:r,defaultValue:a,disabled:l,emptyIcon:c,emptyLabelText:u,emptyValueFocused:Y,focusVisible:P,getLabelText:d,icon:f,IconContainerComponent:g,max:m,precision:b,readOnly:w,size:S},pe=b0(z),ce={slots:j,slotProps:O},[re,Ce]=Te("root",{ref:q,className:de(pe.root,s),elementType:x0,externalForwardedProps:{...ce,...A,component:r},getSlotProps:ue=>({...ue,onMouseMove:X=>{K(X),ue.onMouseMove?.(X)},onMouseLeave:X=>{ee(X),ue.onMouseLeave?.(X)}}),ownerState:z,additionalProps:{role:w?"img":null,"aria-label":w?d(_):null}}),[be,me]=Te("label",{className:de(pe.label,pe.labelEmptyValue),elementType:Ed,externalForwardedProps:ce,ownerState:z}),[we,Ee]=Te("decimal",{className:pe.decimal,elementType:T0,externalForwardedProps:ce,ownerState:z});return y.jsxs(re,{...Ce,children:[Array.from(new Array(m)).map((ue,X)=>{const U=X+1,Q={classes:pe,disabled:l,emptyIcon:c,focus:W,getLabelText:d,highlightSelectedOnly:p,hover:$,icon:f,IconContainerComponent:g,name:I,onBlur:le,onChange:te,onClick:ne,onFocus:J,ratingValue:_,ratingValueRounded:k,readOnly:w,ownerState:z,slots:j,slotProps:O},fe=U===Math.ceil(_)&&($!==-1||W!==-1);if(b<1){const he=Array.from(new Array(1/b));return N.createElement(we,{...Ee,key:U,className:de(Ee.className,fe&&pe.iconActive),iconActive:fe},he.map((Pe,Le)=>{const ze=bi(U-1+(Le+1)*b,b);return y.jsx(rs,{...Q,isActive:!1,itemValue:ze,labelProps:{style:he.length-1===Le?{}:{width:ze===_?`${(Le+1)*b*100}%`:"0%",overflow:"hidden",position:"absolute"}}},ze)}))}return y.jsx(rs,{...Q,isActive:fe,itemValue:U},U)}),!w&&!l&&y.jsxs(be,{...me,children:[y.jsx("input",{className:pe.visuallyHidden,value:"",id:`${I}-empty`,type:"radio",name:I,checked:k==null,onFocus:()=>se(!0),onBlur:()=>se(!1),onChange:te}),y.jsx("span",{className:pe.visuallyHidden,children:u})]})]})});process.env.NODE_ENV!=="production"&&(Rd.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,defaultValue:i.number,disabled:i.bool,emptyIcon:i.node,emptyLabelText:i.node,getLabelText:i.func,highlightSelectedOnly:i.bool,icon:i.node,IconContainerComponent:i.elementType,max:i.number,name:i.string,onChange:i.func,onChangeActive:i.func,onMouseLeave:i.func,onMouseMove:i.func,precision:vt(i.number,e=>e.precision<.1?new Error(["MUI: The prop `precision` should be above 0.1.","A value below this limit has an imperceptible impact."].join(`
246
+ `)):null),readOnly:i.bool,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),slotProps:i.shape({decimal:i.oneOfType([i.func,i.object]),icon:i.oneOfType([i.func,i.object]),label:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({decimal:i.elementType,icon:i.elementType,label:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.number});const P0=ae.keyframes`
247
247
  0% { transform: scale(1); }
248
248
  50% { transform: scale(1.2); }
249
249
  100% { transform: scale(1); }
250
- `,P0=oe(Pd,{shouldForwardProp:e=>e!=="colorPersonalizado"&&e!=="animado"&&e!=="brillo"})(({theme:e,colorPersonalizado:t,animado:n,brillo:o})=>({"& .MuiRating-iconFilled":{color:t,filter:o?`drop-shadow(0 0 2px ${t})`:"none",transition:"transform 0.2s ease-in-out"},"& .MuiRating-iconHover":{color:t,filter:o?`drop-shadow(0 0 4px ${t})`:"none",transform:n?"scale(1.2)":"none"},"& .MuiRating-iconActive":{animation:n?`${E0} 0.4s ease-out`:"none"}})),Rd=({valor:e,maximo:t=5,precision:n=1,soloLectura:o=!1,deshabilitado:r=!1,tamano:s="m",color:a="advertencia",etiquetas:l,mostrarEtiqueta:c=!1,alCambiar:u,iconoPersonalizado:d,iconoVacioPersonalizado:p,animado:f=!0,brillo:g=!1,className:m,sx:h,...x})=>{const T=st(),[C,E]=N.useState(-1),w={p:"small",m:"medium",g:"large",xg:"large"}[s],S=s==="xg"?1.5:1,j={primario:T.palette.primary.main,secundario:T.palette.secondary.main,exito:T.palette.success.main,advertencia:T.palette.warning.main,error:T.palette.error.main,info:T.palette.info.main}[a]||T.palette.warning.main,O=A=>l?l[A]||A:`${A} Estrellas`;return y.jsxs(ve,{className:m,sx:{display:"flex",alignItems:"center",gap:1,opacity:r?.5:1,pointerEvents:r?"none":"auto",...h},children:[y.jsx(P0,{name:"codeplex-rating",value:e,max:t,precision:n,readOnly:o,disabled:r,size:w,colorPersonalizado:j,animado:f,brillo:g,onChange:(A,I)=>{u&&u(I)},onChangeActive:(A,I)=>{E(I)},icon:d,emptyIcon:p,sx:{transform:`scale(${S})`,transformOrigin:"left center"},...x}),c&&(e!==null||C!==-1)&&y.jsx(Ke,{variant:"body2",color:"text.secondary",sx:{minWidth:20,ml:s==="xg"?2:0,fontWeight:500},children:l?O(C!==-1?C:e||0):C!==-1?C:e})]})},R0=Rd,Od=({textoAyuda:e,mensajeError:t,valor:n,longitudMaxima:o,mostrarContador:r})=>{const s=G.useTheme(),a=n?.toString().length??0,l=!!t,c=o?a>=o*.9:!1,u=o?a>=o:!1;if(!e&&!t&&!r)return null;const d=l||u?s.palette.error.main:c?s.palette.warning.main:s.palette.text.disabled;return y.jsxs(G.Box,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",mt:.75,px:.5,gap:2},children:[y.jsx(G.Box,{sx:{flex:1,minWidth:0},children:l?y.jsxs(G.Typography,{variant:"caption",fontWeight:500,sx:{color:s.palette.error.main,display:"flex",alignItems:"center",gap:.5},children:[y.jsx(Ks,{sx:{fontSize:12,flexShrink:0}}),t]}):e?y.jsx(G.Typography,{variant:"caption",color:"text.secondary",sx:{lineHeight:1.3},children:e}):null}),r&&o&&y.jsxs(G.Typography,{variant:"caption",sx:{fontFamily:"monospace",fontWeight:500,color:d,transition:s.transitions.create("color"),fontSize:10},children:[a,"/",o]})]})},O0=({helperText:e,error:t,value:n,maxLength:o,showCount:r})=>y.jsx(Od,{textoAyuda:e,mensajeError:t,valor:n,longitudMaxima:o,mostrarContador:r});ae.keyframes`
250
+ `,R0=oe(Rd,{shouldForwardProp:e=>e!=="colorPersonalizado"&&e!=="animado"&&e!=="brillo"})(({theme:e,colorPersonalizado:t,animado:n,brillo:o})=>({"& .MuiRating-iconFilled":{color:t,filter:o?`drop-shadow(0 0 2px ${t})`:"none",transition:"transform 0.2s ease-in-out"},"& .MuiRating-iconHover":{color:t,filter:o?`drop-shadow(0 0 4px ${t})`:"none",transform:n?"scale(1.2)":"none"},"& .MuiRating-iconActive":{animation:n?`${P0} 0.4s ease-out`:"none"}})),Od=({valor:e,maximo:t=5,precision:n=1,soloLectura:o=!1,deshabilitado:r=!1,tamano:s="m",color:a="advertencia",etiquetas:l,mostrarEtiqueta:c=!1,alCambiar:u,iconoPersonalizado:d,iconoVacioPersonalizado:p,animado:f=!0,brillo:g=!1,className:m,sx:h,...x})=>{const T=st(),[C,E]=N.useState(-1),w={p:"small",m:"medium",g:"large",xg:"large"}[s],S=s==="xg"?1.5:1,j={primario:T.palette.primary.main,secundario:T.palette.secondary.main,exito:T.palette.success.main,advertencia:T.palette.warning.main,error:T.palette.error.main,info:T.palette.info.main}[a]||T.palette.warning.main,O=A=>l?l[A]||A:`${A} Estrellas`;return y.jsxs(ve,{className:m,sx:{display:"flex",alignItems:"center",gap:1,opacity:r?.5:1,pointerEvents:r?"none":"auto",...h},children:[y.jsx(R0,{name:"codeplex-rating",value:e,max:t,precision:n,readOnly:o,disabled:r,size:w,colorPersonalizado:j,animado:f,brillo:g,onChange:(A,I)=>{u&&u(I)},onChangeActive:(A,I)=>{E(I)},icon:d,emptyIcon:p,sx:{transform:`scale(${S})`,transformOrigin:"left center"},...x}),c&&(e!==null||C!==-1)&&y.jsx(Ke,{variant:"body2",color:"text.secondary",sx:{minWidth:20,ml:s==="xg"?2:0,fontWeight:500},children:l?O(C!==-1?C:e||0):C!==-1?C:e})]})},O0=Od,Ad=({textoAyuda:e,mensajeError:t,valor:n,longitudMaxima:o,mostrarContador:r})=>{const s=G.useTheme(),a=n?.toString().length??0,l=!!t,c=o?a>=o*.9:!1,u=o?a>=o:!1;if(!e&&!t&&!r)return null;const d=l||u?s.palette.error.main:c?s.palette.warning.main:s.palette.text.disabled;return y.jsxs(G.Box,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",mt:.75,px:.5,gap:2},children:[y.jsx(G.Box,{sx:{flex:1,minWidth:0},children:l?y.jsxs(G.Typography,{variant:"caption",fontWeight:500,sx:{color:s.palette.error.main,display:"flex",alignItems:"center",gap:.5},children:[y.jsx(Xs,{sx:{fontSize:12,flexShrink:0}}),t]}):e?y.jsx(G.Typography,{variant:"caption",color:"text.secondary",sx:{lineHeight:1.3},children:e}):null}),r&&o&&y.jsxs(G.Typography,{variant:"caption",sx:{fontFamily:"monospace",fontWeight:500,color:d,transition:s.transitions.create("color"),fontSize:10},children:[a,"/",o]})]})},A0=({helperText:e,error:t,value:n,maxLength:o,showCount:r})=>y.jsx(Ad,{textoAyuda:e,mensajeError:t,valor:n,longitudMaxima:o,mostrarContador:r});ae.keyframes`
251
251
  0% { transform: translateX(-100%); }
252
252
  100% { transform: translateX(100%); }
253
- `;const A0=oe(Gs)(({theme:e,colorBase:t})=>({backgroundColor:t||(e.palette.mode==="dark"?ae.alpha(e.palette.common.white,.08):ae.alpha(e.palette.common.black,.06)),borderRadius:8,"&.MuiSkeleton-text":{marginBottom:4,marginTop:0,borderRadius:4}})),Qs=({variante:e="texto",ancho:t,alto:n,animacion:o="pulso",colorBase:r,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 y.jsx(A0,{variant:l(e),width:t,height:n,animation:c(o),colorBase:r,className:s,...a})},M0=Qs,k0=Qs;function j0(e){return R.Children.toArray(e).filter(t=>R.isValidElement(t))}function $0(e){return ke("MuiButtonGroup",e)}const ye=je("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"]),I0=(e,t)=>{const{ownerState:n}=e;return[{[`& .${ye.grouped}`]:t.grouped},{[`& .${ye.grouped}`]:t[`grouped${Z(n.orientation)}`]},{[`& .${ye.grouped}`]:t[`grouped${Z(n.variant)}`]},{[`& .${ye.grouped}`]:t[`grouped${Z(n.variant)}${Z(n.orientation)}`]},{[`& .${ye.grouped}`]:t[`grouped${Z(n.variant)}${Z(n.color)}`]},{[`& .${ye.firstButton}`]:t.firstButton},{[`& .${ye.lastButton}`]:t.lastButton},{[`& .${ye.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},D0=e=>{const{classes:t,color:n,disabled:o,disableElevation:r,fullWidth:s,orientation:a,variant:l}=e,c={root:["root",l,a,s&&"fullWidth",r&&"disableElevation",`color${Z(n)}`],grouped:["grouped",`grouped${Z(a)}`,`grouped${Z(l)}`,`grouped${Z(l)}${Z(a)}`,`grouped${Z(l)}${Z(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ne(c,$0,t)},B0=oe("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:I0})(Se(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2],[`& .${ye.grouped}`]:{boxShadow:"none","&:hover":{boxShadow:"none"}}}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${ye.lastButton},& .${ye.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${ye.lastButton},& .${ye.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${ye.firstButton},& .${ye.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)"}`,[`&.${ye.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${ye.firstButton},& .${ye.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)"}`,[`&.${ye.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Qe()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderColor:e.alpha((e.vars||e).palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${ye.lastButton},& .${ye.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${ye.lastButton},& .${ye.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${ye.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${ye.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Qe(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${ye.grouped}`]:{minWidth:40}}))),Ad=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiButtonGroup"}),{children:r,className:s,color:a="primary",component:l="div",disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,disableRipple:p=!1,fullWidth:f=!1,orientation:g="horizontal",size:m="medium",variant:h="outlined",...x}=o,T={...o,color:a,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,disableRipple:p,fullWidth:f,orientation:g,size:m,variant:h},C=D0(T),E=R.useMemo(()=>({className:C.grouped,color:a,disabled:c,disableElevation:u,disableFocusRipple:d,disableRipple:p,fullWidth:f,size:m,variant:h}),[a,c,u,d,p,f,m,h,C.grouped]),b=j0(r),w=b.length,S=M=>{const j=M===0,O=M===w-1;return j&&O?"":j?C.firstButton:O?C.lastButton:C.middleButton};return y.jsx(B0,{as:l,role:"group",className:de(C.root,s),ref:n,ownerState:T,...x,children:y.jsx(Ws.Provider,{value:E,children:b.map((M,j)=>y.jsx(Us.Provider,{value:S(j),children:M},j))})})});process.env.NODE_ENV!=="production"&&(Ad.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,disableElevation:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,fullWidth:i.bool,orientation:i.oneOf(["horizontal","vertical"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["contained","outlined","text"]),i.string])});const V0=oe(Ad,{shouldForwardProp:e=>e!=="separado"&&e!=="radio"&&e!=="varianteCustom"})(({theme:e,separado:t,radio:n,varianteCustom:o})=>({boxShadow:t?"none":e.shadows[2],borderRadius:n||(t?0:12),backgroundColor:o==="cristal"?e.palette.mode==="dark"?ae.alpha(e.palette.common.white,.05):ae.alpha(e.palette.common.white,.6):"transparent",backdropFilter:o==="cristal"?"blur(8px)":"none",border:o==="cristal"?`1px solid ${e.palette.mode==="dark"?ae.alpha(e.palette.common.white,.1):ae.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}})),N0=({children:e,tamano:t="m",variante:n="contenido",color:o="primario",orientacion:r="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 y.jsx(V0,{size:d(t),variant:c(n),color:u(o),orientation:r,separado:s,radio:a,varianteCustom:n,...l,children:e})},Md=N.createContext(void 0),kd=()=>{const e=N.useContext(Md);if(e===void 0)throw new Error("useNextStep must be used within a NextStepProvider");return e},L0=({children:e})=>{const[t,n]=N.useState(null),[o,r]=N.useState(0),[s,a]=N.useState(!1),l=N.useCallback((d,p)=>{p?setTimeout(()=>{r(d),a(!0)},p):(r(d),a(!0))},[]),c=N.useCallback(()=>{a(!1),n(null)},[]),u=N.useCallback(d=>{n(d),r(0),a(!0)},[]);return y.jsx(Md.Provider,{value:{currentTour:t,currentStep:o,setCurrentStep:l,closeNextStep:c,startNextStep:u,isNextStepVisible:s},children:e})},jd=N.createContext({});function F0(e){const t=N.useRef(null);return t.current===null&&(t.current=e()),t.current}const z0=typeof window<"u",_0=z0?N.useLayoutEffect:N.useEffect,ea=N.createContext(null);function ta(e,t){e.indexOf(t)===-1&&e.push(t)}function xr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const jt=(e,t,n)=>n>t?t:n<e?e:n;function is(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let qn=()=>{},zt=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(qn=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(is(t,n))},zt=(e,t,n)=>{if(!e)throw new Error(is(t,n))});const Qt={},$d=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Id(e){return typeof e=="object"&&e!==null}const Dd=e=>/^0[^.\s]+$/u.test(e);function Bd(e){let t;return()=>(t===void 0&&(t=e()),t)}const ft=e=>e,W0=(e,t)=>n=>t(e(n)),jo=(...e)=>e.reduce(W0),bo=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class na{constructor(){this.subscriptions=[]}add(t){return ta(this.subscriptions,t),()=>xr(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let s=0;s<r;s++){const a=this.subscriptions[s];a&&a(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ot=e=>e*1e3,pt=e=>e/1e3;function Vd(e,t){return t?e*(1e3/t):0}const Ol=new Set;function oa(e,t,n){e||Ol.has(t)||(console.warn(is(t,n)),Ol.add(t))}const Nd=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,U0=1e-7,H0=12;function q0(e,t,n,o,r){let s,a,l=0;do a=t+(n-t)/2,s=Nd(a,o,r)-e,s>0?n=a:t=a;while(Math.abs(s)>U0&&++l<H0);return a}function $o(e,t,n,o){if(e===t&&n===o)return ft;const r=s=>q0(s,0,1,e,n);return s=>s===0||s===1?s:Nd(r(s),t,o)}const Ld=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fd=e=>t=>1-e(1-t),zd=$o(.33,1.53,.69,.99),ra=Fd(zd),_d=Ld(ra),Wd=e=>e>=1?1:(e*=2)<1?.5*ra(e):.5*(2-Math.pow(2,-10*(e-1))),ia=e=>1-Math.sin(Math.acos(e)),Ud=Fd(ia),Hd=Ld(ia),G0=$o(.42,0,1,1),Y0=$o(0,0,.58,1),qd=$o(.42,0,.58,1),K0=e=>Array.isArray(e)&&typeof e[0]!="number",Gd=e=>Array.isArray(e)&&typeof e[0]=="number",Al={linear:ft,easeIn:G0,easeInOut:qd,easeOut:Y0,circIn:ia,circInOut:Hd,circOut:Ud,backIn:ra,backInOut:_d,backOut:zd,anticipate:Wd},X0=e=>typeof e=="string",Ml=e=>{if(Gd(e)){zt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,r]=e;return $o(t,n,o,r)}else if(X0(e))return zt(Al[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Al[e];return e},Uo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Z0(e,t){let n=new Set,o=new Set,r=!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 m=f&&r?n:o;return p&&a.add(d),m.add(d),d},cancel:d=>{o.delete(d),a.delete(d)},process:d=>{if(l=d,r){s=!0;return}r=!0;const p=n;n=o,o=p,n.forEach(c),n.clear(),r=!1,s&&(s=!1,u.process(d))}};return u}const J0=40;function Yd(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Uo.reduce((E,b)=>(E[b]=Z0(s),E),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:p,preRender:f,render:g,postRender:m}=a,h=()=>{const E=Qt.useManualTiming,b=E?r.timestamp:performance.now();n=!1,E||(r.delta=o?1e3/60:Math.max(Math.min(b-r.timestamp,J0),1)),r.timestamp=b,r.isProcessing=!0,l.process(r),c.process(r),u.process(r),d.process(r),p.process(r),f.process(r),g.process(r),m.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(h))},x=()=>{n=!0,o=!0,r.isProcessing||e(h)};return{schedule:Uo.reduce((E,b)=>{const w=a[b];return E[b]=(S,M=!1,j=!1)=>(n||x(),w.schedule(S,M,j)),E},{}),cancel:E=>{for(let b=0;b<Uo.length;b++)a[Uo[b]].cancel(E)},state:r,steps:a}}const{schedule:Ve,cancel:en,state:Ze,steps:xi}=Yd(typeof requestAnimationFrame<"u"?requestAnimationFrame:ft,!0);let nr;function Q0(){nr=void 0}const tt={now:()=>(nr===void 0&&tt.set(Ze.isProcessing||Qt.useManualTiming?Ze.timestamp:performance.now()),nr),set:e=>{nr=e,queueMicrotask(Q0)}},Kd=e=>t=>typeof t=="string"&&t.startsWith(e),Xd=Kd("--"),eb=Kd("var(--"),sa=e=>eb(e)?tb.test(e.split("/*")[0].trim()):!1,tb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function kl(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Gn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xo={...Gn,transform:e=>jt(0,1,e)},Ho={...Gn,default:1},uo=e=>Math.round(e*1e5)/1e5,aa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function nb(e){return e==null}const ob=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,la=(e,t)=>n=>!!(typeof n=="string"&&ob.test(n)&&n.startsWith(e)||t&&!nb(n)&&Object.prototype.hasOwnProperty.call(n,t)),Zd=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,s,a,l]=o.match(aa);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},rb=e=>jt(0,255,e),wi={...Gn,transform:e=>Math.round(rb(e))},mn={test:la("rgb","red"),parse:Zd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+wi.transform(e)+", "+wi.transform(t)+", "+wi.transform(n)+", "+uo(xo.transform(o))+")"};function ib(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const ss={test:la("#"),parse:ib,transform:mn.transform},Io=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gt=Io("deg"),Mt=Io("%"),ie=Io("px"),sb=Io("vh"),ab=Io("vw"),jl={...Mt,parse:e=>Mt.parse(e)/100,transform:e=>Mt.transform(e*100)},jn={test:la("hsl","hue"),parse:Zd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Mt.transform(uo(t))+", "+Mt.transform(uo(n))+", "+uo(xo.transform(o))+")"},Ye={test:e=>mn.test(e)||ss.test(e)||jn.test(e),parse:e=>mn.test(e)?mn.parse(e):jn.test(e)?jn.parse(e):ss.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?mn.transform(e):jn.transform(e),getAnimatableNone:e=>{const t=Ye.parse(e);return t.alpha=0,Ye.transform(t)}},lb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function cb(e){return isNaN(e)&&typeof e=="string"&&(e.match(aa)?.length||0)+(e.match(lb)?.length||0)>0}const Jd="number",Qd="color",ub="var",db="var(",$l="${}",pb=/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 Fn(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let s=0;const l=t.replace(pb,c=>(Ye.test(c)?(o.color.push(s),r.push(Qd),n.push(Ye.parse(c))):c.startsWith(db)?(o.var.push(s),r.push(ub),n.push(c)):(o.number.push(s),r.push(Jd),n.push(parseFloat(c))),++s,$l)).split($l);return{values:n,split:l,indexes:o,types:r}}function fb(e){return Fn(e).values}function ep({split:e,types:t}){const n=e.length;return o=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],o[s]!==void 0){const a=t[s];a===Jd?r+=uo(o[s]):a===Qd?r+=Ye.transform(o[s]):r+=o[s]}return r}}function hb(e){return ep(Fn(e))}const mb=e=>typeof e=="number"?0:Ye.test(e)?Ye.getAnimatableNone(e):e,gb=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:mb(e);function yb(e){const t=Fn(e);return ep(t)(t.values.map((o,r)=>gb(o,t.split[r])))}const Tt={test:cb,parse:fb,createTransformer:hb,getAnimatableNone:yb};function Ti(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 vb({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,s=0,a=0;if(!t)r=s=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=Ti(c,l,e+1/3),s=Ti(c,l,e),a=Ti(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:o}}function wr(e,t){return n=>n>0?t:e}const Fe=(e,t,n)=>e+(t-e)*n,Ci=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},bb=[ss,mn,jn],xb=e=>bb.find(t=>t.test(e));function Il(e){const t=xb(e);if(qn(!!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===jn&&(n=vb(n)),n}const Dl=(e,t)=>{const n=Il(e),o=Il(t);if(!n||!o)return wr(e,t);const r={...n};return s=>(r.red=Ci(n.red,o.red,s),r.green=Ci(n.green,o.green,s),r.blue=Ci(n.blue,o.blue,s),r.alpha=Fe(n.alpha,o.alpha,s),mn.transform(r))},as=new Set(["none","hidden"]);function wb(e,t){return as.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Tb(e,t){return n=>Fe(e,t,n)}function ca(e){return typeof e=="number"?Tb:typeof e=="string"?sa(e)?wr:Ye.test(e)?Dl:Eb:Array.isArray(e)?tp:typeof e=="object"?Ye.test(e)?Dl:Cb:wr}function tp(e,t){const n=[...e],o=n.length,r=e.map((s,a)=>ca(s)(s,t[a]));return s=>{for(let a=0;a<o;a++)n[a]=r[a](s);return n}}function Cb(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=ca(e[r])(e[r],t[r]));return r=>{for(const s in o)n[s]=o[s](r);return n}}function Sb(e,t){const n=[],o={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const s=t.types[r],a=e.indexes[s][o[s]],l=e.values[a]??0;n[r]=l,o[s]++}return n}const Eb=(e,t)=>{const n=Tt.createTransformer(t),o=Fn(e),r=Fn(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?as.has(e)&&!r.values.length||as.has(t)&&!o.values.length?wb(e,t):jo(tp(Sb(o,r),r.values),n):(qn(!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"),wr(e,t))};function np(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Fe(e,t,n):ca(e)(e,t)}const Pb=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ve.update(t,n),stop:()=>en(t),now:()=>Ze.isProcessing?Ze.timestamp:tt.now()}},op=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let s=0;s<r;s++)o+=Math.round(e(s/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Tr=2e4;function ua(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<Tr;)t+=n,o=e.next(t);return t>=Tr?1/0:t}function Rb(e,t=100,n){const o=n({...e,keyframes:[0,t]}),r=Math.min(ua(o),Tr);return{type:"keyframes",ease:s=>o.next(r*s).value/t,duration:pt(r)}}const We={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 ls(e,t){return e*Math.sqrt(1-t*t)}const Ob=12;function Ab(e,t,n){let o=n;for(let r=1;r<Ob;r++)o=o-e(o)/t(o);return o}const Si=.001;function Mb({duration:e=We.duration,bounce:t=We.bounce,velocity:n=We.velocity,mass:o=We.mass}){let r,s;qn(e<=ot(We.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=jt(We.minDamping,We.maxDamping,a),e=jt(We.minDuration,We.maxDuration,pt(e)),a<1?(r=u=>{const d=u*a,p=d*e,f=d-n,g=ls(u,a),m=Math.exp(-p);return Si-f/g*m},s=u=>{const p=u*a*e,f=p*n+n,g=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-p),h=ls(Math.pow(u,2),a);return(-r(u)+Si>0?-1:1)*((f-g)*m)/h}):(r=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-Si+d*p},s=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const l=5/e,c=Ab(r,s,l);if(e=ot(e),isNaN(c))return{stiffness:We.stiffness,damping:We.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const kb=["duration","bounce"],jb=["stiffness","damping","mass"];function Bl(e,t){return t.some(n=>e[n]!==void 0)}function $b(e){let t={velocity:We.velocity,stiffness:We.stiffness,damping:We.damping,mass:We.mass,isResolvedFromDuration:!1,...e};if(!Bl(e,jb)&&Bl(e,kb))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,s=2*jt(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:We.mass,stiffness:r,damping:s}}else{const n=Mb({...e,velocity:0});t={...t,...n,mass:We.mass},t.isResolvedFromDuration=!0}return t}function Cr(e=We.visualDuration,t=We.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=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:g}=$b({...n,velocity:-pt(n.velocity||0)}),m=f||0,h=u/(2*Math.sqrt(c*d)),x=a-s,T=pt(Math.sqrt(c/d)),C=Math.abs(x)<5;o||(o=C?We.restSpeed.granular:We.restSpeed.default),r||(r=C?We.restDelta.granular:We.restDelta.default);let E,b,w,S,M,j;if(h<1)w=ls(T,h),S=(m+h*T*x)/w,E=A=>{const I=Math.exp(-h*T*A);return a-I*(S*Math.sin(w*A)+x*Math.cos(w*A))},M=h*T*S+x*w,j=h*T*x-S*w,b=A=>Math.exp(-h*T*A)*(M*Math.sin(w*A)+j*Math.cos(w*A));else if(h===1){E=I=>a-Math.exp(-T*I)*(x+(m+T*x)*I);const A=m+T*x;b=I=>Math.exp(-T*I)*(T*A*I-m)}else{const A=T*Math.sqrt(h*h-1);E=k=>{const V=Math.exp(-h*T*k),$=Math.min(A*k,300);return a-V*((m+h*T*x)*Math.sinh($)+A*x*Math.cosh($))/A};const I=(m+h*T*x)/A,v=h*T*I-x*A,D=h*T*x-I*A;b=k=>{const V=Math.exp(-h*T*k),$=Math.min(A*k,300);return V*(v*Math.sinh($)+D*Math.cosh($))}}const O={calculatedDuration:g&&p||null,velocity:A=>ot(b(A)),next:A=>{if(!g&&h<1){const v=Math.exp(-h*T*A),D=Math.sin(w*A),k=Math.cos(w*A),V=a-v*(S*D+x*k),$=ot(v*(M*D+j*k));return l.done=Math.abs($)<=o&&Math.abs(a-V)<=r,l.value=l.done?a:V,l}const I=E(A);if(g)l.done=A>=p;else{const v=ot(b(A));l.done=Math.abs(v)<=o&&Math.abs(a-I)<=r}return l.value=l.done?a:I,l},toString:()=>{const A=Math.min(ua(O),Tr),I=op(v=>O.next(A*v).value,A,30);return A+"ms "+I},toTransition:()=>{}};return O}Cr.applyToOptions=e=>{const t=Rb(e,100,Cr);return e.ease=t.ease,e.duration=ot(t.duration),e.type="keyframes",e};const Ib=5;function rp(e,t,n){const o=Math.max(t-Ib,0);return Vd(n-e(o),t-o)}function cs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const p=e[0],f={done:!1,value:p},g=j=>l!==void 0&&j<l||c!==void 0&&j>c,m=j=>l===void 0?c:c===void 0||Math.abs(l-j)<Math.abs(c-j)?l:c;let h=n*t;const x=p+h,T=a===void 0?x:a(x);T!==x&&(h=T-p);const C=j=>-h*Math.exp(-j/o),E=j=>T+C(j),b=j=>{const O=C(j),A=E(j);f.done=Math.abs(O)<=u,f.value=f.done?T:A};let w,S;const M=j=>{g(f.value)&&(w=j,S=Cr({keyframes:[f.value,m(f.value)],velocity:rp(E,j,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:d}))};return M(0),{calculatedDuration:null,next:j=>{let O=!1;return!S&&w===void 0&&(O=!0,b(j),M(j)),w!==void 0&&j>=w?S.next(j-w):(!O&&b(j),f)}}}function Db(e,t,n){const o=[],r=n||Qt.mix||np,s=e.length-1;for(let a=0;a<s;a++){let l=r(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||ft:t;l=jo(c,l)}o.push(l)}return o}function Bb(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const s=e.length;if(zt(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=Db(t,o,r),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=bo(e[p],e[p+1],d);return l[p](f)};return n?d=>u(jt(e[0],e[s-1],d)):u}function Vb(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=bo(0,t,o);e.push(Fe(n,1,r))}}function Nb(e){const t=[0];return Vb(t,e.length-1),t}function Lb(e,t){return e.map(n=>n*t)}function Fb(e,t){return e.map(()=>t||qd).splice(0,e.length-1)}function $n({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=K0(o)?o.map(Ml):Ml(o),s={done:!1,value:t[0]},a=Lb(n&&n.length===t.length?n:Nb(t),e),l=Bb(a,t,{ease:Array.isArray(r)?r:Fb(t,r)});return{calculatedDuration:e,next:c=>(s.value=l(c),s.done=c>=e,s)}}const zb=e=>e!==null;function Zr(e,{repeat:t,repeatType:n="loop"},o,r=1){const s=e.filter(zb),l=r<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!l||o===void 0?s[l]:o}const _b={decay:cs,inertia:cs,tween:$n,keyframes:$n,spring:Cr};function ip(e){typeof e.type=="string"&&(e.type=_b[e.type])}class da{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 Wb=e=>e/100;class Sr extends da{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!==tt.now()&&this.tick(tt.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;ip(t);const{type:n=$n,repeat:o=0,repeatDelay:r=0,repeatType:s,velocity:a=0}=t;let{keyframes:l}=t;const c=n||$n;process.env.NODE_ENV!=="production"&&c!==$n&&zt(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==$n&&typeof l[0]!="number"&&(this.mixKeyframes=jo(Wb,np(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=ua(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+r,this.totalDuration=this.resolvedDuration*(o+1)-r,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:o,totalDuration:r,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);const{delay:u=0,keyframes:d,repeat:p,repeatType:f,repeatDelay:g,type:m,onUpdate:h,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-u*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?T<0:T>r;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let E=this.currentTime,b=o;if(p){const j=Math.min(this.currentTime,r)/l;let O=Math.floor(j),A=j%1;!A&&j>=1&&(A=1),A===1&&O--,O=Math.min(O,p+1),O%2&&(f==="reverse"?(A=1-A,g&&(A-=g/l)):f==="mirror"&&(b=a)),E=jt(0,1,A)*l}let w;C?(this.delayState.value=d[0],w=this.delayState):w=b.next(E),s&&!C&&(w.value=s(w.value));let{done:S}=w;!C&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return M&&m!==cs&&(w.value=Zr(d,this.options,x,this.speed)),h&&h(w.value),M&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return pt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pt(t)}get time(){return pt(this.currentTime)}set time(t){t=ot(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 rp(o=>this.generator.next(o).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(tt.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=pt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Pb,startTime:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),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(tt.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 Ub(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const gn=e=>e*180/Math.PI,us=e=>{const t=gn(Math.atan2(e[1],e[0]));return ds(t)},Hb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:us,rotateZ:us,skewX:e=>gn(Math.atan(e[1])),skewY:e=>gn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ds=e=>(e=e%360,e<0&&(e+=360),e),Vl=us,Nl=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ll=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),qb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Nl,scaleY:Ll,scale:e=>(Nl(e)+Ll(e))/2,rotateX:e=>ds(gn(Math.atan2(e[6],e[5]))),rotateY:e=>ds(gn(Math.atan2(-e[2],e[0]))),rotateZ:Vl,rotate:Vl,skewX:e=>gn(Math.atan(e[4])),skewY:e=>gn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ps(e){return e.includes("scale")?1:0}function fs(e,t){if(!e||e==="none")return ps(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=qb,r=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Hb,r=l}if(!r)return ps(t);const s=o[t],a=r[1].split(",").map(Yb);return typeof s=="function"?s(a):a[s]}const Gb=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return fs(n,t)};function Yb(e){return parseFloat(e.trim())}const Yn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Kn=new Set(Yn),Fl=e=>e===Gn||e===ie,Kb=new Set(["x","y","z"]),Xb=Yn.filter(e=>!Kb.has(e));function Zb(e){const t=[];return Xb.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const Kt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:o})=>{const r=e.max-e.min;return o==="border-box"?r:r-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:o})=>{const r=e.max-e.min;return o==="border-box"?r:r-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})=>fs(t,"x"),y:(e,{transform:t})=>fs(t,"y")};Kt.translateX=Kt.x;Kt.translateY=Kt.y;const bn=new Set;let hs=!1,ms=!1,gs=!1;function sp(){if(ms){const e=Array.from(bn).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=Zb(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([s,a])=>{o.getValue(s)?.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}ms=!1,hs=!1,bn.forEach(e=>e.complete(gs)),bn.clear()}function ap(){bn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ms=!0)})}function Jb(){gs=!0,ap(),sp(),gs=!1}class pa{constructor(t,n,o,r,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(bn.add(this),hs||(hs=!0,Ve.read(ap),Ve.resolveKeyframes(sp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;if(t[0]===null){const s=r?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(o&&n){const l=o.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),r&&s===void 0&&r.set(t[0])}Ub(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),bn.delete(this)}cancel(){this.state==="scheduled"&&(bn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Qb=e=>e.startsWith("--");function lp(e,t,n){Qb(t)?e.style.setProperty(t,n):e.style[t]=n}const ex={};function cp(e,t){const n=Bd(e);return()=>ex[t]??n()}const tx=cp(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),up=cp(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),so=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,zl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:so([0,.65,.55,1]),circOut:so([.55,0,1,.45]),backIn:so([.31,.01,.66,-.59]),backOut:so([.33,1.53,.69,.99])};function dp(e,t){if(e)return typeof e=="function"?up()?op(e,t):"ease-out":Gd(e)?so(e):Array.isArray(e)?e.map(n=>dp(n,t)||zl.easeOut):zl[e]}function nx(e,t,n,{delay:o=0,duration:r=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=dp(l,r);Array.isArray(p)&&(d.easing=p);const f={delay:o,duration:r,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 pp(e){return typeof e=="function"&&"applyToOptions"in e}function ox({type:e,...t}){return pp(e)&&up()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class fp extends da{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:o,keyframes:r,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,zt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=ox(t);this.animation=nx(n,o,r,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=Zr(r,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(d),lp(n,o,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 pt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pt(t)}get time(){return pt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ot(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:o,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tx()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),o&&(this.animation.rangeEnd=o),ft):r(this)}}const hp={anticipate:Wd,backInOut:_d,circInOut:Hd};function rx(e){return e in hp}function ix(e){typeof e.ease=="string"&&rx(e.ease)&&(e.ease=hp[e.ease])}const Ei=10;class sx extends fp{constructor(t){ix(t),ip(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:o,onComplete:r,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Sr({...a,autoplay:!1}),c=Math.max(Ei,tt.now()-this.startTime),u=jt(0,Ei,c-Ei),d=l.sample(c).value,{name:p}=this.options;s&&p&&lp(s,p,d),n.setWithVelocity(l.sample(Math.max(0,c-u)).value,d,u),l.stop()}}const _l=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tt.test(e)||e==="0")&&!e.startsWith("url("));function ax(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 lx(e,t,n,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=_l(r,t),l=_l(s,t);return qn(a===l,`You are trying to animate ${t} from "${r}" to "${s}". "${a?s:r}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:ax(e)||(n==="spring"||pp(n))&&o}function ys(e){e.duration=0,e.type="keyframes"}const mp=new Set(["opacity","clipPath","filter","transform"]),cx=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ux(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&cx.test(e[t]))return!0;return!1}const dx=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),px=Bd(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fx(e){const{motionValue:t,name:n,repeatDelay:o,repeatType:r,damping:s,type:a,keyframes:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=t.owner.getProps();return px()&&n&&(mp.has(n)||dx.has(n)&&ux(l))&&(n!=="transform"||!d)&&!u&&!o&&r!=="mirror"&&s!==0&&a!=="inertia"}const hx=40;class mx extends da{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=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=tt.now();const f={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:s,repeatType:a,name:c,motionValue:u,element:d,...p},g=d?.KeyframeResolver||pa;this.keyframeResolver=new g(l,(m,h,x)=>this.onKeyframesResolved(m,h,f,!x),c,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,o,r){this.keyframeResolver=void 0;const{name:s,type:a,velocity:l,delay:c,isHandoff:u,onUpdate:d}=o;this.resolvedAt=tt.now();let p=!0;lx(t,s,a,l)||(p=!1,(Qt.instantAnimations||!c)&&d?.(Zr(t,o,n)),t[0]=t[t.length-1],ys(o),o.repeat=0);const g={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>hx?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},m=p&&!u&&fx(g),h=g.motionValue?.owner?.current;let x;if(m)try{x=new sx({...g,element:h})}catch{x=new Sr(g)}else x=new Sr(g);x.finished.then(()=>{this.notifyFinished()}).catch(ft),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}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(),Jb()),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 gp(e,t,n,o=0,r=1){const s=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),a=e.size,l=(a-1)*o;return typeof n=="function"?n(s,a):r===1?s*o:l-s*o}const gx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function yx(e){const t=gx.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const vx=4;function yp(e,t,n=1){zt(n<=vx,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=yx(e);if(!o)return;const s=window.getComputedStyle(t).getPropertyValue(o);if(s){const a=s.trim();return $d(a)?parseFloat(a):a}return sa(r)?yp(r,t,n+1):r}const bx={type:"spring",stiffness:500,damping:25,restSpeed:10},xx=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),wx={type:"keyframes",duration:.8},Tx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Cx=(e,{keyframes:t})=>t.length>2?wx:Kn.has(e)?e.startsWith("scale")?xx(t[1]):bx:Tx;function vp(e,t){if(e?.inherit&&t){const{inherit:n,...o}=e;return{...t,...o}}return e}function fa(e,t){const n=e?.[t]??e?.default??e;return n!==e?vp(n,e):n}const Sx=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Ex(e){for(const t in e)if(!Sx.has(t))return!0;return!1}const ha=(e,t,n,o={},r,s)=>a=>{const l=fa(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u=u-ot(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:r};Ex(l)||Object.assign(d,Cx(e,d)),d.duration&&(d.duration=ot(d.duration)),d.repeatDelay&&(d.repeatDelay=ot(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(ys(d),d.delay===0&&(p=!0)),(Qt.instantAnimations||Qt.skipAnimations||r?.shouldSkipAnimations)&&(p=!0,ys(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,p&&!s&&t.get()!==void 0){const f=Zr(d.keyframes,l);if(f!==void 0){Ve.update(()=>{d.onUpdate(f),d.onComplete()});return}}return l.isSync?new Sr(d):new mx(d)};function Wl(e){const t=[{},{}];return e?.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function ma(e,t,n,o){if(typeof t=="function"){const[r,s]=Wl(o);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=Wl(o);t=t(n!==void 0?n:e.custom,r,s)}return t}function xn(e,t,n){const o=e.getProps();return ma(o,t,n!==void 0?n:o.custom,e)}const bp=new Set(["width","height","top","left","right","bottom",...Yn]),Ul=30,Px=e=>!isNaN(parseFloat(e));class Rx{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const r=tt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),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=tt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Px(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&oa(!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 na);const o=this.events[t].add(n);return t==="change"?()=>{o(),Ve.read(()=>{this.events.change.getSize()||this.stop()})}:o}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,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}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=tt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ul)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ul);return Vd(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 zn(e,t){return new Rx(e,t)}const vs=e=>Array.isArray(e);function Ox(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zn(n))}function Ax(e){return vs(e)?e[e.length-1]||0:e}function Mx(e,t){const n=xn(e,t);let{transitionEnd:o={},transition:r={},...s}=n||{};s={...s,...o};for(const a in s){const l=Ax(s[a]);Ox(e,a,l)}}const Je=e=>!!(e&&e.getVelocity);function kx(e){return!!(Je(e)&&e.add)}function bs(e,t){const n=e.getValue("willChange");if(kx(n))return n.add(t);if(!n&&Qt.WillChange){const o=new Qt.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function ga(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const jx="framerAppearId",xp="data-"+ga(jx);function wp(e){return e.props[xp]}function $x({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function Tp(e,t,{delay:n=0,transitionOverride:o,type:r}={}){let{transition:s,transitionEnd:a,...l}=t;const c=e.getDefaultTransition();s=s?vp(s,c):c;const u=s?.reduceMotion;o&&(s=o);const d=[],p=r&&e.animationState&&e.animationState.getState()[r];for(const f in l){const g=e.getValue(f,e.latestValues[f]??null),m=l[f];if(m===void 0||p&&$x(p,f))continue;const h={delay:n,...fa(s||{},f)},x=g.get();if(x!==void 0&&!g.isAnimating()&&!Array.isArray(m)&&m===x&&!h.velocity){Ve.update(()=>g.set(m));continue}let T=!1;if(window.MotionHandoffAnimation){const b=wp(e);if(b){const w=window.MotionHandoffAnimation(b,f,Ve);w!==null&&(h.startTime=w,T=!0)}}bs(e,f);const C=u??e.shouldReduceMotion;g.start(ha(f,g,m,C&&bp.has(f)?{type:!1}:h,e,T));const E=g.animation;E&&d.push(E)}if(a){const f=()=>Ve.update(()=>{a&&Mx(e,a)});d.length?Promise.all(d).then(f):f()}return d}function xs(e,t,n={}){const o=xn(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(r=n.transitionOverride);const s=o?()=>Promise.all(Tp(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:p}=r;return Ix(e,t,c,u,d,p,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function Ix(e,t,n=0,o=0,r=0,s=1,a){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(xs(c,t,{...a,delay:n+(typeof o=="function"?0:o)+gp(e.variantChildren,c,o,r,s)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function Dx(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(s=>xs(e,s,n));o=Promise.all(r)}else if(typeof t=="string")o=xs(e,t,n);else{const r=typeof t=="function"?xn(e,t,n.custom):t;o=Promise.all(Tp(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const Bx={test:e=>e==="auto",parse:e=>e},Cp=e=>t=>t.test(e),Sp=[Gn,ie,Mt,Gt,ab,sb,Bx],Hl=e=>Sp.find(Cp(e));function Vx(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Dd(e):!0}const Nx=new Set(["brightness","contrast","saturate","opacity"]);function Lx(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(aa)||[];if(!o)return e;const r=n.replace(o,"");let s=Nx.has(t)?1:0;return o!==n&&(s*=100),t+"("+s+r+")"}const Fx=/\b([a-z-]*)\(.*?\)/gu,ws={...Tt,getAnimatableNone:e=>{const t=e.match(Fx);return t?t.map(Lx).join(" "):e}},Ts={...Tt,getAnimatableNone:e=>{const t=Tt.parse(e);return Tt.createTransformer(e)(t.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},ql={...Gn,transform:Math.round},zx={rotate:Gt,rotateX:Gt,rotateY:Gt,rotateZ:Gt,scale:Ho,scaleX:Ho,scaleY:Ho,scaleZ:Ho,skew:Gt,skewX:Gt,skewY:Gt,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:xo,originX:jl,originY:jl,originZ:ie},ya={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,top:ie,right:ie,bottom:ie,left:ie,inset:ie,insetBlock:ie,insetBlockStart:ie,insetBlockEnd:ie,insetInline:ie,insetInlineStart:ie,insetInlineEnd:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,paddingBlock:ie,paddingBlockStart:ie,paddingBlockEnd:ie,paddingInline:ie,paddingInlineStart:ie,paddingInlineEnd:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,marginBlock:ie,marginBlockStart:ie,marginBlockEnd:ie,marginInline:ie,marginInlineStart:ie,marginInlineEnd:ie,fontSize:ie,backgroundPositionX:ie,backgroundPositionY:ie,...zx,zIndex:ql,fillOpacity:xo,strokeOpacity:xo,numOctaves:ql},_x={...ya,color:Ye,backgroundColor:Ye,outlineColor:Ye,fill:Ye,stroke:Ye,borderColor:Ye,borderTopColor:Ye,borderRightColor:Ye,borderBottomColor:Ye,borderLeftColor:Ye,filter:ws,WebkitFilter:ws,mask:Ts,WebkitMask:Ts},Ep=e=>_x[e],Wx=new Set([ws,Ts]);function Pp(e,t){let n=Ep(e);return Wx.has(n)||(n=Tt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ux=new Set(["auto","none","0"]);function Hx(e,t,n){let o=0,r;for(;o<e.length&&!r;){const s=e[o];typeof s=="string"&&!Ux.has(s)&&Fn(s).values.length&&(r=e[o]),o++}if(r&&n)for(const s of t)e[s]=Pp(n,r)}class qx extends pa{constructor(t,n,o,r,s){super(t,n,o,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=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(),sa(p))){const f=yp(p,n.current);f!==void 0&&(t[d]=f),d===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!bp.has(o)||t.length!==2)return;const[r,s]=t,a=Hl(r),l=Hl(s),c=kl(r),u=kl(s);if(c!==u&&Kt[o]){this.needsMeasurement=!0;return}if(a!==l)if(Fl(a)&&Fl(l))for(let d=0;d<t.length;d++){const p=t[d];typeof p=="string"&&(t[d]=parseFloat(p))}else Kt[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||Vx(t[r]))&&o.push(r);o.length&&Hx(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kt[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const s=o.length-1,a=o[s];o[s]=Kt[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 va(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const r=document.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(o=>o!=null)}const Rp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Gx(e){return Id(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:ba}=Yd(queueMicrotask,!1),wt={x:!1,y:!1};function Op(){return wt.x||wt.y}function Yx(e){return e==="x"||e==="y"?wt[e]?null:(wt[e]=!0,()=>{wt[e]=!1}):wt.x||wt.y?null:(wt.x=wt.y=!0,()=>{wt.x=wt.y=!1})}function Ap(e,t){const n=va(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function Kx(e){return!(e.pointerType==="touch"||Op())}function Xx(e,t,n={}){const[o,r,s]=Ap(e,n);return o.forEach(a=>{let l=!1,c=!1,u;const d=()=>{a.removeEventListener("pointerleave",m)},p=x=>{u&&(u(x),u=void 0),d()},f=x=>{l=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,p(x))},g=()=>{l=!0,window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",f,r)},m=x=>{if(x.pointerType!=="touch"){if(l){c=!0;return}p(x)}},h=x=>{if(!Kx(x))return;c=!1;const T=t(a,x);typeof T=="function"&&(u=T,a.addEventListener("pointerleave",m,r))};a.addEventListener("pointerenter",h,r),a.addEventListener("pointerdown",g,r)}),s}const Mp=(e,t)=>t?e===t?!0:Mp(e,t.parentElement):!1,xa=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Zx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Jx(e){return Zx.has(e.tagName)||e.isContentEditable===!0}const Qx=new Set(["INPUT","SELECT","TEXTAREA"]);function e1(e){return Qx.has(e.tagName)||e.isContentEditable===!0}const or=new WeakSet;function Gl(e){return t=>{t.key==="Enter"&&e(t)}}function Pi(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const t1=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=Gl(()=>{if(or.has(n))return;Pi(n,"down");const r=Gl(()=>{Pi(n,"up")}),s=()=>Pi(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function Yl(e){return xa(e)&&!Op()}const Kl=new WeakSet;function n1(e,t,n={}){const[o,r,s]=Ap(e,n),a=l=>{const c=l.currentTarget;if(!Yl(l)||Kl.has(l))return;or.add(c),n.stopPropagation&&Kl.add(l);const u=t(c,l),d=(g,m)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",f),or.has(c)&&or.delete(c),Yl(g)&&typeof u=="function"&&u(g,{success:m})},p=g=>{d(g,c===window||c===document||n.useGlobalTarget||Mp(c,g.target))},f=g=>{d(g,!1)};window.addEventListener("pointerup",p,r),window.addEventListener("pointercancel",f,r)};return o.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,r),Gx(l)&&(l.addEventListener("focus",u=>t1(u,r)),!Jx(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),s}function wa(e){return Id(e)&&"ownerSVGElement"in e}const rr=new WeakMap;let ir;const kp=(e,t,n)=>(o,r)=>r&&r[0]?r[0][e+"Size"]:wa(o)&&"getBBox"in o?o.getBBox()[t]:o[n],o1=kp("inline","width","offsetWidth"),r1=kp("block","height","offsetHeight");function i1({target:e,borderBoxSize:t}){rr.get(e)?.forEach(n=>{n(e,{get width(){return o1(e,t)},get height(){return r1(e,t)}})})}function s1(e){e.forEach(i1)}function a1(){typeof ResizeObserver>"u"||(ir=new ResizeObserver(s1))}function l1(e,t){ir||a1();const n=va(e);return n.forEach(o=>{let r=rr.get(o);r||(r=new Set,rr.set(o,r)),r.add(t),ir?.observe(o)}),()=>{n.forEach(o=>{const r=rr.get(o);r?.delete(t),r?.size||ir?.unobserve(o)})}}const sr=new Set;let In;function c1(){In=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};sr.forEach(t=>t(e))},window.addEventListener("resize",In)}function u1(e){return sr.add(e),In||c1(),()=>{sr.delete(e),!sr.size&&typeof In=="function"&&(window.removeEventListener("resize",In),In=void 0)}}function Xl(e,t){return typeof e=="function"?u1(e):l1(e,t)}function d1(e){return wa(e)&&e.tagName==="svg"}const p1=[...Sp,Ye,Tt],f1=e=>p1.find(Cp(e)),Zl=()=>({translate:0,scale:1,origin:0,originPoint:0}),Dn=()=>({x:Zl(),y:Zl()}),Jl=()=>({min:0,max:0}),Xe=()=>({x:Jl(),y:Jl()}),h1=new WeakMap;function Jr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function wo(e){return typeof e=="string"||Array.isArray(e)}const Ta=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ca=["initial",...Ta];function Qr(e){return Jr(e.animate)||Ca.some(t=>wo(e[t]))}function jp(e){return!!(Qr(e)||e.variants)}function m1(e,t,n){for(const o in t){const r=t[o],s=n[o];if(Je(r))e.addValue(o,r);else if(Je(s))e.addValue(o,zn(r,{owner:e}));else if(s!==r)if(e.hasValue(o)){const a=e.getValue(o);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(o);e.addValue(o,zn(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Cs={current:null},$p={current:!1},g1=typeof window<"u";function y1(){if($p.current=!0,!!g1)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Cs.current=e.matches;e.addEventListener("change",t),t()}else Cs.current=!1}const Ql=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Er={};function Ip(e){Er=e}function v1(){return Er}class b1{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,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=pa,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 g=tt.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Ve.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=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=s,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=Qr(n),this.isVariantNode=jp(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in f){const m=f[g];u[g]!==void 0&&Je(m)&&m.set(u[g])}}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,h1.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,o)=>this.bindToMotionValue(o,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:($p.current||y1(),this.shouldReduceMotion=Cs.current),process.env.NODE_ENV!=="production"&&oa(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(),en(this.notifyUpdate),en(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&&mp.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:l,times:c,ease:u,duration:d}=n.accelerate,p=new fp({element:this.current,name:t,keyframes:l,times:c,ease:u,duration:ot(d)}),f=a(p);this.valueSubscriptions.set(t,()=>{f(),p.cancel()});return}const o=Kn.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ve.preRender(this.notifyUpdate),o&&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,()=>{r(),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 Er){const n=Er[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(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):Xe()}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 o=0;o<Ql.length;o++){const r=Ql[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const s="on"+r,a=t[s];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=m1(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 o=this.values.get(t);n!==o&&(o&&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 o=this.values.get(t);return o===void 0&&n!==void 0&&(o=zn(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&($d(o)||Dd(o))?o=parseFloat(o):!f1(o)&&Tt.test(n)&&(o=Pp(t,n)),this.setBaseTarget(t,Je(o)?o.get():o)),Je(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const s=ma(this.props,n,this.presenceContext?.custom);s&&(o=s[t])}if(n&&o!==void 0)return o;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!Je(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new na),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ba.render(this.render)}}class Dp extends b1{constructor(){super(...arguments),this.KeyframeResolver=qx}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const o=t.style;return o?o[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Je(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class on{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Bp({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function x1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function w1(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function Ri(e){return e===void 0||e===1}function Ss({scale:e,scaleX:t,scaleY:n}){return!Ri(e)||!Ri(t)||!Ri(n)}function dn(e){return Ss(e)||Vp(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Vp(e){return ec(e.x)||ec(e.y)}function ec(e){return e&&e!=="0%"}function Pr(e,t,n){const o=e-n,r=t*o;return n+r}function tc(e,t,n,o,r){return r!==void 0&&(e=Pr(e,r,o)),Pr(e,n,o)+t}function Es(e,t=0,n=1,o,r){e.min=tc(e.min,t,n,o,r),e.max=tc(e.max,t,n,o,r)}function Np(e,{x:t,y:n}){Es(e.x,t.translate,t.scale,t.originPoint),Es(e.y,n.translate,n.scale,n.originPoint)}const nc=.999999999999,oc=1.0000000000001;function T1(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let s,a;for(let l=0;l<r;l++){s=n[l],a=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(Ot(e.x,-s.scroll.offset.x),Ot(e.y,-s.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Np(e,a)),o&&dn(s.latestValues)&&ar(e,s.latestValues,s.layout?.layoutBox))}t.x<oc&&t.x>nc&&(t.x=1),t.y<oc&&t.y>nc&&(t.y=1)}function Ot(e,t){e.min+=t,e.max+=t}function rc(e,t,n,o,r=.5){const s=Fe(e.min,e.max,r);Es(e,t,n,s,o)}function ic(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function ar(e,t,n){const o=n??e;rc(e.x,ic(t.x,o.x),t.scaleX,t.scale,t.originX),rc(e.y,ic(t.y,o.y),t.scaleY,t.scale,t.originY)}function Lp(e,t){return Bp(w1(e.getBoundingClientRect(),t))}function C1(e,t,n){const o=Lp(e,n),{scroll:r}=t;return r&&(Ot(o.x,r.offset.x),Ot(o.y,r.offset.y)),o}const S1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},E1=Yn.length;function P1(e,t,n){let o="",r=!0;for(let s=0;s<E1;s++){const a=Yn[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=Rp(l,ya[a]);if(!c){r=!1;const d=S1[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function Sa(e,t,n){const{style:o,vars:r,transformOrigin:s}=e;let a=!1,l=!1;for(const c in t){const u=t[c];if(Kn.has(c)){a=!0;continue}else if(Xd(c)){r[c]=u;continue}else{const d=Rp(u,ya[c]);c.startsWith("origin")?(l=!0,s[c]=d):o[c]=d}}if(t.transform||(a||n?o.transform=P1(t,e.transform,n):o.transform&&(o.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=s;o.transformOrigin=`${c} ${u} ${d}`}}function Fp(e,{style:t,vars:n},o,r){const s=e.style;let a;for(a in t)s[a]=t[a];r?.applyProjectionStyles(s,o);for(a in n)s.setProperty(a,n[a])}function sc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const eo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ie.test(e))e=parseFloat(e);else return e;const n=sc(e,t.target.x),o=sc(e,t.target.y);return`${n}% ${o}%`}},R1={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=Tt.parse(e);if(r.length>5)return o;const s=Tt.createTransformer(e),a=typeof r[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;r[0+a]/=l,r[1+a]/=c;const u=Fe(l,c,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),s(r)}},Ps={borderRadius:{...eo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eo,borderTopRightRadius:eo,borderBottomLeftRadius:eo,borderBottomRightRadius:eo,boxShadow:R1};function zp(e,{layout:t,layoutId:n}){return Kn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ps[e]||e==="opacity")}function Ea(e,t,n){const o=e.style,r=t?.style,s={};if(!o)return s;for(const a in o)(Je(o[a])||r&&Je(r[a])||zp(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(s[a]=o[a]);return s}function O1(e){return window.getComputedStyle(e)}class A1 extends Dp{constructor(){super(...arguments),this.type="html",this.renderInstance=Fp}readValueFromInstance(t,n){if(Kn.has(n))return this.projection?.isProjecting?ps(n):Gb(t,n);{const o=O1(t),r=(Xd(n)?o.getPropertyValue(n):o[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Lp(t,n)}build(t,n,o){Sa(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return Ea(t,n,o)}}const M1={offset:"stroke-dashoffset",array:"stroke-dasharray"},k1={offset:"strokeDashoffset",array:"strokeDasharray"};function j1(e,t,n=1,o=0,r=!0){e.pathLength=1;const s=r?M1:k1;e[s.offset]=`${-o}`,e[s.array]=`${t} ${n}`}const $1=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function _p(e,{attrX:t,attrY:n,attrScale:o,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...l},c,u,d){if(Sa(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 g of $1)p[g]!==void 0&&(f[g]=p[g],delete p[g]);t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),o!==void 0&&(p.scale=o),r!==void 0&&j1(p,r,s,a,!1)}const Wp=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"]),Up=e=>typeof e=="string"&&e.toLowerCase()==="svg";function I1(e,t,n,o){Fp(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Wp.has(r)?r:ga(r),t.attrs[r])}function Hp(e,t,n){const o=Ea(e,t,n);for(const r in e)if(Je(e[r])||Je(t[r])){const s=Yn.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[s]=e[r]}return o}class D1 extends Dp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Xe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Kn.has(n)){const o=Ep(n);return o&&o.default||0}return n=Wp.has(n)?n:ga(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Hp(t,n,o)}build(t,n,o){_p(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,r){I1(t,n,o,r)}mount(t){this.isSVGTag=Up(t.tagName),super.mount(t)}}const B1=Ca.length;function qp(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?qp(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<B1;n++){const o=Ca[n],r=e.props[o];(wo(r)||r===!1)&&(t[o]=r)}return t}function Gp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const V1=[...Ta].reverse(),N1=Ta.length;function L1(e){return t=>Promise.all(t.map(({animation:n,options:o})=>Dx(e,n,o)))}function F1(e){let t=L1(e),n=ac(),o=!0,r=!1;const s=u=>(d,p)=>{const f=xn(e,p,u==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:g,transitionEnd:m,...h}=f;d={...d,...h,...m}}return d};function a(u){t=u(e)}function l(u){const{props:d}=e,p=qp(e.parent)||{},f=[],g=new Set;let m={},h=1/0;for(let T=0;T<N1;T++){const C=V1[T],E=n[C],b=d[C]!==void 0?d[C]:p[C],w=wo(b),S=C===u?E.isActive:null;S===!1&&(h=T);let M=b===p[C]&&b!==d[C]&&w;if(M&&(o||r)&&e.manuallyAnimateOnMount&&(M=!1),E.protectedKeys={...m},!E.isActive&&S===null||!b&&!E.prevProp||Jr(b)||typeof b=="boolean")continue;if(C==="exit"&&E.isActive&&S!==!0){E.prevResolvedValues&&(m={...m,...E.prevResolvedValues});continue}const j=z1(E.prevProp,b);let O=j||C===u&&E.isActive&&!M&&w||T>h&&w,A=!1;const I=Array.isArray(b)?b:[b];let v=I.reduce(s(C),{});S===!1&&(v={});const{prevResolvedValues:D={}}=E,k={...D,...v},V=B=>{O=!0,g.has(B)&&(A=!0,g.delete(B)),E.needsAnimating[B]=!0;const _=e.getValue(B);_&&(_.liveStyle=!1)};for(const B in k){const _=v[B],P=D[B];if(m.hasOwnProperty(B))continue;let L=!1;vs(_)&&vs(P)?L=!Gp(_,P):L=_!==P,L?_!=null?V(B):g.add(B):_!==void 0&&g.has(B)?V(B):E.protectedKeys[B]=!0}E.prevProp=b,E.prevResolvedValues=v,E.isActive&&(m={...m,...v}),(o||r)&&e.blockInitialAnimation&&(O=!1);const $=M&&j;O&&(!$||A)&&f.push(...I.map(B=>{const _={type:C};if(typeof B=="string"&&(o||r)&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:P}=e,L=xn(P,B);if(P.enteringChildren&&L){const{delayChildren:H}=L.transition||{};_.delay=gp(P.enteringChildren,e,H)}}return{animation:B,options:_}}))}if(g.size){const T={};if(typeof d.initial!="boolean"){const C=xn(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(T.transition=C.transition)}g.forEach(C=>{const E=e.getBaseTarget(C),b=e.getValue(C);b&&(b.liveStyle=!0),T[C]=E??null}),f.push({animation:T})}let x=!!f.length;return o&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),o=!1,r=!1,x?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=ac(),r=!0}}}function z1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Gp(t,e):!1}function ln(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ac(){return{animate:ln(!0),whileInView:ln(),whileHover:ln(),whileTap:ln(),whileDrag:ln(),whileFocus:ln(),exit:ln()}}function Rs(e,t){e.min=t.min,e.max=t.max}function xt(e,t){Rs(e.x,t.x),Rs(e.y,t.y)}function lc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Yp=1e-4,_1=1-Yp,W1=1+Yp,Kp=.01,U1=0-Kp,H1=0+Kp;function nt(e){return e.max-e.min}function q1(e,t,n){return Math.abs(e-t)<=n}function cc(e,t,n,o=.5){e.origin=o,e.originPoint=Fe(t.min,t.max,e.origin),e.scale=nt(n)/nt(t),e.translate=Fe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=_1&&e.scale<=W1||isNaN(e.scale))&&(e.scale=1),(e.translate>=U1&&e.translate<=H1||isNaN(e.translate))&&(e.translate=0)}function po(e,t,n,o){cc(e.x,t.x,n.x,o?o.originX:void 0),cc(e.y,t.y,n.y,o?o.originY:void 0)}function uc(e,t,n,o=0){const r=o?Fe(n.min,n.max,o):n.min;e.min=r+t.min,e.max=e.min+nt(t)}function G1(e,t,n,o){uc(e.x,t.x,n.x,o?.x),uc(e.y,t.y,n.y,o?.y)}function dc(e,t,n,o=0){const r=o?Fe(n.min,n.max,o):n.min;e.min=t.min-r,e.max=e.min+nt(t)}function Rr(e,t,n,o){dc(e.x,t.x,n.x,o?.x),dc(e.y,t.y,n.y,o?.y)}function pc(e,t,n,o,r){return e-=t,e=Pr(e,1/n,o),r!==void 0&&(e=Pr(e,1/r,o)),e}function Y1(e,t=0,n=1,o=.5,r,s=e,a=e){if(Mt.test(t)&&(t=parseFloat(t),t=Fe(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=Fe(s.min,s.max,o);e===s&&(l-=t),e.min=pc(e.min,t,n,l,r),e.max=pc(e.max,t,n,l,r)}function fc(e,t,[n,o,r],s,a){Y1(e,t[n],t[o],t[r],t.scale,s,a)}const K1=["x","scaleX","originX"],X1=["y","scaleY","originY"];function hc(e,t,n,o){fc(e.x,t,K1,n?n.x:void 0,o?o.x:void 0),fc(e.y,t,X1,n?n.y:void 0,o?o.y:void 0)}function mc(e){return e.translate===0&&e.scale===1}function Xp(e){return mc(e.x)&&mc(e.y)}function gc(e,t){return e.min===t.min&&e.max===t.max}function Z1(e,t){return gc(e.x,t.x)&&gc(e.y,t.y)}function yc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Zp(e,t){return yc(e.x,t.x)&&yc(e.y,t.y)}function vc(e){return nt(e.x)/nt(e.y)}function bc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Rt(e){return[e("x"),e("y")]}function J1(e,t,n){let o="";const r=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((r||s||a)&&(o=`translate3d(${r}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:p,rotateY:f,skewX:g,skewY:m}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),p&&(o+=`rotateX(${p}deg) `),f&&(o+=`rotateY(${f}deg) `),g&&(o+=`skewX(${g}deg) `),m&&(o+=`skewY(${m}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(o+=`scale(${l}, ${c})`),o||"none"}const Jp=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Q1=Jp.length,xc=e=>typeof e=="string"?parseFloat(e):e,wc=e=>typeof e=="number"||ie.test(e);function ew(e,t,n,o,r,s){r?(e.opacity=Fe(0,n.opacity??1,tw(o)),e.opacityExit=Fe(t.opacity??1,0,nw(o))):s&&(e.opacity=Fe(t.opacity??1,n.opacity??1,o));for(let a=0;a<Q1;a++){const l=Jp[a];let c=Tc(t,l),u=Tc(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||wc(c)===wc(u)?(e[l]=Math.max(Fe(xc(c),xc(u),o),0),(Mt.test(u)||Mt.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=Fe(t.rotate||0,n.rotate||0,o))}function Tc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const tw=Qp(0,.5,Ud),nw=Qp(.5,.95,ft);function Qp(e,t,n){return o=>o<e?0:o>t?1:n(bo(e,t,o))}function ow(e,t,n){const o=Je(e)?e:zn(e);return o.start(ha("",o,t,n)),o.animation}function To(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const rw=(e,t)=>e.depth-t.depth;class iw{constructor(){this.children=[],this.isDirty=!1}add(t){ta(this.children,t),this.isDirty=!0}remove(t){xr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rw),this.isDirty=!1,this.children.forEach(t)}}function sw(e,t){const n=tt.now(),o=({timestamp:r})=>{const s=r-n;s>=t&&(en(o),e(s-t))};return Ve.setup(o,!0),()=>en(o)}function lr(e){return Je(e)?e.get():e}class aw{constructor(){this.members=[]}add(t){ta(this.members,t);for(let n=this.members.length-1;n>=0;n--){const o=this.members[n];if(o===t||o===this.lead||o===this.prevLead)continue;const r=o.instance;(!r||r.isConnected===!1)&&!o.snapshot&&(xr(this.members,o),o.unmount())}t.scheduleRender()}remove(t){if(xr(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 o=this.members[n];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.updateSnapshot(),t.scheduleRender();const{layoutDependency:r}=o.options,{layoutDependency:s}=t.options;(r===void 0||r!==s)&&(t.resumeFrom=o,n&&(o.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&o.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 cr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Oi=["","X","Y","Z"],lw=1e3;let cw=0;function Ai(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function ef(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=wp(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ve,!(r||s))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&ef(o)}function tf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},l=t?.()){this.id=cw++,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(pw),this.nodes.forEach(vw),this.nodes.forEach(bw),this.nodes.forEach(fw)},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 iw)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new na),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=wa(a)&&!d1(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;Ve.read(()=>{p=window.innerWidth}),e(a,()=>{const g=window.innerWidth;g!==p&&(p=g,this.root.updateBlockedByResize=!0,d&&d(),d=sw(f,250),cr.hasAnimatedSinceResize&&(cr.hasAnimatedSinceResize=!1,this.nodes.forEach(Ec)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeLayoutChanged:f,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Sw,{onLayoutAnimationStart:h,onLayoutAnimationComplete:x}=u.getProps(),T=!this.targetLayout||!Zp(this.targetLayout,g),C=!p&&f;if(this.options.layoutRoot||this.resumeFrom||C||p&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...fa(m,"layout"),onPlay:h,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(d,C)}else p||Ec(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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(),en(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(xw),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&&ef(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(mw),this.nodes.forEach(Cc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Sc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(gw),this.nodes.forEach(yw),this.nodes.forEach(uw),this.nodes.forEach(dw)):this.nodes.forEach(Sc),this.clearAllSnapshots();const l=tt.now();Ze.delta=jt(0,1e3/60,l-Ze.timestamp),Ze.timestamp=l,Ze.isProcessing=!0,xi.update.process(Ze),xi.preRender.process(Ze),xi.render.process(Ze),Ze.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ba.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hw),this.sharedNodes.forEach(ww)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ve.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ve.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!nt(this.snapshot.measuredBox.x)&&!nt(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=Xe()),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=o(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(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Xp(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||dn(this.latestValues)||d)&&(r(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)),Ew(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Xe();const l=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Pw))){const{scroll:u}=this.root;u&&(Ot(l.x,u.offset.x),Ot(l.y,u.offset.y))}return l}removeElementScroll(a){const l=Xe();if(xt(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&&xt(l,a),Ot(l.x,d.offset.x),Ot(l.y,d.offset.y))}return l}applyTransform(a,l=!1,c){const u=c||Xe();xt(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&&(Ot(u.x,-p.scroll.offset.x),Ot(u.y,-p.scroll.offset.y)),dn(p.latestValues)&&ar(u,p.latestValues,p.layout?.layoutBox)}return dn(this.latestValues)&&ar(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(a){const l=Xe();xt(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!dn(u.latestValues))continue;let d;u.instance&&(Ss(u.latestValues)&&u.updateSnapshot(),d=Xe(),xt(d,u.measurePageBox())),hc(l,u.latestValues,u.snapshot?.layoutBox,d)}return dn(this.latestValues)&&hc(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!==Ze.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=Ze.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=Xe(),this.targetWithTransforms=Xe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),G1(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):xt(this.target,this.layout.layoutBox),Np(this.target,this.targetDelta)):xt(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||Ss(this.parent.latestValues)||Vp(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=Xe(),this.relativeTargetOrigin=Xe(),Rr(this.relativeTargetOrigin,l,c,this.options.layoutAnchor||void 0),xt(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===Ze.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;xt(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,f=this.treeScale.y;T1(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=Xe());const{target:g}=a;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(lc(this.prevProjectionDelta.x,this.projectionDelta.x),lc(this.prevProjectionDelta.y,this.projectionDelta.y)),po(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==f||!bc(this.projectionDelta.x,this.prevProjectionDelta.x)||!bc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}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=Dn(),this.projectionDelta=Dn(),this.projectionDeltaWithTransform=Dn()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},p=Dn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=Xe(),g=c?c.source:void 0,m=this.layout?this.layout.source:void 0,h=g!==m,x=this.getStack(),T=!x||x.members.length<=1,C=!!(h&&!T&&this.options.crossfade===!0&&!this.path.some(Cw));this.animationProgress=0;let E;this.mixTargetDelta=b=>{const w=b/1e3;Pc(p.x,a.x,w),Pc(p.y,a.y,w),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Tw(this.relativeTarget,this.relativeTargetOrigin,f,w),E&&Z1(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Xe()),xt(E,this.relativeTarget)),h&&(this.animationValues=d,ew(d,u,this.latestValues,w,C,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(en(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ve.update(()=>{cr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zn(0)),this.motionValue.jump(0,!1),this.currentAnimation=ow(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(lw),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&&nf(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Xe();const p=nt(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+p;const f=nt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+f}xt(l,c),ar(l,d),po(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new aw),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&&Ai("z",a,u,this.animationValues);for(let d=0;d<Oi.length;d++)Ai(`rotate${Oi[d]}`,a,u,this.animationValues),Ai(`skew${Oi[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=lr(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=lr(l?.pointerEvents)||""),this.hasProjected&&!dn(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let p=J1(this.projectionDeltaWithTransform,this.treeScale,d);c&&(p=c(d,p)),a.transform=p;const{x:f,y:g}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${g.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 m in Ps){if(d[m]===void 0)continue;const{correct:h,applyTo:x,isCSSVariable:T}=Ps[m],C=p==="none"?d[m]:h(d[m],u);if(x){const E=x.length;for(let b=0;b<E;b++)a[x[b]]=C}else T?this.options.visualElement.renderState.vars[m]=C:a[m]=C}this.options.layoutId&&(a.pointerEvents=u===this?lr(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(Cc),this.root.sharedNodes.clear()}}}function uw(e){e.updateLayout()}function dw(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:r}=e.options,s=t.source!==e.layout.source;if(r==="size")Rt(d=>{const p=s?t.measuredBox[d]:t.layoutBox[d],f=nt(p);p.min=n[d].min,p.max=p.min+f});else if(r==="x"||r==="y"){const d=r==="x"?"y":"x";Rs(s?t.measuredBox[d]:t.layoutBox[d],n[d])}else nf(r,t.layoutBox,n)&&Rt(d=>{const p=s?t.measuredBox[d]:t.layoutBox[d],f=nt(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=Dn();po(a,n,t.layoutBox);const l=Dn();s?po(l,e.applyTransform(o,!0),t.measuredBox):po(l,n,t.layoutBox);const c=!Xp(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 g=e.options.layoutAnchor||void 0,m=Xe();Rr(m,t.layoutBox,p.layoutBox,g);const h=Xe();Rr(h,n,f.layoutBox,g),Zp(m,h)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=m,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 pw(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 fw(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hw(e){e.clearSnapshot()}function Cc(e){e.clearMeasurements()}function mw(e){e.isLayoutDirty=!0,e.updateLayout()}function Sc(e){e.isLayoutDirty=!1}function gw(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function yw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ec(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function vw(e){e.resolveTargetDelta()}function bw(e){e.calcProjection()}function xw(e){e.resetSkewAndRotation()}function ww(e){e.removeLeadSnapshot()}function Pc(e,t,n){e.translate=Fe(t.translate,0,n),e.scale=Fe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Rc(e,t,n,o){e.min=Fe(t.min,n.min,o),e.max=Fe(t.max,n.max,o)}function Tw(e,t,n,o){Rc(e.x,t.x,n.x,o),Rc(e.y,t.y,n.y,o)}function Cw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Sw={duration:.45,ease:[.4,0,.1,1]},Oc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ac=Oc("applewebkit/")&&!Oc("chrome/")?Math.round:ft;function Mc(e){e.min=Ac(e.min),e.max=Ac(e.max)}function Ew(e){Mc(e.x),Mc(e.y)}function nf(e,t,n){return e==="position"||e==="preserve-aspect"&&!q1(vc(t),vc(n),.2)}function Pw(e){return e!==e.root&&e.scroll?.wasRoot}const Rw=tf({attachResizeListener:(e,t)=>To(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Mi={current:void 0},of=tf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Mi.current){const e=new Rw({});e.mount(window),e.setOptions({layoutScroll:!0}),Mi.current=e}return Mi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),rf=N.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Ow(e=!0){const t=N.useContext(ea);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,s=N.useId();N.useEffect(()=>{if(e)return r(s)},[e]);const a=N.useCallback(()=>e&&o&&o(s),[s,o,e]);return!n&&o?[!1,a]:[!0]}const sf=N.createContext({strict:!1}),kc={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 jc=!1;function Aw(){if(jc)return;const e={};for(const t in kc)e[t]={isEnabled:n=>kc[t].some(o=>!!n[o])};Ip(e),jc=!0}function af(){return Aw(),v1()}function Mw(e){const t=af();for(const n in e)t[n]={...t[n],...e[n]};Ip(t)}const kw=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 Or(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kw.has(e)}let lf=e=>!Or(e);function jw(e){typeof e=="function"&&(lf=t=>t.startsWith("on")?!Or(t):e(t))}try{jw(require("@emotion/is-prop-valid").default)}catch{}function $w(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||Je(e[r])||(lf(r)||n===!0&&Or(r)||!t&&!Or(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const ei=N.createContext({});function Iw(e,t){if(Qr(e)){const{initial:n,animate:o}=e;return{initial:n===!1||wo(n)?n:void 0,animate:wo(o)?o:void 0}}return e.inherit!==!1?t:{}}function Dw(e){const{initial:t,animate:n}=Iw(e,N.useContext(ei));return N.useMemo(()=>({initial:t,animate:n}),[$c(t),$c(n)])}function $c(e){return Array.isArray(e)?e.join(" "):e}const Pa=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cf(e,t,n){for(const o in t)!Je(t[o])&&!zp(o,n)&&(e[o]=t[o])}function Bw({transformTemplate:e},t){return N.useMemo(()=>{const n=Pa();return Sa(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Vw(e,t){const n=e.style||{},o={};return cf(o,n,e),Object.assign(o,Bw(e,t)),o}function Nw(e,t){const n={},o=Vw(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,n}const uf=()=>({...Pa(),attrs:{}});function Lw(e,t,n,o){const r=N.useMemo(()=>{const s=uf();return _p(s,t,Up(o),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};cf(s,e.style,e),r.style={...s,...r.style}}return r}const Fw=["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 Ra(e){return typeof e!="string"||e.includes("-")?!1:!!(Fw.indexOf(e)>-1||/[A-Z]/u.test(e))}function zw(e,t,n,{latestValues:o},r,s=!1,a){const c=(a??Ra(e)?Lw:Nw)(t,o,r,e),u=$w(t,typeof e=="string",s),d=e!==N.Fragment?{...u,...c,ref:n}:{},{children:p}=t,f=N.useMemo(()=>Je(p)?p.get():p,[p]);return N.createElement(e,{...d,children:f})}function _w({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:Ww(n,o,r,e),renderState:t()}}function Ww(e,t,n,o){const r={},s=o(e,{});for(const f in s)r[f]=lr(s[f]);let{initial:a,animate:l}=e;const c=Qr(e),u=jp(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"&&!Jr(p)){const f=Array.isArray(p)?p:[p];for(let g=0;g<f.length;g++){const m=ma(e,f[g]);if(m){const{transitionEnd:h,transition:x,...T}=m;for(const C in T){let E=T[C];if(Array.isArray(E)){const b=d?E.length-1:0;E=E[b]}E!==null&&(r[C]=E)}for(const C in h)r[C]=h[C]}}}return r}const df=e=>(t,n)=>{const o=N.useContext(ei),r=N.useContext(ea),s=()=>_w(e,t,o,r);return n?s():F0(s)},Uw=df({scrapeMotionValuesFromProps:Ea,createRenderState:Pa}),Hw=df({scrapeMotionValuesFromProps:Hp,createRenderState:uf}),qw=Symbol.for("motionComponentSymbol");function Gw(e,t,n){const o=N.useRef(n);N.useInsertionEffect(()=>{o.current=n});const r=N.useRef(null);return N.useCallback(s=>{s&&e.onMount?.(s);const a=o.current;if(typeof a=="function")if(s){const l=a(s);typeof l=="function"&&(r.current=l)}else r.current?(r.current(),r.current=null):a(s);else a&&(a.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const pf=N.createContext({});function Mn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Yw(e,t,n,o,r,s){const{visualElement:a}=N.useContext(ei),l=N.useContext(sf),c=N.useContext(ea),u=N.useContext(rf),d=u.reducedMotion,p=u.skipAnimations,f=N.useRef(null),g=N.useRef(!1);o=o||l.renderer,!f.current&&o&&(f.current=o(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:p,isSVG:s}),g.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const m=f.current,h=N.useContext(pf);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&Kw(f.current,n,r,h);const x=N.useRef(!1);N.useInsertionEffect(()=>{m&&x.current&&m.update(n,c)});const T=n[xp],C=N.useRef(!!T&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return _0(()=>{g.current=!0,m&&(x.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),C.current&&m.animationState&&m.animationState.animateChanges())}),N.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),C.current=!1),m.enteringChildren=void 0)}),m}function Kw(e,t,n,o){const{layoutId:r,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:ff(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||l&&Mn(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:o,crossfade:p,layoutScroll:c,layoutRoot:u,layoutAnchor:d})}function ff(e){if(e)return e.options.allowProjection!==!1?e.projection:ff(e.parent)}function ki(e,{forwardMotionProps:t=!1,type:n}={},o,r){o&&Mw(o);const s=n?n==="svg":Ra(e),a=s?Hw:Uw;function l(u,d){let p;const f={...N.useContext(rf),...u,layoutId:Xw(u)},{isStatic:g}=f,m=Dw(u),h=a(u,g);if(!g&&typeof window<"u"){Zw(f,o);const x=Jw(f);p=x.MeasureLayout,m.visualElement=Yw(e,h,f,r,x.ProjectionNode,s)}return y.jsxs(ei.Provider,{value:m,children:[p&&m.visualElement?y.jsx(p,{visualElement:m.visualElement,...f}):null,zw(e,u,Gw(h,m.visualElement,d),h,g,t,s)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=N.forwardRef(l);return c[qw]=e,c}function Xw({layoutId:e}){const t=N.useContext(jd).id;return t&&e!==void 0?t+"-"+e:e}function Zw(e,t){const n=N.useContext(sf).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?qn(!1,o,"lazy-strict-mode"):zt(!1,o,"lazy-strict-mode")}}function Jw(e){const t=af(),{drag:n,layout:o}=t;if(!n&&!o)return{};const r={...n,...o};return{MeasureLayout:n?.isEnabled(e)||o?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Qw(e,t){if(typeof Proxy>"u")return ki;const n=new Map,o=(s,a)=>ki(s,a,e,t),r=(s,a)=>(process.env.NODE_ENV!=="production"&&oa(!1,"motion() is deprecated. Use motion.create() instead."),o(s,a));return new Proxy(r,{get:(s,a)=>a==="create"?o:(n.has(a)||n.set(a,ki(a,void 0,e,t)),n.get(a))})}const eT=(e,t)=>t.isSVG??Ra(e)?new D1(t):new A1(t,{allowProjection:e!==N.Fragment});class tT extends on{constructor(t){super(t),t.animationState||(t.animationState=F1(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jr(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 nT=0;class oT extends on{constructor(){super(...arguments),this.id=nT++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;if(t&&o===!1){if(this.isExitComplete){const{initial:s,custom:a}=this.node.getProps();if(typeof s=="string"){const l=xn(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 r=this.node.animationState.setActive("exit",!t);n&&!t&&r.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 rT={animation:{Feature:tT},exit:{Feature:oT}};function Do(e){return{point:{x:e.pageX,y:e.pageY}}}const iT=e=>t=>xa(t)&&e(t,Do(t));function fo(e,t,n,o){return To(e,t,iT(n),o)}const hf=({current:e})=>e?e.ownerDocument.defaultView:null,Ic=(e,t)=>Math.abs(e-t);function sT(e,t){const n=Ic(e.x,t.x),o=Ic(e.y,t.y);return Math.sqrt(n**2+o**2)}const Dc=new Set(["auto","scroll"]);class mf{constructor(t,n,{transformPagePoint:o,contextWindow:r=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=g=>{this.handleScroll(g.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=qo(this.lastRawMoveEventInfo,this.transformPagePoint));const g=ji(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,h=sT(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!h)return;const{point:x}=g,{timestamp:T}=Ze;this.history.push({...x,timestamp:T});const{onStart:C,onMove:E}=this.handlers;m||(C&&C(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,g)},this.handlePointerMove=(g,m)=>{this.lastMoveEvent=g,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=qo(m,this.transformPagePoint),Ve.update(this.updatePoint,!0)},this.handlePointerUp=(g,m)=>{this.end();const{onEnd:h,onSessionEnd:x,resumeAnimation:T}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=ji(g.type==="pointercancel"?this.lastMoveEventInfo:qo(m,this.transformPagePoint),this.history);this.startEvent&&h&&h(g,C),x&&x(g,C)},!xa(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=r||window;const c=Do(t),u=qo(c,this.transformPagePoint),{point:d}=u,{timestamp:p}=Ze;this.history=[{...d,timestamp:p}];const{onSessionStart:f}=n;f&&f(t,ji(u,this.history)),this.removeListeners=jo(fo(this.contextWindow,"pointermove",this.handlePointerMove),fo(this.contextWindow,"pointerup",this.handlePointerUp),fo(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const o=getComputedStyle(n);(Dc.has(o.overflowX)||Dc.has(o.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 o=t===window,r=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:r.x-n.x,y:r.y-n.y};s.x===0&&s.y===0||(o?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,r),Ve.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),en(this.updatePoint)}}function qo(e,t){return t?{point:t(e.point)}:e}function Bc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ji({point:e},t){return{point:e,delta:Bc(e,gf(t)),offset:Bc(e,aT(t)),velocity:lT(t,.1)}}function aT(e){return e[0]}function gf(e){return e[e.length-1]}function lT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=gf(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>ot(t)));)n--;if(!o)return{x:0,y:0};o===e[0]&&e.length>2&&r.timestamp-o.timestamp>ot(t)*2&&(o=e[1]);const s=pt(r.timestamp-o.timestamp);if(s===0)return{x:0,y:0};const a={x:(r.x-o.x)/s,y:(r.y-o.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function cT(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?Fe(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?Fe(n,e,o.max):Math.min(e,n)),e}function Vc(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 uT(e,{top:t,left:n,bottom:o,right:r}){return{x:Vc(e.x,n,r),y:Vc(e.y,t,o)}}function Nc(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function dT(e,t){return{x:Nc(e.x,t.x),y:Nc(e.y,t.y)}}function pT(e,t){let n=.5;const o=nt(e),r=nt(t);return r>o?n=bo(t.min,t.max-o,e.min):o>r&&(n=bo(e.min,e.max-r,t.min)),jt(0,1,n)}function fT(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 Os=.35;function hT(e=Os){return e===!1?e=0:e===!0&&(e=Os),{x:Lc(e,"left","right"),y:Lc(e,"top","bottom")}}function Lc(e,t,n){return{min:Fc(e,t),max:Fc(e,n)}}function Fc(e,t){return typeof e=="number"?e:e[t]||0}const mT=new WeakMap;class gT{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=Xe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=p=>{n&&this.snapToCursor(Do(p).point),this.stopAnimation()},a=(p,f)=>{const{drag:g,dragPropagation:m,onDragStart:h}=this.getProps();if(g&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Yx(g),!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),Rt(T=>{let C=this.getAxisMotionValue(T).get()||0;if(Mt.test(C)){const{projection:E}=this.visualElement;if(E&&E.layout){const b=E.layout.layoutBox[T];b&&(C=nt(b)*(parseFloat(C)/100))}}this.originPoint[T]=C}),h&&Ve.update(()=>h(p,f),!1,!0),bs(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},l=(p,f)=>{this.latestPointerEvent=p,this.latestPanInfo=f;const{dragPropagation:g,dragDirectionLock:m,onDirectionLock:h,onDrag:x}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:T}=f;if(m&&this.currentDirection===null){this.currentDirection=vT(T),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,T),this.updateAxis("y",f.point,T),this.visualElement.render(),x&&Ve.update(()=>x(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 mf(t,{onSessionStart:s,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:hf(this.visualElement),element:this.visualElement.current})}stop(t,n){const o=t||this.latestPointerEvent,r=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!r||!o)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&Ve.postRender(()=>l(o,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&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,o){const{drag:r}=this.getProps();if(!o||!Go(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=cT(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&Mn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=uT(o.layoutBox,t):this.constraints=!1,this.elastic=hT(n),r!==this.constraints&&!Mn(t)&&o&&this.constraints&&!this.hasMutatedConstraints&&Rt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=fT(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Mn(t))return!1;const o=t.current;zt(o!==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:r}=this.visualElement;if(!r||!r.layout)return!1;const s=C1(o,r.root,this.visualElement.getTransformPagePoint());let a=dT(r.layout.layoutBox,s);if(n){const l=n(x1(a));this.hasMutatedConstraints=!!l,l&&(a=Bp(l))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Rt(d=>{if(!Go(d,n,this.currentDirection))return;let p=c&&c[d]||{};(a===!0||a===d)&&(p={min:0,max:0});const f=r?200:1e6,g=r?40:1e7,m={type:"inertia",velocity:o?t[d]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(d,m)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return bs(this.visualElement,t),o.start(ha(t,o,0,n,this.visualElement,!1))}stopAnimation(){Rt(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Rt(n=>{const{drag:o}=this.getProps();if(!Go(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:l}=r.layout.layoutBox[n],c=s.get()||0;s.set(t[n]-Fe(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!Mn(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Rt(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=pT({min:c,max:c},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),Rt(a=>{if(!Go(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(Fe(c,u,r[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;mT.set(this.visualElement,this);const t=this.visualElement.current,n=fo(t,"pointerdown",u=>{const{drag:d,dragListener:p=!0}=this.getProps(),f=u.target,g=f!==t&&e1(f);d&&p&&!g&&this.start(u)});let o;const r=()=>{const{dragConstraints:u}=this.getProps();Mn(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),o||(o=yT(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,a=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Ve.read(r);const l=To(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(Rt(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(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:a=Os,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:s,dragElastic:a,dragMomentum:l}}}function zc(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function yT(e,t,n){const o=Xl(e,zc(n)),r=Xl(t,zc(n));return()=>{o(),r()}}function Go(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class bT extends on{constructor(t){super(t),this.removeGroupControls=ft,this.removeListeners=ft,this.controls=new gT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ft}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 $i=e=>(t,n)=>{e&&Ve.update(()=>e(t,n),!1,!0)};class xT extends on{constructor(){super(...arguments),this.removePointerDownListener=ft}onPointerDown(t){this.session=new mf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hf(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:$i(t),onStart:$i(n),onMove:$i(o),onEnd:(s,a)=>{delete this.session,r&&Ve.postRender(()=>r(s,a))}}}mount(){this.removePointerDownListener=fo(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 Ii=!1;class wT extends N.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),o&&o.register&&r&&o.register(s),Ii&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),cr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:s}=this.props,{projection:a}=o;return a&&(a.isPresent=s,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),Ii=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||Ve.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:o}=t;o&&(o.options.layoutAnchor=n,o.root.didUpdate(),ba.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;Ii=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function yf(e){const[t,n]=Ow(),o=N.useContext(jd);return y.jsx(wT,{...e,layoutGroup:o,switchLayoutGroup:N.useContext(pf),isPresent:t,safeToRemove:n})}const TT={pan:{Feature:xT},drag:{Feature:bT,ProjectionNode:of,MeasureLayout:yf}};function _c(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,s=o[r];s&&Ve.postRender(()=>s(t,Do(t)))}class CT extends on{mount(){const{current:t}=this.node;t&&(this.unmount=Xx(t,(n,o)=>(_c(this.node,o,"Start"),r=>_c(this.node,r,"End"))))}unmount(){}}class ST extends on{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=jo(To(this.node.current,"focus",()=>this.onFocus()),To(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Wc(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),s=o[r];s&&Ve.postRender(()=>s(t,Do(t)))}class ET extends on{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:o}=this.node.props;this.unmount=n1(t,(r,s)=>(Wc(this.node,s,"Start"),(a,{success:l})=>Wc(this.node,a,l?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:o?.tap===!1})}unmount(){}}const As=new WeakMap,Di=new WeakMap,PT=e=>{const t=As.get(e.target);t&&t(e)},RT=e=>{e.forEach(PT)};function OT({root:e,...t}){const n=e||document;Di.has(n)||Di.set(n,{});const o=Di.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(RT,{root:e,...t})),o[r]}function AT(e,t,n){const o=OT(t);return As.set(e,n),o.observe(e),()=>{As.delete(e),o.unobserve(e)}}const MT={some:0,all:1};class kT extends on{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:MT[r]},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=AT(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(jT(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function jT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const $T={inView:{Feature:kT},tap:{Feature:ET},focus:{Feature:ST},hover:{Feature:CT}},IT={layout:{ProjectionNode:of,MeasureLayout:yf}},DT={...rT,...$T,...TT,...IT},ao=Qw(DT,eT),BT={some:0,all:1};function VT(e,t,{root:n,margin:o,amount:r="some"}={}){const s=va(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:o,threshold:typeof r=="number"?r:BT[r]});return s.forEach(u=>c.observe(u)),()=>c.disconnect()}function NT(e,{root:t,margin:n,amount:o,once:r=!1,initial:s=!1}={}){const[a,l]=N.useState(s);return N.useEffect(()=>{if(!e.current||r&&a)return;const c=()=>(l(!0),r?void 0:()=>l(!1)),u={root:t&&t.current||void 0,margin:n,amount:o};return VT(e.current,c,u)},[t,e,n,r,o]),a}const LT=()=>{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:"/"}},FT=({step:e,currentStep:t,totalSteps:n,nextStep:o,prevStep:r,skipTour:s,arrow:a})=>y.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:[y.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1rem"},children:[y.jsx("h2",{style:{fontSize:"1.125rem",fontWeight:"bold"},children:e.title}),e.icon&&y.jsx("span",{style:{fontSize:"1.5rem"},children:e.icon})]}),y.jsx("div",{style:{marginBottom:"1rem",fontSize:"0.875rem"},children:e.content}),y.jsx("div",{style:{marginBottom:"1rem",backgroundColor:"#E5E7EB",borderRadius:"9999px",height:"0.625rem"},children:y.jsx("div",{style:{backgroundColor:"#2563EB",height:"0.625rem",borderRadius:"9999px",width:`${(t+1)/n*100}%`}})}),y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1rem",fontSize:"0.75rem"},children:[y.jsx("button",{onClick:r,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"}),y.jsxs("span",{style:{color:"#6B7280",whiteSpace:"nowrap"},children:[t+1," of ",n]}),t===n-1?y.jsx("button",{onClick:o,style:{padding:"0.5rem 1rem",fontWeight:"500",color:"white",backgroundColor:"#10B981",borderRadius:"0.375rem",cursor:"pointer",display:e.showControls?"block":"none"},children:"Finish"}):y.jsx("button",{onClick:o,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&&y.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"})]}),Uc=({viewportID:e,children:t})=>{const[n,o]=N.useState(null);return N.useEffect(()=>{if(e){const r=document.getElementById(e);r?o(r):(console.warn(`Element with ID "${e}" not found. Rendering into document body.`),o(document.body))}else o(document.body)},[e]),n?kn.createPortal(t,n):null},zT=({x:e,y:t,width:n,height:o,padding:r,radius:s,shadowOpacity:a,shadowRgb:l,zIndex:c})=>{const u=e-r/2,d=t-r/2,p=n+r,f=o+r;return y.jsx("div",{style:{position:"absolute",inset:0,zIndex:c,pointerEvents:"none"},children:y.jsxs("svg",{width:"100%",height:"100%",children:[y.jsx("defs",{children:y.jsxs("mask",{id:"smooth-spotlight-mask",children:[y.jsx("rect",{width:"100%",height:"100%",fill:"white"}),y.jsx(ao.rect,{initial:!1,animate:{x:u,y:d,width:p,height:f,rx:s,ry:s},transition:{duration:.4,ease:"easeInOut"},fill:"black"})]})}),y.jsx("rect",{width:"100%",height:"100%",fill:`rgba(${l}, ${a})`,mask:"url(#smooth-spotlight-mask)"})]})})},_T=({children:e,steps:t,shadowRgb:n="0, 0, 0",shadowOpacity:o="0.2",cardTransition:r={ease:"anticipate",duration:.6},cardComponent:s,onStart:a=()=>{},onStepChange:l=()=>{},onComplete:c=()=>{},onSkip:u=()=>{},displayArrow:d=!0,clickThroughOverlay:p=!1,navigationAdapter:f=LT,disableConsoleLogs:g=!1,scrollToTop:m=!0,noInViewScroll:h=!1,overlayZIndex:x=999})=>{const{currentTour:T,currentStep:C,setCurrentStep:E,isNextStepVisible:b,closeNextStep:w}=kd(),S=t.find(U=>U.tour===T)?.steps,[M,j]=N.useState(null),[O,A]=N.useState(null),I=N.useRef(null),v=N.useRef(null),D=NT(v),k=20,[V,$]=N.useState(0),[W,B]=N.useState(null),[_,P]=N.useState(null),[L,H]=N.useState(null),q=f(),K=N.useCallback(()=>{w()},[w]);N.useEffect(()=>(window.addEventListener("popstate",K),()=>{window.removeEventListener("popstate",K)}),[K]),N.useEffect(()=>{B(window.document.body),P(window.document.body.getBoundingClientRect()),H(window.document.body)},[]);const ee=q.getCurrentPath()||"/";N.useEffect(()=>{b&&a?.(T)},[T,a,b]),N.useEffect(()=>{if(b&&S){g||console.log("NextStep: Current Step Changed");const U=S[C];let Q=window.document.body;if(U&&U.viewportID){const he=document.querySelector(`#${U.viewportID}`);he&&(Q=he)}const fe=Q.getBoundingClientRect();if(B(Q),P(fe),H(qt(Q)),U&&U.selector){const he=document.querySelector(U.selector);if(he){A(ne(he)),I.current=he,j(he);const Pe=he.getBoundingClientRect();if(!(Pe.top>=-k&&Pe.bottom<=window.innerHeight+k)){const ze=pe(S?.[C]?.side||"right");he.scrollIntoView({behavior:"smooth",block:ze.includes("top")?"end":ze.includes("bottom")?"start":"center"})}}}else U.viewportID?A({x:qt(Q).getBoundingClientRect().width/2,y:qt(Q).getBoundingClientRect().height/2,width:0,height:0}):A({x:window.innerWidth/2,y:window.innerHeight/2,width:0,height:0}),I.current=null,j(null)}},[C,S,D,k,b]);const te=()=>{let U=window.document.body;if(S&&C!==void 0){const Q=S[C];if(Q.viewportID){const fe=document.querySelector(`#${Q.viewportID}`);fe&&(U=fe)}}B(U),P(U.getBoundingClientRect()),H(qt(U))};N.useEffect(()=>{if(b)return te(),window.addEventListener("resize",te),()=>{window.removeEventListener("resize",te)}},[C,ee,S,b]);const ne=U=>{const Q=U.getBoundingClientRect();let fe=window.document.body,he=window.document.body.getBoundingClientRect();if(S&&C!==void 0){const ze=S[C];if(ze.viewportID){const Dt=document.querySelector(`#${ze.viewportID}`);Dt&&(fe=Dt,he=fe.getBoundingClientRect())}}const Pe=Q.top-he.top+fe.scrollTop;return{x:Q.left-he.left+fe.scrollLeft,y:Pe,width:Q.width,height:Q.height}};N.useEffect(()=>{if(b&&S){g||console.log("NextStep: Current Step Changed");const U=S[C];let Q=window.document.body;if(U&&U.viewportID){const he=document.querySelector(`#${U.viewportID}`);he&&(Q=he)}const fe=Q.getBoundingClientRect();if(B(Q),P(fe),H(qt(Q)),U&&U.selector){const he=document.querySelector(U.selector);if(he){A(ne(he)),I.current=he,j(he);const Pe=he.getBoundingClientRect();if(!(Pe.top>=-k&&Pe.bottom<=window.innerHeight+k)){const ze=pe(S?.[C]?.side||"right");he.scrollIntoView({behavior:"smooth",block:ze.includes("top")?"end":ze.includes("bottom")?"start":"center"})}}}else U.viewportID?A({x:qt(Q).getBoundingClientRect().width/2,y:qt(Q).getBoundingClientRect().height/2,width:0,height:0}):A({x:window.innerWidth/2,y:window.innerHeight/2,width:0,height:0}),I.current=null,j(null)}},[C,S,D,k,b]),N.useEffect(()=>{if(M&&!D&&b){g||console.log("NextStep: Element to Scroll Changed");const U=pe(S?.[C]?.side||"right");h||M.scrollIntoView({behavior:"smooth",block:U.includes("top")?"end":U.includes("bottom")?"start":"center",inline:"center"})}else(m||!M)&&window.scrollTo({top:0,behavior:"smooth"})},[M,D,b]);const J=()=>{if(S){const U=S[C];if(U&&U.selector){const Q=document.querySelector(U.selector);Q&&A(ne(Q))}else{const Q=document.querySelector(`#${U.viewportID}`);U.viewportID&&Q&&L?A({x:qt(Q).getBoundingClientRect().width/2,y:L.getBoundingClientRect().height/2,width:0,height:0}):A({x:window.innerWidth/2,y:window.innerHeight/2,width:0,height:0}),I.current=null,j(null)}}};N.useEffect(()=>{if(b)return window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[C,S,b]),N.useEffect(()=>{const U=()=>{const Q=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight);$(Q)};return U(),window.addEventListener("resize",U),()=>window.removeEventListener("resize",U)},[]),N.useEffect(()=>{if(!b||!T||!S||C===void 0)return;const U=S[C];if(!U.selector)return;const Q=document.querySelector(U.selector);if(!Q)return;const fe=new ResizeObserver(()=>{J(),te()});return fe.observe(Q),()=>{fe.disconnect()}},[C,T]);const le=()=>{if(S&&C<S.length-1)try{const U=C+1,Q=S[C].nextRoute;if(l?.(U,T),Q){q.push(Q);const fe=S[U].selector;fe?new MutationObserver((Pe,Le)=>{document.querySelector(fe)&&(E(U),z(U),Le.disconnect())}).observe(document.body,{childList:!0,subtree:!0}):E(U)}else E(U),z(U)}catch(U){g||console.error("Error navigating to next route",U)}else S&&C===S.length-1&&(c?.(T),w())},Y=()=>{if(S&&C>0)try{const U=C-1,Q=S[C].prevRoute;if(l?.(U,T),Q){q.push(Q);const fe=S[U].selector;fe?new MutationObserver((Pe,Le)=>{document.querySelector(fe)&&(E(U),z(U),Le.disconnect())}).observe(document.body,{childList:!0,subtree:!0}):E(U)}else E(U),z(U)}catch(U){g||console.error("Error navigating to previous route",U)}},se=()=>{u?.(C,T),w()};N.useEffect(()=>{const U=Q=>{if(b&&!S?.[C]?.blockKeyboardControl)switch(Q.key){case"ArrowRight":le();break;case"ArrowLeft":Y();break;case"Escape":se();break}};return window.addEventListener("keydown",U),()=>window.removeEventListener("keydown",U)},[b,le,Y,se]);const z=U=>{if(S){const Q=S[U].selector;if(Q){const fe=document.querySelector(Q);if(fe){const{top:he}=fe.getBoundingClientRect();if(!(he>=-k&&he<=window.innerHeight+k)){const Le=pe(S?.[U]?.side||"right");fe.scrollIntoView({behavior:"smooth",block:Le.includes("top")?"end":Le.includes("bottom")?"start":"center"})}A(ne(fe))}}else S?.[C].viewportID&&L?A({x:L.getBoundingClientRect().width/2,y:L.getBoundingClientRect().height/2,width:0,height:0}):A({x:window.innerWidth/2,y:window.innerHeight/2,width:0,height:0}),I.current=null,j(null)}},pe=U=>{if(!U||!W)return U;let Q=U,fe=!1;return(U.startsWith("right")&&O&&W.scrollWidth<O.x+O.width+256||U.startsWith("left")&&O&&O.x<256)&&(fe=!0),U.includes("top")&&O&&O.y<256?fe?Q="bottom":Q=U.replace("top","bottom"):U.includes("bottom")&&O&&O.y+O.height+256>W.scrollHeight?fe?Q="top":Q=U.replace("bottom","top"):fe&&(Q=O&&O.y<256?"bottom":"top"),Q},ce=U=>{if(!U||!S?.[C].selector)return{top:"50%",left:"50%",transform:"translate(-50%, -50%)",position:"fixed",margin:"0"};switch(U=pe(U),U){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{}}},re=U=>{switch(U=pe(U),U){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"}}},Ce=({isVisible:U})=>U?y.jsx("svg",{viewBox:"0 0 54 54","data-name":"nextstep-arrow",style:{...re(S?.[C]?.side),position:"absolute",width:"1.5rem",height:"1.5rem",transformOrigin:"center"},children:y.jsx("path",{id:"triangle",d:"M27 27L0 0V54L27 27Z",fill:"currentColor"})}):null,be={visible:{opacity:1},hidden:{opacity:0}},me=S?.[C]?.pointerPadding??30,we=me/2,Ee=S?.[C]?.pointerRadius??28,ue=W?WT(W):!1,X=N.useCallback(U=>{console.warn("No navigation adapter provided. Please provide a navigation adapter or import one from nextstepjs/adapters/*")},[]);return N.useMemo(()=>f||{push:X,getCurrentPath:()=>"/"},[f,X]),y.jsxs("div",{"data-name":"nextstep-wrapper","data-nextstep":"dev",style:{position:"relative",width:"100%"},children:[y.jsx("div",{"data-name":"nextstep-site",style:{display:"block",width:"100%"},children:e}),O&&b&&W&&y.jsx(Uc,{viewportID:S?.[C]?.viewportID,children:y.jsxs(ao.div,{"data-name":"nextstep-overlay",initial:"hidden",animate:b?"visible":"hidden",variants:be,transition:{duration:.5},style:{position:"absolute",top:0,left:0,overflow:"hidden",height:ue?`${W.scrollHeight}px`:"100%",width:ue?`${W.scrollWidth}px`:"100%",zIndex:x-2,pointerEvents:"none"},children:[!p&&_&&y.jsxs("div",{"data-name":"nextstep-prevent-click-overlay",style:{position:"absolute",inset:0,zIndex:x-1,pointerEvents:"none",height:`${W.scrollHeight}px`,width:`${W.scrollWidth}px`},children:[y.jsx("div",{"data-name":"nextstep-prevent-click-overlay-top",style:{position:"absolute",top:0,left:0,right:0,pointerEvents:"auto",height:Math.max(O.y-we,0)}}),y.jsx("div",{"data-name":"nextstep-prevent-click-overlay-bottom",style:{position:"absolute",left:0,right:0,bottom:0,pointerEvents:"auto",height:`${Math.max(_.height-(O.y+O.height+we),0)}px`}}),y.jsx("div",{"data-name":"nextstep-prevent-click-overlay-left",style:{position:"absolute",left:0,top:0,pointerEvents:"auto",width:Math.max(O.x-we,0),height:_.height}}),y.jsx("div",{"data-name":"nextstep-prevent-click-overlay-right",style:{position:"absolute",top:0,pointerEvents:"auto",left:`${O.x+O.width+we}px`,right:0,height:_.height}})]}),y.jsx(zT,{x:O.x-we,y:O.y-we,width:O.width+me,height:O.height+me,padding:me,radius:Ee,shadowOpacity:o,shadowRgb:n,zIndex:x-1}),y.jsx(ao.div,{"data-name":"nextstep-pointer",style:{position:"relative",zIndex:x,borderRadius:`${Ee}px ${Ee}px ${Ee}px ${Ee}px`,pointerEvents:`${S?.[C]?.disableInteraction?"auto":"none"}`},initial:O?{x:O.x-we,y:O.y-we,width:O.width+me,height:O.height+me}:{},animate:O?{x:O.x-we,y:O.y-we,width:O.width+me,height:O.height+me}:{},transition:r,children:y.jsx(ao.div,{"data-name":"nextstep-card",transition:r,style:{...ce(S?.[C]?.side),position:"absolute",display:"flex",flexDirection:"column",maxWidth:"100%",minWidth:"min-content",pointerEvents:"auto",zIndex:x},children:s?y.jsx(s,{step:S?.[C],currentStep:C,totalSteps:S?.length??0,nextStep:le,prevStep:Y,arrow:y.jsx(Ce,{isVisible:!!(S?.[C]?.selector&&d)}),skipTour:se}):y.jsx(FT,{step:S?.[C],currentStep:C,totalSteps:S?.length??0,nextStep:le,prevStep:Y,arrow:y.jsx(Ce,{isVisible:!!(S?.[C]?.selector&&d)}),skipTour:se})})})]})}),O&&b&&S?.[C]?.viewportID&&L&&y.jsx(Uc,{children:y.jsx(ao.div,{"data-name":"nextstep-overlay2",initial:"hidden",animate:b?"visible":"hidden",variants:be,transition:{duration:.5},style:{position:"absolute",top:0,left:0,overflow:"hidden",height:`${V}px`,width:`${document.body.scrollWidth}px`,zIndex:x-2,pointerEvents:"none"},children:!p&&y.jsxs("div",{style:{position:"absolute",inset:0,zIndex:x-1,pointerEvents:"none",width:"100vw",height:V},children:[y.jsx("div",{style:{position:"absolute",left:0,right:0,top:0,pointerEvents:"auto",height:L.getBoundingClientRect().top+window.scrollY,width:`${document.body.scrollWidth}px`,backgroundColor:`rgba(${n}, ${o})`}}),y.jsx("div",{style:{position:"absolute",left:0,right:0,pointerEvents:"auto",top:`${L.getBoundingClientRect().bottom+window.scrollY}px`,height:`${V-L.getBoundingClientRect().bottom-window.scrollY}px`,width:`${document.body.scrollWidth}px`,backgroundColor:`rgba(${n}, ${o})`}}),y.jsx("div",{style:{position:"absolute",pointerEvents:"auto",left:"0",top:L.getBoundingClientRect().top+window.scrollY,width:L.getBoundingClientRect().left+window.scrollX,height:L.getBoundingClientRect().height,backgroundColor:`rgba(${n}, ${o})`}}),y.jsx("div",{style:{position:"absolute",pointerEvents:"auto",top:L.getBoundingClientRect().top+window.scrollY,left:`${L.getBoundingClientRect().right+window.scrollX}px`,width:`${document.body.scrollWidth-L.getBoundingClientRect().right-window.scrollX}px`,height:L.getBoundingClientRect().height,backgroundColor:`rgba(${n}, ${o})`}})]})})})]})},qt=e=>{let t=e.parentElement;for(;t;){const n=getComputedStyle(t),o=n.overflowY,r=n.overflowX,s=o==="scroll"||o==="auto",a=r==="scroll"||r==="auto";if(s&&t.scrollHeight>t.clientHeight||a&&t.scrollWidth>t.clientWidth)return t;t=t.parentElement}return e},WT=e=>e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth||e===document.body,UT=({step:e,currentStep:t,totalSteps:n,nextStep:o,prevStep:r,skipTour:s,arrow:a})=>{const l=G.useTheme(),c=(t+1)/n*100,u=t===n-1,d=t===0;return y.jsxs(G.Box,{sx:{position:"relative",bgcolor:"background.paper",borderRadius:3,boxShadow:l.shadows[16],border:"1px solid",borderColor:G.alpha(l.palette.primary.main,.2),maxWidth:420,minWidth:300,overflow:"hidden"},children:[y.jsx(G.LinearProgress,{variant:"determinate",value:c,sx:{height:3,bgcolor:G.alpha(l.palette.primary.main,.08),"& .MuiLinearProgress-bar":{bgcolor:"primary.main",borderRadius:0}}}),y.jsxs(G.Box,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",px:2.5,pt:2,pb:0},children:[y.jsxs(G.Box,{sx:{display:"flex",alignItems:"center",gap:1.5,flex:1},children:[e.icon&&y.jsx(G.Box,{sx:{fontSize:"1.5rem",display:"flex",alignItems:"center",justifyContent:"center",width:40,height:40,borderRadius:2,bgcolor:G.alpha(l.palette.primary.main,.1),color:"primary.main",flexShrink:0},children:e.icon}),y.jsxs(G.Box,{children:[y.jsx(G.Typography,{variant:"subtitle1",sx:{fontWeight:700,lineHeight:1.2},children:e.title}),y.jsxs(G.Typography,{variant:"caption",sx:{color:"text.disabled"},children:["Paso ",t+1," de ",n]})]})]}),s&&y.jsx(G.IconButton,{size:"small",onClick:s,sx:{color:"text.disabled",ml:1},children:y.jsx(ri.Close,{fontSize:"small"})})]}),y.jsx(G.Box,{sx:{px:2.5,py:1.5},children:y.jsx(G.Typography,{variant:"body2",sx:{color:"text.secondary",lineHeight:1.6},children:e.content})}),y.jsxs(G.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,pb:2,pt:.5},children:[y.jsx(G.Button,{size:"small",startIcon:y.jsx(ri.ArrowBack,{}),onClick:r,disabled:d,sx:{visibility:d?"hidden":"visible",textTransform:"none"},children:"Anterior"}),y.jsx(G.Button,{size:"small",variant:"contained",endIcon:u?void 0:y.jsx(ri.ArrowForward,{}),onClick:o,sx:{textTransform:"none",borderRadius:2,px:2.5,boxShadow:"none","&:hover":{boxShadow:l.shadows[2]}},children:u?"Finalizar":"Siguiente"})]}),a]})},HT=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}))})),qT=({children:e,tours:t,colorSombra:n="0, 0, 0",opacidadSombra:o="0.5",mostrarFlecha:r=!0,clickAtravesOverlay:s=!1,alIniciar:a,alCambiarPaso:l,alCompletar:c,alSaltar:u,tarjetaPersonalizada:d,scrollAlInicio:p=!0,deshabilitarLogs:f=!0,zIndexOverlay:g=1400,offsetSuperior:m=80,offsetInferior:h=60})=>{const x=HT(t),T=N.useRef(x);T.current=x;const C=N.useCallback((w,S)=>{const j=T.current.find(O=>O.tour===S)?.steps[w];j?.selector&&setTimeout(()=>{const O=document.querySelector(j.selector);if(!O)return;const A=O.getBoundingClientRect(),I=window.innerHeight;if(A.top<m){const v=window.scrollY+A.top-m-16;window.scrollTo({top:Math.max(0,v),behavior:"smooth"})}else if(A.bottom>I-h){const v=window.scrollY+A.bottom-I+h+16;window.scrollTo({top:v,behavior:"smooth"})}},400)},[m,h]),E=N.useCallback((w,S)=>{C(w,S),l?.(w,S)},[C,l]),b=N.useCallback(w=>{setTimeout(()=>{T.current.find(j=>j.tour===w)?.steps[0]?.selector&&C(0,w)},100),a?.(w)},[C,a]);return y.jsxs(L0,{children:[y.jsx("style",{children:`
253
+ `;const M0=oe(Ys)(({theme:e,colorBase:t})=>({backgroundColor:t||(e.palette.mode==="dark"?ae.alpha(e.palette.common.white,.08):ae.alpha(e.palette.common.black,.06)),borderRadius:8,"&.MuiSkeleton-text":{marginBottom:4,marginTop:0,borderRadius:4}})),ea=({variante:e="texto",ancho:t,alto:n,animacion:o="pulso",colorBase:r,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 y.jsx(M0,{variant:l(e),width:t,height:n,animation:c(o),colorBase:r,className:s,...a})},k0=ea,j0=ea;function $0(e){return R.Children.toArray(e).filter(t=>R.isValidElement(t))}function I0(e){return ke("MuiButtonGroup",e)}const ye=je("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"]),D0=(e,t)=>{const{ownerState:n}=e;return[{[`& .${ye.grouped}`]:t.grouped},{[`& .${ye.grouped}`]:t[`grouped${Z(n.orientation)}`]},{[`& .${ye.grouped}`]:t[`grouped${Z(n.variant)}`]},{[`& .${ye.grouped}`]:t[`grouped${Z(n.variant)}${Z(n.orientation)}`]},{[`& .${ye.grouped}`]:t[`grouped${Z(n.variant)}${Z(n.color)}`]},{[`& .${ye.firstButton}`]:t.firstButton},{[`& .${ye.lastButton}`]:t.lastButton},{[`& .${ye.middleButton}`]:t.middleButton},t.root,t[n.variant],n.disableElevation===!0&&t.disableElevation,n.fullWidth&&t.fullWidth,n.orientation==="vertical"&&t.vertical]},B0=e=>{const{classes:t,color:n,disabled:o,disableElevation:r,fullWidth:s,orientation:a,variant:l}=e,c={root:["root",l,a,s&&"fullWidth",r&&"disableElevation",`color${Z(n)}`],grouped:["grouped",`grouped${Z(a)}`,`grouped${Z(l)}`,`grouped${Z(l)}${Z(a)}`,`grouped${Z(l)}${Z(n)}`,o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ne(c,I0,t)},V0=oe("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:D0})(Se(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2],[`& .${ye.grouped}`]:{boxShadow:"none","&:hover":{boxShadow:"none"}}}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${ye.lastButton},& .${ye.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${ye.lastButton},& .${ye.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${ye.firstButton},& .${ye.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)"}`,[`&.${ye.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${ye.firstButton},& .${ye.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)"}`,[`&.${ye.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Qe()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderColor:e.alpha((e.vars||e).palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${ye.lastButton},& .${ye.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${ye.lastButton},& .${ye.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${ye.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${ye.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter(Qe(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${ye.firstButton},& .${ye.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${ye.grouped}`]:{minWidth:40}}))),Md=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiButtonGroup"}),{children:r,className:s,color:a="primary",component:l="div",disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,disableRipple:p=!1,fullWidth:f=!1,orientation:g="horizontal",size:m="medium",variant:h="outlined",...x}=o,T={...o,color:a,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,disableRipple:p,fullWidth:f,orientation:g,size:m,variant:h},C=B0(T),E=R.useMemo(()=>({className:C.grouped,color:a,disabled:c,disableElevation:u,disableFocusRipple:d,disableRipple:p,fullWidth:f,size:m,variant:h}),[a,c,u,d,p,f,m,h,C.grouped]),b=$0(r),w=b.length,S=M=>{const j=M===0,O=M===w-1;return j&&O?"":j?C.firstButton:O?C.lastButton:C.middleButton};return y.jsx(V0,{as:l,role:"group",className:de(C.root,s),ref:n,ownerState:T,...x,children:y.jsx(Us.Provider,{value:E,children:b.map((M,j)=>y.jsx(Hs.Provider,{value:S(j),children:M},j))})})});process.env.NODE_ENV!=="production"&&(Md.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,disableElevation:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,fullWidth:i.bool,orientation:i.oneOf(["horizontal","vertical"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["contained","outlined","text"]),i.string])});const N0=oe(Md,{shouldForwardProp:e=>e!=="separado"&&e!=="radio"&&e!=="varianteCustom"})(({theme:e,separado:t,radio:n,varianteCustom:o})=>({boxShadow:t?"none":e.shadows[2],borderRadius:n||(t?0:12),backgroundColor:o==="cristal"?e.palette.mode==="dark"?ae.alpha(e.palette.common.white,.05):ae.alpha(e.palette.common.white,.6):"transparent",backdropFilter:o==="cristal"?"blur(8px)":"none",border:o==="cristal"?`1px solid ${e.palette.mode==="dark"?ae.alpha(e.palette.common.white,.1):ae.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}})),L0=({children:e,tamano:t="m",variante:n="contenido",color:o="primario",orientacion:r="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 y.jsx(N0,{size:d(t),variant:c(n),color:u(o),orientation:r,separado:s,radio:a,varianteCustom:n,...l,children:e})},kd=N.createContext(void 0),jd=()=>{const e=N.useContext(kd);if(e===void 0)throw new Error("useNextStep must be used within a NextStepProvider");return e},F0=({children:e})=>{const[t,n]=N.useState(null),[o,r]=N.useState(0),[s,a]=N.useState(!1),l=N.useCallback((d,p)=>{p?setTimeout(()=>{r(d),a(!0)},p):(r(d),a(!0))},[]),c=N.useCallback(()=>{a(!1),n(null)},[]),u=N.useCallback(d=>{n(d),r(0),a(!0)},[]);return y.jsx(kd.Provider,{value:{currentTour:t,currentStep:o,setCurrentStep:l,closeNextStep:c,startNextStep:u,isNextStepVisible:s},children:e})},$d=N.createContext({});function z0(e){const t=N.useRef(null);return t.current===null&&(t.current=e()),t.current}const _0=typeof window<"u",W0=_0?N.useLayoutEffect:N.useEffect,ta=N.createContext(null);function na(e,t){e.indexOf(t)===-1&&e.push(t)}function xr(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const jt=(e,t,n)=>n>t?t:n<e?e:n;function is(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let qn=()=>{},zt=()=>{};typeof process<"u"&&process.env?.NODE_ENV!=="production"&&(qn=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(is(t,n))},zt=(e,t,n)=>{if(!e)throw new Error(is(t,n))});const Qt={},Id=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Dd(e){return typeof e=="object"&&e!==null}const Bd=e=>/^0[^.\s]+$/u.test(e);function Vd(e){let t;return()=>(t===void 0&&(t=e()),t)}const ft=e=>e,U0=(e,t)=>n=>t(e(n)),jo=(...e)=>e.reduce(U0),bo=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class oa{constructor(){this.subscriptions=[]}add(t){return na(this.subscriptions,t),()=>xr(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let s=0;s<r;s++){const a=this.subscriptions[s];a&&a(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ot=e=>e*1e3,pt=e=>e/1e3;function Nd(e,t){return t?e*(1e3/t):0}const Al=new Set;function ra(e,t,n){e||Al.has(t)||(console.warn(is(t,n)),Al.add(t))}const Ld=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,H0=1e-7,q0=12;function G0(e,t,n,o,r){let s,a,l=0;do a=t+(n-t)/2,s=Ld(a,o,r)-e,s>0?n=a:t=a;while(Math.abs(s)>H0&&++l<q0);return a}function $o(e,t,n,o){if(e===t&&n===o)return ft;const r=s=>G0(s,0,1,e,n);return s=>s===0||s===1?s:Ld(r(s),t,o)}const Fd=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zd=e=>t=>1-e(1-t),_d=$o(.33,1.53,.69,.99),ia=zd(_d),Wd=Fd(ia),Ud=e=>e>=1?1:(e*=2)<1?.5*ia(e):.5*(2-Math.pow(2,-10*(e-1))),sa=e=>1-Math.sin(Math.acos(e)),Hd=zd(sa),qd=Fd(sa),Y0=$o(.42,0,1,1),K0=$o(0,0,.58,1),Gd=$o(.42,0,.58,1),X0=e=>Array.isArray(e)&&typeof e[0]!="number",Yd=e=>Array.isArray(e)&&typeof e[0]=="number",Ml={linear:ft,easeIn:Y0,easeInOut:Gd,easeOut:K0,circIn:sa,circInOut:qd,circOut:Hd,backIn:ia,backInOut:Wd,backOut:_d,anticipate:Ud},Z0=e=>typeof e=="string",kl=e=>{if(Yd(e)){zt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,r]=e;return $o(t,n,o,r)}else if(Z0(e))return zt(Ml[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ml[e];return e},Uo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function J0(e,t){let n=new Set,o=new Set,r=!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 m=f&&r?n:o;return p&&a.add(d),m.add(d),d},cancel:d=>{o.delete(d),a.delete(d)},process:d=>{if(l=d,r){s=!0;return}r=!0;const p=n;n=o,o=p,n.forEach(c),n.clear(),r=!1,s&&(s=!1,u.process(d))}};return u}const Q0=40;function Kd(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,a=Uo.reduce((E,b)=>(E[b]=J0(s),E),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:p,preRender:f,render:g,postRender:m}=a,h=()=>{const E=Qt.useManualTiming,b=E?r.timestamp:performance.now();n=!1,E||(r.delta=o?1e3/60:Math.max(Math.min(b-r.timestamp,Q0),1)),r.timestamp=b,r.isProcessing=!0,l.process(r),c.process(r),u.process(r),d.process(r),p.process(r),f.process(r),g.process(r),m.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(h))},x=()=>{n=!0,o=!0,r.isProcessing||e(h)};return{schedule:Uo.reduce((E,b)=>{const w=a[b];return E[b]=(S,M=!1,j=!1)=>(n||x(),w.schedule(S,M,j)),E},{}),cancel:E=>{for(let b=0;b<Uo.length;b++)a[Uo[b]].cancel(E)},state:r,steps:a}}const{schedule:Ve,cancel:en,state:Ze,steps:xi}=Kd(typeof requestAnimationFrame<"u"?requestAnimationFrame:ft,!0);let nr;function eb(){nr=void 0}const tt={now:()=>(nr===void 0&&tt.set(Ze.isProcessing||Qt.useManualTiming?Ze.timestamp:performance.now()),nr),set:e=>{nr=e,queueMicrotask(eb)}},Xd=e=>t=>typeof t=="string"&&t.startsWith(e),Zd=Xd("--"),tb=Xd("var(--"),aa=e=>tb(e)?nb.test(e.split("/*")[0].trim()):!1,nb=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function jl(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Gn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xo={...Gn,transform:e=>jt(0,1,e)},Ho={...Gn,default:1},uo=e=>Math.round(e*1e5)/1e5,la=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ob(e){return e==null}const rb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ca=(e,t)=>n=>!!(typeof n=="string"&&rb.test(n)&&n.startsWith(e)||t&&!ob(n)&&Object.prototype.hasOwnProperty.call(n,t)),Jd=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,s,a,l]=o.match(la);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},ib=e=>jt(0,255,e),wi={...Gn,transform:e=>Math.round(ib(e))},mn={test:ca("rgb","red"),parse:Jd("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+wi.transform(e)+", "+wi.transform(t)+", "+wi.transform(n)+", "+uo(xo.transform(o))+")"};function sb(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const ss={test:ca("#"),parse:sb,transform:mn.transform},Io=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gt=Io("deg"),Mt=Io("%"),ie=Io("px"),ab=Io("vh"),lb=Io("vw"),$l={...Mt,parse:e=>Mt.parse(e)/100,transform:e=>Mt.transform(e*100)},jn={test:ca("hsl","hue"),parse:Jd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Mt.transform(uo(t))+", "+Mt.transform(uo(n))+", "+uo(xo.transform(o))+")"},Ye={test:e=>mn.test(e)||ss.test(e)||jn.test(e),parse:e=>mn.test(e)?mn.parse(e):jn.test(e)?jn.parse(e):ss.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?mn.transform(e):jn.transform(e),getAnimatableNone:e=>{const t=Ye.parse(e);return t.alpha=0,Ye.transform(t)}},cb=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ub(e){return isNaN(e)&&typeof e=="string"&&(e.match(la)?.length||0)+(e.match(cb)?.length||0)>0}const Qd="number",ep="color",db="var",pb="var(",Il="${}",fb=/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 Fn(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let s=0;const l=t.replace(fb,c=>(Ye.test(c)?(o.color.push(s),r.push(ep),n.push(Ye.parse(c))):c.startsWith(pb)?(o.var.push(s),r.push(db),n.push(c)):(o.number.push(s),r.push(Qd),n.push(parseFloat(c))),++s,Il)).split(Il);return{values:n,split:l,indexes:o,types:r}}function hb(e){return Fn(e).values}function tp({split:e,types:t}){const n=e.length;return o=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],o[s]!==void 0){const a=t[s];a===Qd?r+=uo(o[s]):a===ep?r+=Ye.transform(o[s]):r+=o[s]}return r}}function mb(e){return tp(Fn(e))}const gb=e=>typeof e=="number"?0:Ye.test(e)?Ye.getAnimatableNone(e):e,yb=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:gb(e);function vb(e){const t=Fn(e);return tp(t)(t.values.map((o,r)=>yb(o,t.split[r])))}const Tt={test:ub,parse:hb,createTransformer:mb,getAnimatableNone:vb};function Ti(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 bb({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,s=0,a=0;if(!t)r=s=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=Ti(c,l,e+1/3),s=Ti(c,l,e),a=Ti(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:o}}function wr(e,t){return n=>n>0?t:e}const Fe=(e,t,n)=>e+(t-e)*n,Ci=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},xb=[ss,mn,jn],wb=e=>xb.find(t=>t.test(e));function Dl(e){const t=wb(e);if(qn(!!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===jn&&(n=bb(n)),n}const Bl=(e,t)=>{const n=Dl(e),o=Dl(t);if(!n||!o)return wr(e,t);const r={...n};return s=>(r.red=Ci(n.red,o.red,s),r.green=Ci(n.green,o.green,s),r.blue=Ci(n.blue,o.blue,s),r.alpha=Fe(n.alpha,o.alpha,s),mn.transform(r))},as=new Set(["none","hidden"]);function Tb(e,t){return as.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Cb(e,t){return n=>Fe(e,t,n)}function ua(e){return typeof e=="number"?Cb:typeof e=="string"?aa(e)?wr:Ye.test(e)?Bl:Pb:Array.isArray(e)?np:typeof e=="object"?Ye.test(e)?Bl:Sb:wr}function np(e,t){const n=[...e],o=n.length,r=e.map((s,a)=>ua(s)(s,t[a]));return s=>{for(let a=0;a<o;a++)n[a]=r[a](s);return n}}function Sb(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=ua(e[r])(e[r],t[r]));return r=>{for(const s in o)n[s]=o[s](r);return n}}function Eb(e,t){const n=[],o={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const s=t.types[r],a=e.indexes[s][o[s]],l=e.values[a]??0;n[r]=l,o[s]++}return n}const Pb=(e,t)=>{const n=Tt.createTransformer(t),o=Fn(e),r=Fn(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?as.has(e)&&!r.values.length||as.has(t)&&!o.values.length?Tb(e,t):jo(np(Eb(o,r),r.values),n):(qn(!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"),wr(e,t))};function op(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Fe(e,t,n):ua(e)(e,t)}const Rb=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ve.update(t,n),stop:()=>en(t),now:()=>Ze.isProcessing?Ze.timestamp:tt.now()}},rp=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let s=0;s<r;s++)o+=Math.round(e(s/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Tr=2e4;function da(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<Tr;)t+=n,o=e.next(t);return t>=Tr?1/0:t}function Ob(e,t=100,n){const o=n({...e,keyframes:[0,t]}),r=Math.min(da(o),Tr);return{type:"keyframes",ease:s=>o.next(r*s).value/t,duration:pt(r)}}const We={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 ls(e,t){return e*Math.sqrt(1-t*t)}const Ab=12;function Mb(e,t,n){let o=n;for(let r=1;r<Ab;r++)o=o-e(o)/t(o);return o}const Si=.001;function kb({duration:e=We.duration,bounce:t=We.bounce,velocity:n=We.velocity,mass:o=We.mass}){let r,s;qn(e<=ot(We.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=jt(We.minDamping,We.maxDamping,a),e=jt(We.minDuration,We.maxDuration,pt(e)),a<1?(r=u=>{const d=u*a,p=d*e,f=d-n,g=ls(u,a),m=Math.exp(-p);return Si-f/g*m},s=u=>{const p=u*a*e,f=p*n+n,g=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-p),h=ls(Math.pow(u,2),a);return(-r(u)+Si>0?-1:1)*((f-g)*m)/h}):(r=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-Si+d*p},s=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const l=5/e,c=Mb(r,s,l);if(e=ot(e),isNaN(c))return{stiffness:We.stiffness,damping:We.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const jb=["duration","bounce"],$b=["stiffness","damping","mass"];function Vl(e,t){return t.some(n=>e[n]!==void 0)}function Ib(e){let t={velocity:We.velocity,stiffness:We.stiffness,damping:We.damping,mass:We.mass,isResolvedFromDuration:!1,...e};if(!Vl(e,$b)&&Vl(e,jb))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,s=2*jt(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:We.mass,stiffness:r,damping:s}}else{const n=kb({...e,velocity:0});t={...t,...n,mass:We.mass},t.isResolvedFromDuration=!0}return t}function Cr(e=We.visualDuration,t=We.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=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:g}=Ib({...n,velocity:-pt(n.velocity||0)}),m=f||0,h=u/(2*Math.sqrt(c*d)),x=a-s,T=pt(Math.sqrt(c/d)),C=Math.abs(x)<5;o||(o=C?We.restSpeed.granular:We.restSpeed.default),r||(r=C?We.restDelta.granular:We.restDelta.default);let E,b,w,S,M,j;if(h<1)w=ls(T,h),S=(m+h*T*x)/w,E=A=>{const I=Math.exp(-h*T*A);return a-I*(S*Math.sin(w*A)+x*Math.cos(w*A))},M=h*T*S+x*w,j=h*T*x-S*w,b=A=>Math.exp(-h*T*A)*(M*Math.sin(w*A)+j*Math.cos(w*A));else if(h===1){E=I=>a-Math.exp(-T*I)*(x+(m+T*x)*I);const A=m+T*x;b=I=>Math.exp(-T*I)*(T*A*I-m)}else{const A=T*Math.sqrt(h*h-1);E=k=>{const V=Math.exp(-h*T*k),$=Math.min(A*k,300);return a-V*((m+h*T*x)*Math.sinh($)+A*x*Math.cosh($))/A};const I=(m+h*T*x)/A,v=h*T*I-x*A,D=h*T*x-I*A;b=k=>{const V=Math.exp(-h*T*k),$=Math.min(A*k,300);return V*(v*Math.sinh($)+D*Math.cosh($))}}const O={calculatedDuration:g&&p||null,velocity:A=>ot(b(A)),next:A=>{if(!g&&h<1){const v=Math.exp(-h*T*A),D=Math.sin(w*A),k=Math.cos(w*A),V=a-v*(S*D+x*k),$=ot(v*(M*D+j*k));return l.done=Math.abs($)<=o&&Math.abs(a-V)<=r,l.value=l.done?a:V,l}const I=E(A);if(g)l.done=A>=p;else{const v=ot(b(A));l.done=Math.abs(v)<=o&&Math.abs(a-I)<=r}return l.value=l.done?a:I,l},toString:()=>{const A=Math.min(da(O),Tr),I=rp(v=>O.next(A*v).value,A,30);return A+"ms "+I},toTransition:()=>{}};return O}Cr.applyToOptions=e=>{const t=Ob(e,100,Cr);return e.ease=t.ease,e.duration=ot(t.duration),e.type="keyframes",e};const Db=5;function ip(e,t,n){const o=Math.max(t-Db,0);return Nd(n-e(o),t-o)}function cs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const p=e[0],f={done:!1,value:p},g=j=>l!==void 0&&j<l||c!==void 0&&j>c,m=j=>l===void 0?c:c===void 0||Math.abs(l-j)<Math.abs(c-j)?l:c;let h=n*t;const x=p+h,T=a===void 0?x:a(x);T!==x&&(h=T-p);const C=j=>-h*Math.exp(-j/o),E=j=>T+C(j),b=j=>{const O=C(j),A=E(j);f.done=Math.abs(O)<=u,f.value=f.done?T:A};let w,S;const M=j=>{g(f.value)&&(w=j,S=Cr({keyframes:[f.value,m(f.value)],velocity:ip(E,j,f.value),damping:r,stiffness:s,restDelta:u,restSpeed:d}))};return M(0),{calculatedDuration:null,next:j=>{let O=!1;return!S&&w===void 0&&(O=!0,b(j),M(j)),w!==void 0&&j>=w?S.next(j-w):(!O&&b(j),f)}}}function Bb(e,t,n){const o=[],r=n||Qt.mix||op,s=e.length-1;for(let a=0;a<s;a++){let l=r(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||ft:t;l=jo(c,l)}o.push(l)}return o}function Vb(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const s=e.length;if(zt(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=Bb(t,o,r),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=bo(e[p],e[p+1],d);return l[p](f)};return n?d=>u(jt(e[0],e[s-1],d)):u}function Nb(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=bo(0,t,o);e.push(Fe(n,1,r))}}function Lb(e){const t=[0];return Nb(t,e.length-1),t}function Fb(e,t){return e.map(n=>n*t)}function zb(e,t){return e.map(()=>t||Gd).splice(0,e.length-1)}function $n({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=X0(o)?o.map(kl):kl(o),s={done:!1,value:t[0]},a=Fb(n&&n.length===t.length?n:Lb(t),e),l=Vb(a,t,{ease:Array.isArray(r)?r:zb(t,r)});return{calculatedDuration:e,next:c=>(s.value=l(c),s.done=c>=e,s)}}const _b=e=>e!==null;function Zr(e,{repeat:t,repeatType:n="loop"},o,r=1){const s=e.filter(_b),l=r<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!l||o===void 0?s[l]:o}const Wb={decay:cs,inertia:cs,tween:$n,keyframes:$n,spring:Cr};function sp(e){typeof e.type=="string"&&(e.type=Wb[e.type])}class pa{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 Ub=e=>e/100;class Sr extends pa{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!==tt.now()&&this.tick(tt.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;sp(t);const{type:n=$n,repeat:o=0,repeatDelay:r=0,repeatType:s,velocity:a=0}=t;let{keyframes:l}=t;const c=n||$n;process.env.NODE_ENV!=="production"&&c!==$n&&zt(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==$n&&typeof l[0]!="number"&&(this.mixKeyframes=jo(Ub,op(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=da(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+r,this.totalDuration=this.resolvedDuration*(o+1)-r,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:o,totalDuration:r,mixKeyframes:s,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);const{delay:u=0,keyframes:d,repeat:p,repeatType:f,repeatDelay:g,type:m,onUpdate:h,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-u*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?T<0:T>r;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let E=this.currentTime,b=o;if(p){const j=Math.min(this.currentTime,r)/l;let O=Math.floor(j),A=j%1;!A&&j>=1&&(A=1),A===1&&O--,O=Math.min(O,p+1),O%2&&(f==="reverse"?(A=1-A,g&&(A-=g/l)):f==="mirror"&&(b=a)),E=jt(0,1,A)*l}let w;C?(this.delayState.value=d[0],w=this.delayState):w=b.next(E),s&&!C&&(w.value=s(w.value));let{done:S}=w;!C&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return M&&m!==cs&&(w.value=Zr(d,this.options,x,this.speed)),h&&h(w.value),M&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return pt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pt(t)}get time(){return pt(this.currentTime)}set time(t){t=ot(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 ip(o=>this.generator.next(o).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(tt.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=pt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Rb,startTime:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),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(tt.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 Hb(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const gn=e=>e*180/Math.PI,us=e=>{const t=gn(Math.atan2(e[1],e[0]));return ds(t)},qb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:us,rotateZ:us,skewX:e=>gn(Math.atan(e[1])),skewY:e=>gn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ds=e=>(e=e%360,e<0&&(e+=360),e),Nl=us,Ll=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Fl=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Gb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ll,scaleY:Fl,scale:e=>(Ll(e)+Fl(e))/2,rotateX:e=>ds(gn(Math.atan2(e[6],e[5]))),rotateY:e=>ds(gn(Math.atan2(-e[2],e[0]))),rotateZ:Nl,rotate:Nl,skewX:e=>gn(Math.atan(e[4])),skewY:e=>gn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ps(e){return e.includes("scale")?1:0}function fs(e,t){if(!e||e==="none")return ps(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=Gb,r=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=qb,r=l}if(!r)return ps(t);const s=o[t],a=r[1].split(",").map(Kb);return typeof s=="function"?s(a):a[s]}const Yb=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return fs(n,t)};function Kb(e){return parseFloat(e.trim())}const Yn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Kn=new Set(Yn),zl=e=>e===Gn||e===ie,Xb=new Set(["x","y","z"]),Zb=Yn.filter(e=>!Xb.has(e));function Jb(e){const t=[];return Zb.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const Kt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:o})=>{const r=e.max-e.min;return o==="border-box"?r:r-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:o})=>{const r=e.max-e.min;return o==="border-box"?r:r-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})=>fs(t,"x"),y:(e,{transform:t})=>fs(t,"y")};Kt.translateX=Kt.x;Kt.translateY=Kt.y;const bn=new Set;let hs=!1,ms=!1,gs=!1;function ap(){if(ms){const e=Array.from(bn).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=Jb(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([s,a])=>{o.getValue(s)?.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}ms=!1,hs=!1,bn.forEach(e=>e.complete(gs)),bn.clear()}function lp(){bn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ms=!0)})}function Qb(){gs=!0,lp(),ap(),gs=!1}class fa{constructor(t,n,o,r,s,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=s,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(bn.add(this),hs||(hs=!0,Ve.read(lp),Ve.resolveKeyframes(ap))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;if(t[0]===null){const s=r?.get(),a=t[t.length-1];if(s!==void 0)t[0]=s;else if(o&&n){const l=o.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),r&&s===void 0&&r.set(t[0])}Hb(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),bn.delete(this)}cancel(){this.state==="scheduled"&&(bn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ex=e=>e.startsWith("--");function cp(e,t,n){ex(t)?e.style.setProperty(t,n):e.style[t]=n}const tx={};function up(e,t){const n=Vd(e);return()=>tx[t]??n()}const nx=up(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),dp=up(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),so=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,_l={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:so([0,.65,.55,1]),circOut:so([.55,0,1,.45]),backIn:so([.31,.01,.66,-.59]),backOut:so([.33,1.53,.69,.99])};function pp(e,t){if(e)return typeof e=="function"?dp()?rp(e,t):"ease-out":Yd(e)?so(e):Array.isArray(e)?e.map(n=>pp(n,t)||_l.easeOut):_l[e]}function ox(e,t,n,{delay:o=0,duration:r=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=pp(l,r);Array.isArray(p)&&(d.easing=p);const f={delay:o,duration:r,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 fp(e){return typeof e=="function"&&"applyToOptions"in e}function rx({type:e,...t}){return fp(e)&&dp()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class hp extends pa{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:o,keyframes:r,pseudoElement:s,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!s,this.allowFlatten=a,this.options=t,zt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=rx(t);this.animation=ox(n,o,r,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=Zr(r,this.options,l,this.speed);this.updateMotionValue&&this.updateMotionValue(d),cp(n,o,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 pt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+pt(t)}get time(){return pt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ot(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:o,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&nx()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),o&&(this.animation.rangeEnd=o),ft):r(this)}}const mp={anticipate:Ud,backInOut:Wd,circInOut:qd};function ix(e){return e in mp}function sx(e){typeof e.ease=="string"&&ix(e.ease)&&(e.ease=mp[e.ease])}const Ei=10;class ax extends hp{constructor(t){sx(t),sp(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:o,onComplete:r,element:s,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Sr({...a,autoplay:!1}),c=Math.max(Ei,tt.now()-this.startTime),u=jt(0,Ei,c-Ei),d=l.sample(c).value,{name:p}=this.options;s&&p&&cp(s,p,d),n.setWithVelocity(l.sample(Math.max(0,c-u)).value,d,u),l.stop()}}const Wl=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tt.test(e)||e==="0")&&!e.startsWith("url("));function lx(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 cx(e,t,n,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],a=Wl(r,t),l=Wl(s,t);return qn(a===l,`You are trying to animate ${t} from "${r}" to "${s}". "${a?s:r}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:lx(e)||(n==="spring"||fp(n))&&o}function ys(e){e.duration=0,e.type="keyframes"}const gp=new Set(["opacity","clipPath","filter","transform"]),ux=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function dx(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&ux.test(e[t]))return!0;return!1}const px=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),fx=Vd(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function hx(e){const{motionValue:t,name:n,repeatDelay:o,repeatType:r,damping:s,type:a,keyframes:l}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:d}=t.owner.getProps();return fx()&&n&&(gp.has(n)||px.has(n)&&dx(l))&&(n!=="transform"||!d)&&!u&&!o&&r!=="mirror"&&s!==0&&a!=="inertia"}const mx=40;class gx extends pa{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=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=tt.now();const f={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:s,repeatType:a,name:c,motionValue:u,element:d,...p},g=d?.KeyframeResolver||fa;this.keyframeResolver=new g(l,(m,h,x)=>this.onKeyframesResolved(m,h,f,!x),c,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,o,r){this.keyframeResolver=void 0;const{name:s,type:a,velocity:l,delay:c,isHandoff:u,onUpdate:d}=o;this.resolvedAt=tt.now();let p=!0;cx(t,s,a,l)||(p=!1,(Qt.instantAnimations||!c)&&d?.(Zr(t,o,n)),t[0]=t[t.length-1],ys(o),o.repeat=0);const g={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>mx?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},m=p&&!u&&hx(g),h=g.motionValue?.owner?.current;let x;if(m)try{x=new ax({...g,element:h})}catch{x=new Sr(g)}else x=new Sr(g);x.finished.then(()=>{this.notifyFinished()}).catch(ft),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}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(),Qb()),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 yp(e,t,n,o=0,r=1){const s=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),a=e.size,l=(a-1)*o;return typeof n=="function"?n(s,a):r===1?s*o:l-s*o}const yx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vx(e){const t=yx.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const bx=4;function vp(e,t,n=1){zt(n<=bx,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=vx(e);if(!o)return;const s=window.getComputedStyle(t).getPropertyValue(o);if(s){const a=s.trim();return Id(a)?parseFloat(a):a}return aa(r)?vp(r,t,n+1):r}const xx={type:"spring",stiffness:500,damping:25,restSpeed:10},wx=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Tx={type:"keyframes",duration:.8},Cx={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Sx=(e,{keyframes:t})=>t.length>2?Tx:Kn.has(e)?e.startsWith("scale")?wx(t[1]):xx:Cx;function bp(e,t){if(e?.inherit&&t){const{inherit:n,...o}=e;return{...t,...o}}return e}function ha(e,t){const n=e?.[t]??e?.default??e;return n!==e?bp(n,e):n}const Ex=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Px(e){for(const t in e)if(!Ex.has(t))return!0;return!1}const ma=(e,t,n,o={},r,s)=>a=>{const l=ha(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u=u-ot(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:r};Px(l)||Object.assign(d,Sx(e,d)),d.duration&&(d.duration=ot(d.duration)),d.repeatDelay&&(d.repeatDelay=ot(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(ys(d),d.delay===0&&(p=!0)),(Qt.instantAnimations||Qt.skipAnimations||r?.shouldSkipAnimations)&&(p=!0,ys(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,p&&!s&&t.get()!==void 0){const f=Zr(d.keyframes,l);if(f!==void 0){Ve.update(()=>{d.onUpdate(f),d.onComplete()});return}}return l.isSync?new Sr(d):new gx(d)};function Ul(e){const t=[{},{}];return e?.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function ga(e,t,n,o){if(typeof t=="function"){const[r,s]=Ul(o);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=Ul(o);t=t(n!==void 0?n:e.custom,r,s)}return t}function xn(e,t,n){const o=e.getProps();return ga(o,t,n!==void 0?n:o.custom,e)}const xp=new Set(["width","height","top","left","right","bottom",...Yn]),Hl=30,Rx=e=>!isNaN(parseFloat(e));class Ox{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const r=tt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),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=tt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Rx(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ra(!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 oa);const o=this.events[t].add(n);return t==="change"?()=>{o(),Ve.read(()=>{this.events.change.getSize()||this.stop()})}:o}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,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}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=tt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Hl)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Hl);return Nd(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 zn(e,t){return new Ox(e,t)}const vs=e=>Array.isArray(e);function Ax(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zn(n))}function Mx(e){return vs(e)?e[e.length-1]||0:e}function kx(e,t){const n=xn(e,t);let{transitionEnd:o={},transition:r={},...s}=n||{};s={...s,...o};for(const a in s){const l=Mx(s[a]);Ax(e,a,l)}}const Je=e=>!!(e&&e.getVelocity);function jx(e){return!!(Je(e)&&e.add)}function bs(e,t){const n=e.getValue("willChange");if(jx(n))return n.add(t);if(!n&&Qt.WillChange){const o=new Qt.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function ya(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const $x="framerAppearId",wp="data-"+ya($x);function Tp(e){return e.props[wp]}function Ix({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function Cp(e,t,{delay:n=0,transitionOverride:o,type:r}={}){let{transition:s,transitionEnd:a,...l}=t;const c=e.getDefaultTransition();s=s?bp(s,c):c;const u=s?.reduceMotion;o&&(s=o);const d=[],p=r&&e.animationState&&e.animationState.getState()[r];for(const f in l){const g=e.getValue(f,e.latestValues[f]??null),m=l[f];if(m===void 0||p&&Ix(p,f))continue;const h={delay:n,...ha(s||{},f)},x=g.get();if(x!==void 0&&!g.isAnimating()&&!Array.isArray(m)&&m===x&&!h.velocity){Ve.update(()=>g.set(m));continue}let T=!1;if(window.MotionHandoffAnimation){const b=Tp(e);if(b){const w=window.MotionHandoffAnimation(b,f,Ve);w!==null&&(h.startTime=w,T=!0)}}bs(e,f);const C=u??e.shouldReduceMotion;g.start(ma(f,g,m,C&&xp.has(f)?{type:!1}:h,e,T));const E=g.animation;E&&d.push(E)}if(a){const f=()=>Ve.update(()=>{a&&kx(e,a)});d.length?Promise.all(d).then(f):f()}return d}function xs(e,t,n={}){const o=xn(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(r=n.transitionOverride);const s=o?()=>Promise.all(Cp(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:p}=r;return Dx(e,t,c,u,d,p,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function Dx(e,t,n=0,o=0,r=0,s=1,a){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(xs(c,t,{...a,delay:n+(typeof o=="function"?0:o)+yp(e.variantChildren,c,o,r,s)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function Bx(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(s=>xs(e,s,n));o=Promise.all(r)}else if(typeof t=="string")o=xs(e,t,n);else{const r=typeof t=="function"?xn(e,t,n.custom):t;o=Promise.all(Cp(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const Vx={test:e=>e==="auto",parse:e=>e},Sp=e=>t=>t.test(e),Ep=[Gn,ie,Mt,Gt,lb,ab,Vx],ql=e=>Ep.find(Sp(e));function Nx(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Bd(e):!0}const Lx=new Set(["brightness","contrast","saturate","opacity"]);function Fx(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(la)||[];if(!o)return e;const r=n.replace(o,"");let s=Lx.has(t)?1:0;return o!==n&&(s*=100),t+"("+s+r+")"}const zx=/\b([a-z-]*)\(.*?\)/gu,ws={...Tt,getAnimatableNone:e=>{const t=e.match(zx);return t?t.map(Fx).join(" "):e}},Ts={...Tt,getAnimatableNone:e=>{const t=Tt.parse(e);return Tt.createTransformer(e)(t.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},Gl={...Gn,transform:Math.round},_x={rotate:Gt,rotateX:Gt,rotateY:Gt,rotateZ:Gt,scale:Ho,scaleX:Ho,scaleY:Ho,scaleZ:Ho,skew:Gt,skewX:Gt,skewY:Gt,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:xo,originX:$l,originY:$l,originZ:ie},va={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,top:ie,right:ie,bottom:ie,left:ie,inset:ie,insetBlock:ie,insetBlockStart:ie,insetBlockEnd:ie,insetInline:ie,insetInlineStart:ie,insetInlineEnd:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,paddingBlock:ie,paddingBlockStart:ie,paddingBlockEnd:ie,paddingInline:ie,paddingInlineStart:ie,paddingInlineEnd:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,marginBlock:ie,marginBlockStart:ie,marginBlockEnd:ie,marginInline:ie,marginInlineStart:ie,marginInlineEnd:ie,fontSize:ie,backgroundPositionX:ie,backgroundPositionY:ie,..._x,zIndex:Gl,fillOpacity:xo,strokeOpacity:xo,numOctaves:Gl},Wx={...va,color:Ye,backgroundColor:Ye,outlineColor:Ye,fill:Ye,stroke:Ye,borderColor:Ye,borderTopColor:Ye,borderRightColor:Ye,borderBottomColor:Ye,borderLeftColor:Ye,filter:ws,WebkitFilter:ws,mask:Ts,WebkitMask:Ts},Pp=e=>Wx[e],Ux=new Set([ws,Ts]);function Rp(e,t){let n=Pp(e);return Ux.has(n)||(n=Tt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Hx=new Set(["auto","none","0"]);function qx(e,t,n){let o=0,r;for(;o<e.length&&!r;){const s=e[o];typeof s=="string"&&!Hx.has(s)&&Fn(s).values.length&&(r=e[o]),o++}if(r&&n)for(const s of t)e[s]=Rp(n,r)}class Gx extends fa{constructor(t,n,o,r,s){super(t,n,o,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=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(),aa(p))){const f=vp(p,n.current);f!==void 0&&(t[d]=f),d===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!xp.has(o)||t.length!==2)return;const[r,s]=t,a=ql(r),l=ql(s),c=jl(r),u=jl(s);if(c!==u&&Kt[o]){this.needsMeasurement=!0;return}if(a!==l)if(zl(a)&&zl(l))for(let d=0;d<t.length;d++){const p=t[d];typeof p=="string"&&(t[d]=parseFloat(p))}else Kt[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||Nx(t[r]))&&o.push(r);o.length&&qx(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kt[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const s=o.length-1,a=o[s];o[s]=Kt[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 ba(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const r=document.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(o=>o!=null)}const Op=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Yx(e){return Dd(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:xa}=Kd(queueMicrotask,!1),wt={x:!1,y:!1};function Ap(){return wt.x||wt.y}function Kx(e){return e==="x"||e==="y"?wt[e]?null:(wt[e]=!0,()=>{wt[e]=!1}):wt.x||wt.y?null:(wt.x=wt.y=!0,()=>{wt.x=wt.y=!1})}function Mp(e,t){const n=ba(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function Xx(e){return!(e.pointerType==="touch"||Ap())}function Zx(e,t,n={}){const[o,r,s]=Mp(e,n);return o.forEach(a=>{let l=!1,c=!1,u;const d=()=>{a.removeEventListener("pointerleave",m)},p=x=>{u&&(u(x),u=void 0),d()},f=x=>{l=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,p(x))},g=()=>{l=!0,window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",f,r)},m=x=>{if(x.pointerType!=="touch"){if(l){c=!0;return}p(x)}},h=x=>{if(!Xx(x))return;c=!1;const T=t(a,x);typeof T=="function"&&(u=T,a.addEventListener("pointerleave",m,r))};a.addEventListener("pointerenter",h,r),a.addEventListener("pointerdown",g,r)}),s}const kp=(e,t)=>t?e===t?!0:kp(e,t.parentElement):!1,wa=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Jx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Qx(e){return Jx.has(e.tagName)||e.isContentEditable===!0}const e1=new Set(["INPUT","SELECT","TEXTAREA"]);function t1(e){return e1.has(e.tagName)||e.isContentEditable===!0}const or=new WeakSet;function Yl(e){return t=>{t.key==="Enter"&&e(t)}}function Pi(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const n1=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=Yl(()=>{if(or.has(n))return;Pi(n,"down");const r=Yl(()=>{Pi(n,"up")}),s=()=>Pi(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function Kl(e){return wa(e)&&!Ap()}const Xl=new WeakSet;function o1(e,t,n={}){const[o,r,s]=Mp(e,n),a=l=>{const c=l.currentTarget;if(!Kl(l)||Xl.has(l))return;or.add(c),n.stopPropagation&&Xl.add(l);const u=t(c,l),d=(g,m)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",f),or.has(c)&&or.delete(c),Kl(g)&&typeof u=="function"&&u(g,{success:m})},p=g=>{d(g,c===window||c===document||n.useGlobalTarget||kp(c,g.target))},f=g=>{d(g,!1)};window.addEventListener("pointerup",p,r),window.addEventListener("pointercancel",f,r)};return o.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,r),Yx(l)&&(l.addEventListener("focus",u=>n1(u,r)),!Qx(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),s}function Ta(e){return Dd(e)&&"ownerSVGElement"in e}const rr=new WeakMap;let ir;const jp=(e,t,n)=>(o,r)=>r&&r[0]?r[0][e+"Size"]:Ta(o)&&"getBBox"in o?o.getBBox()[t]:o[n],r1=jp("inline","width","offsetWidth"),i1=jp("block","height","offsetHeight");function s1({target:e,borderBoxSize:t}){rr.get(e)?.forEach(n=>{n(e,{get width(){return r1(e,t)},get height(){return i1(e,t)}})})}function a1(e){e.forEach(s1)}function l1(){typeof ResizeObserver>"u"||(ir=new ResizeObserver(a1))}function c1(e,t){ir||l1();const n=ba(e);return n.forEach(o=>{let r=rr.get(o);r||(r=new Set,rr.set(o,r)),r.add(t),ir?.observe(o)}),()=>{n.forEach(o=>{const r=rr.get(o);r?.delete(t),r?.size||ir?.unobserve(o)})}}const sr=new Set;let In;function u1(){In=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};sr.forEach(t=>t(e))},window.addEventListener("resize",In)}function d1(e){return sr.add(e),In||u1(),()=>{sr.delete(e),!sr.size&&typeof In=="function"&&(window.removeEventListener("resize",In),In=void 0)}}function Zl(e,t){return typeof e=="function"?d1(e):c1(e,t)}function p1(e){return Ta(e)&&e.tagName==="svg"}const f1=[...Ep,Ye,Tt],h1=e=>f1.find(Sp(e)),Jl=()=>({translate:0,scale:1,origin:0,originPoint:0}),Dn=()=>({x:Jl(),y:Jl()}),Ql=()=>({min:0,max:0}),Xe=()=>({x:Ql(),y:Ql()}),m1=new WeakMap;function Jr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function wo(e){return typeof e=="string"||Array.isArray(e)}const Ca=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sa=["initial",...Ca];function Qr(e){return Jr(e.animate)||Sa.some(t=>wo(e[t]))}function $p(e){return!!(Qr(e)||e.variants)}function g1(e,t,n){for(const o in t){const r=t[o],s=n[o];if(Je(r))e.addValue(o,r);else if(Je(s))e.addValue(o,zn(r,{owner:e}));else if(s!==r)if(e.hasValue(o)){const a=e.getValue(o);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(o);e.addValue(o,zn(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Cs={current:null},Ip={current:!1},y1=typeof window<"u";function v1(){if(Ip.current=!0,!!y1)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Cs.current=e.matches;e.addEventListener("change",t),t()}else Cs.current=!1}const ec=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Er={};function Dp(e){Er=e}function b1(){return Er}class x1{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,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=fa,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 g=tt.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Ve.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=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=s,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=Qr(n),this.isVariantNode=$p(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in f){const m=f[g];u[g]!==void 0&&Je(m)&&m.set(u[g])}}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,m1.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,o)=>this.bindToMotionValue(o,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Ip.current||v1(),this.shouldReduceMotion=Cs.current),process.env.NODE_ENV!=="production"&&ra(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(),en(this.notifyUpdate),en(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&&gp.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:l,times:c,ease:u,duration:d}=n.accelerate,p=new hp({element:this.current,name:t,keyframes:l,times:c,ease:u,duration:ot(d)}),f=a(p);this.valueSubscriptions.set(t,()=>{f(),p.cancel()});return}const o=Kn.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ve.preRender(this.notifyUpdate),o&&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,()=>{r(),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 Er){const n=Er[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(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):Xe()}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 o=0;o<ec.length;o++){const r=ec[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const s="on"+r,a=t[s];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=g1(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 o=this.values.get(t);n!==o&&(o&&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 o=this.values.get(t);return o===void 0&&n!==void 0&&(o=zn(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Id(o)||Bd(o))?o=parseFloat(o):!h1(o)&&Tt.test(n)&&(o=Rp(t,n)),this.setBaseTarget(t,Je(o)?o.get():o)),Je(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const s=ga(this.props,n,this.presenceContext?.custom);s&&(o=s[t])}if(n&&o!==void 0)return o;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!Je(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new oa),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){xa.render(this.render)}}class Bp extends x1{constructor(){super(...arguments),this.KeyframeResolver=Gx}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const o=t.style;return o?o[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Je(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class on{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Vp({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function w1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function T1(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function Ri(e){return e===void 0||e===1}function Ss({scale:e,scaleX:t,scaleY:n}){return!Ri(e)||!Ri(t)||!Ri(n)}function dn(e){return Ss(e)||Np(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Np(e){return tc(e.x)||tc(e.y)}function tc(e){return e&&e!=="0%"}function Pr(e,t,n){const o=e-n,r=t*o;return n+r}function nc(e,t,n,o,r){return r!==void 0&&(e=Pr(e,r,o)),Pr(e,n,o)+t}function Es(e,t=0,n=1,o,r){e.min=nc(e.min,t,n,o,r),e.max=nc(e.max,t,n,o,r)}function Lp(e,{x:t,y:n}){Es(e.x,t.translate,t.scale,t.originPoint),Es(e.y,n.translate,n.scale,n.originPoint)}const oc=.999999999999,rc=1.0000000000001;function C1(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let s,a;for(let l=0;l<r;l++){s=n[l],a=s.projectionDelta;const{visualElement:c}=s.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(Ot(e.x,-s.scroll.offset.x),Ot(e.y,-s.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Lp(e,a)),o&&dn(s.latestValues)&&ar(e,s.latestValues,s.layout?.layoutBox))}t.x<rc&&t.x>oc&&(t.x=1),t.y<rc&&t.y>oc&&(t.y=1)}function Ot(e,t){e.min+=t,e.max+=t}function ic(e,t,n,o,r=.5){const s=Fe(e.min,e.max,r);Es(e,t,n,s,o)}function sc(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function ar(e,t,n){const o=n??e;ic(e.x,sc(t.x,o.x),t.scaleX,t.scale,t.originX),ic(e.y,sc(t.y,o.y),t.scaleY,t.scale,t.originY)}function Fp(e,t){return Vp(T1(e.getBoundingClientRect(),t))}function S1(e,t,n){const o=Fp(e,n),{scroll:r}=t;return r&&(Ot(o.x,r.offset.x),Ot(o.y,r.offset.y)),o}const E1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},P1=Yn.length;function R1(e,t,n){let o="",r=!0;for(let s=0;s<P1;s++){const a=Yn[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=Op(l,va[a]);if(!c){r=!1;const d=E1[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function Ea(e,t,n){const{style:o,vars:r,transformOrigin:s}=e;let a=!1,l=!1;for(const c in t){const u=t[c];if(Kn.has(c)){a=!0;continue}else if(Zd(c)){r[c]=u;continue}else{const d=Op(u,va[c]);c.startsWith("origin")?(l=!0,s[c]=d):o[c]=d}}if(t.transform||(a||n?o.transform=R1(t,e.transform,n):o.transform&&(o.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=s;o.transformOrigin=`${c} ${u} ${d}`}}function zp(e,{style:t,vars:n},o,r){const s=e.style;let a;for(a in t)s[a]=t[a];r?.applyProjectionStyles(s,o);for(a in n)s.setProperty(a,n[a])}function ac(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const eo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ie.test(e))e=parseFloat(e);else return e;const n=ac(e,t.target.x),o=ac(e,t.target.y);return`${n}% ${o}%`}},O1={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=Tt.parse(e);if(r.length>5)return o;const s=Tt.createTransformer(e),a=typeof r[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;r[0+a]/=l,r[1+a]/=c;const u=Fe(l,c,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),s(r)}},Ps={borderRadius:{...eo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eo,borderTopRightRadius:eo,borderBottomLeftRadius:eo,borderBottomRightRadius:eo,boxShadow:O1};function _p(e,{layout:t,layoutId:n}){return Kn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ps[e]||e==="opacity")}function Pa(e,t,n){const o=e.style,r=t?.style,s={};if(!o)return s;for(const a in o)(Je(o[a])||r&&Je(r[a])||_p(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(s[a]=o[a]);return s}function A1(e){return window.getComputedStyle(e)}class M1 extends Bp{constructor(){super(...arguments),this.type="html",this.renderInstance=zp}readValueFromInstance(t,n){if(Kn.has(n))return this.projection?.isProjecting?ps(n):Yb(t,n);{const o=A1(t),r=(Zd(n)?o.getPropertyValue(n):o[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Fp(t,n)}build(t,n,o){Ea(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return Pa(t,n,o)}}const k1={offset:"stroke-dashoffset",array:"stroke-dasharray"},j1={offset:"strokeDashoffset",array:"strokeDasharray"};function $1(e,t,n=1,o=0,r=!0){e.pathLength=1;const s=r?k1:j1;e[s.offset]=`${-o}`,e[s.array]=`${t} ${n}`}const I1=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Wp(e,{attrX:t,attrY:n,attrScale:o,pathLength:r,pathSpacing:s=1,pathOffset:a=0,...l},c,u,d){if(Ea(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 g of I1)p[g]!==void 0&&(f[g]=p[g],delete p[g]);t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),o!==void 0&&(p.scale=o),r!==void 0&&$1(p,r,s,a,!1)}const Up=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"]),Hp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function D1(e,t,n,o){zp(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Up.has(r)?r:ya(r),t.attrs[r])}function qp(e,t,n){const o=Pa(e,t,n);for(const r in e)if(Je(e[r])||Je(t[r])){const s=Yn.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[s]=e[r]}return o}class B1 extends Bp{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Xe}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Kn.has(n)){const o=Pp(n);return o&&o.default||0}return n=Up.has(n)?n:ya(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return qp(t,n,o)}build(t,n,o){Wp(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,r){D1(t,n,o,r)}mount(t){this.isSVGTag=Hp(t.tagName),super.mount(t)}}const V1=Sa.length;function Gp(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Gp(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<V1;n++){const o=Sa[n],r=e.props[o];(wo(r)||r===!1)&&(t[o]=r)}return t}function Yp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const N1=[...Ca].reverse(),L1=Ca.length;function F1(e){return t=>Promise.all(t.map(({animation:n,options:o})=>Bx(e,n,o)))}function z1(e){let t=F1(e),n=lc(),o=!0,r=!1;const s=u=>(d,p)=>{const f=xn(e,p,u==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:g,transitionEnd:m,...h}=f;d={...d,...h,...m}}return d};function a(u){t=u(e)}function l(u){const{props:d}=e,p=Gp(e.parent)||{},f=[],g=new Set;let m={},h=1/0;for(let T=0;T<L1;T++){const C=N1[T],E=n[C],b=d[C]!==void 0?d[C]:p[C],w=wo(b),S=C===u?E.isActive:null;S===!1&&(h=T);let M=b===p[C]&&b!==d[C]&&w;if(M&&(o||r)&&e.manuallyAnimateOnMount&&(M=!1),E.protectedKeys={...m},!E.isActive&&S===null||!b&&!E.prevProp||Jr(b)||typeof b=="boolean")continue;if(C==="exit"&&E.isActive&&S!==!0){E.prevResolvedValues&&(m={...m,...E.prevResolvedValues});continue}const j=_1(E.prevProp,b);let O=j||C===u&&E.isActive&&!M&&w||T>h&&w,A=!1;const I=Array.isArray(b)?b:[b];let v=I.reduce(s(C),{});S===!1&&(v={});const{prevResolvedValues:D={}}=E,k={...D,...v},V=B=>{O=!0,g.has(B)&&(A=!0,g.delete(B)),E.needsAnimating[B]=!0;const _=e.getValue(B);_&&(_.liveStyle=!1)};for(const B in k){const _=v[B],P=D[B];if(m.hasOwnProperty(B))continue;let L=!1;vs(_)&&vs(P)?L=!Yp(_,P):L=_!==P,L?_!=null?V(B):g.add(B):_!==void 0&&g.has(B)?V(B):E.protectedKeys[B]=!0}E.prevProp=b,E.prevResolvedValues=v,E.isActive&&(m={...m,...v}),(o||r)&&e.blockInitialAnimation&&(O=!1);const $=M&&j;O&&(!$||A)&&f.push(...I.map(B=>{const _={type:C};if(typeof B=="string"&&(o||r)&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:P}=e,L=xn(P,B);if(P.enteringChildren&&L){const{delayChildren:H}=L.transition||{};_.delay=yp(P.enteringChildren,e,H)}}return{animation:B,options:_}}))}if(g.size){const T={};if(typeof d.initial!="boolean"){const C=xn(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(T.transition=C.transition)}g.forEach(C=>{const E=e.getBaseTarget(C),b=e.getValue(C);b&&(b.liveStyle=!0),T[C]=E??null}),f.push({animation:T})}let x=!!f.length;return o&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),o=!1,r=!1,x?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=lc(),r=!0}}}function _1(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Yp(t,e):!1}function ln(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lc(){return{animate:ln(!0),whileInView:ln(),whileHover:ln(),whileTap:ln(),whileDrag:ln(),whileFocus:ln(),exit:ln()}}function Rs(e,t){e.min=t.min,e.max=t.max}function xt(e,t){Rs(e.x,t.x),Rs(e.y,t.y)}function cc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Kp=1e-4,W1=1-Kp,U1=1+Kp,Xp=.01,H1=0-Xp,q1=0+Xp;function nt(e){return e.max-e.min}function G1(e,t,n){return Math.abs(e-t)<=n}function uc(e,t,n,o=.5){e.origin=o,e.originPoint=Fe(t.min,t.max,e.origin),e.scale=nt(n)/nt(t),e.translate=Fe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=W1&&e.scale<=U1||isNaN(e.scale))&&(e.scale=1),(e.translate>=H1&&e.translate<=q1||isNaN(e.translate))&&(e.translate=0)}function po(e,t,n,o){uc(e.x,t.x,n.x,o?o.originX:void 0),uc(e.y,t.y,n.y,o?o.originY:void 0)}function dc(e,t,n,o=0){const r=o?Fe(n.min,n.max,o):n.min;e.min=r+t.min,e.max=e.min+nt(t)}function Y1(e,t,n,o){dc(e.x,t.x,n.x,o?.x),dc(e.y,t.y,n.y,o?.y)}function pc(e,t,n,o=0){const r=o?Fe(n.min,n.max,o):n.min;e.min=t.min-r,e.max=e.min+nt(t)}function Rr(e,t,n,o){pc(e.x,t.x,n.x,o?.x),pc(e.y,t.y,n.y,o?.y)}function fc(e,t,n,o,r){return e-=t,e=Pr(e,1/n,o),r!==void 0&&(e=Pr(e,1/r,o)),e}function K1(e,t=0,n=1,o=.5,r,s=e,a=e){if(Mt.test(t)&&(t=parseFloat(t),t=Fe(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=Fe(s.min,s.max,o);e===s&&(l-=t),e.min=fc(e.min,t,n,l,r),e.max=fc(e.max,t,n,l,r)}function hc(e,t,[n,o,r],s,a){K1(e,t[n],t[o],t[r],t.scale,s,a)}const X1=["x","scaleX","originX"],Z1=["y","scaleY","originY"];function mc(e,t,n,o){hc(e.x,t,X1,n?n.x:void 0,o?o.x:void 0),hc(e.y,t,Z1,n?n.y:void 0,o?o.y:void 0)}function gc(e){return e.translate===0&&e.scale===1}function Zp(e){return gc(e.x)&&gc(e.y)}function yc(e,t){return e.min===t.min&&e.max===t.max}function J1(e,t){return yc(e.x,t.x)&&yc(e.y,t.y)}function vc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Jp(e,t){return vc(e.x,t.x)&&vc(e.y,t.y)}function bc(e){return nt(e.x)/nt(e.y)}function xc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Rt(e){return[e("x"),e("y")]}function Q1(e,t,n){let o="";const r=e.x.translate/t.x,s=e.y.translate/t.y,a=n?.z||0;if((r||s||a)&&(o=`translate3d(${r}px, ${s}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:p,rotateY:f,skewX:g,skewY:m}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),p&&(o+=`rotateX(${p}deg) `),f&&(o+=`rotateY(${f}deg) `),g&&(o+=`skewX(${g}deg) `),m&&(o+=`skewY(${m}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(o+=`scale(${l}, ${c})`),o||"none"}const Qp=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],ew=Qp.length,wc=e=>typeof e=="string"?parseFloat(e):e,Tc=e=>typeof e=="number"||ie.test(e);function tw(e,t,n,o,r,s){r?(e.opacity=Fe(0,n.opacity??1,nw(o)),e.opacityExit=Fe(t.opacity??1,0,ow(o))):s&&(e.opacity=Fe(t.opacity??1,n.opacity??1,o));for(let a=0;a<ew;a++){const l=Qp[a];let c=Cc(t,l),u=Cc(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Tc(c)===Tc(u)?(e[l]=Math.max(Fe(wc(c),wc(u),o),0),(Mt.test(u)||Mt.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=Fe(t.rotate||0,n.rotate||0,o))}function Cc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const nw=ef(0,.5,Hd),ow=ef(.5,.95,ft);function ef(e,t,n){return o=>o<e?0:o>t?1:n(bo(e,t,o))}function rw(e,t,n){const o=Je(e)?e:zn(e);return o.start(ma("",o,t,n)),o.animation}function To(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const iw=(e,t)=>e.depth-t.depth;class sw{constructor(){this.children=[],this.isDirty=!1}add(t){na(this.children,t),this.isDirty=!0}remove(t){xr(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iw),this.isDirty=!1,this.children.forEach(t)}}function aw(e,t){const n=tt.now(),o=({timestamp:r})=>{const s=r-n;s>=t&&(en(o),e(s-t))};return Ve.setup(o,!0),()=>en(o)}function lr(e){return Je(e)?e.get():e}class lw{constructor(){this.members=[]}add(t){na(this.members,t);for(let n=this.members.length-1;n>=0;n--){const o=this.members[n];if(o===t||o===this.lead||o===this.prevLead)continue;const r=o.instance;(!r||r.isConnected===!1)&&!o.snapshot&&(xr(this.members,o),o.unmount())}t.scheduleRender()}remove(t){if(xr(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 o=this.members[n];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.updateSnapshot(),t.scheduleRender();const{layoutDependency:r}=o.options,{layoutDependency:s}=t.options;(r===void 0||r!==s)&&(t.resumeFrom=o,n&&(o.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&o.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 cr={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Oi=["","X","Y","Z"],cw=1e3;let uw=0;function Ai(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function tf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Tp(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ve,!(r||s))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&tf(o)}function nf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},l=t?.()){this.id=uw++,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(fw),this.nodes.forEach(bw),this.nodes.forEach(xw),this.nodes.forEach(hw)},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 sw)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new oa),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=Ta(a)&&!p1(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;Ve.read(()=>{p=window.innerWidth}),e(a,()=>{const g=window.innerWidth;g!==p&&(p=g,this.root.updateBlockedByResize=!0,d&&d(),d=aw(f,250),cr.hasAnimatedSinceResize&&(cr.hasAnimatedSinceResize=!1,this.nodes.forEach(Pc)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeLayoutChanged:f,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Ew,{onLayoutAnimationStart:h,onLayoutAnimationComplete:x}=u.getProps(),T=!this.targetLayout||!Jp(this.targetLayout,g),C=!p&&f;if(this.options.layoutRoot||this.resumeFrom||C||p&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...ha(m,"layout"),onPlay:h,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(d,C)}else p||Pc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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(),en(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(ww),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&&tf(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(gw),this.nodes.forEach(Sc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ec);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(yw),this.nodes.forEach(vw),this.nodes.forEach(dw),this.nodes.forEach(pw)):this.nodes.forEach(Ec),this.clearAllSnapshots();const l=tt.now();Ze.delta=jt(0,1e3/60,l-Ze.timestamp),Ze.timestamp=l,Ze.isProcessing=!0,xi.update.process(Ze),xi.preRender.process(Ze),xi.render.process(Ze),Ze.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xa.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(mw),this.sharedNodes.forEach(Tw)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ve.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ve.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!nt(this.snapshot.measuredBox.x)&&!nt(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=Xe()),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=o(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(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Zp(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||dn(this.latestValues)||d)&&(r(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)),Pw(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Xe();const l=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Rw))){const{scroll:u}=this.root;u&&(Ot(l.x,u.offset.x),Ot(l.y,u.offset.y))}return l}removeElementScroll(a){const l=Xe();if(xt(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&&xt(l,a),Ot(l.x,d.offset.x),Ot(l.y,d.offset.y))}return l}applyTransform(a,l=!1,c){const u=c||Xe();xt(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&&(Ot(u.x,-p.scroll.offset.x),Ot(u.y,-p.scroll.offset.y)),dn(p.latestValues)&&ar(u,p.latestValues,p.layout?.layoutBox)}return dn(this.latestValues)&&ar(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(a){const l=Xe();xt(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!dn(u.latestValues))continue;let d;u.instance&&(Ss(u.latestValues)&&u.updateSnapshot(),d=Xe(),xt(d,u.measurePageBox())),mc(l,u.latestValues,u.snapshot?.layoutBox,d)}return dn(this.latestValues)&&mc(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!==Ze.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=Ze.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=Xe(),this.targetWithTransforms=Xe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Y1(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):xt(this.target,this.layout.layoutBox),Lp(this.target,this.targetDelta)):xt(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||Ss(this.parent.latestValues)||Np(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=Xe(),this.relativeTargetOrigin=Xe(),Rr(this.relativeTargetOrigin,l,c,this.options.layoutAnchor||void 0),xt(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===Ze.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;xt(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,f=this.treeScale.y;C1(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=Xe());const{target:g}=a;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cc(this.prevProjectionDelta.x,this.projectionDelta.x),cc(this.prevProjectionDelta.y,this.projectionDelta.y)),po(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==f||!xc(this.projectionDelta.x,this.prevProjectionDelta.x)||!xc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}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=Dn(),this.projectionDelta=Dn(),this.projectionDeltaWithTransform=Dn()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},p=Dn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const f=Xe(),g=c?c.source:void 0,m=this.layout?this.layout.source:void 0,h=g!==m,x=this.getStack(),T=!x||x.members.length<=1,C=!!(h&&!T&&this.options.crossfade===!0&&!this.path.some(Sw));this.animationProgress=0;let E;this.mixTargetDelta=b=>{const w=b/1e3;Rc(p.x,a.x,w),Rc(p.y,a.y,w),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Cw(this.relativeTarget,this.relativeTargetOrigin,f,w),E&&J1(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=Xe()),xt(E,this.relativeTarget)),h&&(this.animationValues=d,tw(d,u,this.latestValues,w,C,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(en(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ve.update(()=>{cr.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zn(0)),this.motionValue.jump(0,!1),this.currentAnimation=rw(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(cw),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&&of(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Xe();const p=nt(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+p;const f=nt(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+f}xt(l,c),ar(l,d),po(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new lw),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&&Ai("z",a,u,this.animationValues);for(let d=0;d<Oi.length;d++)Ai(`rotate${Oi[d]}`,a,u,this.animationValues),Ai(`skew${Oi[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=lr(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=lr(l?.pointerEvents)||""),this.hasProjected&&!dn(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let p=Q1(this.projectionDeltaWithTransform,this.treeScale,d);c&&(p=c(d,p)),a.transform=p;const{x:f,y:g}=this.projectionDelta;a.transformOrigin=`${f.origin*100}% ${g.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 m in Ps){if(d[m]===void 0)continue;const{correct:h,applyTo:x,isCSSVariable:T}=Ps[m],C=p==="none"?d[m]:h(d[m],u);if(x){const E=x.length;for(let b=0;b<E;b++)a[x[b]]=C}else T?this.options.visualElement.renderState.vars[m]=C:a[m]=C}this.options.layoutId&&(a.pointerEvents=u===this?lr(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(Sc),this.root.sharedNodes.clear()}}}function dw(e){e.updateLayout()}function pw(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:r}=e.options,s=t.source!==e.layout.source;if(r==="size")Rt(d=>{const p=s?t.measuredBox[d]:t.layoutBox[d],f=nt(p);p.min=n[d].min,p.max=p.min+f});else if(r==="x"||r==="y"){const d=r==="x"?"y":"x";Rs(s?t.measuredBox[d]:t.layoutBox[d],n[d])}else of(r,t.layoutBox,n)&&Rt(d=>{const p=s?t.measuredBox[d]:t.layoutBox[d],f=nt(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=Dn();po(a,n,t.layoutBox);const l=Dn();s?po(l,e.applyTransform(o,!0),t.measuredBox):po(l,n,t.layoutBox);const c=!Zp(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 g=e.options.layoutAnchor||void 0,m=Xe();Rr(m,t.layoutBox,p.layoutBox,g);const h=Xe();Rr(h,n,f.layoutBox,g),Jp(m,h)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=m,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 fw(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 hw(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mw(e){e.clearSnapshot()}function Sc(e){e.clearMeasurements()}function gw(e){e.isLayoutDirty=!0,e.updateLayout()}function Ec(e){e.isLayoutDirty=!1}function yw(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function vw(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Pc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function bw(e){e.resolveTargetDelta()}function xw(e){e.calcProjection()}function ww(e){e.resetSkewAndRotation()}function Tw(e){e.removeLeadSnapshot()}function Rc(e,t,n){e.translate=Fe(t.translate,0,n),e.scale=Fe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Oc(e,t,n,o){e.min=Fe(t.min,n.min,o),e.max=Fe(t.max,n.max,o)}function Cw(e,t,n,o){Oc(e.x,t.x,n.x,o),Oc(e.y,t.y,n.y,o)}function Sw(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ew={duration:.45,ease:[.4,0,.1,1]},Ac=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Mc=Ac("applewebkit/")&&!Ac("chrome/")?Math.round:ft;function kc(e){e.min=Mc(e.min),e.max=Mc(e.max)}function Pw(e){kc(e.x),kc(e.y)}function of(e,t,n){return e==="position"||e==="preserve-aspect"&&!G1(bc(t),bc(n),.2)}function Rw(e){return e!==e.root&&e.scroll?.wasRoot}const Ow=nf({attachResizeListener:(e,t)=>To(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Mi={current:void 0},rf=nf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Mi.current){const e=new Ow({});e.mount(window),e.setOptions({layoutScroll:!0}),Mi.current=e}return Mi.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sf=N.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Aw(e=!0){const t=N.useContext(ta);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,s=N.useId();N.useEffect(()=>{if(e)return r(s)},[e]);const a=N.useCallback(()=>e&&o&&o(s),[s,o,e]);return!n&&o?[!1,a]:[!0]}const af=N.createContext({strict:!1}),jc={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 $c=!1;function Mw(){if($c)return;const e={};for(const t in jc)e[t]={isEnabled:n=>jc[t].some(o=>!!n[o])};Dp(e),$c=!0}function lf(){return Mw(),b1()}function kw(e){const t=lf();for(const n in e)t[n]={...t[n],...e[n]};Dp(t)}const jw=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 Or(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jw.has(e)}let cf=e=>!Or(e);function $w(e){typeof e=="function"&&(cf=t=>t.startsWith("on")?!Or(t):e(t))}try{$w(require("@emotion/is-prop-valid").default)}catch{}function Iw(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||Je(e[r])||(cf(r)||n===!0&&Or(r)||!t&&!Or(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const ei=N.createContext({});function Dw(e,t){if(Qr(e)){const{initial:n,animate:o}=e;return{initial:n===!1||wo(n)?n:void 0,animate:wo(o)?o:void 0}}return e.inherit!==!1?t:{}}function Bw(e){const{initial:t,animate:n}=Dw(e,N.useContext(ei));return N.useMemo(()=>({initial:t,animate:n}),[Ic(t),Ic(n)])}function Ic(e){return Array.isArray(e)?e.join(" "):e}const Ra=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function uf(e,t,n){for(const o in t)!Je(t[o])&&!_p(o,n)&&(e[o]=t[o])}function Vw({transformTemplate:e},t){return N.useMemo(()=>{const n=Ra();return Ea(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Nw(e,t){const n=e.style||{},o={};return uf(o,n,e),Object.assign(o,Vw(e,t)),o}function Lw(e,t){const n={},o=Nw(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.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=o,n}const df=()=>({...Ra(),attrs:{}});function Fw(e,t,n,o){const r=N.useMemo(()=>{const s=df();return Wp(s,t,Hp(o),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};uf(s,e.style,e),r.style={...s,...r.style}}return r}const zw=["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 Oa(e){return typeof e!="string"||e.includes("-")?!1:!!(zw.indexOf(e)>-1||/[A-Z]/u.test(e))}function _w(e,t,n,{latestValues:o},r,s=!1,a){const c=(a??Oa(e)?Fw:Lw)(t,o,r,e),u=Iw(t,typeof e=="string",s),d=e!==N.Fragment?{...u,...c,ref:n}:{},{children:p}=t,f=N.useMemo(()=>Je(p)?p.get():p,[p]);return N.createElement(e,{...d,children:f})}function Ww({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:Uw(n,o,r,e),renderState:t()}}function Uw(e,t,n,o){const r={},s=o(e,{});for(const f in s)r[f]=lr(s[f]);let{initial:a,animate:l}=e;const c=Qr(e),u=$p(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"&&!Jr(p)){const f=Array.isArray(p)?p:[p];for(let g=0;g<f.length;g++){const m=ga(e,f[g]);if(m){const{transitionEnd:h,transition:x,...T}=m;for(const C in T){let E=T[C];if(Array.isArray(E)){const b=d?E.length-1:0;E=E[b]}E!==null&&(r[C]=E)}for(const C in h)r[C]=h[C]}}}return r}const pf=e=>(t,n)=>{const o=N.useContext(ei),r=N.useContext(ta),s=()=>Ww(e,t,o,r);return n?s():z0(s)},Hw=pf({scrapeMotionValuesFromProps:Pa,createRenderState:Ra}),qw=pf({scrapeMotionValuesFromProps:qp,createRenderState:df}),Gw=Symbol.for("motionComponentSymbol");function Yw(e,t,n){const o=N.useRef(n);N.useInsertionEffect(()=>{o.current=n});const r=N.useRef(null);return N.useCallback(s=>{s&&e.onMount?.(s);const a=o.current;if(typeof a=="function")if(s){const l=a(s);typeof l=="function"&&(r.current=l)}else r.current?(r.current(),r.current=null):a(s);else a&&(a.current=s);t&&(s?t.mount(s):t.unmount())},[t])}const ff=N.createContext({});function Mn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Kw(e,t,n,o,r,s){const{visualElement:a}=N.useContext(ei),l=N.useContext(af),c=N.useContext(ta),u=N.useContext(sf),d=u.reducedMotion,p=u.skipAnimations,f=N.useRef(null),g=N.useRef(!1);o=o||l.renderer,!f.current&&o&&(f.current=o(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:p,isSVG:s}),g.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const m=f.current,h=N.useContext(ff);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&Xw(f.current,n,r,h);const x=N.useRef(!1);N.useInsertionEffect(()=>{m&&x.current&&m.update(n,c)});const T=n[wp],C=N.useRef(!!T&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return W0(()=>{g.current=!0,m&&(x.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),C.current&&m.animationState&&m.animationState.animateChanges())}),N.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),C.current=!1),m.enteringChildren=void 0)}),m}function Xw(e,t,n,o){const{layoutId:r,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:hf(e.parent)),e.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!a||l&&Mn(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:o,crossfade:p,layoutScroll:c,layoutRoot:u,layoutAnchor:d})}function hf(e){if(e)return e.options.allowProjection!==!1?e.projection:hf(e.parent)}function ki(e,{forwardMotionProps:t=!1,type:n}={},o,r){o&&kw(o);const s=n?n==="svg":Oa(e),a=s?qw:Hw;function l(u,d){let p;const f={...N.useContext(sf),...u,layoutId:Zw(u)},{isStatic:g}=f,m=Bw(u),h=a(u,g);if(!g&&typeof window<"u"){Jw(f,o);const x=Qw(f);p=x.MeasureLayout,m.visualElement=Kw(e,h,f,r,x.ProjectionNode,s)}return y.jsxs(ei.Provider,{value:m,children:[p&&m.visualElement?y.jsx(p,{visualElement:m.visualElement,...f}):null,_w(e,u,Yw(h,m.visualElement,d),h,g,t,s)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=N.forwardRef(l);return c[Gw]=e,c}function Zw({layoutId:e}){const t=N.useContext($d).id;return t&&e!==void 0?t+"-"+e:e}function Jw(e,t){const n=N.useContext(af).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?qn(!1,o,"lazy-strict-mode"):zt(!1,o,"lazy-strict-mode")}}function Qw(e){const t=lf(),{drag:n,layout:o}=t;if(!n&&!o)return{};const r={...n,...o};return{MeasureLayout:n?.isEnabled(e)||o?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function eT(e,t){if(typeof Proxy>"u")return ki;const n=new Map,o=(s,a)=>ki(s,a,e,t),r=(s,a)=>(process.env.NODE_ENV!=="production"&&ra(!1,"motion() is deprecated. Use motion.create() instead."),o(s,a));return new Proxy(r,{get:(s,a)=>a==="create"?o:(n.has(a)||n.set(a,ki(a,void 0,e,t)),n.get(a))})}const tT=(e,t)=>t.isSVG??Oa(e)?new B1(t):new M1(t,{allowProjection:e!==N.Fragment});class nT extends on{constructor(t){super(t),t.animationState||(t.animationState=z1(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jr(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 oT=0;class rT extends on{constructor(){super(...arguments),this.id=oT++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;if(t&&o===!1){if(this.isExitComplete){const{initial:s,custom:a}=this.node.getProps();if(typeof s=="string"){const l=xn(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 r=this.node.animationState.setActive("exit",!t);n&&!t&&r.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 iT={animation:{Feature:nT},exit:{Feature:rT}};function Do(e){return{point:{x:e.pageX,y:e.pageY}}}const sT=e=>t=>wa(t)&&e(t,Do(t));function fo(e,t,n,o){return To(e,t,sT(n),o)}const mf=({current:e})=>e?e.ownerDocument.defaultView:null,Dc=(e,t)=>Math.abs(e-t);function aT(e,t){const n=Dc(e.x,t.x),o=Dc(e.y,t.y);return Math.sqrt(n**2+o**2)}const Bc=new Set(["auto","scroll"]);class gf{constructor(t,n,{transformPagePoint:o,contextWindow:r=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=g=>{this.handleScroll(g.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=qo(this.lastRawMoveEventInfo,this.transformPagePoint));const g=ji(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,h=aT(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!h)return;const{point:x}=g,{timestamp:T}=Ze;this.history.push({...x,timestamp:T});const{onStart:C,onMove:E}=this.handlers;m||(C&&C(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,g)},this.handlePointerMove=(g,m)=>{this.lastMoveEvent=g,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=qo(m,this.transformPagePoint),Ve.update(this.updatePoint,!0)},this.handlePointerUp=(g,m)=>{this.end();const{onEnd:h,onSessionEnd:x,resumeAnimation:T}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=ji(g.type==="pointercancel"?this.lastMoveEventInfo:qo(m,this.transformPagePoint),this.history);this.startEvent&&h&&h(g,C),x&&x(g,C)},!wa(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=r||window;const c=Do(t),u=qo(c,this.transformPagePoint),{point:d}=u,{timestamp:p}=Ze;this.history=[{...d,timestamp:p}];const{onSessionStart:f}=n;f&&f(t,ji(u,this.history)),this.removeListeners=jo(fo(this.contextWindow,"pointermove",this.handlePointerMove),fo(this.contextWindow,"pointerup",this.handlePointerUp),fo(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const o=getComputedStyle(n);(Bc.has(o.overflowX)||Bc.has(o.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 o=t===window,r=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:r.x-n.x,y:r.y-n.y};s.x===0&&s.y===0||(o?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,r),Ve.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),en(this.updatePoint)}}function qo(e,t){return t?{point:t(e.point)}:e}function Vc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ji({point:e},t){return{point:e,delta:Vc(e,yf(t)),offset:Vc(e,lT(t)),velocity:cT(t,.1)}}function lT(e){return e[0]}function yf(e){return e[e.length-1]}function cT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=yf(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>ot(t)));)n--;if(!o)return{x:0,y:0};o===e[0]&&e.length>2&&r.timestamp-o.timestamp>ot(t)*2&&(o=e[1]);const s=pt(r.timestamp-o.timestamp);if(s===0)return{x:0,y:0};const a={x:(r.x-o.x)/s,y:(r.y-o.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function uT(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?Fe(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?Fe(n,e,o.max):Math.min(e,n)),e}function Nc(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 dT(e,{top:t,left:n,bottom:o,right:r}){return{x:Nc(e.x,n,r),y:Nc(e.y,t,o)}}function Lc(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function pT(e,t){return{x:Lc(e.x,t.x),y:Lc(e.y,t.y)}}function fT(e,t){let n=.5;const o=nt(e),r=nt(t);return r>o?n=bo(t.min,t.max-o,e.min):o>r&&(n=bo(e.min,e.max-r,t.min)),jt(0,1,n)}function hT(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 Os=.35;function mT(e=Os){return e===!1?e=0:e===!0&&(e=Os),{x:Fc(e,"left","right"),y:Fc(e,"top","bottom")}}function Fc(e,t,n){return{min:zc(e,t),max:zc(e,n)}}function zc(e,t){return typeof e=="number"?e:e[t]||0}const gT=new WeakMap;class yT{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=Xe(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=p=>{n&&this.snapToCursor(Do(p).point),this.stopAnimation()},a=(p,f)=>{const{drag:g,dragPropagation:m,onDragStart:h}=this.getProps();if(g&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Kx(g),!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),Rt(T=>{let C=this.getAxisMotionValue(T).get()||0;if(Mt.test(C)){const{projection:E}=this.visualElement;if(E&&E.layout){const b=E.layout.layoutBox[T];b&&(C=nt(b)*(parseFloat(C)/100))}}this.originPoint[T]=C}),h&&Ve.update(()=>h(p,f),!1,!0),bs(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},l=(p,f)=>{this.latestPointerEvent=p,this.latestPanInfo=f;const{dragPropagation:g,dragDirectionLock:m,onDirectionLock:h,onDrag:x}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:T}=f;if(m&&this.currentDirection===null){this.currentDirection=bT(T),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,T),this.updateAxis("y",f.point,T),this.visualElement.render(),x&&Ve.update(()=>x(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 gf(t,{onSessionStart:s,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:mf(this.visualElement),element:this.visualElement.current})}stop(t,n){const o=t||this.latestPointerEvent,r=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!r||!o)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&Ve.postRender(()=>l(o,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&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,o){const{drag:r}=this.getProps();if(!o||!Go(t,r,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=uT(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;t&&Mn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=dT(o.layoutBox,t):this.constraints=!1,this.elastic=mT(n),r!==this.constraints&&!Mn(t)&&o&&this.constraints&&!this.hasMutatedConstraints&&Rt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=hT(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Mn(t))return!1;const o=t.current;zt(o!==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:r}=this.visualElement;if(!r||!r.layout)return!1;const s=S1(o,r.root,this.visualElement.getTransformPagePoint());let a=pT(r.layout.layoutBox,s);if(n){const l=n(w1(a));this.hasMutatedConstraints=!!l,l&&(a=Vp(l))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Rt(d=>{if(!Go(d,n,this.currentDirection))return;let p=c&&c[d]||{};(a===!0||a===d)&&(p={min:0,max:0});const f=r?200:1e6,g=r?40:1e7,m={type:"inertia",velocity:o?t[d]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(d,m)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return bs(this.visualElement,t),o.start(ma(t,o,0,n,this.visualElement,!1))}stopAnimation(){Rt(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Rt(n=>{const{drag:o}=this.getProps();if(!Go(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:l}=r.layout.layoutBox[n],c=s.get()||0;s.set(t[n]-Fe(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!Mn(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Rt(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=fT({min:c,max:c},this.constraints[a])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),Rt(a=>{if(!Go(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(Fe(c,u,r[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;gT.set(this.visualElement,this);const t=this.visualElement.current,n=fo(t,"pointerdown",u=>{const{drag:d,dragListener:p=!0}=this.getProps(),f=u.target,g=f!==t&&t1(f);d&&p&&!g&&this.start(u)});let o;const r=()=>{const{dragConstraints:u}=this.getProps();Mn(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),o||(o=vT(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,a=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Ve.read(r);const l=To(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(Rt(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(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:a=Os,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:s,dragElastic:a,dragMomentum:l}}}function _c(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function vT(e,t,n){const o=Zl(e,_c(n)),r=Zl(t,_c(n));return()=>{o(),r()}}function Go(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function bT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class xT extends on{constructor(t){super(t),this.removeGroupControls=ft,this.removeListeners=ft,this.controls=new yT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ft}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 $i=e=>(t,n)=>{e&&Ve.update(()=>e(t,n),!1,!0)};class wT extends on{constructor(){super(...arguments),this.removePointerDownListener=ft}onPointerDown(t){this.session=new gf(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mf(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:$i(t),onStart:$i(n),onMove:$i(o),onEnd:(s,a)=>{delete this.session,r&&Ve.postRender(()=>r(s,a))}}}mount(){this.removePointerDownListener=fo(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 Ii=!1;class TT extends N.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),o&&o.register&&r&&o.register(s),Ii&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),cr.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:s}=this.props,{projection:a}=o;return a&&(a.isPresent=s,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),Ii=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==s?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||Ve.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:o}=t;o&&(o.options.layoutAnchor=n,o.root.didUpdate(),xa.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;Ii=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function vf(e){const[t,n]=Aw(),o=N.useContext($d);return y.jsx(TT,{...e,layoutGroup:o,switchLayoutGroup:N.useContext(ff),isPresent:t,safeToRemove:n})}const CT={pan:{Feature:wT},drag:{Feature:xT,ProjectionNode:rf,MeasureLayout:vf}};function Wc(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,s=o[r];s&&Ve.postRender(()=>s(t,Do(t)))}class ST extends on{mount(){const{current:t}=this.node;t&&(this.unmount=Zx(t,(n,o)=>(Wc(this.node,o,"Start"),r=>Wc(this.node,r,"End"))))}unmount(){}}class ET extends on{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=jo(To(this.node.current,"focus",()=>this.onFocus()),To(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Uc(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),s=o[r];s&&Ve.postRender(()=>s(t,Do(t)))}class PT extends on{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:o}=this.node.props;this.unmount=o1(t,(r,s)=>(Uc(this.node,s,"Start"),(a,{success:l})=>Uc(this.node,a,l?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:o?.tap===!1})}unmount(){}}const As=new WeakMap,Di=new WeakMap,RT=e=>{const t=As.get(e.target);t&&t(e)},OT=e=>{e.forEach(RT)};function AT({root:e,...t}){const n=e||document;Di.has(n)||Di.set(n,{});const o=Di.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(OT,{root:e,...t})),o[r]}function MT(e,t,n){const o=AT(t);return As.set(e,n),o.observe(e),()=>{As.delete(e),o.unobserve(e)}}const kT={some:0,all:1};class jT extends on{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:s}=t,a={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:kT[r]},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=MT(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($T(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function $T({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const IT={inView:{Feature:jT},tap:{Feature:PT},focus:{Feature:ET},hover:{Feature:ST}},DT={layout:{ProjectionNode:rf,MeasureLayout:vf}},BT={...iT,...IT,...CT,...DT},ao=eT(BT,tT),VT={some:0,all:1};function NT(e,t,{root:n,margin:o,amount:r="some"}={}){const s=ba(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:o,threshold:typeof r=="number"?r:VT[r]});return s.forEach(u=>c.observe(u)),()=>c.disconnect()}function LT(e,{root:t,margin:n,amount:o,once:r=!1,initial:s=!1}={}){const[a,l]=N.useState(s);return N.useEffect(()=>{if(!e.current||r&&a)return;const c=()=>(l(!0),r?void 0:()=>l(!1)),u={root:t&&t.current||void 0,margin:n,amount:o};return NT(e.current,c,u)},[t,e,n,r,o]),a}const FT=()=>{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:"/"}},zT=({step:e,currentStep:t,totalSteps:n,nextStep:o,prevStep:r,skipTour:s,arrow:a})=>y.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:[y.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1rem"},children:[y.jsx("h2",{style:{fontSize:"1.125rem",fontWeight:"bold"},children:e.title}),e.icon&&y.jsx("span",{style:{fontSize:"1.5rem"},children:e.icon})]}),y.jsx("div",{style:{marginBottom:"1rem",fontSize:"0.875rem"},children:e.content}),y.jsx("div",{style:{marginBottom:"1rem",backgroundColor:"#E5E7EB",borderRadius:"9999px",height:"0.625rem"},children:y.jsx("div",{style:{backgroundColor:"#2563EB",height:"0.625rem",borderRadius:"9999px",width:`${(t+1)/n*100}%`}})}),y.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:"1rem",fontSize:"0.75rem"},children:[y.jsx("button",{onClick:r,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"}),y.jsxs("span",{style:{color:"#6B7280",whiteSpace:"nowrap"},children:[t+1," of ",n]}),t===n-1?y.jsx("button",{onClick:o,style:{padding:"0.5rem 1rem",fontWeight:"500",color:"white",backgroundColor:"#10B981",borderRadius:"0.375rem",cursor:"pointer",display:e.showControls?"block":"none"},children:"Finish"}):y.jsx("button",{onClick:o,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&&y.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"})]}),Hc=({viewportID:e,children:t})=>{const[n,o]=N.useState(null);return N.useEffect(()=>{if(e){const r=document.getElementById(e);r?o(r):(console.warn(`Element with ID "${e}" not found. Rendering into document body.`),o(document.body))}else o(document.body)},[e]),n?kn.createPortal(t,n):null},_T=({x:e,y:t,width:n,height:o,padding:r,radius:s,shadowOpacity:a,shadowRgb:l,zIndex:c})=>{const u=e-r/2,d=t-r/2,p=n+r,f=o+r;return y.jsx("div",{style:{position:"absolute",inset:0,zIndex:c,pointerEvents:"none"},children:y.jsxs("svg",{width:"100%",height:"100%",children:[y.jsx("defs",{children:y.jsxs("mask",{id:"smooth-spotlight-mask",children:[y.jsx("rect",{width:"100%",height:"100%",fill:"white"}),y.jsx(ao.rect,{initial:!1,animate:{x:u,y:d,width:p,height:f,rx:s,ry:s},transition:{duration:.4,ease:"easeInOut"},fill:"black"})]})}),y.jsx("rect",{width:"100%",height:"100%",fill:`rgba(${l}, ${a})`,mask:"url(#smooth-spotlight-mask)"})]})})},WT=({children:e,steps:t,shadowRgb:n="0, 0, 0",shadowOpacity:o="0.2",cardTransition:r={ease:"anticipate",duration:.6},cardComponent:s,onStart:a=()=>{},onStepChange:l=()=>{},onComplete:c=()=>{},onSkip:u=()=>{},displayArrow:d=!0,clickThroughOverlay:p=!1,navigationAdapter:f=FT,disableConsoleLogs:g=!1,scrollToTop:m=!0,noInViewScroll:h=!1,overlayZIndex:x=999})=>{const{currentTour:T,currentStep:C,setCurrentStep:E,isNextStepVisible:b,closeNextStep:w}=jd(),S=t.find(U=>U.tour===T)?.steps,[M,j]=N.useState(null),[O,A]=N.useState(null),I=N.useRef(null),v=N.useRef(null),D=LT(v),k=20,[V,$]=N.useState(0),[W,B]=N.useState(null),[_,P]=N.useState(null),[L,H]=N.useState(null),q=f(),K=N.useCallback(()=>{w()},[w]);N.useEffect(()=>(window.addEventListener("popstate",K),()=>{window.removeEventListener("popstate",K)}),[K]),N.useEffect(()=>{B(window.document.body),P(window.document.body.getBoundingClientRect()),H(window.document.body)},[]);const ee=q.getCurrentPath()||"/";N.useEffect(()=>{b&&a?.(T)},[T,a,b]),N.useEffect(()=>{if(b&&S){g||console.log("NextStep: Current Step Changed");const U=S[C];let Q=window.document.body;if(U&&U.viewportID){const he=document.querySelector(`#${U.viewportID}`);he&&(Q=he)}const fe=Q.getBoundingClientRect();if(B(Q),P(fe),H(qt(Q)),U&&U.selector){const he=document.querySelector(U.selector);if(he){A(ne(he)),I.current=he,j(he);const Pe=he.getBoundingClientRect();if(!(Pe.top>=-k&&Pe.bottom<=window.innerHeight+k)){const ze=pe(S?.[C]?.side||"right");he.scrollIntoView({behavior:"smooth",block:ze.includes("top")?"end":ze.includes("bottom")?"start":"center"})}}}else U.viewportID?A({x:qt(Q).getBoundingClientRect().width/2,y:qt(Q).getBoundingClientRect().height/2,width:0,height:0}):A({x:window.innerWidth/2,y:window.innerHeight/2,width:0,height:0}),I.current=null,j(null)}},[C,S,D,k,b]);const te=()=>{let U=window.document.body;if(S&&C!==void 0){const Q=S[C];if(Q.viewportID){const fe=document.querySelector(`#${Q.viewportID}`);fe&&(U=fe)}}B(U),P(U.getBoundingClientRect()),H(qt(U))};N.useEffect(()=>{if(b)return te(),window.addEventListener("resize",te),()=>{window.removeEventListener("resize",te)}},[C,ee,S,b]);const ne=U=>{const Q=U.getBoundingClientRect();let fe=window.document.body,he=window.document.body.getBoundingClientRect();if(S&&C!==void 0){const ze=S[C];if(ze.viewportID){const Dt=document.querySelector(`#${ze.viewportID}`);Dt&&(fe=Dt,he=fe.getBoundingClientRect())}}const Pe=Q.top-he.top+fe.scrollTop;return{x:Q.left-he.left+fe.scrollLeft,y:Pe,width:Q.width,height:Q.height}};N.useEffect(()=>{if(b&&S){g||console.log("NextStep: Current Step Changed");const U=S[C];let Q=window.document.body;if(U&&U.viewportID){const he=document.querySelector(`#${U.viewportID}`);he&&(Q=he)}const fe=Q.getBoundingClientRect();if(B(Q),P(fe),H(qt(Q)),U&&U.selector){const he=document.querySelector(U.selector);if(he){A(ne(he)),I.current=he,j(he);const Pe=he.getBoundingClientRect();if(!(Pe.top>=-k&&Pe.bottom<=window.innerHeight+k)){const ze=pe(S?.[C]?.side||"right");he.scrollIntoView({behavior:"smooth",block:ze.includes("top")?"end":ze.includes("bottom")?"start":"center"})}}}else U.viewportID?A({x:qt(Q).getBoundingClientRect().width/2,y:qt(Q).getBoundingClientRect().height/2,width:0,height:0}):A({x:window.innerWidth/2,y:window.innerHeight/2,width:0,height:0}),I.current=null,j(null)}},[C,S,D,k,b]),N.useEffect(()=>{if(M&&!D&&b){g||console.log("NextStep: Element to Scroll Changed");const U=pe(S?.[C]?.side||"right");h||M.scrollIntoView({behavior:"smooth",block:U.includes("top")?"end":U.includes("bottom")?"start":"center",inline:"center"})}else(m||!M)&&window.scrollTo({top:0,behavior:"smooth"})},[M,D,b]);const J=()=>{if(S){const U=S[C];if(U&&U.selector){const Q=document.querySelector(U.selector);Q&&A(ne(Q))}else{const Q=document.querySelector(`#${U.viewportID}`);U.viewportID&&Q&&L?A({x:qt(Q).getBoundingClientRect().width/2,y:L.getBoundingClientRect().height/2,width:0,height:0}):A({x:window.innerWidth/2,y:window.innerHeight/2,width:0,height:0}),I.current=null,j(null)}}};N.useEffect(()=>{if(b)return window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[C,S,b]),N.useEffect(()=>{const U=()=>{const Q=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight);$(Q)};return U(),window.addEventListener("resize",U),()=>window.removeEventListener("resize",U)},[]),N.useEffect(()=>{if(!b||!T||!S||C===void 0)return;const U=S[C];if(!U.selector)return;const Q=document.querySelector(U.selector);if(!Q)return;const fe=new ResizeObserver(()=>{J(),te()});return fe.observe(Q),()=>{fe.disconnect()}},[C,T]);const le=()=>{if(S&&C<S.length-1)try{const U=C+1,Q=S[C].nextRoute;if(l?.(U,T),Q){q.push(Q);const fe=S[U].selector;fe?new MutationObserver((Pe,Le)=>{document.querySelector(fe)&&(E(U),z(U),Le.disconnect())}).observe(document.body,{childList:!0,subtree:!0}):E(U)}else E(U),z(U)}catch(U){g||console.error("Error navigating to next route",U)}else S&&C===S.length-1&&(c?.(T),w())},Y=()=>{if(S&&C>0)try{const U=C-1,Q=S[C].prevRoute;if(l?.(U,T),Q){q.push(Q);const fe=S[U].selector;fe?new MutationObserver((Pe,Le)=>{document.querySelector(fe)&&(E(U),z(U),Le.disconnect())}).observe(document.body,{childList:!0,subtree:!0}):E(U)}else E(U),z(U)}catch(U){g||console.error("Error navigating to previous route",U)}},se=()=>{u?.(C,T),w()};N.useEffect(()=>{const U=Q=>{if(b&&!S?.[C]?.blockKeyboardControl)switch(Q.key){case"ArrowRight":le();break;case"ArrowLeft":Y();break;case"Escape":se();break}};return window.addEventListener("keydown",U),()=>window.removeEventListener("keydown",U)},[b,le,Y,se]);const z=U=>{if(S){const Q=S[U].selector;if(Q){const fe=document.querySelector(Q);if(fe){const{top:he}=fe.getBoundingClientRect();if(!(he>=-k&&he<=window.innerHeight+k)){const Le=pe(S?.[U]?.side||"right");fe.scrollIntoView({behavior:"smooth",block:Le.includes("top")?"end":Le.includes("bottom")?"start":"center"})}A(ne(fe))}}else S?.[C].viewportID&&L?A({x:L.getBoundingClientRect().width/2,y:L.getBoundingClientRect().height/2,width:0,height:0}):A({x:window.innerWidth/2,y:window.innerHeight/2,width:0,height:0}),I.current=null,j(null)}},pe=U=>{if(!U||!W)return U;let Q=U,fe=!1;return(U.startsWith("right")&&O&&W.scrollWidth<O.x+O.width+256||U.startsWith("left")&&O&&O.x<256)&&(fe=!0),U.includes("top")&&O&&O.y<256?fe?Q="bottom":Q=U.replace("top","bottom"):U.includes("bottom")&&O&&O.y+O.height+256>W.scrollHeight?fe?Q="top":Q=U.replace("bottom","top"):fe&&(Q=O&&O.y<256?"bottom":"top"),Q},ce=U=>{if(!U||!S?.[C].selector)return{top:"50%",left:"50%",transform:"translate(-50%, -50%)",position:"fixed",margin:"0"};switch(U=pe(U),U){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{}}},re=U=>{switch(U=pe(U),U){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"}}},Ce=({isVisible:U})=>U?y.jsx("svg",{viewBox:"0 0 54 54","data-name":"nextstep-arrow",style:{...re(S?.[C]?.side),position:"absolute",width:"1.5rem",height:"1.5rem",transformOrigin:"center"},children:y.jsx("path",{id:"triangle",d:"M27 27L0 0V54L27 27Z",fill:"currentColor"})}):null,be={visible:{opacity:1},hidden:{opacity:0}},me=S?.[C]?.pointerPadding??30,we=me/2,Ee=S?.[C]?.pointerRadius??28,ue=W?UT(W):!1,X=N.useCallback(U=>{console.warn("No navigation adapter provided. Please provide a navigation adapter or import one from nextstepjs/adapters/*")},[]);return N.useMemo(()=>f||{push:X,getCurrentPath:()=>"/"},[f,X]),y.jsxs("div",{"data-name":"nextstep-wrapper","data-nextstep":"dev",style:{position:"relative",width:"100%"},children:[y.jsx("div",{"data-name":"nextstep-site",style:{display:"block",width:"100%"},children:e}),O&&b&&W&&y.jsx(Hc,{viewportID:S?.[C]?.viewportID,children:y.jsxs(ao.div,{"data-name":"nextstep-overlay",initial:"hidden",animate:b?"visible":"hidden",variants:be,transition:{duration:.5},style:{position:"absolute",top:0,left:0,overflow:"hidden",height:ue?`${W.scrollHeight}px`:"100%",width:ue?`${W.scrollWidth}px`:"100%",zIndex:x-2,pointerEvents:"none"},children:[!p&&_&&y.jsxs("div",{"data-name":"nextstep-prevent-click-overlay",style:{position:"absolute",inset:0,zIndex:x-1,pointerEvents:"none",height:`${W.scrollHeight}px`,width:`${W.scrollWidth}px`},children:[y.jsx("div",{"data-name":"nextstep-prevent-click-overlay-top",style:{position:"absolute",top:0,left:0,right:0,pointerEvents:"auto",height:Math.max(O.y-we,0)}}),y.jsx("div",{"data-name":"nextstep-prevent-click-overlay-bottom",style:{position:"absolute",left:0,right:0,bottom:0,pointerEvents:"auto",height:`${Math.max(_.height-(O.y+O.height+we),0)}px`}}),y.jsx("div",{"data-name":"nextstep-prevent-click-overlay-left",style:{position:"absolute",left:0,top:0,pointerEvents:"auto",width:Math.max(O.x-we,0),height:_.height}}),y.jsx("div",{"data-name":"nextstep-prevent-click-overlay-right",style:{position:"absolute",top:0,pointerEvents:"auto",left:`${O.x+O.width+we}px`,right:0,height:_.height}})]}),y.jsx(_T,{x:O.x-we,y:O.y-we,width:O.width+me,height:O.height+me,padding:me,radius:Ee,shadowOpacity:o,shadowRgb:n,zIndex:x-1}),y.jsx(ao.div,{"data-name":"nextstep-pointer",style:{position:"relative",zIndex:x,borderRadius:`${Ee}px ${Ee}px ${Ee}px ${Ee}px`,pointerEvents:`${S?.[C]?.disableInteraction?"auto":"none"}`},initial:O?{x:O.x-we,y:O.y-we,width:O.width+me,height:O.height+me}:{},animate:O?{x:O.x-we,y:O.y-we,width:O.width+me,height:O.height+me}:{},transition:r,children:y.jsx(ao.div,{"data-name":"nextstep-card",transition:r,style:{...ce(S?.[C]?.side),position:"absolute",display:"flex",flexDirection:"column",maxWidth:"100%",minWidth:"min-content",pointerEvents:"auto",zIndex:x},children:s?y.jsx(s,{step:S?.[C],currentStep:C,totalSteps:S?.length??0,nextStep:le,prevStep:Y,arrow:y.jsx(Ce,{isVisible:!!(S?.[C]?.selector&&d)}),skipTour:se}):y.jsx(zT,{step:S?.[C],currentStep:C,totalSteps:S?.length??0,nextStep:le,prevStep:Y,arrow:y.jsx(Ce,{isVisible:!!(S?.[C]?.selector&&d)}),skipTour:se})})})]})}),O&&b&&S?.[C]?.viewportID&&L&&y.jsx(Hc,{children:y.jsx(ao.div,{"data-name":"nextstep-overlay2",initial:"hidden",animate:b?"visible":"hidden",variants:be,transition:{duration:.5},style:{position:"absolute",top:0,left:0,overflow:"hidden",height:`${V}px`,width:`${document.body.scrollWidth}px`,zIndex:x-2,pointerEvents:"none"},children:!p&&y.jsxs("div",{style:{position:"absolute",inset:0,zIndex:x-1,pointerEvents:"none",width:"100vw",height:V},children:[y.jsx("div",{style:{position:"absolute",left:0,right:0,top:0,pointerEvents:"auto",height:L.getBoundingClientRect().top+window.scrollY,width:`${document.body.scrollWidth}px`,backgroundColor:`rgba(${n}, ${o})`}}),y.jsx("div",{style:{position:"absolute",left:0,right:0,pointerEvents:"auto",top:`${L.getBoundingClientRect().bottom+window.scrollY}px`,height:`${V-L.getBoundingClientRect().bottom-window.scrollY}px`,width:`${document.body.scrollWidth}px`,backgroundColor:`rgba(${n}, ${o})`}}),y.jsx("div",{style:{position:"absolute",pointerEvents:"auto",left:"0",top:L.getBoundingClientRect().top+window.scrollY,width:L.getBoundingClientRect().left+window.scrollX,height:L.getBoundingClientRect().height,backgroundColor:`rgba(${n}, ${o})`}}),y.jsx("div",{style:{position:"absolute",pointerEvents:"auto",top:L.getBoundingClientRect().top+window.scrollY,left:`${L.getBoundingClientRect().right+window.scrollX}px`,width:`${document.body.scrollWidth-L.getBoundingClientRect().right-window.scrollX}px`,height:L.getBoundingClientRect().height,backgroundColor:`rgba(${n}, ${o})`}})]})})})]})},qt=e=>{let t=e.parentElement;for(;t;){const n=getComputedStyle(t),o=n.overflowY,r=n.overflowX,s=o==="scroll"||o==="auto",a=r==="scroll"||r==="auto";if(s&&t.scrollHeight>t.clientHeight||a&&t.scrollWidth>t.clientWidth)return t;t=t.parentElement}return e},UT=e=>e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth||e===document.body,HT=({step:e,currentStep:t,totalSteps:n,nextStep:o,prevStep:r,skipTour:s,arrow:a})=>{const l=G.useTheme(),c=(t+1)/n*100,u=t===n-1,d=t===0;return y.jsxs(G.Box,{sx:{position:"relative",bgcolor:"background.paper",borderRadius:3,boxShadow:l.shadows[16],border:"1px solid",borderColor:G.alpha(l.palette.primary.main,.2),maxWidth:420,minWidth:300,overflow:"hidden"},children:[y.jsx(G.LinearProgress,{variant:"determinate",value:c,sx:{height:3,bgcolor:G.alpha(l.palette.primary.main,.08),"& .MuiLinearProgress-bar":{bgcolor:"primary.main",borderRadius:0}}}),y.jsxs(G.Box,{sx:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",px:2.5,pt:2,pb:0},children:[y.jsxs(G.Box,{sx:{display:"flex",alignItems:"center",gap:1.5,flex:1},children:[e.icon&&y.jsx(G.Box,{sx:{fontSize:"1.5rem",display:"flex",alignItems:"center",justifyContent:"center",width:40,height:40,borderRadius:2,bgcolor:G.alpha(l.palette.primary.main,.1),color:"primary.main",flexShrink:0},children:e.icon}),y.jsxs(G.Box,{children:[y.jsx(G.Typography,{variant:"subtitle1",sx:{fontWeight:700,lineHeight:1.2},children:e.title}),y.jsxs(G.Typography,{variant:"caption",sx:{color:"text.disabled"},children:["Paso ",t+1," de ",n]})]})]}),s&&y.jsx(G.IconButton,{size:"small",onClick:s,sx:{color:"text.disabled",ml:1},children:y.jsx(ri.Close,{fontSize:"small"})})]}),y.jsx(G.Box,{sx:{px:2.5,py:1.5},children:y.jsx(G.Typography,{variant:"body2",sx:{color:"text.secondary",lineHeight:1.6},children:e.content})}),y.jsxs(G.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,pb:2,pt:.5},children:[y.jsx(G.Button,{size:"small",startIcon:y.jsx(ri.ArrowBack,{}),onClick:r,disabled:d,sx:{visibility:d?"hidden":"visible",textTransform:"none"},children:"Anterior"}),y.jsx(G.Button,{size:"small",variant:"contained",endIcon:u?void 0:y.jsx(ri.ArrowForward,{}),onClick:o,sx:{textTransform:"none",borderRadius:2,px:2.5,boxShadow:"none","&:hover":{boxShadow:l.shadows[2]}},children:u?"Finalizar":"Siguiente"})]}),a]})},qT=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}))})),GT=({children:e,tours:t,colorSombra:n="0, 0, 0",opacidadSombra:o="0.5",mostrarFlecha:r=!0,clickAtravesOverlay:s=!1,alIniciar:a,alCambiarPaso:l,alCompletar:c,alSaltar:u,tarjetaPersonalizada:d,scrollAlInicio:p=!0,deshabilitarLogs:f=!0,zIndexOverlay:g=1400,offsetSuperior:m=80,offsetInferior:h=60})=>{const x=qT(t),T=N.useRef(x);T.current=x;const C=N.useCallback((w,S)=>{const j=T.current.find(O=>O.tour===S)?.steps[w];j?.selector&&setTimeout(()=>{const O=document.querySelector(j.selector);if(!O)return;const A=O.getBoundingClientRect(),I=window.innerHeight;if(A.top<m){const v=window.scrollY+A.top-m-16;window.scrollTo({top:Math.max(0,v),behavior:"smooth"})}else if(A.bottom>I-h){const v=window.scrollY+A.bottom-I+h+16;window.scrollTo({top:v,behavior:"smooth"})}},400)},[m,h]),E=N.useCallback((w,S)=>{C(w,S),l?.(w,S)},[C,l]),b=N.useCallback(w=>{setTimeout(()=>{T.current.find(j=>j.tour===w)?.steps[0]?.selector&&C(0,w)},100),a?.(w)},[C,a]);return y.jsxs(F0,{children:[y.jsx("style",{children:`
254
254
  html {
255
255
  scroll-padding-top: ${m}px;
256
256
  scroll-padding-bottom: ${h}px;
257
257
  }
258
- `}),y.jsx(_T,{steps:x,shadowRgb:n,shadowOpacity:o,displayArrow:r,clickThroughOverlay:s,onStart:b,onStepChange:E,onComplete:c,onSkip:u,cardComponent:d??UT,scrollToTop:p,disableConsoleLogs:f,overlayZIndex:g,children:e})]})},Bi=Be(y.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),GT=Be(y.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),YT=Be(y.jsx("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2M3 19c0 1.1.9 2 2 2h3V10H3z"}),"TableChart"),KT=Be(y.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M8 20H4v-4h4zm0-6H4v-4h4zm0-6H4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4z"}),"GridOn"),XT=Be(y.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z"}),"PictureAsPdf"),ZT=Be(y.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),JT=Be(y.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),QT=Be(y.jsx("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),eC=Be(y.jsx("path",{d:"M12 3v9.28c-.47-.17-.97-.28-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3z"}),"Audiotrack"),tC=Be(y.jsx("path",{d:"M20 6h-8l-2-2H6.83l14.93 14.93c.15-.28.24-.59.24-.93V8c0-1.1-.9-2-2-2M2.1 2.1.69 3.51l1.56 1.56c-.15.28-.24.59-.24.93L2 18c0 1.1.9 2 2 2h13.17l3.31 3.31 1.41-1.41z"}),"FolderOff"),nC={excel:{aceptar:".xlsx,.xls",etiqueta:"Subir Excel",descripcion:"Excel (.xlsx, .xls)"},csv:{aceptar:".csv",etiqueta:"Subir CSV",descripcion:"Archivo CSV (.csv)"},hojaCalculo:{aceptar:".xlsx,.xls,.csv,.ods,.numbers",etiqueta:"Subir hoja de cálculo",descripcion:"Excel, CSV, ODS, Numbers"},pdf:{aceptar:".pdf",etiqueta:"Subir PDF",descripcion:"Archivo PDF (.pdf)"},documento:{aceptar:".pdf,.doc,.docx,.odt,.txt,.rtf",etiqueta:"Subir documento",descripcion:"PDF, Word, ODT, TXT"},imagen:{aceptar:"image/*",etiqueta:"Subir imagen",descripcion:"PNG, JPG, WebP, GIF, SVG..."},video:{aceptar:"video/*",etiqueta:"Subir video",descripcion:"MP4, WebM, MOV, AVI..."},audio:{aceptar:"audio/*",etiqueta:"Subir audio",descripcion:"MP3, WAV, OGG, AAC..."},cualquiera:{aceptar:"*",etiqueta:"Subir archivo",descripcion:"Cualquier tipo de archivo"}},Yo=e=>{if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB"],o=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,o)).toFixed(1))} ${n[o]}`},oC=e=>e.size===0&&e.type===""&&!e.name.includes("."),rC=({nombre:e,color:t})=>{const n=e.split(".").pop()?.toLowerCase()??"",o={fontSize:20,color:t};return["xlsx","xls"].includes(n)?y.jsx(YT,{sx:o}):n==="csv"?y.jsx(KT,{sx:o}):n==="pdf"?y.jsx(XT,{sx:o}):["doc","docx","odt","txt","rtf"].includes(n)?y.jsx(ZT,{sx:o}):["jpg","jpeg","png","gif","webp","svg","bmp"].includes(n)?y.jsx(JT,{sx:o}):["mp4","avi","mov","webm","mkv"].includes(n)?y.jsx(QT,{sx:o}):["mp3","wav","ogg","aac","flac"].includes(n)?y.jsx(eC,{sx:o}):y.jsx(GT,{sx:o})},iC=(e,t)=>{const n=e.split(".").pop()?.toLowerCase()??"";return["xlsx","xls","csv","ods","numbers"].includes(n)?t.success.main:n==="pdf"?t.error.main:["doc","docx","odt","txt","rtf"].includes(n)?t.info.main:["jpg","jpeg","png","gif","webp","svg"].includes(n)?"#9C27B0":["mp4","avi","mov","webm"].includes(n)?t.warning.main:["mp3","wav","ogg","aac"].includes(n)?"#E91E63":t.text.secondary},sC=oe(ve,{shouldForwardProp:e=>!["arrastrandoSobre","tieneError","deshabilitado"].includes(String(e))})(({theme:e,arrastrandoSobre:t,tieneError:n,deshabilitado:o})=>({border:`2px dashed ${n?e.palette.error.main:t?e.palette.primary.main:e.palette.divider}`,borderRadius:12,padding:e.spacing(4),textAlign:"center",cursor:o?"not-allowed":"pointer",transition:e.transitions.create(["border-color","background-color"],{duration:200}),backgroundColor:t?ae.alpha(e.palette.primary.main,.06):n?ae.alpha(e.palette.error.main,.04):e.palette.mode==="dark"?ae.alpha(e.palette.common.white,.02):ae.alpha(e.palette.common.black,.01),opacity:o?.5:1,userSelect:"none","&:hover":o?{}:{borderColor:n?e.palette.error.main:e.palette.primary.main,backgroundColor:ae.alpha(e.palette.primary.main,.04)}})),aC=({variante:e="zona",tipoPreestablecido:t,multiple:n=!1,aceptar:o,tamanoMaximo:r,etiqueta:s,descripcion:a,mostrarLista:l=!0,anchoCompleto:c=!1,deshabilitado:u=!1,alCambiar:d,alError:p})=>{const f=st(),g=N.useRef(null),m=N.useRef(0),[h,x]=N.useState([]),[T,C]=N.useState(!1),[E,b]=N.useState(null),w=t?nC[t]:null,S=o??(w?.aceptar==="*"?void 0:w?.aceptar),M=s??w?.etiqueta,j=a??w?.descripcion,O=(()=>{if(j)return j;const P=[];return S&&P.push(S),r&&P.push(`Máx. ${Yo(r)}`),P.length>0?P.join(" · "):n?"Múltiples archivos permitidos":"Un archivo a la vez"})(),A=N.useCallback(P=>{const L=[],H=[];return P.forEach(q=>{if(oC(q)){H.push(`"${q.name}" es una carpeta — solo se permiten archivos.`);return}if(r&&q.size>r){H.push(`"${q.name}" supera el máximo permitido (${Yo(r)}).`);return}if(S){const K=S.split(",").map(J=>J.trim().toLowerCase()),ee=("."+(q.name.split(".").pop()??"")).toLowerCase(),te=q.type.toLowerCase();if(!K.some(J=>J==="*"?!0:J.startsWith(".")?J===ee:J.endsWith("/*")?te.startsWith(J.slice(0,-1)):J===te)){H.push(`"${q.name}" no es un tipo permitido. Se acepta: ${S}`);return}}L.push(q)}),{validos:L,errores:H}},[S,r]),I=N.useCallback(P=>{if(!P||u)return;const L=Array.from(P),{validos:H,errores:q}=A(L);if(q.length>0){const ee=q[0];b(ee),p?.(q),setTimeout(()=>b(null),3e3)}if(H.length===0)return;const K=H.map(ee=>({id:`${ee.name}-${ee.size}-${Date.now()}-${Math.random()}`,archivo:ee}));x(ee=>{const te=n?[...ee,...K]:K;return d?.(te.map(ne=>ne.archivo)),te})},[u,n,A,d,p]),v=P=>{x(L=>{const H=L.filter(q=>q.id!==P);return d?.(H.map(q=>q.archivo)),H})},D=P=>{P.preventDefault(),P.stopPropagation(),!u&&(m.current++,C(!0))},k=P=>{P.preventDefault(),P.stopPropagation()},V=P=>{P.preventDefault(),P.stopPropagation(),m.current--,m.current<=0&&(m.current=0,C(!1))},$=P=>{P.preventDefault(),P.stopPropagation(),m.current=0,C(!1),I(P.dataTransfer.files)},W=P=>{P.stopPropagation(),u||g.current?.click()},B={onDragEnter:D,onDragOver:k,onDragLeave:V,onDrop:$},_=E!==null;return y.jsxs(ve,{sx:{width:c?"100%":"auto",display:c?"block":"inline-block"},children:[y.jsx("input",{ref:g,type:"file",multiple:n,accept:S,style:{display:"none"},onChange:P=>I(P.target.files),onClick:P=>{P.target.value=""}}),e==="zona"&&y.jsxs(sC,{arrastrandoSobre:T,tieneError:_,deshabilitado:u,onClick:W,...B,sx:{width:c?"100%":"auto"},children:[_?y.jsx(tC,{sx:{fontSize:48,color:"error.main",mb:1}}):y.jsx(Bi,{sx:{fontSize:48,color:T?"primary.main":"text.disabled",mb:1,transition:"color 0.2s"}}),y.jsx(Ke,{variant:"subtitle1",fontWeight:600,color:_?"error":"text.primary",children:_?E:M??(T?"Suelta los archivos aquí":"Arrastra archivos o haz clic para seleccionar")}),!_&&y.jsx(Ke,{variant:"body2",color:"text.secondary",sx:{mt:.5},children:O})]}),e==="compacto"&&y.jsxs(ve,{onClick:W,...B,sx:{display:"inline-flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:2,border:`1px solid ${T?f.palette.primary.main:_?f.palette.error.main:f.palette.divider}`,cursor:u?"not-allowed":"pointer",transition:f.transitions.create(["border-color","background-color"]),opacity:u?.5:1,backgroundColor:T?ae.alpha(f.palette.primary.main,.04):_?ae.alpha(f.palette.error.main,.04):"transparent",userSelect:"none","&:hover":u?{}:{borderColor:f.palette.primary.main,backgroundColor:ae.alpha(f.palette.primary.main,.04)}},children:[y.jsx(Bi,{fontSize:"small",sx:{color:_?"error.main":"primary.main"}}),y.jsx(Ke,{variant:"body2",fontWeight:500,color:_?"error":"text.primary",children:_?"Tipo no permitido":M??"Seleccionar archivo"}),!_&&j&&y.jsxs(Ke,{variant:"caption",color:"text.secondary",children:["(",j,")"]}),!_&&r&&!j&&y.jsxs(Ke,{variant:"caption",color:"text.secondary",children:["(máx. ",Yo(r),")"]})]}),e==="boton"&&y.jsxs(ve,{component:"button",disabled:u,onClick:W,...B,sx:{display:"inline-flex",alignItems:"center",gap:1,px:2.5,py:1,borderRadius:2,border:"none",backgroundColor:_?"error.main":"primary.main",color:"primary.contrastText",cursor:u?"not-allowed":"pointer",fontFamily:"inherit",fontSize:"0.875rem",fontWeight:600,transition:"background-color 0.2s",opacity:u?.5:1,userSelect:"none","&:hover:not(:disabled)":{backgroundColor:_?"error.dark":"primary.dark"}},children:[y.jsx(Bi,{fontSize:"small"}),_?"Tipo no permitido":M??"Subir archivo"]}),l&&h.length>0&&y.jsx(ve,{sx:{mt:1.5,display:"flex",flexDirection:"column",gap:.75},children:h.map(P=>{const L=iC(P.archivo.name,f.palette);return y.jsxs(ve,{sx:{display:"flex",alignItems:"center",gap:1.5,px:1.5,py:1,borderRadius:2,border:`1px solid ${P.error?f.palette.error.light:f.palette.divider}`,backgroundColor:P.error?ae.alpha(f.palette.error.main,.04):f.palette.background.paper},children:[P.error?y.jsx(Ks,{sx:{fontSize:20,color:"error.main",flexShrink:0}}):P.progreso===100?y.jsx(Gu,{sx:{fontSize:20,color:"success.main",flexShrink:0}}):y.jsx(ve,{sx:{flexShrink:0},children:y.jsx(rC,{nombre:P.archivo.name,color:L})}),y.jsxs(ve,{sx:{flex:1,overflow:"hidden",minWidth:0},children:[y.jsx(Ke,{variant:"body2",fontWeight:500,noWrap:!0,children:P.archivo.name}),P.error?y.jsx(Ke,{variant:"caption",color:"error",children:P.error}):y.jsx(Ke,{variant:"caption",color:"text.secondary",children:Yo(P.archivo.size)}),P.progreso!==void 0&&P.progreso<100&&y.jsx(Js,{variant:"determinate",value:P.progreso,sx:{mt:.5,borderRadius:1,height:4}})]}),y.jsx(Xs,{size:"small",onClick:()=>v(P.id),"aria-label":`Eliminar ${P.archivo.name}`,sx:{flexShrink:0,opacity:.6,"&:hover":{opacity:1}},children:y.jsx(yd,{sx:{fontSize:16}})})]},P.id)})})]})};function tn(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=r||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}function lC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function vf(e,t,n,o,r){const s=e[t],a=r||t;if(s==null||typeof window>"u")return null;let l;const c=s.type;return typeof c=="function"&&!lC(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${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 Xn=vt(i.element,vf);Xn.isRequired=vt(i.element.isRequired,vf);function Bo(e){return parseInt(R.version,10)>=19?e?.props?.ref||null:e?.ref||null}function Ms(e){return`scale(${e}, ${e**2})`}const cC={entering:{opacity:1,transform:Ms(1)},entered:{opacity:1,transform:"none"}},Vi=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Co=R.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:s,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:g,style:m,timeout:h="auto",TransitionComponent:x=St,...T}=t,C=hn(),E=R.useRef(),b=st(),w=R.useRef(null),S=et(w,Bo(s),n),M=V=>$=>{if(V){const W=w.current;$===void 0?V(W):V(W,$)}},j=M(d),O=M((V,$)=>{wd(V);const{duration:W,delay:B,easing:_}=Ln({style:m,timeout:h,easing:a},{mode:"enter"});let P;h==="auto"?(P=b.transitions.getAutoHeightDuration(V.clientHeight),E.current=P):P=W,V.style.transition=[b.transitions.create("opacity",{duration:P,delay:B}),b.transitions.create("transform",{duration:Vi?P:P*.666,delay:B,easing:_})].join(","),c&&c(V,$)}),A=M(u),I=M(g),v=M(V=>{const{duration:$,delay:W,easing:B}=Ln({style:m,timeout:h,easing:a},{mode:"exit"});let _;h==="auto"?(_=b.transitions.getAutoHeightDuration(V.clientHeight),E.current=_):_=$,V.style.transition=[b.transitions.create("opacity",{duration:_,delay:W}),b.transitions.create("transform",{duration:Vi?_:_*.666,delay:Vi?W:W||_*.333,easing:B})].join(","),V.style.opacity=0,V.style.transform=Ms(.75),p&&p(V)}),D=M(f),k=V=>{h==="auto"&&C.start(E.current||0,V),o&&o(w.current,V)};return y.jsx(x,{appear:r,in:l,nodeRef:w,onEnter:O,onEntered:A,onEntering:j,onExit:v,onExited:D,onExiting:I,addEndListener:k,timeout:h==="auto"?null:h,...T,children:(V,{ownerState:$,...W})=>R.cloneElement(s,{style:{opacity:0,transform:Ms(.75),visibility:V==="exited"&&!l?"hidden":void 0,...cC[V],...m,...s.props.style},ref:S,...W})})});process.env.NODE_ENV!=="production"&&(Co.propTypes={addEndListener:i.func,appear:i.bool,children:Xn.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});Co&&(Co.muiSupportAuto=!0);function uC(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function dC(e){const t=Ct(e);return t.body===e?Jt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ho(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Hc(e){return parseFloat(Jt(e).getComputedStyle(e).paddingRight)||0}function pC(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function qc(e,t,n,o,r){const s=[t,n,...o];[].forEach.call(e.children,a=>{const l=!s.includes(a),c=!pC(a);l&&c&&ho(a,r)})}function Ni(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function fC(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(dC(o)){const a=uC(Jt(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Hc(o)+a}px`;const l=Ct(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Hc(c)+a}px`})}let s;if(o.parentNode instanceof DocumentFragment)s=Ct(o).body;else{const a=o.parentElement,l=Jt(o);s=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}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 hC(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class mC{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&ho(t.modalRef,!1);const r=hC(n);qc(n,t.mount,t.modalRef,r,!0);const s=Ni(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=Ni(this.containers,s=>s.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=fC(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=Ni(this.containers,a=>a.modals.includes(t)),s=this.containers[r];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(o,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&ho(t.modalRef,n),qc(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&ho(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ko(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const gC=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function yC(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 vC(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function bC(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||vC(e))}function xC(e){const t=[],n=[];return Array.from(e.querySelectorAll(gC)).forEach((o,r)=>{const s=yC(o);s===-1||!bC(o)||(s===0?t.push(o):n.push({documentOrder:r,tabIndex:s,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function wC(){return!0}function Ar(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=xC,isEnabled:a=wC,open:l}=e,c=R.useRef(!1),u=R.useRef(null),d=R.useRef(null),p=R.useRef(null),f=R.useRef(null),g=R.useRef(!1),m=R.useRef(null),h=et(Bo(t),m),x=R.useRef(null);R.useEffect(()=>{!l||!m.current||(g.current=!n)},[n,l]),R.useEffect(()=>{if(!l||!m.current)return;const E=Ct(m.current),b=Ko(E);return m.current.contains(b)||(m.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
259
- `)),m.current.setAttribute("tabIndex","-1")),g.current&&m.current.focus()),()=>{r||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),R.useEffect(()=>{if(!l||!m.current)return;const E=Ct(m.current),b=M=>{if(x.current=M,o||!a()||M.key!=="Tab")return;Ko(E)===m.current&&M.shiftKey&&(c.current=!0,d.current&&d.current.focus())},w=()=>{const M=m.current;if(M===null)return;const j=Ko(E);if(!E.hasFocus()||!a()||c.current){c.current=!1;return}if(M.contains(j)||o&&j!==u.current&&j!==d.current)return;if(j!==f.current)f.current=null;else if(f.current!==null)return;if(!g.current)return;let O=[];if((j===u.current||j===d.current)&&(O=s(m.current)),O.length>0){const A=!!(x.current?.shiftKey&&x.current?.key==="Tab"),I=O[0],v=O[O.length-1];typeof I!="string"&&typeof v!="string"&&(A?v.focus():I.focus())}else M.focus()};E.addEventListener("focusin",w),E.addEventListener("keydown",b,!0);const S=setInterval(()=>{const M=Ko(E);M&&M.tagName==="BODY"&&w()},50);return()=>{clearInterval(S),E.removeEventListener("focusin",w),E.removeEventListener("keydown",b,!0)}},[n,o,r,a,l,s]);const T=E=>{p.current===null&&(p.current=E.relatedTarget),g.current=!0,f.current=E.target;const b=t.props.onFocus;b&&b(E)},C=E=>{p.current===null&&(p.current=E.relatedTarget),g.current=!0};return y.jsxs(R.Fragment,{children:[y.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),R.cloneElement(t,{ref:h,onFocus:T}),y.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ar.propTypes={children:Xn,disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableRestoreFocus:i.bool,getTabbable:i.func,isEnabled:i.func,open:i.bool.isRequired});process.env.NODE_ENV!=="production"&&(Ar.propTypes=Eu(Ar.propTypes));function TC(e){return typeof e=="function"?e():e}const So=R.forwardRef(function(t,n){const{children:o,container:r,disablePortal:s=!1}=t,[a,l]=R.useState(null),c=et(R.isValidElement(o)?Bo(o):null,n);if(Zt(()=>{s||l(TC(r)||document.body)},[r,s]),Zt(()=>{if(a&&!s)return vl(n,a),()=>{vl(n,null)}},[n,a,s]),s){if(R.isValidElement(o)){const u={ref:c};return R.cloneElement(o,u)}return o}return a&&Gf.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(So.propTypes={children:i.node,container:i.oneOfType([tn,i.func]),disablePortal:i.bool});process.env.NODE_ENV!=="production"&&(So.propTypes=Eu(So.propTypes));const CC={entering:{opacity:1},entered:{opacity:1}},bf=R.forwardRef(function(t,n){const o=st(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:f,onExit:g,onExited:m,onExiting:h,style:x,timeout:T=r,TransitionComponent:C=St,...E}=t,b=R.useRef(null),w=et(b,Bo(l),n),S=k=>V=>{if(k){const $=b.current;V===void 0?k($):k($,V)}},M=S(f),j=S((k,V)=>{wd(k);const $=Ln({style:x,timeout:T,easing:c},{mode:"enter"});k.style.webkitTransition=o.transitions.create("opacity",$),k.style.transition=o.transitions.create("opacity",$),d&&d(k,V)}),O=S(p),A=S(h),I=S(k=>{const V=Ln({style:x,timeout:T,easing:c},{mode:"exit"});k.style.webkitTransition=o.transitions.create("opacity",V),k.style.transition=o.transitions.create("opacity",V),g&&g(k)}),v=S(m),D=k=>{s&&s(b.current,k)};return y.jsx(C,{appear:a,in:u,nodeRef:b,onEnter:j,onEntered:O,onEntering:M,onExit:I,onExited:v,onExiting:A,addEndListener:D,timeout:T,...E,children:(k,{ownerState:V,...$})=>R.cloneElement(l,{style:{opacity:0,visibility:k==="exited"&&!u?"hidden":void 0,...CC[k],...x,...l.props.style},ref:w,...$})})});process.env.NODE_ENV!=="production"&&(bf.propTypes={addEndListener:i.func,appear:i.bool,children:Xn.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function SC(e){return ke("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const EC=e=>{const{classes:t,invisible:n}=e;return Ne({root:["root",n&&"invisible"]},SC,t)},PC=oe("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"}}]}),xf=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiBackdrop"}),{children:r,className:s,component:a="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:p={},slots:f={},TransitionComponent:g,transitionDuration:m,...h}=o,x={...o,component:a,invisible:l},T=EC(x),C={transition:g,root:u.Root,...f},E={...d,...p},b={component:a,slots:C,slotProps:E},[w,S]=Te("root",{elementType:PC,externalForwardedProps:b,className:de(T.root,s),ownerState:x}),[M,j]=Te("transition",{elementType:bf,externalForwardedProps:b,ownerState:x});return y.jsx(M,{in:c,timeout:m,...h,...j,children:y.jsx(w,{"aria-hidden":!0,...S,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(xf.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.object}),invisible:i.bool,open:i.bool.isRequired,slotProps:i.shape({root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function RC(e){return typeof e=="function"?e():e}function OC(e){return e?e.props.hasOwnProperty("in"):!1}const Gc=()=>{},Xo=new mC;function AC(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,p=R.useRef({}),f=R.useRef(null),g=R.useRef(null),m=et(g,d),[h,x]=R.useState(!u),T=OC(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const E=()=>Ct(f.current),b=()=>(p.current.modalRef=g.current,p.current.mount=f.current,p.current),w=()=>{Xo.mount(b(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},S=Nt(()=>{const V=RC(t)||E().body;Xo.add(b(),V),g.current&&w()}),M=()=>Xo.isTopModal(b()),j=Nt(V=>{f.current=V,V&&(u&&M()?w():g.current&&ho(g.current,C))}),O=R.useCallback(()=>{Xo.remove(b(),C)},[C]);R.useEffect(()=>()=>{O()},[O]),R.useEffect(()=>{u?S():(!T||!r)&&O()},[u,O,T,r,S]);const A=V=>$=>{V.onKeyDown?.($),!($.key!=="Escape"||$.which===229||!M())&&(n||($.stopPropagation(),c&&c($,"escapeKeyDown")))},I=V=>$=>{V.onClick?.($),$.target===$.currentTarget&&c&&c($,"backdropClick")};return{getRootProps:(V={})=>{const $=Zu(e);delete $.onTransitionEnter,delete $.onTransitionExited;const W={...$,...V};return{role:"presentation",...W,onKeyDown:A(W),ref:m}},getBackdropProps:(V={})=>{const $=V;return{"aria-hidden":!0,...$,onClick:I($),open:u}},getTransitionProps:()=>{const V=()=>{x(!1),s&&s()},$=()=>{x(!0),a&&a(),r&&O()};return{onEnter:Ya(V,l?.props.onEnter??Gc),onExited:Ya($,l?.props.onExited??Gc)}},rootRef:m,portalRef:j,isTopModal:M,exited:h,hasTransition:T}}function MC(e){return ke("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const kC=e=>{const{open:t,exited:n,classes:o}=e;return Ne({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},MC,o)},jC=oe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Se(({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"}}]}))),$C=oe(xf,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),wf=R.forwardRef(function(t,n){const o=De({name:"MuiModal",props:t}),{BackdropComponent:r=$C,BackdropProps:s,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:p,components:f={},componentsProps:g={},disableAutoFocus:m=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:x=!1,disablePortal:T=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:b=!1,keepMounted:w=!1,onClose:S,onTransitionEnter:M,onTransitionExited:j,open:O,slotProps:A={},slots:I={},theme:v,...D}=o,k={...o,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:h,disableEscapeKeyDown:x,disablePortal:T,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:b,keepMounted:w},{getRootProps:V,getBackdropProps:$,getTransitionProps:W,portalRef:B,isTopModal:_,exited:P,hasTransition:L}=AC({...k,rootRef:n}),H={...k,exited:P},q=kC(H),K={};if(u.props.tabIndex===void 0&&(K.tabIndex="-1"),L){const{onEnter:Y,onExited:se}=W();K.onEnter=Y,K.onExited=se}const ee={slots:{root:f.Root,backdrop:f.Backdrop,...I},slotProps:{...g,...A}},[te,ne]=Te("root",{ref:n,elementType:jC,externalForwardedProps:{...ee,...D,component:p},getSlotProps:V,ownerState:H,className:de(l,q?.root,!H.open&&H.exited&&q?.hidden)}),[J,le]=Te("backdrop",{ref:s?.ref,elementType:r,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:Y=>$({...Y,onClick:se=>{Y?.onClick&&Y.onClick(se)}}),className:de(s?.className,q?.backdrop),ownerState:H});return!w&&!O&&(!L||P)?null:y.jsx(So,{ref:B,container:d,disablePortal:T,children:y.jsxs(te,{...ne,children:[!b&&r?y.jsx(J,{...le}):null,y.jsx(Ar,{disableEnforceFocus:h,disableAutoFocus:m,disableRestoreFocus:C,isEnabled:_,open:O,children:R.cloneElement(u,K)})]})})});process.env.NODE_ENV!=="production"&&(wf.propTypes={BackdropComponent:i.elementType,BackdropProps:i.object,children:Xn.isRequired,classes:i.object,className:i.string,closeAfterTransition:i.bool,component:i.elementType,components:i.shape({Backdrop:i.elementType,Root:i.elementType}),componentsProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([tn,i.func]),disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableEscapeKeyDown:i.bool,disablePortal:i.bool,disableRestoreFocus:i.bool,disableScrollLock:i.bool,hideBackdrop:i.bool,keepMounted:i.bool,onClose:i.func,onTransitionEnter:i.func,onTransitionExited:i.func,open:i.bool.isRequired,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function IC(e){return ke("MuiPopover",e)}je("MuiPopover",["root","paper"]);function Yc(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Kc(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Xc(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function lo(e){return typeof e=="function"?e():e}const DC=e=>{const{classes:t}=e;return Ne({root:["root"],paper:["paper"]},IC,t)},BC=oe(wf,{name:"MuiPopover",slot:"Root"})({}),VC=oe(Xr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Tf=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiPopover"}),{action:r,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:f=8,marginThreshold:g=16,open:m,PaperProps:h={},slots:x={},slotProps:T={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:b="auto",TransitionProps:w={},disableScrollLock:S=!1,...M}=o,j=R.useRef(),O={...o,anchorOrigin:a,anchorReference:c,elevation:f,marginThreshold:g,transformOrigin:C,TransitionComponent:E,transitionDuration:b,TransitionProps:w},A=DC(O),I=R.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 Y=lo(s),se=Y&&Y.nodeType===1?Y:Ct(j.current).body,z=se.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const pe=se.getBoundingClientRect();process.env.NODE_ENV!=="test"&&pe.top===0&&pe.left===0&&pe.right===0&&pe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
260
- `))}return{top:z.top+Yc(z,a.vertical),left:z.left+Kc(z,a.horizontal)}},[s,a.horizontal,a.vertical,l,c]),v=R.useCallback(Y=>({vertical:Yc(Y,C.vertical),horizontal:Kc(Y,C.horizontal)}),[C.horizontal,C.vertical]),D=R.useCallback(Y=>{const se={width:Y.offsetWidth,height:Y.offsetHeight},z=v(se);if(c==="none")return{top:null,left:null,transformOrigin:Xc(z)};const pe=I();let ce=pe.top-z.vertical,re=pe.left-z.horizontal;const Ce=ce+se.height,be=re+se.width,me=Jt(lo(s)),we=me.innerHeight-g,Ee=me.innerWidth-g;if(g!==null&&ce<g){const ue=ce-g;ce-=ue,z.vertical+=ue}else if(g!==null&&Ce>we){const ue=Ce-we;ce-=ue,z.vertical+=ue}if(process.env.NODE_ENV!=="production"&&se.height>we&&se.height&&we&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${se.height-we}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
261
- `)),g!==null&&re<g){const ue=re-g;re-=ue,z.horizontal+=ue}else if(be>Ee){const ue=be-Ee;re-=ue,z.horizontal+=ue}return{top:`${Math.round(ce)}px`,left:`${Math.round(re)}px`,transformOrigin:Xc(z)}},[s,c,I,v,g]),[k,V]=R.useState(m),$=R.useCallback(()=>{const Y=j.current;if(!Y)return;const se=D(Y);se.top!==null&&Y.style.setProperty("top",se.top),se.left!==null&&(Y.style.left=se.left),Y.style.transformOrigin=se.transformOrigin,V(!0)},[D]);R.useEffect(()=>(S&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[s,S,$]);const W=()=>{$()},B=()=>{V(!1)};R.useEffect(()=>{m&&$()}),R.useImperativeHandle(r,()=>m?{updatePosition:()=>{$()}}:null,[m,$]),R.useEffect(()=>{if(!m)return;const Y=Nu(()=>{$()}),se=Jt(lo(s));return se.addEventListener("resize",Y),()=>{Y.clear(),se.removeEventListener("resize",Y)}},[s,m,$]);let _=b;const P={slots:{transition:E,...x},slotProps:{transition:w,paper:h,...T}},[L,H]=Te("transition",{elementType:Co,externalForwardedProps:P,ownerState:O,getSlotProps:Y=>({...Y,onEntering:(se,z)=>{Y.onEntering?.(se,z),W()},onExited:se=>{Y.onExited?.(se),B()}}),additionalProps:{appear:!0,in:m}});b==="auto"&&!L.muiSupportAuto&&(_=void 0);const q=p||(s?Ct(lo(s)).body:void 0),[K,{slots:ee,slotProps:te,...ne}]=Te("root",{ref:n,elementType:BC,externalForwardedProps:{...P,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:x.backdrop},slotProps:{backdrop:Eg(typeof T.backdrop=="function"?T.backdrop(O):T.backdrop,{invisible:!0})},container:q,open:m},ownerState:O,className:de(A.root,d)}),[J,le]=Te("paper",{ref:j,className:A.paper,elementType:VC,externalForwardedProps:P,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:k?void 0:{opacity:0}},ownerState:O});return y.jsx(K,{...ne,...!vr(K)&&{slots:ee,slotProps:te,disableScrollLock:S},children:y.jsx(L,{...H,timeout:_,children:y.jsx(J,{...le,children:u})})})});process.env.NODE_ENV!=="production"&&(Tf.propTypes={action:ko,anchorEl:vt(i.oneOfType([tn,i.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=lo(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(`
258
+ `}),y.jsx(WT,{steps:x,shadowRgb:n,shadowOpacity:o,displayArrow:r,clickThroughOverlay:s,onStart:b,onStepChange:E,onComplete:c,onSkip:u,cardComponent:d??HT,scrollToTop:p,disableConsoleLogs:f,overlayZIndex:g,children:e})]})},Bi=Be(y.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),YT=Be(y.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),KT=Be(y.jsx("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2M3 19c0 1.1.9 2 2 2h3V10H3z"}),"TableChart"),XT=Be(y.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M8 20H4v-4h4zm0-6H4v-4h4zm0-6H4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4z"}),"GridOn"),ZT=Be(y.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z"}),"PictureAsPdf"),JT=Be(y.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),QT=Be(y.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),eC=Be(y.jsx("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11z"}),"Videocam"),tC=Be(y.jsx("path",{d:"M12 3v9.28c-.47-.17-.97-.28-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3z"}),"Audiotrack"),nC=Be(y.jsx("path",{d:"M20 6h-8l-2-2H6.83l14.93 14.93c.15-.28.24-.59.24-.93V8c0-1.1-.9-2-2-2M2.1 2.1.69 3.51l1.56 1.56c-.15.28-.24.59-.24.93L2 18c0 1.1.9 2 2 2h13.17l3.31 3.31 1.41-1.41z"}),"FolderOff"),oC={excel:{aceptar:".xlsx,.xls",etiqueta:"Subir Excel",descripcion:"Excel (.xlsx, .xls)"},csv:{aceptar:".csv",etiqueta:"Subir CSV",descripcion:"Archivo CSV (.csv)"},hojaCalculo:{aceptar:".xlsx,.xls,.csv,.ods,.numbers",etiqueta:"Subir hoja de cálculo",descripcion:"Excel, CSV, ODS, Numbers"},pdf:{aceptar:".pdf",etiqueta:"Subir PDF",descripcion:"Archivo PDF (.pdf)"},documento:{aceptar:".pdf,.doc,.docx,.odt,.txt,.rtf",etiqueta:"Subir documento",descripcion:"PDF, Word, ODT, TXT"},imagen:{aceptar:"image/*",etiqueta:"Subir imagen",descripcion:"PNG, JPG, WebP, GIF, SVG..."},video:{aceptar:"video/*",etiqueta:"Subir video",descripcion:"MP4, WebM, MOV, AVI..."},audio:{aceptar:"audio/*",etiqueta:"Subir audio",descripcion:"MP3, WAV, OGG, AAC..."},cualquiera:{aceptar:"*",etiqueta:"Subir archivo",descripcion:"Cualquier tipo de archivo"}},Yo=e=>{if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB"],o=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,o)).toFixed(1))} ${n[o]}`},rC=e=>e.size===0&&e.type===""&&!e.name.includes("."),iC=({nombre:e,color:t})=>{const n=e.split(".").pop()?.toLowerCase()??"",o={fontSize:20,color:t};return["xlsx","xls"].includes(n)?y.jsx(KT,{sx:o}):n==="csv"?y.jsx(XT,{sx:o}):n==="pdf"?y.jsx(ZT,{sx:o}):["doc","docx","odt","txt","rtf"].includes(n)?y.jsx(JT,{sx:o}):["jpg","jpeg","png","gif","webp","svg","bmp"].includes(n)?y.jsx(QT,{sx:o}):["mp4","avi","mov","webm","mkv"].includes(n)?y.jsx(eC,{sx:o}):["mp3","wav","ogg","aac","flac"].includes(n)?y.jsx(tC,{sx:o}):y.jsx(YT,{sx:o})},sC=(e,t)=>{const n=e.split(".").pop()?.toLowerCase()??"";return["xlsx","xls","csv","ods","numbers"].includes(n)?t.success.main:n==="pdf"?t.error.main:["doc","docx","odt","txt","rtf"].includes(n)?t.info.main:["jpg","jpeg","png","gif","webp","svg"].includes(n)?"#9C27B0":["mp4","avi","mov","webm"].includes(n)?t.warning.main:["mp3","wav","ogg","aac"].includes(n)?"#E91E63":t.text.secondary},aC=oe(ve,{shouldForwardProp:e=>!["arrastrandoSobre","tieneError","deshabilitado"].includes(String(e))})(({theme:e,arrastrandoSobre:t,tieneError:n,deshabilitado:o})=>({border:`2px dashed ${n?e.palette.error.main:t?e.palette.primary.main:e.palette.divider}`,borderRadius:12,padding:e.spacing(4),textAlign:"center",cursor:o?"not-allowed":"pointer",transition:e.transitions.create(["border-color","background-color"],{duration:200}),backgroundColor:t?ae.alpha(e.palette.primary.main,.06):n?ae.alpha(e.palette.error.main,.04):e.palette.mode==="dark"?ae.alpha(e.palette.common.white,.02):ae.alpha(e.palette.common.black,.01),opacity:o?.5:1,userSelect:"none","&:hover":o?{}:{borderColor:n?e.palette.error.main:e.palette.primary.main,backgroundColor:ae.alpha(e.palette.primary.main,.04)}})),lC=({variante:e="zona",tipoPreestablecido:t,multiple:n=!1,aceptar:o,tamanoMaximo:r,etiqueta:s,descripcion:a,mostrarLista:l=!0,anchoCompleto:c=!1,deshabilitado:u=!1,alCambiar:d,alError:p})=>{const f=st(),g=N.useRef(null),m=N.useRef(0),[h,x]=N.useState([]),[T,C]=N.useState(!1),[E,b]=N.useState(null),w=t?oC[t]:null,S=o??(w?.aceptar==="*"?void 0:w?.aceptar),M=s??w?.etiqueta,j=a??w?.descripcion,O=(()=>{if(j)return j;const P=[];return S&&P.push(S),r&&P.push(`Máx. ${Yo(r)}`),P.length>0?P.join(" · "):n?"Múltiples archivos permitidos":"Un archivo a la vez"})(),A=N.useCallback(P=>{const L=[],H=[];return P.forEach(q=>{if(rC(q)){H.push(`"${q.name}" es una carpeta — solo se permiten archivos.`);return}if(r&&q.size>r){H.push(`"${q.name}" supera el máximo permitido (${Yo(r)}).`);return}if(S){const K=S.split(",").map(J=>J.trim().toLowerCase()),ee=("."+(q.name.split(".").pop()??"")).toLowerCase(),te=q.type.toLowerCase();if(!K.some(J=>J==="*"?!0:J.startsWith(".")?J===ee:J.endsWith("/*")?te.startsWith(J.slice(0,-1)):J===te)){H.push(`"${q.name}" no es un tipo permitido. Se acepta: ${S}`);return}}L.push(q)}),{validos:L,errores:H}},[S,r]),I=N.useCallback(P=>{if(!P||u)return;const L=Array.from(P),{validos:H,errores:q}=A(L);if(q.length>0){const ee=q[0];b(ee),p?.(q),setTimeout(()=>b(null),3e3)}if(H.length===0)return;const K=H.map(ee=>({id:`${ee.name}-${ee.size}-${Date.now()}-${Math.random()}`,archivo:ee}));x(ee=>{const te=n?[...ee,...K]:K;return d?.(te.map(ne=>ne.archivo)),te})},[u,n,A,d,p]),v=P=>{x(L=>{const H=L.filter(q=>q.id!==P);return d?.(H.map(q=>q.archivo)),H})},D=P=>{P.preventDefault(),P.stopPropagation(),!u&&(m.current++,C(!0))},k=P=>{P.preventDefault(),P.stopPropagation()},V=P=>{P.preventDefault(),P.stopPropagation(),m.current--,m.current<=0&&(m.current=0,C(!1))},$=P=>{P.preventDefault(),P.stopPropagation(),m.current=0,C(!1),I(P.dataTransfer.files)},W=P=>{P.stopPropagation(),u||g.current?.click()},B={onDragEnter:D,onDragOver:k,onDragLeave:V,onDrop:$},_=E!==null;return y.jsxs(ve,{sx:{width:c?"100%":"auto",display:c?"block":"inline-block"},children:[y.jsx("input",{ref:g,type:"file",multiple:n,accept:S,style:{display:"none"},onChange:P=>I(P.target.files),onClick:P=>{P.target.value=""}}),e==="zona"&&y.jsxs(aC,{arrastrandoSobre:T,tieneError:_,deshabilitado:u,onClick:W,...B,sx:{width:c?"100%":"auto"},children:[_?y.jsx(nC,{sx:{fontSize:48,color:"error.main",mb:1}}):y.jsx(Bi,{sx:{fontSize:48,color:T?"primary.main":"text.disabled",mb:1,transition:"color 0.2s"}}),y.jsx(Ke,{variant:"subtitle1",fontWeight:600,color:_?"error":"text.primary",children:_?E:M??(T?"Suelta los archivos aquí":"Arrastra archivos o haz clic para seleccionar")}),!_&&y.jsx(Ke,{variant:"body2",color:"text.secondary",sx:{mt:.5},children:O})]}),e==="compacto"&&y.jsxs(ve,{onClick:W,...B,sx:{display:"inline-flex",alignItems:"center",gap:1,px:2,py:1,borderRadius:2,border:`1px solid ${T?f.palette.primary.main:_?f.palette.error.main:f.palette.divider}`,cursor:u?"not-allowed":"pointer",transition:f.transitions.create(["border-color","background-color"]),opacity:u?.5:1,backgroundColor:T?ae.alpha(f.palette.primary.main,.04):_?ae.alpha(f.palette.error.main,.04):"transparent",userSelect:"none","&:hover":u?{}:{borderColor:f.palette.primary.main,backgroundColor:ae.alpha(f.palette.primary.main,.04)}},children:[y.jsx(Bi,{fontSize:"small",sx:{color:_?"error.main":"primary.main"}}),y.jsx(Ke,{variant:"body2",fontWeight:500,color:_?"error":"text.primary",children:_?"Tipo no permitido":M??"Seleccionar archivo"}),!_&&j&&y.jsxs(Ke,{variant:"caption",color:"text.secondary",children:["(",j,")"]}),!_&&r&&!j&&y.jsxs(Ke,{variant:"caption",color:"text.secondary",children:["(máx. ",Yo(r),")"]})]}),e==="boton"&&y.jsxs(ve,{component:"button",disabled:u,onClick:W,...B,sx:{display:"inline-flex",alignItems:"center",gap:1,px:2.5,py:1,borderRadius:2,border:"none",backgroundColor:_?"error.main":"primary.main",color:"primary.contrastText",cursor:u?"not-allowed":"pointer",fontFamily:"inherit",fontSize:"0.875rem",fontWeight:600,transition:"background-color 0.2s",opacity:u?.5:1,userSelect:"none","&:hover:not(:disabled)":{backgroundColor:_?"error.dark":"primary.dark"}},children:[y.jsx(Bi,{fontSize:"small"}),_?"Tipo no permitido":M??"Subir archivo"]}),l&&h.length>0&&y.jsx(ve,{sx:{mt:1.5,display:"flex",flexDirection:"column",gap:.75},children:h.map(P=>{const L=sC(P.archivo.name,f.palette);return y.jsxs(ve,{sx:{display:"flex",alignItems:"center",gap:1.5,px:1.5,py:1,borderRadius:2,border:`1px solid ${P.error?f.palette.error.light:f.palette.divider}`,backgroundColor:P.error?ae.alpha(f.palette.error.main,.04):f.palette.background.paper},children:[P.error?y.jsx(Xs,{sx:{fontSize:20,color:"error.main",flexShrink:0}}):P.progreso===100?y.jsx(Yu,{sx:{fontSize:20,color:"success.main",flexShrink:0}}):y.jsx(ve,{sx:{flexShrink:0},children:y.jsx(iC,{nombre:P.archivo.name,color:L})}),y.jsxs(ve,{sx:{flex:1,overflow:"hidden",minWidth:0},children:[y.jsx(Ke,{variant:"body2",fontWeight:500,noWrap:!0,children:P.archivo.name}),P.error?y.jsx(Ke,{variant:"caption",color:"error",children:P.error}):y.jsx(Ke,{variant:"caption",color:"text.secondary",children:Yo(P.archivo.size)}),P.progreso!==void 0&&P.progreso<100&&y.jsx(Qs,{variant:"determinate",value:P.progreso,sx:{mt:.5,borderRadius:1,height:4}})]}),y.jsx(Zs,{size:"small",onClick:()=>v(P.id),"aria-label":`Eliminar ${P.archivo.name}`,sx:{flexShrink:0,opacity:.6,"&:hover":{opacity:1}},children:y.jsx(vd,{sx:{fontSize:16}})})]},P.id)})})]})};function tn(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=r||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}function cC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function bf(e,t,n,o,r){const s=e[t],a=r||t;if(s==null||typeof window>"u")return null;let l;const c=s.type;return typeof c=="function"&&!cC(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${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 Xn=vt(i.element,bf);Xn.isRequired=vt(i.element.isRequired,bf);function Bo(e){return parseInt(R.version,10)>=19?e?.props?.ref||null:e?.ref||null}function Ms(e){return`scale(${e}, ${e**2})`}const uC={entering:{opacity:1,transform:Ms(1)},entered:{opacity:1,transform:"none"}},Vi=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Co=R.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:s,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:g,style:m,timeout:h="auto",TransitionComponent:x=St,...T}=t,C=hn(),E=R.useRef(),b=st(),w=R.useRef(null),S=et(w,Bo(s),n),M=V=>$=>{if(V){const W=w.current;$===void 0?V(W):V(W,$)}},j=M(d),O=M((V,$)=>{Td(V);const{duration:W,delay:B,easing:_}=Ln({style:m,timeout:h,easing:a},{mode:"enter"});let P;h==="auto"?(P=b.transitions.getAutoHeightDuration(V.clientHeight),E.current=P):P=W,V.style.transition=[b.transitions.create("opacity",{duration:P,delay:B}),b.transitions.create("transform",{duration:Vi?P:P*.666,delay:B,easing:_})].join(","),c&&c(V,$)}),A=M(u),I=M(g),v=M(V=>{const{duration:$,delay:W,easing:B}=Ln({style:m,timeout:h,easing:a},{mode:"exit"});let _;h==="auto"?(_=b.transitions.getAutoHeightDuration(V.clientHeight),E.current=_):_=$,V.style.transition=[b.transitions.create("opacity",{duration:_,delay:W}),b.transitions.create("transform",{duration:Vi?_:_*.666,delay:Vi?W:W||_*.333,easing:B})].join(","),V.style.opacity=0,V.style.transform=Ms(.75),p&&p(V)}),D=M(f),k=V=>{h==="auto"&&C.start(E.current||0,V),o&&o(w.current,V)};return y.jsx(x,{appear:r,in:l,nodeRef:w,onEnter:O,onEntered:A,onEntering:j,onExit:v,onExited:D,onExiting:I,addEndListener:k,timeout:h==="auto"?null:h,...T,children:(V,{ownerState:$,...W})=>R.cloneElement(s,{style:{opacity:0,transform:Ms(.75),visibility:V==="exited"&&!l?"hidden":void 0,...uC[V],...m,...s.props.style},ref:S,...W})})});process.env.NODE_ENV!=="production"&&(Co.propTypes={addEndListener:i.func,appear:i.bool,children:Xn.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});Co&&(Co.muiSupportAuto=!0);function dC(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function pC(e){const t=Ct(e);return t.body===e?Jt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ho(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function qc(e){return parseFloat(Jt(e).getComputedStyle(e).paddingRight)||0}function fC(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function Gc(e,t,n,o,r){const s=[t,n,...o];[].forEach.call(e.children,a=>{const l=!s.includes(a),c=!fC(a);l&&c&&ho(a,r)})}function Ni(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function hC(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(pC(o)){const a=dC(Jt(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${qc(o)+a}px`;const l=Ct(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${qc(c)+a}px`})}let s;if(o.parentNode instanceof DocumentFragment)s=Ct(o).body;else{const a=o.parentElement,l=Jt(o);s=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}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 mC(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class gC{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&ho(t.modalRef,!1);const r=mC(n);Gc(n,t.mount,t.modalRef,r,!0);const s=Ni(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=Ni(this.containers,s=>s.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=hC(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=Ni(this.containers,a=>a.modals.includes(t)),s=this.containers[r];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(o,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&ho(t.modalRef,n),Gc(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&ho(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ko(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const yC=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function vC(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 bC(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function xC(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||bC(e))}function wC(e){const t=[],n=[];return Array.from(e.querySelectorAll(yC)).forEach((o,r)=>{const s=vC(o);s===-1||!xC(o)||(s===0?t.push(o):n.push({documentOrder:r,tabIndex:s,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function TC(){return!0}function Ar(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:s=wC,isEnabled:a=TC,open:l}=e,c=R.useRef(!1),u=R.useRef(null),d=R.useRef(null),p=R.useRef(null),f=R.useRef(null),g=R.useRef(!1),m=R.useRef(null),h=et(Bo(t),m),x=R.useRef(null);R.useEffect(()=>{!l||!m.current||(g.current=!n)},[n,l]),R.useEffect(()=>{if(!l||!m.current)return;const E=Ct(m.current),b=Ko(E);return m.current.contains(b)||(m.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
259
+ `)),m.current.setAttribute("tabIndex","-1")),g.current&&m.current.focus()),()=>{r||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),R.useEffect(()=>{if(!l||!m.current)return;const E=Ct(m.current),b=M=>{if(x.current=M,o||!a()||M.key!=="Tab")return;Ko(E)===m.current&&M.shiftKey&&(c.current=!0,d.current&&d.current.focus())},w=()=>{const M=m.current;if(M===null)return;const j=Ko(E);if(!E.hasFocus()||!a()||c.current){c.current=!1;return}if(M.contains(j)||o&&j!==u.current&&j!==d.current)return;if(j!==f.current)f.current=null;else if(f.current!==null)return;if(!g.current)return;let O=[];if((j===u.current||j===d.current)&&(O=s(m.current)),O.length>0){const A=!!(x.current?.shiftKey&&x.current?.key==="Tab"),I=O[0],v=O[O.length-1];typeof I!="string"&&typeof v!="string"&&(A?v.focus():I.focus())}else M.focus()};E.addEventListener("focusin",w),E.addEventListener("keydown",b,!0);const S=setInterval(()=>{const M=Ko(E);M&&M.tagName==="BODY"&&w()},50);return()=>{clearInterval(S),E.removeEventListener("focusin",w),E.removeEventListener("keydown",b,!0)}},[n,o,r,a,l,s]);const T=E=>{p.current===null&&(p.current=E.relatedTarget),g.current=!0,f.current=E.target;const b=t.props.onFocus;b&&b(E)},C=E=>{p.current===null&&(p.current=E.relatedTarget),g.current=!0};return y.jsxs(R.Fragment,{children:[y.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),R.cloneElement(t,{ref:h,onFocus:T}),y.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ar.propTypes={children:Xn,disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableRestoreFocus:i.bool,getTabbable:i.func,isEnabled:i.func,open:i.bool.isRequired});process.env.NODE_ENV!=="production"&&(Ar.propTypes=Pu(Ar.propTypes));function CC(e){return typeof e=="function"?e():e}const So=R.forwardRef(function(t,n){const{children:o,container:r,disablePortal:s=!1}=t,[a,l]=R.useState(null),c=et(R.isValidElement(o)?Bo(o):null,n);if(Zt(()=>{s||l(CC(r)||document.body)},[r,s]),Zt(()=>{if(a&&!s)return bl(n,a),()=>{bl(n,null)}},[n,a,s]),s){if(R.isValidElement(o)){const u={ref:c};return R.cloneElement(o,u)}return o}return a&&Yf.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(So.propTypes={children:i.node,container:i.oneOfType([tn,i.func]),disablePortal:i.bool});process.env.NODE_ENV!=="production"&&(So.propTypes=Pu(So.propTypes));const SC={entering:{opacity:1},entered:{opacity:1}},xf=R.forwardRef(function(t,n){const o=st(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:f,onExit:g,onExited:m,onExiting:h,style:x,timeout:T=r,TransitionComponent:C=St,...E}=t,b=R.useRef(null),w=et(b,Bo(l),n),S=k=>V=>{if(k){const $=b.current;V===void 0?k($):k($,V)}},M=S(f),j=S((k,V)=>{Td(k);const $=Ln({style:x,timeout:T,easing:c},{mode:"enter"});k.style.webkitTransition=o.transitions.create("opacity",$),k.style.transition=o.transitions.create("opacity",$),d&&d(k,V)}),O=S(p),A=S(h),I=S(k=>{const V=Ln({style:x,timeout:T,easing:c},{mode:"exit"});k.style.webkitTransition=o.transitions.create("opacity",V),k.style.transition=o.transitions.create("opacity",V),g&&g(k)}),v=S(m),D=k=>{s&&s(b.current,k)};return y.jsx(C,{appear:a,in:u,nodeRef:b,onEnter:j,onEntered:O,onEntering:M,onExit:I,onExited:v,onExiting:A,addEndListener:D,timeout:T,...E,children:(k,{ownerState:V,...$})=>R.cloneElement(l,{style:{opacity:0,visibility:k==="exited"&&!u?"hidden":void 0,...SC[k],...x,...l.props.style},ref:w,...$})})});process.env.NODE_ENV!=="production"&&(xf.propTypes={addEndListener:i.func,appear:i.bool,children:Xn.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function EC(e){return ke("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const PC=e=>{const{classes:t,invisible:n}=e;return Ne({root:["root",n&&"invisible"]},EC,t)},RC=oe("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"}}]}),wf=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiBackdrop"}),{children:r,className:s,component:a="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:p={},slots:f={},TransitionComponent:g,transitionDuration:m,...h}=o,x={...o,component:a,invisible:l},T=PC(x),C={transition:g,root:u.Root,...f},E={...d,...p},b={component:a,slots:C,slotProps:E},[w,S]=Te("root",{elementType:RC,externalForwardedProps:b,className:de(T.root,s),ownerState:x}),[M,j]=Te("transition",{elementType:xf,externalForwardedProps:b,ownerState:x});return y.jsx(M,{in:c,timeout:m,...h,...j,children:y.jsx(w,{"aria-hidden":!0,...S,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(wf.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.object}),invisible:i.bool,open:i.bool.isRequired,slotProps:i.shape({root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function OC(e){return typeof e=="function"?e():e}function AC(e){return e?e.props.hasOwnProperty("in"):!1}const Yc=()=>{},Xo=new gC;function MC(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,p=R.useRef({}),f=R.useRef(null),g=R.useRef(null),m=et(g,d),[h,x]=R.useState(!u),T=AC(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const E=()=>Ct(f.current),b=()=>(p.current.modalRef=g.current,p.current.mount=f.current,p.current),w=()=>{Xo.mount(b(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},S=Nt(()=>{const V=OC(t)||E().body;Xo.add(b(),V),g.current&&w()}),M=()=>Xo.isTopModal(b()),j=Nt(V=>{f.current=V,V&&(u&&M()?w():g.current&&ho(g.current,C))}),O=R.useCallback(()=>{Xo.remove(b(),C)},[C]);R.useEffect(()=>()=>{O()},[O]),R.useEffect(()=>{u?S():(!T||!r)&&O()},[u,O,T,r,S]);const A=V=>$=>{V.onKeyDown?.($),!($.key!=="Escape"||$.which===229||!M())&&(n||($.stopPropagation(),c&&c($,"escapeKeyDown")))},I=V=>$=>{V.onClick?.($),$.target===$.currentTarget&&c&&c($,"backdropClick")};return{getRootProps:(V={})=>{const $=Ju(e);delete $.onTransitionEnter,delete $.onTransitionExited;const W={...$,...V};return{role:"presentation",...W,onKeyDown:A(W),ref:m}},getBackdropProps:(V={})=>{const $=V;return{"aria-hidden":!0,...$,onClick:I($),open:u}},getTransitionProps:()=>{const V=()=>{x(!1),s&&s()},$=()=>{x(!0),a&&a(),r&&O()};return{onEnter:Ka(V,l?.props.onEnter??Yc),onExited:Ka($,l?.props.onExited??Yc)}},rootRef:m,portalRef:j,isTopModal:M,exited:h,hasTransition:T}}function kC(e){return ke("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const jC=e=>{const{open:t,exited:n,classes:o}=e;return Ne({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},kC,o)},$C=oe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Se(({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"}}]}))),IC=oe(wf,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Tf=R.forwardRef(function(t,n){const o=De({name:"MuiModal",props:t}),{BackdropComponent:r=IC,BackdropProps:s,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:p,components:f={},componentsProps:g={},disableAutoFocus:m=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:x=!1,disablePortal:T=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:b=!1,keepMounted:w=!1,onClose:S,onTransitionEnter:M,onTransitionExited:j,open:O,slotProps:A={},slots:I={},theme:v,...D}=o,k={...o,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:h,disableEscapeKeyDown:x,disablePortal:T,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:b,keepMounted:w},{getRootProps:V,getBackdropProps:$,getTransitionProps:W,portalRef:B,isTopModal:_,exited:P,hasTransition:L}=MC({...k,rootRef:n}),H={...k,exited:P},q=jC(H),K={};if(u.props.tabIndex===void 0&&(K.tabIndex="-1"),L){const{onEnter:Y,onExited:se}=W();K.onEnter=Y,K.onExited=se}const ee={slots:{root:f.Root,backdrop:f.Backdrop,...I},slotProps:{...g,...A}},[te,ne]=Te("root",{ref:n,elementType:$C,externalForwardedProps:{...ee,...D,component:p},getSlotProps:V,ownerState:H,className:de(l,q?.root,!H.open&&H.exited&&q?.hidden)}),[J,le]=Te("backdrop",{ref:s?.ref,elementType:r,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:Y=>$({...Y,onClick:se=>{Y?.onClick&&Y.onClick(se)}}),className:de(s?.className,q?.backdrop),ownerState:H});return!w&&!O&&(!L||P)?null:y.jsx(So,{ref:B,container:d,disablePortal:T,children:y.jsxs(te,{...ne,children:[!b&&r?y.jsx(J,{...le}):null,y.jsx(Ar,{disableEnforceFocus:h,disableAutoFocus:m,disableRestoreFocus:C,isEnabled:_,open:O,children:R.cloneElement(u,K)})]})})});process.env.NODE_ENV!=="production"&&(Tf.propTypes={BackdropComponent:i.elementType,BackdropProps:i.object,children:Xn.isRequired,classes:i.object,className:i.string,closeAfterTransition:i.bool,component:i.elementType,components:i.shape({Backdrop:i.elementType,Root:i.elementType}),componentsProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([tn,i.func]),disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableEscapeKeyDown:i.bool,disablePortal:i.bool,disableRestoreFocus:i.bool,disableScrollLock:i.bool,hideBackdrop:i.bool,keepMounted:i.bool,onClose:i.func,onTransitionEnter:i.func,onTransitionExited:i.func,open:i.bool.isRequired,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function DC(e){return ke("MuiPopover",e)}je("MuiPopover",["root","paper"]);function Kc(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Xc(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Zc(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function lo(e){return typeof e=="function"?e():e}const BC=e=>{const{classes:t}=e;return Ne({root:["root"],paper:["paper"]},DC,t)},VC=oe(Tf,{name:"MuiPopover",slot:"Root"})({}),NC=oe(Xr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Cf=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiPopover"}),{action:r,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:f=8,marginThreshold:g=16,open:m,PaperProps:h={},slots:x={},slotProps:T={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:b="auto",TransitionProps:w={},disableScrollLock:S=!1,...M}=o,j=R.useRef(),O={...o,anchorOrigin:a,anchorReference:c,elevation:f,marginThreshold:g,transformOrigin:C,TransitionComponent:E,transitionDuration:b,TransitionProps:w},A=BC(O),I=R.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 Y=lo(s),se=Y&&Y.nodeType===1?Y:Ct(j.current).body,z=se.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const pe=se.getBoundingClientRect();process.env.NODE_ENV!=="test"&&pe.top===0&&pe.left===0&&pe.right===0&&pe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
260
+ `))}return{top:z.top+Kc(z,a.vertical),left:z.left+Xc(z,a.horizontal)}},[s,a.horizontal,a.vertical,l,c]),v=R.useCallback(Y=>({vertical:Kc(Y,C.vertical),horizontal:Xc(Y,C.horizontal)}),[C.horizontal,C.vertical]),D=R.useCallback(Y=>{const se={width:Y.offsetWidth,height:Y.offsetHeight},z=v(se);if(c==="none")return{top:null,left:null,transformOrigin:Zc(z)};const pe=I();let ce=pe.top-z.vertical,re=pe.left-z.horizontal;const Ce=ce+se.height,be=re+se.width,me=Jt(lo(s)),we=me.innerHeight-g,Ee=me.innerWidth-g;if(g!==null&&ce<g){const ue=ce-g;ce-=ue,z.vertical+=ue}else if(g!==null&&Ce>we){const ue=Ce-we;ce-=ue,z.vertical+=ue}if(process.env.NODE_ENV!=="production"&&se.height>we&&se.height&&we&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${se.height-we}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
261
+ `)),g!==null&&re<g){const ue=re-g;re-=ue,z.horizontal+=ue}else if(be>Ee){const ue=be-Ee;re-=ue,z.horizontal+=ue}return{top:`${Math.round(ce)}px`,left:`${Math.round(re)}px`,transformOrigin:Zc(z)}},[s,c,I,v,g]),[k,V]=R.useState(m),$=R.useCallback(()=>{const Y=j.current;if(!Y)return;const se=D(Y);se.top!==null&&Y.style.setProperty("top",se.top),se.left!==null&&(Y.style.left=se.left),Y.style.transformOrigin=se.transformOrigin,V(!0)},[D]);R.useEffect(()=>(S&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[s,S,$]);const W=()=>{$()},B=()=>{V(!1)};R.useEffect(()=>{m&&$()}),R.useImperativeHandle(r,()=>m?{updatePosition:()=>{$()}}:null,[m,$]),R.useEffect(()=>{if(!m)return;const Y=Lu(()=>{$()}),se=Jt(lo(s));return se.addEventListener("resize",Y),()=>{Y.clear(),se.removeEventListener("resize",Y)}},[s,m,$]);let _=b;const P={slots:{transition:E,...x},slotProps:{transition:w,paper:h,...T}},[L,H]=Te("transition",{elementType:Co,externalForwardedProps:P,ownerState:O,getSlotProps:Y=>({...Y,onEntering:(se,z)=>{Y.onEntering?.(se,z),W()},onExited:se=>{Y.onExited?.(se),B()}}),additionalProps:{appear:!0,in:m}});b==="auto"&&!L.muiSupportAuto&&(_=void 0);const q=p||(s?Ct(lo(s)).body:void 0),[K,{slots:ee,slotProps:te,...ne}]=Te("root",{ref:n,elementType:VC,externalForwardedProps:{...P,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:x.backdrop},slotProps:{backdrop:Pg(typeof T.backdrop=="function"?T.backdrop(O):T.backdrop,{invisible:!0})},container:q,open:m},ownerState:O,className:de(A.root,d)}),[J,le]=Te("paper",{ref:j,className:A.paper,elementType:NC,externalForwardedProps:P,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:k?void 0:{opacity:0}},ownerState:O});return y.jsx(K,{...ne,...!vr(K)&&{slots:ee,slotProps:te,disableScrollLock:S},children:y.jsx(L,{...H,timeout:_,children:y.jsx(J,{...le,children:u})})})});process.env.NODE_ENV!=="production"&&(Cf.propTypes={action:ko,anchorEl:vt(i.oneOfType([tn,i.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=lo(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(`
262
262
  `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
263
- `))}return null}),anchorOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),anchorPosition:i.shape({left:i.number.isRequired,top:i.number.isRequired}),anchorReference:i.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,container:i.oneOfType([tn,i.func]),disableScrollLock:i.bool,elevation:ud,marginThreshold:i.number,onClose:i.func,open:i.bool.isRequired,PaperProps:i.shape({component:qr}),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transformOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});var rt="top",mt="bottom",gt="right",it="left",Oa="auto",Vo=[rt,mt,gt,it],_n="start",Eo="end",NC="clippingParents",Cf="viewport",to="popper",LC="reference",Zc=Vo.reduce(function(e,t){return e.concat([t+"-"+_n,t+"-"+Eo])},[]),Sf=[].concat(Vo,[Oa]).reduce(function(e,t){return e.concat([t,t+"-"+_n,t+"-"+Eo])},[]),FC="beforeRead",zC="read",_C="afterRead",WC="beforeMain",UC="main",HC="afterMain",qC="beforeWrite",GC="write",YC="afterWrite",KC=[FC,zC,_C,WC,UC,HC,qC,GC,YC];function $t(e){return e?(e.nodeName||"").toLowerCase():null}function ct(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Tn(e){var t=ct(e).Element;return e instanceof t||e instanceof Element}function ht(e){var t=ct(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Aa(e){if(typeof ShadowRoot>"u")return!1;var t=ct(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function XC(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},s=t.elements[n];!ht(s)||!$t(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function ZC(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(o){var r=t.elements[o],s=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!ht(r)||!$t(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}const JC={name:"applyStyles",enabled:!0,phase:"write",fn:XC,effect:ZC,requires:["computeStyles"]};function kt(e){return e.split("-")[0]}var wn=Math.max,Mr=Math.min,Wn=Math.round;function ks(){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 Ef(){return!/^((?!chrome|android).)*safari/i.test(ks())}function Un(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,s=1;t&&ht(e)&&(r=e.offsetWidth>0&&Wn(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Wn(o.height)/e.offsetHeight||1);var a=Tn(e)?ct(e):window,l=a.visualViewport,c=!Ef()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/r,d=(o.top+(c&&l?l.offsetTop:0))/s,p=o.width/r,f=o.height/s;return{width:p,height:f,top:d,right:u+p,bottom:d+f,left:u,x:u,y:d}}function Ma(e){var t=Un(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Pf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Aa(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function _t(e){return ct(e).getComputedStyle(e)}function QC(e){return["table","td","th"].indexOf($t(e))>=0}function rn(e){return((Tn(e)?e.ownerDocument:e.document)||window.document).documentElement}function ti(e){return $t(e)==="html"?e:e.assignedSlot||e.parentNode||(Aa(e)?e.host:null)||rn(e)}function Jc(e){return!ht(e)||_t(e).position==="fixed"?null:e.offsetParent}function eS(e){var t=/firefox/i.test(ks()),n=/Trident/i.test(ks());if(n&&ht(e)){var o=_t(e);if(o.position==="fixed")return null}var r=ti(e);for(Aa(r)&&(r=r.host);ht(r)&&["html","body"].indexOf($t(r))<0;){var s=_t(r);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 r;r=r.parentNode}return null}function No(e){for(var t=ct(e),n=Jc(e);n&&QC(n)&&_t(n).position==="static";)n=Jc(n);return n&&($t(n)==="html"||$t(n)==="body"&&_t(n).position==="static")?t:n||eS(e)||t}function ka(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mo(e,t,n){return wn(e,Mr(t,n))}function tS(e,t,n){var o=mo(e,t,n);return o>n?n:o}function Rf(){return{top:0,right:0,bottom:0,left:0}}function Of(e){return Object.assign({},Rf(),e)}function Af(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var nS=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Of(typeof t!="number"?t:Af(t,Vo))};function oS(e){var t,n=e.state,o=e.name,r=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=kt(n.placement),c=ka(l),u=[it,gt].indexOf(l)>=0,d=u?"height":"width";if(!(!s||!a)){var p=nS(r.padding,n),f=Ma(s),g=c==="y"?rt:it,m=c==="y"?mt:gt,h=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],x=a[c]-n.rects.reference[c],T=No(s),C=T?c==="y"?T.clientHeight||0:T.clientWidth||0:0,E=h/2-x/2,b=p[g],w=C-f[d]-p[m],S=C/2-f[d]/2+E,M=mo(b,S,w),j=c;n.modifiersData[o]=(t={},t[j]=M,t.centerOffset=M-S,t)}}function rS(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||Pf(t.elements.popper,r)&&(t.elements.arrow=r))}const iS={name:"arrow",enabled:!0,phase:"main",fn:oS,effect:rS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hn(e){return e.split("-")[1]}var sS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aS(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Wn(n*r)/r||0,y:Wn(o*r)/r||0}}function Qc(e){var t,n=e.popper,o=e.popperRect,r=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,g=f===void 0?0:f,m=a.y,h=m===void 0?0:m,x=typeof d=="function"?d({x:g,y:h}):{x:g,y:h};g=x.x,h=x.y;var T=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),E=it,b=rt,w=window;if(u){var S=No(n),M="clientHeight",j="clientWidth";if(S===ct(n)&&(S=rn(n),_t(S).position!=="static"&&l==="absolute"&&(M="scrollHeight",j="scrollWidth")),S=S,r===rt||(r===it||r===gt)&&s===Eo){b=mt;var O=p&&S===w&&w.visualViewport?w.visualViewport.height:S[M];h-=O-o.height,h*=c?1:-1}if(r===it||(r===rt||r===mt)&&s===Eo){E=gt;var A=p&&S===w&&w.visualViewport?w.visualViewport.width:S[j];g-=A-o.width,g*=c?1:-1}}var I=Object.assign({position:l},u&&sS),v=d===!0?aS({x:g,y:h},ct(n)):{x:g,y:h};if(g=v.x,h=v.y,c){var D;return Object.assign({},I,(D={},D[b]=C?"0":"",D[E]=T?"0":"",D.transform=(w.devicePixelRatio||1)<=1?"translate("+g+"px, "+h+"px)":"translate3d("+g+"px, "+h+"px, 0)",D))}return Object.assign({},I,(t={},t[b]=C?h+"px":"",t[E]=T?g+"px":"",t.transform="",t))}function lS(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:kt(t.placement),variation:Hn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Qc(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,Qc(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 cS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lS,data:{}};var Zo={passive:!0};function uS(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,s=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=ct(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Zo)}),l&&c.addEventListener("resize",n.update,Zo),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Zo)}),l&&c.removeEventListener("resize",n.update,Zo)}}const dS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uS,data:{}};var pS={left:"right",right:"left",bottom:"top",top:"bottom"};function ur(e){return e.replace(/left|right|bottom|top/g,function(t){return pS[t]})}var fS={start:"end",end:"start"};function eu(e){return e.replace(/start|end/g,function(t){return fS[t]})}function ja(e){var t=ct(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function $a(e){return Un(rn(e)).left+ja(e).scrollLeft}function hS(e,t){var n=ct(e),o=rn(e),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;var u=Ef();(u||!u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l+$a(e),y:c}}function mS(e){var t,n=rn(e),o=ja(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=wn(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=wn(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+$a(e),c=-o.scrollTop;return _t(r||n).direction==="rtl"&&(l+=wn(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function Ia(e){var t=_t(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function Mf(e){return["html","body","#document"].indexOf($t(e))>=0?e.ownerDocument.body:ht(e)&&Ia(e)?e:Mf(ti(e))}function go(e,t){var n;t===void 0&&(t=[]);var o=Mf(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),s=ct(o),a=r?[s].concat(s.visualViewport||[],Ia(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(go(ti(a)))}function js(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function gS(e,t){var n=Un(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 tu(e,t,n){return t===Cf?js(hS(e,n)):Tn(t)?gS(t,n):js(mS(rn(e)))}function yS(e){var t=go(ti(e)),n=["absolute","fixed"].indexOf(_t(e).position)>=0,o=n&&ht(e)?No(e):e;return Tn(o)?t.filter(function(r){return Tn(r)&&Pf(r,o)&&$t(r)!=="body"}):[]}function vS(e,t,n,o){var r=t==="clippingParents"?yS(e):[].concat(t),s=[].concat(r,[n]),a=s[0],l=s.reduce(function(c,u){var d=tu(e,u,o);return c.top=wn(d.top,c.top),c.right=Mr(d.right,c.right),c.bottom=Mr(d.bottom,c.bottom),c.left=wn(d.left,c.left),c},tu(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function kf(e){var t=e.reference,n=e.element,o=e.placement,r=o?kt(o):null,s=o?Hn(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(r){case rt:c={x:a,y:t.y-n.height};break;case mt:c={x:a,y:t.y+t.height};break;case gt:c={x:t.x+t.width,y:l};break;case it:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=r?ka(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case _n:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Eo:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Po(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,s=n.strategy,a=s===void 0?e.strategy:s,l=n.boundary,c=l===void 0?NC:l,u=n.rootBoundary,d=u===void 0?Cf:u,p=n.elementContext,f=p===void 0?to:p,g=n.altBoundary,m=g===void 0?!1:g,h=n.padding,x=h===void 0?0:h,T=Of(typeof x!="number"?x:Af(x,Vo)),C=f===to?LC:to,E=e.rects.popper,b=e.elements[m?C:f],w=vS(Tn(b)?b:b.contextElement||rn(e.elements.popper),c,d,a),S=Un(e.elements.reference),M=kf({reference:S,element:E,placement:r}),j=js(Object.assign({},E,M)),O=f===to?j:S,A={top:w.top-O.top+T.top,bottom:O.bottom-w.bottom+T.bottom,left:w.left-O.left+T.left,right:O.right-w.right+T.right},I=e.modifiersData.offset;if(f===to&&I){var v=I[r];Object.keys(A).forEach(function(D){var k=[gt,mt].indexOf(D)>=0?1:-1,V=[rt,mt].indexOf(D)>=0?"y":"x";A[D]+=v[V]*k})}return A}function bS(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Sf:c,d=Hn(o),p=d?l?Zc:Zc.filter(function(m){return Hn(m)===d}):Vo,f=p.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=p);var g=f.reduce(function(m,h){return m[h]=Po(e,{placement:h,boundary:r,rootBoundary:s,padding:a})[kt(h)],m},{});return Object.keys(g).sort(function(m,h){return g[m]-g[h]})}function xS(e){if(kt(e)===Oa)return[];var t=ur(e);return[eu(e),t,eu(t)]}function wS(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,m=g===void 0?!0:g,h=n.allowedAutoPlacements,x=t.options.placement,T=kt(x),C=T===x,E=c||(C||!m?[ur(x)]:xS(x)),b=[x].concat(E).reduce(function(K,ee){return K.concat(kt(ee)===Oa?bS(t,{placement:ee,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:h}):ee)},[]),w=t.rects.reference,S=t.rects.popper,M=new Map,j=!0,O=b[0],A=0;A<b.length;A++){var I=b[A],v=kt(I),D=Hn(I)===_n,k=[rt,mt].indexOf(v)>=0,V=k?"width":"height",$=Po(t,{placement:I,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),W=k?D?gt:it:D?mt:rt;w[V]>S[V]&&(W=ur(W));var B=ur(W),_=[];if(s&&_.push($[v]<=0),l&&_.push($[W]<=0,$[B]<=0),_.every(function(K){return K})){O=I,j=!1;break}M.set(I,_)}if(j)for(var P=m?3:1,L=function(ee){var te=b.find(function(ne){var J=M.get(ne);if(J)return J.slice(0,ee).every(function(le){return le})});if(te)return O=te,"break"},H=P;H>0;H--){var q=L(H);if(q==="break")break}t.placement!==O&&(t.modifiersData[o]._skip=!0,t.placement=O,t.reset=!0)}}const TS={name:"flip",enabled:!0,phase:"main",fn:wS,requiresIfExists:["offset"],data:{_skip:!1}};function nu(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 ou(e){return[rt,gt,mt,it].some(function(t){return e[t]>=0})}function CS(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,a=Po(t,{elementContext:"reference"}),l=Po(t,{altBoundary:!0}),c=nu(a,o),u=nu(l,r,s),d=ou(c),p=ou(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 SS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:CS};function ES(e,t,n){var o=kt(e),r=[it,rt].indexOf(o)>=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)*r,[it,gt].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function PS(e){var t=e.state,n=e.options,o=e.name,r=n.offset,s=r===void 0?[0,0]:r,a=Sf.reduce(function(d,p){return d[p]=ES(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[o]=a}const RS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:PS};function OS(e){var t=e.state,n=e.name;t.modifiersData[n]=kf({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const AS={name:"popperOffsets",enabled:!0,phase:"read",fn:OS,data:{}};function MS(e){return e==="x"?"y":"x"}function kS(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,g=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,x=Po(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),T=kt(t.placement),C=Hn(t.placement),E=!C,b=ka(T),w=MS(b),S=t.modifiersData.popperOffsets,M=t.rects.reference,j=t.rects.popper,O=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,A=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,v={x:0,y:0};if(S){if(s){var D,k=b==="y"?rt:it,V=b==="y"?mt:gt,$=b==="y"?"height":"width",W=S[b],B=W+x[k],_=W-x[V],P=g?-j[$]/2:0,L=C===_n?M[$]:j[$],H=C===_n?-j[$]:-M[$],q=t.elements.arrow,K=g&&q?Ma(q):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Rf(),te=ee[k],ne=ee[V],J=mo(0,M[$],K[$]),le=E?M[$]/2-P-J-te-A.mainAxis:L-J-te-A.mainAxis,Y=E?-M[$]/2+P+J+ne+A.mainAxis:H+J+ne+A.mainAxis,se=t.elements.arrow&&No(t.elements.arrow),z=se?b==="y"?se.clientTop||0:se.clientLeft||0:0,pe=(D=I?.[b])!=null?D:0,ce=W+le-pe-z,re=W+Y-pe,Ce=mo(g?Mr(B,ce):B,W,g?wn(_,re):_);S[b]=Ce,v[b]=Ce-W}if(l){var be,me=b==="x"?rt:it,we=b==="x"?mt:gt,Ee=S[w],ue=w==="y"?"height":"width",X=Ee+x[me],U=Ee-x[we],Q=[rt,it].indexOf(T)!==-1,fe=(be=I?.[w])!=null?be:0,he=Q?X:Ee-M[ue]-j[ue]-fe+A.altAxis,Pe=Q?Ee+M[ue]+j[ue]-fe-A.altAxis:U,Le=g&&Q?tS(he,Ee,Pe):mo(g?he:X,Ee,g?Pe:U);S[w]=Le,v[w]=Le-Ee}t.modifiersData[o]=v}}const jS={name:"preventOverflow",enabled:!0,phase:"main",fn:kS,requiresIfExists:["offset"]};function $S(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function IS(e){return e===ct(e)||!ht(e)?ja(e):$S(e)}function DS(e){var t=e.getBoundingClientRect(),n=Wn(t.width)/e.offsetWidth||1,o=Wn(t.height)/e.offsetHeight||1;return n!==1||o!==1}function BS(e,t,n){n===void 0&&(n=!1);var o=ht(t),r=ht(t)&&DS(t),s=rn(t),a=Un(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&(($t(t)!=="body"||Ia(s))&&(l=IS(t)),ht(t)?(c=Un(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=$a(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function VS(e){var t=new Map,n=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function r(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&&r(c)}}),o.push(s)}return e.forEach(function(s){n.has(s.name)||r(s)}),o}function NS(e){var t=VS(e);return KC.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function LS(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function FS(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var ru={placement:"bottom",modifiers:[],strategy:"absolute"};function iu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function zS(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,s=r===void 0?ru:r;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},ru,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],f=!1,g={state:d,setOptions:function(T){var C=typeof T=="function"?T(d.options):T;h(),d.options=Object.assign({},s,d.options,C),d.scrollParents={reference:Tn(l)?go(l):l.contextElement?go(l.contextElement):[],popper:go(c)};var E=NS(FS([].concat(o,d.options.modifiers)));return d.orderedModifiers=E.filter(function(b){return b.enabled}),m(),g.update()},forceUpdate:function(){if(!f){var T=d.elements,C=T.reference,E=T.popper;if(iu(C,E)){d.rects={reference:BS(C,No(E),d.options.strategy==="fixed"),popper:Ma(E)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(A){return d.modifiersData[A.name]=Object.assign({},A.data)});for(var b=0;b<d.orderedModifiers.length;b++){if(d.reset===!0){d.reset=!1,b=-1;continue}var w=d.orderedModifiers[b],S=w.fn,M=w.options,j=M===void 0?{}:M,O=w.name;typeof S=="function"&&(d=S({state:d,options:j,name:O,instance:g})||d)}}}},update:LS(function(){return new Promise(function(x){g.forceUpdate(),x(d)})}),destroy:function(){h(),f=!0}};if(!iu(l,c))return g;g.setOptions(u).then(function(x){!f&&u.onFirstUpdate&&u.onFirstUpdate(x)});function m(){d.orderedModifiers.forEach(function(x){var T=x.name,C=x.options,E=C===void 0?{}:C,b=x.effect;if(typeof b=="function"){var w=b({state:d,name:T,instance:g,options:E}),S=function(){};p.push(w||S)}})}function h(){p.forEach(function(x){return x()}),p=[]}return g}}var _S=[dS,AS,cS,JC,RS,TS,jS,iS,SS],WS=zS({defaultModifiers:_S});function US(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...s}=e,a=r?{}:Xu(n,o),{props:l,internalRef:c}=Ju({...s,externalSlotProps:a}),u=et(c,a?.ref,e.additionalProps?.ref);return Ku(t,{...l,ref:u},o)}function HS(e){return ke("MuiPopper",e)}je("MuiPopper",["root"]);function qS(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 kr(e){return typeof e=="function"?e():e}function ni(e){return e.nodeType!==void 0}function GS(e){return!ni(e)}const YS=e=>{const{classes:t}=e;return Ne({root:["root"]},HS,t)},KS={},XS=R.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:s,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:f={},slots:g={},TransitionProps:m,ownerState:h,...x}=t,T=R.useRef(null),C=et(T,n),E=R.useRef(null),b=et(E,p),w=R.useRef(b);Zt(()=>{w.current=b},[b]),R.useImperativeHandle(p,()=>E.current,[]);const S=qS(u,s),[M,j]=R.useState(S),[O,A]=R.useState(kr(o));R.useEffect(()=>{E.current&&E.current.forceUpdate()}),R.useEffect(()=>{o&&A(kr(o))},[o]),Zt(()=>{if(!O||!c)return;const V=B=>{j(B.placement)};if(process.env.NODE_ENV!=="production"&&O&&ni(O)&&O.nodeType===1){const B=O.getBoundingClientRect();process.env.NODE_ENV!=="test"&&B.top===0&&B.left===0&&B.right===0&&B.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
264
- `))}let $=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{V(B)}}];l!=null&&($=$.concat(l)),d&&d.modifiers!=null&&($=$.concat(d.modifiers));const W=WS(O,T.current,{placement:S,...d,modifiers:$});return w.current(W),()=>{W.destroy(),w.current(null)}},[O,a,l,c,d,S]);const I={placement:M};m!==null&&(I.TransitionProps=m);const v=YS(t),D=g.root??"div",k=US({elementType:D,externalSlotProps:f.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:v.root});return y.jsx(D,{...k,children:typeof r=="function"?r(I):r})}),jf=R.forwardRef(function(t,n){const{anchorEl:o,children:r,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:f=KS,popperRef:g,style:m,transition:h=!1,slotProps:x={},slots:T={},...C}=t,[E,b]=R.useState(!0),w=()=>{b(!1)},S=()=>{b(!0)};if(!c&&!d&&(!h||E))return null;let M;if(s)M=s;else if(o){const A=kr(o);M=A&&ni(A)?Ct(A).body:Ct(null).body}const j=!d&&c&&(!h||E)?"none":void 0,O=h?{in:d,onEnter:w,onExited:S}:void 0;return y.jsx(So,{disablePortal:l,container:M,children:y.jsx(XS,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:h?!E:d,placement:p,popperOptions:f,popperRef:g,slotProps:x,slots:T,...C,style:{position:"fixed",top:0,left:0,display:j,...m},TransitionProps:O,children:r})})});process.env.NODE_ENV!=="production"&&(jf.propTypes={anchorEl:vt(i.oneOfType([tn,i.object,i.func]),e=>{if(e.open){const t=kr(e.anchorEl);if(t&&ni(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(`
265
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||GS(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
266
- `))}return null}),children:i.oneOfType([i.node,i.func]),container:i.oneOfType([tn,i.func]),direction:i.oneOf(["ltr","rtl"]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.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:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.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:i.oneOf(["absolute","fixed"])}),popperRef:ko,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),transition:i.bool});const ZS=oe(jf,{name:"MuiPopper",slot:"Root"})({}),Da=R.forwardRef(function(t,n){const o=Ur(),r=De({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:f,open:g,placement:m,popperOptions:h,popperRef:x,transition:T,slots:C,slotProps:E,...b}=r,w=C?.root??l?.Root,S={anchorEl:s,container:u,disablePortal:d,keepMounted:p,modifiers:f,open:g,placement:m,popperOptions:h,popperRef:x,transition:T,...b};return y.jsx(ZS,{as:a,direction:o?"rtl":"ltr",slots:{root:w},slotProps:E??c,...S,ref:n})});process.env.NODE_ENV!=="production"&&(Da.propTypes={anchorEl:i.oneOfType([tn,i.object,i.func]),children:i.oneOfType([i.node,i.func]),component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([tn,i.func]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.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:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.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:i.oneOf(["absolute","fixed"])}),popperRef:ko,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transition:i.bool});function JS(e){return ke("MuiTooltip",e)}const qe=je("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function QS(e){return Math.round(e*1e5)/1e5}const eE=e=>{const{classes:t,disableInteractive:n,arrow:o,touch:r,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",r&&"touch",`tooltipPlacement${Z(s.split("-")[0])}`],arrow:["arrow"]};return Ne(a,JS,t)},tE=oe(Da,{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]}})(Se(({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"] .${qe.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qe.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),nE=oe("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])}`]]}})(Se(({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,[`.${qe.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${qe.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${qe.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:`${QS(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),oE=oe("span",{name:"MuiTooltip",slot:"Arrow"})(Se(({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 Jo=!1;const su=new Gr;let no={x:0,y:0};function Qo(e,t){return(n,...o)=>{t&&t(n,...o),e(n,...o)}}const $s=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:s,classes:a,components:l={},componentsProps:c={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:f=!1,disableTouchListener:g=!1,enterDelay:m=100,enterNextDelay:h=0,enterTouchDelay:x=700,followCursor:T=!1,id:C,leaveDelay:E=0,leaveTouchDelay:b=1500,onClose:w,onOpen:S,open:M,placement:j="bottom",PopperComponent:O,PopperProps:A={},slotProps:I={},slots:v={},title:D,TransitionComponent:k,TransitionProps:V,...$}=o,W=R.isValidElement(s)?s:y.jsx("span",{children:s}),B=st(),_=Ur(),[P,L]=R.useState(),[H,q]=R.useState(null),K=R.useRef(!1),ee=f||T,te=hn(),ne=hn(),J=hn(),le=hn(),[Y,se]=Lu({controlled:M,default:!1,name:"Tooltip",state:"open"});let z=Y;if(process.env.NODE_ENV!=="production"){const{current:ge}=R.useRef(M!==void 0);R.useEffect(()=>{P&&P.disabled&&!ge&&D!==""&&P.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
267
- `))},[D,P,ge])}const pe=Mo(C),ce=R.useRef(),re=Nt(()=>{ce.current!==void 0&&(document.body.style.WebkitUserSelect=ce.current,ce.current=void 0),le.clear()});R.useEffect(()=>re,[re]);const Ce=ge=>{su.clear(),Jo=!0,se(!0),S&&!z&&S(ge)},be=Nt(ge=>{su.start(800+E,()=>{Jo=!1}),se(!1),w&&z&&w(ge),te.start(B.transitions.duration.shortest,()=>{K.current=!1})}),me=ge=>{K.current&&ge.type!=="touchstart"||(P&&P.removeAttribute("title"),ne.clear(),J.clear(),m||Jo&&h?ne.start(Jo?h:m,()=>{Ce(ge)}):Ce(ge))},we=ge=>{ne.clear(),J.start(E,()=>{be(ge)})},[,Ee]=R.useState(!1),ue=ge=>{Nn(ge.target)||(Ee(!1),we(ge))},X=ge=>{P||L(ge.currentTarget),Nn(ge.target)&&(Ee(!0),me(ge))},U=ge=>{K.current=!0;const Ut=W.props;Ut.onTouchStart&&Ut.onTouchStart(ge)},Q=ge=>{U(ge),J.clear(),te.clear(),re(),ce.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.start(x,()=>{document.body.style.WebkitUserSelect=ce.current,me(ge)})},fe=ge=>{W.props.onTouchEnd&&W.props.onTouchEnd(ge),re(),J.start(b,()=>{be(ge)})};R.useEffect(()=>{if(!z)return;function ge(Ut){Ut.key==="Escape"&&be(Ut)}return document.addEventListener("keydown",ge),()=>{document.removeEventListener("keydown",ge)}},[be,z]);const he=et(Bo(W),L,n);!D&&D!==0&&(z=!1);const Pe=R.useRef(),Le=ge=>{const Ut=W.props;Ut.onMouseMove&&Ut.onMouseMove(ge),no={x:ge.clientX,y:ge.clientY},Pe.current&&Pe.current.update()},ze={},Dt=typeof D=="string";u?(ze.title=!z&&Dt&&!p?D:null,ze["aria-describedby"]=z?pe:null):(ze["aria-label"]=Dt?D:null,ze["aria-labelledby"]=z&&!Dt?pe:null);const xe={...ze,...$,...W.props,className:de($.className,W.props.className),onTouchStart:U,ref:he,...T?{onMouseMove:Le}:{}};process.env.NODE_ENV!=="production"&&(xe["data-mui-internal-clone-element"]=!0,R.useEffect(()=>{P&&!P.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(`
263
+ `))}return null}),anchorOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),anchorPosition:i.shape({left:i.number.isRequired,top:i.number.isRequired}),anchorReference:i.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,container:i.oneOfType([tn,i.func]),disableScrollLock:i.bool,elevation:dd,marginThreshold:i.number,onClose:i.func,open:i.bool.isRequired,PaperProps:i.shape({component:qr}),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transformOrigin:i.shape({horizontal:i.oneOfType([i.oneOf(["center","left","right"]),i.number]).isRequired,vertical:i.oneOfType([i.oneOf(["bottom","center","top"]),i.number]).isRequired}),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});var rt="top",mt="bottom",gt="right",it="left",Aa="auto",Vo=[rt,mt,gt,it],_n="start",Eo="end",LC="clippingParents",Sf="viewport",to="popper",FC="reference",Jc=Vo.reduce(function(e,t){return e.concat([t+"-"+_n,t+"-"+Eo])},[]),Ef=[].concat(Vo,[Aa]).reduce(function(e,t){return e.concat([t,t+"-"+_n,t+"-"+Eo])},[]),zC="beforeRead",_C="read",WC="afterRead",UC="beforeMain",HC="main",qC="afterMain",GC="beforeWrite",YC="write",KC="afterWrite",XC=[zC,_C,WC,UC,HC,qC,GC,YC,KC];function $t(e){return e?(e.nodeName||"").toLowerCase():null}function ct(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Tn(e){var t=ct(e).Element;return e instanceof t||e instanceof Element}function ht(e){var t=ct(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ma(e){if(typeof ShadowRoot>"u")return!1;var t=ct(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ZC(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},s=t.elements[n];!ht(s)||!$t(s)||(Object.assign(s.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function JC(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(o){var r=t.elements[o],s=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!ht(r)||!$t(r)||(Object.assign(r.style,l),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}const QC={name:"applyStyles",enabled:!0,phase:"write",fn:ZC,effect:JC,requires:["computeStyles"]};function kt(e){return e.split("-")[0]}var wn=Math.max,Mr=Math.min,Wn=Math.round;function ks(){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 Pf(){return!/^((?!chrome|android).)*safari/i.test(ks())}function Un(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,s=1;t&&ht(e)&&(r=e.offsetWidth>0&&Wn(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Wn(o.height)/e.offsetHeight||1);var a=Tn(e)?ct(e):window,l=a.visualViewport,c=!Pf()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/r,d=(o.top+(c&&l?l.offsetTop:0))/s,p=o.width/r,f=o.height/s;return{width:p,height:f,top:d,right:u+p,bottom:d+f,left:u,x:u,y:d}}function ka(e){var t=Un(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Rf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ma(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function _t(e){return ct(e).getComputedStyle(e)}function eS(e){return["table","td","th"].indexOf($t(e))>=0}function rn(e){return((Tn(e)?e.ownerDocument:e.document)||window.document).documentElement}function ti(e){return $t(e)==="html"?e:e.assignedSlot||e.parentNode||(Ma(e)?e.host:null)||rn(e)}function Qc(e){return!ht(e)||_t(e).position==="fixed"?null:e.offsetParent}function tS(e){var t=/firefox/i.test(ks()),n=/Trident/i.test(ks());if(n&&ht(e)){var o=_t(e);if(o.position==="fixed")return null}var r=ti(e);for(Ma(r)&&(r=r.host);ht(r)&&["html","body"].indexOf($t(r))<0;){var s=_t(r);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 r;r=r.parentNode}return null}function No(e){for(var t=ct(e),n=Qc(e);n&&eS(n)&&_t(n).position==="static";)n=Qc(n);return n&&($t(n)==="html"||$t(n)==="body"&&_t(n).position==="static")?t:n||tS(e)||t}function ja(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mo(e,t,n){return wn(e,Mr(t,n))}function nS(e,t,n){var o=mo(e,t,n);return o>n?n:o}function Of(){return{top:0,right:0,bottom:0,left:0}}function Af(e){return Object.assign({},Of(),e)}function Mf(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var oS=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Af(typeof t!="number"?t:Mf(t,Vo))};function rS(e){var t,n=e.state,o=e.name,r=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=kt(n.placement),c=ja(l),u=[it,gt].indexOf(l)>=0,d=u?"height":"width";if(!(!s||!a)){var p=oS(r.padding,n),f=ka(s),g=c==="y"?rt:it,m=c==="y"?mt:gt,h=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],x=a[c]-n.rects.reference[c],T=No(s),C=T?c==="y"?T.clientHeight||0:T.clientWidth||0:0,E=h/2-x/2,b=p[g],w=C-f[d]-p[m],S=C/2-f[d]/2+E,M=mo(b,S,w),j=c;n.modifiersData[o]=(t={},t[j]=M,t.centerOffset=M-S,t)}}function iS(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||Rf(t.elements.popper,r)&&(t.elements.arrow=r))}const sS={name:"arrow",enabled:!0,phase:"main",fn:rS,effect:iS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hn(e){return e.split("-")[1]}var aS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lS(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Wn(n*r)/r||0,y:Wn(o*r)/r||0}}function eu(e){var t,n=e.popper,o=e.popperRect,r=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,g=f===void 0?0:f,m=a.y,h=m===void 0?0:m,x=typeof d=="function"?d({x:g,y:h}):{x:g,y:h};g=x.x,h=x.y;var T=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),E=it,b=rt,w=window;if(u){var S=No(n),M="clientHeight",j="clientWidth";if(S===ct(n)&&(S=rn(n),_t(S).position!=="static"&&l==="absolute"&&(M="scrollHeight",j="scrollWidth")),S=S,r===rt||(r===it||r===gt)&&s===Eo){b=mt;var O=p&&S===w&&w.visualViewport?w.visualViewport.height:S[M];h-=O-o.height,h*=c?1:-1}if(r===it||(r===rt||r===mt)&&s===Eo){E=gt;var A=p&&S===w&&w.visualViewport?w.visualViewport.width:S[j];g-=A-o.width,g*=c?1:-1}}var I=Object.assign({position:l},u&&aS),v=d===!0?lS({x:g,y:h},ct(n)):{x:g,y:h};if(g=v.x,h=v.y,c){var D;return Object.assign({},I,(D={},D[b]=C?"0":"",D[E]=T?"0":"",D.transform=(w.devicePixelRatio||1)<=1?"translate("+g+"px, "+h+"px)":"translate3d("+g+"px, "+h+"px, 0)",D))}return Object.assign({},I,(t={},t[b]=C?h+"px":"",t[E]=T?g+"px":"",t.transform="",t))}function cS(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:kt(t.placement),variation:Hn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,eu(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,eu(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 uS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cS,data:{}};var Zo={passive:!0};function dS(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,s=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=ct(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Zo)}),l&&c.addEventListener("resize",n.update,Zo),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Zo)}),l&&c.removeEventListener("resize",n.update,Zo)}}const pS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dS,data:{}};var fS={left:"right",right:"left",bottom:"top",top:"bottom"};function ur(e){return e.replace(/left|right|bottom|top/g,function(t){return fS[t]})}var hS={start:"end",end:"start"};function tu(e){return e.replace(/start|end/g,function(t){return hS[t]})}function $a(e){var t=ct(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Ia(e){return Un(rn(e)).left+$a(e).scrollLeft}function mS(e,t){var n=ct(e),o=rn(e),r=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){s=r.width,a=r.height;var u=Pf();(u||!u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:s,height:a,x:l+Ia(e),y:c}}function gS(e){var t,n=rn(e),o=$a(e),r=(t=e.ownerDocument)==null?void 0:t.body,s=wn(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=wn(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Ia(e),c=-o.scrollTop;return _t(r||n).direction==="rtl"&&(l+=wn(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function Da(e){var t=_t(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function kf(e){return["html","body","#document"].indexOf($t(e))>=0?e.ownerDocument.body:ht(e)&&Da(e)?e:kf(ti(e))}function go(e,t){var n;t===void 0&&(t=[]);var o=kf(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),s=ct(o),a=r?[s].concat(s.visualViewport||[],Da(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(go(ti(a)))}function js(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yS(e,t){var n=Un(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 nu(e,t,n){return t===Sf?js(mS(e,n)):Tn(t)?yS(t,n):js(gS(rn(e)))}function vS(e){var t=go(ti(e)),n=["absolute","fixed"].indexOf(_t(e).position)>=0,o=n&&ht(e)?No(e):e;return Tn(o)?t.filter(function(r){return Tn(r)&&Rf(r,o)&&$t(r)!=="body"}):[]}function bS(e,t,n,o){var r=t==="clippingParents"?vS(e):[].concat(t),s=[].concat(r,[n]),a=s[0],l=s.reduce(function(c,u){var d=nu(e,u,o);return c.top=wn(d.top,c.top),c.right=Mr(d.right,c.right),c.bottom=Mr(d.bottom,c.bottom),c.left=wn(d.left,c.left),c},nu(e,a,o));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,o=e.placement,r=o?kt(o):null,s=o?Hn(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(r){case rt:c={x:a,y:t.y-n.height};break;case mt:c={x:a,y:t.y+t.height};break;case gt:c={x:t.x+t.width,y:l};break;case it:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=r?ja(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case _n:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Eo:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Po(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,s=n.strategy,a=s===void 0?e.strategy:s,l=n.boundary,c=l===void 0?LC:l,u=n.rootBoundary,d=u===void 0?Sf:u,p=n.elementContext,f=p===void 0?to:p,g=n.altBoundary,m=g===void 0?!1:g,h=n.padding,x=h===void 0?0:h,T=Af(typeof x!="number"?x:Mf(x,Vo)),C=f===to?FC:to,E=e.rects.popper,b=e.elements[m?C:f],w=bS(Tn(b)?b:b.contextElement||rn(e.elements.popper),c,d,a),S=Un(e.elements.reference),M=jf({reference:S,element:E,placement:r}),j=js(Object.assign({},E,M)),O=f===to?j:S,A={top:w.top-O.top+T.top,bottom:O.bottom-w.bottom+T.bottom,left:w.left-O.left+T.left,right:O.right-w.right+T.right},I=e.modifiersData.offset;if(f===to&&I){var v=I[r];Object.keys(A).forEach(function(D){var k=[gt,mt].indexOf(D)>=0?1:-1,V=[rt,mt].indexOf(D)>=0?"y":"x";A[D]+=v[V]*k})}return A}function xS(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Ef:c,d=Hn(o),p=d?l?Jc:Jc.filter(function(m){return Hn(m)===d}):Vo,f=p.filter(function(m){return u.indexOf(m)>=0});f.length===0&&(f=p);var g=f.reduce(function(m,h){return m[h]=Po(e,{placement:h,boundary:r,rootBoundary:s,padding:a})[kt(h)],m},{});return Object.keys(g).sort(function(m,h){return g[m]-g[h]})}function wS(e){if(kt(e)===Aa)return[];var t=ur(e);return[tu(e),t,tu(t)]}function TS(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,g=n.flipVariations,m=g===void 0?!0:g,h=n.allowedAutoPlacements,x=t.options.placement,T=kt(x),C=T===x,E=c||(C||!m?[ur(x)]:wS(x)),b=[x].concat(E).reduce(function(K,ee){return K.concat(kt(ee)===Aa?xS(t,{placement:ee,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:h}):ee)},[]),w=t.rects.reference,S=t.rects.popper,M=new Map,j=!0,O=b[0],A=0;A<b.length;A++){var I=b[A],v=kt(I),D=Hn(I)===_n,k=[rt,mt].indexOf(v)>=0,V=k?"width":"height",$=Po(t,{placement:I,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),W=k?D?gt:it:D?mt:rt;w[V]>S[V]&&(W=ur(W));var B=ur(W),_=[];if(s&&_.push($[v]<=0),l&&_.push($[W]<=0,$[B]<=0),_.every(function(K){return K})){O=I,j=!1;break}M.set(I,_)}if(j)for(var P=m?3:1,L=function(ee){var te=b.find(function(ne){var J=M.get(ne);if(J)return J.slice(0,ee).every(function(le){return le})});if(te)return O=te,"break"},H=P;H>0;H--){var q=L(H);if(q==="break")break}t.placement!==O&&(t.modifiersData[o]._skip=!0,t.placement=O,t.reset=!0)}}const CS={name:"flip",enabled:!0,phase:"main",fn:TS,requiresIfExists:["offset"],data:{_skip:!1}};function ou(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 ru(e){return[rt,gt,mt,it].some(function(t){return e[t]>=0})}function SS(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,a=Po(t,{elementContext:"reference"}),l=Po(t,{altBoundary:!0}),c=ou(a,o),u=ou(l,r,s),d=ru(c),p=ru(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 ES={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:SS};function PS(e,t,n){var o=kt(e),r=[it,rt].indexOf(o)>=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)*r,[it,gt].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function RS(e){var t=e.state,n=e.options,o=e.name,r=n.offset,s=r===void 0?[0,0]:r,a=Ef.reduce(function(d,p){return d[p]=PS(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[o]=a}const OS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:RS};function AS(e){var t=e.state,n=e.name;t.modifiersData[n]=jf({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const MS={name:"popperOffsets",enabled:!0,phase:"read",fn:AS,data:{}};function kS(e){return e==="x"?"y":"x"}function jS(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,s=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,g=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,x=Po(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),T=kt(t.placement),C=Hn(t.placement),E=!C,b=ja(T),w=kS(b),S=t.modifiersData.popperOffsets,M=t.rects.reference,j=t.rects.popper,O=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,A=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,v={x:0,y:0};if(S){if(s){var D,k=b==="y"?rt:it,V=b==="y"?mt:gt,$=b==="y"?"height":"width",W=S[b],B=W+x[k],_=W-x[V],P=g?-j[$]/2:0,L=C===_n?M[$]:j[$],H=C===_n?-j[$]:-M[$],q=t.elements.arrow,K=g&&q?ka(q):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Of(),te=ee[k],ne=ee[V],J=mo(0,M[$],K[$]),le=E?M[$]/2-P-J-te-A.mainAxis:L-J-te-A.mainAxis,Y=E?-M[$]/2+P+J+ne+A.mainAxis:H+J+ne+A.mainAxis,se=t.elements.arrow&&No(t.elements.arrow),z=se?b==="y"?se.clientTop||0:se.clientLeft||0:0,pe=(D=I?.[b])!=null?D:0,ce=W+le-pe-z,re=W+Y-pe,Ce=mo(g?Mr(B,ce):B,W,g?wn(_,re):_);S[b]=Ce,v[b]=Ce-W}if(l){var be,me=b==="x"?rt:it,we=b==="x"?mt:gt,Ee=S[w],ue=w==="y"?"height":"width",X=Ee+x[me],U=Ee-x[we],Q=[rt,it].indexOf(T)!==-1,fe=(be=I?.[w])!=null?be:0,he=Q?X:Ee-M[ue]-j[ue]-fe+A.altAxis,Pe=Q?Ee+M[ue]+j[ue]-fe-A.altAxis:U,Le=g&&Q?nS(he,Ee,Pe):mo(g?he:X,Ee,g?Pe:U);S[w]=Le,v[w]=Le-Ee}t.modifiersData[o]=v}}const $S={name:"preventOverflow",enabled:!0,phase:"main",fn:jS,requiresIfExists:["offset"]};function IS(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function DS(e){return e===ct(e)||!ht(e)?$a(e):IS(e)}function BS(e){var t=e.getBoundingClientRect(),n=Wn(t.width)/e.offsetWidth||1,o=Wn(t.height)/e.offsetHeight||1;return n!==1||o!==1}function VS(e,t,n){n===void 0&&(n=!1);var o=ht(t),r=ht(t)&&BS(t),s=rn(t),a=Un(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&(($t(t)!=="body"||Da(s))&&(l=DS(t)),ht(t)?(c=Un(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Ia(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function NS(e){var t=new Map,n=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function r(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&&r(c)}}),o.push(s)}return e.forEach(function(s){n.has(s.name)||r(s)}),o}function LS(e){var t=NS(e);return XC.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function FS(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function zS(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var iu={placement:"bottom",modifiers:[],strategy:"absolute"};function su(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function _S(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,s=r===void 0?iu:r;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},iu,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],f=!1,g={state:d,setOptions:function(T){var C=typeof T=="function"?T(d.options):T;h(),d.options=Object.assign({},s,d.options,C),d.scrollParents={reference:Tn(l)?go(l):l.contextElement?go(l.contextElement):[],popper:go(c)};var E=LS(zS([].concat(o,d.options.modifiers)));return d.orderedModifiers=E.filter(function(b){return b.enabled}),m(),g.update()},forceUpdate:function(){if(!f){var T=d.elements,C=T.reference,E=T.popper;if(su(C,E)){d.rects={reference:VS(C,No(E),d.options.strategy==="fixed"),popper:ka(E)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(A){return d.modifiersData[A.name]=Object.assign({},A.data)});for(var b=0;b<d.orderedModifiers.length;b++){if(d.reset===!0){d.reset=!1,b=-1;continue}var w=d.orderedModifiers[b],S=w.fn,M=w.options,j=M===void 0?{}:M,O=w.name;typeof S=="function"&&(d=S({state:d,options:j,name:O,instance:g})||d)}}}},update:FS(function(){return new Promise(function(x){g.forceUpdate(),x(d)})}),destroy:function(){h(),f=!0}};if(!su(l,c))return g;g.setOptions(u).then(function(x){!f&&u.onFirstUpdate&&u.onFirstUpdate(x)});function m(){d.orderedModifiers.forEach(function(x){var T=x.name,C=x.options,E=C===void 0?{}:C,b=x.effect;if(typeof b=="function"){var w=b({state:d,name:T,instance:g,options:E}),S=function(){};p.push(w||S)}})}function h(){p.forEach(function(x){return x()}),p=[]}return g}}var WS=[pS,MS,uS,QC,OS,CS,$S,sS,ES],US=_S({defaultModifiers:WS});function HS(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...s}=e,a=r?{}:Zu(n,o),{props:l,internalRef:c}=Qu({...s,externalSlotProps:a}),u=et(c,a?.ref,e.additionalProps?.ref);return Xu(t,{...l,ref:u},o)}function qS(e){return ke("MuiPopper",e)}je("MuiPopper",["root"]);function GS(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 kr(e){return typeof e=="function"?e():e}function ni(e){return e.nodeType!==void 0}function YS(e){return!ni(e)}const KS=e=>{const{classes:t}=e;return Ne({root:["root"]},qS,t)},XS={},ZS=R.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:s,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:f={},slots:g={},TransitionProps:m,ownerState:h,...x}=t,T=R.useRef(null),C=et(T,n),E=R.useRef(null),b=et(E,p),w=R.useRef(b);Zt(()=>{w.current=b},[b]),R.useImperativeHandle(p,()=>E.current,[]);const S=GS(u,s),[M,j]=R.useState(S),[O,A]=R.useState(kr(o));R.useEffect(()=>{E.current&&E.current.forceUpdate()}),R.useEffect(()=>{o&&A(kr(o))},[o]),Zt(()=>{if(!O||!c)return;const V=B=>{j(B.placement)};if(process.env.NODE_ENV!=="production"&&O&&ni(O)&&O.nodeType===1){const B=O.getBoundingClientRect();process.env.NODE_ENV!=="test"&&B.top===0&&B.left===0&&B.right===0&&B.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
264
+ `))}let $=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{V(B)}}];l!=null&&($=$.concat(l)),d&&d.modifiers!=null&&($=$.concat(d.modifiers));const W=US(O,T.current,{placement:S,...d,modifiers:$});return w.current(W),()=>{W.destroy(),w.current(null)}},[O,a,l,c,d,S]);const I={placement:M};m!==null&&(I.TransitionProps=m);const v=KS(t),D=g.root??"div",k=HS({elementType:D,externalSlotProps:f.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:v.root});return y.jsx(D,{...k,children:typeof r=="function"?r(I):r})}),$f=R.forwardRef(function(t,n){const{anchorEl:o,children:r,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:f=XS,popperRef:g,style:m,transition:h=!1,slotProps:x={},slots:T={},...C}=t,[E,b]=R.useState(!0),w=()=>{b(!1)},S=()=>{b(!0)};if(!c&&!d&&(!h||E))return null;let M;if(s)M=s;else if(o){const A=kr(o);M=A&&ni(A)?Ct(A).body:Ct(null).body}const j=!d&&c&&(!h||E)?"none":void 0,O=h?{in:d,onEnter:w,onExited:S}:void 0;return y.jsx(So,{disablePortal:l,container:M,children:y.jsx(ZS,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:h?!E:d,placement:p,popperOptions:f,popperRef:g,slotProps:x,slots:T,...C,style:{position:"fixed",top:0,left:0,display:j,...m},TransitionProps:O,children:r})})});process.env.NODE_ENV!=="production"&&($f.propTypes={anchorEl:vt(i.oneOfType([tn,i.object,i.func]),e=>{if(e.open){const t=kr(e.anchorEl);if(t&&ni(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(`
265
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||YS(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
266
+ `))}return null}),children:i.oneOfType([i.node,i.func]),container:i.oneOfType([tn,i.func]),direction:i.oneOf(["ltr","rtl"]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.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:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.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:i.oneOf(["absolute","fixed"])}),popperRef:ko,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),transition:i.bool});const JS=oe($f,{name:"MuiPopper",slot:"Root"})({}),Ba=R.forwardRef(function(t,n){const o=Ur(),r=De({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:f,open:g,placement:m,popperOptions:h,popperRef:x,transition:T,slots:C,slotProps:E,...b}=r,w=C?.root??l?.Root,S={anchorEl:s,container:u,disablePortal:d,keepMounted:p,modifiers:f,open:g,placement:m,popperOptions:h,popperRef:x,transition:T,...b};return y.jsx(JS,{as:a,direction:o?"rtl":"ltr",slots:{root:w},slotProps:E??c,...S,ref:n})});process.env.NODE_ENV!=="production"&&(Ba.propTypes={anchorEl:i.oneOfType([tn,i.object,i.func]),children:i.oneOfType([i.node,i.func]),component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([tn,i.func]),disablePortal:i.bool,keepMounted:i.bool,modifiers:i.arrayOf(i.shape({data:i.object,effect:i.func,enabled:i.bool,fn:i.func,name:i.any,options:i.object,phase:i.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:i.arrayOf(i.string),requiresIfExists:i.arrayOf(i.string)})),open:i.bool.isRequired,placement:i.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:i.shape({modifiers:i.array,onFirstUpdate:i.func,placement:i.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:i.oneOf(["absolute","fixed"])}),popperRef:ko,slotProps:i.shape({root:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transition:i.bool});function QS(e){return ke("MuiTooltip",e)}const qe=je("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function eE(e){return Math.round(e*1e5)/1e5}const tE=e=>{const{classes:t,disableInteractive:n,arrow:o,touch:r,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",r&&"touch",`tooltipPlacement${Z(s.split("-")[0])}`],arrow:["arrow"]};return Ne(a,QS,t)},nE=oe(Ba,{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]}})(Se(({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"] .${qe.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qe.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),oE=oe("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])}`]]}})(Se(({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,[`.${qe.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${qe.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${qe.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:`${eE(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),rE=oe("span",{name:"MuiTooltip",slot:"Arrow"})(Se(({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 Jo=!1;const au=new Gr;let no={x:0,y:0};function Qo(e,t){return(n,...o)=>{t&&t(n,...o),e(n,...o)}}const $s=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:s,classes:a,components:l={},componentsProps:c={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:f=!1,disableTouchListener:g=!1,enterDelay:m=100,enterNextDelay:h=0,enterTouchDelay:x=700,followCursor:T=!1,id:C,leaveDelay:E=0,leaveTouchDelay:b=1500,onClose:w,onOpen:S,open:M,placement:j="bottom",PopperComponent:O,PopperProps:A={},slotProps:I={},slots:v={},title:D,TransitionComponent:k,TransitionProps:V,...$}=o,W=R.isValidElement(s)?s:y.jsx("span",{children:s}),B=st(),_=Ur(),[P,L]=R.useState(),[H,q]=R.useState(null),K=R.useRef(!1),ee=f||T,te=hn(),ne=hn(),J=hn(),le=hn(),[Y,se]=Fu({controlled:M,default:!1,name:"Tooltip",state:"open"});let z=Y;if(process.env.NODE_ENV!=="production"){const{current:ge}=R.useRef(M!==void 0);R.useEffect(()=>{P&&P.disabled&&!ge&&D!==""&&P.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
267
+ `))},[D,P,ge])}const pe=Mo(C),ce=R.useRef(),re=Nt(()=>{ce.current!==void 0&&(document.body.style.WebkitUserSelect=ce.current,ce.current=void 0),le.clear()});R.useEffect(()=>re,[re]);const Ce=ge=>{au.clear(),Jo=!0,se(!0),S&&!z&&S(ge)},be=Nt(ge=>{au.start(800+E,()=>{Jo=!1}),se(!1),w&&z&&w(ge),te.start(B.transitions.duration.shortest,()=>{K.current=!1})}),me=ge=>{K.current&&ge.type!=="touchstart"||(P&&P.removeAttribute("title"),ne.clear(),J.clear(),m||Jo&&h?ne.start(Jo?h:m,()=>{Ce(ge)}):Ce(ge))},we=ge=>{ne.clear(),J.start(E,()=>{be(ge)})},[,Ee]=R.useState(!1),ue=ge=>{Nn(ge.target)||(Ee(!1),we(ge))},X=ge=>{P||L(ge.currentTarget),Nn(ge.target)&&(Ee(!0),me(ge))},U=ge=>{K.current=!0;const Ut=W.props;Ut.onTouchStart&&Ut.onTouchStart(ge)},Q=ge=>{U(ge),J.clear(),te.clear(),re(),ce.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.start(x,()=>{document.body.style.WebkitUserSelect=ce.current,me(ge)})},fe=ge=>{W.props.onTouchEnd&&W.props.onTouchEnd(ge),re(),J.start(b,()=>{be(ge)})};R.useEffect(()=>{if(!z)return;function ge(Ut){Ut.key==="Escape"&&be(Ut)}return document.addEventListener("keydown",ge),()=>{document.removeEventListener("keydown",ge)}},[be,z]);const he=et(Bo(W),L,n);!D&&D!==0&&(z=!1);const Pe=R.useRef(),Le=ge=>{const Ut=W.props;Ut.onMouseMove&&Ut.onMouseMove(ge),no={x:ge.clientX,y:ge.clientY},Pe.current&&Pe.current.update()},ze={},Dt=typeof D=="string";u?(ze.title=!z&&Dt&&!p?D:null,ze["aria-describedby"]=z?pe:null):(ze["aria-label"]=Dt?D:null,ze["aria-labelledby"]=z&&!Dt?pe:null);const xe={...ze,...$,...W.props,className:de($.className,W.props.className),onTouchStart:U,ref:he,...T?{onMouseMove:Le}:{}};process.env.NODE_ENV!=="production"&&(xe["data-mui-internal-clone-element"]=!0,R.useEffect(()=>{P&&!P.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
268
268
  `))},[P]));const Wt={};g||(xe.onTouchStart=Q,xe.onTouchEnd=fe),p||(xe.onMouseOver=Qo(me,xe.onMouseOver),xe.onMouseLeave=Qo(we,xe.onMouseLeave),ee||(Wt.onMouseOver=me,Wt.onMouseLeave=we)),d||(xe.onFocus=Qo(X,xe.onFocus),xe.onBlur=Qo(ue,xe.onBlur),ee||(Wt.onFocus=X,Wt.onBlur=ue)),process.env.NODE_ENV!=="production"&&W.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${W.props.title}\` or the Tooltip component.`].join(`
269
- `));const Et={...o,isRtl:_,arrow:r,disableInteractive:ee,placement:j,PopperComponentProp:O,touch:K.current},Zn=typeof I.popper=="function"?I.popper(Et):I.popper,Bf=R.useMemo(()=>{let ge=[{name:"arrow",enabled:!!H,options:{element:H,padding:4}}];return A.popperOptions?.modifiers&&(ge=ge.concat(A.popperOptions.modifiers)),Zn?.popperOptions?.modifiers&&(ge=ge.concat(Zn.popperOptions.modifiers)),{...A.popperOptions,...Zn?.popperOptions,modifiers:ge}},[H,A.popperOptions,Zn?.popperOptions]),oi=eE(Et),Vf=typeof I.transition=="function"?I.transition(Et):I.transition,Lo={slots:{popper:l.Popper,transition:l.Transition??k,tooltip:l.Tooltip,arrow:l.Arrow,...v},slotProps:{arrow:I.arrow??c.arrow,popper:{...A,...Zn??c.popper},tooltip:I.tooltip??c.tooltip,transition:{...V,...Vf??c.transition}}},[Nf,Lf]=Te("popper",{elementType:tE,externalForwardedProps:Lo,ownerState:Et,className:de(oi.popper,A?.className)}),[Ff,zf]=Te("transition",{elementType:Co,externalForwardedProps:Lo,ownerState:Et}),[_f,Wf]=Te("tooltip",{elementType:nE,className:oi.tooltip,externalForwardedProps:Lo,ownerState:Et}),[Uf,Hf]=Te("arrow",{elementType:oE,className:oi.arrow,externalForwardedProps:Lo,ownerState:Et,ref:q});return y.jsxs(R.Fragment,{children:[R.cloneElement(W,xe),y.jsx(Nf,{as:O??Da,placement:j,anchorEl:T?{getBoundingClientRect:()=>({top:no.y,left:no.x,right:no.x,bottom:no.y,width:0,height:0})}:P,popperRef:Pe,open:P?z:!1,id:pe,transition:!0,...Wt,...Lf,popperOptions:Bf,children:({TransitionProps:ge})=>y.jsx(Ff,{timeout:B.transitions.duration.shorter,...ge,...zf,children:y.jsxs(_f,{...Wf,children:[D,r?y.jsx(Uf,{...Hf}):null]})})})]})});process.env.NODE_ENV!=="production"&&($s.propTypes={arrow:i.bool,children:Xn.isRequired,classes:i.object,className:i.string,components:i.shape({Arrow:i.elementType,Popper:i.elementType,Tooltip:i.elementType,Transition:i.elementType}),componentsProps:i.shape({arrow:i.object,popper:i.object,tooltip:i.object,transition:i.object}),describeChild:i.bool,disableFocusListener:i.bool,disableHoverListener:i.bool,disableInteractive:i.bool,disableTouchListener:i.bool,enterDelay:i.number,enterNextDelay:i.number,enterTouchDelay:i.number,followCursor:i.bool,id:i.string,leaveDelay:i.number,leaveTouchDelay:i.number,onClose:i.func,onOpen:i.func,open:i.bool,placement:i.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:i.elementType,PopperProps:i.object,slotProps:i.shape({arrow:i.oneOfType([i.func,i.object]),popper:i.oneOfType([i.func,i.object]),tooltip:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({arrow:i.elementType,popper:i.elementType,tooltip:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),title:i.node,TransitionComponent:i.elementType,TransitionProps:i.object});function er(e){return parseInt(e,10)||0}const rE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function iE(e){for(const t in e)return!1;return!0}function au(e){return iE(e)||e.outerHeightStyle===0&&!e.overflowing}const $f=R.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:s=1,style:a,value:l,...c}=t,{current:u}=R.useRef(l!=null),d=R.useRef(null),p=et(n,d),f=R.useRef(null),g=R.useRef(null),m=R.useCallback(()=>{const E=d.current,b=g.current;if(!E||!b)return;const S=Jt(E).getComputedStyle(E);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};b.style.width=S.width,b.value=E.value||t.placeholder||"x",b.value.slice(-1)===`
270
- `&&(b.value+=" ");const M=S.boxSizing,j=er(S.paddingBottom)+er(S.paddingTop),O=er(S.borderBottomWidth)+er(S.borderTopWidth),A=b.scrollHeight;b.value="x";const I=b.scrollHeight;let v=A;s&&(v=Math.max(Number(s)*I,v)),r&&(v=Math.min(Number(r)*I,v)),v=Math.max(v,I);const D=v+(M==="border-box"?j+O:0),k=Math.abs(v-A)<=1;return{outerHeightStyle:D,overflowing:k}},[r,s,t.placeholder]),h=Nt(()=>{const E=d.current,b=m();if(!E||!b||au(b))return!1;const w=b.outerHeightStyle;return f.current!=null&&f.current!==w}),x=R.useCallback(()=>{const E=d.current,b=m();if(!E||!b||au(b))return;const w=b.outerHeightStyle;f.current!==w&&(f.current=w,E.style.height=`${w}px`),E.style.overflow=b.overflowing?"hidden":""},[m]),T=R.useRef(-1);Zt(()=>{const E=Nu(x),b=d?.current;if(!b)return;const w=Jt(b);w.addEventListener("resize",E);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(()=>{h()&&(S.unobserve(b),cancelAnimationFrame(T.current),x(),T.current=requestAnimationFrame(()=>{S.observe(b)}))}),S.observe(b)),()=>{E.clear(),cancelAnimationFrame(T.current),w.removeEventListener("resize",E),S&&S.disconnect()}},[m,x,h]),Zt(()=>{x()});const C=E=>{u||x();const b=E.target,w=b.value.length,S=b.value.endsWith(`
271
- `),M=b.selectionStart===w;S&&M&&b.setSelectionRange(w,w),o&&o(E)};return y.jsxs(R.Fragment,{children:[y.jsx("textarea",{value:l,onChange:C,ref:p,rows:s,style:a,...c}),y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:{...rE.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&($f.propTypes={className:i.string,maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),onChange:i.func,placeholder:i.string,style:i.object,value:i.oneOfType([i.arrayOf(i.string),i.number,i.string])});function sE({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const Ba=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ba.displayName="FormControlContext");function aE(){return R.useContext(Ba)}function lu(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function lE(e,t=!1){return e&&(lu(e.value)&&e.value!==""||t&&lu(e.defaultValue)&&e.defaultValue!=="")}function cE(e){return ke("MuiInputBase",e)}const Is=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var cu;const uE=(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]},dE=(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]},pE=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:s,focused:a,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:f,startAdornment:g,type:m}=e,h={root:["root",`color${Z(n)}`,o&&"disabled",r&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",f&&f!=="medium"&&`size${Z(f)}`,d&&"multiline",g&&"adornedStart",s&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled",m==="search"&&"inputTypeSearch",d&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return Ne(h,cE,t)},fE=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:uE})(Se(({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",[`&.${Is.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%"}}]}))),hE=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:dE})(Se(({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})},o={opacity:"0 !important"},r=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] + .${Is.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${Is.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"}}]}})),uu=bg({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),If=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:s,autoFocus:a,className:l,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:f,disableInjectingGlobalStyles:g,endAdornment:m,error:h,fullWidth:x=!1,id:T,inputComponent:C="input",inputProps:E={},inputRef:b,margin:w,maxRows:S,minRows:M,multiline:j=!1,name:O,onBlur:A,onChange:I,onClick:v,onFocus:D,onKeyDown:k,onKeyUp:V,placeholder:$,readOnly:W,renderSuffix:B,rows:_,size:P,slotProps:L={},slots:H={},startAdornment:q,type:K="text",value:ee,...te}=o,ne=E.value!=null?E.value:ee,{current:J}=R.useRef(ne!=null),le=R.useRef(),Y=R.useCallback(xe=>{process.env.NODE_ENV!=="production"&&xe&&xe.nodeName!=="INPUT"&&!xe.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
272
- `))},[]),se=et(le,b,E.ref,Y),[z,pe]=R.useState(!1),ce=aE();process.env.NODE_ENV!=="production"&&R.useEffect(()=>{if(ce)return ce.registerEffect()},[ce]);const re=sE({props:o,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});re.focused=ce?ce.focused:z,R.useEffect(()=>{!ce&&f&&z&&(pe(!1),A&&A())},[ce,f,z,A]);const Ce=ce&&ce.onFilled,be=ce&&ce.onEmpty,me=R.useCallback(xe=>{lE(xe)?Ce&&Ce():be&&be()},[Ce,be]);Zt(()=>{J&&me({value:ne})},[ne,me,J]);const we=xe=>{D&&D(xe),E.onFocus&&E.onFocus(xe),ce&&ce.onFocus?ce.onFocus(xe):pe(!0)},Ee=xe=>{A&&A(xe),E.onBlur&&E.onBlur(xe),ce&&ce.onBlur?ce.onBlur(xe):pe(!1)},ue=(xe,...Wt)=>{if(!J){const Et=xe.target||le.current;if(Et==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.":Lt(1));me({value:Et.value})}E.onChange&&E.onChange(xe,...Wt),I&&I(xe,...Wt)};R.useEffect(()=>{me(le.current)},[]);const X=xe=>{le.current&&xe.currentTarget===xe.target&&le.current.focus(),v&&v(xe)};let U=C,Q=E;j&&U==="input"&&(_?(process.env.NODE_ENV!=="production"&&(M||S)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Q={type:void 0,minRows:_,maxRows:_,...Q}):Q={type:void 0,maxRows:S,minRows:M,...Q},U=$f);const fe=xe=>{me(xe.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};R.useEffect(()=>{ce&&ce.setAdornedStart(!!q)},[ce,q]);const he={...o,color:re.color||"primary",disabled:re.disabled,endAdornment:m,error:re.error,focused:re.focused,formControl:ce,fullWidth:x,hiddenLabel:re.hiddenLabel,multiline:j,size:re.size,startAdornment:q,type:K},Pe=pE(he),Le=H.root||u.Root||fE,ze=L.root||d.root||{},Dt=H.input||u.Input||hE;return Q={...Q,...L.input??d.input},y.jsxs(R.Fragment,{children:[!g&&typeof uu=="function"&&(cu||(cu=y.jsx(uu,{}))),y.jsxs(Le,{...ze,ref:n,onClick:X,...te,...!vr(Le)&&{ownerState:{...he,...ze.ownerState}},className:de(Pe.root,ze.className,l,W&&"MuiInputBase-readOnly"),children:[q,y.jsx(Ba.Provider,{value:null,children:y.jsx(Dt,{"aria-invalid":re.error,"aria-describedby":r,autoComplete:s,autoFocus:a,defaultValue:p,disabled:re.disabled,id:T,onAnimationStart:fe,name:O,placeholder:$,readOnly:W,required:re.required,rows:_,value:ne,onKeyDown:k,onKeyUp:V,type:K,...Q,...!vr(Dt)&&{as:U,ownerState:{...he,...Q.ownerState}},ref:se,className:de(Pe.input,Q.className,W&&"MuiInputBase-readOnly"),onBlur:Ee,onChange:ue,onFocus:we})}),m,B?B({...re,startAdornment:q}):null]})]})});process.env.NODE_ENV!=="production"&&(If.propTypes={"aria-describedby":i.string,autoComplete:i.string,autoFocus:i.bool,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableInjectingGlobalStyles:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:qr,inputProps:i.object,inputRef:ko,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClick:i.func,onFocus:i.func,onInvalid:i.func,onKeyDown:i.func,onKeyUp:i.func,placeholder:i.string,readOnly:i.bool,renderSuffix:i.func,required:i.bool,rows:i.oneOfType([i.number,i.string]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any});const mE=Be(y.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),gE=Be(y.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8m-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12m3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8m5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8m3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"ColorLens"),yE=["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548","#607D8B","#9E9E9E","#000000","#FFFFFF","#607D8B","#37474F","#1A237E"],vE={pequeno:20,mediano:28,grande:36},bE={pequeno:28,mediano:36,grande:44},Li=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),xE=oe(ve,{shouldForwardProp:e=>!["seleccionado","tamano"].includes(String(e))})(({theme:e,seleccionado:t,tamano:n})=>({width:n,height:n,borderRadius:4,cursor:"pointer",position:"relative",transition:e.transitions.create(["transform","box-shadow"],{duration:150}),boxShadow:t?`0 0 0 2px ${e.palette.background.paper}, 0 0 0 4px ${e.palette.primary.main}`:`inset 0 0 0 1px ${ae.alpha(e.palette.common.black,.15)}`,"&:hover":{transform:"scale(1.15)",boxShadow:`0 0 0 2px ${e.palette.background.paper}, 0 0 0 3px ${e.palette.text.secondary}`}})),wE=oe(ve)(({theme:e})=>({padding:e.spacing(2),width:260,backgroundColor:e.palette.background.paper,borderRadius:12,boxShadow:e.shadows[4]})),TE=oe(If)(({theme:e})=>({fontSize:"0.8125rem",fontFamily:"monospace","& input":{padding:e.spacing(.75,1),borderRadius:6,border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.mode==="dark"?ae.alpha(e.palette.common.white,.05):ae.alpha(e.palette.common.black,.04),"&:focus":{outline:"none",borderColor:e.palette.primary.main}}})),CE=oe(ve,{shouldForwardProp:e=>e!=="deshabilitado"})(({theme:e,deshabilitado:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",width:28,height:28,borderRadius:6,border:`1px solid ${e.palette.divider}`,cursor:t?"not-allowed":"pointer",overflow:"hidden",position:"relative",transition:e.transitions.create(["border-color"]),"&:hover":t?{}:{borderColor:e.palette.primary.main}})),du=({valor:e,colores:t,tamanoMuestra:n,mostrarInput:o,mostrarPersonalizado:r,alCambiar:s,onCerrar:a})=>{const l=st(),c=N.useRef(null),[u,d]=N.useState(e),p=m=>{d(m),s?.(m)},f=m=>{const h=m.target.value;d(h),Li(h)&&s?.(h)},g=()=>{Li(u)||d(e)};return y.jsxs(wE,{children:[y.jsx(ve,{sx:{display:"flex",flexWrap:"wrap",gap:.75},children:t.map(m=>y.jsx($s,{title:m,placement:"top",arrow:!0,children:y.jsx(xE,{tamano:n,seleccionado:m.toUpperCase()===e.toUpperCase(),sx:{backgroundColor:m},onClick:()=>p(m),children:m.toUpperCase()===e.toUpperCase()&&y.jsx(mE,{sx:{fontSize:n*.55,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:l.palette.getContrastText(m)}})})},m))}),(o||r)&&y.jsxs(ve,{sx:{display:"flex",alignItems:"center",gap:1,mt:2,pt:2,borderTop:`1px solid ${l.palette.divider}`},children:[o&&y.jsxs(y.Fragment,{children:[y.jsx(ve,{sx:{width:28,height:28,borderRadius:1.5,backgroundColor:Li(u)?u:e,border:`1px solid ${ae.alpha(l.palette.common.black,.15)}`,flexShrink:0}}),y.jsx(TE,{fullWidth:!0,value:u,onChange:f,onBlur:g,inputProps:{maxLength:7,"aria-label":"valor hexadecimal del color"}})]}),r&&y.jsx($s,{title:"Abre el selector de color del sistema",arrow:!0,children:y.jsxs(CE,{onClick:()=>c.current?.click(),"aria-label":"selector de color personalizado",children:[y.jsx(gE,{sx:{fontSize:16,color:"text.secondary"}}),y.jsx("input",{ref:c,type:"color",value:e,onChange:m=>{d(m.target.value),s?.(m.target.value)},style:{position:"absolute",opacity:0,width:"100%",height:"100%",cursor:"pointer",inset:0,border:"none"},"aria-label":"selector de color nativo"})]})})]})]})},SE=({valor:e="#2196F3",alCambiar:t,coloresPredefinidos:n=yE,mostrarInput:o=!0,mostrarPersonalizado:r=!0,variante:s="emergente",etiqueta:a,deshabilitado:l=!1,tamano:c="mediano"})=>{const u=st(),d=N.useRef(null),[p,f]=N.useState(!1),g=vE[c],m=bE[c],h=N.useCallback(x=>{t?.(x)},[t]);return s==="fijo"?y.jsxs(ve,{sx:{display:"inline-flex",flexDirection:"column",gap:1},children:[a&&y.jsx(Ke,{variant:"caption",fontWeight:600,color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:"0.5px"},children:a}),y.jsx(du,{valor:e,colores:n,tamanoMuestra:g,mostrarInput:o,mostrarPersonalizado:r,alCambiar:h})]}):y.jsxs(ve,{sx:{display:"inline-flex",flexDirection:"column",gap:.5},children:[a&&y.jsx(Ke,{variant:"caption",fontWeight:600,color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:"0.5px"},children:a}),y.jsxs(ve,{ref:d,onClick:()=>!l&&f(!0),sx:{display:"inline-flex",alignItems:"center",gap:1,p:.75,pr:1.5,borderRadius:2,border:`1px solid ${p?u.palette.primary.main:u.palette.divider}`,cursor:l?"not-allowed":"pointer",opacity:l?.5:1,transition:u.transitions.create(["border-color","background-color"]),backgroundColor:u.palette.background.paper,"&:hover":l?{}:{borderColor:u.palette.primary.main,backgroundColor:ae.alpha(u.palette.primary.main,.02)}},"aria-label":a??"selector de color",children:[y.jsx(ve,{sx:{width:m,height:m,borderRadius:1.5,backgroundColor:e,border:`1px solid ${ae.alpha(u.palette.common.black,.15)}`,flexShrink:0}}),y.jsx(Ke,{variant:"body2",fontFamily:"monospace",color:"text.secondary",children:e.toUpperCase()})]}),y.jsx(Tf,{open:p,anchorEl:d.current,onClose:()=>f(!1),anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{borderRadius:3,overflow:"visible",mt:1,boxShadow:u.shadows[8]}}},children:y.jsx(du,{valor:e,colores:n,tamanoMuestra:g,mostrarInput:o,mostrarPersonalizado:r,alCambiar:h})})]})},Df=({etiqueta:e,valor:t,color:n="neutro",subtitulo:o,sx:r})=>{const s=G.useTheme(),a={neutro:s.palette.grey[500],exito:s.palette.success.main,error:s.palette.error.main,aviso:s.palette.warning.main}[n],l=n==="neutro"?s.palette.text.primary:a;return y.jsxs(G.Box,{sx:[{bgcolor:s.palette.background.paper,borderRadius:3,boxShadow:s.shadows[2],borderLeft:`5px solid ${a}`,px:2.5,py:2,minWidth:140,flex:"1 1 0"},...Array.isArray(r)?r:r?[r]:[]],children:[y.jsx(G.Typography,{variant:"overline",sx:{display:"block",color:s.palette.text.secondary,fontWeight:700,fontSize:"0.65rem",letterSpacing:"0.08em",lineHeight:1.2,mb:1},children:e}),y.jsx(G.Typography,{component:"p",sx:{fontWeight:700,color:l,fontSize:{xs:"1.75rem",md:"2rem"},lineHeight:1},children:typeof t=="number"?t.toLocaleString("es-PE"):t}),o&&y.jsx(G.Typography,{variant:"caption",sx:{display:"block",color:s.palette.text.secondary,mt:.75,lineHeight:1.3},children:o})]})};Df.displayName="CodeplexTarjetaEstadistica";Object.defineProperty(exports,"CodeplexDialogo",{enumerable:!0,get:()=>It.CodeplexDialogo});Object.defineProperty(exports,"CodeplexDialogoAcciones",{enumerable:!0,get:()=>It.CodeplexDialogoAcciones});Object.defineProperty(exports,"CodeplexDialogoContenido",{enumerable:!0,get:()=>It.CodeplexDialogoContenido});Object.defineProperty(exports,"CodeplexDialogoTexto",{enumerable:!0,get:()=>It.CodeplexDialogoTexto});Object.defineProperty(exports,"CodeplexDialogoTitulo",{enumerable:!0,get:()=>It.CodeplexDialogoTitulo});Object.defineProperty(exports,"CodeplexMensajeEmergente",{enumerable:!0,get:()=>It.CodeplexMensajeEmergente});Object.defineProperty(exports,"CodeplexNotificacion",{enumerable:!0,get:()=>It.CodeplexNotificacion});Object.defineProperty(exports,"CodeplexToast",{enumerable:!0,get:()=>It.CodeplexToast});Object.defineProperty(exports,"CodeplexTooltip",{enumerable:!0,get:()=>It.CodeplexTooltip});Object.defineProperty(exports,"CodeplexTostada",{enumerable:!0,get:()=>It.CodeplexTostada});exports.CodeplexAlert=n0;exports.CodeplexAlerta=Td;exports.CodeplexAvatar=tv;exports.CodeplexAvatarGroup=ev;exports.CodeplexAvatarUsuario=od;exports.CodeplexAviso=vd;exports.CodeplexAyudaEntrada=Od;exports.CodeplexBadge=Sy;exports.CodeplexBanner=kv;exports.CodeplexBoton=Hs;exports.CodeplexButton=gy;exports.CodeplexCard=Cv;exports.CodeplexCargadorArchivos=aC;exports.CodeplexCargando=ed;exports.CodeplexEncabezadoPrincipal=gd;exports.CodeplexEsqueleto=M0;exports.CodeplexEsqueletoContenido=Qs;exports.CodeplexEtiquetaInteligente=ad;exports.CodeplexGrupoAvatares=rd;exports.CodeplexGrupoBotones=N0;exports.CodeplexInputHelper=O0;exports.CodeplexInsignia=Qu;exports.CodeplexJumbotron=Ev;exports.CodeplexKbd=$y;exports.CodeplexPopupRequisitos=Ys;exports.CodeplexProgreso=Cd;exports.CodeplexProgress=p0;exports.CodeplexRating=R0;exports.CodeplexRequirementsPopup=nv;exports.CodeplexSelectorColor=SE;exports.CodeplexSkeleton=k0;exports.CodeplexSmartLabel=ov;exports.CodeplexSpinner=jy;exports.CodeplexTarjeta=md;exports.CodeplexTarjetaEstadistica=Df;exports.CodeplexTeclado=td;exports.CodeplexTour=qT;exports.CodeplexValoracion=Rd;exports.EntradaOcultaVisualmente=my;exports.Ui=Kf;exports.avatarCadena=id;exports.stringAvatar=Qy;exports.useNextStep=kd;
269
+ `));const Et={...o,isRtl:_,arrow:r,disableInteractive:ee,placement:j,PopperComponentProp:O,touch:K.current},Zn=typeof I.popper=="function"?I.popper(Et):I.popper,Vf=R.useMemo(()=>{let ge=[{name:"arrow",enabled:!!H,options:{element:H,padding:4}}];return A.popperOptions?.modifiers&&(ge=ge.concat(A.popperOptions.modifiers)),Zn?.popperOptions?.modifiers&&(ge=ge.concat(Zn.popperOptions.modifiers)),{...A.popperOptions,...Zn?.popperOptions,modifiers:ge}},[H,A.popperOptions,Zn?.popperOptions]),oi=tE(Et),Nf=typeof I.transition=="function"?I.transition(Et):I.transition,Lo={slots:{popper:l.Popper,transition:l.Transition??k,tooltip:l.Tooltip,arrow:l.Arrow,...v},slotProps:{arrow:I.arrow??c.arrow,popper:{...A,...Zn??c.popper},tooltip:I.tooltip??c.tooltip,transition:{...V,...Nf??c.transition}}},[Lf,Ff]=Te("popper",{elementType:nE,externalForwardedProps:Lo,ownerState:Et,className:de(oi.popper,A?.className)}),[zf,_f]=Te("transition",{elementType:Co,externalForwardedProps:Lo,ownerState:Et}),[Wf,Uf]=Te("tooltip",{elementType:oE,className:oi.tooltip,externalForwardedProps:Lo,ownerState:Et}),[Hf,qf]=Te("arrow",{elementType:rE,className:oi.arrow,externalForwardedProps:Lo,ownerState:Et,ref:q});return y.jsxs(R.Fragment,{children:[R.cloneElement(W,xe),y.jsx(Lf,{as:O??Ba,placement:j,anchorEl:T?{getBoundingClientRect:()=>({top:no.y,left:no.x,right:no.x,bottom:no.y,width:0,height:0})}:P,popperRef:Pe,open:P?z:!1,id:pe,transition:!0,...Wt,...Ff,popperOptions:Vf,children:({TransitionProps:ge})=>y.jsx(zf,{timeout:B.transitions.duration.shorter,...ge,..._f,children:y.jsxs(Wf,{...Uf,children:[D,r?y.jsx(Hf,{...qf}):null]})})})]})});process.env.NODE_ENV!=="production"&&($s.propTypes={arrow:i.bool,children:Xn.isRequired,classes:i.object,className:i.string,components:i.shape({Arrow:i.elementType,Popper:i.elementType,Tooltip:i.elementType,Transition:i.elementType}),componentsProps:i.shape({arrow:i.object,popper:i.object,tooltip:i.object,transition:i.object}),describeChild:i.bool,disableFocusListener:i.bool,disableHoverListener:i.bool,disableInteractive:i.bool,disableTouchListener:i.bool,enterDelay:i.number,enterNextDelay:i.number,enterTouchDelay:i.number,followCursor:i.bool,id:i.string,leaveDelay:i.number,leaveTouchDelay:i.number,onClose:i.func,onOpen:i.func,open:i.bool,placement:i.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:i.elementType,PopperProps:i.object,slotProps:i.shape({arrow:i.oneOfType([i.func,i.object]),popper:i.oneOfType([i.func,i.object]),tooltip:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({arrow:i.elementType,popper:i.elementType,tooltip:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),title:i.node,TransitionComponent:i.elementType,TransitionProps:i.object});function er(e){return parseInt(e,10)||0}const iE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function sE(e){for(const t in e)return!1;return!0}function lu(e){return sE(e)||e.outerHeightStyle===0&&!e.overflowing}const If=R.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:s=1,style:a,value:l,...c}=t,{current:u}=R.useRef(l!=null),d=R.useRef(null),p=et(n,d),f=R.useRef(null),g=R.useRef(null),m=R.useCallback(()=>{const E=d.current,b=g.current;if(!E||!b)return;const S=Jt(E).getComputedStyle(E);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};b.style.width=S.width,b.value=E.value||t.placeholder||"x",b.value.slice(-1)===`
270
+ `&&(b.value+=" ");const M=S.boxSizing,j=er(S.paddingBottom)+er(S.paddingTop),O=er(S.borderBottomWidth)+er(S.borderTopWidth),A=b.scrollHeight;b.value="x";const I=b.scrollHeight;let v=A;s&&(v=Math.max(Number(s)*I,v)),r&&(v=Math.min(Number(r)*I,v)),v=Math.max(v,I);const D=v+(M==="border-box"?j+O:0),k=Math.abs(v-A)<=1;return{outerHeightStyle:D,overflowing:k}},[r,s,t.placeholder]),h=Nt(()=>{const E=d.current,b=m();if(!E||!b||lu(b))return!1;const w=b.outerHeightStyle;return f.current!=null&&f.current!==w}),x=R.useCallback(()=>{const E=d.current,b=m();if(!E||!b||lu(b))return;const w=b.outerHeightStyle;f.current!==w&&(f.current=w,E.style.height=`${w}px`),E.style.overflow=b.overflowing?"hidden":""},[m]),T=R.useRef(-1);Zt(()=>{const E=Lu(x),b=d?.current;if(!b)return;const w=Jt(b);w.addEventListener("resize",E);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(()=>{h()&&(S.unobserve(b),cancelAnimationFrame(T.current),x(),T.current=requestAnimationFrame(()=>{S.observe(b)}))}),S.observe(b)),()=>{E.clear(),cancelAnimationFrame(T.current),w.removeEventListener("resize",E),S&&S.disconnect()}},[m,x,h]),Zt(()=>{x()});const C=E=>{u||x();const b=E.target,w=b.value.length,S=b.value.endsWith(`
271
+ `),M=b.selectionStart===w;S&&M&&b.setSelectionRange(w,w),o&&o(E)};return y.jsxs(R.Fragment,{children:[y.jsx("textarea",{value:l,onChange:C,ref:p,rows:s,style:a,...c}),y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:{...iE.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(If.propTypes={className:i.string,maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),onChange:i.func,placeholder:i.string,style:i.object,value:i.oneOfType([i.arrayOf(i.string),i.number,i.string])});function aE({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const Va=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(Va.displayName="FormControlContext");function lE(){return R.useContext(Va)}function cu(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function cE(e,t=!1){return e&&(cu(e.value)&&e.value!==""||t&&cu(e.defaultValue)&&e.defaultValue!=="")}function uE(e){return ke("MuiInputBase",e)}const Is=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var uu;const dE=(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]},pE=(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]},fE=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:s,focused:a,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:f,startAdornment:g,type:m}=e,h={root:["root",`color${Z(n)}`,o&&"disabled",r&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",f&&f!=="medium"&&`size${Z(f)}`,d&&"multiline",g&&"adornedStart",s&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled",m==="search"&&"inputTypeSearch",d&&"inputMultiline",f==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return Ne(h,uE,t)},hE=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:dE})(Se(({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",[`&.${Is.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%"}}]}))),mE=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:pE})(Se(({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})},o={opacity:"0 !important"},r=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] + .${Is.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${Is.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"}}]}})),du=xg({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Df=R.forwardRef(function(t,n){const o=De({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:s,autoFocus:a,className:l,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:f,disableInjectingGlobalStyles:g,endAdornment:m,error:h,fullWidth:x=!1,id:T,inputComponent:C="input",inputProps:E={},inputRef:b,margin:w,maxRows:S,minRows:M,multiline:j=!1,name:O,onBlur:A,onChange:I,onClick:v,onFocus:D,onKeyDown:k,onKeyUp:V,placeholder:$,readOnly:W,renderSuffix:B,rows:_,size:P,slotProps:L={},slots:H={},startAdornment:q,type:K="text",value:ee,...te}=o,ne=E.value!=null?E.value:ee,{current:J}=R.useRef(ne!=null),le=R.useRef(),Y=R.useCallback(xe=>{process.env.NODE_ENV!=="production"&&xe&&xe.nodeName!=="INPUT"&&!xe.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
272
+ `))},[]),se=et(le,b,E.ref,Y),[z,pe]=R.useState(!1),ce=lE();process.env.NODE_ENV!=="production"&&R.useEffect(()=>{if(ce)return ce.registerEffect()},[ce]);const re=aE({props:o,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});re.focused=ce?ce.focused:z,R.useEffect(()=>{!ce&&f&&z&&(pe(!1),A&&A())},[ce,f,z,A]);const Ce=ce&&ce.onFilled,be=ce&&ce.onEmpty,me=R.useCallback(xe=>{cE(xe)?Ce&&Ce():be&&be()},[Ce,be]);Zt(()=>{J&&me({value:ne})},[ne,me,J]);const we=xe=>{D&&D(xe),E.onFocus&&E.onFocus(xe),ce&&ce.onFocus?ce.onFocus(xe):pe(!0)},Ee=xe=>{A&&A(xe),E.onBlur&&E.onBlur(xe),ce&&ce.onBlur?ce.onBlur(xe):pe(!1)},ue=(xe,...Wt)=>{if(!J){const Et=xe.target||le.current;if(Et==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.":Lt(1));me({value:Et.value})}E.onChange&&E.onChange(xe,...Wt),I&&I(xe,...Wt)};R.useEffect(()=>{me(le.current)},[]);const X=xe=>{le.current&&xe.currentTarget===xe.target&&le.current.focus(),v&&v(xe)};let U=C,Q=E;j&&U==="input"&&(_?(process.env.NODE_ENV!=="production"&&(M||S)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Q={type:void 0,minRows:_,maxRows:_,...Q}):Q={type:void 0,maxRows:S,minRows:M,...Q},U=If);const fe=xe=>{me(xe.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};R.useEffect(()=>{ce&&ce.setAdornedStart(!!q)},[ce,q]);const he={...o,color:re.color||"primary",disabled:re.disabled,endAdornment:m,error:re.error,focused:re.focused,formControl:ce,fullWidth:x,hiddenLabel:re.hiddenLabel,multiline:j,size:re.size,startAdornment:q,type:K},Pe=fE(he),Le=H.root||u.Root||hE,ze=L.root||d.root||{},Dt=H.input||u.Input||mE;return Q={...Q,...L.input??d.input},y.jsxs(R.Fragment,{children:[!g&&typeof du=="function"&&(uu||(uu=y.jsx(du,{}))),y.jsxs(Le,{...ze,ref:n,onClick:X,...te,...!vr(Le)&&{ownerState:{...he,...ze.ownerState}},className:de(Pe.root,ze.className,l,W&&"MuiInputBase-readOnly"),children:[q,y.jsx(Va.Provider,{value:null,children:y.jsx(Dt,{"aria-invalid":re.error,"aria-describedby":r,autoComplete:s,autoFocus:a,defaultValue:p,disabled:re.disabled,id:T,onAnimationStart:fe,name:O,placeholder:$,readOnly:W,required:re.required,rows:_,value:ne,onKeyDown:k,onKeyUp:V,type:K,...Q,...!vr(Dt)&&{as:U,ownerState:{...he,...Q.ownerState}},ref:se,className:de(Pe.input,Q.className,W&&"MuiInputBase-readOnly"),onBlur:Ee,onChange:ue,onFocus:we})}),m,B?B({...re,startAdornment:q}):null]})]})});process.env.NODE_ENV!=="production"&&(Df.propTypes={"aria-describedby":i.string,autoComplete:i.string,autoFocus:i.bool,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableInjectingGlobalStyles:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:qr,inputProps:i.object,inputRef:ko,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClick:i.func,onFocus:i.func,onInvalid:i.func,onKeyDown:i.func,onKeyUp:i.func,placeholder:i.string,readOnly:i.bool,renderSuffix:i.func,required:i.bool,rows:i.oneOfType([i.number,i.string]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any});const gE=Be(y.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),yE=Be(y.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8m-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12m3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8m5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8m3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"ColorLens"),vE=["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548","#607D8B","#9E9E9E","#000000","#FFFFFF","#607D8B","#37474F","#1A237E"],bE={pequeno:20,mediano:28,grande:36},xE={pequeno:28,mediano:36,grande:44},Li=e=>/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e),wE=oe(ve,{shouldForwardProp:e=>!["seleccionado","tamano"].includes(String(e))})(({theme:e,seleccionado:t,tamano:n})=>({width:n,height:n,borderRadius:4,cursor:"pointer",position:"relative",transition:e.transitions.create(["transform","box-shadow"],{duration:150}),boxShadow:t?`0 0 0 2px ${e.palette.background.paper}, 0 0 0 4px ${e.palette.primary.main}`:`inset 0 0 0 1px ${ae.alpha(e.palette.common.black,.15)}`,"&:hover":{transform:"scale(1.15)",boxShadow:`0 0 0 2px ${e.palette.background.paper}, 0 0 0 3px ${e.palette.text.secondary}`}})),TE=oe(ve)(({theme:e})=>({padding:e.spacing(2),width:260,backgroundColor:e.palette.background.paper,borderRadius:12,boxShadow:e.shadows[4]})),CE=oe(Df)(({theme:e})=>({fontSize:"0.8125rem",fontFamily:"monospace","& input":{padding:e.spacing(.75,1),borderRadius:6,border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.mode==="dark"?ae.alpha(e.palette.common.white,.05):ae.alpha(e.palette.common.black,.04),"&:focus":{outline:"none",borderColor:e.palette.primary.main}}})),SE=oe(ve,{shouldForwardProp:e=>e!=="deshabilitado"})(({theme:e,deshabilitado:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",width:28,height:28,borderRadius:6,border:`1px solid ${e.palette.divider}`,cursor:t?"not-allowed":"pointer",overflow:"hidden",position:"relative",transition:e.transitions.create(["border-color"]),"&:hover":t?{}:{borderColor:e.palette.primary.main}})),pu=({valor:e,colores:t,tamanoMuestra:n,mostrarInput:o,mostrarPersonalizado:r,alCambiar:s,onCerrar:a})=>{const l=st(),c=N.useRef(null),[u,d]=N.useState(e),p=m=>{d(m),s?.(m)},f=m=>{const h=m.target.value;d(h),Li(h)&&s?.(h)},g=()=>{Li(u)||d(e)};return y.jsxs(TE,{children:[y.jsx(ve,{sx:{display:"flex",flexWrap:"wrap",gap:.75},children:t.map(m=>y.jsx($s,{title:m,placement:"top",arrow:!0,children:y.jsx(wE,{tamano:n,seleccionado:m.toUpperCase()===e.toUpperCase(),sx:{backgroundColor:m},onClick:()=>p(m),children:m.toUpperCase()===e.toUpperCase()&&y.jsx(gE,{sx:{fontSize:n*.55,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:l.palette.getContrastText(m)}})})},m))}),(o||r)&&y.jsxs(ve,{sx:{display:"flex",alignItems:"center",gap:1,mt:2,pt:2,borderTop:`1px solid ${l.palette.divider}`},children:[o&&y.jsxs(y.Fragment,{children:[y.jsx(ve,{sx:{width:28,height:28,borderRadius:1.5,backgroundColor:Li(u)?u:e,border:`1px solid ${ae.alpha(l.palette.common.black,.15)}`,flexShrink:0}}),y.jsx(CE,{fullWidth:!0,value:u,onChange:f,onBlur:g,inputProps:{maxLength:7,"aria-label":"valor hexadecimal del color"}})]}),r&&y.jsx($s,{title:"Abre el selector de color del sistema",arrow:!0,children:y.jsxs(SE,{onClick:()=>c.current?.click(),"aria-label":"selector de color personalizado",children:[y.jsx(yE,{sx:{fontSize:16,color:"text.secondary"}}),y.jsx("input",{ref:c,type:"color",value:e,onChange:m=>{d(m.target.value),s?.(m.target.value)},style:{position:"absolute",opacity:0,width:"100%",height:"100%",cursor:"pointer",inset:0,border:"none"},"aria-label":"selector de color nativo"})]})})]})]})},EE=({valor:e="#2196F3",alCambiar:t,coloresPredefinidos:n=vE,mostrarInput:o=!0,mostrarPersonalizado:r=!0,variante:s="emergente",etiqueta:a,deshabilitado:l=!1,tamano:c="mediano"})=>{const u=st(),d=N.useRef(null),[p,f]=N.useState(!1),g=bE[c],m=xE[c],h=N.useCallback(x=>{t?.(x)},[t]);return s==="fijo"?y.jsxs(ve,{sx:{display:"inline-flex",flexDirection:"column",gap:1},children:[a&&y.jsx(Ke,{variant:"caption",fontWeight:600,color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:"0.5px"},children:a}),y.jsx(pu,{valor:e,colores:n,tamanoMuestra:g,mostrarInput:o,mostrarPersonalizado:r,alCambiar:h})]}):y.jsxs(ve,{sx:{display:"inline-flex",flexDirection:"column",gap:.5},children:[a&&y.jsx(Ke,{variant:"caption",fontWeight:600,color:"text.secondary",sx:{textTransform:"uppercase",letterSpacing:"0.5px"},children:a}),y.jsxs(ve,{ref:d,onClick:()=>!l&&f(!0),sx:{display:"inline-flex",alignItems:"center",gap:1,p:.75,pr:1.5,borderRadius:2,border:`1px solid ${p?u.palette.primary.main:u.palette.divider}`,cursor:l?"not-allowed":"pointer",opacity:l?.5:1,transition:u.transitions.create(["border-color","background-color"]),backgroundColor:u.palette.background.paper,"&:hover":l?{}:{borderColor:u.palette.primary.main,backgroundColor:ae.alpha(u.palette.primary.main,.02)}},"aria-label":a??"selector de color",children:[y.jsx(ve,{sx:{width:m,height:m,borderRadius:1.5,backgroundColor:e,border:`1px solid ${ae.alpha(u.palette.common.black,.15)}`,flexShrink:0}}),y.jsx(Ke,{variant:"body2",fontFamily:"monospace",color:"text.secondary",children:e.toUpperCase()})]}),y.jsx(Cf,{open:p,anchorEl:d.current,onClose:()=>f(!1),anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{sx:{borderRadius:3,overflow:"visible",mt:1,boxShadow:u.shadows[8]}}},children:y.jsx(pu,{valor:e,colores:n,tamanoMuestra:g,mostrarInput:o,mostrarPersonalizado:r,alCambiar:h})})]})},Bf=({etiqueta:e,valor:t,color:n="neutro",subtitulo:o,sx:r})=>{const s=G.useTheme(),a={neutro:s.palette.grey[500],exito:s.palette.success.main,error:s.palette.error.main,aviso:s.palette.warning.main}[n],l=n==="neutro"?s.palette.text.primary:a;return y.jsxs(G.Box,{sx:[{bgcolor:s.palette.background.paper,borderRadius:3,boxShadow:s.shadows[2],borderLeft:`5px solid ${a}`,px:2.5,py:2,minWidth:140,flex:"1 1 0"},...Array.isArray(r)?r:r?[r]:[]],children:[y.jsx(G.Typography,{variant:"overline",sx:{display:"block",color:s.palette.text.secondary,fontWeight:700,fontSize:"0.65rem",letterSpacing:"0.08em",lineHeight:1.2,mb:1},children:e}),y.jsx(G.Typography,{component:"p",sx:{fontWeight:700,color:l,fontSize:{xs:"1.75rem",md:"2rem"},lineHeight:1},children:typeof t=="number"?t.toLocaleString("es-PE"):t}),o&&y.jsx(G.Typography,{variant:"caption",sx:{display:"block",color:s.palette.text.secondary,mt:.75,lineHeight:1.3},children:o})]})};Bf.displayName="CodeplexTarjetaEstadistica";const PE={cursor:"grab",userSelect:"none",transition:"opacity 120ms ease, transform 120ms ease","&:active":{cursor:"grabbing"}},RE=({datos:e,deshabilitado:t=!1,alIniciarArrastre:n,alSoltar:o,children:r})=>{const s=N.useRef(null),[a,l]=N.useState(!1),c=N.useRef(e),u=N.useRef(n),d=N.useRef(o);return c.current=e,u.current=n,d.current=o,N.useEffect(()=>{const p=s.current;if(p)return Ds.draggable({element:p,canDrag:()=>!t,getInitialData:()=>c.current??{},onDragStart:()=>{l(!0),u.current?.()},onDrop:()=>{l(!1),d.current?.()}})},[t]),y.jsx(G.Box,{ref:s,sx:{...PE,opacity:a?.4:1},children:typeof r=="function"?r({arrastrando:a}):r})},OE=({datos:e,puedeSoltar:t,alEntrar:n,alSalir:o,alSoltar:r,children:s})=>{const a=N.useRef(null),[l,c]=N.useState(!1),u=N.useRef(e),d=N.useRef(t),p=N.useRef(n),f=N.useRef(o),g=N.useRef(r);return u.current=e,d.current=t,p.current=n,f.current=o,g.current=r,N.useEffect(()=>{const m=a.current;if(m)return Ds.dropTargetForElements({element:m,getData:()=>u.current??{},canDrop:({source:h})=>d.current?.({datosOrigen:h.data})??!0,onDragEnter:()=>{c(!0),p.current?.()},onDragLeave:()=>{c(!1),f.current?.()},onDrop:({source:h})=>{c(!1),g.current?.({datosOrigen:h.data})}})},[]),y.jsx(G.Box,{ref:a,children:typeof s=="function"?s({encima:l}):s})};function AE(e){const t=N.useRef(e.alSoltar);t.current=e.alSoltar,N.useEffect(()=>Ds.monitorForElements({onDrop:({source:n,location:o})=>{t.current?.({datosOrigen:n.data,destinos:o.current.dropTargets.map(r=>r.data)})}}),[])}Object.defineProperty(exports,"CodeplexDialogo",{enumerable:!0,get:()=>It.CodeplexDialogo});Object.defineProperty(exports,"CodeplexDialogoAcciones",{enumerable:!0,get:()=>It.CodeplexDialogoAcciones});Object.defineProperty(exports,"CodeplexDialogoContenido",{enumerable:!0,get:()=>It.CodeplexDialogoContenido});Object.defineProperty(exports,"CodeplexDialogoTexto",{enumerable:!0,get:()=>It.CodeplexDialogoTexto});Object.defineProperty(exports,"CodeplexDialogoTitulo",{enumerable:!0,get:()=>It.CodeplexDialogoTitulo});Object.defineProperty(exports,"CodeplexMensajeEmergente",{enumerable:!0,get:()=>It.CodeplexMensajeEmergente});Object.defineProperty(exports,"CodeplexNotificacion",{enumerable:!0,get:()=>It.CodeplexNotificacion});Object.defineProperty(exports,"CodeplexToast",{enumerable:!0,get:()=>It.CodeplexToast});Object.defineProperty(exports,"CodeplexTooltip",{enumerable:!0,get:()=>It.CodeplexTooltip});Object.defineProperty(exports,"CodeplexTostada",{enumerable:!0,get:()=>It.CodeplexTostada});exports.CodeplexAlert=o0;exports.CodeplexAlerta=Cd;exports.CodeplexArrastrable=RE;exports.CodeplexAvatar=nv;exports.CodeplexAvatarGroup=tv;exports.CodeplexAvatarUsuario=rd;exports.CodeplexAviso=bd;exports.CodeplexAyudaEntrada=Ad;exports.CodeplexBadge=Ey;exports.CodeplexBanner=jv;exports.CodeplexBoton=qs;exports.CodeplexButton=yy;exports.CodeplexCard=Sv;exports.CodeplexCargadorArchivos=lC;exports.CodeplexCargando=td;exports.CodeplexEncabezadoPrincipal=yd;exports.CodeplexEsqueleto=k0;exports.CodeplexEsqueletoContenido=ea;exports.CodeplexEtiquetaInteligente=ld;exports.CodeplexGrupoAvatares=id;exports.CodeplexGrupoBotones=L0;exports.CodeplexInputHelper=A0;exports.CodeplexInsignia=ed;exports.CodeplexJumbotron=Pv;exports.CodeplexKbd=Iy;exports.CodeplexPopupRequisitos=Ks;exports.CodeplexProgreso=Sd;exports.CodeplexProgress=f0;exports.CodeplexRating=O0;exports.CodeplexRequirementsPopup=ov;exports.CodeplexSelectorColor=EE;exports.CodeplexSkeleton=j0;exports.CodeplexSmartLabel=rv;exports.CodeplexSpinner=$y;exports.CodeplexTarjeta=gd;exports.CodeplexTarjetaEstadistica=Bf;exports.CodeplexTeclado=nd;exports.CodeplexTour=GT;exports.CodeplexValoracion=Od;exports.CodeplexZonaSoltar=OE;exports.EntradaOcultaVisualmente=gy;exports.Ui=Xf;exports.avatarCadena=sd;exports.stringAvatar=ev;exports.usarMonitorArrastre=AE;exports.useNextStep=jd;