@suportepos/split-checkout 0.1.2 → 0.1.3

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.
@@ -0,0 +1,103 @@
1
+ (function(Ce,Ge){typeof exports=="object"&&typeof module<"u"?Ge(exports,require("react"),require("@mui/material"),require("@emotion/styled"),require("@emotion/react")):typeof define=="function"&&define.amd?define(["exports","react","@mui/material","@emotion/styled","@emotion/react"],Ge):(Ce=typeof globalThis<"u"?globalThis:Ce||self,Ge(Ce.SuporteCheckout={},Ce.React,Ce.material,Ce.emStyled))})(this,(function(Ce,Ge,p,Gn){"use strict";function qn(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const z=qn(Ge);function Hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vr={exports:{}},lr={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var At;function Kn(){if(At)return lr;At=1;var e=Ge,r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(l,d,h){var g,y={},b=null,w=null;h!==void 0&&(b=""+h),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(w=d.ref);for(g in d)n.call(d,g)&&!i.hasOwnProperty(g)&&(y[g]=d[g]);if(l&&l.defaultProps)for(g in d=l.defaultProps,d)y[g]===void 0&&(y[g]=d[g]);return{$$typeof:r,type:l,key:b,ref:w,props:y,_owner:o.current}}return lr.Fragment=t,lr.jsx=c,lr.jsxs=c,lr}var ur={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var jt;function Jn(){return jt||(jt=1,process.env.NODE_ENV!=="production"&&(function(){var e=Ge,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),v=Symbol.iterator,u="@@iterator";function C(a){if(a===null||typeof a!="object")return null;var S=v&&a[v]||a[u];return typeof S=="function"?S:null}var k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function I(a){{for(var S=arguments.length,A=new Array(S>1?S-1:0),D=1;D<S;D++)A[D-1]=arguments[D];F("error",a,A)}}function F(a,S,A){{var D=k.ReactDebugCurrentFrame,oe=D.getStackAddendum();oe!==""&&(S+="%s",A=A.concat([oe]));var le=A.map(function(Z){return String(Z)});le.unshift("Warning: "+S),Function.prototype.apply.call(console[a],console,le)}}var O=!1,E=!1,j=!1,X=!1,pe=!1,Q;Q=Symbol.for("react.module.reference");function he(a){return!!(typeof a=="string"||typeof a=="function"||a===n||a===i||pe||a===o||a===h||a===g||X||a===w||O||E||j||typeof a=="object"&&a!==null&&(a.$$typeof===b||a.$$typeof===y||a.$$typeof===c||a.$$typeof===l||a.$$typeof===d||a.$$typeof===Q||a.getModuleId!==void 0))}function re(a,S,A){var D=a.displayName;if(D)return D;var oe=S.displayName||S.name||"";return oe!==""?A+"("+oe+")":A}function s(a){return a.displayName||"Context"}function $(a){if(a==null)return null;if(typeof a.tag=="number"&&I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case n:return"Fragment";case t:return"Portal";case i:return"Profiler";case o:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case l:var S=a;return s(S)+".Consumer";case c:var A=a;return s(A._context)+".Provider";case d:return re(a,a.render,"ForwardRef");case y:var D=a.displayName||null;return D!==null?D:$(a.type)||"Memo";case b:{var oe=a,le=oe._payload,Z=oe._init;try{return $(Z(le))}catch{return null}}}return null}var P=Object.assign,N=0,K,ue,xe,Ie,T,R,U;function B(){}B.__reactDisabledLog=!0;function V(){{if(N===0){K=console.log,ue=console.info,xe=console.warn,Ie=console.error,T=console.group,R=console.groupCollapsed,U=console.groupEnd;var a={configurable:!0,enumerable:!0,value:B,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}N++}}function G(){{if(N--,N===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:P({},a,{value:K}),info:P({},a,{value:ue}),warn:P({},a,{value:xe}),error:P({},a,{value:Ie}),group:P({},a,{value:T}),groupCollapsed:P({},a,{value:R}),groupEnd:P({},a,{value:U})})}N<0&&I("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var L=k.ReactCurrentDispatcher,M;function q(a,S,A){{if(M===void 0)try{throw Error()}catch(oe){var D=oe.stack.trim().match(/\n( *(at )?)/);M=D&&D[1]||""}return`
18
+ `+M+a}}var Y=!1,H;{var Se=typeof WeakMap=="function"?WeakMap:Map;H=new Se}function _(a,S){if(!a||Y)return"";{var A=H.get(a);if(A!==void 0)return A}var D;Y=!0;var oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var le;le=L.current,L.current=null,V();try{if(S){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(Pe){D=Pe}Reflect.construct(a,[],Z)}else{try{Z.call()}catch(Pe){D=Pe}a.call(Z.prototype)}}else{try{throw Error()}catch(Pe){D=Pe}a()}}catch(Pe){if(Pe&&D&&typeof Pe.stack=="string"){for(var J=Pe.stack.split(`
19
+ `),Ee=D.stack.split(`
20
+ `),be=J.length-1,ve=Ee.length-1;be>=1&&ve>=0&&J[be]!==Ee[ve];)ve--;for(;be>=1&&ve>=0;be--,ve--)if(J[be]!==Ee[ve]){if(be!==1||ve!==1)do if(be--,ve--,ve<0||J[be]!==Ee[ve]){var ke=`
21
+ `+J[be].replace(" at new "," at ");return a.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",a.displayName)),typeof a=="function"&&H.set(a,ke),ke}while(be>=1&&ve>=0);break}}}finally{Y=!1,L.current=le,G(),Error.prepareStackTrace=oe}var cr=a?a.displayName||a.name:"",Qe=cr?q(cr):"";return typeof a=="function"&&H.set(a,Qe),Qe}function W(a,S,A){return _(a,!1)}function Me(a){var S=a.prototype;return!!(S&&S.isReactComponent)}function _e(a,S,A){if(a==null)return"";if(typeof a=="function")return _(a,Me(a));if(typeof a=="string")return q(a);switch(a){case h:return q("Suspense");case g:return q("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case d:return W(a.render);case y:return _e(a.type,S,A);case b:{var D=a,oe=D._payload,le=D._init;try{return _e(le(oe),S,A)}catch{}}}return""}var De=Object.prototype.hasOwnProperty,Ur={},Yr=k.ReactDebugCurrentFrame;function sr(a){if(a){var S=a._owner,A=_e(a.type,a._source,S?S.type:null);Yr.setExtraStackFrame(A)}else Yr.setExtraStackFrame(null)}function Ct(a,S,A,D,oe){{var le=Function.call.bind(De);for(var Z in a)if(le(a,Z)){var J=void 0;try{if(typeof a[Z]!="function"){var Ee=Error((D||"React class")+": "+A+" type `"+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[Z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ee.name="Invariant Violation",Ee}J=a[Z](S,Z,D,A,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){J=be}J&&!(J instanceof Error)&&(sr(oe),I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",D||"React class",A,Z,typeof J),sr(null)),J instanceof Error&&!(J.message in Ur)&&(Ur[J.message]=!0,sr(oe),I("Failed %s type: %s",A,J.message),sr(null))}}}var Tt=Array.isArray;function br(a){return Tt(a)}function Et(a){{var S=typeof Symbol=="function"&&Symbol.toStringTag,A=S&&a[Symbol.toStringTag]||a.constructor.name||"Object";return A}}function wt(a){try{return Gr(a),!1}catch{return!0}}function Gr(a){return""+a}function qr(a){if(wt(a))return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Et(a)),Gr(a)}var Hr=k.ReactCurrentOwner,Pt={key:!0,ref:!0,__self:!0,__source:!0},Kr,Jr;function x(a){if(De.call(a,"ref")){var S=Object.getOwnPropertyDescriptor(a,"ref").get;if(S&&S.isReactWarning)return!1}return a.ref!==void 0}function de(a){if(De.call(a,"key")){var S=Object.getOwnPropertyDescriptor(a,"key").get;if(S&&S.isReactWarning)return!1}return a.key!==void 0}function Te(a,S){typeof a.ref=="string"&&Hr.current}function je(a,S){{var A=function(){Kr||(Kr=!0,I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",S))};A.isReactWarning=!0,Object.defineProperty(a,"key",{get:A,configurable:!0})}}function Ye(a,S){{var A=function(){Jr||(Jr=!0,I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",S))};A.isReactWarning=!0,Object.defineProperty(a,"ref",{get:A,configurable:!0})}}var Ds=function(a,S,A,D,oe,le,Z){var J={$$typeof:r,type:a,key:S,ref:A,props:Z,_owner:le};return J._store={},Object.defineProperty(J._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(J,"_self",{configurable:!1,enumerable:!1,writable:!1,value:D}),Object.defineProperty(J,"_source",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.freeze&&(Object.freeze(J.props),Object.freeze(J)),J};function Fs(a,S,A,D,oe){{var le,Z={},J=null,Ee=null;A!==void 0&&(qr(A),J=""+A),de(S)&&(qr(S.key),J=""+S.key),x(S)&&(Ee=S.ref,Te(S,oe));for(le in S)De.call(S,le)&&!Pt.hasOwnProperty(le)&&(Z[le]=S[le]);if(a&&a.defaultProps){var be=a.defaultProps;for(le in be)Z[le]===void 0&&(Z[le]=be[le])}if(J||Ee){var ve=typeof a=="function"?a.displayName||a.name||"Unknown":a;J&&je(Z,ve),Ee&&Ye(Z,ve)}return Ds(a,J,Ee,oe,D,Hr.current,Z)}}var $t=k.ReactCurrentOwner,Bn=k.ReactDebugCurrentFrame;function ar(a){if(a){var S=a._owner,A=_e(a.type,a._source,S?S.type:null);Bn.setExtraStackFrame(A)}else Bn.setExtraStackFrame(null)}var Ot;Ot=!1;function _t(a){return typeof a=="object"&&a!==null&&a.$$typeof===r}function Vn(){{if($t.current){var a=$($t.current.type);if(a)return`
22
+
23
+ Check the render method of \``+a+"`."}return""}}function Bs(a){return""}var Wn={};function Vs(a){{var S=Vn();if(!S){var A=typeof a=="string"?a:a.displayName||a.name;A&&(S=`
24
+
25
+ Check the top-level render call using <`+A+">.")}return S}}function Ln(a,S){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var A=Vs(S);if(Wn[A])return;Wn[A]=!0;var D="";a&&a._owner&&a._owner!==$t.current&&(D=" It was passed a child from "+$(a._owner.type)+"."),ar(a),I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',A,D),ar(null)}}function zn(a,S){{if(typeof a!="object")return;if(br(a))for(var A=0;A<a.length;A++){var D=a[A];_t(D)&&Ln(D,S)}else if(_t(a))a._store&&(a._store.validated=!0);else if(a){var oe=C(a);if(typeof oe=="function"&&oe!==a.entries)for(var le=oe.call(a),Z;!(Z=le.next()).done;)_t(Z.value)&&Ln(Z.value,S)}}}function Ws(a){{var S=a.type;if(S==null||typeof S=="string")return;var A;if(typeof S=="function")A=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===d||S.$$typeof===y))A=S.propTypes;else return;if(A){var D=$(S);Ct(A,a.props,"prop",D,a)}else if(S.PropTypes!==void 0&&!Ot){Ot=!0;var oe=$(S);I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof S.getDefaultProps=="function"&&!S.getDefaultProps.isReactClassApproved&&I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ls(a){{for(var S=Object.keys(a.props),A=0;A<S.length;A++){var D=S[A];if(D!=="children"&&D!=="key"){ar(a),I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",D),ar(null);break}}a.ref!==null&&(ar(a),I("Invalid attribute `ref` supplied to `React.Fragment`."),ar(null))}}var Un={};function Yn(a,S,A,D,oe,le){{var Z=he(a);if(!Z){var J="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(J+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ee=Bs();Ee?J+=Ee:J+=Vn();var be;a===null?be="null":br(a)?be="array":a!==void 0&&a.$$typeof===r?(be="<"+($(a.type)||"Unknown")+" />",J=" Did you accidentally export a JSX literal instead of a component?"):be=typeof a,I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,J)}var ve=Fs(a,S,A,oe,le);if(ve==null)return ve;if(Z){var ke=S.children;if(ke!==void 0)if(D)if(br(ke)){for(var cr=0;cr<ke.length;cr++)zn(ke[cr],a);Object.freeze&&Object.freeze(ke)}else I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else zn(ke,a)}if(De.call(S,"key")){var Qe=$(a),Pe=Object.keys(S).filter(function(Hs){return Hs!=="key"}),Rt=Pe.length>0?"{key: someKey, "+Pe.join(": ..., ")+": ...}":"{key: someKey}";if(!Un[Qe+Rt]){var qs=Pe.length>0?"{"+Pe.join(": ..., ")+": ...}":"{}";I(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,Rt,Qe,qs,Qe),Un[Qe+Rt]=!0}}return a===n?Ls(ve):Ws(ve),ve}}function zs(a,S,A){return Yn(a,S,A,!0)}function Us(a,S,A){return Yn(a,S,A,!1)}var Ys=Us,Gs=zs;ur.Fragment=n,ur.jsx=Ys,ur.jsxs=Gs})()),ur}var kt;function Qn(){return kt||(kt=1,process.env.NODE_ENV==="production"?vr.exports=Kn():vr.exports=Jn()),vr.exports}var f=Qn();const It=e=>e,Xn=(()=>{let e=It;return{configure(r){e=r},generate(r){return e(r)},reset(){e=It}}})();function We(e,...r){const t=new URL(`https://mui.com/production-error/?code=${e}`);return r.forEach(n=>t.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${t} for the full message.`}function qe(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":We(7));return e.charAt(0).toUpperCase()+e.slice(1)}var xr={exports:{}},Sr={exports:{}},te={};/** @license React v16.13.1
31
+ * react-is.production.min.js
32
+ *
33
+ * Copyright (c) Facebook, Inc. and its affiliates.
34
+ *
35
+ * This source code is licensed under the MIT license found in the
36
+ * LICENSE file in the root directory of this source tree.
37
+ */var Nt;function Zn(){if(Nt)return te;Nt=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,u=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function F(E){if(typeof E=="object"&&E!==null){var j=E.$$typeof;switch(j){case r:switch(E=E.type,E){case d:case h:case n:case i:case o:case y:return E;default:switch(E=E&&E.$$typeof,E){case l:case g:case v:case w:case c:return E;default:return j}}case t:return j}}}function O(E){return F(E)===h}return te.AsyncMode=d,te.ConcurrentMode=h,te.ContextConsumer=l,te.ContextProvider=c,te.Element=r,te.ForwardRef=g,te.Fragment=n,te.Lazy=v,te.Memo=w,te.Portal=t,te.Profiler=i,te.StrictMode=o,te.Suspense=y,te.isAsyncMode=function(E){return O(E)||F(E)===d},te.isConcurrentMode=O,te.isContextConsumer=function(E){return F(E)===l},te.isContextProvider=function(E){return F(E)===c},te.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===r},te.isForwardRef=function(E){return F(E)===g},te.isFragment=function(E){return F(E)===n},te.isLazy=function(E){return F(E)===v},te.isMemo=function(E){return F(E)===w},te.isPortal=function(E){return F(E)===t},te.isProfiler=function(E){return F(E)===i},te.isStrictMode=function(E){return F(E)===o},te.isSuspense=function(E){return F(E)===y},te.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===h||E===i||E===o||E===y||E===b||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===w||E.$$typeof===c||E.$$typeof===l||E.$$typeof===g||E.$$typeof===C||E.$$typeof===k||E.$$typeof===I||E.$$typeof===u)},te.typeOf=F,te}var ne={};/** @license React v16.13.1
38
+ * react-is.development.js
39
+ *
40
+ * Copyright (c) Facebook, Inc. and its affiliates.
41
+ *
42
+ * This source code is licensed under the MIT license found in the
43
+ * LICENSE file in the root directory of this source tree.
44
+ */var Mt;function eo(){return Mt||(Mt=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,u=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function F(_){return typeof _=="string"||typeof _=="function"||_===n||_===h||_===i||_===o||_===y||_===b||typeof _=="object"&&_!==null&&(_.$$typeof===v||_.$$typeof===w||_.$$typeof===c||_.$$typeof===l||_.$$typeof===g||_.$$typeof===C||_.$$typeof===k||_.$$typeof===I||_.$$typeof===u)}function O(_){if(typeof _=="object"&&_!==null){var W=_.$$typeof;switch(W){case r:var Me=_.type;switch(Me){case d:case h:case n:case i:case o:case y:return Me;default:var _e=Me&&Me.$$typeof;switch(_e){case l:case g:case v:case w:case c:return _e;default:return W}}case t:return W}}}var E=d,j=h,X=l,pe=c,Q=r,he=g,re=n,s=v,$=w,P=t,N=i,K=o,ue=y,xe=!1;function Ie(_){return xe||(xe=!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.")),T(_)||O(_)===d}function T(_){return O(_)===h}function R(_){return O(_)===l}function U(_){return O(_)===c}function B(_){return typeof _=="object"&&_!==null&&_.$$typeof===r}function V(_){return O(_)===g}function G(_){return O(_)===n}function L(_){return O(_)===v}function M(_){return O(_)===w}function q(_){return O(_)===t}function Y(_){return O(_)===i}function H(_){return O(_)===o}function Se(_){return O(_)===y}ne.AsyncMode=E,ne.ConcurrentMode=j,ne.ContextConsumer=X,ne.ContextProvider=pe,ne.Element=Q,ne.ForwardRef=he,ne.Fragment=re,ne.Lazy=s,ne.Memo=$,ne.Portal=P,ne.Profiler=N,ne.StrictMode=K,ne.Suspense=ue,ne.isAsyncMode=Ie,ne.isConcurrentMode=T,ne.isContextConsumer=R,ne.isContextProvider=U,ne.isElement=B,ne.isForwardRef=V,ne.isFragment=G,ne.isLazy=L,ne.isMemo=M,ne.isPortal=q,ne.isProfiler=Y,ne.isStrictMode=H,ne.isSuspense=Se,ne.isValidElementType=F,ne.typeOf=O})()),ne}var Dt;function Ft(){return Dt||(Dt=1,process.env.NODE_ENV==="production"?Sr.exports=Zn():Sr.exports=eo()),Sr.exports}/*
45
+ object-assign
46
+ (c) Sindre Sorhus
47
+ @license MIT
48
+ */var Qr,Bt;function ro(){if(Bt)return Qr;Bt=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var c={},l=0;l<10;l++)c["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(c).map(function(g){return c[g]});if(d.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(g){h[g]=g}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Qr=o()?Object.assign:function(i,c){for(var l,d=n(i),h,g=1;g<arguments.length;g++){l=Object(arguments[g]);for(var y in l)r.call(l,y)&&(d[y]=l[y]);if(e){h=e(l);for(var b=0;b<h.length;b++)t.call(l,h[b])&&(d[h[b]]=l[h[b]])}}return d},Qr}var Xr,Vt;function Zr(){if(Vt)return Xr;Vt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xr=e,Xr}var et,Wt;function Lt(){return Wt||(Wt=1,et=Function.call.bind(Object.prototype.hasOwnProperty)),et}var rt,zt;function to(){if(zt)return rt;zt=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=Zr(),t={},n=Lt();e=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function o(i,c,l,d,h){if(process.env.NODE_ENV!=="production"){for(var g in i)if(n(i,g)){var y;try{if(typeof i[g]!="function"){var b=Error((d||"React class")+": "+l+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}y=i[g](c,g,d,l,null,r)}catch(v){y=v}if(y&&!(y instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in t)){t[y.message]=!0;var w=h?h():"";e("Failed "+l+" type: "+y.message+(w??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},rt=o,rt}var tt,Ut;function no(){if(Ut)return tt;Ut=1;var e=Ft(),r=ro(),t=Zr(),n=Lt(),o=to(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function c(){return null}return tt=function(l,d){var h=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function y(T){var R=T&&(h&&T[h]||T[g]);if(typeof R=="function")return R}var b="<<anonymous>>",w={array:k("array"),bigint:k("bigint"),bool:k("boolean"),func:k("function"),number:k("number"),object:k("object"),string:k("string"),symbol:k("symbol"),any:I(),arrayOf:F,element:O(),elementType:E(),instanceOf:j,node:he(),objectOf:pe,oneOf:X,oneOfType:Q,shape:s,exact:$};function v(T,R){return T===R?T!==0||1/T===1/R:T!==T&&R!==R}function u(T,R){this.message=T,this.data=R&&typeof R=="object"?R:{},this.stack=""}u.prototype=Error.prototype;function C(T){if(process.env.NODE_ENV!=="production")var R={},U=0;function B(G,L,M,q,Y,H,Se){if(q=q||b,H=H||M,Se!==t){if(d){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var W=q+":"+M;!R[W]&&U<3&&(i("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+q+"`. 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."),R[W]=!0,U++)}}return L[M]==null?G?L[M]===null?new u("The "+Y+" `"+H+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new u("The "+Y+" `"+H+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:T(L,M,q,Y,H)}var V=B.bind(null,!1);return V.isRequired=B.bind(null,!0),V}function k(T){function R(U,B,V,G,L,M){var q=U[B],Y=K(q);if(Y!==T){var H=ue(q);return new u("Invalid "+G+" `"+L+"` of type "+("`"+H+"` supplied to `"+V+"`, expected ")+("`"+T+"`."),{expectedType:T})}return null}return C(R)}function I(){return C(c)}function F(T){function R(U,B,V,G,L){if(typeof T!="function")return new u("Property `"+L+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var M=U[B];if(!Array.isArray(M)){var q=K(M);return new u("Invalid "+G+" `"+L+"` of type "+("`"+q+"` supplied to `"+V+"`, expected an array."))}for(var Y=0;Y<M.length;Y++){var H=T(M,Y,V,G,L+"["+Y+"]",t);if(H instanceof Error)return H}return null}return C(R)}function O(){function T(R,U,B,V,G){var L=R[U];if(!l(L)){var M=K(L);return new u("Invalid "+V+" `"+G+"` of type "+("`"+M+"` supplied to `"+B+"`, expected a single ReactElement."))}return null}return C(T)}function E(){function T(R,U,B,V,G){var L=R[U];if(!e.isValidElementType(L)){var M=K(L);return new u("Invalid "+V+" `"+G+"` of type "+("`"+M+"` supplied to `"+B+"`, expected a single ReactElement type."))}return null}return C(T)}function j(T){function R(U,B,V,G,L){if(!(U[B]instanceof T)){var M=T.name||b,q=Ie(U[B]);return new u("Invalid "+G+" `"+L+"` of type "+("`"+q+"` supplied to `"+V+"`, expected ")+("instance of `"+M+"`."))}return null}return C(R)}function X(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),c;function R(U,B,V,G,L){for(var M=U[B],q=0;q<T.length;q++)if(v(M,T[q]))return null;var Y=JSON.stringify(T,function(Se,_){var W=ue(_);return W==="symbol"?String(_):_});return new u("Invalid "+G+" `"+L+"` of value `"+String(M)+"` "+("supplied to `"+V+"`, expected one of "+Y+"."))}return C(R)}function pe(T){function R(U,B,V,G,L){if(typeof T!="function")return new u("Property `"+L+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var M=U[B],q=K(M);if(q!=="object")return new u("Invalid "+G+" `"+L+"` of type "+("`"+q+"` supplied to `"+V+"`, expected an object."));for(var Y in M)if(n(M,Y)){var H=T(M,Y,V,G,L+"."+Y,t);if(H instanceof Error)return H}return null}return C(R)}function Q(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var R=0;R<T.length;R++){var U=T[R];if(typeof U!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+xe(U)+" at index "+R+"."),c}function B(V,G,L,M,q){for(var Y=[],H=0;H<T.length;H++){var Se=T[H],_=Se(V,G,L,M,q,t);if(_==null)return null;_.data&&n(_.data,"expectedType")&&Y.push(_.data.expectedType)}var W=Y.length>0?", expected one of type ["+Y.join(", ")+"]":"";return new u("Invalid "+M+" `"+q+"` supplied to "+("`"+L+"`"+W+"."))}return C(B)}function he(){function T(R,U,B,V,G){return P(R[U])?null:new u("Invalid "+V+" `"+G+"` supplied to "+("`"+B+"`, expected a ReactNode."))}return C(T)}function re(T,R,U,B,V){return new u((T||"React class")+": "+R+" type `"+U+"."+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function s(T){function R(U,B,V,G,L){var M=U[B],q=K(M);if(q!=="object")return new u("Invalid "+G+" `"+L+"` of type `"+q+"` "+("supplied to `"+V+"`, expected `object`."));for(var Y in T){var H=T[Y];if(typeof H!="function")return re(V,G,L,Y,ue(H));var Se=H(M,Y,V,G,L+"."+Y,t);if(Se)return Se}return null}return C(R)}function $(T){function R(U,B,V,G,L){var M=U[B],q=K(M);if(q!=="object")return new u("Invalid "+G+" `"+L+"` of type `"+q+"` "+("supplied to `"+V+"`, expected `object`."));var Y=r({},U[B],T);for(var H in Y){var Se=T[H];if(n(T,H)&&typeof Se!="function")return re(V,G,L,H,ue(Se));if(!Se)return new u("Invalid "+G+" `"+L+"` key `"+H+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(U[B],null," ")+`
49
+ Valid keys: `+JSON.stringify(Object.keys(T),null," "));var _=Se(M,H,V,G,L+"."+H,t);if(_)return _}return null}return C(R)}function P(T){switch(typeof T){case"number":case"string":case"undefined":return!0;case"boolean":return!T;case"object":if(Array.isArray(T))return T.every(P);if(T===null||l(T))return!0;var R=y(T);if(R){var U=R.call(T),B;if(R!==T.entries){for(;!(B=U.next()).done;)if(!P(B.value))return!1}else for(;!(B=U.next()).done;){var V=B.value;if(V&&!P(V[1]))return!1}}else return!1;return!0;default:return!1}}function N(T,R){return T==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function K(T){var R=typeof T;return Array.isArray(T)?"array":T instanceof RegExp?"object":N(R,T)?"symbol":R}function ue(T){if(typeof T>"u"||T===null)return""+T;var R=K(T);if(R==="object"){if(T instanceof Date)return"date";if(T instanceof RegExp)return"regexp"}return R}function xe(T){var R=ue(T);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function Ie(T){return!T.constructor||!T.constructor.name?b:T.constructor.name}return w.checkPropTypes=o,w.resetWarningCache=o.resetWarningCache,w.PropTypes=w,w},tt}var nt,Yt;function oo(){if(Yt)return nt;Yt=1;var e=Zr();function r(){}function t(){}return t.resetWarningCache=r,nt=function(){function n(c,l,d,h,g,y){if(y!==e){var b=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 b.name="Invariant Violation",b}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:r};return i.PropTypes=i,i},nt}var Gt;function io(){if(Gt)return xr.exports;if(Gt=1,process.env.NODE_ENV!=="production"){var e=Ft(),r=!0;xr.exports=no()(e.isElement,r)}else xr.exports=oo()();return xr.exports}var so=io();const ee=Hn(so);function qt(e){var r,t,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(r=0;r<o;r++)e[r]&&(t=qt(e[r]))&&(n&&(n+=" "),n+=t)}else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ht(){for(var e,r,t=0,n="",o=arguments.length;t<o;t++)(e=arguments[t])&&(r=qt(e))&&(n&&(n+=" "),n+=r);return n}function ao(e,r,t=void 0){const n={};for(const o in e){const i=e[o];let c="",l=!0;for(let d=0;d<i.length;d+=1){const h=i[d];h&&(c+=(l===!0?"":" ")+r(h),l=!1,t&&t[h]&&(c+=" "+t[h]))}n[o]=c}return n}var Cr={exports:{}},ae={};/**
50
+ * @license React
51
+ * react-is.production.js
52
+ *
53
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE file in the root directory of this source tree.
57
+ */var Kt;function co(){if(Kt)return ae;Kt=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function v(u){if(typeof u=="object"&&u!==null){var C=u.$$typeof;switch(C){case e:switch(u=u.type,u){case t:case o:case n:case d:case h:case b:return u;default:switch(u=u&&u.$$typeof,u){case c:case l:case y:case g:return u;case i:return u;default:return C}}case r:return C}}}return ae.ContextConsumer=i,ae.ContextProvider=c,ae.Element=e,ae.ForwardRef=l,ae.Fragment=t,ae.Lazy=y,ae.Memo=g,ae.Portal=r,ae.Profiler=o,ae.StrictMode=n,ae.Suspense=d,ae.SuspenseList=h,ae.isContextConsumer=function(u){return v(u)===i},ae.isContextProvider=function(u){return v(u)===c},ae.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===e},ae.isForwardRef=function(u){return v(u)===l},ae.isFragment=function(u){return v(u)===t},ae.isLazy=function(u){return v(u)===y},ae.isMemo=function(u){return v(u)===g},ae.isPortal=function(u){return v(u)===r},ae.isProfiler=function(u){return v(u)===o},ae.isStrictMode=function(u){return v(u)===n},ae.isSuspense=function(u){return v(u)===d},ae.isSuspenseList=function(u){return v(u)===h},ae.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===t||u===o||u===n||u===d||u===h||typeof u=="object"&&u!==null&&(u.$$typeof===y||u.$$typeof===g||u.$$typeof===c||u.$$typeof===i||u.$$typeof===l||u.$$typeof===w||u.getModuleId!==void 0)},ae.typeOf=v,ae}var ce={};/**
58
+ * @license React
59
+ * react-is.development.js
60
+ *
61
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE file in the root directory of this source tree.
65
+ */var Jt;function lo(){return Jt||(Jt=1,process.env.NODE_ENV!=="production"&&(function(){function e(u){if(typeof u=="object"&&u!==null){var C=u.$$typeof;switch(C){case r:switch(u=u.type,u){case n:case i:case o:case h:case g:case w:return u;default:switch(u=u&&u.$$typeof,u){case l:case d:case b:case y:return u;case c:return u;default:return C}}case t:return C}}}var r=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),w=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");ce.ContextConsumer=c,ce.ContextProvider=l,ce.Element=r,ce.ForwardRef=d,ce.Fragment=n,ce.Lazy=b,ce.Memo=y,ce.Portal=t,ce.Profiler=i,ce.StrictMode=o,ce.Suspense=h,ce.SuspenseList=g,ce.isContextConsumer=function(u){return e(u)===c},ce.isContextProvider=function(u){return e(u)===l},ce.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===r},ce.isForwardRef=function(u){return e(u)===d},ce.isFragment=function(u){return e(u)===n},ce.isLazy=function(u){return e(u)===b},ce.isMemo=function(u){return e(u)===y},ce.isPortal=function(u){return e(u)===t},ce.isProfiler=function(u){return e(u)===i},ce.isStrictMode=function(u){return e(u)===o},ce.isSuspense=function(u){return e(u)===h},ce.isSuspenseList=function(u){return e(u)===g},ce.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===n||u===i||u===o||u===h||u===g||typeof u=="object"&&u!==null&&(u.$$typeof===b||u.$$typeof===y||u.$$typeof===l||u.$$typeof===c||u.$$typeof===d||u.$$typeof===v||u.getModuleId!==void 0)},ce.typeOf=e})()),ce}var Qt;function uo(){return Qt||(Qt=1,process.env.NODE_ENV==="production"?Cr.exports=co():Cr.exports=lo()),Cr.exports}var Tr=uo();function Fe(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Xt(e){if(z.isValidElement(e)||Tr.isValidElementType(e)||!Fe(e))return e;const r={};return Object.keys(e).forEach(t=>{r[t]=Xt(e[t])}),r}function $e(e,r,t={clone:!0}){const n=t.clone?{...e}:e;return Fe(e)&&Fe(r)&&Object.keys(r).forEach(o=>{z.isValidElement(r[o])||Tr.isValidElementType(r[o])?n[o]=r[o]:Fe(r[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Fe(e[o])?n[o]=$e(e[o],r[o],t):t.clone?n[o]=Fe(r[o])?Xt(r[o]):r[o]:n[o]=r[o]}),n}function fr(e,r){return r?$e(e,r,{clone:!1}):e}const Le=process.env.NODE_ENV!=="production"?ee.oneOfType([ee.number,ee.string,ee.object,ee.array]):{};function Zt(e,r){if(!e.containerQueries)return r;const t=Object.keys(r).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return t.length?t.reduce((n,o)=>{const i=r[o];return delete n[o],n[o]=i,n},{...r}):r}function fo(e,r){return r==="@"||r.startsWith("@")&&(e.some(t=>r.startsWith(`@${t}`))||!!r.match(/^@\d/))}function po(e,r){const t=r.match(/^@([^/]+)?\/?(.+)?$/);if(!t){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${r})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
66
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:We(18,`(${r})`));return null}const[,n,o]=t,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function ho(e){const r=(i,c)=>i.replace("@media",c?`@container ${c}`:"@container");function t(i,c){i.up=(...l)=>r(e.breakpoints.up(...l),c),i.down=(...l)=>r(e.breakpoints.down(...l),c),i.between=(...l)=>r(e.breakpoints.between(...l),c),i.only=(...l)=>r(e.breakpoints.only(...l),c),i.not=(...l)=>{const d=r(e.breakpoints.not(...l),c);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const n={},o=i=>(t(n,i),n);return t(o),{...e,containerQueries:o}}const Er={xs:0,sm:600,md:900,lg:1200,xl:1536},en={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Er[e]}px)`},mo={containerQueries:e=>({up:r=>{let t=typeof r=="number"?r:Er[r]||r;return typeof t=="number"&&(t=`${t}px`),e?`@container ${e} (min-width:${t})`:`@container (min-width:${t})`}})};function Be(e,r,t){const n=e.theme||{};if(Array.isArray(r)){const i=n.breakpoints||en;return r.reduce((c,l,d)=>(c[i.up(i.keys[d])]=t(r[d]),c),{})}if(typeof r=="object"){const i=n.breakpoints||en;return Object.keys(r).reduce((c,l)=>{if(fo(i.keys,l)){const d=po(n.containerQueries?n:mo,l);d&&(c[d]=t(r[l],l))}else if(Object.keys(i.values||Er).includes(l)){const d=i.up(l);c[d]=t(r[l],l)}else{const d=l;c[d]=r[d]}return c},{})}return t(r)}function go(e={}){return e.keys?.reduce((t,n)=>{const o=e.up(n);return t[o]={},t},{})||{}}function rn(e,r){return e.reduce((t,n)=>{const o=t[n];return(!o||Object.keys(o).length===0)&&delete t[n],t},r)}function wr(e,r,t=!0){if(!r||typeof r!="string")return null;if(e&&e.vars&&t){const n=`vars.${r}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return r.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Pr(e,r,t,n=t){let o;return typeof e=="function"?o=e(t):Array.isArray(e)?o=e[t]||n:o=wr(e,t)||n,r&&(o=r(o,n,e)),o}function ye(e){const{prop:r,cssProperty:t=e.prop,themeKey:n,transform:o}=e,i=c=>{if(c[r]==null)return null;const l=c[r],d=c.theme,h=wr(d,n)||{};return Be(c,l,y=>{let b=Pr(h,o,y);return y===b&&typeof y=="string"&&(b=Pr(h,o,`${r}${y==="default"?"":qe(y)}`,y)),t===!1?b:{[t]:b}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[r]:Le}:{},i.filterProps=[r],i}function yo(e){const r={};return t=>(r[t]===void 0&&(r[t]=e(t)),r[t])}const bo={m:"margin",p:"padding"},vo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},tn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xo=yo(e=>{if(e.length>2)if(tn[e])e=tn[e];else return[e];const[r,t]=e.split(""),n=bo[r],o=vo[t]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),$r=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Or=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],So=[...$r,...Or];function dr(e,r,t,n){const o=wr(e,r,!0)??t;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const c=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(c)?c>o.length-1&&console.error([`MUI: The value provided (${c}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${c} > ${o.length-1}, you need to add the missing values.`].join(`
67
+ `)):console.error([`MUI: The \`theme.${r}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${r}\` as a number.`].join(`
68
+ `)));const l=o[c];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${r}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
69
+ `)),()=>{})}function ot(e){return dr(e,"spacing",8,"spacing")}function pr(e,r){return typeof r=="string"||r==null?r:e(r)}function Co(e,r){return t=>e.reduce((n,o)=>(n[o]=pr(r,t),n),{})}function To(e,r,t,n){if(!r.includes(t))return null;const o=xo(t),i=Co(o,n),c=e[t];return Be(e,c,i)}function nn(e,r){const t=ot(e.theme);return Object.keys(e).map(n=>To(e,r,n,t)).reduce(fr,{})}function me(e){return nn(e,$r)}me.propTypes=process.env.NODE_ENV!=="production"?$r.reduce((e,r)=>(e[r]=Le,e),{}):{},me.filterProps=$r;function ge(e){return nn(e,Or)}ge.propTypes=process.env.NODE_ENV!=="production"?Or.reduce((e,r)=>(e[r]=Le,e),{}):{},ge.filterProps=Or,process.env.NODE_ENV!=="production"&&So.reduce((e,r)=>(e[r]=Le,e),{});function _r(...e){const r=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),t=n=>Object.keys(n).reduce((o,i)=>r[i]?fr(o,r[i](n)):o,{});return t.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},t.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),t}function Re(e){return typeof e!="number"?e:`${e}px solid`}function Ae(e,r){return ye({prop:e,themeKey:"borders",transform:r})}const Eo=Ae("border",Re),wo=Ae("borderTop",Re),Po=Ae("borderRight",Re),$o=Ae("borderBottom",Re),Oo=Ae("borderLeft",Re),_o=Ae("borderColor"),Ro=Ae("borderTopColor"),Ao=Ae("borderRightColor"),jo=Ae("borderBottomColor"),ko=Ae("borderLeftColor"),Io=Ae("outline",Re),No=Ae("outlineColor"),Rr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const r=dr(e.theme,"shape.borderRadius",4,"borderRadius"),t=n=>({borderRadius:pr(r,n)});return Be(e,e.borderRadius,t)}return null};Rr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Le}:{},Rr.filterProps=["borderRadius"],_r(Eo,wo,Po,$o,Oo,_o,Ro,Ao,jo,ko,Rr,Io,No);const Ar=e=>{if(e.gap!==void 0&&e.gap!==null){const r=dr(e.theme,"spacing",8,"gap"),t=n=>({gap:pr(r,n)});return Be(e,e.gap,t)}return null};Ar.propTypes=process.env.NODE_ENV!=="production"?{gap:Le}:{},Ar.filterProps=["gap"];const jr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const r=dr(e.theme,"spacing",8,"columnGap"),t=n=>({columnGap:pr(r,n)});return Be(e,e.columnGap,t)}return null};jr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Le}:{},jr.filterProps=["columnGap"];const kr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const r=dr(e.theme,"spacing",8,"rowGap"),t=n=>({rowGap:pr(r,n)});return Be(e,e.rowGap,t)}return null};kr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Le}:{},kr.filterProps=["rowGap"];const Mo=ye({prop:"gridColumn"}),Do=ye({prop:"gridRow"}),Fo=ye({prop:"gridAutoFlow"}),Bo=ye({prop:"gridAutoColumns"}),Vo=ye({prop:"gridAutoRows"}),Wo=ye({prop:"gridTemplateColumns"}),Lo=ye({prop:"gridTemplateRows"}),zo=ye({prop:"gridTemplateAreas"}),Uo=ye({prop:"gridArea"});_r(Ar,jr,kr,Mo,Do,Fo,Bo,Vo,Wo,Lo,zo,Uo);function Xe(e,r){return r==="grey"?r:e}const Yo=ye({prop:"color",themeKey:"palette",transform:Xe}),Go=ye({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xe}),qo=ye({prop:"backgroundColor",themeKey:"palette",transform:Xe});_r(Yo,Go,qo);function Oe(e){return e<=1&&e!==0?`${e*100}%`:e}const Ho=ye({prop:"width",transform:Oe}),it=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const r=t=>{const n=e.theme?.breakpoints?.values?.[t]||Er[t];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Oe(t)}};return Be(e,e.maxWidth,r)}return null};it.filterProps=["maxWidth"];const Ko=ye({prop:"minWidth",transform:Oe}),Jo=ye({prop:"height",transform:Oe}),Qo=ye({prop:"maxHeight",transform:Oe}),Xo=ye({prop:"minHeight",transform:Oe});ye({prop:"size",cssProperty:"width",transform:Oe}),ye({prop:"size",cssProperty:"height",transform:Oe});const Zo=ye({prop:"boxSizing"});_r(Ho,it,Ko,Jo,Qo,Xo,Zo);const Ir={border:{themeKey:"borders",transform:Re},borderTop:{themeKey:"borders",transform:Re},borderRight:{themeKey:"borders",transform:Re},borderBottom:{themeKey:"borders",transform:Re},borderLeft:{themeKey:"borders",transform:Re},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Re},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Rr},color:{themeKey:"palette",transform:Xe},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xe},backgroundColor:{themeKey:"palette",transform:Xe},p:{style:ge},pt:{style:ge},pr:{style:ge},pb:{style:ge},pl:{style:ge},px:{style:ge},py:{style:ge},padding:{style:ge},paddingTop:{style:ge},paddingRight:{style:ge},paddingBottom:{style:ge},paddingLeft:{style:ge},paddingX:{style:ge},paddingY:{style:ge},paddingInline:{style:ge},paddingInlineStart:{style:ge},paddingInlineEnd:{style:ge},paddingBlock:{style:ge},paddingBlockStart:{style:ge},paddingBlockEnd:{style:ge},m:{style:me},mt:{style:me},mr:{style:me},mb:{style:me},ml:{style:me},mx:{style:me},my:{style:me},margin:{style:me},marginTop:{style:me},marginRight:{style:me},marginBottom:{style:me},marginLeft:{style:me},marginX:{style:me},marginY:{style:me},marginInline:{style:me},marginInlineStart:{style:me},marginInlineEnd:{style:me},marginBlock:{style:me},marginBlockStart:{style:me},marginBlockEnd:{style:me},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ar},rowGap:{style:kr},columnGap:{style:jr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Oe},maxWidth:{style:it},minWidth:{transform:Oe},height:{transform:Oe},maxHeight:{transform:Oe},minHeight:{transform:Oe},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 ei(...e){const r=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),t=new Set(r);return e.every(n=>t.size===Object.keys(n).length)}function ri(e,r){return typeof e=="function"?e(r):e}function ti(){function e(t,n,o,i){const c={[t]:n,theme:o},l=i[t];if(!l)return{[t]:n};const{cssProperty:d=t,themeKey:h,transform:g,style:y}=l;if(n==null)return null;if(h==="typography"&&n==="inherit")return{[t]:n};const b=wr(o,h)||{};return y?y(c):Be(c,n,v=>{let u=Pr(b,g,v);return v===u&&typeof v=="string"&&(u=Pr(b,g,`${t}${v==="default"?"":qe(v)}`,v)),d===!1?u:{[d]:u}})}function r(t){const{sx:n,theme:o={},nested:i}=t||{};if(!n)return null;const c=o.unstable_sxConfig??Ir;function l(d){let h=d;if(typeof d=="function")h=d(o);else if(typeof d!="object")return d;if(!h)return null;const g=go(o.breakpoints),y=Object.keys(g);let b=g;return Object.keys(h).forEach(w=>{const v=ri(h[w],o);if(v!=null)if(typeof v=="object")if(c[w])b=fr(b,e(w,v,o,c));else{const u=Be({theme:o},v,C=>({[w]:C}));ei(u,v)?b[w]=r({sx:v,theme:o,nested:!0}):b=fr(b,u)}else b=fr(b,e(w,v,o,c))}),!i&&o.modularCssLayers?{"@layer sx":Zt(o,rn(y,b))}:Zt(o,rn(y,b))}return Array.isArray(n)?n.map(l):l(n)}return r}const Ze=ti();Ze.filterProps=["sx"];function ni(e){for(var r=0,t,n=0,o=e.length;o>=4;++n,o-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var oi={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 ii(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var si=/[A-Z]|^ms/g,ai=/_EMO_([^_]+?)_([^]*?)_EMO_/g,on=function(r){return r.charCodeAt(1)===45},sn=function(r){return r!=null&&typeof r!="boolean"},st=ii(function(e){return on(e)?e:e.replace(si,"-$&").toLowerCase()}),an=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(ai,function(n,o,i){return ze={name:o,styles:i,next:ze},o})}return oi[r]!==1&&!on(r)&&typeof t=="number"&&t!==0?t+"px":t};function Nr(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var o=t;if(o.anim===1)return ze={name:o.name,styles:o.styles,next:ze},o.name;var i=t;if(i.styles!==void 0){var c=i.next;if(c!==void 0)for(;c!==void 0;)ze={name:c.name,styles:c.styles,next:ze},c=c.next;var l=i.styles+";";return l}return ci(e,r,t)}}var d=t;return d}function ci(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o<t.length;o++)n+=Nr(e,r,t[o])+";";else for(var i in t){var c=t[i];if(typeof c!="object"){var l=c;sn(l)&&(n+=st(i)+":"+an(i,l)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&r==null)for(var d=0;d<c.length;d++)sn(c[d])&&(n+=st(i)+":"+an(i,c[d])+";");else{var h=Nr(e,r,c);switch(i){case"animation":case"animationName":{n+=st(i)+":"+h+";";break}default:n+=i+"{"+h+"}"}}}return n}var cn=/label:\s*([^\s;{]+)\s*(;|$)/g,ze;function li(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";ze=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Nr(t,r,i);else{var c=i;o+=c[0]}for(var l=1;l<e.length;l++)if(o+=Nr(t,r,e[l]),n){var d=i;o+=d[l]}cn.lastIndex=0;for(var h="",g;(g=cn.exec(o))!==null;)h+="-"+g[1];var y=ni(o)+h;return{name:y,styles:o,next:ze}}/**
70
+ * @mui/styled-engine v7.3.1
71
+ *
72
+ * @license MIT
73
+ * This source code is licensed under the MIT license found in the
74
+ * LICENSE file in the root directory of this source tree.
75
+ */function ui(e,r){const t=Gn(e,r);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
76
+ `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),t(...n)}:t}function fi(e,r){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))}const ln=[];function He(e){return ln[0]=e,li(ln)}const di=e=>{const r=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return r.sort((t,n)=>t.val-n.val),r.reduce((t,n)=>({...t,[n.key]:n.val}),{})};function pi(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:n=5,...o}=e,i=di(r),c=Object.keys(i);function l(b){return`@media (min-width:${typeof r[b]=="number"?r[b]:b}${t})`}function d(b){return`@media (max-width:${(typeof r[b]=="number"?r[b]:b)-n/100}${t})`}function h(b,w){const v=c.indexOf(w);return`@media (min-width:${typeof r[b]=="number"?r[b]:b}${t}) and (max-width:${(v!==-1&&typeof r[c[v]]=="number"?r[c[v]]:w)-n/100}${t})`}function g(b){return c.indexOf(b)+1<c.length?h(b,c[c.indexOf(b)+1]):l(b)}function y(b){const w=c.indexOf(b);return w===0?l(c[1]):w===c.length-1?d(c[w]):h(b,c[c.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:c,values:i,up:l,down:d,between:h,only:g,not:y,unit:t,...o}}const hi={borderRadius:4};function un(e=8,r=ot({spacing:e})){if(e.mui)return e;const t=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const c=r(i);return typeof c=="number"?`${c}px`:c}).join(" "));return t.mui=!0,t}function mi(e,r){const t=this;if(t.vars){if(!t.colorSchemes?.[e]||typeof t.getColorSchemeSelector!="function")return{};let n=t.getColorSchemeSelector(e);return n==="&"?r:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:r})}return t.palette.mode===e?r:{}}function fn(e={},...r){const{breakpoints:t={},palette:n={},spacing:o,shape:i={},...c}=e,l=pi(t),d=un(o);let h=$e({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:d,shape:{...hi,...i}},c);return h=ho(h),h.applyStyles=mi,h=r.reduce((g,y)=>$e(g,y),h),h.unstable_sxConfig={...Ir,...c?.unstable_sxConfig},h.unstable_sx=function(y){return Ze({sx:y,theme:this})},h}const gi={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 at(e,r,t="Mui"){const n=gi[r];return n?`${t}-${n}`:`${Xn.generate(e)}-${r}`}function yi(e,r,t="Mui"){const n={};return r.forEach(o=>{n[o]=at(e,o,t)}),n}function dn(e,r=""){return e.displayName||e.name||r}function pn(e,r,t){const n=dn(r);return e.displayName||(n!==""?`${t}(${n})`:t)}function bi(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return dn(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Tr.ForwardRef:return pn(e,e.render,"ForwardRef");case Tr.Memo:return pn(e,e.type,"memo");default:return}}}function hn(e){const{variants:r,...t}=e,n={variants:r,style:He(t),isProcessed:!0};return n.style===t||r&&r.forEach(o=>{typeof o.style!="function"&&(o.style=He(o.style))}),n}const vi=fn();function ct(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ke(e,r){return r&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${r}{${String(e.styles)}}`),e}function xi(e){return e?(r,t)=>t[e]:null}function Si(e,r,t){e.theme=wi(e.theme)?t:e.theme[r]||e.theme}function Mr(e,r,t){const n=typeof r=="function"?r(e):r;if(Array.isArray(n))return n.flatMap(o=>Mr(e,o,t));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=t?Ke(n.style,t):n.style;else{const{variants:i,...c}=n;o=t?Ke(He(c),t):c}return mn(e,n.variants,[o],t)}return n?.isProcessed?t?Ke(He(n.style),t):n.style:t?Ke(He(n),t):n}function mn(e,r,t=[],n=void 0){let o;e:for(let i=0;i<r.length;i+=1){const c=r[i];if(typeof c.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!c.props(o))continue}else for(const l in c.props)if(e[l]!==c.props[l]&&e.ownerState?.[l]!==c.props[l])continue e;typeof c.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},t.push(n?Ke(He(c.style(o)),n):c.style(o))):t.push(n?Ke(He(c.style),n):c.style)}return t}function Ci(e={}){const{themeId:r,defaultTheme:t=vi,rootShouldForwardProp:n=ct,slotShouldForwardProp:o=ct}=e;function i(l){Si(l,r,t)}return(l,d={})=>{fi(l,j=>j.filter(X=>X!==Ze));const{name:h,slot:g,skipVariantsResolver:y,skipSx:b,overridesResolver:w=xi(gn(g)),...v}=d,u=h&&h.startsWith("Mui")||g?"components":"custom",C=y!==void 0?y:g&&g!=="Root"&&g!=="root"||!1,k=b||!1;let I=ct;g==="Root"||g==="root"?I=n:g?I=o:Pi(l)&&(I=void 0);const F=ui(l,{shouldForwardProp:I,label:Ei(h,g),...v}),O=j=>{if(j.__emotion_real===j)return j;if(typeof j=="function")return function(pe){return Mr(pe,j,pe.theme.modularCssLayers?u:void 0)};if(Fe(j)){const X=hn(j);return function(Q){return X.variants?Mr(Q,X,Q.theme.modularCssLayers?u:void 0):Q.theme.modularCssLayers?Ke(X.style,u):X.style}}return j},E=(...j)=>{const X=[],pe=j.map(O),Q=[];if(X.push(i),h&&w&&Q.push(function($){const N=$.theme.components?.[h]?.styleOverrides;if(!N)return null;const K={};for(const ue in N)K[ue]=Mr($,N[ue],$.theme.modularCssLayers?"theme":void 0);return w($,K)}),h&&!C&&Q.push(function($){const N=$.theme?.components?.[h]?.variants;return N?mn($,N,[],$.theme.modularCssLayers?"theme":void 0):null}),k||Q.push(Ze),Array.isArray(pe[0])){const s=pe.shift(),$=new Array(X.length).fill(""),P=new Array(Q.length).fill("");let N;N=[...$,...s,...P],N.raw=[...$,...s.raw,...P],X.unshift(N)}const he=[...X,...pe,...Q],re=F(...he);return l.muiName&&(re.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(re.displayName=Ti(h,g,l)),re};return F.withConfig&&(E.withConfig=F.withConfig),E}}function Ti(e,r,t){return e?`${e}${qe(r||"")}`:`Styled(${bi(t)})`}function Ei(e,r){let t;return process.env.NODE_ENV!=="production"&&e&&(t=`${e}-${gn(r||"Root")}`),t}function wi(e){for(const r in e)return!1;return!0}function Pi(e){return typeof e=="string"&&e.charCodeAt(0)>96}function gn(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function lt(e,r,t=!1){const n={...r};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const c=e[i],l=r[i];if(!l)n[i]=c||{};else if(!c)n[i]=l;else{n[i]={...l};for(const d in c)if(Object.prototype.hasOwnProperty.call(c,d)){const h=d;n[i][h]=lt(c[h],l[h],t)}}}else i==="className"&&t&&r.className?n.className=Ht(e?.className,r?.className):i==="style"&&t&&r.style?n.style={...e?.style,...r?.style}:n[i]===void 0&&(n[i]=e[i])}return n}function $i(e,r=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(e,t))}function ut(e,r=0,t=1){return process.env.NODE_ENV!=="production"&&(e<r||e>t)&&console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`),$i(e,r,t)}function Oi(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let t=e.match(r);return t&&t[0].length===1&&(t=t.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),t?`rgb${t.length===4?"a":""}(${t.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ue(e){if(e.type)return e;if(e.charAt(0)==="#")return Ue(Oi(e));const r=e.indexOf("("),t=e.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(t))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
77
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:We(9,e));let n=e.substring(r+1,e.length-1),o;if(t==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
78
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:We(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:t,values:n,colorSpace:o}}const _i=e=>{const r=Ue(e);return r.values.slice(0,3).map((t,n)=>r.type.includes("hsl")&&n!==0?`${t}%`:t).join(" ")},hr=(e,r)=>{try{return _i(e)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}};function Dr(e){const{type:r,colorSpace:t}=e;let{values:n}=e;return r.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):r.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),r.includes("color")?n=`${t} ${n.join(" ")}`:n=`${n.join(", ")}`,`${r}(${n})`}function yn(e){e=Ue(e);const{values:r}=e,t=r[0],n=r[1]/100,o=r[2]/100,i=n*Math.min(o,1-o),c=(h,g=(h+t/30)%12)=>o-i*Math.max(Math.min(g-3,9-g,1),-1);let l="rgb";const d=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(l+="a",d.push(r[3])),Dr({type:l,values:d})}function ft(e){e=Ue(e);let r=e.type==="hsl"||e.type==="hsla"?Ue(yn(e)).values:e.values;return r=r.map(t=>(e.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function bn(e,r){const t=ft(e),n=ft(r);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}function vn(e,r){return e=Ue(e),r=ut(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,Dr(e)}function Je(e,r,t){try{return vn(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function Fr(e,r){if(e=Ue(e),r=ut(r),e.type.includes("hsl"))e.values[2]*=1-r;else if(e.type.includes("rgb")||e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]*=1-r;return Dr(e)}function ie(e,r,t){try{return Fr(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function Br(e,r){if(e=Ue(e),r=ut(r),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*r;else if(e.type.includes("rgb"))for(let t=0;t<3;t+=1)e.values[t]+=(255-e.values[t])*r;else if(e.type.includes("color"))for(let t=0;t<3;t+=1)e.values[t]+=(1-e.values[t])*r;return Dr(e)}function se(e,r,t){try{return Br(e,r)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}}function Ri(e,r=.15){return ft(e)>.5?Fr(e,r):Br(e,r)}function Vr(e,r,t){try{return Ri(e,r)}catch{return e}}const Ai=z.createContext(void 0);process.env.NODE_ENV!=="production"&&(ee.node,ee.object);function ji(e){const{theme:r,name:t,props:n}=e;if(!r||!r.components||!r.components[t])return n;const o=r.components[t];return o.defaultProps?lt(o.defaultProps,n,r.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?lt(o,n,r.components.mergeClassNameAndStyle):n}function ki({props:e,name:r}){const t=z.useContext(Ai);return ji({props:e,name:r,theme:{components:t}})}const xn={theme:void 0};function Ii(e){let r,t;return function(o){let i=r;return(i===void 0||o.theme!==t)&&(xn.theme=o.theme,i=hn(e(xn)),r=i,t=o.theme),i}}function Ni(e=""){function r(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${r(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${r(...o)})`}const Sn=(e,r,t,n=[])=>{let o=e;r.forEach((i,c)=>{c===r.length-1?Array.isArray(o)?o[Number(i)]=t:o&&typeof o=="object"&&(o[i]=t):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},Mi=(e,r,t)=>{function n(o,i=[],c=[]){Object.entries(o).forEach(([l,d])=>{(!t||t&&!t([...i,l]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?n(d,[...i,l],Array.isArray(d)?[...c,l]:c):r([...i,l],d,c))})}n(e)},Di=(e,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function dt(e,r){const{prefix:t,shouldSkipGeneratingVar:n}=r||{},o={},i={},c={};return Mi(e,(l,d,h)=>{if((typeof d=="string"||typeof d=="number")&&(!n||!n(l,d))){const g=`--${t?`${t}-`:""}${l.join("-")}`,y=Di(l,d);Object.assign(o,{[g]:y}),Sn(i,l,`var(${g})`,h),Sn(c,l,`var(${g}, ${y})`,h)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:c}}function Fi(e,r={}){const{getSelector:t=k,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=r,{colorSchemes:c={},components:l,defaultColorScheme:d="light",...h}=e,{vars:g,css:y,varsWithDefaults:b}=dt(h,r);let w=b;const v={},{[d]:u,...C}=c;if(Object.entries(C||{}).forEach(([O,E])=>{const{vars:j,css:X,varsWithDefaults:pe}=dt(E,r);w=$e(w,pe),v[O]={css:X,vars:j}}),u){const{css:O,vars:E,varsWithDefaults:j}=dt(u,r);w=$e(w,j),v[d]={css:O,vars:E}}function k(O,E){let j=o;if(o==="class"&&(j=".%s"),o==="data"&&(j="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(j=`[${o}="%s"]`),O){if(j==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${c[O]?.palette?.mode||O})`]:{":root":E}};if(j)return e.defaultColorScheme===O?`:root, ${j.replace("%s",String(O))}`:j.replace("%s",String(O))}return":root"}return{vars:w,generateThemeVars:()=>{let O={...g};return Object.entries(v).forEach(([,{vars:E}])=>{O=$e(O,E)}),O},generateStyleSheets:()=>{const O=[],E=e.defaultColorScheme||"light";function j(Q,he){Object.keys(he).length&&O.push(typeof Q=="string"?{[Q]:{...he}}:Q)}j(t(void 0,{...y}),y);const{[E]:X,...pe}=v;if(X){const{css:Q}=X,he=c[E]?.palette?.mode,re=!n&&he?{colorScheme:he,...Q}:{...Q};j(t(E,{...re}),re)}return Object.entries(pe).forEach(([Q,{css:he}])=>{const re=c[Q]?.palette?.mode,s=!n&&re?{colorScheme:re,...he}:{...he};j(t(Q,{...s}),s)}),i&&O.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)"}}),O}}}function Bi(e){return function(t){return e==="media"?(process.env.NODE_ENV!=="production"&&t!=="light"&&t!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@media (prefers-color-scheme: ${t})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:e==="class"?`.${t} &`:e==="data"?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}const mr={black:"#000",white:"#fff"},Vi={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"},er={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},rr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},gr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},tr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},nr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},or={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Cn(){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:mr.white,default:mr.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 Tn=Cn();function En(){return{text:{primary:mr.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:mr.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 pt=En();function wn(e,r,t,n){const o=n.light||n,i=n.dark||n*1.5;e[r]||(e.hasOwnProperty(t)?e[r]=e[t]:r==="light"?e.light=Br(e.main,o):r==="dark"&&(e.dark=Fr(e.main,i)))}function Pn(e,r,t,n,o){const i=o.light||o,c=o.dark||o*1.5;r[t]||(r.hasOwnProperty(n)?r[t]=r[n]:t==="light"?r.light=`color-mix(in ${e}, ${r.main}, #fff ${(i*100).toFixed(0)}%)`:t==="dark"&&(r.dark=`color-mix(in ${e}, ${r.main}, #000 ${(c*100).toFixed(0)}%)`))}function Wi(e="light"){return e==="dark"?{main:tr[200],light:tr[50],dark:tr[400]}:{main:tr[700],light:tr[400],dark:tr[800]}}function Li(e="light"){return e==="dark"?{main:er[200],light:er[50],dark:er[400]}:{main:er[500],light:er[300],dark:er[700]}}function zi(e="light"){return e==="dark"?{main:rr[500],light:rr[300],dark:rr[700]}:{main:rr[700],light:rr[400],dark:rr[800]}}function Ui(e="light"){return e==="dark"?{main:nr[400],light:nr[300],dark:nr[700]}:{main:nr[700],light:nr[500],dark:nr[900]}}function Yi(e="light"){return e==="dark"?{main:or[400],light:or[300],dark:or[700]}:{main:or[800],light:or[500],dark:or[900]}}function Gi(e="light"){return e==="dark"?{main:gr[400],light:gr[300],dark:gr[700]}:{main:"#ed6c02",light:gr[500],dark:gr[900]}}function qi(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ht(e){const{mode:r="light",contrastThreshold:t=3,tonalOffset:n=.2,colorSpace:o,...i}=e,c=e.primary||Wi(r),l=e.secondary||Li(r),d=e.error||zi(r),h=e.info||Ui(r),g=e.success||Yi(r),y=e.warning||Gi(r);function b(C){if(o)return qi(C);const k=bn(C,pt.text.primary)>=t?pt.text.primary:Tn.text.primary;if(process.env.NODE_ENV!=="production"){const I=bn(C,k);I<3&&console.error([`MUI: The contrast ratio of ${I}:1 for ${k} on ${C}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
79
+ `))}return k}const w=({color:C,name:k,mainShade:I=500,lightShade:F=300,darkShade:O=700})=>{if(C={...C},!C.main&&C[I]&&(C.main=C[I]),!C.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${k?` (${k})`:""} provided to augmentColor(color) is invalid.
80
+ The color object needs to have a \`main\` property or a \`${I}\` property.`:We(11,k?` (${k})`:"",I));if(typeof C.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${k?` (${k})`:""} provided to augmentColor(color) is invalid.
81
+ \`color.main\` should be a string, but \`${JSON.stringify(C.main)}\` was provided instead.
82
+
83
+ Did you intend to use one of the following approaches?
84
+
85
+ import { green } from "@mui/material/colors";
86
+
87
+ const theme1 = createTheme({ palette: {
88
+ primary: green,
89
+ } });
90
+
91
+ const theme2 = createTheme({ palette: {
92
+ primary: { main: green[500] },
93
+ } });`:We(12,k?` (${k})`:"",JSON.stringify(C.main)));return o?(Pn(o,C,"light",F,n),Pn(o,C,"dark",O,n)):(wn(C,"light",F,n),wn(C,"dark",O,n)),C.contrastText||(C.contrastText=b(C.main)),C};let v;return r==="light"?v=Cn():r==="dark"&&(v=En()),process.env.NODE_ENV!=="production"&&(v||console.error(`MUI: The palette mode \`${r}\` is not supported.`)),$e({common:{...mr},mode:r,primary:w({color:c,name:"primary"}),secondary:w({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:d,name:"error"}),warning:w({color:y,name:"warning"}),info:w({color:h,name:"info"}),success:w({color:g,name:"success"}),grey:Vi,contrastThreshold:t,getContrastText:b,augmentColor:w,tonalOffset:n,...v},i)}function Hi(e){const r={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(r[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),r}function Ki(e,r){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...r}}function Ji(e){return Math.round(e*1e5)/1e5}const $n={textTransform:"uppercase"},On='"Roboto", "Helvetica", "Arial", sans-serif';function Qi(e,r){const{fontFamily:t=On,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:c=500,fontWeightBold:l=700,htmlFontSize:d=16,allVariants:h,pxToRem:g,...y}=typeof r=="function"?r(e):r;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=n/14,w=g||(C=>`${C/d*b}rem`),v=(C,k,I,F,O)=>({fontFamily:t,fontWeight:C,fontSize:w(k),lineHeight:I,...t===On?{letterSpacing:`${Ji(F/k)}em`}:{},...O,...h}),u={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(i,48,1.167,0),h4:v(i,34,1.235,.25),h5:v(i,24,1.334,0),h6:v(c,20,1.6,.15),subtitle1:v(i,16,1.75,.15),subtitle2:v(c,14,1.57,.1),body1:v(i,16,1.5,.15),body2:v(i,14,1.43,.15),button:v(c,14,1.75,.4,$n),caption:v(i,12,1.66,.4),overline:v(i,12,2.66,1,$n),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $e({htmlFontSize:d,pxToRem:w,fontFamily:t,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:c,fontWeightBold:l,...u},y,{clone:!1})}const Xi=.2,Zi=.14,es=.12;function fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Xi})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Zi})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${es})`].join(",")}const rs=["none",fe(0,2,1,-1,0,1,1,0,0,1,3,0),fe(0,3,1,-2,0,2,2,0,0,1,5,0),fe(0,3,3,-2,0,3,4,0,0,1,8,0),fe(0,2,4,-1,0,4,5,0,0,1,10,0),fe(0,3,5,-1,0,5,8,0,0,1,14,0),fe(0,3,5,-1,0,6,10,0,0,1,18,0),fe(0,4,5,-2,0,7,10,1,0,2,16,1),fe(0,5,5,-3,0,8,10,1,0,3,14,2),fe(0,5,6,-3,0,9,12,1,0,3,16,2),fe(0,6,6,-3,0,10,14,1,0,4,18,3),fe(0,6,7,-4,0,11,15,1,0,4,20,3),fe(0,7,8,-4,0,12,17,2,0,5,22,4),fe(0,7,8,-4,0,13,19,2,0,5,24,4),fe(0,7,9,-4,0,14,21,2,0,5,26,4),fe(0,8,9,-5,0,15,22,2,0,6,28,5),fe(0,8,10,-5,0,16,24,2,0,6,30,5),fe(0,8,11,-5,0,17,26,2,0,6,32,5),fe(0,9,11,-5,0,18,28,2,0,7,34,6),fe(0,9,12,-6,0,19,29,2,0,7,36,6),fe(0,10,13,-6,0,20,31,3,0,8,38,7),fe(0,10,13,-6,0,21,33,3,0,8,40,7),fe(0,10,14,-6,0,22,35,3,0,8,42,7),fe(0,11,14,-7,0,23,36,3,0,9,44,8),fe(0,11,15,-7,0,24,38,3,0,9,46,8)],ts={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)"},ns={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _n(e){return`${Math.round(e)}ms`}function os(e){if(!e)return 0;const r=e/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function is(e){const r={...ts,...e.easing},t={...ns,...e.duration};return{getAutoHeightDuration:os,create:(o=["all"],i={})=>{const{duration:c=t.standard,easing:l=r.easeInOut,delay:d=0,...h}=i;if(process.env.NODE_ENV!=="production"){const g=b=>typeof b=="string",y=b=>!Number.isNaN(parseFloat(b));!g(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!y(c)&&!g(c)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${c}.`),g(l)||console.error('MUI: Argument "easing" must be a string.'),!y(d)&&!g(d)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
94
+ `)),Object.keys(h).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(h).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(g=>`${g} ${typeof c=="string"?c:_n(c)} ${l} ${typeof d=="string"?d:_n(d)}`).join(",")},...e,easing:r,duration:t}}const ss={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function as(e){return Fe(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Rn(e={}){const r={...e};function t(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[c,l]=o[i];!as(l)||c.startsWith("unstable_")?delete n[c]:Fe(l)&&(n[c]={...l},t(n[c]))}}return t(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
95
+
96
+ const theme = ${JSON.stringify(r,null,2)};
97
+
98
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
99
+ theme.transitions = createTransitions(theme.transitions || {});
100
+
101
+ export default theme;`}function An(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const cs=e=>{if(!Number.isNaN(+e))return+e;const r=e.match(/\d*\.?\d+/g);if(!r)return 0;let t=0;for(let n=0;n<r.length;n+=1)t+=+r[n];return t};function ls(e){Object.assign(e,{alpha(r,t){const n=this||e;return n.colorSpace?`oklch(from ${r} l c h / ${typeof t=="string"?`calc(${t})`:t})`:n.vars?`rgba(${r.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof t=="string"?`calc(${t})`:t})`:vn(r,cs(t))},lighten(r,t){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${r}, #fff ${An(t)})`:Br(r,t)},darken(r,t){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${r}, #000 ${An(t)})`:Fr(r,t)}})}function mt(e={},...r){const{breakpoints:t,mixins:n={},spacing:o,palette:i={},transitions:c={},typography:l={},shape:d,colorSpace:h,...g}=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.":We(20));const y=ht({...i,colorSpace:h}),b=fn(e);let w=$e(b,{mixins:Ki(b.breakpoints,n),palette:y,shadows:rs.slice(),typography:Qi(y,l),transitions:is(c),zIndex:{...ss}});if(w=$e(w,g),w=r.reduce((v,u)=>$e(v,u),w),process.env.NODE_ENV!=="production"){const v=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],u=(C,k)=>{let I;for(I in C){const F=C[I];if(v.includes(I)&&Object.keys(F).length>0){if(process.env.NODE_ENV!=="production"){const O=at("",I);console.error([`MUI: The \`${k}\` component increases the CSS specificity of the \`${I}\` internal state.`,"You can not override it like this: ",JSON.stringify(C,null,2),"",`Instead, you need to use the '&.${O}' syntax:`,JSON.stringify({root:{[`&.${O}`]:F}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
102
+ `))}C[I]={}}}};Object.keys(w.components).forEach(C=>{const k=w.components[C].styleOverrides;k&&C.startsWith("Mui")&&u(k,C)})}return w.unstable_sxConfig={...Ir,...g?.unstable_sxConfig},w.unstable_sx=function(u){return Ze({sx:u,theme:this})},w.toRuntimeSource=Rn,ls(w),w}function us(e){let r;return e<1?r=5.11916*e**2:r=4.5*Math.log(e+1)+2,Math.round(r*10)/1e3}const fs=[...Array(25)].map((e,r)=>{if(r===0)return"none";const t=us(r);return`linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`});function jn(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function kn(e){return e==="dark"?fs:[]}function ds(e){const{palette:r={mode:"light"},opacity:t,overlays:n,colorSpace:o,...i}=e,c=ht({...r,colorSpace:o});return{palette:c,opacity:{...jn(c.mode),...t},overlays:n||kn(c.mode),...i}}function ps(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 hs=e=>[...[...Array(25)].map((r,t)=>`--${e?`${e}-`:""}overlays-${t}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ms=e=>(r,t)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===r){if(r==="dark"){const c={};return hs(e.cssVarPrefix).forEach(l=>{c[l]=t[l],delete t[l]}),i==="media"?{[n]:t,"@media (prefers-color-scheme: dark)":{[n]:c}}:i?{[i.replace("%s",r)]:c,[`${n}, ${i.replace("%s",r)}`]:t}:{[n]:{...t,...c}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(r))}`}else if(r){if(i==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[n]:t}};if(i)return i.replace("%s",String(r))}return n};function gs(e,r){r.forEach(t=>{e[t]||(e[t]={})})}function m(e,r,t){!e[r]&&t&&(e[r]=t)}function yr(e){return typeof e!="string"||!e.startsWith("hsl")?e:yn(e)}function Ve(e,r){`${r}Channel`in e||(e[`${r}Channel`]=hr(yr(e[r]),`MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
103
+ To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function ys(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ne=e=>{try{return e()}catch{}},bs=(e="mui")=>Ni(e);function gt(e,r,t,n,o){if(!t)return;t=t===!0?{}:t;const i=o==="dark"?"dark":"light";if(!n){r[o]=ds({...t,palette:{mode:i,...t?.palette},colorSpace:e});return}const{palette:c,...l}=mt({...n,palette:{mode:i,...t?.palette},colorSpace:e});return r[o]={...t,palette:c,opacity:{...jn(i),...t?.opacity},overlays:t?.overlays||kn(i)},l}function vs(e={},...r){const{colorSchemes:t={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:c=!1,shouldSkipGeneratingVar:l=ps,colorSchemeSelector:d=t.light&&t.dark?"media":void 0,rootSelector:h=":root",...g}=e,y=Object.keys(t)[0],b=n||(t.light&&y!=="light"?"light":y),w=bs(i),{[b]:v,light:u,dark:C,...k}=t,I={...k};let F=v;if((b==="dark"&&!("dark"in t)||b==="light"&&!("light"in t))&&(F=!0),!F)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${b}\` option is either missing or invalid.`:We(21,b));let O;c&&(O="oklch");const E=gt(O,I,F,g,b);u&&!I.light&&gt(O,I,u,void 0,"light"),C&&!I.dark&&gt(O,I,C,void 0,"dark");let j={defaultColorScheme:b,...E,cssVarPrefix:i,colorSchemeSelector:d,rootSelector:h,getCssVar:w,colorSchemes:I,font:{...Hi(E.typography),...E.font},spacing:ys(g.spacing)};Object.keys(j.colorSchemes).forEach(re=>{const s=j.colorSchemes[re].palette,$=N=>{const K=N.split("-"),ue=K[1],xe=K[2];return w(N,s[ue][xe])};s.mode==="light"&&(m(s.common,"background","#fff"),m(s.common,"onBackground","#000")),s.mode==="dark"&&(m(s.common,"background","#000"),m(s.common,"onBackground","#fff"));function P(N,K,ue){if(O){let xe;return N===Je&&(xe=`transparent ${((1-ue)*100).toFixed(0)}%`),N===ie&&(xe=`#000 ${(ue*100).toFixed(0)}%`),N===se&&(xe=`#fff ${(ue*100).toFixed(0)}%`),`color-mix(in ${O}, ${K}, ${xe})`}return N(K,ue)}if(gs(s,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),s.mode==="light"){m(s.Alert,"errorColor",P(ie,s.error.light,.6)),m(s.Alert,"infoColor",P(ie,s.info.light,.6)),m(s.Alert,"successColor",P(ie,s.success.light,.6)),m(s.Alert,"warningColor",P(ie,s.warning.light,.6)),m(s.Alert,"errorFilledBg",$("palette-error-main")),m(s.Alert,"infoFilledBg",$("palette-info-main")),m(s.Alert,"successFilledBg",$("palette-success-main")),m(s.Alert,"warningFilledBg",$("palette-warning-main")),m(s.Alert,"errorFilledColor",Ne(()=>s.getContrastText(s.error.main))),m(s.Alert,"infoFilledColor",Ne(()=>s.getContrastText(s.info.main))),m(s.Alert,"successFilledColor",Ne(()=>s.getContrastText(s.success.main))),m(s.Alert,"warningFilledColor",Ne(()=>s.getContrastText(s.warning.main))),m(s.Alert,"errorStandardBg",P(se,s.error.light,.9)),m(s.Alert,"infoStandardBg",P(se,s.info.light,.9)),m(s.Alert,"successStandardBg",P(se,s.success.light,.9)),m(s.Alert,"warningStandardBg",P(se,s.warning.light,.9)),m(s.Alert,"errorIconColor",$("palette-error-main")),m(s.Alert,"infoIconColor",$("palette-info-main")),m(s.Alert,"successIconColor",$("palette-success-main")),m(s.Alert,"warningIconColor",$("palette-warning-main")),m(s.AppBar,"defaultBg",$("palette-grey-100")),m(s.Avatar,"defaultBg",$("palette-grey-400")),m(s.Button,"inheritContainedBg",$("palette-grey-300")),m(s.Button,"inheritContainedHoverBg",$("palette-grey-A100")),m(s.Chip,"defaultBorder",$("palette-grey-400")),m(s.Chip,"defaultAvatarColor",$("palette-grey-700")),m(s.Chip,"defaultIconColor",$("palette-grey-700")),m(s.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),m(s.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),m(s.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),m(s.LinearProgress,"primaryBg",P(se,s.primary.main,.62)),m(s.LinearProgress,"secondaryBg",P(se,s.secondary.main,.62)),m(s.LinearProgress,"errorBg",P(se,s.error.main,.62)),m(s.LinearProgress,"infoBg",P(se,s.info.main,.62)),m(s.LinearProgress,"successBg",P(se,s.success.main,.62)),m(s.LinearProgress,"warningBg",P(se,s.warning.main,.62)),m(s.Skeleton,"bg",O?P(Je,s.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),m(s.Slider,"primaryTrack",P(se,s.primary.main,.62)),m(s.Slider,"secondaryTrack",P(se,s.secondary.main,.62)),m(s.Slider,"errorTrack",P(se,s.error.main,.62)),m(s.Slider,"infoTrack",P(se,s.info.main,.62)),m(s.Slider,"successTrack",P(se,s.success.main,.62)),m(s.Slider,"warningTrack",P(se,s.warning.main,.62));const N=O?P(ie,s.background.default,.6825):Vr(s.background.default,.8);m(s.SnackbarContent,"bg",N),m(s.SnackbarContent,"color",Ne(()=>O?pt.text.primary:s.getContrastText(N))),m(s.SpeedDialAction,"fabHoverBg",Vr(s.background.paper,.15)),m(s.StepConnector,"border",$("palette-grey-400")),m(s.StepContent,"border",$("palette-grey-400")),m(s.Switch,"defaultColor",$("palette-common-white")),m(s.Switch,"defaultDisabledColor",$("palette-grey-100")),m(s.Switch,"primaryDisabledColor",P(se,s.primary.main,.62)),m(s.Switch,"secondaryDisabledColor",P(se,s.secondary.main,.62)),m(s.Switch,"errorDisabledColor",P(se,s.error.main,.62)),m(s.Switch,"infoDisabledColor",P(se,s.info.main,.62)),m(s.Switch,"successDisabledColor",P(se,s.success.main,.62)),m(s.Switch,"warningDisabledColor",P(se,s.warning.main,.62)),m(s.TableCell,"border",P(se,P(Je,s.divider,1),.88)),m(s.Tooltip,"bg",P(Je,s.grey[700],.92))}if(s.mode==="dark"){m(s.Alert,"errorColor",P(se,s.error.light,.6)),m(s.Alert,"infoColor",P(se,s.info.light,.6)),m(s.Alert,"successColor",P(se,s.success.light,.6)),m(s.Alert,"warningColor",P(se,s.warning.light,.6)),m(s.Alert,"errorFilledBg",$("palette-error-dark")),m(s.Alert,"infoFilledBg",$("palette-info-dark")),m(s.Alert,"successFilledBg",$("palette-success-dark")),m(s.Alert,"warningFilledBg",$("palette-warning-dark")),m(s.Alert,"errorFilledColor",Ne(()=>s.getContrastText(s.error.dark))),m(s.Alert,"infoFilledColor",Ne(()=>s.getContrastText(s.info.dark))),m(s.Alert,"successFilledColor",Ne(()=>s.getContrastText(s.success.dark))),m(s.Alert,"warningFilledColor",Ne(()=>s.getContrastText(s.warning.dark))),m(s.Alert,"errorStandardBg",P(ie,s.error.light,.9)),m(s.Alert,"infoStandardBg",P(ie,s.info.light,.9)),m(s.Alert,"successStandardBg",P(ie,s.success.light,.9)),m(s.Alert,"warningStandardBg",P(ie,s.warning.light,.9)),m(s.Alert,"errorIconColor",$("palette-error-main")),m(s.Alert,"infoIconColor",$("palette-info-main")),m(s.Alert,"successIconColor",$("palette-success-main")),m(s.Alert,"warningIconColor",$("palette-warning-main")),m(s.AppBar,"defaultBg",$("palette-grey-900")),m(s.AppBar,"darkBg",$("palette-background-paper")),m(s.AppBar,"darkColor",$("palette-text-primary")),m(s.Avatar,"defaultBg",$("palette-grey-600")),m(s.Button,"inheritContainedBg",$("palette-grey-800")),m(s.Button,"inheritContainedHoverBg",$("palette-grey-700")),m(s.Chip,"defaultBorder",$("palette-grey-700")),m(s.Chip,"defaultAvatarColor",$("palette-grey-300")),m(s.Chip,"defaultIconColor",$("palette-grey-300")),m(s.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),m(s.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),m(s.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),m(s.LinearProgress,"primaryBg",P(ie,s.primary.main,.5)),m(s.LinearProgress,"secondaryBg",P(ie,s.secondary.main,.5)),m(s.LinearProgress,"errorBg",P(ie,s.error.main,.5)),m(s.LinearProgress,"infoBg",P(ie,s.info.main,.5)),m(s.LinearProgress,"successBg",P(ie,s.success.main,.5)),m(s.LinearProgress,"warningBg",P(ie,s.warning.main,.5)),m(s.Skeleton,"bg",O?P(Je,s.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),m(s.Slider,"primaryTrack",P(ie,s.primary.main,.5)),m(s.Slider,"secondaryTrack",P(ie,s.secondary.main,.5)),m(s.Slider,"errorTrack",P(ie,s.error.main,.5)),m(s.Slider,"infoTrack",P(ie,s.info.main,.5)),m(s.Slider,"successTrack",P(ie,s.success.main,.5)),m(s.Slider,"warningTrack",P(ie,s.warning.main,.5));const N=O?P(se,s.background.default,.985):Vr(s.background.default,.98);m(s.SnackbarContent,"bg",N),m(s.SnackbarContent,"color",Ne(()=>O?Tn.text.primary:s.getContrastText(N))),m(s.SpeedDialAction,"fabHoverBg",Vr(s.background.paper,.15)),m(s.StepConnector,"border",$("palette-grey-600")),m(s.StepContent,"border",$("palette-grey-600")),m(s.Switch,"defaultColor",$("palette-grey-300")),m(s.Switch,"defaultDisabledColor",$("palette-grey-600")),m(s.Switch,"primaryDisabledColor",P(ie,s.primary.main,.55)),m(s.Switch,"secondaryDisabledColor",P(ie,s.secondary.main,.55)),m(s.Switch,"errorDisabledColor",P(ie,s.error.main,.55)),m(s.Switch,"infoDisabledColor",P(ie,s.info.main,.55)),m(s.Switch,"successDisabledColor",P(ie,s.success.main,.55)),m(s.Switch,"warningDisabledColor",P(ie,s.warning.main,.55)),m(s.TableCell,"border",P(ie,P(Je,s.divider,1),.68)),m(s.Tooltip,"bg",P(Je,s.grey[700],.92))}Ve(s.background,"default"),Ve(s.background,"paper"),Ve(s.common,"background"),Ve(s.common,"onBackground"),Ve(s,"divider"),Object.keys(s).forEach(N=>{const K=s[N];N!=="tonalOffset"&&K&&typeof K=="object"&&(K.main&&m(s[N],"mainChannel",hr(yr(K.main))),K.light&&m(s[N],"lightChannel",hr(yr(K.light))),K.dark&&m(s[N],"darkChannel",hr(yr(K.dark))),K.contrastText&&m(s[N],"contrastTextChannel",hr(yr(K.contrastText))),N==="text"&&(Ve(s[N],"primary"),Ve(s[N],"secondary")),N==="action"&&(K.active&&Ve(s[N],"active"),K.selected&&Ve(s[N],"selected")))})}),j=r.reduce((re,s)=>$e(re,s),j);const X={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:ms(j),enableContrastVars:c},{vars:pe,generateThemeVars:Q,generateStyleSheets:he}=Fi(j,X);return j.vars=pe,Object.entries(j.colorSchemes[j.defaultColorScheme]).forEach(([re,s])=>{j[re]=s}),j.generateThemeVars=Q,j.generateStyleSheets=he,j.generateSpacing=function(){return un(g.spacing,ot(this))},j.getColorSchemeSelector=Bi(d),j.spacing=j.generateSpacing(),j.shouldSkipGeneratingVar=l,j.unstable_sxConfig={...Ir,...g?.unstable_sxConfig},j.unstable_sx=function(s){return Ze({sx:s,theme:this})},j.toRuntimeSource=Rn,j}function In(e,r,t){e.colorSchemes&&t&&(e.colorSchemes[r]={...t!==!0&&t,palette:ht({...t===!0?{}:t.palette,mode:r})})}function Nn(e={},...r){const{palette:t,cssVariables:n=!1,colorSchemes:o=t?void 0:{light:!0},defaultColorScheme:i=t?.mode,...c}=e,l=i||"light",d=o?.[l],h={...o,...t?{[l]:{...typeof d!="boolean"&&d,palette:t}}:void 0};if(n===!1){if(!("colorSchemes"in e))return mt(e,...r);let g=t;"palette"in e||h[l]&&(h[l]!==!0?g=h[l].palette:l==="dark"&&(g={mode:"dark"}));const y=mt({...e,palette:g},...r);return y.defaultColorScheme=l,y.colorSchemes=h,y.palette.mode==="light"&&(y.colorSchemes.light={...h.light!==!0&&h.light,palette:y.palette},In(y,"dark",h.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:y.palette},In(y,"light",h.light)),y}return!t&&!("light"in h)&&l==="light"&&(h.light=!0),vs({...c,colorSchemes:h,defaultColorScheme:l,...typeof n!="boolean"&&n},...r)}const xs=Nn(),Ss="$$material";function Cs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ts=Ci({themeId:Ss,defaultTheme:xs,rootShouldForwardProp:e=>Cs(e)&&e!=="classes"}),Es=Ii;process.env.NODE_ENV!=="production"&&(ee.node,ee.object.isRequired);function ws(e){return ki(e)}function Ps(e){return at("MuiSvgIcon",e)}yi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $s=e=>{const{color:r,fontSize:t,classes:n}=e,o={root:["root",r!=="inherit"&&`color${qe(r)}`,`fontSize${qe(t)}`]};return ao(o,Ps,n)},Os=Ts("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color!=="inherit"&&r[`color${qe(t.color)}`],r[`fontSize${qe(t.fontSize)}`]]}})(Es(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:r=>!r.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,r])=>r&&r.main).map(([r])=>({props:{color:r},style:{color:(e.vars??e).palette?.[r]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Wr=z.forwardRef(function(r,t){const n=ws({props:r,name:"MuiSvgIcon"}),{children:o,className:i,color:c="inherit",component:l="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:g=!1,titleAccess:y,viewBox:b="0 0 24 24",...w}=n,v=z.isValidElement(o)&&o.type==="svg",u={...n,color:c,component:l,fontSize:d,instanceFontSize:r.fontSize,inheritViewBox:g,viewBox:b,hasSvgAsChild:v},C={};g||(C.viewBox=b);const k=$s(u);return f.jsxs(Os,{as:l,className:Ht(k.root,i),focusable:"false",color:h,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:t,...C,...w,...v&&o.props,ownerState:u,children:[v?o.props.children:o,y?f.jsx("title",{children:y}):null]})});process.env.NODE_ENV!=="production"&&(Wr.propTypes={children:ee.node,classes:ee.object,className:ee.string,color:ee.oneOfType([ee.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ee.string]),component:ee.elementType,fontSize:ee.oneOfType([ee.oneOf(["inherit","large","medium","small"]),ee.string]),htmlColor:ee.string,inheritViewBox:ee.bool,shapeRendering:ee.string,sx:ee.oneOfType([ee.arrayOf(ee.oneOfType([ee.func,ee.object,ee.bool])),ee.func,ee.object]),titleAccess:ee.string,viewBox:ee.string}),Wr.muiName="SvgIcon";function ir(e,r){function t(n,o){return f.jsx(Wr,{"data-testid":process.env.NODE_ENV!=="production"?`${r}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(t.displayName=`${r}Icon`),t.muiName=Wr.muiName,z.memo(z.forwardRef(t))}const _s=ir(f.jsx("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2m0 14H4v-6h16zm0-10H4V6h16z"}),"CreditCard"),Mn=ir(f.jsx("path",{d:"M15 21h-2v-2h2zm-2-7h-2v5h2zm8-2h-2v4h2zm-2-2h-2v2h2zM7 12H5v2h2zm-2-2H3v2h2zm7-5h2V3h-2zm-7.5-.5v3h3v-3zM9 9H3V3h6zm-4.5 7.5v3h3v-3zM9 21H3v-6h6zm7.5-16.5v3h3v-3zM21 9h-6V3h6zm-2 10v-3h-4v2h2v3h4v-2zm-2-7h-4v2h4zm-4-2H7v2h2v2h2v-2h2zm1-1V7h-2V5h-2v4zM6.75 5.25h-1.5v1.5h1.5zm0 12h-1.5v1.5h1.5zm12-12h-1.5v1.5h1.5z"}),"QrCode2"),Rs=ir(f.jsx("path",{d:"M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2zm-9-2h10V8H12zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5"}),"AccountBalanceWallet"),As=ir(f.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"}),"Apple"),js=ir(f.jsx("path",{d:"M12.545,10.239v3.821h5.445c-0.712,2.315-2.647,3.972-5.445,3.972c-3.332,0-6.033-2.701-6.033-6.032s2.701-6.032,6.033-6.032c1.498,0,2.866,0.549,3.921,1.453l2.814-2.814C17.503,2.988,15.139,2,12.545,2C7.021,2,2.543,6.477,2.543,12s4.478,10,10.002,10c8.396,0,10.249-7.85,9.426-11.748L12.545,10.239z"}),"Google"),we={primary:"#6C4CE7",primaryHover:"#5a3ed4",ink:"#111827",muted:"#6b7280",bg:"#f6f7fb",surface:"#ffffff",border:"#e5e7eb",ring:"rgba(108,76,231,.25)"},yt=Nn({palette:{mode:"light",primary:{main:we.primary},text:{primary:we.ink,secondary:we.muted},background:{default:we.bg,paper:we.surface}},shape:{borderRadius:10},typography:{fontFamily:'"Inter","Segoe UI",Roboto,Ubuntu,Helvetica,Arial,sans-serif',h6:{fontWeight:700},button:{textTransform:"none",fontWeight:700}},components:{MuiCard:{styleOverrides:{root:{border:`1px solid ${we.border}`,boxShadow:"0 10px 30px rgba(2,6,23,.06)"}}},MuiTextField:{defaultProps:{size:"medium"}},MuiOutlinedInput:{styleOverrides:{root:{background:"#fff","& fieldset":{borderColor:we.border},"&:hover fieldset":{borderColor:we.primary},"&.Mui-focused fieldset":{borderColor:we.primary,boxShadow:`0 0 0 3px ${we.ring}`}},input:{paddingTop:14,paddingBottom:14}}},MuiButton:{styleOverrides:{root:{borderRadius:12,paddingBlock:14},containedPrimary:{boxShadow:"0 10px 24px rgba(108,76,231,.22)"}}},MuiDivider:{styleOverrides:{root:{borderColor:we.border}}}}}),bt=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function Lr({amount:e,merchantName:r,sticky:t,items:n=[]}){return f.jsx(p.Card,{elevation:0,sx:{background:"#f9fafb",border:`1px solid ${we.border}`,position:t?"sticky":"static",top:24},children:f.jsxs(p.CardContent,{children:[f.jsx(p.Typography,{variant:"subtitle2",color:"text.secondary",sx:{mb:1},children:r}),f.jsx(p.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Enviou uma solicitação de pagamento"}),f.jsx(p.Divider,{sx:{mb:2}}),f.jsx(p.Typography,{variant:"body2",color:"text.primary",sx:{mb:.5},children:"Descrição do produto ou serviço"}),n.length>0?f.jsx(p.Stack,{spacing:1.2,sx:{mb:1},children:n.map((o,i)=>{const c=o.quantity??1,l=o.unitPrice*c;return f.jsxs(p.Stack,{direction:"row",justifyContent:"space-between",children:[f.jsxs(p.Typography,{variant:"body2",color:"text.secondary",children:[c>1?`${c}× `:"",o.name]}),f.jsx(p.Typography,{variant:"body2",children:bt.format(l)})]},o.id??`${o.name}-${i}`)})}):f.jsxs(p.Stack,{direction:"row",justifyContent:"space-between",sx:{mb:1},children:[f.jsx(p.Typography,{variant:"body2",color:"text.secondary",children:"(1) Pagamento"}),f.jsx(p.Typography,{variant:"body2",children:bt.format(e)})]}),f.jsx(p.Divider,{sx:{my:2}}),f.jsxs(p.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[f.jsx(p.Typography,{variant:"h5",sx:{fontWeight:800},children:"Valor total"}),f.jsx(p.Typography,{variant:"h5",sx:{fontWeight:800},children:bt.format(e)})]}),f.jsx(p.Typography,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:2,textAlign:"center"},children:"Desenvolvido por SuportePOS | Pagamento Seguro"})]})})}function vt(e){if(e=e.replace(/\D/g,""),!e||e.length!==11||/^(\d)\1{10}$/.test(e))return!1;let r=0;for(let n=0;n<9;n++)r+=parseInt(e[n])*(10-n);let t=r*10%11;if((t===10||t===11)&&(t=0),t!==parseInt(e[9]))return!1;r=0;for(let n=0;n<10;n++)r+=parseInt(e[n])*(11-n);return t=r*10%11,(t===10||t===11)&&(t=0),t===parseInt(e[10])}function xt(e){if(e=e.replace(/\D/g,""),!e||e.length!==14||/^(\d)\1{13}$/.test(e))return!1;let r=e.length-2,t=e.substring(0,r),n=e.substring(r),o=0,i=r-7;for(let l=r;l>=1;l--)o+=parseInt(t[r-l])*i--,i<2&&(i=9);let c=o%11<2?0:11-o%11;if(c!==parseInt(n[0]))return!1;r=r+1,t=e.substring(0,r),o=0,i=r-7;for(let l=r;l>=1;l--)o+=parseInt(t[r-l])*i--,i<2&&(i=9);return c=o%11<2?0:11-o%11,c===parseInt(n[1])}function St(e){return/^[A-Z0-9]{6,9}$/i.test(e.trim())}const ks=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}),Is=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"];function Dn({merchantId:e,amount:r,splits:t,summaryItems:n,merchantName:o,installmentsOptions:i=[1,2,3,6,10,12],onBack:c,onResponse:l}){const d=p.useMediaQuery("(max-width:900px)"),[h,g]=z.useState("card"),[y,b]=z.useState(""),[w,v]=z.useState(""),[u,C]=z.useState(""),[k,I]=z.useState(""),[F,O]=z.useState(1),[E,j]=z.useState(""),[X,pe]=z.useState(""),[Q,he]=z.useState(""),[re,s]=z.useState(""),[$,P]=z.useState(""),[N,K]=z.useState(""),[ue,xe]=z.useState(""),[Ie,T]=z.useState(""),[R,U]=z.useState(""),[B,V]=z.useState(""),[G,L]=z.useState(""),[M,q]=z.useState(""),[Y,H]=z.useState(""),[Se,_]=z.useState(!1),[W,Me]=z.useState({}),[_e,De]=z.useState(!1),Ur=x=>x.replace(/\D/g,"").trim(),Yr=x=>x.replace(/\D/g,"").slice(0,6).replace(/(\d{2})(\d{0,4})/,(de,Te,je)=>je?`${Te}/${je}`:Te),sr=x=>x.replace(/\D/g,"").slice(0,8).replace(/(\d{5})(\d{1,3})?/,(de,Te,je)=>je?`${Te}-${je}`:Te),Ct=x=>x.replace(/\D/g,"").slice(0,11).replace(/^(\d{2})(\d{5})(\d{0,4}).*/,"($1) $2-$3").replace(/-$/,""),Tt=x=>x.replace(/\D/g,"").slice(0,11).replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{1,2})$/,"$1-$2"),br=x=>x.replace(/\D/g,"").slice(0,14).replace(/^(\d{2})(\d)/,"$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/,"$1.$2.$3").replace(/\.(\d{3})(\d)/,".$1/$2").replace(/(\d{4})(\d)/,"$1-$2"),Et=x=>x.replace(/[^a-zA-Z0-9]/g,"").slice(0,9).toUpperCase();z.useEffect(()=>{const x=document.createElement("script");return x.src="https://www.pagador.com.br/post/scripts/silentorderpost-1.0.min.js",x.async=!0,document.body.appendChild(x),x.onload=async()=>{try{const Te=await(await fetch(`http://127.0.0.1:8003/api/token-cartao?uuid=${e}`)).json();j(Te?.AccessToken)}catch(de){console.error("Erro ao buscar accessToken:",de)}},()=>{document.body.removeChild(x)}},[]);function wt(){const x={};return y.replace(/\D/g,"").length<15&&(x.cardNumber="Número inválido"),w.trim()||(x.holderName="Informe o nome"),/^\d{2}\/\d{4}$/.test(u)||(x.expiry="Use MM/AAAA"),/^\d{3,4}$/.test(k)||(x.cvv="CVV inválido"),Me(x),Object.keys(x).length===0}function Gr(){const x={};return(!X||!/^\d{5}-?\d{3}$/.test(X))&&(x.cep="CEP inválido"),Q.trim()||(x.address="Informe o endereço"),re.trim()||(x.number="O campo Número é obrigatório"),N.trim()||(x.neighborhood="O campo Bairro é obrigatório"),ue.trim()||(x.city="Informe a cidade"),Ie||(x.uf="Selecione o estado (UF)"),Me(x),Object.keys(x).length===0}function qr(){const x={};return R.trim()||(x.buyerName="Informe o nome"),/^\S+@\S+\.\S+$/.test(B)||(x.buyerEmail="E-mail inválido"),G.replace(/\D/g,"").length<10&&(x.buyerPhone="Telefone inválido"),M||(x.docType="Selecione o tipo de documento"),R.trim()||(x.buyerName="Informe o nome"),/^\S+@\S+\.\S+$/.test(B)||(x.buyerEmail="E-mail inválido"),G.replace(/\D/g,"").length<10&&(x.buyerPhone="Telefone inválido"),M||(x.docType="Selecione o tipo de documento"),Y.trim()?(M==="CPF"&&!vt(Y)&&(x.docNumber="CPF inválido"),M==="CNPJ"&&!xt(Y)&&(x.docNumber="CNPJ inválido"),M==="PASSAPORTE"&&!St(Y)&&(x.docNumber="Passaporte inválido")):x.docNumber="Informe o número do documento",Me(x),Object.keys(x).length===0}const Hr=()=>wt()&&g("billing"),Pt=()=>Gr()&&g("buyer"),Kr=async x=>{const de=sr(x);pe(de);const Te=de.replace(/\D/g,"");if(Te.length===8)try{const Ye=await(await fetch(`http://127.0.0.1:8003/api/cep/${Te}?uuid=${e}`)).json();Ye.error||(he(Ye.street||""),K(Ye.neighborhood||""),xe(Ye.city||""),T(Ye.state||""),P(Ye.complement||""))}catch(je){console.error("Erro ao buscar CEP:",je)}},Jr=async()=>{if(!qr())return;De(!0);const x={accessToken:E,environment:"sandbox",language:"PT",enableBinQuery:!1,enableVerifyCard:!1,enableTokenize:!1,cvvrequired:!0,onSuccess:async de=>{try{const je=await(await fetch("http://127.0.0.1:8003/api/pagar",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uuid:e,paymentToken:de.CardToken??de.PaymentToken,amount:r,installments:F,buyerName:R,buyerEmail:B,buyerPhone:G,docType:M,docNumber:Y,splits:t,cep:X,address:Q,number:re,complement:$,neighborhood:N,city:ue,state:Ie})})).json();l?.(je)}catch(Te){console.error("Erro chamando backend:",Te),l?.({success:!1,message:"Erro ao comunicar backend"})}finally{De(!1)}},onError:de=>{console.error("Erro SOP:",de),l?.({success:!1,message:"Erro SOP"}),De(!1)},onInvalid:de=>{console.warn("Campos inválidos:",de),l?.({success:!1,message:"Campos inválidos"}),De(!1)}};window.bpSop_silentOrderPost(x)};return f.jsx(p.ThemeProvider,{theme:yt,children:f.jsx(p.Box,{sx:{bgcolor:"background.default",minHeight:"100vh"},children:f.jsx(p.Container,{maxWidth:"lg",children:f.jsxs(p.Grid,{container:!0,spacing:3,children:[f.jsx(p.Grid,{item:!0,xs:12,md:7,size:7,children:f.jsx(p.Card,{elevation:0,sx:{border:"1px solid #e2e8f0"},children:f.jsxs(p.CardContent,{children:[f.jsx(p.Box,{sx:{display:h==="card"?"block":"none"},children:f.jsxs(f.Fragment,{children:[f.jsx(p.Typography,{variant:"h6",sx:{mb:2},children:"Pagamento com cartão de crédito"}),f.jsxs(p.Stack,{spacing:2,children:[f.jsx(p.TextField,{label:"Número do cartão",value:y,onChange:x=>b(Ur(x.target.value)),error:!!W.cardNumber,inputProps:{className:"bp-sop-cardnumber",maxLength:19,inputMode:"numeric"},helperText:W.cardNumber,fullWidth:!0}),f.jsx(p.TextField,{label:"Nome como está no cartão",value:w,onChange:x=>v(x.target.value),error:!!W.holderName,helperText:W.holderName,inputProps:{className:"bp-sop-cardholdername"},fullWidth:!0}),f.jsxs(p.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:[f.jsx(p.TextField,{label:"Vencimento",placeholder:"MM/AAAA",value:u,onChange:x=>C(Yr(x.target.value)),error:!!W.expiry,helperText:W.expiry,inputProps:{className:"bp-sop-cardexpirationdate",maxLength:7},fullWidth:!0}),f.jsx(p.TextField,{label:"CVV",value:k,onChange:x=>I(x.target.value.replace(/\D/g,"").slice(0,4)),error:!!W.cvv,helperText:W.cvv,inputProps:{className:"bp-sop-cardcvv",maxLength:4,inputMode:"numeric"},fullWidth:!0})]}),f.jsxs(p.FormControl,{fullWidth:!0,children:[f.jsx(p.InputLabel,{children:"Quantidade de Parcelas"}),f.jsx(p.Select,{label:"Quantidade de Parcelas",value:F,onChange:x=>O(Number(x.target.value)),children:i.map(x=>f.jsxs(p.MenuItem,{value:x,children:[x,"x de R$ ",ks.format(r/x)]},x))}),f.jsx(p.FormHelperText,{children:"Informe o número do cartão para verificar o valor das parcelas"})]}),f.jsx("input",{type:"hidden",className:"bp-sop-cardtype",value:"CreditCard"}),f.jsxs(p.Stack,{direction:{xs:"column",sm:"row"},spacing:2,sx:{mt:1},children:[f.jsx(p.Button,{variant:"outlined",onClick:c,fullWidth:!0,sx:{py:1.4},children:"Voltar"}),f.jsx(p.Button,{variant:"contained",onClick:Hr,disabled:_e,fullWidth:!0,sx:{py:1.4},children:"Continuar"})]})]})]})}),f.jsx(p.Box,{sx:{display:h==="billing"?"block":"none"},children:f.jsxs(f.Fragment,{children:[f.jsx(p.Typography,{variant:"h6",sx:{mb:2},children:"Endereço de cobrança"}),f.jsxs(p.Stack,{spacing:2,children:[f.jsx(p.Stack,{direction:"row",spacing:2,alignItems:"flex-start",children:f.jsx(p.TextField,{label:"CEP",placeholder:"00000-000",value:X,onChange:x=>Kr(x.target.value),error:!!W.cep,helperText:W.cep,fullWidth:!0})}),f.jsx(p.TextField,{label:"Endereço",value:Q,onChange:x=>he(x.target.value),error:!!W.address,helperText:W.address,fullWidth:!0}),f.jsxs(p.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:[f.jsx(p.TextField,{label:"Número",value:re,onChange:x=>s(x.target.value),error:!!W.number,helperText:W.number,fullWidth:!0}),f.jsx(p.TextField,{label:"Complemento",value:$,onChange:x=>P(x.target.value),fullWidth:!0})]}),f.jsx(p.TextField,{label:"Bairro",value:N,onChange:x=>K(x.target.value),error:!!W.neighborhood,helperText:W.neighborhood,fullWidth:!0}),f.jsxs(p.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:[f.jsx(p.TextField,{label:"Cidade",value:ue,onChange:x=>xe(x.target.value),error:!!W.city,helperText:W.city,fullWidth:!0}),f.jsxs(p.FormControl,{fullWidth:!0,error:!!W.uf,children:[f.jsx(p.InputLabel,{children:"Estado"}),f.jsx(p.Select,{label:"Estado",value:Ie,onChange:x=>T(String(x.target.value)),children:Is.map(x=>f.jsx(p.MenuItem,{value:x,children:x},x))}),f.jsx(p.FormHelperText,{children:W.uf})]})]}),f.jsxs(p.Stack,{direction:{xs:"column",sm:"row"},spacing:2,sx:{mt:1},children:[f.jsx(p.Button,{variant:"outlined",onClick:()=>g("card"),fullWidth:!0,sx:{py:1.4},children:"Voltar"}),f.jsx(p.Button,{variant:"contained",onClick:Pt,fullWidth:!0,sx:{py:1.4},disabled:_e||!X||!!W.cep||!Q||!re||!N||!ue||!Ie,children:"Continuar"})]})]})]})}),f.jsx(p.Box,{sx:{display:h==="buyer"?"block":"none"},children:f.jsxs(f.Fragment,{children:[f.jsx(p.Typography,{variant:"h6",sx:{mb:2},children:"Falta pouco! Insira seus dados antes de concluir"}),f.jsxs(p.Stack,{spacing:2,children:[f.jsx(p.TextField,{label:"Nome Completo",value:R,onChange:x=>U(x.target.value),error:!!W.buyerName,helperText:W.buyerName,fullWidth:!0}),f.jsx(p.TextField,{label:"E-mail",value:B,onChange:x=>V(x.target.value),error:!!W.buyerEmail,helperText:W.buyerEmail,fullWidth:!0}),f.jsx(p.TextField,{label:"Celular",value:G,onChange:x=>L(Ct(x.target.value)),error:!!W.buyerPhone,helperText:W.buyerPhone,fullWidth:!0}),f.jsxs(p.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:[f.jsxs(p.FormControl,{fullWidth:!0,error:!!W.docType,children:[f.jsx(p.InputLabel,{children:"Escolha o tipo de documento"}),f.jsxs(p.Select,{label:"Escolha o tipo de documento",value:M,onChange:x=>q(x.target.value),children:[f.jsx(p.MenuItem,{value:"CPF",children:"CPF"}),f.jsx(p.MenuItem,{value:"CNPJ",children:"CNPJ"}),f.jsx(p.MenuItem,{value:"PASSAPORTE",children:"Passaporte"})]}),f.jsx(p.FormHelperText,{children:W.docType})]}),f.jsx(p.TextField,{label:"Número do documento",value:Y,onChange:x=>{let de=x.target.value;M==="CPF"&&(de=Tt(de)),M==="CNPJ"&&(de=br(de)),M==="PASSAPORTE"&&(de=Et(de)),H(de)},error:!!W.docNumber,helperText:W.docNumber,fullWidth:!0})]}),f.jsxs(p.Stack,{direction:{xs:"column",sm:"row"},spacing:2,sx:{mt:1},children:[f.jsx(p.Button,{variant:"outlined",disabled:_e,onClick:()=>g("billing"),fullWidth:!0,sx:{py:1.4},children:"Voltar"}),f.jsx(p.Button,{variant:"contained",onClick:Jr,disabled:_e,fullWidth:!0,sx:{py:1.4},children:_e?"Processando...":"Concluir compra"})]})]})]})})]})})}),f.jsx(p.Grid,{item:!0,xs:12,md:5,size:5,children:f.jsx(Lr,{amount:r,merchantName:o,sticky:!d,items:n})})]})})})})}const Ns=ir(f.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");function Fn({merchantId:e,amount:r,merchantName:t="SUPORTEPOS",summaryItems:n,splits:o,onBack:i,onResponse:c}){const l=p.useMediaQuery("(max-width:900px)"),[d,h]=z.useState(!1),[g,y]=z.useState(""),[b,w]=z.useState(""),[v,u]=z.useState(""),[C,k]=z.useState({}),[I,F]=z.useState(!1),[O,E]=z.useState(null),j=s=>s.replace(/\D/g,"").slice(0,11).replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{1,2})$/,"$1-$2"),X=s=>s.replace(/\D/g,"").slice(0,14).replace(/^(\d{2})(\d)/,"$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/,"$1.$2.$3").replace(/\.(\d{3})(\d)/,".$1/$2").replace(/(\d{4})(\d)/,"$1-$2"),pe=s=>s.replace(/[^a-zA-Z0-9]/g,"").slice(0,9).toUpperCase(),Q=()=>{const s={};return g.trim()||(s.buyerName="Informe o nome"),b||(s.docType="Selecione o tipo de documento"),v.trim()?(b==="CPF"&&!vt(v)&&(s.docNumber="CPF inválido"),b==="CNPJ"&&!xt(v)&&(s.docNumber="CNPJ inválido"),b==="PASSAPORTE"&&!St(v)&&(s.docNumber="Passaporte inválido")):s.docNumber="Informe o número do documento",k(s),Object.keys(s).length===0},he=async()=>{if(Q()){F(!0);try{const $=await(await fetch("http://127.0.0.1:8003/api/pix",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uuid:e,amount:r,buyerName:g,docType:b,docNumber:v,splits:o})})).json();$.copyPasteCode&&$.qrCodeSrc&&E($)}catch(s){console.error("Erro ao gerar PIX:",s)}finally{F(!1)}}},re=async()=>{if(O?.copyPasteCode)try{await navigator.clipboard.writeText(O.copyPasteCode),h(!0),setTimeout(()=>h(!1),1500)}catch{}};return f.jsx(p.ThemeProvider,{theme:yt,children:f.jsx(p.Box,{sx:{bgcolor:"background.default",minHeight:"100%",py:0},children:f.jsx(p.Container,{maxWidth:"lg",children:f.jsxs(p.Grid,{container:!0,spacing:3,children:[f.jsx(p.Grid,{item:!0,xs:12,md:7,size:7,children:f.jsx(p.Card,{elevation:0,sx:{border:"1px solid #e2e8f0"},children:f.jsxs(p.CardContent,{children:[!O&&f.jsxs(f.Fragment,{children:[f.jsx(p.Typography,{variant:"h6",sx:{mb:2},children:"Preencha seus dados para gerar o PIX"}),f.jsxs(p.Stack,{spacing:2,children:[f.jsx(p.TextField,{label:"Nome Completo",value:g,onChange:s=>y(s.target.value),error:!!C.buyerName,helperText:C.buyerName,fullWidth:!0}),f.jsxs(p.FormControl,{fullWidth:!0,error:!!C.docType,children:[f.jsx(p.InputLabel,{children:"Tipo de Documento"}),f.jsxs(p.Select,{value:b,onChange:s=>w(s.target.value),children:[f.jsx(p.MenuItem,{value:"CPF",children:"CPF"}),f.jsx(p.MenuItem,{value:"CNPJ",children:"CNPJ"}),f.jsx(p.MenuItem,{value:"PASSAPORTE",children:"Passaporte"})]}),f.jsx(p.FormHelperText,{children:C.docType})]}),f.jsx(p.TextField,{label:"Número do Documento",value:v,onChange:s=>{let $=s.target.value;b==="CPF"&&($=j($)),b==="CNPJ"&&($=X($)),b==="PASSAPORTE"&&($=pe($)),u($)},error:!!C.docNumber,helperText:C.docNumber,fullWidth:!0}),f.jsxs(p.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:[f.jsx(p.Button,{variant:"outlined",onClick:i,disabled:I,fullWidth:!0,sx:{py:1.4},children:"Voltar"}),f.jsx(p.Button,{variant:"contained",onClick:he,disabled:I,fullWidth:!0,sx:{py:1.4},children:I?"Gerando PIX...":"Gerar PIX"})]})]})]}),O&&f.jsxs(f.Fragment,{children:[f.jsx(p.Typography,{variant:"h6",sx:{mb:2},children:"Para concluir seu pagamento escaneie o QR Code abaixo"}),f.jsx(p.Box,{sx:{border:"1px solid #e5e7eb",borderRadius:2,bgcolor:"#f8fafc",p:{xs:2,md:3},mb:3},children:f.jsx(p.Box,{sx:{width:{xs:"100%",sm:360},height:{xs:"auto",sm:360},mx:"auto",display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"#fff",borderRadius:2,overflow:"hidden"},children:f.jsx("img",{alt:"QR Code PIX",src:O.qrCodeSrc,style:{width:"100%",height:"100%",objectFit:"contain"}})})}),f.jsx(p.Typography,{variant:"body2",color:"text.secondary",sx:{mb:1},children:"Código copia-e-cola"}),f.jsx(p.Box,{sx:{fontFamily:"monospace",fontSize:14,lineHeight:1.5,bgcolor:"#f8fafc",border:"1px solid #e5e7eb",borderRadius:1,p:1.5,wordBreak:"break-all",mb:1.5,userSelect:"text"},children:O.copyPasteCode}),f.jsx(p.Button,{variant:"outlined",startIcon:f.jsx(Ns,{}),onClick:re,sx:{mb:2},children:d?"Copiado!":"Copiar código"}),f.jsx(p.Divider,{sx:{my:2}}),f.jsxs(p.Stack,{direction:{xs:"column",sm:"row"},spacing:2,children:[f.jsx(p.Button,{variant:"outlined",onClick:i,fullWidth:!0,sx:{py:1.4},children:"Voltar"}),f.jsx(p.Button,{variant:"contained",onClick:()=>{},fullWidth:!0,sx:{py:1.4},children:"Já paguei"})]})]})]})})}),f.jsx(p.Grid,{item:!0,xs:12,md:5,size:5,children:f.jsx(Lr,{amount:r,merchantName:t,items:n,sticky:!l})})]})})})})}function Ms({merchantId:e,products:r,merchantName:t="SUPORTEPOS",amountOverride:n,splits:o,onResponse:i}){const[c,l]=z.useState("select"),d=p.useMediaQuery("(max-width:900px)"),[h]=z.useState({gpay:!1,applepay:!1,clickToPay:!1,creditCard:!0,qrCredit:!1,pix:!0}),g=z.useMemo(()=>r.reduce((F,O)=>F+O.unitPrice*(O.quantity??1),0),[r]),y=n??g,b=()=>alert("Google Pay"),w=()=>alert("Apple Pay"),v=()=>alert("Click to Pay"),u=()=>alert("QR Crédito"),C=[];h.gpay&&C.push(f.jsx(p.Button,{fullWidth:!0,variant:"contained",onClick:b,startIcon:f.jsx(js,{}),color:"primary",sx:{py:1.4},children:"Finalizar compra com o GPay"},"gpay")),h.applepay&&C.push(f.jsx(p.Button,{fullWidth:!0,variant:"contained",onClick:w,startIcon:f.jsx(As,{}),color:"primary",sx:{py:1.4},children:"Pay"},"applepay"));const k=[];h.clickToPay&&k.push(f.jsxs(p.ListItemButton,{onClick:v,sx:zr,children:[f.jsx(p.ListItemIcon,{children:f.jsx(Rs,{})}),f.jsx(p.ListItemText,{primary:"Click to Pay",secondary:"Pague com cartão salvo",primaryTypographyProps:{fontWeight:600}})]},"ctp")),h.creditCard&&k.push(f.jsxs(p.ListItemButton,{onClick:()=>l("card"),sx:zr,children:[f.jsx(p.ListItemIcon,{children:f.jsx(_s,{})}),f.jsx(p.ListItemText,{primary:"Cartão de crédito",secondary:"Insira os dados do cartão",primaryTypographyProps:{fontWeight:600}})]},"card")),h.qrCredit&&k.push(f.jsxs(p.ListItemButton,{onClick:u,sx:zr,children:[f.jsx(p.ListItemIcon,{children:f.jsx(Mn,{})}),f.jsx(p.ListItemText,{primary:"Qr Code Crédito",secondary:"Escaneie o QR Code",primaryTypographyProps:{fontWeight:600}})]},"qrcredit")),h.pix&&k.push(f.jsxs(p.ListItemButton,{onClick:()=>l("pix"),sx:zr,children:[f.jsx(p.ListItemIcon,{children:f.jsx(Mn,{})}),f.jsx(p.ListItemText,{primary:"PIX",secondary:"Escaneie o QR Code",primaryTypographyProps:{fontWeight:600}})]},"pix"));const I=C.length===0&&k.length===0;return f.jsx(p.ThemeProvider,{theme:yt,children:f.jsx(p.Box,{sx:{bgcolor:"background.default",minHeight:"100vh",py:4},children:f.jsx(p.Container,{maxWidth:"lg",children:c==="select"?f.jsxs(p.Grid,{container:!0,spacing:3,children:[f.jsx(p.Grid,{item:!0,xs:12,md:7,size:7,children:f.jsx(p.Card,{elevation:0,sx:{p:{xs:1,md:2},border:"1px solid #e2e8f0"},children:f.jsxs(p.CardContent,{children:[f.jsx(p.Typography,{variant:"h6",sx:{mb:2},children:"Como você quer pagar?"}),I&&f.jsx(p.Alert,{severity:"warning",sx:{mb:2},children:"Nenhum meio de pagamento está disponível no momento."}),C.length>0&&f.jsx(p.Stack,{direction:{xs:"column",sm:"row"},spacing:2,sx:{mb:2},children:C}),C.length>0&&k.length>0&&f.jsx(p.Divider,{sx:{my:1},children:f.jsx(p.Typography,{variant:"body2",color:"text.secondary",children:"ou"})}),k.length>0&&f.jsx(p.List,{sx:{mt:C.length?1:0},children:k})]})})}),f.jsx(p.Grid,{item:!0,xs:12,md:5,size:5,children:f.jsx(Lr,{amount:y,merchantName:t,sticky:!d,items:r})})]}):c==="card"?f.jsx(Dn,{merchantId:e,amount:y,splits:o,merchantName:t,summaryItems:r,onBack:()=>l("select"),onResponse:i}):f.jsx(Fn,{merchantId:e,amount:y,splits:o,merchantName:t,summaryItems:r,onBack:()=>l("select"),onResponse:i})})})})}const zr={border:`1px solid ${we.border}`,borderRadius:14,mb:1.5,paddingBlock:1.2,boxShadow:"0 6px 18px rgba(2,6,23,.04)","& .MuiListItemIcon-root":{minWidth:44,"& svg":{opacity:.9}},"&:hover":{backgroundColor:"#f8fafc",boxShadow:"0 12px 24px rgba(2,6,23,.06)"}};Ce.CheckoutFlow=Ms,Ce.OrderSummary=Lr,Ce.SplitCardForm=Dn,Ce.SplitPixForm=Fn,Ce.brand=we,Ce.isValidCNPJ=xt,Ce.isValidCPF=vt,Ce.isValidPassport=St,Object.defineProperty(Ce,Symbol.toStringTag,{value:"Module"})}));