frame.identify 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "frame.identify",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Typescript React package to handle frame detection",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./dist/frame.identify.
|
|
7
|
-
"module": "./dist/frame.identify.
|
|
6
|
+
"main": "./dist/frame.identify.js",
|
|
7
|
+
"module": "./dist/frame.identify.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
|
-
"import": "./dist/frame.identify.
|
|
13
|
-
"require": "./dist/frame.identify.cjs.js"
|
|
12
|
+
"import": "./dist/frame.identify.js"
|
|
14
13
|
}
|
|
15
14
|
},
|
|
16
15
|
"files": [
|
|
@@ -19,8 +18,10 @@
|
|
|
19
18
|
"scripts": {
|
|
20
19
|
"dev": "vite",
|
|
21
20
|
"build": "tsc -b && vite build",
|
|
21
|
+
"prepublishOnly": "yarn build",
|
|
22
22
|
"lint": "eslint .",
|
|
23
|
-
"preview": "vite preview"
|
|
23
|
+
"preview": "vite preview",
|
|
24
|
+
"test": "vitest --config vitest.config.ts"
|
|
24
25
|
},
|
|
25
26
|
"peerDependencies": {
|
|
26
27
|
"@emotion/react": "^11.14.0",
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
"typescript-eslint": "^8.65.0",
|
|
52
53
|
"vite": "^8.2.0",
|
|
53
54
|
"vite-plugin-dts": "^5.0.3",
|
|
55
|
+
"vitest": "^4.1.10",
|
|
54
56
|
"xstate": "^5.32.5"
|
|
55
57
|
}
|
|
56
58
|
}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));let l=require("react"),u=c(l,1);l=c(l);let d=require("react/jsx-runtime"),f=require("react-dom");f=c(f,1);let p=require("@emotion/styled");p=c(p,1);let m=require("@emotion/react"),h=require("xstate");function g(e){return e&&e.ownerDocument||document}function _(e){return g(e).defaultView||window}function v(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function y(e){let t=g(e);return e===t.body||e===t.documentElement?_(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function b(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function x(e){return parseFloat(_(e).getComputedStyle(e).paddingRight)||0}function S(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function C(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!S(e);t&&n&&b(e,i)})}function w(e,t){let n=[],r=e.container;if(!t.disableScrollLock){let e;if(r.parentNode instanceof DocumentFragment)e=g(r).body;else{let t=r.parentElement,n=_(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}if(y(e)){let t=v(_(e));n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${x(e)+t}px`;let i=g(r).querySelectorAll(`.mui-fixed`);[].forEach.call(i,e=>{n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${x(e)+t}px`})}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function T(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var E=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&b(e.modalRef,!1);let r=T(t);C(t,e.mount,e.modalRef,r,!0);let i=this.containers.findIndex(e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=this.containers.findIndex(t=>t.modals.includes(e)),r=this.containers[n];r.restore||=w(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=this.containers.findIndex(t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&b(e.modalRef,t),C(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&b(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},D=o((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),O=o((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,M=o,N=a,P=f,F=!1;function ee(e){return F||(F=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),I(e)||x(e)===l}function I(e){return x(e)===u}function L(e){return x(e)===c}function R(e){return x(e)===s}function te(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function z(e){return x(e)===d}function ne(e){return x(e)===i}function re(e){return x(e)===h}function ie(e){return x(e)===m}function B(e){return x(e)===r}function ae(e){return x(e)===o}function oe(e){return x(e)===a}function se(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=j,e.Profiler=M,e.StrictMode=N,e.Suspense=P,e.isAsyncMode=ee,e.isConcurrentMode=I,e.isContextConsumer=L,e.isContextProvider=R,e.isElement=te,e.isForwardRef=z,e.isFragment=ne,e.isLazy=re,e.isMemo=ie,e.isPortal=B,e.isProfiler=ae,e.isStrictMode=oe,e.isSuspense=se,e.isValidElementType=b,e.typeOf=x})()})),k=o(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?D():O()})),A=o(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),j=o(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),M=o(((e,t)=>{t.exports=Function.call.bind(Object.prototype.hasOwnProperty)})),N=o(((e,t)=>{var n=function(){};if(process.env.NODE_ENV!==`production`){var r=j(),i={},a=M();n=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}}}function o(e,t,o,s,c){if(process.env.NODE_ENV!==`production`){for(var l in e)if(a(e,l)){var u;try{if(typeof e[l]!=`function`){var d=Error((s||`React class`)+`: `+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name=`Invariant Violation`,d}u=e[l](t,l,s,o,null,r)}catch(e){u=e}if(u&&!(u instanceof Error)&&n((s||`React class`)+`: type specification of `+o+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+`. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).`),u instanceof Error&&!(u.message in i)){i[u.message]=!0;var f=c?c():``;n(`Failed `+o+` type: `+u.message+(f??``))}}}}o.resetWarningCache=function(){process.env.NODE_ENV!==`production`&&(i={})},t.exports=o})),P=o(((e,t)=>{var n=k(),r=A(),i=j(),a=M(),o=N(),s=function(){};process.env.NODE_ENV!==`production`&&(s=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}});function c(){return null}t.exports=function(e,t){var l=typeof Symbol==`function`&&Symbol.iterator,u=`@@iterator`;function d(e){var t=e&&(l&&e[l]||e[u]);if(typeof t==`function`)return t}var f=`<<anonymous>>`,p={array:_(`array`),bigint:_(`bigint`),bool:_(`boolean`),func:_(`function`),number:_(`number`),object:_(`object`),string:_(`string`),symbol:_(`symbol`),any:v(),arrayOf:y,element:b(),elementType:x(),instanceOf:S,node:E(),objectOf:w,oneOf:C,oneOfType:T,shape:O,exact:k};function m(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function h(e,t){this.message=e,this.data=t&&typeof t==`object`?t:{},this.stack=``}h.prototype=Error.prototype;function g(e){if(process.env.NODE_ENV!==`production`)var n={},r=0;function a(a,o,c,l,u,d,p){if(l||=f,d||=c,p!==i){if(t){var m=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 m.name=`Invariant Violation`,m}if(process.env.NODE_ENV!==`production`&&typeof console<`u`){var g=l+`:`+c;!n[g]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. 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."),n[g]=!0,r++)}}return o[c]==null?a?o[c]===null?new h(`The `+u+" `"+d+"` is marked as required "+("in `"+l+"`, but its value is `null`.")):new h(`The `+u+" `"+d+"` is marked as required in "+("`"+l+"`, but its value is `undefined`.")):null:e(o,c,l,u,d)}var o=a.bind(null,!1);return o.isRequired=a.bind(null,!0),o}function _(e){function t(t,n,r,i,a,o){var s=t[n];if(M(s)!==e){var c=N(s);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return g(t)}function v(){return g(c)}function y(e){function t(t,n,r,a,o){if(typeof e!=`function`)return new h("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var c=M(s);return new h(`Invalid `+a+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l<s.length;l++){var u=e(s,l,r,a,o+`[`+l+`]`,i);if(u instanceof Error)return u}return null}return g(t)}function b(){function t(t,n,r,i,a){var o=t[n];if(!e(o)){var s=M(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return g(t)}function x(){function e(e,t,r,i,a){var o=e[t];if(!n.isValidElementType(o)){var s=M(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement type."))}return null}return g(e)}function S(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var o=e.name||f,s=F(t[n]);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+o+"`."))}return null}return g(t)}function C(e){if(!Array.isArray(e))return process.env.NODE_ENV!==`production`&&(arguments.length>1?s(`Invalid arguments supplied to oneOf, expected an array, got `+arguments.length+` arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).`):s(`Invalid argument supplied to oneOf, expected an array.`)),c;function t(t,n,r,i,a){for(var o=t[n],s=0;s<e.length;s++)if(m(o,e[s]))return null;var c=JSON.stringify(e,function(e,t){return N(t)===`symbol`?String(t):t});return new h(`Invalid `+i+" `"+a+"` of value `"+String(o)+"` "+("supplied to `"+r+"`, expected one of "+c+`.`))}return g(t)}function w(e){function t(t,n,r,o,s){if(typeof e!=`function`)return new h("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],l=M(c);if(l!==`object`)return new h(`Invalid `+o+" `"+s+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an object."));for(var u in c)if(a(c,u)){var d=e(c,u,r,o,s+`.`+u,i);if(d instanceof Error)return d}return null}return g(t)}function T(e){if(!Array.isArray(e))return process.env.NODE_ENV!==`production`&&s(`Invalid argument supplied to oneOfType, expected an instance of array.`),c;for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`function`)return s(`Invalid argument supplied to oneOfType. Expected an array of check functions, but received `+P(n)+` at index `+t+`.`),c}function r(t,n,r,o,s){for(var c=[],l=0;l<e.length;l++){var u=e[l],d=u(t,n,r,o,s,i);if(d==null)return null;d.data&&a(d.data,`expectedType`)&&c.push(d.data.expectedType)}var f=c.length>0?`, expected one of type [`+c.join(`, `)+`]`:``;return new h(`Invalid `+o+" `"+s+"` supplied to "+("`"+r+"`"+f+`.`))}return g(r)}function E(){function e(e,t,n,r,i){return A(e[t])?null:new h(`Invalid `+r+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return g(e)}function D(e,t,n,r,i){return new h((e||`React class`)+`: `+t+" type `"+n+`.`+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function O(e){function t(t,n,r,a,o){var s=t[n],c=M(s);if(c!==`object`)return new h(`Invalid `+a+" `"+o+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var l in e){var u=e[l];if(typeof u!=`function`)return D(r,a,o,l,N(u));var d=u(s,l,r,a,o+`.`+l,i);if(d)return d}return null}return g(t)}function k(e){function t(t,n,o,s,c){var l=t[n],u=M(l);if(u!==`object`)return new h(`Invalid `+s+" `"+c+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var d in r({},t[n],e)){var f=e[d];if(a(e,d)&&typeof f!=`function`)return D(o,s,c,d,N(f));if(!f)return new h(`Invalid `+s+" `"+c+"` key `"+d+"` supplied to `"+o+`\`.
|
|
2
|
-
Bad object: `+JSON.stringify(t[n],null,` `)+`
|
|
3
|
-
Valid keys: `+JSON.stringify(Object.keys(e),null,` `));var p=f(l,d,o,s,c+`.`+d,i);if(p)return p}return null}return g(t)}function A(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(A);if(t===null||e(t))return!0;var n=d(t);if(n){var r=n.call(t),i;if(n!==t.entries){for(;!(i=r.next()).done;)if(!A(i.value))return!1}else for(;!(i=r.next()).done;){var a=i.value;if(a&&!A(a[1]))return!1}}else return!1;return!0;default:return!1}}function j(e,t){return e===`symbol`?!0:t?t[`@@toStringTag`]===`Symbol`||typeof Symbol==`function`&&t instanceof Symbol:!1}function M(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:j(t,e)?`symbol`:t}function N(e){if(e==null)return``+e;var t=M(e);if(t===`object`){if(e instanceof Date)return`date`;if(e instanceof RegExp)return`regexp`}return t}function P(e){var t=N(e);switch(t){case`array`:case`object`:return`an `+t;case`boolean`:case`date`:case`regexp`:return`a `+t;default:return t}}function F(e){return!e.constructor||!e.constructor.name?f:e.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p}})),F=o(((e,t)=>{var n=j();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=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 s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),ee=o(((e,t)=>{if(process.env.NODE_ENV!==`production`){var n=k();t.exports=P()(n.isElement,!0)}else t.exports=F()()}));function I(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=I(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function L(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=I(e))&&(r&&(r+=` `),r+=t);return r}function R(e,t,n,r,i){if(process.env.NODE_ENV===`production`)return null;let a=e[t],o=i||t;return a==null?null:a&&a.nodeType!==1?Error(`Invalid ${r} \`${o}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}function te(e,t){return process.env.NODE_ENV===`production`?()=>null:function(...n){return e(...n)||t(...n)}}var z=c(ee(),1);function ne(e){let{prototype:t={}}=e;return!!t.isReactComponent}function re(e,t,n,r,i){let a=e[t],o=i||t;if(a==null||typeof window>`u`)return null;let s,c=a.type;return typeof c==`function`&&!ne(c)&&(s=`Did you accidentally use a plain function component for an element instead?`),s===void 0?null:Error(`Invalid ${r} \`${o}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`)}var ie=te(z.default.element,re);ie.isRequired=te(z.default.element.isRequired,re);function B(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function ae(...e){let t=u.useRef(void 0),n=u.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return u.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}function oe(e){return parseInt(u.version,10)>=19?e?.props?.ref||null:e?.ref||null}var se=`exact-prop: `;function ce(e){return process.env.NODE_ENV===`production`?e:{...e,[se]:t=>{let n=Object.keys(t).filter(t=>!e.hasOwnProperty(t));return n.length>0?Error(`The following props are not supported: ${n.map(e=>`\`${e}\``).join(`, `)}. Please remove them.`):null}}}function le(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var ue=le;function de(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var fe=de,pe=`data-mui-focusable`;function me(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${pe}]`):null}var he=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function ge(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function _e(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function ve(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||_e(e))}function ye(e){let t=[],n=[];return Array.from(e.querySelectorAll(he)).forEach((e,r)=>{let i=ge(e);i===-1||!ve(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function be(){return!0}function xe(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=ye,isEnabled:o=be,open:s}=e,c=u.useRef(!1),l=u.useRef(null),f=u.useRef(null),p=u.useRef(null),m=u.useRef(null),h=u.useRef(!1),_=u.useRef(null),v=ae(oe(t),_),y=u.useRef(null);u.useEffect(()=>{!s||!_.current||(h.current=!n)},[n,s]),u.useEffect(()=>{if(c.current=!1,!s||!_.current)return;let e=fe(g(_.current)),t=me(_.current)??_.current;return ue(_.current,e)||(t.hasAttribute(`tabIndex`)||(process.env.NODE_ENV!==`production`&&console.error([`MUI: The modal content node does not accept focus.`,`For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".`].join(`
|
|
4
|
-
`)),t.setAttribute(`tabIndex`,`-1`)),h.current&&t.focus()),()=>{!i&&p.current&&(c.current=!0,p.current.focus(),p.current=null)}},[s]),u.useEffect(()=>{if(!s||!_.current)return;let e=g(_.current),t=t=>{if(y.current=t,r||!o()||t.key!==`Tab`)return;let n=_.current,i=fe(e);if(n===null)return;let s=me(n);if(i===n||i===s){let e=a(n);if(e.length===0)return;t.preventDefault(),t.shiftKey?e[e.length-1].focus():e[0].focus();return}if(ue(n,i)){let e=a(n),r=e.indexOf(i);if(r===-1||!e.some(e=>ge(e)>0))return;t.preventDefault();let o=0;o=t.shiftKey?r<=0?e.length-1:r-1:r===e.length-1?0:r+1,e[o].focus()}},n=()=>{let t=_.current;if(t===null)return;let n=fe(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(ue(t,n)||r&&n!==l.current&&n!==f.current)return;if(n!==m.current)m.current=null;else if(m.current!==null)return;if(!h.current)return;let i=[];if((n===l.current||n===f.current)&&(i=a(_.current)),i.length>0){let e=!!(y.current?.shiftKey&&y.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=fe(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let b=e=>{p.current===null&&(p.current=e.relatedTarget),h.current=!0,m.current=e.target;let n=t.props.onFocus;n&&n(e)},x=e=>{p.current===null&&(p.current=e.relatedTarget),h.current=!0};return(0,d.jsxs)(u.Fragment,{children:[(0,d.jsx)(`div`,{tabIndex:s?0:-1,onFocus:x,ref:l,"data-testid":`sentinelStart`}),u.cloneElement(t,{ref:v,onFocus:b}),(0,d.jsx)(`div`,{tabIndex:s?0:-1,onFocus:x,ref:f,"data-testid":`sentinelEnd`})]})}process.env.NODE_ENV!==`production`&&(xe.propTypes={children:ie,disableAutoFocus:z.default.bool,disableEnforceFocus:z.default.bool,disableRestoreFocus:z.default.bool,getTabbable:z.default.func,isEnabled:z.default.func,open:z.default.bool.isRequired}),process.env.NODE_ENV!==`production`&&(xe.propTypes=ce(xe.propTypes));var Se=typeof window<`u`?u.useLayoutEffect:u.useEffect;function Ce(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function we(e){return typeof e==`function`?e():e}var Te=u.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=u.useState(null),s=ae(u.isValidElement(n)?oe(n):null,t);if(Se(()=>{i||o(we(r)||document.body)},[r,i]),Se(()=>{if(a&&!i)return Ce(t,a),()=>{Ce(t,null)}},[t,a,i]),i){if(u.isValidElement(n)){let e={ref:s};return u.cloneElement(n,e)}return n}return a&&f.createPortal(n,a)});process.env.NODE_ENV!==`production`&&(Te.propTypes={children:z.default.node,container:z.default.oneOfType([R,z.default.func]),disablePortal:z.default.bool}),process.env.NODE_ENV!==`production`&&(Te.propTypes=ce(Te.propTypes));function Ee(e,t){let n=Array.isArray(t),r=Array.isArray(e);return je(t)?t:Me(e)?Ne(t):n&&r?ke(e,t):n===r?Pe(e,t):Ne(t)}function De(e){let t=0,n=e.length,r=Array(n);for(t=0;t<n;t+=1)r[t]=Ne(e[t]);return r}function Oe(e){let t={};for(let n in e)n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(t[n]=Ne(e[n]));return t}function ke(e,t){let n=e.length;for(let r=0;r<t.length;r+=1)e[n+r]=Ne(t[r]);return e}function Ae(e){return typeof e==`object`&&!!e&&!(e instanceof RegExp)&&!(e instanceof Date)}function je(e){return typeof e!=`object`||!e}function Me(e){return typeof e!=`object`||!e||e instanceof RegExp||e instanceof Date}function Ne(e){return Ae(e)?Array.isArray(e)?De(e):Oe(e):e}function Pe(e,t){for(let n in t)n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(e[n]=n in e?Ee(e[n],t[n]):Ne(t[n]));return e}function Fe(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Ie(e){if(typeof e!=`string`)throw Error(process.env.NODE_ENV===`production`?Fe(7):"MUI: `capitalize(string)` expects a string argument.");return e.charAt(0).toUpperCase()+e.slice(1)}var Le=process.env.NODE_ENV===`production`?{}:z.default.oneOfType([z.default.number,z.default.string,z.default.object,z.default.array]);function Re(e){if(e==null)return!0;for(let t in e)return!1;return!0}var ze=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.view_transition`),m=Symbol.for(`react.client.reference`);function h(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case l:case u:case p:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:return e;case o:return e;default:return m}}case n:return m}}}e.ContextConsumer=o,e.ContextProvider=s,e.Element=t,e.ForwardRef=c,e.Fragment=r,e.Lazy=f,e.Memo=d,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=l,e.SuspenseList=u,e.isContextConsumer=function(e){return h(e)===o},e.isContextProvider=function(e){return h(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===t},e.isForwardRef=function(e){return h(e)===c},e.isFragment=function(e){return h(e)===r},e.isLazy=function(e){return h(e)===f},e.isMemo=function(e){return h(e)===d},e.isPortal=function(e){return h(e)===n},e.isProfiler=function(e){return h(e)===a},e.isStrictMode=function(e){return h(e)===i},e.isSuspense=function(e){return h(e)===l},e.isSuspenseList=function(e){return h(e)===u},e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===r||e===a||e===i||e===l||e===u||typeof e==`object`&&e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===s||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0))},e.typeOf=h})),Be=o((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case i:case o:case a:case u:case d:case m:return e;default:switch(e&&=e.$$typeof,e){case c:case l:case p:case f:return e;case s:return e;default:return t}}case r:return t}}}var n=Symbol.for(`react.transitional.element`),r=Symbol.for(`react.portal`),i=Symbol.for(`react.fragment`),a=Symbol.for(`react.strict_mode`),o=Symbol.for(`react.profiler`),s=Symbol.for(`react.consumer`),c=Symbol.for(`react.context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.view_transition`),h=Symbol.for(`react.client.reference`);e.ContextConsumer=s,e.ContextProvider=c,e.Element=n,e.ForwardRef=l,e.Fragment=i,e.Lazy=p,e.Memo=f,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=u,e.SuspenseList=d,e.isContextConsumer=function(e){return t(e)===s},e.isContextProvider=function(e){return t(e)===c},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return t(e)===l},e.isFragment=function(e){return t(e)===i},e.isLazy=function(e){return t(e)===p},e.isMemo=function(e){return t(e)===f},e.isPortal=function(e){return t(e)===r},e.isProfiler=function(e){return t(e)===o},e.isStrictMode=function(e){return t(e)===a},e.isSuspense=function(e){return t(e)===u},e.isSuspenseList=function(e){return t(e)===d},e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===i||e===o||e===a||e===u||e===d||typeof e==`object`&&e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===c||e.$$typeof===s||e.$$typeof===l||e.$$typeof===h||e.getModuleId!==void 0))},e.typeOf=t})()})),Ve=o(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?ze():Be()}))();function He(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ue(e){if(u.isValidElement(e)||(0,Ve.isValidElementType)(e)||!He(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=Ue(e[n])}),t}function V(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return He(e)&&He(t)&&Object.keys(t).forEach(i=>{u.isValidElement(t[i])||(0,Ve.isValidElementType)(t[i])?r[i]=t[i]:He(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&He(e[i])?r[i]=V(e[i],t[i],n):n.clone?r[i]=He(t[i])?Ue(t[i]):t[i]:r[i]=t[i]}),r}var We=/min-width:\s*([0-9.]+)/;function Ge(e,t){if(!e.containerQueries||!Ke(t))return t;let n=[];for(let e in t)e.startsWith(`@container`)&&n.push(e);n.sort((e,t)=>(e.match(We)?.[1]||0)-+(t.match(We)?.[1]||0));let r=t;for(let e=0;e<n.length;e+=1){let t=n[e],i=r[t];delete r[t],r[t]=i}return r}function Ke(e){for(let t in e)if(t.startsWith(`@container`))return!0;return!1}function qe(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function Je(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!==`production`)throw Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function Ye(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var Xe=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function Ze(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Xe(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}let f=[];for(let e=0;e<o.length;e+=1)f.push(s(o[e]));return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,internal_mediaKeys:f,...i}}var Qe={},$e={xs:0,sm:600,md:900,lg:1200,xl:1536},et=Ze({values:$e}),tt={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:$e[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function nt(e,t,n){let r={};return rt(r,e.theme,t,(e,t,i)=>{let a=n(t,i);e?r[e]=a:Ee(r,a)})}function rt(e,t,n,r){if(t??=Qe,Array.isArray(n)){let i=t.breakpoints??et;for(let t=0;t<n.length;t+=1)it(e,i.up(i.keys[t]),n[t],void 0,r);return e}if(typeof n==`object`){let i=t.breakpoints??et,a=i.values??$e;for(let o in n)if(qe(i.keys,o)){let i=Je(t.containerQueries?t:tt,o);i&&it(e,i,n[o],o,r)}else if(o in a)it(e,i.up(o),n[o],o,r);else{let t=o;e[t]=n[t]}return e}return r(void 0,n),e}function it(e,t,n,r,i){e[t]??={},i(t,n,r)}function at(e=et){let{internal_mediaKeys:t}=e,n={};for(let e=0;e<t.length;e+=1)n[t[e]]={};return n}function ot(e,t){let n=e.internal_mediaKeys;for(let e=0;e<n.length;e+=1){let r=n[e];Re(t[r])&&delete t[r]}return t}function st(e,t){if(Array.isArray(t))return!0;if(typeof t==`object`&&t){for(let n=0;n<e.keys.length;n+=1)if(e.keys[n]in t)return!0;let n=Object.keys(t);for(let t=0;t<n.length;t+=1)if(qe(e.keys,n[t]))return!0}return!1}function ct(e,t,n,r){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||n:typeof n==`string`&<(e,n,!0,r)||n,t&&(i=t(i,n,e)),i}function lt(e,t,n=!0,r=void 0){if(!e||!t)return null;let i=t.split(`.`);if(e.vars&&n){let t=ut(e.vars,i,r);if(t!=null)return t}return ut(e,i,r)}function ut(e,t,n=void 0){let r,i=e,a=0;for(;a<t.length;){if(i==null)return i;r=i,i=i[t[a]],a+=1}if(n&&i===void 0){let e=t[t.length-1],i=`${n}${e==="default"?``:Ie(e)}`;return r?.[i]}return i}function H(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=lt(o,r)||{};return nt(e,a,e=>{let r=ct(s,i,e,t);return n===!1?r:{[n]:r}})};return a.propTypes=process.env.NODE_ENV===`production`?{}:{[t]:Le},a.filterProps=[t],a}var dt={internal_cache:{}},ft={m:`margin`,p:`padding`},pt={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},mt={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},ht={};for(let e in ft)ht[e]=[ft[e]];for(let e in ft)for(let t in pt){let n=ft[e],r=pt[t],i=Array.isArray(r)?r.map(e=>n+e):[n+r];ht[e+t]=i}for(let e in mt)ht[e]=ht[mt[e]];var gt=new Set([`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`]),_t=new Set([`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`]),vt=new Set([...gt,..._t]);function yt(e,t,n,r){let i=lt(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:(process.env.NODE_ENV!==`production`&&typeof e!=`number`&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${e}.`),typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e):Array.isArray(i)?e=>{if(typeof e==`string`)return e;let n=Math.abs(e);process.env.NODE_ENV!==`production`&&(Number.isInteger(n)?n>i.length-1&&console.error([`MUI: The value provided (${n}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${n} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
5
|
-
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
6
|
-
`)));let r=i[n];return e>=0?r:typeof r==`number`?-r:typeof r==`string`&&r.startsWith(`var(`)?`calc(-1 * ${r})`:`-${r}`}:typeof i==`function`?i:(process.env.NODE_ENV!==`production`&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,`It should be a number, an array or a function.`].join(`
|
|
7
|
-
`)),()=>void 0)}function bt(e){return yt(e,`spacing`,8,`spacing`)}function xt(e,t){return typeof t==`string`||t==null?t:e(t)}var St=[``];function Ct(e,t){let n=e.theme??dt,r=n?.internal_cache?.unarySpacing??bt(n),i={};for(let n in e){if(!t.has(n))continue;let a=ht[n]??(St[0]=n,St),o=e[n];rt(i,e.theme,o,(e,t)=>{let n=e?i[e]:i;for(let e=0;e<a.length;e+=1)n[a[e]]=xt(r,t)})}return i}function wt(e){return Ct(e,gt)}wt.propTypes=process.env.NODE_ENV===`production`?{}:Array.from(gt).reduce((e,t)=>(e[t]=Le,e),{}),wt.filterProps=gt;var U=wt;function Tt(e){return Ct(e,_t)}Tt.propTypes=process.env.NODE_ENV===`production`?{}:Array.from(_t).reduce((e,t)=>(e[t]=Le,e),{}),Tt.filterProps=_t;var W=Tt;process.env.NODE_ENV===`production`||Array.from(vt).reduce((e,t)=>(e[t]=Le,e),{});function Et(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>{let n={};for(let r in e)t[r]&&Ee(n,t[r](e));return n};return n.propTypes=process.env.NODE_ENV===`production`?{}:e.reduce((e,t)=>Object.assign(e,t.propTypes),{}),n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function G(e){return typeof e==`number`?`${e}px solid`:e}function K(e,t){return H({prop:e,themeKey:`borders`,transform:t})}var Dt=K(`border`,G),Ot=K(`borderTop`,G),kt=K(`borderRight`,G),At=K(`borderBottom`,G),jt=K(`borderLeft`,G),Mt=K(`borderColor`),Nt=K(`borderTopColor`),Pt=K(`borderRightColor`),Ft=K(`borderBottomColor`),It=K(`borderLeftColor`),Lt=K(`outline`,G),Rt=K(`outlineColor`),zt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=yt(e.theme,`shape.borderRadius`,4,`borderRadius`);return nt(e,e.borderRadius,e=>({borderRadius:xt(t,e)}))}return null};zt.propTypes=process.env.NODE_ENV===`production`?{}:{borderRadius:Le},zt.filterProps=[`borderRadius`],Et(Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,zt,Lt,Rt);var Bt=e=>{if(e.gap!==void 0&&e.gap!==null){let t=yt(e.theme,`spacing`,8,`gap`);return nt(e,e.gap,e=>({gap:xt(t,e)}))}return null};Bt.propTypes=process.env.NODE_ENV===`production`?{}:{gap:Le},Bt.filterProps=[`gap`];var Vt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=yt(e.theme,`spacing`,8,`columnGap`);return nt(e,e.columnGap,e=>({columnGap:xt(t,e)}))}return null};Vt.propTypes=process.env.NODE_ENV===`production`?{}:{columnGap:Le},Vt.filterProps=[`columnGap`];var Ht=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=yt(e.theme,`spacing`,8,`rowGap`);return nt(e,e.rowGap,e=>({rowGap:xt(t,e)}))}return null};Ht.propTypes=process.env.NODE_ENV===`production`?{}:{rowGap:Le},Ht.filterProps=[`rowGap`],Et(Bt,Vt,Ht,H({prop:`gridColumn`}),H({prop:`gridRow`}),H({prop:`gridAutoFlow`}),H({prop:`gridAutoColumns`}),H({prop:`gridAutoRows`}),H({prop:`gridTemplateColumns`}),H({prop:`gridTemplateRows`}),H({prop:`gridTemplateAreas`}),H({prop:`gridArea`}));function Ut(e,t){return t===`grey`?t:e}Et(H({prop:`color`,themeKey:`palette`,transform:Ut}),H({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Ut}),H({prop:`backgroundColor`,themeKey:`palette`,transform:Ut}));var Wt=$e;function q(e){return e<=1&&e!==0?`${e*100}%`:e}var Gt=H({prop:`width`,transform:q}),Kt=e=>e.maxWidth!==void 0&&e.maxWidth!==null?nt(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||Wt[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:q(t)}}):null;Kt.filterProps=[`maxWidth`];var qt=H({prop:`minWidth`,transform:q}),Jt=H({prop:`height`,transform:q}),Yt=H({prop:`maxHeight`,transform:q}),Xt=H({prop:`minHeight`,transform:q});H({prop:`size`,cssProperty:`width`,transform:q}),H({prop:`size`,cssProperty:`height`,transform:q}),Et(Gt,Kt,qt,Jt,Yt,Xt,H({prop:`boxSizing`}));var Zt={border:{themeKey:`borders`,transform:G},borderTop:{themeKey:`borders`,transform:G},borderRight:{themeKey:`borders`,transform:G},borderBottom:{themeKey:`borders`,transform:G},borderLeft:{themeKey:`borders`,transform:G},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:G},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:zt},color:{themeKey:`palette`,transform:Ut},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Ut},backgroundColor:{themeKey:`palette`,transform:Ut},p:{style:W},pt:{style:W},pr:{style:W},pb:{style:W},pl:{style:W},px:{style:W},py:{style:W},padding:{style:W},paddingTop:{style:W},paddingRight:{style:W},paddingBottom:{style:W},paddingLeft:{style:W},paddingX:{style:W},paddingY:{style:W},paddingInline:{style:W},paddingInlineStart:{style:W},paddingInlineEnd:{style:W},paddingBlock:{style:W},paddingBlockStart:{style:W},paddingBlockEnd:{style:W},m:{style:U},mt:{style:U},mr:{style:U},mb:{style:U},ml:{style:U},mx:{style:U},my:{style:U},margin:{style:U},marginTop:{style:U},marginRight:{style:U},marginBottom:{style:U},marginLeft:{style:U},marginX:{style:U},marginY:{style:U},marginInline:{style:U},marginInlineStart:{style:U},marginInlineEnd:{style:U},marginBlock:{style:U},marginBlockStart:{style:U},marginBlockEnd:{style:U},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:Bt},rowGap:{style:Ht},columnGap:{style:Vt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:q},maxWidth:{style:Kt},minWidth:{transform:q},height:{transform:q},maxHeight:{transform:q},minHeight:{transform:q},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`}},Qt={};function $t(){function e(t){if(!t.sx)return null;let{sx:n,theme:r=Qt,nested:i}=t,a=r.unstable_sxConfig??Zt,o={sx:null,theme:r,nested:!0};function s(n){let s=n;if(typeof n==`function`)s=n(r);else if(typeof n!=`object`)return n;if(!s)return null;let c=r.breakpoints??et,l=at(c);for(let n in s){let i=nn(s[n],r);if(i!=null){if(typeof i!=`object`){tn(l,n,i,r,a);continue}if(a[n]){tn(l,n,i,r,a);continue}st(c,i)?rt(l,t.theme,i,(e,t)=>{l[e][n]=t}):(o.sx=i,l[n]=e(o))}}return!i&&r.modularCssLayers?{"@layer sx":Ge(r,ot(c,l))}:Ge(r,ot(c,l))}return Array.isArray(n)?n.map(s):s(n)}return e.filterProps=[`sx`],e}var en=$t();function tn(e,t,n,r,i){let a=i[t];if(!a){e[t]=n;return}if(n==null)return;let{themeKey:o}=a;if(o===`typography`&&n===`inherit`){e[t]=n;return}let{style:s}=a;if(s){Ee(e,s({[t]:n,theme:r}));return}let{cssProperty:c=t,transform:l}=a,u=lt(r,o);rt(e,r,n,(n,r)=>{let i=ct(u,l,r,t);c===!1?Ee(n?e[n]:e,i):n?e[n][c]=i:e[c]=i})}function nn(e,t){return typeof e==`function`?e(t):e}function rn(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var an={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 on(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var sn=/[A-Z]|^ms/g,cn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ln=function(e){return e.charCodeAt(1)===45},un=function(e){return e!=null&&typeof e!=`boolean`},dn=on(function(e){return ln(e)?e:e.replace(sn,`-$&`).toLowerCase()}),fn=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(cn,function(e,t,n){return gn={name:t,styles:n,next:gn},t})}return an[e]!==1&&!ln(e)&&typeof t==`number`&&t!==0?t+`px`:t};function pn(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return gn={name:i.name,styles:i.styles,next:gn},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)gn={name:o.name,styles:o.styles,next:gn},o=o.next;return a.styles+`;`}return mn(e,t,n);case`function`:if(e!==void 0){var s=gn,c=n(e);return gn=s,pn(e,t,c)}}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function mn(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=pn(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:un(s)&&(r+=dn(a)+`:`+fn(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)un(o[c])&&(r+=dn(a)+`:`+fn(a,o[c])+`;`);else{var l=pn(e,t,o);switch(a){case`animation`:case`animationName`:r+=dn(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var hn=/label:\s*([^\s;{]+)\s*(;|$)/g,gn;function _n(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;gn=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=pn(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=pn(n,t,e[o]),r&&(i+=a[o]);hn.lastIndex=0;for(var s=``,c;(c=hn.exec(i))!==null;)s+=`-`+c[1];return{name:rn(i)+s,styles:i,next:gn}}function vn(e,t){let n=(0,p.default)(e,t);return process.env.NODE_ENV===`production`?n:(...t)=>{let r=typeof e==`string`?`"${e}"`:`component`;return t.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
8
|
-
`)):t.some(e=>e===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}}function yn(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var bn=[];function xn(e){return bn[0]=e,_n(bn)}var Sn={borderRadius:4};function Cn(e=8,t=bt({spacing:e})){if(e.mui)return e;let n=(...e)=>(process.env.NODE_ENV!==`production`&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `));return n.mui=!0,n}function wn(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Tn(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Ze(n),c=Cn(i),l=V({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...Sn,...a}},o);return l=Ye(l),l.applyStyles=wn,l=t.reduce((e,t)=>V(e,t),l),l.unstable_sxConfig={...Zt,...o?.unstable_sxConfig},l.unstable_sx=function(e){return en({sx:e,theme:this})},l.internal_cache={},l}function En(e){return Object.keys(e).length===0}function Dn(e=null){let t=u.useContext(m.ThemeContext);return!t||En(t)?e:t}var On=Tn();function kn(e=On){return Dn(e)}var An=e=>e,jn=(()=>{let e=An;return{configure(t){e=t},generate(t){return e(t)},reset(){e=An}}})(),Mn={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 Nn(e,t,n=`Mui`){let r=Mn[t];return r?`${n}-${r}`:`${jn.generate(e)}-${t}`}function Pn(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=Nn(e,t,n)}),r}function Fn(e,t=``){return e.displayName||e.name||t}function In(e,t,n){let r=Fn(t);return e.displayName||(r===``?n:`${n}(${r})`)}function Ln(e){if(e!=null){if(typeof e==`string`)return e;if(typeof e==`function`)return Fn(e,`Component`);if(typeof e==`object`)switch(e.$$typeof){case Ve.ForwardRef:return In(e,e.render,`ForwardRef`);case Ve.Memo:return In(e,e.type,`memo`);default:return}}}function Rn(e){let{variants:t,...n}=e,r={variants:t,style:xn(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=xn(e.style))}),r}var zn=Tn();function Bn(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function Vn(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Hn(e){return e?(t,n)=>n[e]:null}function Un(e,t,n){e.theme=Re(e.theme)?n:e.theme[t]||e.theme}function Wn(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Wn(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Vn(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?Vn(xn(i),n):i}return Gn(e,r.variants,[t],n)}return r?.isProcessed?n?Vn(xn(r.style),n):r.style:n?Vn(xn(r),n):r}function Gn(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Vn(xn(o.style(i)),r):o.style(i))):n.push(r?Vn(xn(o.style),r):o.style)}return n}function Kn(e={}){let{themeId:t,defaultTheme:n=zn,rootShouldForwardProp:r=Bn,slotShouldForwardProp:i=Bn}=e;function a(e){Un(e,t,n)}return(e,t={})=>{yn(e,e=>e.filter(e=>e!==en));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=Hn(Xn(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=Bn;o===`Root`||o===`root`?m=r:o?m=i:Yn(e)&&(m=void 0);let h=vn(e,{shouldForwardProp:m,label:Jn(n,o),...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return Wn(t,e,t.theme.modularCssLayers?d:void 0)};if(He(e)){let t=Rn(e);return function(e){return t.variants?Wn(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Vn(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),s=[];if(r.push(a),n&&l&&s.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=Wn(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&s.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?Gn(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||s.push(en),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(s.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let c=[...r,...i,...s],u=h(...c);return e.muiName&&(u.muiName=e.muiName),process.env.NODE_ENV!==`production`&&(u.displayName=qn(n,o,e)),u};return h.withConfig&&(_.withConfig=h.withConfig),_}}function qn(e,t,n){return e?`${e}${Ie(t||``)}`:`Styled(${Ln(n)})`}function Jn(e,t){let n;return process.env.NODE_ENV!==`production`&&e&&(n=`${e}-${Xn(t||`Root`)}`),n}function Yn(e){return typeof e==`string`&&e.charCodeAt(0)>96}function Xn(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Zn(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=Zn(i[t],o[t],n)}}}else a===`className`&&n&&t.className!==void 0?r.className=L(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function Qn(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function $n(e,t=0,n=1){return process.env.NODE_ENV!==`production`&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Qn(e,t,n)}function er(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),process.env.NODE_ENV!==`production`&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function tr(e){if(e.type)return e;if(e.charAt(0)===`#`)return tr(er(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(process.env.NODE_ENV===`production`?Fe(9,e):`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`);let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(process.env.NODE_ENV===`production`?Fe(10,i):`MUI: unsupported \`${i}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`)}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var nr=e=>{let t=tr(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},rr=(e,t)=>{try{return nr(e)}catch{return t&&process.env.NODE_ENV!==`production`&&console.warn(t),e}};function ir(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function ar(e){e=tr(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),ir({type:s,values:c})}function or(e){e=tr(e);let t=e.type===`hsl`||e.type===`hsla`?tr(ar(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function sr(e,t){let n=or(e),r=or(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function cr(e,t){return e=tr(e),t=$n(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,ir(e)}function lr(e,t,n){try{return cr(e,t)}catch{return n&&process.env.NODE_ENV!==`production`&&console.warn(n),e}}function ur(e,t){if(e=tr(e),t=$n(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ir(e)}function J(e,t,n){try{return ur(e,t)}catch{return n&&process.env.NODE_ENV!==`production`&&console.warn(n),e}}function dr(e,t){if(e=tr(e),t=$n(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ir(e)}function Y(e,t,n){try{return dr(e,t)}catch{return n&&process.env.NODE_ENV!==`production`&&console.warn(n),e}}function fr(e,t=.15){return or(e)>.5?ur(e,t):dr(e,t)}function pr(e,t,n){try{return fr(e,t)}catch{return n&&process.env.NODE_ENV!==`production`&&console.warn(n),e}}var mr=u.createContext(void 0);process.env.NODE_ENV!==`production`&&(z.default.node,z.default.object);function hr(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?Zn(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Zn(i,r,t.components.mergeClassNameAndStyle):r}function gr({props:e,name:t}){return hr({props:e,name:t,theme:{components:u.useContext(mr)}})}var _r=0;function vr(e){let[t,n]=u.useState(e),r=e||t;return u.useEffect(()=>{t??(_r+=1,n(`mui-${_r}`))},[t]),r}var yr={...u}.useId;function br(e){if(yr!==void 0){let t=yr();return e??t}return vr(e)}var xr={theme:void 0};function Sr(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(xr.theme=r.theme,i=Rn(e(xr)),t=i,n=r.theme),i}}function Cr(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.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}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var wr=new Set([`__proto__`,`constructor`,`prototype`]),Tr=(e,t,n,r=[])=>{let i=e;for(let e=0;e<t.length;e+=1){let a=t[e];if(wr.has(a))break;e===t.length-1?Array.isArray(i)?i[Number(a)]=n:i&&typeof i==`object`&&(i[a]=n):i&&typeof i==`object`&&(i[a]||(i[a]=r.includes(a)?[]:{}),i=i[a])}},Er=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Dr=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Or(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Er(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Dr(e,t);Object.assign(i,{[r]:c}),Tr(a,e,`var(${r})`,s),Tr(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function kr(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=Or(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Or(n,t);p=V(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Or(h,t);p=V(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=V(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.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)`}}),t}}}function Ar(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)} &`:`&`}}var jr={black:`#000`,white:`#fff`},Mr={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`},Nr={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},Pr={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},Fr={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},Ir={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},Lr={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},Rr={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function zr(){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:jr.white,default:jr.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}}}var Br=zr();function Vr(){return{text:{primary:jr.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:jr.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}}}var Hr=Vr();function Ur(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=dr(e.main,i):t===`dark`&&(e.dark=ur(e.main,a)))}function Wr(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function Gr(e=`light`){return e===`dark`?{main:Ir[200],light:Ir[50],dark:Ir[400]}:{main:Ir[700],light:Ir[400],dark:Ir[800]}}function Kr(e=`light`){return e===`dark`?{main:Nr[200],light:Nr[50],dark:Nr[400]}:{main:Nr[500],light:Nr[300],dark:Nr[700]}}function qr(e=`light`){return e===`dark`?{main:Pr[500],light:Pr[300],dark:Pr[700]}:{main:Pr[700],light:Pr[400],dark:Pr[800]}}function Jr(e=`light`){return e===`dark`?{main:Lr[400],light:Lr[300],dark:Lr[700]}:{main:Lr[700],light:Lr[500],dark:Lr[900]}}function Yr(e=`light`){return e===`dark`?{main:Rr[400],light:Rr[300],dark:Rr[700]}:{main:Rr[800],light:Rr[500],dark:Rr[900]}}function Xr(e=`light`){return e===`dark`?{main:Fr[400],light:Fr[300],dark:Fr[700]}:{main:`#ed6c02`,light:Fr[500],dark:Fr[900]}}function Zr(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Qr(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Gr(t),s=e.secondary||Kr(t),c=e.error||qr(t),l=e.info||Jr(t),u=e.success||Yr(t),d=e.warning||Xr(t);function f(e){if(i)return Zr(e);let t=sr(e,Hr.text.primary)>=n?Hr.text.primary:Br.text.primary;if(process.env.NODE_ENV!==`production`){let n=sr(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,`falls below the WCAG recommended absolute minimum contrast ratio of 3:1.`,`https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast`].join(`
|
|
9
|
-
`))}return t}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(process.env.NODE_ENV===`production`?Fe(11,t?` (${t})`:``,n):`MUI: The color${t?` (${t})`:``} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`);if(typeof e.main!=`string`)throw Error(process.env.NODE_ENV===`production`?Fe(12,t?` (${t})`:``,JSON.stringify(e.main)):`MUI: The color${t?` (${t})`:``} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n
|
|
10
|
-
Did you intend to use one of the following approaches?
|
|
11
|
-
|
|
12
|
-
import { green } from "@mui/material/colors";
|
|
13
|
-
|
|
14
|
-
const theme1 = createTheme({ palette: {
|
|
15
|
-
primary: green,
|
|
16
|
-
} });
|
|
17
|
-
|
|
18
|
-
const theme2 = createTheme({ palette: {
|
|
19
|
-
primary: { main: green[500] },
|
|
20
|
-
} });`);return i?(Wr(i,e,`light`,a,r),Wr(i,e,`dark`,o,r)):(Ur(e,`light`,a,r),Ur(e,`dark`,o,r)),e.contrastText||(e.contrastText=f(e.main)),e},m;return t===`light`?m=zr():t===`dark`&&(m=Vr()),process.env.NODE_ENV!==`production`&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),V({common:{...jr},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:Mr,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function $r(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function ei(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function ti(e){return Math.round(e*1e5)/1e5}var ni={textTransform:`uppercase`},ri=`"Roboto", "Helvetica", "Arial", sans-serif`;function ii(e,t){let{fontFamily:n=ri,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t;process.env.NODE_ENV!==`production`&&(typeof r!=`number`&&console.error("MUI: `fontSize` is required to be a number."),typeof c!=`number`&&console.error("MUI: `htmlFontSize` is required to be a number."));let f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===ri?{letterSpacing:`${ti(i/t)}em`}:{},...a,...l});return V({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,ni),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ni),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var ai=.2,oi=.14,si=.12;function X(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ai})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${oi})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${si})`].join(`,`)}var ci=[`none`,X(0,2,1,-1,0,1,1,0,0,1,3,0),X(0,3,1,-2,0,2,2,0,0,1,5,0),X(0,3,3,-2,0,3,4,0,0,1,8,0),X(0,2,4,-1,0,4,5,0,0,1,10,0),X(0,3,5,-1,0,5,8,0,0,1,14,0),X(0,3,5,-1,0,6,10,0,0,1,18,0),X(0,4,5,-2,0,7,10,1,0,2,16,1),X(0,5,5,-3,0,8,10,1,0,3,14,2),X(0,5,6,-3,0,9,12,1,0,3,16,2),X(0,6,6,-3,0,10,14,1,0,4,18,3),X(0,6,7,-4,0,11,15,1,0,4,20,3),X(0,7,8,-4,0,12,17,2,0,5,22,4),X(0,7,8,-4,0,13,19,2,0,5,24,4),X(0,7,9,-4,0,14,21,2,0,5,26,4),X(0,8,9,-5,0,15,22,2,0,6,28,5),X(0,8,10,-5,0,16,24,2,0,6,30,5),X(0,8,11,-5,0,17,26,2,0,6,32,5),X(0,9,11,-5,0,18,28,2,0,7,34,6),X(0,9,12,-6,0,19,29,2,0,7,36,6),X(0,10,13,-6,0,20,31,3,0,8,38,7),X(0,10,13,-6,0,21,33,3,0,8,40,7),X(0,10,14,-6,0,22,35,3,0,8,42,7),X(0,11,14,-7,0,23,36,3,0,9,44,8),X(0,11,15,-7,0,24,38,3,0,9,46,8)],li=[`all`],ui={},di={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)`},fi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pi(e){return`${Math.round(e)}ms`}function mi(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function hi(e){let t={...e};delete t.reducedMotion;let n={...di,...t.easing},r={...fi,...t.duration};return{getAutoHeightDuration:mi,create:t.create??((e=li,t=ui)=>{let{duration:i=r.standard,easing:a=n.easeInOut,delay:o=0,...s}=t;if(process.env.NODE_ENV!==`production`){let n=e=>typeof e==`string`,r=e=>!Number.isNaN(parseFloat(e));!n(e)&&!Array.isArray(e)&&console.error(`MUI: Argument "props" must be a string or Array.`),!r(i)&&!n(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),n(a)||console.error(`MUI: Argument "easing" must be a string.`),!r(o)&&!n(o)&&console.error(`MUI: Argument "delay" must be a number or a string.`),typeof t!=`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(`
|
|
21
|
-
`)),Object.keys(s).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(`,`)}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:pi(i)} ${a} ${typeof o==`string`?o:pi(o)}`).join(`,`)}),...t,easing:n,duration:r}}var gi={};function _i(e=gi){return{reducedMotion:`never`,...e}}var vi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yi(e){return He(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function bi(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!yi(a)||i.startsWith(`unstable_`)||i.startsWith(`internal_`)?delete e[i]:He(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
22
|
-
|
|
23
|
-
const theme = ${JSON.stringify(t,null,2)};
|
|
24
|
-
|
|
25
|
-
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
26
|
-
theme.motion = { reducedMotion: 'never', ...theme.motion };
|
|
27
|
-
theme.transitions = createTransitions(theme.transitions || {});
|
|
28
|
-
|
|
29
|
-
export default theme;`}function xi(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var Si=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function Ci(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:cr(t,Si(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${xi(n)})`:dr(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${xi(n)})`:ur(t,n)}})}function wi(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},motion:o={},transitions:s={},typography:c={},shape:l,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(process.env.NODE_ENV===`production`?Fe(22):"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.");let f=Qr({...a,colorSpace:u}),p=Tn(e),m=V(p,{mixins:ei(p.breakpoints,r),palette:f,shadows:ci.slice(),typography:ii(f,c),motion:_i(o),transitions:hi(s),zIndex:{...vi}});if(m=V(m,d),m=t.reduce((e,t)=>V(e,t),m),delete m.transitions.reducedMotion,process.env.NODE_ENV!==`production`){let e=[`active`,`checked`,`completed`,`disabled`,`error`,`expanded`,`focused`,`focusVisible`,`required`,`selected`],t=(t,n)=>{let r;for(r in t){let i=t[r];if(e.includes(r)&&Object.keys(i).length>0){if(process.env.NODE_ENV!==`production`){let e=Nn(``,r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,`You can not override it like this: `,JSON.stringify(t,null,2),``,`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:i}},null,2),``,`https://mui.com/r/state-classes-guide`].join(`
|
|
30
|
-
`))}t[r]={}}}};Object.keys(m.components).forEach(e=>{let n=m.components[e].styleOverrides;n&&e.startsWith(`Mui`)&&t(n,e)})}return m.unstable_sxConfig={...Zt,...d?.unstable_sxConfig},m.unstable_sx=function(e){return en({sx:e,theme:this})},m.toRuntimeSource=bi,Ci(m),m}function Ti(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var Ei=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=Ti(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Di(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function Oi(e){return e===`dark`?Ei:[]}function ki(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=Qr({...t,colorSpace:i});return{palette:o,opacity:{...Di(o.mode),...n},overlays:r||Oi(o.mode),...a}}function Ai(e){return e[0]===`motion`||!!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)/)}var ji=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],Mi=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return ji(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function Ni(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function Z(e,t,n){!e[t]&&n&&(e[t]=n)}function Pi(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:ar(e)}function Fi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=rr(Pi(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
31
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Ii(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var Li=e=>{try{return e()}catch{}},Ri=(e=`mui`)=>Cr(e);function zi(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=ki({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=wi({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...Di(a),...n?.opacity},overlays:n?.overlays||Oi(a)},s}function Bi(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=Ai,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=Ri(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(process.env.NODE_ENV===`production`?Fe(21,f):`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`);let b;o&&(b=`oklch`);let x=zi(b,v,y,u,f);h&&!v.light&&zi(b,v,h,void 0,`light`),g&&!v.dark&&zi(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...$r(x.typography),...x.font},spacing:Ii(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(Z(t.common,`background`,`#fff`),Z(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(Z(t.common,`background`,`#000`),Z(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===lr&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===J&&(r=`#000 ${(n*100).toFixed(0)}%`),e===Y&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(Ni(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){Z(t.Alert,`errorColor`,r(J,o?p(`palette-error-light`):t.error.light,.6)),Z(t.Alert,`infoColor`,r(J,o?p(`palette-info-light`):t.info.light,.6)),Z(t.Alert,`successColor`,r(J,o?p(`palette-success-light`):t.success.light,.6)),Z(t.Alert,`warningColor`,r(J,o?p(`palette-warning-light`):t.warning.light,.6)),Z(t.Alert,`errorFilledBg`,n(`palette-error-main`)),Z(t.Alert,`infoFilledBg`,n(`palette-info-main`)),Z(t.Alert,`successFilledBg`,n(`palette-success-main`)),Z(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),Z(t.Alert,`errorFilledColor`,Li(()=>t.getContrastText(t.error.main))),Z(t.Alert,`infoFilledColor`,Li(()=>t.getContrastText(t.info.main))),Z(t.Alert,`successFilledColor`,Li(()=>t.getContrastText(t.success.main))),Z(t.Alert,`warningFilledColor`,Li(()=>t.getContrastText(t.warning.main))),Z(t.Alert,`errorStandardBg`,r(Y,o?p(`palette-error-light`):t.error.light,.9)),Z(t.Alert,`infoStandardBg`,r(Y,o?p(`palette-info-light`):t.info.light,.9)),Z(t.Alert,`successStandardBg`,r(Y,o?p(`palette-success-light`):t.success.light,.9)),Z(t.Alert,`warningStandardBg`,r(Y,o?p(`palette-warning-light`):t.warning.light,.9)),Z(t.Alert,`errorIconColor`,n(`palette-error-main`)),Z(t.Alert,`infoIconColor`,n(`palette-info-main`)),Z(t.Alert,`successIconColor`,n(`palette-success-main`)),Z(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Z(t.AppBar,`defaultBg`,n(`palette-grey-100`)),Z(t.Avatar,`defaultBg`,n(`palette-grey-400`)),Z(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),Z(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),Z(t.Chip,`defaultBorder`,n(`palette-grey-400`)),Z(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),Z(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),Z(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),Z(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),Z(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),Z(t.LinearProgress,`primaryBg`,r(Y,o?p(`palette-primary-main`):t.primary.main,.62)),Z(t.LinearProgress,`secondaryBg`,r(Y,o?p(`palette-secondary-main`):t.secondary.main,.62)),Z(t.LinearProgress,`errorBg`,r(Y,o?p(`palette-error-main`):t.error.main,.62)),Z(t.LinearProgress,`infoBg`,r(Y,o?p(`palette-info-main`):t.info.main,.62)),Z(t.LinearProgress,`successBg`,r(Y,o?p(`palette-success-main`):t.success.main,.62)),Z(t.LinearProgress,`warningBg`,r(Y,o?p(`palette-warning-light`):t.warning.main,.62)),Z(t.Skeleton,`bg`,b?r(lr,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),Z(t.Slider,`primaryTrack`,r(Y,o?p(`palette-primary-main`):t.primary.main,.62)),Z(t.Slider,`secondaryTrack`,r(Y,o?p(`palette-secondary-main`):t.secondary.main,.62)),Z(t.Slider,`errorTrack`,r(Y,o?p(`palette-error-main`):t.error.main,.62)),Z(t.Slider,`infoTrack`,r(Y,o?p(`palette-info-main`):t.info.main,.62)),Z(t.Slider,`successTrack`,r(Y,o?p(`palette-success-main`):t.success.main,.62)),Z(t.Slider,`warningTrack`,r(Y,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(J,o?p(`palette-background-default`):t.background.default,.6825):pr(t.background.default,.8);Z(t.SnackbarContent,`bg`,e),Z(t.SnackbarContent,`color`,Li(()=>b?Hr.text.primary:t.getContrastText(e))),Z(t.SpeedDialAction,`fabHoverBg`,pr(t.background.paper,.15)),Z(t.StepConnector,`border`,n(`palette-grey-400`)),Z(t.StepContent,`border`,n(`palette-grey-400`)),Z(t.Switch,`defaultColor`,n(`palette-common-white`)),Z(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),Z(t.Switch,`primaryDisabledColor`,r(Y,o?p(`palette-primary-main`):t.primary.main,.62)),Z(t.Switch,`secondaryDisabledColor`,r(Y,o?p(`palette-secondary-main`):t.secondary.main,.62)),Z(t.Switch,`errorDisabledColor`,r(Y,o?p(`palette-error-main`):t.error.main,.62)),Z(t.Switch,`infoDisabledColor`,r(Y,o?p(`palette-info-main`):t.info.main,.62)),Z(t.Switch,`successDisabledColor`,r(Y,o?p(`palette-success-main`):t.success.main,.62)),Z(t.Switch,`warningDisabledColor`,r(Y,o?p(`palette-warning-main`):t.warning.main,.62)),Z(t.TableCell,`border`,r(Y,lr(o?p(`palette-divider`):t.divider,1),.88)),Z(t.Tooltip,`bg`,r(lr,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){Z(t.Alert,`errorColor`,r(Y,o?p(`palette-error-light`):t.error.light,.6)),Z(t.Alert,`infoColor`,r(Y,o?p(`palette-info-light`):t.info.light,.6)),Z(t.Alert,`successColor`,r(Y,o?p(`palette-success-light`):t.success.light,.6)),Z(t.Alert,`warningColor`,r(Y,o?p(`palette-warning-light`):t.warning.light,.6)),Z(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),Z(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),Z(t.Alert,`successFilledBg`,n(`palette-success-dark`)),Z(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),Z(t.Alert,`errorFilledColor`,Li(()=>t.getContrastText(t.error.dark))),Z(t.Alert,`infoFilledColor`,Li(()=>t.getContrastText(t.info.dark))),Z(t.Alert,`successFilledColor`,Li(()=>t.getContrastText(t.success.dark))),Z(t.Alert,`warningFilledColor`,Li(()=>t.getContrastText(t.warning.dark))),Z(t.Alert,`errorStandardBg`,r(J,o?p(`palette-error-light`):t.error.light,.9)),Z(t.Alert,`infoStandardBg`,r(J,o?p(`palette-info-light`):t.info.light,.9)),Z(t.Alert,`successStandardBg`,r(J,o?p(`palette-success-light`):t.success.light,.9)),Z(t.Alert,`warningStandardBg`,r(J,o?p(`palette-warning-light`):t.warning.light,.9)),Z(t.Alert,`errorIconColor`,n(`palette-error-main`)),Z(t.Alert,`infoIconColor`,n(`palette-info-main`)),Z(t.Alert,`successIconColor`,n(`palette-success-main`)),Z(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Z(t.AppBar,`defaultBg`,n(`palette-grey-900`)),Z(t.AppBar,`darkBg`,n(`palette-background-paper`)),Z(t.AppBar,`darkColor`,n(`palette-text-primary`)),Z(t.Avatar,`defaultBg`,n(`palette-grey-600`)),Z(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),Z(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),Z(t.Chip,`defaultBorder`,n(`palette-grey-700`)),Z(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),Z(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),Z(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),Z(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),Z(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),Z(t.LinearProgress,`primaryBg`,r(J,o?p(`palette-primary-main`):t.primary.main,.5)),Z(t.LinearProgress,`secondaryBg`,r(J,o?p(`palette-secondary-main`):t.secondary.main,.5)),Z(t.LinearProgress,`errorBg`,r(J,o?p(`palette-error-main`):t.error.main,.5)),Z(t.LinearProgress,`infoBg`,r(J,o?p(`palette-info-main`):t.info.main,.5)),Z(t.LinearProgress,`successBg`,r(J,o?p(`palette-success-main`):t.success.main,.5)),Z(t.LinearProgress,`warningBg`,r(J,o?p(`palette-warning-main`):t.warning.main,.5)),Z(t.Skeleton,`bg`,b?r(lr,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),Z(t.Slider,`primaryTrack`,r(J,o?p(`palette-primary-main`):t.primary.main,.5)),Z(t.Slider,`secondaryTrack`,r(J,o?p(`palette-secondary-main`):t.secondary.main,.5)),Z(t.Slider,`errorTrack`,r(J,o?p(`palette-error-main`):t.error.main,.5)),Z(t.Slider,`infoTrack`,r(J,o?p(`palette-info-main`):t.info.main,.5)),Z(t.Slider,`successTrack`,r(J,o?p(`palette-success-main`):t.success.main,.5)),Z(t.Slider,`warningTrack`,r(J,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(Y,o?p(`palette-background-default`):t.background.default,.985):pr(t.background.default,.98);Z(t.SnackbarContent,`bg`,e),Z(t.SnackbarContent,`color`,Li(()=>b?Br.text.primary:t.getContrastText(e))),Z(t.SpeedDialAction,`fabHoverBg`,pr(t.background.paper,.15)),Z(t.StepConnector,`border`,n(`palette-grey-600`)),Z(t.StepContent,`border`,n(`palette-grey-600`)),Z(t.Switch,`defaultColor`,n(`palette-grey-300`)),Z(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),Z(t.Switch,`primaryDisabledColor`,r(J,o?p(`palette-primary-main`):t.primary.main,.55)),Z(t.Switch,`secondaryDisabledColor`,r(J,o?p(`palette-secondary-main`):t.secondary.main,.55)),Z(t.Switch,`errorDisabledColor`,r(J,o?p(`palette-error-main`):t.error.main,.55)),Z(t.Switch,`infoDisabledColor`,r(J,o?p(`palette-info-main`):t.info.main,.55)),Z(t.Switch,`successDisabledColor`,r(J,o?p(`palette-success-main`):t.success.main,.55)),Z(t.Switch,`warningDisabledColor`,r(J,o?p(`palette-warning-light`):t.warning.main,.55)),Z(t.TableCell,`border`,r(J,lr(o?p(`palette-divider`):t.divider,1),.68)),Z(t.Tooltip,`bg`,r(lr,o?p(`palette-grey-700`):t.grey[700],.92))}o||(Fi(t.background,`default`),Fi(t.background,`paper`),Fi(t.common,`background`),Fi(t.common,`onBackground`),Fi(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&Z(t[e],`mainChannel`,rr(Pi(n.main))),n.light&&Z(t[e],`lightChannel`,rr(Pi(n.light))),n.dark&&Z(t[e],`darkChannel`,rr(Pi(n.dark))),n.contrastText&&Z(t[e],`contrastTextChannel`,rr(Pi(n.contrastText))),e===`text`&&(Fi(t[e],`primary`),Fi(t[e],`secondary`)),e===`action`&&(n.active&&Fi(t[e],`active`),n.selected&&Fi(t[e],`selected`)))})}),S=t.reduce((e,t)=>V(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:Mi(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=kr(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return Cn(u.spacing,bt(this))},S.getColorSchemeSelector=Ar(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Zt,...u?.unstable_sxConfig},S.unstable_sx=function(e){return en({sx:e,theme:this})},S.internal_cache={},S.toRuntimeSource=bi,S}function Vi(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Qr({...n===!0?{}:n.palette,mode:t})})}function Hi(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return wi(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=wi({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},Vi(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Vi(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Bi({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var Ui=Hi(),Wi=`$$material`;function Gi(){let e=kn(Ui);return process.env.NODE_ENV!==`production`&&u.useDebugValue(e),e.$$material||e}function Ki(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var qi=e=>Ki(e)&&e!==`classes`,Q=Kn({themeId:Wi,defaultTheme:Ui,rootShouldForwardProp:qi}),Ji=Sr;process.env.NODE_ENV!==`production`&&(z.default.node,z.default.object.isRequired);function Yi(e){return gr(e)}function Xi(e){return typeof e==`string`}function Zi(e,t,n){return e===void 0||Xi(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Qi(e,t,n){return typeof e==`function`?e(t,n):e}function $i(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function ea(e){if(e===void 0)return{};let t={};for(let n of Object.keys(e))$i(n,e[n])&&(t[n]=e[n]);return t}function ta(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function na(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=L(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=ea({...i,...r}),s=ta(r),c=ta(i),l=t(o),u=L(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function ra(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=Qi(d[e],i),{props:{component:h,...g},internalRef:_}=na({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=ae(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Zi(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var ia={};function aa(e,t){let n=u.useRef(ia);return n.current===ia&&(n.current=e(t)),n}function oa(e){let t=aa(()=>sa(e)).current;return t.next=e,Se(t.effect),t}function sa(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var ca=l.default.createContext(null),la={transition:`none`};function ua(e,t){return e===`always`?t:e===`system`?{"@media (prefers-reduced-motion: reduce)":t}:null}var da=e=>e.scrollTop,fa={},pa=[`all`],ma={};function ha(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function ga(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function _a(e,t){let{timeout:n,easing:r,style:i=fa}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function va(e,t){let n=t??la;return ua(e.motion?.reducedMotion,n)}function ya(e,t=pa,n=ma){let r=e.transitions?.create?.(t,n),i=va(e);if(r===void 0)return i??fa;let a={transition:r};return i?{...a,...i}:a}function ba(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e==`number`)return{appear:e,enter:e,exit:e};let t=e.enter,n=e.exit;return{appear:e.appear===void 0?t:e.appear,enter:t,exit:n}}function xa(e){if(e.autoTimeout!=null)return e.autoTimeout;let t=ba(e.timeout);return e.currentStatus===`entering`?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function Sa(e){let{in:t=!1,appear:n=!1,enter:r=!0,exit:i=!0,mountOnEnter:a=!1,unmountOnExit:o=!1,timeout:s,addEndListener:c,reduceMotion:l=!1,getAutoTimeout:f,nodeRef:p,onEnter:m,onEntering:h,onEntered:g,onExit:_,onExiting:v,onExited:y,children:b,...x}=e,S=u.useContext(ca),C=S&&!S.isMounting?r:n,[w,T]=u.useState(()=>t?C?`exited`:`entered`:a||o?`unmounted`:`exited`),E=u.useRef(w);E.current=w,t&&w===`unmounted`&&(E.current=`exited`,T(`exited`));let D=u.useRef(t&&C),O=u.useRef(!1),k=u.useRef(null),A=u.useRef(w),j=u.useRef(!1),M=u.useRef(l),N=oa({timeout:s,addEndListener:c,reduceMotion:l,getAutoTimeout:f,onEnter:m,onEntering:h,onEntered:g,onExit:_,onExiting:v,onExited:y,enter:r,exit:i,mountOnEnter:a,unmountOnExit:o,nodeRef:p,parentGroup:S}),P=u.useCallback(()=>{k.current!==null&&(k.current.cancel(),k.current=null)},[]),F=u.useCallback(e=>{let t=!0,n=()=>{t&&(t=!1,k.current=null,e())};return n.cancel=()=>{t=!1},k.current=n,n},[]),ee=u.useCallback((e,t)=>{let n,r=()=>{n!==void 0&&(clearTimeout(n),n=void 0)},i=F(()=>{r(),E.current=e,T(e)}),a=i.cancel;i.cancel=()=>{r(),a()};let o=N.current.nodeRef.current,s=N.current.addEndListener,c=N.current.getAutoTimeout!==void 0,l=N.current.getAutoTimeout?.(),u=xa({currentStatus:t,isAppearing:j.current,timeout:N.current.timeout,autoTimeout:l}),d=M.current,f=u??(d&&c?0:null),p=e=>{n=setTimeout(i,e)};if(!o){process.env.NODE_ENV!==`production`&&console.warn([`MUI: The transition child does not expose a DOM element.`,`Make sure the child accepts a ref and forwards it to the underlying DOM element.`,`The transition animation cannot be observed without a DOM element and will be skipped.`].join(`
|
|
32
|
-
`)),p(0);return}if(s){f!=null&&p(d?0:f),s.length>=2?s(o,i):s(i);return}p(d?0:u??0)},[F,N]),I=u.useCallback(e=>{let t=N.current,n=t.parentGroup?t.parentGroup.isMounting:e;if(j.current=n,!e&&!t.enter){E.current=`entered`,T(`entered`);return}M.current=t.reduceMotion,t.onEnter?.(n),E.current=`entering`,T(`entering`)},[N]),L=u.useCallback(()=>{let e=N.current;if(!e.exit){E.current=`exited`,T(`exited`);return}M.current=e.reduceMotion,e.onExit?.(),E.current=`exiting`,T(`exiting`)},[N]),R=u.useCallback((e,t)=>{if(P(),t===`entering`){let t=N.current;if(t.mountOnEnter||t.unmountOnExit){let e=t.nodeRef.current;e&&da(e)}I(e)}else L()},[P,I,L,N]);return Se(()=>(O.current=!0,D.current&&(D.current=!1,R(!0,`entering`)),()=>{O.current=!1,P()}),[P,R]),Se(()=>{if(!O.current)return;let e=E.current;t?e!==`entering`&&e!==`entered`&&R(!1,`entering`):e===`entering`||e===`entered`?R(!1,`exiting`):e===`exited`&&o&&(E.current=`unmounted`,T(`unmounted`))},[t,w,o,R]),Se(()=>{if(w===`unmounted`||A.current===`unmounted`){A.current=w;return}let e=A.current!==w;e&&(A.current=w);let t=N.current;w===`entering`?(e&&t.onEntering?.(j.current),k.current===null&&E.current===w&&ee(`entered`,`entering`)):w===`exiting`?(e&&t.onExiting?.(),k.current===null&&E.current===w&&ee(`exited`,`exiting`)):w===`entered`&&e?t.onEntered?.(j.current):w===`exited`&&e&&t.onExited?.()},[N,ee,w]),w===`unmounted`?null:(0,d.jsx)(ca.Provider,{value:null,children:b(w,x)})}process.env.NODE_ENV!==`production`&&(Sa.propTypes={addEndListener:z.default.func,appear:z.default.bool,children:z.default.func.isRequired,enter:z.default.bool,exit:z.default.bool,getAutoTimeout:z.default.func,in:z.default.bool,mountOnEnter:z.default.bool,nodeRef:z.default.shape({current:(e,t)=>e[t]==null?null:typeof e[t]!=`object`||e[t].nodeType!==1?Error(`Expected prop '${t}' to be of type Element`):null}).isRequired,onEnter:z.default.func,onEntered:z.default.func,onEntering:z.default.func,onExit:z.default.func,onExited:z.default.func,onExiting:z.default.func,reduceMotion:z.default.bool,timeout:z.default.oneOfType([z.default.number,z.default.shape({appear:z.default.number,enter:z.default.number,exit:z.default.number})]),unmountOnExit:z.default.bool});var Ca=`(prefers-reduced-motion: reduce)`,wa=0,Ta=`0ms`,Ea=()=>{},Da=()=>!1,Oa=()=>!0,ka=()=>Ea;function Aa(e){let[t,n]=u.useState(()=>({enabled:e,matches:e?null:!1})),r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),Se(()=>{let r=t=>{n(n=>n.enabled===e&&n.matches===t?n:{enabled:e,matches:t})};if(!e){t.enabled&&r(!1);return}if(typeof window>`u`||typeof window.matchMedia!=`function`){r(!1);return}let i=window.matchMedia(Ca),a=()=>{r(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),r}var ja={...u}.useSyncExternalStore;function Ma(e){let t=e?Oa:Da,[n,r]=u.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[Da,ka];let t=window.matchMedia(Ca);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return ja(r,n,t)}var Na=ja===void 0?Aa:Ma;function Pa(e,t){let n=Na(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return u.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:wa,delay:Ta}:e}}),[r])}var Fa=ae,Ia={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},La={opacity:0,visibility:`hidden`},Ra=u.forwardRef(function(e,t){let n=Gi(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,disablePrefersReducedMotion:s=!1,easing:c,in:l,onEnter:f,onEntered:p,onEntering:m,onExit:h,onExited:g,onExiting:_,style:v,timeout:y=r,...b}=e,x=Pa(n.motion.reducedMotion,s),S=u.useRef(null),C=Fa(S,oe(o),t),w=ha(S,m),T=ha(S,(e,t)=>{x.shouldReduceMotion||da(e);let r=_a({style:v,timeout:y,easing:c},{mode:`enter`}),i=x.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create(`opacity`,{duration:i.duration,easing:r.easing,delay:i.delay}),f&&f(e,t)}),E=ha(S,p),D=ha(S,_),O=ha(S,e=>{let t=_a({style:v,timeout:y,easing:c},{mode:`exit`}),r=x.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create(`opacity`,{duration:r.duration,easing:t.easing,delay:r.delay}),h&&h(e)}),k=ha(S,e=>{e.style.transition=``,g&&g(e)});return(0,d.jsx)(Sa,{appear:a,in:l,nodeRef:S,onEnter:T,onEntered:E,onEntering:w,onExit:O,onExited:k,onExiting:D,addEndListener:i?e=>{i(S.current,e)}:void 0,reduceMotion:x.shouldReduceMotion,timeout:y,...b,children:(e,{ownerState:t,...n})=>{let r=ga(e,l,Ia,La,v,o.props.style);return u.cloneElement(o,{style:r,ref:C,...n})}})});process.env.NODE_ENV!==`production`&&(Ra.propTypes={addEndListener:z.default.func,appear:z.default.bool,children:ie.isRequired,disablePrefersReducedMotion:z.default.bool,easing:z.default.oneOfType([z.default.shape({enter:z.default.string,exit:z.default.string}),z.default.string]),in:z.default.bool,onEnter:z.default.func,onEntered:z.default.func,onEntering:z.default.func,onExit:z.default.func,onExited:z.default.func,onExiting:z.default.func,style:z.default.object,timeout:z.default.oneOfType([z.default.number,z.default.shape({appear:z.default.number,enter:z.default.number,exit:z.default.number})])});function za(e){return Nn(`MuiBackdrop`,e)}Pn(`MuiBackdrop`,[`root`,`invisible`]);var Ba=e=>{let{classes:t,invisible:n}=e;return B({root:[`root`,n&&`invisible`]},za,t)},Va=Q(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),Ha=u.forwardRef(function(e,t){let n=Yi({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,slotProps:c={},slots:l={},transitionDuration:u,...f}=n,p={...n,component:a,invisible:o},m=Ba(p),h={component:a,slots:l,slotProps:c},[g,_]=ra(`root`,{elementType:Va,externalForwardedProps:h,className:L(m.root,i),ownerState:p}),[v,y]=ra(`transition`,{elementType:Ra,externalForwardedProps:h,ownerState:p});return(0,d.jsx)(v,{in:s,timeout:u,...f,...y,children:(0,d.jsx)(g,{..._,ref:t,children:r})})});process.env.NODE_ENV!==`production`&&(Ha.propTypes={children:z.default.node,classes:z.default.object,className:z.default.string,component:z.default.elementType,invisible:z.default.bool,open:z.default.bool.isRequired,slotProps:z.default.shape({root:z.default.oneOfType([z.default.func,z.default.object]),transition:z.default.oneOfType([z.default.func,z.default.object])}),slots:z.default.shape({root:z.default.elementType,transition:z.default.elementType}),sx:z.default.oneOfType([z.default.arrayOf(z.default.oneOfType([z.default.func,z.default.object,z.default.bool])),z.default.func,z.default.object]),transitionDuration:z.default.oneOfType([z.default.number,z.default.shape({appear:z.default.number,enter:z.default.number,exit:z.default.number})])});function Ua(e){let t=u.useRef(e);return Se(()=>{t.current=e}),u.useRef((...e)=>(0,t.current)(...e)).current}function Wa(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Ga(e){return typeof e==`function`?e():e}function Ka(e){return e?e.props.hasOwnProperty(`in`):!1}var qa=()=>{},Ja=new E;function Ya(e){let{container:t,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:o,onClose:s,open:c,rootRef:l}=e,d=u.useRef({}),f=u.useRef(null),p=u.useRef(null),m=u.useRef(null),h=ae(m,l),[_,v]=u.useState(!c),y=Ka(o),x=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(x=!1);let S=()=>g(f.current),C=()=>(d.current.modalRef=m.current,d.current.mount=f.current,d.current),w=()=>{Ja.mount(C(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},T=Ua(()=>{let e=Ga(t)||S().body;Ja.add(C(),e),m.current&&w()}),E=()=>Ja.isTopModal(C()),D=Ua(e=>{f.current=e,e&&(p.current=e,c&&E()?w():m.current&&b(m.current,x))}),O=u.useCallback(()=>{Ja.remove(C(),x)},[x]);u.useEffect(()=>()=>{O()},[O]),u.useEffect(()=>{c?T():(!y||!r)&&O()},[c,O,y,r,T]);let k=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!E())&&(t.stopPropagation(),s&&s(t,`escapeKeyDown`))},A=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=ea(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:k(r),ref:h}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:A(t),open:c}},getTransitionProps:()=>({onEnter:Wa(()=>{v(!1),i&&i()},o?.props.onEnter??qa),onExited:Wa(()=>{v(!0),a&&a(),r&&O()},o?.props.onExited??qa)}),rootRef:h,portalRef:D,portalContainer:!c&&y&&!_?p.current??t:t,isTopModal:E,exited:_,hasTransition:y}}function Xa(e){return Nn(`MuiModal`,e)}Pn(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Za=e=>{let{open:t,exited:n,classes:r}=e;return B({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Xa,r)},Qa=Q(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ji(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),$a=Q(Ha,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),eo=u.forwardRef(function(e,t){let n=Yi({name:`MuiModal`,props:e}),{classes:r,className:i,closeAfterTransition:a=!1,children:o,container:s,component:c,disableAutoFocus:l=!1,disableEnforceFocus:f=!1,disablePortal:p=!1,disableRestoreFocus:m=!1,disableScrollLock:h=!1,hideBackdrop:g=!1,keepMounted:_=!1,onClose:v,onTransitionEnter:y,onTransitionExited:b,open:x,slotProps:S={},slots:C={},theme:w,...T}=n,E={...n,closeAfterTransition:a,disableAutoFocus:l,disableEnforceFocus:f,disablePortal:p,disableRestoreFocus:m,disableScrollLock:h,hideBackdrop:g,keepMounted:_},{getRootProps:D,getBackdropProps:O,getTransitionProps:k,portalRef:A,portalContainer:j,isTopModal:M,exited:N,hasTransition:P}=Ya({...E,rootRef:t}),F={...E,exited:N},ee=Za(F),I={};if(o.props.tabIndex===void 0&&(I.tabIndex=`-1`),P){let{onEnter:e,onExited:t}=k();I.onEnter=e,I.onExited=t}let R={slots:C,slotProps:S},[te,z]=ra(`root`,{ref:t,elementType:Qa,externalForwardedProps:{...R,...T,component:c},getSlotProps:D,ownerState:F,className:L(i,ee?.root,!F.open&&F.exited&&ee?.hidden)}),[ne,re]=ra(`backdrop`,{elementType:$a,externalForwardedProps:R,shouldForwardComponentProp:!0,getSlotProps:e=>O({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:ee?.backdrop,ownerState:F});return!_&&!x&&(!P||N)?null:(0,d.jsx)(Te,{ref:A,container:j,disablePortal:p,children:(0,d.jsxs)(te,{...z,children:[g?null:(0,d.jsx)(ne,{...re}),(0,d.jsx)(xe,{disableEnforceFocus:f,disableAutoFocus:l,disableRestoreFocus:m,isEnabled:M,open:x,children:u.cloneElement(o,I)})]})})});process.env.NODE_ENV!==`production`&&(eo.propTypes={children:ie.isRequired,classes:z.default.object,className:z.default.string,closeAfterTransition:z.default.bool,component:z.default.elementType,container:z.default.oneOfType([R,z.default.func]),disableAutoFocus:z.default.bool,disableEnforceFocus:z.default.bool,disablePortal:z.default.bool,disableRestoreFocus:z.default.bool,disableScrollLock:z.default.bool,hideBackdrop:z.default.bool,keepMounted:z.default.bool,onClose:z.default.func,onTransitionEnter:z.default.func,onTransitionExited:z.default.func,open:z.default.bool.isRequired,slotProps:z.default.shape({backdrop:z.default.oneOfType([z.default.func,z.default.object]),root:z.default.oneOfType([z.default.func,z.default.object])}),slots:z.default.shape({backdrop:z.default.elementType,root:z.default.elementType}),sx:z.default.oneOfType([z.default.arrayOf(z.default.oneOfType([z.default.func,z.default.object,z.default.bool])),z.default.func,z.default.object])});function to(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`NaN`:Number.isFinite(e)?e===Math.floor(e)?`number`:`float`:`Infinity`;case`object`:return e===null?`null`:e.constructor.name;default:return t}}function no(e,t,n,r){let i=e[t];if(i==null||!Number.isInteger(i)){let e=to(i);return RangeError(`Invalid ${r} \`${t}\` of type \`${e}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function ro(e,t,n,r){return e[t]===void 0?null:no(e,t,n,r)}function io(){return null}ro.isRequired=no,io.isRequired=io;var ao=process.env.NODE_ENV===`production`?io:ro;function oo(e){return Nn(`MuiPaper`,e)}Pn(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var so=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return B({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},oo,i)},co=Q(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(Ji(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...ya(e,`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),lo=u.forwardRef(function(e,t){let n=Yi({props:e,name:`MuiPaper`}),r=Gi(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},f=so(u);return process.env.NODE_ENV!==`production`&&r.shadows[o]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${o}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${o}]\` is defined.`].join(`
|
|
33
|
-
`)),(0,d.jsx)(co,{as:a,ownerState:u,className:L(f.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${cr(`#fff`,Ti(o))}, ${cr(`#fff`,Ti(o))})`}},...l.style}})});process.env.NODE_ENV!==`production`&&(lo.propTypes={children:z.default.node,classes:z.default.object,className:z.default.string,component:z.default.elementType,elevation:te(ao,e=>{let{elevation:t,variant:n}=e;return t>0&&n===`outlined`?Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:z.default.bool,style:z.default.object,sx:z.default.oneOfType([z.default.arrayOf(z.default.oneOfType([z.default.func,z.default.object,z.default.bool])),z.default.func,z.default.object]),variant:z.default.oneOfType([z.default.oneOf([`elevation`,`outlined`]),z.default.string])});var uo=Ie,fo=br,po=Ua,mo=z.default.oneOfType([z.default.func,z.default.object]);function ho(e){let{prototype:t={}}=e;return!!t.isReactComponent}function go(e,t,n,r,i){let a=e[t],o=i||t;if(a==null||typeof window>`u`)return null;let s;return typeof a==`function`&&!ho(a)&&(s=`Did you accidentally provide a plain function component instead?`),a===u.Fragment&&(s=`Did you accidentally provide a React.Fragment instead?`),s===void 0?null:Error(`Invalid ${r} \`${o}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`)}var _o=te(z.default.elementType,go);function vo(e){try{return e.matches(`:focus-visible`)}catch{process.env.NODE_ENV!==`production`&&!window.navigator.userAgent.includes(`jsdom`)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.",`Some components rely on this feature to work properly.`].join(`
|
|
34
|
-
`))}return!1}function yo(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return u.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}var bo={};function xo(e){let{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:i=!1,disabled:a,type:o,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:l,stopEventPropagation:d=!1,onBeforeKeyDown:f,onBeforeKeyUp:p}=e,m=u.useRef(null),h=l===!0,g=yo({focusableWhenDisabled:h,disabled:a,isNativeButton:t,tabIndex:c});process.env.NODE_ENV!==`production`&&u.useEffect(()=>{let e=m.current;if(e==null)return;let t=e.tagName===`BUTTON`;if(n!==void 0){n&&!t&&console.error("MUI: A component that acts as a button expected a native <button> because the `nativeButton` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Render a real <button> or set `nativeButton` to `false`."),!n&&t&&console.error("MUI: A component that acts as a button expected a non-<button> because the `nativeButton` prop is false. Rendering a <button> keeps native behavior while additionally applies non-native attributes and handlers, which can add unintended extra attributes (such as `role` or `aria-disabled`). Render a non-<button> such as <div>, or set `nativeButton` to `true`.");return}i||(r&&!t&&console.error("MUI: A component rendering a native <button> resolved to a non-<button> element, but `nativeButton={false}` was not specified and the resolved root is a non-<button>. When rendering a custom component, set `nativeButton={false}` explicitly or render a <button> element."),!r&&t&&console.error("MUI: A component that acts as a non-native button resolved to a native <button> element, but `nativeButton={true}` was not specified. When rendering a custom component, set `nativeButton={true}` explicitly or render a non-<button> element."))},[i,r,n]);let _=u.useCallback(()=>{let e=m.current;return e==null?t:e.tagName===`BUTTON`||!!(e.tagName===`A`&&e.href)},[t]),v=u.useMemo(()=>{let e=h?{}:{tabIndex:a?-1:c};return t?(e.type=o===void 0&&!s?`button`:o,h||(e.disabled=a)):(e.role=`button`,!h&&a&&(e[`aria-disabled`]=a)),h?{...e,...g}:e},[a,h,g,s,t,c,o]);return{getButtonProps:u.useCallback((e=bo)=>{let{onClick:t,onKeyDown:n,onKeyUp:r,...i}=e,o=e=>{if(d&&e.stopPropagation(),a){e.preventDefault();return}t?.(e)},s=e=>{if(h&&g.onKeyDown(e),!a&&(f?.(e),n?.(e),!(e.target!==e.currentTarget||_()))){if(e.key===` `){e.preventDefault();return}e.key===`Enter`&&(e.preventDefault(),e.currentTarget.click())}},c=e=>{a||(p?.(e),r?.(e),e.target===e.currentTarget&&!_()&&e.key===` `&&!e.defaultPrevented&&e.currentTarget.click())};return{...v,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[v,a,h,g,_,f,p,d]),rootRef:m}}var So=class e{static create(){return new e}static use(){let t=aa(e.create).current,[n,r]=u.useState(!1);return t.shouldMount=n,t.setShouldMount=r,u.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=wo(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function Co(){return So.use()}function wo(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var To=[];function Eo(e){u.useEffect(e,To)}var Do=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function Oo(){let e=aa(Do.create).current;return Eo(e.disposeEffect),e}function ko(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[f,p]=u.useState(!1),m=Oo(),h=u.useRef(!1),g=u.useRef(c);g.current=c;let _=c!=null,v=L(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},b=L(n.child,f&&n.childLeaving,r&&n.childPulsate);return!s&&!f&&p(!0),u.useEffect(()=>{!s&&_?h.current||(h.current=!0,m.start(l,()=>{h.current=!1,g.current?.()})):(h.current=!1,m.clear())},[m,_,s,l]),(0,d.jsx)(`span`,{className:v,style:y,children:(0,d.jsx)(`span`,{className:b})})}process.env.NODE_ENV!==`production`&&(ko.propTypes={classes:z.default.object.isRequired,className:z.default.string,in:z.default.bool,onExited:z.default.func,pulsate:z.default.bool,rippleSize:z.default.number,rippleX:z.default.number,rippleY:z.default.number,timeout:z.default.number.isRequired});var $=Pn(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),Ao=550,jo={},Mo=[],No=()=>{};function Po(e,t){let n=new Set(t),r=new Map,i=[];for(let t of e)n.has(t)?i.length>0&&(r.set(t,i),i=[]):i.push(t);let a=[];for(let e of t){let t=r.get(e);t&&a.push(...t),a.push(e)}return a.push(...i),a}function Fo({event:e,element:t,center:n}){let r=t?t.getBoundingClientRect():{width:0,height:0,left:0,top:0},i,a;if(n||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)i=Math.round(r.width/2),a=Math.round(r.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-r.left),a=Math.round(n-r.top)}let o;if(n)o=Math.sqrt((2*r.width**2+r.height**2)/3),o%2==0&&(o+=1);else{let e=Math.max(Math.abs((t?t.clientWidth:0)-i),i)*2+2,n=Math.max(Math.abs((t?t.clientHeight:0)-a),a)*2+2;o=Math.sqrt(e**2+n**2)}return{rippleX:i,rippleY:a,rippleSize:o}}var Io=m.keyframes`
|
|
35
|
-
0% {
|
|
36
|
-
transform: scale(0);
|
|
37
|
-
opacity: 0.1;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
100% {
|
|
41
|
-
transform: scale(1);
|
|
42
|
-
opacity: 0.3;
|
|
43
|
-
}
|
|
44
|
-
`,Lo=m.keyframes`
|
|
45
|
-
0% {
|
|
46
|
-
opacity: 1;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
100% {
|
|
50
|
-
opacity: 0;
|
|
51
|
-
}
|
|
52
|
-
`,Ro=m.keyframes`
|
|
53
|
-
0% {
|
|
54
|
-
transform: scale(1);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
50% {
|
|
58
|
-
transform: scale(0.92);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
100% {
|
|
62
|
-
transform: scale(1);
|
|
63
|
-
}
|
|
64
|
-
`;function zo(e){if(e.motion.reducedMotion===`always`)return null;let t=m.css`
|
|
65
|
-
&.${$.rippleVisible} {
|
|
66
|
-
animation-name: ${Io};
|
|
67
|
-
animation-duration: ${Ao}ms;
|
|
68
|
-
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&.${$.ripplePulsate} {
|
|
72
|
-
animation-duration: ${e.transitions.duration.shorter}ms;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
& .${$.childLeaving} {
|
|
76
|
-
animation-name: ${Lo};
|
|
77
|
-
animation-duration: ${Ao}ms;
|
|
78
|
-
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
& .${$.childPulsate} {
|
|
82
|
-
animation-name: ${Ro};
|
|
83
|
-
animation-duration: 2500ms;
|
|
84
|
-
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
85
|
-
animation-iteration-count: infinite;
|
|
86
|
-
animation-delay: 200ms;
|
|
87
|
-
}
|
|
88
|
-
`;return e.motion.reducedMotion===`system`?m.css`
|
|
89
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
90
|
-
${t}
|
|
91
|
-
}
|
|
92
|
-
`:t}var Bo=Q(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Vo=Q(ko,{name:`MuiTouchRipple`,slot:`Ripple`})`
|
|
93
|
-
opacity: 0;
|
|
94
|
-
position: absolute;
|
|
95
|
-
|
|
96
|
-
&.${$.rippleVisible} {
|
|
97
|
-
opacity: 0.3;
|
|
98
|
-
transform: scale(1);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/*
|
|
102
|
-
* Order matters: 'child', 'childLeaving' and 'childPulsate' apply to the same
|
|
103
|
-
* element with equal specificity, so the later rule wins. 'child' must come
|
|
104
|
-
* before 'childLeaving' so the leaving 'opacity: 0' takes precedence. A focus
|
|
105
|
-
* (pulsate) ripple keeps 'pulsateKeyframe' (no opacity animation) on exit, so
|
|
106
|
-
* it relies on this static 'opacity: 0' to disappear on blur instead of
|
|
107
|
-
* lingering until removal.
|
|
108
|
-
*/
|
|
109
|
-
& .${$.child} {
|
|
110
|
-
opacity: 1;
|
|
111
|
-
display: block;
|
|
112
|
-
width: 100%;
|
|
113
|
-
height: 100%;
|
|
114
|
-
border-radius: 50%;
|
|
115
|
-
background-color: currentColor;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
& .${$.childLeaving} {
|
|
119
|
-
opacity: 0;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
& .${$.childPulsate} {
|
|
123
|
-
position: absolute;
|
|
124
|
-
/* @noflip */
|
|
125
|
-
left: 0px;
|
|
126
|
-
top: 0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
${({theme:e})=>zo(e)}
|
|
130
|
-
`,Ho=u.forwardRef(function(e,t){let n=Yi({props:e,name:`MuiTouchRipple`}),r=Pa(Gi().motion.reducedMotion,!1),{center:i=!1,classes:a=jo,className:o,...s}=n,[c,l]=u.useState({items:Mo,order:Mo}),f=c.items,p=u.useRef(0),m=u.useRef(null),h=u.useRef(!1);Eo(()=>(h.current=!0,()=>{h.current=!1})),u.useEffect(()=>{m.current&&=(m.current(),null)},[f]);let g=u.useRef(!1),_=Oo(),v=u.useRef(null),y=u.useRef(null),b=po(e=>{h.current&&l(t=>{let n=t.items.filter(t=>t.key!==e);return{items:n,order:Po(t.order.filter(t=>t!==e),n.filter(e=>!e.exiting).map(e=>e.key))}})}),x=po(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e,o=p.current;p.current+=1,l(e=>{let a=[...e.items,{key:o,pulsate:t,rippleX:n,rippleY:r,rippleSize:i,exiting:!1}];return{items:a,order:Po(e.order,a.filter(e=>!e.exiting).map(e=>e.key))}}),m.current=a}),S=po((e=jo,t=jo,n=No)=>{let{pulsate:r=!1,center:a=i||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&g.current){g.current=!1;return}e?.type===`touchstart`&&(g.current=!0);let{rippleX:s,rippleY:c,rippleSize:l}=Fo({event:e,element:o?null:y.current,center:a});e?.touches?v.current===null&&(v.current=()=>{x({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})},_.start(80,()=>{v.current&&=(v.current(),null)})):x({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})}),C=po(()=>{S(jo,{pulsate:!0})}),w=po((e,t)=>{if(_.clear(),e?.type===`touchend`&&v.current){v.current(),v.current=null,_.start(0,()=>{w(e,t)});return}v.current=null,l(e=>{let t=e.items.findIndex(e=>!e.exiting);if(t===-1)return e;let n=e.items.slice();return n[t]={...n[t],exiting:!0},{items:n,order:Po(e.order,n.filter(e=>!e.exiting).map(e=>e.key))}}),m.current=t});u.useImperativeHandle(t,()=>({pulsate:C,start:S,stop:w}),[C,S,w]);let T=new Map(f.map(e=>[e.key,e])),E=c.order.map(e=>T.get(e)).filter(Boolean);return(0,d.jsx)(Bo,{className:L($.root,a.root,o),ref:y,...s,children:E.map(e=>(0,d.jsx)(Vo,{classes:{ripple:L(a.ripple,$.ripple),rippleVisible:L(a.rippleVisible,$.rippleVisible),ripplePulsate:L(a.ripplePulsate,$.ripplePulsate),child:L(a.child,$.child),childLeaving:L(a.childLeaving,$.childLeaving),childPulsate:L(a.childPulsate,$.childPulsate)},timeout:r.shouldReduceMotion?0:Ao,pulsate:e.pulsate,rippleX:e.rippleX,rippleY:e.rippleY,rippleSize:e.rippleSize,in:!e.exiting,onExited:()=>b(e.key)},e.key))})});process.env.NODE_ENV!==`production`&&(Ho.propTypes={center:z.default.bool,classes:z.default.object,className:z.default.string});function Uo(e){return Nn(`MuiButtonBase`,e)}var Wo=Pn(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),Go=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,suppressFocusVisible:i,classes:a}=e,o=B({root:[`root`,t&&`disabled`,n&&!i&&`focusVisible`]},Uo,a);return n&&!i&&r&&(o.root+=` ${r}`),o},Ko=Q(`button`,{name:`MuiButtonBase`,slot:`Root`})({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${Wo.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),qo=u.forwardRef(function(e,t){let n=Yi({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:f=!1,focusRipple:p=!1,focusVisibleClassName:m,focusableWhenDisabled:h,suppressFocusVisible:g=!1,internalNativeButton:_,LinkComponent:v=`a`,nativeButton:y,onBlur:b,onClick:x,onContextMenu:S,onDragLeave:C,onFocus:w,onFocusVisible:T,onKeyDown:E,onKeyUp:D,onMouseDown:O,onMouseLeave:k,onMouseUp:A,onTouchEnd:j,onTouchMove:M,onTouchStart:N,tabIndex:P=0,TouchRippleProps:F,touchRippleRef:ee,type:I,...R}=n,te=!!(R.href||R.to),z=!!R.formAction,ne=s;ne===`button`&&te&&(ne=v);let re=typeof ne==`string`?ne===`button`:_??!1,ie=y??re,B=Co(),ae=Fa(B.ref,ee),[oe,se]=u.useState(!1);(c||g)&&oe&&se(!1);let ce=po(e=>{p&&!e.repeat&&oe&&e.key===` `&&B.stop(e,()=>{B.start(e)})}),le=po(e=>{p&&e.key===` `&&oe&&!e.defaultPrevented&&B.stop(e,()=>{B.pulsate(e)})}),{getButtonProps:ue,rootRef:de}=xo({nativeButton:ie,nativeButtonProp:y,internalNativeButton:re,allowInferredHostMismatch:te||typeof ne==`string`,disabled:c,type:I,hasFormAction:z,tabIndex:P,onBeforeKeyDown:ce,onBeforeKeyUp:le}),{onClick:fe,onKeyDown:pe,onKeyUp:me,...he}=ue({onClick:x,onKeyDown:E,onKeyUp:D});u.useImperativeHandle(r,()=>({focusVisible:()=>{se(!0),de.current.focus()}}),[de]);let ge=B.shouldMount&&!l&&!c;u.useEffect(()=>{oe&&p&&!l&&B.pulsate()},[l,p,oe,B]);let _e=Jo(B,`start`,O,f),ve=Jo(B,`stop`,S,f),ye=Jo(B,`stop`,C,f),be=Jo(B,`stop`,A,f),xe=Jo(B,`stop`,e=>{oe&&e.preventDefault(),k&&k(e)},f),Se=Jo(B,`start`,N,f),Ce=Jo(B,`stop`,j,f),we=Jo(B,`stop`,M,f),Te=Jo(B,`stop`,e=>{vo(e.target)||se(!1),b&&b(e)},!1),Ee=po(e=>{de.current||=e.currentTarget,!g&&vo(e.target)&&(se(!0),T&&T(e)),w&&w(e)}),De={};te&&(De.tabIndex=c?-1:P,c&&(De[`aria-disabled`]=c),De.type=I);let Oe=Fa(t,de),ke={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:f,focusRipple:p,suppressFocusVisible:g,tabIndex:P,focusVisible:oe},Ae=Go(ke);return(0,d.jsxs)(Ko,{as:ne,className:L(Ae.root,o),ownerState:ke,onBlur:Te,onClick:fe,onContextMenu:ve,onFocus:Ee,onKeyDown:pe,onKeyUp:me,onMouseDown:_e,onMouseLeave:xe,onMouseUp:be,onDragLeave:ye,onTouchEnd:Ce,onTouchMove:we,onTouchStart:Se,ref:Oe,...te?De:he,...R,children:[a,ge?(0,d.jsx)(Ho,{ref:ae,center:i,...F}):null]})});function Jo(e,t,n,r=!1){return po(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!==`production`&&(qo.propTypes={action:mo,centerRipple:z.default.bool,children:z.default.node,classes:z.default.object,className:z.default.string,component:_o,disabled:z.default.bool,disableRipple:z.default.bool,disableTouchRipple:z.default.bool,focusRipple:z.default.bool,focusVisibleClassName:z.default.string,formAction:z.default.oneOfType([z.default.func,z.default.string]),href:z.default.any,LinkComponent:z.default.elementType,nativeButton:z.default.bool,onBlur:z.default.func,onClick:z.default.func,onContextMenu:z.default.func,onDragLeave:z.default.func,onFocus:z.default.func,onFocusVisible:z.default.func,onKeyDown:z.default.func,onKeyUp:z.default.func,onMouseDown:z.default.func,onMouseLeave:z.default.func,onMouseUp:z.default.func,onTouchEnd:z.default.func,onTouchMove:z.default.func,onTouchStart:z.default.func,sx:z.default.oneOfType([z.default.arrayOf(z.default.oneOfType([z.default.func,z.default.object,z.default.bool])),z.default.func,z.default.object]),tabIndex:z.default.number,TouchRippleProps:z.default.object,touchRippleRef:z.default.oneOfType([z.default.func,z.default.shape({current:z.default.shape({pulsate:z.default.func.isRequired,start:z.default.func.isRequired,stop:z.default.func.isRequired})})]),type:z.default.string});function Yo(e){return typeof e.main==`string`}function Xo(e,t=[]){if(!Yo(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function Zo(e=[]){return([,t])=>t&&Xo(t,e)}function Qo(e){return Nn(`MuiCircularProgress`,e)}Pn(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDisableShrink`]);var $o=44,es=!1,ts=!1,ns=m.keyframes`
|
|
131
|
-
0% {
|
|
132
|
-
transform: rotate(0deg);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
100% {
|
|
136
|
-
transform: rotate(360deg);
|
|
137
|
-
}
|
|
138
|
-
`,rs=m.keyframes`
|
|
139
|
-
0% {
|
|
140
|
-
stroke-dasharray: 1px, 200px;
|
|
141
|
-
stroke-dashoffset: 0;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
50% {
|
|
145
|
-
stroke-dasharray: 100px, 200px;
|
|
146
|
-
stroke-dashoffset: -15px;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
100% {
|
|
150
|
-
stroke-dasharray: 1px, 200px;
|
|
151
|
-
stroke-dashoffset: -126px;
|
|
152
|
-
}
|
|
153
|
-
`,is=typeof ns==`string`?null:m.css`
|
|
154
|
-
animation: ${ns} 1.4s linear infinite;
|
|
155
|
-
`,as=typeof rs==`string`?null:m.css`
|
|
156
|
-
animation: ${rs} 1.4s ease-in-out infinite;
|
|
157
|
-
`,os=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return B({root:[`root`,n,`color${uo(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,i&&`circleDisableShrink`]},Qo,t)},ss=Q(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${uo(n.color)}`]]}})(Ji(({theme:e})=>{let t=va(e,{animation:`none`});return{display:`inline-block`,variants:[{props:{variant:`determinate`},style:{...ya(e,`transform`)}},{props:{variant:`indeterminate`},style:is||{animation:`${ns} 1.4s linear infinite`}},...t?[{props:{variant:`indeterminate`},style:t}]:[],...Object.entries(e.palette).filter(Zo()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}})),cs=Q(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),ls=Q(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(Ji(({theme:e})=>{let t=va(e,{animation:`none`});return{stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{...ya(e,`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:as||{animation:`${rs} 1.4s ease-in-out infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:t}]:[]]}})),us=Q(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(Ji(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),ds=u.forwardRef(function(e,t){let n=Yi({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,min:s,max:c,size:l=40,style:u,thickness:f=3.6,value:p=n.min??0,variant:m=`indeterminate`,...h}=n;process.env.NODE_ENV!==`production`&&!es&&m===`indeterminate`&&(s!==void 0||c!==void 0)&&(console.warn("MUI: You have provided the `min` or `max` props with an 'indeterminate' variant. These props will have no effect."),es=!0);let g=s??0,_=c??100,v={...n,color:i,disableShrink:a,size:l,thickness:f,value:p,variant:m,enableTrackSlot:o},y=os(v),b={},x={},S={};if(m===`determinate`){let e=2*Math.PI*(($o-f)/2);process.env.NODE_ENV!==`production`&&!ts&&(p<g||p>_||g>=_)&&(console.error(`MUI: The min, max, and value props in CircularProgress should be numbers where min < max and min <= value <= max. Received min=${g}, max=${_}, value=${p}.`),ts=!0);let t=_-g;b.strokeDasharray=e.toFixed(3),b.strokeDashoffset=t>0?`${((_-p)/t*e).toFixed(3)}px`:`${e.toFixed(3)}px`,x.transform=`rotate(-90deg)`,S[`aria-valuenow`]=p,S[`aria-valuemin`]=g,S[`aria-valuemax`]=_}return(0,d.jsx)(ss,{className:L(y.root,r),style:{width:l,height:l,...x,...u},ownerState:v,ref:t,role:`progressbar`,...S,...h,children:(0,d.jsxs)(cs,{className:y.svg,ownerState:v,viewBox:`${$o/2} ${$o/2} ${$o} ${$o}`,children:[o?(0,d.jsx)(us,{className:y.track,ownerState:v,cx:$o,cy:$o,r:($o-f)/2,fill:`none`,strokeWidth:f,"aria-hidden":`true`}):null,(0,d.jsx)(ls,{className:y.circle,style:b,ownerState:v,cx:$o,cy:$o,r:($o-f)/2,fill:`none`,strokeWidth:f})]})})});process.env.NODE_ENV!==`production`&&(ds.propTypes={classes:z.default.object,className:z.default.string,color:z.default.oneOfType([z.default.oneOf([`inherit`,`primary`,`secondary`,`error`,`info`,`success`,`warning`]),z.default.string]),disableShrink:te(z.default.bool,e=>e.disableShrink&&e.variant&&e.variant!==`indeterminate`?Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:z.default.bool,max:z.default.number,min:z.default.number,size:z.default.oneOfType([z.default.number,z.default.string]),style:z.default.object,sx:z.default.oneOfType([z.default.arrayOf(z.default.oneOfType([z.default.func,z.default.object,z.default.bool])),z.default.func,z.default.object]),thickness:z.default.number,value:z.default.number,variant:z.default.oneOf([`determinate`,`indeterminate`])});function fs(e){return Nn(`MuiButton`,e)}var ps=Pn(`MuiButton`,`root.text.outlined.contained.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),ms=u.createContext({});process.env.NODE_ENV!==`production`&&(ms.displayName=`ButtonGroupContext`);var hs=u.createContext(void 0);process.env.NODE_ENV!==`production`&&(hs.displayName=`ButtonGroupButtonContext`);var gs=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=B({root:[`root`,o&&`loading`,a,`size${uo(i)}`,`color${uo(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${uo(s)}`],startIcon:[`icon`,`startIcon`],endIcon:[`icon`,`endIcon`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},fs,c);return{...c,...l}},_s=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],vs=Q(qo,{shouldForwardProp:e=>qi(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${uo(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ji(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,...ya(e,[`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${ps.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ps.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ps.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${ps.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(Zo()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${ps.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${ps.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{...ya(e,[`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${ps.loading}`]:{color:`transparent`}}}]}})),ys=Q(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:`inherit`,alignItems:`center`,marginRight:8,marginLeft:-4,"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`},variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{...ya(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},..._s]})),bs=Q(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{...ya(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},..._s]})),xs=Q(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),Ss=Q(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),Cs=u.forwardRef(function(e,t){let n=u.useContext(ms),r=u.useContext(hs),i=Yi({props:Zn(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:m,focusVisibleClassName:h,fullWidth:g=!1,id:_,loading:v=null,loadingIndicator:y,loadingPosition:b=`center`,size:x=`medium`,startIcon:S,type:C,variant:w=`text`,...T}=i,E=fo(_),D=y??(0,d.jsx)(ds,{"aria-labelledby":E,color:`inherit`,size:16}),O={...i,color:o,component:s,disabled:l,disableElevation:f,disableFocusRipple:p,fullWidth:g,loading:v,loadingIndicator:D,loadingPosition:b,size:x,type:C,variant:w},k=gs(O),A=(S||v&&b===`start`)&&(0,d.jsx)(ys,{className:k.startIcon,ownerState:O,children:S||(0,d.jsx)(Ss,{className:k.loadingIconPlaceholder,ownerState:O})}),j=(m||v&&b===`end`)&&(0,d.jsx)(bs,{className:k.endIcon,ownerState:O,children:m||(0,d.jsx)(Ss,{className:k.loadingIconPlaceholder,ownerState:O})}),M=r||``,N=typeof v==`boolean`?(0,d.jsx)(`span`,{className:k.loadingWrapper,style:{display:`contents`},children:v&&(0,d.jsx)(xs,{className:k.loadingIndicator,ownerState:O,children:D})}):null,{root:P,...F}=k;return(0,d.jsxs)(vs,{ownerState:O,className:L(n.className,k.root,c,M),component:s,disabled:l||v,focusRipple:!p,focusVisibleClassName:L(k.focusVisible,h),ref:t,internalNativeButton:!0,type:C,id:v?E:_,...T,classes:F,children:[A,b!==`end`&&N,a,b===`end`&&N,j]})});process.env.NODE_ENV!==`production`&&(Cs.propTypes={children:z.default.node,classes:z.default.object,className:z.default.string,color:z.default.oneOfType([z.default.oneOf([`inherit`,`primary`,`secondary`,`success`,`error`,`info`,`warning`]),z.default.string]),component:z.default.elementType,disabled:z.default.bool,disableElevation:z.default.bool,disableFocusRipple:z.default.bool,disableRipple:z.default.bool,endIcon:z.default.node,focusVisibleClassName:z.default.string,fullWidth:z.default.bool,href:z.default.string,id:z.default.string,loading:z.default.bool,loadingIndicator:z.default.node,loadingPosition:z.default.oneOf([`center`,`end`,`start`]),size:z.default.oneOfType([z.default.oneOf([`small`,`medium`,`large`]),z.default.string]),startIcon:z.default.node,sx:z.default.oneOfType([z.default.arrayOf(z.default.oneOfType([z.default.func,z.default.object,z.default.bool])),z.default.func,z.default.object]),type:z.default.string,variant:z.default.oneOfType([z.default.oneOf([`contained`,`outlined`,`text`]),z.default.string])});var ws=`idle`,Ts=`Image loaded`,Es=`Image cropped`,Ds=`Image zoomed`,Os=`RESET`,ks=`CROP`,As=`SKIP_CROP`,js=`UNDO_CROP`,Ms=`ZOOM`,Ns=`UNDO_ZOOM`,Ps=(0,h.createMachine)({id:`identify`,initial:ws,states:{[ws]:{on:{LOAD_IMAGE:Ts}},[Ts]:{on:{[Os]:ws,[ks]:Es,[As]:Es}},[Es]:{on:{[Os]:ws,[js]:Ts,[Ms]:Ds}},[Ds]:{on:{[Os]:ws,[Ns]:Es}}}});function Fs(e){function t(){e.actor.send({type:Os}),e.closeModal(!0)()}function n(){e.actor.send({type:js}),e.closeModal(!1)()}return(0,d.jsx)(eo,{"data-testid":`ModalImageCropped.Modal`,sx:{display:`flex`,justifyContent:`center`,alignItems:`center`},open:e.modalIsOpen,onClose:e.closeModal,children:(0,d.jsxs)(lo,{elevation:1,sx:{width:240,minWidth:240,borderRight:1,borderColor:`divider`,borderRadius:0,backgroundColor:`lightgreen`},children:[(0,d.jsx)(`h3`,{children:`image cropped`}),(0,d.jsxs)(`div`,{className:`modal-content`,children:[(0,d.jsx)(`span`,{className:`close`,onClick:e.closeModal(!0),children:`×`}),(0,d.jsx)(`p`,{children:`Modal from image`}),(0,d.jsx)(Cs,{type:`button`,onClick:t,children:`close`}),(0,d.jsx)(Cs,{type:`button`,onClick:n,children:`Undo crop`})]})]})})}function Is(e){let[t,n]=(0,u.useState)(!1);function r(){e.actor.send({type:Os}),e.closeModal()}function i(){e.actor.send({type:ks}),n(!0)}return(0,d.jsx)(eo,{"data-testid":`ModalImageLoaded.Modal`,sx:{display:`flex`,justifyContent:`center`,alignItems:`center`},open:e.modalIsOpen,onClose:e.closeModal,children:(0,d.jsxs)(lo,{elevation:1,sx:{width:240,minWidth:240,borderRight:1,borderColor:`divider`,borderRadius:0,backgroundColor:`lightblue`},children:[(0,d.jsx)(Fs,{actor:e.actor,modalIsOpen:t,closeModal:t=>()=>{t&&e.closeModal(),n(!1)}}),(0,d.jsx)(`h3`,{children:`image loaded`}),(0,d.jsxs)(`div`,{className:`modal-content`,children:[(0,d.jsx)(`span`,{className:`close`,onClick:e.closeModal,children:`×`}),(0,d.jsx)(`p`,{children:`Modal from image`}),(0,d.jsx)(Cs,{type:`button`,onClick:i,children:`crop`}),(0,d.jsx)(Cs,{type:`button`,onClick:r,children:`close`})]})]})})}exports.ACTION_CROP=ks,exports.ACTION_RESET=Os,exports.ACTION_SKIP_CROP=As,exports.ACTION_UNDO_CROP=js,exports.ACTION_UNDO_ZOOM=Ns,exports.ACTION_ZOOM=Ms,exports.ModalImageCropped=Fs,exports.ModalImageLoaded=Is,exports.identifyMachine=Ps;
|
|
File without changes
|