@js-smart/react-kit 5.13.0 → 5.14.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.
Files changed (4) hide show
  1. package/index.d.ts +0 -3
  2. package/index.js +22 -23
  3. package/index.mjs +2115 -4278
  4. package/package.json +43 -43
package/index.js CHANGED
@@ -1,23 +1,23 @@
1
- "use strict";var co=Object.defineProperty;var lo=(e,t,n)=>t in e?co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Le=(e,t,n)=>lo(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),R=require("@mui/material"),ae=require("react"),uo=require("@emotion/styled"),fo=require("@emotion/react"),kr=require("react-router-dom"),rn=require("date-fns");function ho(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ve=ho(ae),Pn=e=>e,mo=()=>{let e=Pn;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Pn}}},go=mo();function Oe(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function je(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Oe(7));return e.charAt(0).toUpperCase()+e.slice(1)}function po(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ft={exports:{}},dt={exports:{}},q={};/** @license React v16.13.1
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),k=require("@mui/material"),be=require("react"),Ur=require("@emotion/styled"),Yr=require("@emotion/react"),Sr=require("react-router-dom"),xt=require("date-fns");function Wr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const he=Wr(be),Bt=e=>e,Hr=()=>{let e=Bt;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Bt}}},qr=Hr();function Ce(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function $e(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ce(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Gr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ye={exports:{}},We={exports:{}},U={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var Nn;function yo(){if(Nn)return q;Nn=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,u=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function N(b){if(typeof b=="object"&&b!==null){var A=b.$$typeof;switch(A){case t:switch(b=b.type,b){case l:case f:case r:case s:case o:case h:return b;default:switch(b=b&&b.$$typeof,b){case a:case d:case g:case p:case i:return b;default:return A}}case n:return A}}}function k(b){return N(b)===f}return q.AsyncMode=l,q.ConcurrentMode=f,q.ContextConsumer=a,q.ContextProvider=i,q.Element=t,q.ForwardRef=d,q.Fragment=r,q.Lazy=g,q.Memo=p,q.Portal=n,q.Profiler=s,q.StrictMode=o,q.Suspense=h,q.isAsyncMode=function(b){return k(b)||N(b)===l},q.isConcurrentMode=k,q.isContextConsumer=function(b){return N(b)===a},q.isContextProvider=function(b){return N(b)===i},q.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},q.isForwardRef=function(b){return N(b)===d},q.isFragment=function(b){return N(b)===r},q.isLazy=function(b){return N(b)===g},q.isMemo=function(b){return N(b)===p},q.isPortal=function(b){return N(b)===n},q.isProfiler=function(b){return N(b)===s},q.isStrictMode=function(b){return N(b)===o},q.isSuspense=function(b){return N(b)===h},q.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===f||b===s||b===o||b===h||b===m||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===p||b.$$typeof===i||b.$$typeof===a||b.$$typeof===d||b.$$typeof===_||b.$$typeof===E||b.$$typeof===C||b.$$typeof===u)},q.typeOf=N,q}var G={};/** @license React v16.13.1
8
+ */var Dt;function Kr(){if(Dt)return U;Dt=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function D(b){if(typeof b=="object"&&b!==null){var $=b.$$typeof;switch($){case t:switch(b=b.type,b){case u:case d:case n:case i:case o:case p:return b;default:switch(b=b&&b.$$typeof,b){case c:case m:case g:case C:case s:return b;default:return $}}case r:return $}}}function w(b){return D(b)===d}return U.AsyncMode=u,U.ConcurrentMode=d,U.ContextConsumer=c,U.ContextProvider=s,U.Element=t,U.ForwardRef=m,U.Fragment=n,U.Lazy=g,U.Memo=C,U.Portal=r,U.Profiler=i,U.StrictMode=o,U.Suspense=p,U.isAsyncMode=function(b){return w(b)||D(b)===u},U.isConcurrentMode=w,U.isContextConsumer=function(b){return D(b)===c},U.isContextProvider=function(b){return D(b)===s},U.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},U.isForwardRef=function(b){return D(b)===m},U.isFragment=function(b){return D(b)===n},U.isLazy=function(b){return D(b)===g},U.isMemo=function(b){return D(b)===C},U.isPortal=function(b){return D(b)===r},U.isProfiler=function(b){return D(b)===i},U.isStrictMode=function(b){return D(b)===o},U.isSuspense=function(b){return D(b)===p},U.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===d||b===i||b===o||b===p||b===h||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===C||b.$$typeof===s||b.$$typeof===c||b.$$typeof===m||b.$$typeof===x||b.$$typeof===_||b.$$typeof===j||b.$$typeof===l)},U.typeOf=D,U}var Y={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var $n;function _o(){return $n||($n=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,u=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function N(x){return typeof x=="string"||typeof x=="function"||x===r||x===f||x===s||x===o||x===h||x===m||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===p||x.$$typeof===i||x.$$typeof===a||x.$$typeof===d||x.$$typeof===_||x.$$typeof===E||x.$$typeof===C||x.$$typeof===u)}function k(x){if(typeof x=="object"&&x!==null){var be=x.$$typeof;switch(be){case t:var ut=x.type;switch(ut){case l:case f:case r:case s:case o:case h:return ut;default:var On=ut&&ut.$$typeof;switch(On){case a:case d:case g:case p:case i:return On;default:return be}}case n:return be}}}var b=l,A=f,w=a,$=i,te=t,U=d,B=r,c=g,O=p,T=n,I=s,M=o,ie=h,ue=!1;function Me(x){return ue||(ue=!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.")),v(x)||k(x)===l}function v(x){return k(x)===f}function P(x){return k(x)===a}function V(x){return k(x)===i}function W(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function D(x){return k(x)===d}function z(x){return k(x)===r}function L(x){return k(x)===g}function F(x){return k(x)===p}function K(x){return k(x)===n}function J(x){return k(x)===s}function H(x){return k(x)===o}function fe(x){return k(x)===h}G.AsyncMode=b,G.ConcurrentMode=A,G.ContextConsumer=w,G.ContextProvider=$,G.Element=te,G.ForwardRef=U,G.Fragment=B,G.Lazy=c,G.Memo=O,G.Portal=T,G.Profiler=I,G.StrictMode=M,G.Suspense=ie,G.isAsyncMode=Me,G.isConcurrentMode=v,G.isContextConsumer=P,G.isContextProvider=V,G.isElement=W,G.isForwardRef=D,G.isFragment=z,G.isLazy=L,G.isMemo=F,G.isPortal=K,G.isProfiler=J,G.isStrictMode=H,G.isSuspense=fe,G.isValidElementType=N,G.typeOf=k}()),G}var In;function wr(){return In||(In=1,process.env.NODE_ENV==="production"?dt.exports=yo():dt.exports=_o()),dt.exports}/*
15
+ */var Lt;function Qr(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function D(E){return typeof E=="string"||typeof E=="function"||E===n||E===d||E===i||E===o||E===p||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===g||E.$$typeof===C||E.$$typeof===s||E.$$typeof===c||E.$$typeof===m||E.$$typeof===x||E.$$typeof===_||E.$$typeof===j||E.$$typeof===l)}function w(E){if(typeof E=="object"&&E!==null){var me=E.$$typeof;switch(me){case t:var Ue=E.type;switch(Ue){case u:case d:case n:case i:case o:case p:return Ue;default:var jt=Ue&&Ue.$$typeof;switch(jt){case c:case m:case g:case C:case s:return jt;default:return me}}case r:return me}}}var b=u,$=d,Q=c,re=s,oe=t,de=m,X=n,a=g,T=C,S=r,A=i,R=o,ne=p,ie=!1;function _e(E){return ie||(ie=!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.")),y(E)||w(E)===u}function y(E){return w(E)===d}function O(E){return w(E)===c}function B(E){return w(E)===s}function M(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function I(E){return w(E)===m}function L(E){return w(E)===n}function P(E){return w(E)===g}function N(E){return w(E)===C}function V(E){return w(E)===r}function W(E){return w(E)===i}function F(E){return w(E)===o}function ae(E){return w(E)===p}Y.AsyncMode=b,Y.ConcurrentMode=$,Y.ContextConsumer=Q,Y.ContextProvider=re,Y.Element=oe,Y.ForwardRef=de,Y.Fragment=X,Y.Lazy=a,Y.Memo=T,Y.Portal=S,Y.Profiler=A,Y.StrictMode=R,Y.Suspense=ne,Y.isAsyncMode=_e,Y.isConcurrentMode=y,Y.isContextConsumer=O,Y.isContextProvider=B,Y.isElement=M,Y.isForwardRef=I,Y.isFragment=L,Y.isLazy=P,Y.isMemo=N,Y.isPortal=V,Y.isProfiler=W,Y.isStrictMode=F,Y.isSuspense=ae,Y.isValidElementType=D,Y.typeOf=w}()),Y}var Vt;function Cr(){return Vt||(Vt=1,process.env.NODE_ENV==="production"?We.exports=Kr():We.exports=Qr()),We.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
- */var Ut,Rn;function bo(){if(Rn)return Ut;Rn=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},a=0;a<10;a++)i["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(l.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(d){f[d]=d}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ut=o()?Object.assign:function(s,i){for(var a,l=r(s),f,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var h in a)t.call(a,h)&&(l[h]=a[h]);if(e){f=e(a);for(var m=0;m<f.length;m++)n.call(a,f[m])&&(l[f[m]]=a[f[m]])}}return l},Ut}var zt,Dn;function gn(){if(Dn)return zt;Dn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zt=e,zt}var Kt,jn;function Tr(){return jn||(jn=1,Kt=Function.call.bind(Object.prototype.hasOwnProperty)),Kt}var Ht,Mn;function So(){if(Mn)return Ht;Mn=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=gn(),n={},r=Tr();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(s,i,a,l,f){if(process.env.NODE_ENV!=="production"){for(var d in s)if(r(s,d)){var h;try{if(typeof s[d]!="function"){var m=Error((l||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}h=s[d](i,d,l,a,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var p=f?f():"";e("Failed "+a+" type: "+h.message+(p??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ht=o,Ht}var Yt,Ln;function vo(){if(Ln)return Yt;Ln=1;var e=wr(),t=bo(),n=gn(),r=Tr(),o=So(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return Yt=function(a,l){var f=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(v){var P=v&&(f&&v[f]||v[d]);if(typeof P=="function")return P}var m="<<anonymous>>",p={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:C(),arrayOf:N,element:k(),elementType:b(),instanceOf:A,node:U(),objectOf:$,oneOf:w,oneOfType:te,shape:c,exact:O};function g(v,P){return v===P?v!==0||1/v===1/P:v!==v&&P!==P}function u(v,P){this.message=v,this.data=P&&typeof P=="object"?P:{},this.stack=""}u.prototype=Error.prototype;function _(v){if(process.env.NODE_ENV!=="production")var P={},V=0;function W(z,L,F,K,J,H,fe){if(K=K||m,H=H||F,fe!==n){if(l){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var be=K+":"+F;!P[be]&&V<3&&(s("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+K+"`. 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."),P[be]=!0,V++)}}return L[F]==null?z?L[F]===null?new u("The "+J+" `"+H+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new u("The "+J+" `"+H+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:v(L,F,K,J,H)}var D=W.bind(null,!1);return D.isRequired=W.bind(null,!0),D}function E(v){function P(V,W,D,z,L,F){var K=V[W],J=M(K);if(J!==v){var H=ie(K);return new u("Invalid "+z+" `"+L+"` of type "+("`"+H+"` supplied to `"+D+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return _(P)}function C(){return _(i)}function N(v){function P(V,W,D,z,L){if(typeof v!="function")return new u("Property `"+L+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var F=V[W];if(!Array.isArray(F)){var K=M(F);return new u("Invalid "+z+" `"+L+"` of type "+("`"+K+"` supplied to `"+D+"`, expected an array."))}for(var J=0;J<F.length;J++){var H=v(F,J,D,z,L+"["+J+"]",n);if(H instanceof Error)return H}return null}return _(P)}function k(){function v(P,V,W,D,z){var L=P[V];if(!a(L)){var F=M(L);return new u("Invalid "+D+" `"+z+"` of type "+("`"+F+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return _(v)}function b(){function v(P,V,W,D,z){var L=P[V];if(!e.isValidElementType(L)){var F=M(L);return new u("Invalid "+D+" `"+z+"` of type "+("`"+F+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return _(v)}function A(v){function P(V,W,D,z,L){if(!(V[W]instanceof v)){var F=v.name||m,K=Me(V[W]);return new u("Invalid "+z+" `"+L+"` of type "+("`"+K+"` supplied to `"+D+"`, expected ")+("instance of `"+F+"`."))}return null}return _(P)}function w(v){if(!Array.isArray(v))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.")),i;function P(V,W,D,z,L){for(var F=V[W],K=0;K<v.length;K++)if(g(F,v[K]))return null;var J=JSON.stringify(v,function(fe,x){var be=ie(x);return be==="symbol"?String(x):x});return new u("Invalid "+z+" `"+L+"` of value `"+String(F)+"` "+("supplied to `"+D+"`, expected one of "+J+"."))}return _(P)}function $(v){function P(V,W,D,z,L){if(typeof v!="function")return new u("Property `"+L+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var F=V[W],K=M(F);if(K!=="object")return new u("Invalid "+z+" `"+L+"` of type "+("`"+K+"` supplied to `"+D+"`, expected an object."));for(var J in F)if(r(F,J)){var H=v(F,J,D,z,L+"."+J,n);if(H instanceof Error)return H}return null}return _(P)}function te(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var P=0;P<v.length;P++){var V=v[P];if(typeof V!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ue(V)+" at index "+P+"."),i}function W(D,z,L,F,K){for(var J=[],H=0;H<v.length;H++){var fe=v[H],x=fe(D,z,L,F,K,n);if(x==null)return null;x.data&&r(x.data,"expectedType")&&J.push(x.data.expectedType)}var be=J.length>0?", expected one of type ["+J.join(", ")+"]":"";return new u("Invalid "+F+" `"+K+"` supplied to "+("`"+L+"`"+be+"."))}return _(W)}function U(){function v(P,V,W,D,z){return T(P[V])?null:new u("Invalid "+D+" `"+z+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return _(v)}function B(v,P,V,W,D){return new u((v||"React class")+": "+P+" type `"+V+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function c(v){function P(V,W,D,z,L){var F=V[W],K=M(F);if(K!=="object")return new u("Invalid "+z+" `"+L+"` of type `"+K+"` "+("supplied to `"+D+"`, expected `object`."));for(var J in v){var H=v[J];if(typeof H!="function")return B(D,z,L,J,ie(H));var fe=H(F,J,D,z,L+"."+J,n);if(fe)return fe}return null}return _(P)}function O(v){function P(V,W,D,z,L){var F=V[W],K=M(F);if(K!=="object")return new u("Invalid "+z+" `"+L+"` of type `"+K+"` "+("supplied to `"+D+"`, expected `object`."));var J=t({},V[W],v);for(var H in J){var fe=v[H];if(r(v,H)&&typeof fe!="function")return B(D,z,L,H,ie(fe));if(!fe)return new u("Invalid "+z+" `"+L+"` key `"+H+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(V[W],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(v),null," "));var x=fe(F,H,D,z,L+"."+H,n);if(x)return x}return null}return _(P)}function T(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(T);if(v===null||a(v))return!0;var P=h(v);if(P){var V=P.call(v),W;if(P!==v.entries){for(;!(W=V.next()).done;)if(!T(W.value))return!1}else for(;!(W=V.next()).done;){var D=W.value;if(D&&!T(D[1]))return!1}}else return!1;return!0;default:return!1}}function I(v,P){return v==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function M(v){var P=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":I(P,v)?"symbol":P}function ie(v){if(typeof v>"u"||v===null)return""+v;var P=M(v);if(P==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return P}function ue(v){var P=ie(v);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function Me(v){return!v.constructor||!v.constructor.name?m:v.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Yt}var qt,Bn;function ko(){if(Bn)return qt;Bn=1;var e=gn();function t(){}function n(){}return n.resetWarningCache=t,qt=function(){function r(i,a,l,f,d,h){if(h!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},qt}var Wn;function wo(){if(Wn)return ft.exports;if(Wn=1,process.env.NODE_ENV!=="production"){var e=wr(),t=!0;ft.exports=vo()(e.isElement,t)}else ft.exports=ko()();return ft.exports}var To=wo();const Y=po(To);function Er(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Er(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ar(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Er(e))&&(r&&(r+=" "),r+=t);return r}function Eo(e,t,n=void 0){const r={};for(const o in e){const s=e[o];let i="",a=!0;for(let l=0;l<s.length;l+=1){const f=s[l];f&&(i+=(a===!0?"":" ")+t(f),a=!1,n&&n[f]&&(i+=" "+n[f]))}r[o]=i}return r}var ht={exports:{}},Z={};/**
19
+ */var dt,Ft;function Xr(){if(Ft)return dt;Ft=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},c=0;c<10;c++)s["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(s).map(function(m){return s[m]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(m){d[m]=m}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return dt=o()?Object.assign:function(i,s){for(var c,u=n(i),d,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){d=e(c);for(var h=0;h<d.length;h++)r.call(c,d[h])&&(u[d[h]]=c[d[h]])}}return u},dt}var mt,zt;function $t(){if(zt)return mt;zt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return mt=e,mt}var pt,Ut;function xr(){return Ut||(Ut=1,pt=Function.call.bind(Object.prototype.hasOwnProperty)),pt}var ht,Yt;function Jr(){if(Yt)return ht;Yt=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=$t(),r={},n=xr();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,c,u,d){if(process.env.NODE_ENV!=="production"){for(var m in i)if(n(i,m)){var p;try{if(typeof i[m]!="function"){var h=Error((u||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=i[m](s,m,u,c,null,t)}catch(g){p=g}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var C=d?d():"";e("Failed "+c+" type: "+p.message+(C??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ht=o,ht}var gt,Wt;function Zr(){if(Wt)return gt;Wt=1;var e=Cr(),t=Xr(),r=$t(),n=xr(),o=Jr(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function s(){return null}return gt=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function p(y){var O=y&&(d&&y[d]||y[m]);if(typeof O=="function")return O}var h="<<anonymous>>",C={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:j(),arrayOf:D,element:w(),elementType:b(),instanceOf:$,node:de(),objectOf:re,oneOf:Q,oneOfType:oe,shape:a,exact:T};function g(y,O){return y===O?y!==0||1/y===1/O:y!==y&&O!==O}function l(y,O){this.message=y,this.data=O&&typeof O=="object"?O:{},this.stack=""}l.prototype=Error.prototype;function x(y){if(process.env.NODE_ENV!=="production")var O={},B=0;function M(L,P,N,V,W,F,ae){if(V=V||h,F=F||N,ae!==r){if(u){var E=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw E.name="Invariant Violation",E}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var me=V+":"+N;!O[me]&&B<3&&(i("You are manually calling a React.PropTypes validation function for the `"+F+"` prop on `"+V+"`. 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."),O[me]=!0,B++)}}return P[N]==null?L?P[N]===null?new l("The "+W+" `"+F+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new l("The "+W+" `"+F+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:y(P,N,V,W,F)}var I=M.bind(null,!1);return I.isRequired=M.bind(null,!0),I}function _(y){function O(B,M,I,L,P,N){var V=B[M],W=R(V);if(W!==y){var F=ne(V);return new l("Invalid "+L+" `"+P+"` of type "+("`"+F+"` supplied to `"+I+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return x(O)}function j(){return x(s)}function D(y){function O(B,M,I,L,P){if(typeof y!="function")return new l("Property `"+P+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var N=B[M];if(!Array.isArray(N)){var V=R(N);return new l("Invalid "+L+" `"+P+"` of type "+("`"+V+"` supplied to `"+I+"`, expected an array."))}for(var W=0;W<N.length;W++){var F=y(N,W,I,L,P+"["+W+"]",r);if(F instanceof Error)return F}return null}return x(O)}function w(){function y(O,B,M,I,L){var P=O[B];if(!c(P)){var N=R(P);return new l("Invalid "+I+" `"+L+"` of type "+("`"+N+"` supplied to `"+M+"`, expected a single ReactElement."))}return null}return x(y)}function b(){function y(O,B,M,I,L){var P=O[B];if(!e.isValidElementType(P)){var N=R(P);return new l("Invalid "+I+" `"+L+"` of type "+("`"+N+"` supplied to `"+M+"`, expected a single ReactElement type."))}return null}return x(y)}function $(y){function O(B,M,I,L,P){if(!(B[M]instanceof y)){var N=y.name||h,V=_e(B[M]);return new l("Invalid "+L+" `"+P+"` of type "+("`"+V+"` supplied to `"+I+"`, expected ")+("instance of `"+N+"`."))}return null}return x(O)}function Q(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function O(B,M,I,L,P){for(var N=B[M],V=0;V<y.length;V++)if(g(N,y[V]))return null;var W=JSON.stringify(y,function(ae,E){var me=ne(E);return me==="symbol"?String(E):E});return new l("Invalid "+L+" `"+P+"` of value `"+String(N)+"` "+("supplied to `"+I+"`, expected one of "+W+"."))}return x(O)}function re(y){function O(B,M,I,L,P){if(typeof y!="function")return new l("Property `"+P+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var N=B[M],V=R(N);if(V!=="object")return new l("Invalid "+L+" `"+P+"` of type "+("`"+V+"` supplied to `"+I+"`, expected an object."));for(var W in N)if(n(N,W)){var F=y(N,W,I,L,P+"."+W,r);if(F instanceof Error)return F}return null}return x(O)}function oe(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var O=0;O<y.length;O++){var B=y[O];if(typeof B!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ie(B)+" at index "+O+"."),s}function M(I,L,P,N,V){for(var W=[],F=0;F<y.length;F++){var ae=y[F],E=ae(I,L,P,N,V,r);if(E==null)return null;E.data&&n(E.data,"expectedType")&&W.push(E.data.expectedType)}var me=W.length>0?", expected one of type ["+W.join(", ")+"]":"";return new l("Invalid "+N+" `"+V+"` supplied to "+("`"+P+"`"+me+"."))}return x(M)}function de(){function y(O,B,M,I,L){return S(O[B])?null:new l("Invalid "+I+" `"+L+"` supplied to "+("`"+M+"`, expected a ReactNode."))}return x(y)}function X(y,O,B,M,I){return new l((y||"React class")+": "+O+" type `"+B+"."+M+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function a(y){function O(B,M,I,L,P){var N=B[M],V=R(N);if(V!=="object")return new l("Invalid "+L+" `"+P+"` of type `"+V+"` "+("supplied to `"+I+"`, expected `object`."));for(var W in y){var F=y[W];if(typeof F!="function")return X(I,L,P,W,ne(F));var ae=F(N,W,I,L,P+"."+W,r);if(ae)return ae}return null}return x(O)}function T(y){function O(B,M,I,L,P){var N=B[M],V=R(N);if(V!=="object")return new l("Invalid "+L+" `"+P+"` of type `"+V+"` "+("supplied to `"+I+"`, expected `object`."));var W=t({},B[M],y);for(var F in W){var ae=y[F];if(n(y,F)&&typeof ae!="function")return X(I,L,P,F,ne(ae));if(!ae)return new l("Invalid "+L+" `"+P+"` key `"+F+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(B[M],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(y),null," "));var E=ae(N,F,I,L,P+"."+F,r);if(E)return E}return null}return x(O)}function S(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every(S);if(y===null||c(y))return!0;var O=p(y);if(O){var B=O.call(y),M;if(O!==y.entries){for(;!(M=B.next()).done;)if(!S(M.value))return!1}else for(;!(M=B.next()).done;){var I=M.value;if(I&&!S(I[1]))return!1}}else return!1;return!0;default:return!1}}function A(y,O){return y==="symbol"?!0:O?O["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&O instanceof Symbol:!1}function R(y){var O=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":A(O,y)?"symbol":O}function ne(y){if(typeof y>"u"||y===null)return""+y;var O=R(y);if(O==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return O}function ie(y){var O=ne(y);switch(O){case"array":case"object":return"an "+O;case"boolean":case"date":case"regexp":return"a "+O;default:return O}}function _e(y){return!y.constructor||!y.constructor.name?h:y.constructor.name}return C.checkPropTypes=o,C.resetWarningCache=o.resetWarningCache,C.PropTypes=C,C},gt}var yt,Ht;function en(){if(Ht)return yt;Ht=1;var e=$t();function t(){}function r(){}return r.resetWarningCache=t,yt=function(){function n(s,c,u,d,m,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},yt}var qt;function tn(){if(qt)return Ye.exports;if(qt=1,process.env.NODE_ENV!=="production"){var e=Cr(),t=!0;Ye.exports=Zr()(e.isElement,t)}else Ye.exports=en()();return Ye.exports}var rn=tn();const z=Gr(rn);function Er(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Er(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Tr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Er(e))&&(n&&(n+=" "),n+=t);return n}function nn(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let s="",c=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(s+=(c===!0?"":" ")+t(d),c=!1,r&&r[d]&&(s+=" "+r[d]))}n[o]=s}return n}var He={exports:{}},G={};/**
21
21
  * @license React
22
22
  * react-is.production.js
23
23
  *
@@ -25,7 +25,7 @@ Valid keys: `+JSON.stringify(Object.keys(v),null," "));var x=fe(F,H,D,z,L+"."+H
25
25
  *
26
26
  * This source code is licensed under the MIT license found in the
27
27
  * LICENSE file in the root directory of this source tree.
28
- */var Fn;function Ao(){if(Fn)return Z;Fn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function g(u){if(typeof u=="object"&&u!==null){var _=u.$$typeof;switch(_){case e:switch(u=u.type,u){case n:case o:case r:case l:case f:case m:return u;default:switch(u=u&&u.$$typeof,u){case i:case a:case h:case d:return u;case s:return u;default:return _}}case t:return _}}}return Z.ContextConsumer=s,Z.ContextProvider=i,Z.Element=e,Z.ForwardRef=a,Z.Fragment=n,Z.Lazy=h,Z.Memo=d,Z.Portal=t,Z.Profiler=o,Z.StrictMode=r,Z.Suspense=l,Z.SuspenseList=f,Z.isContextConsumer=function(u){return g(u)===s},Z.isContextProvider=function(u){return g(u)===i},Z.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===e},Z.isForwardRef=function(u){return g(u)===a},Z.isFragment=function(u){return g(u)===n},Z.isLazy=function(u){return g(u)===h},Z.isMemo=function(u){return g(u)===d},Z.isPortal=function(u){return g(u)===t},Z.isProfiler=function(u){return g(u)===o},Z.isStrictMode=function(u){return g(u)===r},Z.isSuspense=function(u){return g(u)===l},Z.isSuspenseList=function(u){return g(u)===f},Z.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===n||u===o||u===r||u===l||u===f||typeof u=="object"&&u!==null&&(u.$$typeof===h||u.$$typeof===d||u.$$typeof===i||u.$$typeof===s||u.$$typeof===a||u.$$typeof===p||u.getModuleId!==void 0)},Z.typeOf=g,Z}var ee={};/**
28
+ */var Gt;function on(){if(Gt)return G;Gt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),C=Symbol.for("react.client.reference");function g(l){if(typeof l=="object"&&l!==null){var x=l.$$typeof;switch(x){case e:switch(l=l.type,l){case r:case o:case n:case u:case d:case h:return l;default:switch(l=l&&l.$$typeof,l){case s:case c:case p:case m:return l;case i:return l;default:return x}}case t:return x}}}return G.ContextConsumer=i,G.ContextProvider=s,G.Element=e,G.ForwardRef=c,G.Fragment=r,G.Lazy=p,G.Memo=m,G.Portal=t,G.Profiler=o,G.StrictMode=n,G.Suspense=u,G.SuspenseList=d,G.isContextConsumer=function(l){return g(l)===i},G.isContextProvider=function(l){return g(l)===s},G.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===e},G.isForwardRef=function(l){return g(l)===c},G.isFragment=function(l){return g(l)===r},G.isLazy=function(l){return g(l)===p},G.isMemo=function(l){return g(l)===m},G.isPortal=function(l){return g(l)===t},G.isProfiler=function(l){return g(l)===o},G.isStrictMode=function(l){return g(l)===n},G.isSuspense=function(l){return g(l)===u},G.isSuspenseList=function(l){return g(l)===d},G.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===o||l===n||l===u||l===d||typeof l=="object"&&l!==null&&(l.$$typeof===p||l.$$typeof===m||l.$$typeof===s||l.$$typeof===i||l.$$typeof===c||l.$$typeof===C||l.getModuleId!==void 0)},G.typeOf=g,G}var K={};/**
29
29
  * @license React
30
30
  * react-is.development.js
31
31
  *
@@ -33,23 +33,23 @@ Valid keys: `+JSON.stringify(Object.keys(v),null," "));var x=fe(F,H,D,z,L+"."+H
33
33
  *
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */var Vn;function Co(){return Vn||(Vn=1,process.env.NODE_ENV!=="production"&&function(){function e(u){if(typeof u=="object"&&u!==null){var _=u.$$typeof;switch(_){case t:switch(u=u.type,u){case r:case s:case o:case f:case d:case p:return u;default:switch(u=u&&u.$$typeof,u){case a:case l:case m:case h:return u;case i:return u;default:return _}}case n:return _}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");ee.ContextConsumer=i,ee.ContextProvider=a,ee.Element=t,ee.ForwardRef=l,ee.Fragment=r,ee.Lazy=m,ee.Memo=h,ee.Portal=n,ee.Profiler=s,ee.StrictMode=o,ee.Suspense=f,ee.SuspenseList=d,ee.isContextConsumer=function(u){return e(u)===i},ee.isContextProvider=function(u){return e(u)===a},ee.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===t},ee.isForwardRef=function(u){return e(u)===l},ee.isFragment=function(u){return e(u)===r},ee.isLazy=function(u){return e(u)===m},ee.isMemo=function(u){return e(u)===h},ee.isPortal=function(u){return e(u)===n},ee.isProfiler=function(u){return e(u)===s},ee.isStrictMode=function(u){return e(u)===o},ee.isSuspense=function(u){return e(u)===f},ee.isSuspenseList=function(u){return e(u)===d},ee.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===r||u===s||u===o||u===f||u===d||typeof u=="object"&&u!==null&&(u.$$typeof===m||u.$$typeof===h||u.$$typeof===a||u.$$typeof===i||u.$$typeof===l||u.$$typeof===g||u.getModuleId!==void 0)},ee.typeOf=e}()),ee}var Un;function xo(){return Un||(Un=1,process.env.NODE_ENV==="production"?ht.exports=Ao():ht.exports=Co()),ht.exports}var kt=xo();function we(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Cr(e){if(ve.isValidElement(e)||kt.isValidElementType(e)||!we(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Cr(e[n])}),t}function he(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return we(e)&&we(t)&&Object.keys(t).forEach(o=>{ve.isValidElement(t[o])||kt.isValidElementType(t[o])?r[o]=t[o]:we(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&we(e[o])?r[o]=he(e[o],t[o],n):n.clone?r[o]=we(t[o])?Cr(t[o]):t[o]:r[o]=t[o]}),r}function tt(e,t){return t?he(e,t,{clone:!1}):e}const Ne=process.env.NODE_ENV!=="production"?Y.oneOfType([Y.number,Y.string,Y.object,Y.array]):{};function zn(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,a;const s=/min-width:\s*([0-9.]+)/;return+(((i=r.match(s))==null?void 0:i[1])||0)-+(((a=o.match(s))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const s=t[o];return delete r[o],r[o]=s,r},{...t}):t}function Oo(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Po(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
37
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Oe(18,`(${t})`));return null}const[,r,o]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(s)}function No(e){const t=(s,i)=>s.replace("@media",i?`@container ${i}`:"@container");function n(s,i){s.up=(...a)=>t(e.breakpoints.up(...a),i),s.down=(...a)=>t(e.breakpoints.down(...a),i),s.between=(...a)=>t(e.breakpoints.between(...a),i),s.only=(...a)=>t(e.breakpoints.only(...a),i),s.not=(...a)=>{const l=t(e.breakpoints.not(...a),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=s=>(n(r,s),r);return n(o),{...e,containerQueries:o}}const Pt={xs:0,sm:600,md:900,lg:1200,xl:1536},Kn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Pt[e]}px)`},$o={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Pt[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ee(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Kn;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||Kn;return Object.keys(t).reduce((i,a)=>{if(Oo(s.keys,a)){const l=Po(r.containerQueries?r:$o,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||Pt).includes(a)){const l=s.up(a);i[l]=n(t[a],a)}else{const l=a;i[l]=t[l]}return i},{})}return n(t)}function Io(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function Hn(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Nt(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function wt(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Nt(e,n)||r,t&&(o=t(o,r,e)),o}function se(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const a=i[t],l=i.theme,f=Nt(l,r)||{};return Ee(i,a,h=>{let m=wt(f,o,h);return h===m&&typeof h=="string"&&(m=wt(f,o,`${t}${h==="default"?"":je(h)}`,h)),n===!1?m:{[n]:m}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ne}:{},s.filterProps=[t],s}function Ro(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Do={m:"margin",p:"padding"},jo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mo=Ro(e=>{if(e.length>2)if(Yn[e])e=Yn[e];else return[e];const[t,n]=e.split(""),r=Do[t],o=jo[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),$t=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],It=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Lo=[...$t,...It];function at(e,t,n,r){const o=Nt(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s):Array.isArray(o)?s=>{if(typeof s=="string")return s;const i=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>o.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${i} > ${o.length-1}, you need to add the missing values.`].join(`
36
+ */var Kt;function an(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){function e(l){if(typeof l=="object"&&l!==null){var x=l.$$typeof;switch(x){case t:switch(l=l.type,l){case n:case i:case o:case d:case m:case C:return l;default:switch(l=l&&l.$$typeof,l){case c:case u:case h:case p:return l;case s:return l;default:return x}}case r:return x}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");K.ContextConsumer=s,K.ContextProvider=c,K.Element=t,K.ForwardRef=u,K.Fragment=n,K.Lazy=h,K.Memo=p,K.Portal=r,K.Profiler=i,K.StrictMode=o,K.Suspense=d,K.SuspenseList=m,K.isContextConsumer=function(l){return e(l)===s},K.isContextProvider=function(l){return e(l)===c},K.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===t},K.isForwardRef=function(l){return e(l)===u},K.isFragment=function(l){return e(l)===n},K.isLazy=function(l){return e(l)===h},K.isMemo=function(l){return e(l)===p},K.isPortal=function(l){return e(l)===r},K.isProfiler=function(l){return e(l)===i},K.isStrictMode=function(l){return e(l)===o},K.isSuspense=function(l){return e(l)===d},K.isSuspenseList=function(l){return e(l)===m},K.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===n||l===i||l===o||l===d||l===m||typeof l=="object"&&l!==null&&(l.$$typeof===h||l.$$typeof===p||l.$$typeof===c||l.$$typeof===s||l.$$typeof===u||l.$$typeof===g||l.getModuleId!==void 0)},K.typeOf=e}()),K}var Qt;function sn(){return Qt||(Qt=1,process.env.NODE_ENV==="production"?He.exports=on():He.exports=an()),He.exports}var Ke=sn();function ye(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Or(e){if(he.isValidElement(e)||Ke.isValidElementType(e)||!ye(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Or(e[r])}),t}function ce(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return ye(e)&&ye(t)&&Object.keys(t).forEach(o=>{he.isValidElement(t[o])||Ke.isValidElementType(t[o])?n[o]=t[o]:ye(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ye(e[o])?n[o]=ce(e[o],t[o],r):r.clone?n[o]=ye(t[o])?Or(t[o]):t[o]:n[o]=t[o]}),n}function Le(e,t){return t?ce(e,t,{clone:!1}):e}const Ee=process.env.NODE_ENV!=="production"?z.oneOfType([z.number,z.string,z.object,z.array]):{};function Xt(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{var s,c;const i=/min-width:\s*([0-9.]+)/;return+(((s=n.match(i))==null?void 0:s[1])||0)-+(((c=o.match(i))==null?void 0:c[1])||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function cn(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function ln(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
37
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ce(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function un(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function r(i,s){i.up=(...c)=>t(e.breakpoints.up(...c),s),i.down=(...c)=>t(e.breakpoints.down(...c),s),i.between=(...c)=>t(e.breakpoints.between(...c),s),i.only=(...c)=>t(e.breakpoints.only(...c),s),i.not=(...c)=>{const u=t(e.breakpoints.not(...c),s);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const Ze={xs:0,sm:600,md:900,lg:1200,xl:1536},Jt={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ze[e]}px)`},fn={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Ze[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function ve(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Jt;return t.reduce((s,c,u)=>(s[i.up(i.keys[u])]=r(t[u]),s),{})}if(typeof t=="object"){const i=n.breakpoints||Jt;return Object.keys(t).reduce((s,c)=>{if(cn(i.keys,c)){const u=ln(n.containerQueries?n:fn,c);u&&(s[u]=r(t[c],c))}else if(Object.keys(i.values||Ze).includes(c)){const u=i.up(c);s[u]=r(t[c],c)}else{const u=c;s[u]=t[u]}return s},{})}return r(t)}function dn(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Zt(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function et(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Qe(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=et(e,r)||n,t&&(o=t(o,n,e)),o}function te(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const c=s[t],u=s.theme,d=et(u,n)||{};return ve(s,c,p=>{let h=Qe(d,o,p);return p===h&&typeof p=="string"&&(h=Qe(d,o,`${t}${p==="default"?"":$e(p)}`,p)),r===!1?h:{[r]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ee}:{},i.filterProps=[t],i}function mn(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const pn={m:"margin",p:"padding"},hn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},er={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gn=mn(e=>{if(e.length>2)if(er[e])e=er[e];else return[e];const[t,r]=e.split(""),n=pn[t],o=hn[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),tt=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],yn=[...tt,...rt];function Fe(e,t,r,n){const o=et(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
38
38
  `)):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(`
39
- `)));const a=o[i];return s>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
40
- `)),()=>{})}function pn(e){return at(e,"spacing",8,"spacing")}function ct(e,t){return typeof t=="string"||t==null?t:e(t)}function Bo(e,t){return n=>e.reduce((r,o)=>(r[o]=ct(t,n),r),{})}function Wo(e,t,n,r){if(!t.includes(n))return null;const o=Mo(n),s=Bo(o,r),i=e[n];return Ee(e,i,s)}function xr(e,t){const n=pn(e.theme);return Object.keys(e).map(r=>Wo(e,t,r,n)).reduce(tt,{})}function re(e){return xr(e,$t)}re.propTypes=process.env.NODE_ENV!=="production"?$t.reduce((e,t)=>(e[t]=Ne,e),{}):{};re.filterProps=$t;function oe(e){return xr(e,It)}oe.propTypes=process.env.NODE_ENV!=="production"?It.reduce((e,t)=>(e[t]=Ne,e),{}):{};oe.filterProps=It;process.env.NODE_ENV!=="production"&&Lo.reduce((e,t)=>(e[t]=Ne,e),{});function Rt(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?tt(o,t[s](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ge(e){return typeof e!="number"?e:`${e}px solid`}function _e(e,t){return se({prop:e,themeKey:"borders",transform:t})}const Fo=_e("border",ge),Vo=_e("borderTop",ge),Uo=_e("borderRight",ge),zo=_e("borderBottom",ge),Ko=_e("borderLeft",ge),Ho=_e("borderColor"),Yo=_e("borderTopColor"),qo=_e("borderRightColor"),Go=_e("borderBottomColor"),Jo=_e("borderLeftColor"),Xo=_e("outline",ge),Qo=_e("outlineColor"),Dt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=at(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:ct(t,r)});return Ee(e,e.borderRadius,n)}return null};Dt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ne}:{};Dt.filterProps=["borderRadius"];Rt(Fo,Vo,Uo,zo,Ko,Ho,Yo,qo,Go,Jo,Dt,Xo,Qo);const jt=e=>{if(e.gap!==void 0&&e.gap!==null){const t=at(e.theme,"spacing",8,"gap"),n=r=>({gap:ct(t,r)});return Ee(e,e.gap,n)}return null};jt.propTypes=process.env.NODE_ENV!=="production"?{gap:Ne}:{};jt.filterProps=["gap"];const Mt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=at(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:ct(t,r)});return Ee(e,e.columnGap,n)}return null};Mt.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ne}:{};Mt.filterProps=["columnGap"];const Lt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=at(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:ct(t,r)});return Ee(e,e.rowGap,n)}return null};Lt.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ne}:{};Lt.filterProps=["rowGap"];const Zo=se({prop:"gridColumn"}),es=se({prop:"gridRow"}),ts=se({prop:"gridAutoFlow"}),ns=se({prop:"gridAutoColumns"}),rs=se({prop:"gridAutoRows"}),os=se({prop:"gridTemplateColumns"}),ss=se({prop:"gridTemplateRows"}),is=se({prop:"gridTemplateAreas"}),as=se({prop:"gridArea"});Rt(jt,Mt,Lt,Zo,es,ts,ns,rs,os,ss,is,as);function qe(e,t){return t==="grey"?t:e}const cs=se({prop:"color",themeKey:"palette",transform:qe}),ls=se({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qe}),us=se({prop:"backgroundColor",themeKey:"palette",transform:qe});Rt(cs,ls,us);function de(e){return e<=1&&e!==0?`${e*100}%`:e}const fs=se({prop:"width",transform:de}),yn=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,s,i,a,l;const r=((i=(s=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:i[n])||Pt[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:de(n)}};return Ee(e,e.maxWidth,t)}return null};yn.filterProps=["maxWidth"];const ds=se({prop:"minWidth",transform:de}),hs=se({prop:"height",transform:de}),ms=se({prop:"maxHeight",transform:de}),gs=se({prop:"minHeight",transform:de});se({prop:"size",cssProperty:"width",transform:de});se({prop:"size",cssProperty:"height",transform:de});const ps=se({prop:"boxSizing"});Rt(fs,yn,ds,hs,ms,gs,ps);const Bt={border:{themeKey:"borders",transform:ge},borderTop:{themeKey:"borders",transform:ge},borderRight:{themeKey:"borders",transform:ge},borderBottom:{themeKey:"borders",transform:ge},borderLeft:{themeKey:"borders",transform:ge},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ge},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Dt},color:{themeKey:"palette",transform:qe},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qe},backgroundColor:{themeKey:"palette",transform:qe},p:{style:oe},pt:{style:oe},pr:{style:oe},pb:{style:oe},pl:{style:oe},px:{style:oe},py:{style:oe},padding:{style:oe},paddingTop:{style:oe},paddingRight:{style:oe},paddingBottom:{style:oe},paddingLeft:{style:oe},paddingX:{style:oe},paddingY:{style:oe},paddingInline:{style:oe},paddingInlineStart:{style:oe},paddingInlineEnd:{style:oe},paddingBlock:{style:oe},paddingBlockStart:{style:oe},paddingBlockEnd:{style:oe},m:{style:re},mt:{style:re},mr:{style:re},mb:{style:re},ml:{style:re},mx:{style:re},my:{style:re},margin:{style:re},marginTop:{style:re},marginRight:{style:re},marginBottom:{style:re},marginLeft:{style:re},marginX:{style:re},marginY:{style:re},marginInline:{style:re},marginInlineStart:{style:re},marginInlineEnd:{style:re},marginBlock:{style:re},marginBlockStart:{style:re},marginBlockEnd:{style:re},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:jt},rowGap:{style:Lt},columnGap:{style:Mt},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:de},maxWidth:{style:yn},minWidth:{transform:de},height:{transform:de},maxHeight:{transform:de},minHeight:{transform:de},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ys(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function _s(e,t){return typeof e=="function"?e(t):e}function bs(){function e(n,r,o,s){const i={[n]:r,theme:o},a=s[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:f,transform:d,style:h}=a;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const m=Nt(o,f)||{};return h?h(i):Ee(i,r,g=>{let u=wt(m,d,g);return g===u&&typeof g=="string"&&(u=wt(m,d,`${n}${g==="default"?"":je(g)}`,g)),l===!1?u:{[l]:u}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Bt;function a(l){let f=l;if(typeof l=="function")f=l(o);else if(typeof l!="object")return l;if(!f)return null;const d=Io(o.breakpoints),h=Object.keys(d);let m=d;return Object.keys(f).forEach(p=>{const g=_s(f[p],o);if(g!=null)if(typeof g=="object")if(i[p])m=tt(m,e(p,g,o,i));else{const u=Ee({theme:o},g,_=>({[p]:_}));ys(u,g)?m[p]=t({sx:g,theme:o,nested:!0}):m=tt(m,u)}else m=tt(m,e(p,g,o,i))}),!s&&o.modularCssLayers?{"@layer sx":zn(o,Hn(h,m))}:zn(o,Hn(h,m))}return Array.isArray(r)?r.map(a):a(r)}return t}const Ge=bs();Ge.filterProps=["sx"];function Ss(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 vs={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 ks(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ws=/[A-Z]|^ms/g,Ts=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Or=function(t){return t.charCodeAt(1)===45},qn=function(t){return t!=null&&typeof t!="boolean"},Gt=ks(function(e){return Or(e)?e:e.replace(ws,"-$&").toLowerCase()}),Gn=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ts,function(r,o,s){return xe={name:o,styles:s,next:xe},o})}return vs[t]!==1&&!Or(t)&&typeof n=="number"&&n!==0?n+"px":n};function Tt(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 o=n;if(o.anim===1)return xe={name:o.name,styles:o.styles,next:xe},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)xe={name:i.name,styles:i.styles,next:xe},i=i.next;var a=s.styles+";";return a}return Es(e,t,n)}}var l=n;return l}function Es(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Tt(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;qn(a)&&(r+=Gt(s)+":"+Gn(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)qn(i[l])&&(r+=Gt(s)+":"+Gn(s,i[l])+";");else{var f=Tt(e,t,i);switch(s){case"animation":case"animationName":{r+=Gt(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}return r}var Jn=/label:\s*([^\s;{]+)\s*(;|$)/g,xe;function As(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,o="";xe=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=Tt(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=Tt(n,t,e[a]),r){var l=s;o+=l[a]}Jn.lastIndex=0;for(var f="",d;(d=Jn.exec(o))!==null;)f+="-"+d[1];var h=Ss(o)+f;return{name:h,styles:o,next:xe}}/**
39
+ `)));const c=o[s];return i>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
40
+ `)),()=>{})}function _t(e){return Fe(e,"spacing",8,"spacing")}function ze(e,t){return typeof t=="string"||t==null?t:e(t)}function bn(e,t){return r=>e.reduce((n,o)=>(n[o]=ze(t,r),n),{})}function vn(e,t,r,n){if(!t.includes(r))return null;const o=gn(r),i=bn(o,n),s=e[r];return ve(e,s,i)}function wr(e,t){const r=_t(e.theme);return Object.keys(e).map(n=>vn(e,t,n,r)).reduce(Le,{})}function Z(e){return wr(e,tt)}Z.propTypes=process.env.NODE_ENV!=="production"?tt.reduce((e,t)=>(e[t]=Ee,e),{}):{};Z.filterProps=tt;function ee(e){return wr(e,rt)}ee.propTypes=process.env.NODE_ENV!=="production"?rt.reduce((e,t)=>(e[t]=Ee,e),{}):{};ee.filterProps=rt;process.env.NODE_ENV!=="production"&&yn.reduce((e,t)=>(e[t]=Ee,e),{});function nt(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Le(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function ue(e){return typeof e!="number"?e:`${e}px solid`}function fe(e,t){return te({prop:e,themeKey:"borders",transform:t})}const Sn=fe("border",ue),Cn=fe("borderTop",ue),xn=fe("borderRight",ue),En=fe("borderBottom",ue),Tn=fe("borderLeft",ue),On=fe("borderColor"),wn=fe("borderTopColor"),$n=fe("borderRightColor"),_n=fe("borderBottomColor"),An=fe("borderLeftColor"),kn=fe("outline",ue),In=fe("outlineColor"),ot=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Fe(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:ze(t,n)});return ve(e,e.borderRadius,r)}return null};ot.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ee}:{};ot.filterProps=["borderRadius"];nt(Sn,Cn,xn,En,Tn,On,wn,$n,_n,An,ot,kn,In);const it=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Fe(e.theme,"spacing",8,"gap"),r=n=>({gap:ze(t,n)});return ve(e,e.gap,r)}return null};it.propTypes=process.env.NODE_ENV!=="production"?{gap:Ee}:{};it.filterProps=["gap"];const at=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Fe(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:ze(t,n)});return ve(e,e.columnGap,r)}return null};at.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ee}:{};at.filterProps=["columnGap"];const st=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Fe(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:ze(t,n)});return ve(e,e.rowGap,r)}return null};st.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ee}:{};st.filterProps=["rowGap"];const Rn=te({prop:"gridColumn"}),Pn=te({prop:"gridRow"}),Mn=te({prop:"gridAutoFlow"}),Nn=te({prop:"gridAutoColumns"}),jn=te({prop:"gridAutoRows"}),Bn=te({prop:"gridTemplateColumns"}),Dn=te({prop:"gridTemplateRows"}),Ln=te({prop:"gridTemplateAreas"}),Vn=te({prop:"gridArea"});nt(it,at,st,Rn,Pn,Mn,Nn,jn,Bn,Dn,Ln,Vn);function Me(e,t){return t==="grey"?t:e}const Fn=te({prop:"color",themeKey:"palette",transform:Me}),zn=te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Me}),Un=te({prop:"backgroundColor",themeKey:"palette",transform:Me});nt(Fn,zn,Un);function se(e){return e<=1&&e!==0?`${e*100}%`:e}const Yn=te({prop:"width",transform:se}),At=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,i,s,c,u;const n=((s=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:s[r])||Ze[r];return n?((u=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:se(r)}};return ve(e,e.maxWidth,t)}return null};At.filterProps=["maxWidth"];const Wn=te({prop:"minWidth",transform:se}),Hn=te({prop:"height",transform:se}),qn=te({prop:"maxHeight",transform:se}),Gn=te({prop:"minHeight",transform:se});te({prop:"size",cssProperty:"width",transform:se});te({prop:"size",cssProperty:"height",transform:se});const Kn=te({prop:"boxSizing"});nt(Yn,At,Wn,Hn,qn,Gn,Kn);const ct={border:{themeKey:"borders",transform:ue},borderTop:{themeKey:"borders",transform:ue},borderRight:{themeKey:"borders",transform:ue},borderBottom:{themeKey:"borders",transform:ue},borderLeft:{themeKey:"borders",transform:ue},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ue},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ot},color:{themeKey:"palette",transform:Me},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Me},backgroundColor:{themeKey:"palette",transform:Me},p:{style:ee},pt:{style:ee},pr:{style:ee},pb:{style:ee},pl:{style:ee},px:{style:ee},py:{style:ee},padding:{style:ee},paddingTop:{style:ee},paddingRight:{style:ee},paddingBottom:{style:ee},paddingLeft:{style:ee},paddingX:{style:ee},paddingY:{style:ee},paddingInline:{style:ee},paddingInlineStart:{style:ee},paddingInlineEnd:{style:ee},paddingBlock:{style:ee},paddingBlockStart:{style:ee},paddingBlockEnd:{style:ee},m:{style:Z},mt:{style:Z},mr:{style:Z},mb:{style:Z},ml:{style:Z},mx:{style:Z},my:{style:Z},margin:{style:Z},marginTop:{style:Z},marginRight:{style:Z},marginBottom:{style:Z},marginLeft:{style:Z},marginX:{style:Z},marginY:{style:Z},marginInline:{style:Z},marginInlineStart:{style:Z},marginInlineEnd:{style:Z},marginBlock:{style:Z},marginBlockStart:{style:Z},marginBlockEnd:{style:Z},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:it},rowGap:{style:st},columnGap:{style:at},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:se},maxWidth:{style:At},minWidth:{transform:se},height:{transform:se},maxHeight:{transform:se},minHeight:{transform:se},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Qn(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Xn(e,t){return typeof e=="function"?e(t):e}function Jn(){function e(r,n,o,i){const s={[r]:n,theme:o},c=i[r];if(!c)return{[r]:n};const{cssProperty:u=r,themeKey:d,transform:m,style:p}=c;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const h=et(o,d)||{};return p?p(s):ve(s,n,g=>{let l=Qe(h,m,g);return g===l&&typeof g=="string"&&(l=Qe(h,m,`${r}${g==="default"?"":$e(g)}`,g)),u===!1?l:{[u]:l}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const s=o.unstable_sxConfig??ct;function c(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const m=dn(o.breakpoints),p=Object.keys(m);let h=m;return Object.keys(d).forEach(C=>{const g=Xn(d[C],o);if(g!=null)if(typeof g=="object")if(s[C])h=Le(h,e(C,g,o,s));else{const l=ve({theme:o},g,x=>({[C]:x}));Qn(l,g)?h[C]=t({sx:g,theme:o,nested:!0}):h=Le(h,l)}else h=Le(h,e(C,g,o,s))}),!i&&o.modularCssLayers?{"@layer sx":Xt(o,Zt(p,h))}:Xt(o,Zt(p,h))}return Array.isArray(n)?n.map(c):c(n)}return t}const Ne=Jn();Ne.filterProps=["sx"];function Zn(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var eo={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 to(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var ro=/[A-Z]|^ms/g,no=/_EMO_([^_]+?)_([^]*?)_EMO_/g,$r=function(t){return t.charCodeAt(1)===45},tr=function(t){return t!=null&&typeof t!="boolean"},bt=to(function(e){return $r(e)?e:e.replace(ro,"-$&").toLowerCase()}),rr=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(no,function(n,o,i){return Se={name:o,styles:i,next:Se},o})}return eo[t]!==1&&!$r(t)&&typeof r=="number"&&r!==0?r+"px":r};function Xe(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Se={name:o.name,styles:o.styles,next:Se},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Se={name:s.name,styles:s.styles,next:Se},s=s.next;var c=i.styles+";";return c}return oo(e,t,r)}}var u=r;return u}function oo(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Xe(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var c=s;tr(c)&&(n+=bt(i)+":"+rr(i,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var u=0;u<s.length;u++)tr(s[u])&&(n+=bt(i)+":"+rr(i,s[u])+";");else{var d=Xe(e,t,s);switch(i){case"animation":case"animationName":{n+=bt(i)+":"+d+";";break}default:n+=i+"{"+d+"}"}}}return n}var nr=/label:\s*([^\s;{]+)\s*(;|$)/g,Se;function io(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Se=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Xe(r,t,i);else{var s=i;o+=s[0]}for(var c=1;c<e.length;c++)if(o+=Xe(r,t,e[c]),n){var u=i;o+=u[c]}nr.lastIndex=0;for(var d="",m;(m=nr.exec(o))!==null;)d+="-"+m[1];var p=Zn(o)+d;return{name:p,styles:o,next:Se}}/**
41
41
  * @mui/styled-engine v7.3.1
42
42
  *
43
43
  * @license MIT
44
44
  * This source code is licensed under the MIT license found in the
45
45
  * LICENSE file in the root directory of this source tree.
46
- */function Cs(e,t){const n=uo(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
47
- `)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function xs(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Xn=[];function De(e){return Xn[0]=e,As(Xn)}const Os=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Ps(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=Os(t),i=Object.keys(s);function a(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function l(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function f(m,p){const g=i.indexOf(p);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:p)-r/100}${n})`}function d(m){return i.indexOf(m)+1<i.length?f(m,i[i.indexOf(m)+1]):a(m)}function h(m){const p=i.indexOf(m);return p===0?a(i[1]):p===i.length-1?l(i[p]):f(m,i[i.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:i,values:s,up:a,down:l,between:f,only:d,not:h,unit:n,...o}}const Ns={borderRadius:4};function Pr(e=8,t=pn({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function $s(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function _n(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=Ps(n),l=Pr(o);let f=he({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Ns,...s}},i);return f=No(f),f.applyStyles=$s,f=t.reduce((d,h)=>he(d,h),f),f.unstable_sxConfig={...Bt,...i==null?void 0:i.unstable_sxConfig},f.unstable_sx=function(h){return Ge({sx:h,theme:this})},f}function Is(e){return Object.keys(e).length===0}function Rs(e=null){const t=ve.useContext(fo.ThemeContext);return!t||Is(t)?e:t}const Ds=_n();function js(e=Ds){return Rs(e)}const Ms={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 bn(e,t,n="Mui"){const r=Ms[t];return r?`${n}-${r}`:`${go.generate(e)}-${t}`}function Ls(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=bn(e,o,n)}),r}function Nr(e,t=""){return e.displayName||e.name||t}function Qn(e,t,n){const r=Nr(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Bs(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Nr(e,"Component");if(typeof e=="object")switch(e.$$typeof){case kt.ForwardRef:return Qn(e,e.render,"ForwardRef");case kt.Memo:return Qn(e,e.type,"memo");default:return}}}function $r(e){const{variants:t,...n}=e,r={variants:t,style:De(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=De(o.style))}),r}const Ws=_n();function Jt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ie(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Fs(e){return e?(t,n)=>n[e]:null}function Vs(e,t,n){e.theme=Hs(e.theme)?n:e.theme[t]||e.theme}function gt(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>gt(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?Ie(r.style,n):r.style;else{const{variants:s,...i}=r;o=n?Ie(De(i),n):i}return Ir(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?Ie(De(r.style),n):r.style:n?Ie(De(r),n):r}function Ir(e,t,n=[],r=void 0){var s;let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(o))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&((s=e.ownerState)==null?void 0:s[l])!==a.props[l])continue e;typeof a.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?Ie(De(a.style(o)),r):a.style(o))):n.push(r?Ie(De(a.style),r):a.style)}return n}function Us(e={}){const{themeId:t,defaultTheme:n=Ws,rootShouldForwardProp:r=Jt,slotShouldForwardProp:o=Jt}=e;function s(a){Vs(a,t,n)}return(a,l={})=>{xs(a,A=>A.filter(w=>w!==Ge));const{name:f,slot:d,skipVariantsResolver:h,skipSx:m,overridesResolver:p=Fs(Rr(d)),...g}=l,u=f&&f.startsWith("Mui")||d?"components":"custom",_=h!==void 0?h:d&&d!=="Root"&&d!=="root"||!1,E=m||!1;let C=Jt;d==="Root"||d==="root"?C=r:d?C=o:Ys(a)&&(C=void 0);const N=Cs(a,{shouldForwardProp:C,label:Ks(f,d),...g}),k=A=>{if(A.__emotion_real===A)return A;if(typeof A=="function")return function($){return gt($,A,$.theme.modularCssLayers?u:void 0)};if(we(A)){const w=$r(A);return function(te){return w.variants?gt(te,w,te.theme.modularCssLayers?u:void 0):te.theme.modularCssLayers?Ie(w.style,u):w.style}}return A},b=(...A)=>{const w=[],$=A.map(k),te=[];if(w.push(s),f&&p&&te.push(function(O){var ie,ue;const I=(ue=(ie=O.theme.components)==null?void 0:ie[f])==null?void 0:ue.styleOverrides;if(!I)return null;const M={};for(const Me in I)M[Me]=gt(O,I[Me],O.theme.modularCssLayers?"theme":void 0);return p(O,M)}),f&&!_&&te.push(function(O){var M,ie;const T=O.theme,I=(ie=(M=T==null?void 0:T.components)==null?void 0:M[f])==null?void 0:ie.variants;return I?Ir(O,I,[],O.theme.modularCssLayers?"theme":void 0):null}),E||te.push(Ge),Array.isArray($[0])){const c=$.shift(),O=new Array(w.length).fill(""),T=new Array(te.length).fill("");let I;I=[...O,...c,...T],I.raw=[...O,...c.raw,...T],w.unshift(I)}const U=[...w,...$,...te],B=N(...U);return a.muiName&&(B.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(B.displayName=zs(f,d,a)),B};return N.withConfig&&(b.withConfig=N.withConfig),b}}function zs(e,t,n){return e?`${e}${je(t||"")}`:`Styled(${Bs(n)})`}function Ks(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Rr(t||"Root")}`),n}function Hs(e){for(const t in e)return!1;return!0}function Ys(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Rr(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function on(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const i=e[s],a=t[s];if(!a)r[s]=i||{};else if(!i)r[s]=a;else{r[s]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const f=l;r[s][f]=on(i[f],a[f],n)}}}else s==="className"&&n&&t.className?r.className=Ar(e==null?void 0:e.className,t==null?void 0:t.className):s==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[s]===void 0&&(r[s]=e[s])}return r}function qs(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Sn(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}].`),qs(e,t,n)}function Gs(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Pe(e){if(e.type)return e;if(e.charAt(0)==="#")return Pe(Gs(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
48
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Oe(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=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(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
49
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Oe(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const Js=e=>{const t=Pe(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ze=(e,t)=>{try{return Js(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Wt(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Dr(e){e=Pe(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(f,d=(f+n/30)%12)=>o-s*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Wt({type:a,values:l})}function sn(e){e=Pe(e);let t=e.type==="hsl"||e.type==="hsla"?Pe(Dr(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Zn(e,t){const n=sn(e),r=sn(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function jr(e,t){return e=Pe(e),t=Sn(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Wt(e)}function $e(e,t,n){try{return jr(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ft(e,t){if(e=Pe(e),t=Sn(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 Wt(e)}function X(e,t,n){try{return Ft(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Vt(e,t){if(e=Pe(e),t=Sn(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 Wt(e)}function Q(e,t,n){try{return Vt(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Xs(e,t=.15){return sn(e)>.5?Ft(e,t):Vt(e,t)}function mt(e,t,n){try{return Xs(e,t)}catch{return e}}const Qs=ve.createContext(void 0);process.env.NODE_ENV!=="production"&&(Y.node,Y.object);function Zs(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?on(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?on(o,r,t.components.mergeClassNameAndStyle):r}function ei({props:e,name:t}){const n=ve.useContext(Qs);return Zs({props:e,name:t,theme:{components:n}})}const er={theme:void 0};function ti(e){let t,n;return function(o){let s=t;return(s===void 0||o.theme!==n)&&(er.theme=o.theme,s=$r(e(er)),t=s,n=o.theme),s}}function ni(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const tr=(e,t,n,r=[])=>{let o=e;t.forEach((s,i)=>{i===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},ri=(e,t,n)=>{function r(o,s=[],i=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...s,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...s,a],Array.isArray(l)?[...i,a]:i):t([...s,a],l,i))})}r(e)},oi=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Xt(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return ri(e,(a,l,f)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const d=`--${n?`${n}-`:""}${a.join("-")}`,h=oi(a,l);Object.assign(o,{[d]:h}),tr(s,a,`var(${d})`,f),tr(i,a,`var(${d}, ${h})`,f)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function si(e,t={}){const{getSelector:n=E,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...f}=e,{vars:d,css:h,varsWithDefaults:m}=Xt(f,t);let p=m;const g={},{[l]:u,..._}=i;if(Object.entries(_||{}).forEach(([k,b])=>{const{vars:A,css:w,varsWithDefaults:$}=Xt(b,t);p=he(p,$),g[k]={css:w,vars:A}}),u){const{css:k,vars:b,varsWithDefaults:A}=Xt(u,t);p=he(p,A),g[l]={css:k,vars:b}}function E(k,b){var w,$;let A=o;if(o==="class"&&(A=".%s"),o==="data"&&(A="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(A=`[${o}="%s"]`),k){if(A==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${(($=(w=i[k])==null?void 0:w.palette)==null?void 0:$.mode)||k})`]:{":root":b}};if(A)return e.defaultColorScheme===k?`:root, ${A.replace("%s",String(k))}`:A.replace("%s",String(k))}return":root"}return{vars:p,generateThemeVars:()=>{let k={...d};return Object.entries(g).forEach(([,{vars:b}])=>{k=he(k,b)}),k},generateStyleSheets:()=>{var te,U;const k=[],b=e.defaultColorScheme||"light";function A(B,c){Object.keys(c).length&&k.push(typeof B=="string"?{[B]:{...c}}:B)}A(n(void 0,{...h}),h);const{[b]:w,...$}=g;if(w){const{css:B}=w,c=(U=(te=i[b])==null?void 0:te.palette)==null?void 0:U.mode,O=!r&&c?{colorScheme:c,...B}:{...B};A(n(b,{...O}),O)}return Object.entries($).forEach(([B,{css:c}])=>{var I,M;const O=(M=(I=i[B])==null?void 0:I.palette)==null?void 0:M.mode,T=!r&&O?{colorScheme:O,...c}:{...c};A(n(B,{...T}),T)}),s&&k.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)"}}),k}}}function ii(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const rt={black:"#000",white:"#fff"},ai={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"},Be={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},We={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Xe={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Fe={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ve={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ue={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Mr(){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:rt.white,default:rt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Lr=Mr();function Br(){return{text:{primary:rt.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:rt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const an=Br();function nr(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Vt(e.main,o):t==="dark"&&(e.dark=Ft(e.main,s)))}function rr(e,t,n,r,o){const s=o.light||o,i=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(i*100).toFixed(0)}%)`))}function ci(e="light"){return e==="dark"?{main:Fe[200],light:Fe[50],dark:Fe[400]}:{main:Fe[700],light:Fe[400],dark:Fe[800]}}function li(e="light"){return e==="dark"?{main:Be[200],light:Be[50],dark:Be[400]}:{main:Be[500],light:Be[300],dark:Be[700]}}function ui(e="light"){return e==="dark"?{main:We[500],light:We[300],dark:We[700]}:{main:We[700],light:We[400],dark:We[800]}}function fi(e="light"){return e==="dark"?{main:Ve[400],light:Ve[300],dark:Ve[700]}:{main:Ve[700],light:Ve[500],dark:Ve[900]}}function di(e="light"){return e==="dark"?{main:Ue[400],light:Ue[300],dark:Ue[700]}:{main:Ue[800],light:Ue[500],dark:Ue[900]}}function hi(e="light"){return e==="dark"?{main:Xe[400],light:Xe[300],dark:Xe[700]}:{main:"#ed6c02",light:Xe[500],dark:Xe[900]}}function mi(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function vn(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,i=e.primary||ci(t),a=e.secondary||li(t),l=e.error||ui(t),f=e.info||fi(t),d=e.success||di(t),h=e.warning||hi(t);function m(_){if(o)return mi(_);const E=Zn(_,an.text.primary)>=n?an.text.primary:Lr.text.primary;if(process.env.NODE_ENV!=="production"){const C=Zn(_,E);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${E} on ${_}`,"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(`
50
- `))}return E}const p=({color:_,name:E,mainShade:C=500,lightShade:N=300,darkShade:k=700})=>{if(_={..._},!_.main&&_[C]&&(_.main=_[C]),!_.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${E?` (${E})`:""} provided to augmentColor(color) is invalid.
51
- The color object needs to have a \`main\` property or a \`${C}\` property.`:Oe(11,E?` (${E})`:"",C));if(typeof _.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${E?` (${E})`:""} provided to augmentColor(color) is invalid.
52
- \`color.main\` should be a string, but \`${JSON.stringify(_.main)}\` was provided instead.
46
+ */function ao(e,t){const r=Ur(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
47
+ `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function so(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const or=[];function we(e){return or[0]=e,io(or)}const co=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function lo(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=co(t),s=Object.keys(i);function c(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function u(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function d(h,C){const g=s.indexOf(C);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:C)-n/100}${r})`}function m(h){return s.indexOf(h)+1<s.length?d(h,s[s.indexOf(h)+1]):c(h)}function p(h){const C=s.indexOf(h);return C===0?c(s[1]):C===s.length-1?u(s[C]):d(h,s[s.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:c,down:u,between:d,only:m,not:p,unit:r,...o}}const uo={borderRadius:4};function _r(e=8,t=_t({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function fo(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function kt(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...s}=e,c=lo(r),u=_r(o);let d=ce({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...uo,...i}},s);return d=un(d),d.applyStyles=fo,d=t.reduce((m,p)=>ce(m,p),d),d.unstable_sxConfig={...ct,...s==null?void 0:s.unstable_sxConfig},d.unstable_sx=function(p){return Ne({sx:p,theme:this})},d}function mo(e){return Object.keys(e).length===0}function po(e=null){const t=he.useContext(Yr.ThemeContext);return!t||mo(t)?e:t}const ho=kt();function go(e=ho){return po(e)}const yo={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 It(e,t,r="Mui"){const n=yo[t];return n?`${r}-${n}`:`${qr.generate(e)}-${t}`}function bo(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=It(e,o,r)}),n}function Ar(e,t=""){return e.displayName||e.name||t}function ir(e,t,r){const n=Ar(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function vo(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ar(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ke.ForwardRef:return ir(e,e.render,"ForwardRef");case Ke.Memo:return ir(e,e.type,"memo");default:return}}}function kr(e){const{variants:t,...r}=e,n={variants:t,style:we(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=we(o.style))}),n}const So=kt();function vt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Oe(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Co(e){return e?(t,r)=>r[e]:null}function xo(e,t,r){e.theme=wo(e.theme)?r:e.theme[t]||e.theme}function Ge(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Ge(e,o,r));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=r?Oe(n.style,r):n.style;else{const{variants:i,...s}=n;o=r?Oe(we(s),r):s}return Ir(e,n.variants,[o],r)}return n!=null&&n.isProcessed?r?Oe(we(n.style),r):n.style:r?Oe(we(n),r):n}function Ir(e,t,r=[],n=void 0){var i;let o;e:for(let s=0;s<t.length;s+=1){const c=t[s];if(typeof c.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(o))continue}else for(const u in c.props)if(e[u]!==c.props[u]&&((i=e.ownerState)==null?void 0:i[u])!==c.props[u])continue e;typeof c.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),r.push(n?Oe(we(c.style(o)),n):c.style(o))):r.push(n?Oe(we(c.style),n):c.style)}return r}function Eo(e={}){const{themeId:t,defaultTheme:r=So,rootShouldForwardProp:n=vt,slotShouldForwardProp:o=vt}=e;function i(c){xo(c,t,r)}return(c,u={})=>{so(c,$=>$.filter(Q=>Q!==Ne));const{name:d,slot:m,skipVariantsResolver:p,skipSx:h,overridesResolver:C=Co(Rr(m)),...g}=u,l=d&&d.startsWith("Mui")||m?"components":"custom",x=p!==void 0?p:m&&m!=="Root"&&m!=="root"||!1,_=h||!1;let j=vt;m==="Root"||m==="root"?j=n:m?j=o:$o(c)&&(j=void 0);const D=ao(c,{shouldForwardProp:j,label:Oo(d,m),...g}),w=$=>{if($.__emotion_real===$)return $;if(typeof $=="function")return function(re){return Ge(re,$,re.theme.modularCssLayers?l:void 0)};if(ye($)){const Q=kr($);return function(oe){return Q.variants?Ge(oe,Q,oe.theme.modularCssLayers?l:void 0):oe.theme.modularCssLayers?Oe(Q.style,l):Q.style}}return $},b=(...$)=>{const Q=[],re=$.map(w),oe=[];if(Q.push(i),d&&C&&oe.push(function(T){var ne,ie;const A=(ie=(ne=T.theme.components)==null?void 0:ne[d])==null?void 0:ie.styleOverrides;if(!A)return null;const R={};for(const _e in A)R[_e]=Ge(T,A[_e],T.theme.modularCssLayers?"theme":void 0);return C(T,R)}),d&&!x&&oe.push(function(T){var R,ne;const S=T.theme,A=(ne=(R=S==null?void 0:S.components)==null?void 0:R[d])==null?void 0:ne.variants;return A?Ir(T,A,[],T.theme.modularCssLayers?"theme":void 0):null}),_||oe.push(Ne),Array.isArray(re[0])){const a=re.shift(),T=new Array(Q.length).fill(""),S=new Array(oe.length).fill("");let A;A=[...T,...a,...S],A.raw=[...T,...a.raw,...S],Q.unshift(A)}const de=[...Q,...re,...oe],X=D(...de);return c.muiName&&(X.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(X.displayName=To(d,m,c)),X};return D.withConfig&&(b.withConfig=D.withConfig),b}}function To(e,t,r){return e?`${e}${$e(t||"")}`:`Styled(${vo(r)})`}function Oo(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Rr(t||"Root")}`),r}function wo(e){for(const t in e)return!1;return!0}function $o(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Rr(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Et(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const s=e[i],c=t[i];if(!c)n[i]=s||{};else if(!s)n[i]=c;else{n[i]={...c};for(const u in s)if(Object.prototype.hasOwnProperty.call(s,u)){const d=u;n[i][d]=Et(s[d],c[d],r)}}}else i==="className"&&r&&t.className?n.className=Tr(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&r&&t.style?n.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:n[i]===void 0&&(n[i]=e[i])}return n}function _o(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Rt(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),_o(e,t,r)}function Ao(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function xe(e){if(e.type)return e;if(e.charAt(0)==="#")return xe(Ao(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
48
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ce(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
49
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ce(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const ko=e=>{const t=xe(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Be=(e,t)=>{try{return ko(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function lt(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function Pr(e){e=xe(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=(d,m=(d+r/30)%12)=>o-i*Math.max(Math.min(m-3,9-m,1),-1);let c="rgb";const u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),lt({type:c,values:u})}function Tt(e){e=xe(e);let t=e.type==="hsl"||e.type==="hsla"?xe(Pr(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ar(e,t){const r=Tt(e),n=Tt(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Mr(e,t){return e=xe(e),t=Rt(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,lt(e)}function Te(e,t,r){try{return Mr(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ut(e,t){if(e=xe(e),t=Rt(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return lt(e)}function H(e,t,r){try{return ut(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ft(e,t){if(e=xe(e),t=Rt(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return lt(e)}function q(e,t,r){try{return ft(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Io(e,t=.15){return Tt(e)>.5?ut(e,t):ft(e,t)}function qe(e,t,r){try{return Io(e,t)}catch{return e}}const Ro=he.createContext(void 0);process.env.NODE_ENV!=="production"&&(z.node,z.object);function Po(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Et(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Et(o,n,t.components.mergeClassNameAndStyle):n}function Mo({props:e,name:t}){const r=he.useContext(Ro);return Po({props:e,name:t,theme:{components:r}})}const sr={theme:void 0};function No(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(sr.theme=o.theme,i=kr(e(sr)),t=i,r=o.theme),i}}function jo(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const cr=(e,t,r,n=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},Bo=(e,t,r)=>{function n(o,i=[],s=[]){Object.entries(o).forEach(([c,u])=>{(!r||r&&!r([...i,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...i,c],Array.isArray(u)?[...s,c]:s):t([...i,c],u,s))})}n(e)},Do=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function St(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},s={};return Bo(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(c,u))){const m=`--${r?`${r}-`:""}${c.join("-")}`,p=Do(c,u);Object.assign(o,{[m]:p}),cr(i,c,`var(${m})`,d),cr(s,c,`var(${m}, ${p})`,d)}},c=>c[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function Lo(e,t={}){const{getSelector:r=_,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:s={},components:c,defaultColorScheme:u="light",...d}=e,{vars:m,css:p,varsWithDefaults:h}=St(d,t);let C=h;const g={},{[u]:l,...x}=s;if(Object.entries(x||{}).forEach(([w,b])=>{const{vars:$,css:Q,varsWithDefaults:re}=St(b,t);C=ce(C,re),g[w]={css:Q,vars:$}}),l){const{css:w,vars:b,varsWithDefaults:$}=St(l,t);C=ce(C,$),g[u]={css:w,vars:b}}function _(w,b){var Q,re;let $=o;if(o==="class"&&($=".%s"),o==="data"&&($="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&($=`[${o}="%s"]`),w){if($==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((re=(Q=s[w])==null?void 0:Q.palette)==null?void 0:re.mode)||w})`]:{":root":b}};if($)return e.defaultColorScheme===w?`:root, ${$.replace("%s",String(w))}`:$.replace("%s",String(w))}return":root"}return{vars:C,generateThemeVars:()=>{let w={...m};return Object.entries(g).forEach(([,{vars:b}])=>{w=ce(w,b)}),w},generateStyleSheets:()=>{var oe,de;const w=[],b=e.defaultColorScheme||"light";function $(X,a){Object.keys(a).length&&w.push(typeof X=="string"?{[X]:{...a}}:X)}$(r(void 0,{...p}),p);const{[b]:Q,...re}=g;if(Q){const{css:X}=Q,a=(de=(oe=s[b])==null?void 0:oe.palette)==null?void 0:de.mode,T=!n&&a?{colorScheme:a,...X}:{...X};$(r(b,{...T}),T)}return Object.entries(re).forEach(([X,{css:a}])=>{var A,R;const T=(R=(A=s[X])==null?void 0:A.palette)==null?void 0:R.mode,S=!n&&T?{colorScheme:T,...a}:{...a};$(r(X,{...S}),S)}),i&&w.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)"}}),w}}}function Vo(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Ve={black:"#000",white:"#fff"},Fo={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"},Ae={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ke={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},je={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ie={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Re={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Pe={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Nr(){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:Ve.white,default:Ve.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const jr=Nr();function Br(){return{text:{primary:Ve.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:Ve.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ot=Br();function lr(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ft(e.main,o):t==="dark"&&(e.dark=ut(e.main,i)))}function ur(e,t,r,n,o){const i=o.light||o,s=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function zo(e="light"){return e==="dark"?{main:Ie[200],light:Ie[50],dark:Ie[400]}:{main:Ie[700],light:Ie[400],dark:Ie[800]}}function Uo(e="light"){return e==="dark"?{main:Ae[200],light:Ae[50],dark:Ae[400]}:{main:Ae[500],light:Ae[300],dark:Ae[700]}}function Yo(e="light"){return e==="dark"?{main:ke[500],light:ke[300],dark:ke[700]}:{main:ke[700],light:ke[400],dark:ke[800]}}function Wo(e="light"){return e==="dark"?{main:Re[400],light:Re[300],dark:Re[700]}:{main:Re[700],light:Re[500],dark:Re[900]}}function Ho(e="light"){return e==="dark"?{main:Pe[400],light:Pe[300],dark:Pe[700]}:{main:Pe[800],light:Pe[500],dark:Pe[900]}}function qo(e="light"){return e==="dark"?{main:je[400],light:je[300],dark:je[700]}:{main:"#ed6c02",light:je[500],dark:je[900]}}function Go(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Pt(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...i}=e,s=e.primary||zo(t),c=e.secondary||Uo(t),u=e.error||Yo(t),d=e.info||Wo(t),m=e.success||Ho(t),p=e.warning||qo(t);function h(x){if(o)return Go(x);const _=ar(x,Ot.text.primary)>=r?Ot.text.primary:jr.text.primary;if(process.env.NODE_ENV!=="production"){const j=ar(x,_);j<3&&console.error([`MUI: The contrast ratio of ${j}:1 for ${_} on ${x}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
50
+ `))}return _}const C=({color:x,name:_,mainShade:j=500,lightShade:D=300,darkShade:w=700})=>{if(x={...x},!x.main&&x[j]&&(x.main=x[j]),!x.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
51
+ The color object needs to have a \`main\` property or a \`${j}\` property.`:Ce(11,_?` (${_})`:"",j));if(typeof x.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
52
+ \`color.main\` should be a string, but \`${JSON.stringify(x.main)}\` was provided instead.
53
53
 
54
54
  Did you intend to use one of the following approaches?
55
55
 
@@ -61,15 +61,14 @@ const theme1 = createTheme({ palette: {
61
61
 
62
62
  const theme2 = createTheme({ palette: {
63
63
  primary: { main: green[500] },
64
- } });`:Oe(12,E?` (${E})`:"",JSON.stringify(_.main)));return o?(rr(o,_,"light",N,r),rr(o,_,"dark",k,r)):(nr(_,"light",N,r),nr(_,"dark",k,r)),_.contrastText||(_.contrastText=m(_.main)),_};let g;return t==="light"?g=Mr():t==="dark"&&(g=Br()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),he({common:{...rt},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:h,name:"warning"}),info:p({color:f,name:"info"}),success:p({color:d,name:"success"}),grey:ai,contrastThreshold:n,getContrastText:m,augmentColor:p,tonalOffset:r,...g},s)}function gi(e){const t={};return Object.entries(e).forEach(r=>{const[o,s]=r;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function pi(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function yi(e){return Math.round(e*1e5)/1e5}const or={textTransform:"uppercase"},sr='"Roboto", "Helvetica", "Arial", sans-serif';function _i(e,t){const{fontFamily:n=sr,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:f,pxToRem:d,...h}=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 l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=r/14,p=d||(_=>`${_/l*m}rem`),g=(_,E,C,N,k)=>({fontFamily:n,fontWeight:_,fontSize:p(E),lineHeight:C,...n===sr?{letterSpacing:`${yi(N/E)}em`}:{},...k,...f}),u={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(i,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(i,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(i,14,1.75,.4,or),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,or),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return he({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...u},h,{clone:!1})}const bi=.2,Si=.14,vi=.12;function ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${bi})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Si})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${vi})`].join(",")}const ki=["none",ne(0,2,1,-1,0,1,1,0,0,1,3,0),ne(0,3,1,-2,0,2,2,0,0,1,5,0),ne(0,3,3,-2,0,3,4,0,0,1,8,0),ne(0,2,4,-1,0,4,5,0,0,1,10,0),ne(0,3,5,-1,0,5,8,0,0,1,14,0),ne(0,3,5,-1,0,6,10,0,0,1,18,0),ne(0,4,5,-2,0,7,10,1,0,2,16,1),ne(0,5,5,-3,0,8,10,1,0,3,14,2),ne(0,5,6,-3,0,9,12,1,0,3,16,2),ne(0,6,6,-3,0,10,14,1,0,4,18,3),ne(0,6,7,-4,0,11,15,1,0,4,20,3),ne(0,7,8,-4,0,12,17,2,0,5,22,4),ne(0,7,8,-4,0,13,19,2,0,5,24,4),ne(0,7,9,-4,0,14,21,2,0,5,26,4),ne(0,8,9,-5,0,15,22,2,0,6,28,5),ne(0,8,10,-5,0,16,24,2,0,6,30,5),ne(0,8,11,-5,0,17,26,2,0,6,32,5),ne(0,9,11,-5,0,18,28,2,0,7,34,6),ne(0,9,12,-6,0,19,29,2,0,7,36,6),ne(0,10,13,-6,0,20,31,3,0,8,38,7),ne(0,10,13,-6,0,21,33,3,0,8,40,7),ne(0,10,14,-6,0,22,35,3,0,8,42,7),ne(0,11,14,-7,0,23,36,3,0,9,44,8),ne(0,11,15,-7,0,24,38,3,0,9,46,8)],wi={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)"},Ti={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ir(e){return`${Math.round(e)}ms`}function Ei(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ai(e){const t={...wi,...e.easing},n={...Ti,...e.duration};return{getAutoHeightDuration:Ei,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...f}=s;if(process.env.NODE_ENV!=="production"){const d=m=>typeof m=="string",h=m=>!Number.isNaN(parseFloat(m));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(a)||console.error('MUI: Argument "easing" must be a string.'),!h(l)&&!d(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
65
- `)),Object.keys(f).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:ir(i)} ${a} ${typeof l=="string"?l:ir(l)}`).join(",")},...e,easing:t,duration:n}}const Ci={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function xi(e){return we(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Wr(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let s=0;s<o.length;s++){const[i,a]=o[s];!xi(a)||i.startsWith("unstable_")?delete r[i]:we(a)&&(r[i]={...a},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
64
+ } });`:Ce(12,_?` (${_})`:"",JSON.stringify(x.main)));return o?(ur(o,x,"light",D,n),ur(o,x,"dark",w,n)):(lr(x,"light",D,n),lr(x,"dark",w,n)),x.contrastText||(x.contrastText=h(x.main)),x};let g;return t==="light"?g=Nr():t==="dark"&&(g=Br()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ce({common:{...Ve},mode:t,primary:C({color:s,name:"primary"}),secondary:C({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:C({color:u,name:"error"}),warning:C({color:p,name:"warning"}),info:C({color:d,name:"info"}),success:C({color:m,name:"success"}),grey:Fo,contrastThreshold:r,getContrastText:h,augmentColor:C,tonalOffset:n,...g},i)}function Ko(e){const t={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function Qo(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Xo(e){return Math.round(e*1e5)/1e5}const fr={textTransform:"uppercase"},dr='"Roboto", "Helvetica", "Arial", sans-serif';function Jo(e,t){const{fontFamily:r=dr,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:m,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=n/14,C=m||(x=>`${x/u*h}rem`),g=(x,_,j,D,w)=>({fontFamily:r,fontWeight:x,fontSize:C(_),lineHeight:j,...r===dr?{letterSpacing:`${Xo(D/_)}em`}:{},...w,...d}),l={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(s,14,1.75,.4,fr),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,fr),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ce({htmlFontSize:u,pxToRem:C,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:c,...l},p,{clone:!1})}const Zo=.2,ei=.14,ti=.12;function J(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Zo})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ei})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ti})`].join(",")}const ri=["none",J(0,2,1,-1,0,1,1,0,0,1,3,0),J(0,3,1,-2,0,2,2,0,0,1,5,0),J(0,3,3,-2,0,3,4,0,0,1,8,0),J(0,2,4,-1,0,4,5,0,0,1,10,0),J(0,3,5,-1,0,5,8,0,0,1,14,0),J(0,3,5,-1,0,6,10,0,0,1,18,0),J(0,4,5,-2,0,7,10,1,0,2,16,1),J(0,5,5,-3,0,8,10,1,0,3,14,2),J(0,5,6,-3,0,9,12,1,0,3,16,2),J(0,6,6,-3,0,10,14,1,0,4,18,3),J(0,6,7,-4,0,11,15,1,0,4,20,3),J(0,7,8,-4,0,12,17,2,0,5,22,4),J(0,7,8,-4,0,13,19,2,0,5,24,4),J(0,7,9,-4,0,14,21,2,0,5,26,4),J(0,8,9,-5,0,15,22,2,0,6,28,5),J(0,8,10,-5,0,16,24,2,0,6,30,5),J(0,8,11,-5,0,17,26,2,0,6,32,5),J(0,9,11,-5,0,18,28,2,0,7,34,6),J(0,9,12,-6,0,19,29,2,0,7,36,6),J(0,10,13,-6,0,20,31,3,0,8,38,7),J(0,10,13,-6,0,21,33,3,0,8,40,7),J(0,10,14,-6,0,22,35,3,0,8,42,7),J(0,11,14,-7,0,23,36,3,0,9,44,8),J(0,11,15,-7,0,24,38,3,0,9,46,8)],ni={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)"},oi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function mr(e){return`${Math.round(e)}ms`}function ii(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function ai(e){const t={...ni,...e.easing},r={...oi,...e.duration};return{getAutoHeightDuration:ii,create:(o=["all"],i={})=>{const{duration:s=r.standard,easing:c=t.easeInOut,delay:u=0,...d}=i;if(process.env.NODE_ENV!=="production"){const m=h=>typeof h=="string",p=h=>!Number.isNaN(parseFloat(h));!m(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(s)&&!m(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),m(c)||console.error('MUI: Argument "easing" must be a string.'),!p(u)&&!m(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
65
+ `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof s=="string"?s:mr(s)} ${c} ${typeof u=="string"?u:mr(u)}`).join(",")},...e,easing:t,duration:r}}const si={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ci(e){return ye(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Dr(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[s,c]=o[i];!ci(c)||s.startsWith("unstable_")?delete n[s]:ye(c)&&(n[s]={...c},r(n[s]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
66
66
 
67
67
  const theme = ${JSON.stringify(t,null,2)};
68
68
 
69
69
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
70
70
  theme.transitions = createTransitions(theme.transitions || {});
71
71
 
72
- export default theme;`}function ar(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Oi=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Pi(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:jr(t,Oi(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${ar(n)})`:Vt(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${ar(n)})`:Ft(t,n)}})}function cn(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:s={},transitions:i={},typography:a={},shape:l,colorSpace:f,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Oe(20));const h=vn({...s,colorSpace:f}),m=_n(e);let p=he(m,{mixins:pi(m.breakpoints,r),palette:h,shadows:ki.slice(),typography:_i(h,a),transitions:Ai(i),zIndex:{...Ci}});if(p=he(p,d),p=t.reduce((g,u)=>he(g,u),p),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],u=(_,E)=>{let C;for(C in _){const N=_[C];if(g.includes(C)&&Object.keys(N).length>0){if(process.env.NODE_ENV!=="production"){const k=bn("",C);console.error([`MUI: The \`${E}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(_,null,2),"",`Instead, you need to use the '&.${k}' syntax:`,JSON.stringify({root:{[`&.${k}`]:N}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
73
- `))}_[C]={}}}};Object.keys(p.components).forEach(_=>{const E=p.components[_].styleOverrides;E&&_.startsWith("Mui")&&u(E,_)})}return p.unstable_sxConfig={...Bt,...d==null?void 0:d.unstable_sxConfig},p.unstable_sx=function(u){return Ge({sx:u,theme:this})},p.toRuntimeSource=Wr,Pi(p),p}function Ni(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const $i=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ni(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Fr(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Vr(e){return e==="dark"?$i:[]}function Ii(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,i=vn({...t,colorSpace:o});return{palette:i,opacity:{...Fr(i.mode),...n},overlays:r||Vr(i.mode),...s}}function Ri(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Di=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ji=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return Di(e.cssVarPrefix).forEach(a=>{i[a]=n[a],delete n[a]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:s?{[s.replace("%s",t)]:i,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function Mi(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function y(e,t,n){!e[t]&&n&&(e[t]=n)}function et(e){return typeof e!="string"||!e.startsWith("hsl")?e:Dr(e)}function ke(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ze(et(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().
74
- 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 Li(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Se=e=>{try{return e()}catch{}},Bi=(e="mui")=>ni(e);function Qt(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=Ii({...n,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:i,...a}=cn({...r,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...Fr(s),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Vr(s)},a}function Wi(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=Ri,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...d}=e,h=Object.keys(n)[0],m=r||(n.light&&h!=="light"?"light":h),p=Bi(s),{[m]:g,light:u,dark:_,...E}=n,C={...E};let N=g;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(N=!0),!N)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:Oe(21,m));let k;i&&(k="oklch");const b=Qt(k,C,N,d,m);u&&!C.light&&Qt(k,C,u,void 0,"light"),_&&!C.dark&&Qt(k,C,_,void 0,"dark");let A={defaultColorScheme:m,...b,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:f,getCssVar:p,colorSchemes:C,font:{...gi(b.typography),...b.font},spacing:Li(d.spacing)};Object.keys(A.colorSchemes).forEach(B=>{const c=A.colorSchemes[B].palette,O=I=>{const M=I.split("-"),ie=M[1],ue=M[2];return p(I,c[ie][ue])};c.mode==="light"&&(y(c.common,"background","#fff"),y(c.common,"onBackground","#000")),c.mode==="dark"&&(y(c.common,"background","#000"),y(c.common,"onBackground","#fff"));function T(I,M,ie){if(k){let ue;return I===$e&&(ue=`transparent ${((1-ie)*100).toFixed(0)}%`),I===X&&(ue=`#000 ${(ie*100).toFixed(0)}%`),I===Q&&(ue=`#fff ${(ie*100).toFixed(0)}%`),`color-mix(in ${k}, ${M}, ${ue})`}return I(M,ie)}if(Mi(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){y(c.Alert,"errorColor",T(X,c.error.light,.6)),y(c.Alert,"infoColor",T(X,c.info.light,.6)),y(c.Alert,"successColor",T(X,c.success.light,.6)),y(c.Alert,"warningColor",T(X,c.warning.light,.6)),y(c.Alert,"errorFilledBg",O("palette-error-main")),y(c.Alert,"infoFilledBg",O("palette-info-main")),y(c.Alert,"successFilledBg",O("palette-success-main")),y(c.Alert,"warningFilledBg",O("palette-warning-main")),y(c.Alert,"errorFilledColor",Se(()=>c.getContrastText(c.error.main))),y(c.Alert,"infoFilledColor",Se(()=>c.getContrastText(c.info.main))),y(c.Alert,"successFilledColor",Se(()=>c.getContrastText(c.success.main))),y(c.Alert,"warningFilledColor",Se(()=>c.getContrastText(c.warning.main))),y(c.Alert,"errorStandardBg",T(Q,c.error.light,.9)),y(c.Alert,"infoStandardBg",T(Q,c.info.light,.9)),y(c.Alert,"successStandardBg",T(Q,c.success.light,.9)),y(c.Alert,"warningStandardBg",T(Q,c.warning.light,.9)),y(c.Alert,"errorIconColor",O("palette-error-main")),y(c.Alert,"infoIconColor",O("palette-info-main")),y(c.Alert,"successIconColor",O("palette-success-main")),y(c.Alert,"warningIconColor",O("palette-warning-main")),y(c.AppBar,"defaultBg",O("palette-grey-100")),y(c.Avatar,"defaultBg",O("palette-grey-400")),y(c.Button,"inheritContainedBg",O("palette-grey-300")),y(c.Button,"inheritContainedHoverBg",O("palette-grey-A100")),y(c.Chip,"defaultBorder",O("palette-grey-400")),y(c.Chip,"defaultAvatarColor",O("palette-grey-700")),y(c.Chip,"defaultIconColor",O("palette-grey-700")),y(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),y(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),y(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),y(c.LinearProgress,"primaryBg",T(Q,c.primary.main,.62)),y(c.LinearProgress,"secondaryBg",T(Q,c.secondary.main,.62)),y(c.LinearProgress,"errorBg",T(Q,c.error.main,.62)),y(c.LinearProgress,"infoBg",T(Q,c.info.main,.62)),y(c.LinearProgress,"successBg",T(Q,c.success.main,.62)),y(c.LinearProgress,"warningBg",T(Q,c.warning.main,.62)),y(c.Skeleton,"bg",k?T($e,c.text.primary,.11):`rgba(${O("palette-text-primaryChannel")} / 0.11)`),y(c.Slider,"primaryTrack",T(Q,c.primary.main,.62)),y(c.Slider,"secondaryTrack",T(Q,c.secondary.main,.62)),y(c.Slider,"errorTrack",T(Q,c.error.main,.62)),y(c.Slider,"infoTrack",T(Q,c.info.main,.62)),y(c.Slider,"successTrack",T(Q,c.success.main,.62)),y(c.Slider,"warningTrack",T(Q,c.warning.main,.62));const I=k?T(X,c.background.default,.6825):mt(c.background.default,.8);y(c.SnackbarContent,"bg",I),y(c.SnackbarContent,"color",Se(()=>k?an.text.primary:c.getContrastText(I))),y(c.SpeedDialAction,"fabHoverBg",mt(c.background.paper,.15)),y(c.StepConnector,"border",O("palette-grey-400")),y(c.StepContent,"border",O("palette-grey-400")),y(c.Switch,"defaultColor",O("palette-common-white")),y(c.Switch,"defaultDisabledColor",O("palette-grey-100")),y(c.Switch,"primaryDisabledColor",T(Q,c.primary.main,.62)),y(c.Switch,"secondaryDisabledColor",T(Q,c.secondary.main,.62)),y(c.Switch,"errorDisabledColor",T(Q,c.error.main,.62)),y(c.Switch,"infoDisabledColor",T(Q,c.info.main,.62)),y(c.Switch,"successDisabledColor",T(Q,c.success.main,.62)),y(c.Switch,"warningDisabledColor",T(Q,c.warning.main,.62)),y(c.TableCell,"border",T(Q,T($e,c.divider,1),.88)),y(c.Tooltip,"bg",T($e,c.grey[700],.92))}if(c.mode==="dark"){y(c.Alert,"errorColor",T(Q,c.error.light,.6)),y(c.Alert,"infoColor",T(Q,c.info.light,.6)),y(c.Alert,"successColor",T(Q,c.success.light,.6)),y(c.Alert,"warningColor",T(Q,c.warning.light,.6)),y(c.Alert,"errorFilledBg",O("palette-error-dark")),y(c.Alert,"infoFilledBg",O("palette-info-dark")),y(c.Alert,"successFilledBg",O("palette-success-dark")),y(c.Alert,"warningFilledBg",O("palette-warning-dark")),y(c.Alert,"errorFilledColor",Se(()=>c.getContrastText(c.error.dark))),y(c.Alert,"infoFilledColor",Se(()=>c.getContrastText(c.info.dark))),y(c.Alert,"successFilledColor",Se(()=>c.getContrastText(c.success.dark))),y(c.Alert,"warningFilledColor",Se(()=>c.getContrastText(c.warning.dark))),y(c.Alert,"errorStandardBg",T(X,c.error.light,.9)),y(c.Alert,"infoStandardBg",T(X,c.info.light,.9)),y(c.Alert,"successStandardBg",T(X,c.success.light,.9)),y(c.Alert,"warningStandardBg",T(X,c.warning.light,.9)),y(c.Alert,"errorIconColor",O("palette-error-main")),y(c.Alert,"infoIconColor",O("palette-info-main")),y(c.Alert,"successIconColor",O("palette-success-main")),y(c.Alert,"warningIconColor",O("palette-warning-main")),y(c.AppBar,"defaultBg",O("palette-grey-900")),y(c.AppBar,"darkBg",O("palette-background-paper")),y(c.AppBar,"darkColor",O("palette-text-primary")),y(c.Avatar,"defaultBg",O("palette-grey-600")),y(c.Button,"inheritContainedBg",O("palette-grey-800")),y(c.Button,"inheritContainedHoverBg",O("palette-grey-700")),y(c.Chip,"defaultBorder",O("palette-grey-700")),y(c.Chip,"defaultAvatarColor",O("palette-grey-300")),y(c.Chip,"defaultIconColor",O("palette-grey-300")),y(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),y(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),y(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),y(c.LinearProgress,"primaryBg",T(X,c.primary.main,.5)),y(c.LinearProgress,"secondaryBg",T(X,c.secondary.main,.5)),y(c.LinearProgress,"errorBg",T(X,c.error.main,.5)),y(c.LinearProgress,"infoBg",T(X,c.info.main,.5)),y(c.LinearProgress,"successBg",T(X,c.success.main,.5)),y(c.LinearProgress,"warningBg",T(X,c.warning.main,.5)),y(c.Skeleton,"bg",k?T($e,c.text.primary,.13):`rgba(${O("palette-text-primaryChannel")} / 0.13)`),y(c.Slider,"primaryTrack",T(X,c.primary.main,.5)),y(c.Slider,"secondaryTrack",T(X,c.secondary.main,.5)),y(c.Slider,"errorTrack",T(X,c.error.main,.5)),y(c.Slider,"infoTrack",T(X,c.info.main,.5)),y(c.Slider,"successTrack",T(X,c.success.main,.5)),y(c.Slider,"warningTrack",T(X,c.warning.main,.5));const I=k?T(Q,c.background.default,.985):mt(c.background.default,.98);y(c.SnackbarContent,"bg",I),y(c.SnackbarContent,"color",Se(()=>k?Lr.text.primary:c.getContrastText(I))),y(c.SpeedDialAction,"fabHoverBg",mt(c.background.paper,.15)),y(c.StepConnector,"border",O("palette-grey-600")),y(c.StepContent,"border",O("palette-grey-600")),y(c.Switch,"defaultColor",O("palette-grey-300")),y(c.Switch,"defaultDisabledColor",O("palette-grey-600")),y(c.Switch,"primaryDisabledColor",T(X,c.primary.main,.55)),y(c.Switch,"secondaryDisabledColor",T(X,c.secondary.main,.55)),y(c.Switch,"errorDisabledColor",T(X,c.error.main,.55)),y(c.Switch,"infoDisabledColor",T(X,c.info.main,.55)),y(c.Switch,"successDisabledColor",T(X,c.success.main,.55)),y(c.Switch,"warningDisabledColor",T(X,c.warning.main,.55)),y(c.TableCell,"border",T(X,T($e,c.divider,1),.68)),y(c.Tooltip,"bg",T($e,c.grey[700],.92))}ke(c.background,"default"),ke(c.background,"paper"),ke(c.common,"background"),ke(c.common,"onBackground"),ke(c,"divider"),Object.keys(c).forEach(I=>{const M=c[I];I!=="tonalOffset"&&M&&typeof M=="object"&&(M.main&&y(c[I],"mainChannel",Ze(et(M.main))),M.light&&y(c[I],"lightChannel",Ze(et(M.light))),M.dark&&y(c[I],"darkChannel",Ze(et(M.dark))),M.contrastText&&y(c[I],"contrastTextChannel",Ze(et(M.contrastText))),I==="text"&&(ke(c[I],"primary"),ke(c[I],"secondary")),I==="action"&&(M.active&&ke(c[I],"active"),M.selected&&ke(c[I],"selected")))})}),A=t.reduce((B,c)=>he(B,c),A);const w={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:ji(A),enableContrastVars:i},{vars:$,generateThemeVars:te,generateStyleSheets:U}=si(A,w);return A.vars=$,Object.entries(A.colorSchemes[A.defaultColorScheme]).forEach(([B,c])=>{A[B]=c}),A.generateThemeVars=te,A.generateStyleSheets=U,A.generateSpacing=function(){return Pr(d.spacing,pn(this))},A.getColorSchemeSelector=ii(l),A.spacing=A.generateSpacing(),A.shouldSkipGeneratingVar=a,A.unstable_sxConfig={...Bt,...d==null?void 0:d.unstable_sxConfig},A.unstable_sx=function(c){return Ge({sx:c,theme:this})},A.toRuntimeSource=Wr,A}function cr(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:vn({...n===!0?{}:n.palette,mode:t})})}function Fi(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...i}=e,a=s||"light",l=o==null?void 0:o[a],f={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return cn(e,...t);let d=n;"palette"in e||f[a]&&(f[a]!==!0?d=f[a].palette:a==="dark"&&(d={mode:"dark"}));const h=cn({...e,palette:d},...t);return h.defaultColorScheme=a,h.colorSchemes=f,h.palette.mode==="light"&&(h.colorSchemes.light={...f.light!==!0&&f.light,palette:h.palette},cr(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},cr(h,"light",f.light)),h}return!n&&!("light"in f)&&a==="light"&&(f.light=!0),Wi({...i,colorSchemes:f,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Ur=Fi(),zr="$$material";function Vi(){const e=js(Ur);return process.env.NODE_ENV!=="production"&&ve.useDebugValue(e),e[zr]||e}function Ui(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const zi=e=>Ui(e)&&e!=="classes",Ki=Us({themeId:zr,defaultTheme:Ur,rootShouldForwardProp:zi}),Hi=ti;process.env.NODE_ENV!=="production"&&(Y.node,Y.object.isRequired);function Yi(e){return ei(e)}function qi(e){return bn("MuiSvgIcon",e)}Ls("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Gi=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return Eo(o,qi,r)},Ji=Ki("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(Hi(({theme:e})=>{var t,n,r,o,s,i,a,l,f,d,h,m,p,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:u=>!u.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:d.call(f,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,u])=>u&&u.main).map(([u])=>{var _,E;return{props:{color:u},style:{color:(E=(_=(e.vars??e).palette)==null?void 0:_[u])==null?void 0:E.main}}}),{props:{color:"action"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(g=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Et=ve.forwardRef(function(t,n){const r=Yi({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:f,inheritViewBox:d=!1,titleAccess:h,viewBox:m="0 0 24 24",...p}=r,g=ve.isValidElement(o)&&o.type==="svg",u={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:g},_={};d||(_.viewBox=m);const E=Gi(u);return S.jsxs(Ji,{as:a,className:Ar(E.root,s),focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,..._,...p,...g&&o.props,ownerState:u,children:[g?o.props.children:o,h?S.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Et.propTypes={children:Y.node,classes:Y.object,className:Y.string,color:Y.oneOfType([Y.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Y.string]),component:Y.elementType,fontSize:Y.oneOfType([Y.oneOf(["inherit","large","medium","small"]),Y.string]),htmlColor:Y.string,inheritViewBox:Y.bool,shapeRendering:Y.string,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),titleAccess:Y.string,viewBox:Y.string});Et.muiName="SvgIcon";function me(e,t){function n(r,o){return S.jsx(Et,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Et.muiName,ve.memo(ve.forwardRef(n))}const Xi=me(S.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo");function Qi(e){return S.jsx(R.Button,{name:e.name,"data-cy":e.dataCy??"cancel-button",className:e.className,sx:e.sx,startIcon:e.startIcon??S.jsx(Xi,{}),variant:e.variant??"contained",color:e.color??"secondary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const Zi=me(S.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");function ea(e){return S.jsx(R.Button,{"data-cy":e.dataCy??"delete-button",loading:e.loading??!1,loadingPosition:e.loadingPosition??"start",startIcon:e.startIcon??S.jsx(Zi,{}),name:e.name,variant:e.variant??"contained",color:e.color??"error",sx:{m:1},type:e.type??"button",onClick:e.onClick,children:e.label?e.label:"Delete"})}const ta=me(S.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");function na(e){return S.jsx(R.Tooltip,{title:e.tooltipTitle,children:S.jsx(R.IconButton,{sx:{pt:0,pb:0},color:e.color??"primary",onClick:()=>e.onClick(!0),"aria-label":e.tooltipTitle,children:S.jsx(ta,{})})})}function ra(e){return S.jsx(R.Button,{"data-cy":e.dataCy??"excel-button",style:{borderRadius:"20px"},className:e.className,name:e.name,sx:e.sx,startIcon:e.startIcon,variant:"contained",color:"success",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const oa=me(S.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function sa(e){return S.jsx(R.Tooltip,{title:"Go Back to Previous Page",children:S.jsxs(R.IconButton,{name:e.name,color:e.color??"primary",onClick:()=>e.navigate(-1),children:[S.jsx(oa,{}),e.children]})})}const ia=me(S.jsx("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History");function aa(e){return S.jsx(R.Button,{name:e.name,"data-cy":e.dataCy??"history-button",className:e.className,sx:e.sx??{p:1,m:1},startIcon:e.startIcon??S.jsx(ia,{}),variant:e.variant??"contained",color:e.color??"primary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const ca=me(S.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),la={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function ua(e){return S.jsx(R.Button,{name:e.name,"data-cy":e.dataCy??"loading-success-button",variant:e.variant??"contained",color:e.color??"success",loadingPosition:"start",startIcon:e.startIcon??S.jsx(ca,{}),loading:e.loading,type:e.type??"button",style:la,sx:e.sx,onClick:e.onClick,children:e.children??e.name})}const fa=me(S.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");function da(e){return S.jsx(R.Button,{name:e.name,"data-cy":e.dataCy??"manage-button",className:e.className,onClick:()=>e.onClick(),variant:e.variant??"contained",color:e.color??"primary",size:e.size??"large",startIcon:e.startIcon??S.jsx(fa,{}),children:e.children?e.children:"Manage"})}function ha(e){return S.jsx(R.Button,{name:e.name,"data-cy":e.dataCy??"success-button",className:e.className,sx:e.sx,startIcon:e.startIcon,variant:e.variant??"contained",color:e.color??"success",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const kn=me(S.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),ma=e=>{const[t,n]=ae.useState(!1);ae.useEffect(()=>{n(e.open)},[e.open,e.progressState]);const r=S.jsx(R.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:S.jsx(kn,{fontSize:"small"})});return S.jsxs(S.Fragment,{children:[S.jsx(R.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(R.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:e.progressState.message})}),S.jsx(R.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isError,TransitionComponent:R.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(R.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:e.progressState.message})})]})},ga=e=>{const[t,n]=ae.useState(!1);ae.useEffect(()=>{n(e.open)},[e.open,e]);const r=S.jsx(R.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:S.jsx(kn,{fontSize:"small"})});return S.jsxs(S.Fragment,{children:[S.jsx(R.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(R.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:e.message})}),S.jsx(R.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isError,TransitionComponent:R.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx(R.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:e.message})})]})};function pa(){return S.jsx("div",{style:{margin:"1.5rem"},className:"app-flex-justify-center",children:S.jsx(R.CircularProgress,{})})}function ya(e){const{onClose:t,title:n,message:r,open:o,...s}=e;return S.jsxs(R.Dialog,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...s,children:[S.jsx(R.DialogTitle,{children:n??"Confirm"}),S.jsx(R.DialogContent,{dividers:!0,children:r}),S.jsxs(R.DialogActions,{children:[S.jsx(R.Button,{autoFocus:!0,onClick:()=>t("No"),children:"Cancel"}),S.jsx(R.Button,{onClick:()=>t("Yes"),children:"Yes"})]})]})}function _a(e){const[t,n]=ae.useState(!0),[r]=ae.useState(e.dismissible??!0),[o]=ae.useState(e.dismissOnTimeOut??!0),[s]=ae.useState(e.dismissTimeOut??5e3);return setTimeout(()=>{n(o?!1:t)},s),S.jsx("span",{children:t&&S.jsx(R.Alert,{action:r?S.jsx(R.IconButton,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{n(!1)},children:S.jsx(kn,{fontSize:"inherit"})}):null,style:{margin:"20px"},...e,children:e.message})})}function ba(e){return S.jsx(R.Link,{component:kr.Link,to:e.href,className:"next-btn-link",underline:"hover",children:e.linkText??e.children})}const Sa=me(S.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");function va(e){return S.jsxs(R.Link,{component:kr.Link,to:e.href,target:e.target||"_blank",rel:"noreferrer",className:"next-btn-link",underline:"hover",children:[e.linkText??e.children,S.jsx(R.Icon,{sx:{fontSize:"1.1rem",mx:.75,verticalAlign:"middle",display:"inline-flex"},component:Sa})]})}function ka(e){const{condition:t,children:n,else:r}=e;return t?typeof n=="function"?n():n:r?typeof r=="function"?r():r:null}const lr=me(S.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),ur=me(S.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),fr=me(S.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),dr=me(S.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function wa(e){const t=Vi(),{count:n,page:r,rowsPerPage:o,onPageChange:s}=e,i=d=>{s(d,0)},a=d=>{s(d,r-1)},l=d=>{s(d,r+1)},f=d=>{s(d,Math.max(0,Math.ceil(n/o)-1))};return S.jsxs(R.Box,{sx:{flexShrink:0,ml:2.5},children:[S.jsx(R.IconButton,{onClick:i,disabled:r===0,"aria-label":"first page",children:t.direction==="rtl"?S.jsx(dr,{}):S.jsx(lr,{})}),S.jsx(R.IconButton,{onClick:a,disabled:r===0,"aria-label":"previous page",children:t.direction==="rtl"?S.jsx(fr,{}):S.jsx(ur,{})}),S.jsx(R.IconButton,{onClick:l,disabled:r>=Math.ceil(n/o)-1,"aria-label":"next page",children:t.direction==="rtl"?S.jsx(ur,{}):S.jsx(fr,{})}),S.jsx(R.IconButton,{onClick:f,disabled:r>=Math.ceil(n/o)-1,"aria-label":"last page",children:t.direction==="rtl"?S.jsx(lr,{}):S.jsx(dr,{})})]})}function Ta(e){const{children:t,index:n,...r}=e;return S.jsx("div",{className:"tabPanel",role:"tabpanel",id:`vertical-tabpanel-${n}`,"aria-labelledby":`vertical-tab-${n}`,...r,children:S.jsx(R.Box,{sx:{p:3},children:S.jsx(R.Typography,{component:"span",children:t})})})}function Ea(e){return{id:`vertical-tab-${e}`,"aria-controls":`vertical-tabpanel-${e}`}}class At{open(t){window.location.href=t}reload(){window.location.reload()}getCurrentHref(){return window.location.href}getPath(){const t=window.location;return t.pathname+(t.search||"")+(t.hash||"")}getOrigin(){return window.origin}}const hr=2e3,ze=console;class Aa{constructor(t,n,r,o=hr,s=!0){this._callback=t,this._client_id=n,this._url=r,this._interval=o||hr,this._stopOnError=s;const i=r.indexOf("/",r.indexOf("//")+2);this._frame_origin=r.substring(0,i),this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="absolute",this._frame.style.display="none",this._frame.width=0,this._frame.height=0,this._frame.src=r}load(){return new Promise(t=>{this._frame.onload=()=>{t()},window.document.body.appendChild(this._frame),this._boundMessageEvent=this._message.bind(this),window.addEventListener("message",this._boundMessageEvent,!1)})}_message(t){t.origin===this._frame_origin&&t.source===this._frame.contentWindow&&(t.data==="error"?(ze.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):t.data==="changed"?(ze.debug(t),ze.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):ze.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))}start(t){ze.debug("CheckSessionIFrame.start :"+t),this.stop();const n=()=>{this._frame.contentWindow.postMessage(this._client_id+" "+t,this._frame_origin)};n(),this._timer=window.setInterval(n,this._interval)}stop(){this._timer&&(ze.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)}}const j={service_worker_not_supported_by_browser:"service_worker_not_supported_by_browser",token_acquired:"token_acquired",logout_from_another_tab:"logout_from_another_tab",logout_from_same_tab:"logout_from_same_tab",token_renewed:"token_renewed",token_timer:"token_timer",loginAsync_begin:"loginAsync_begin",loginAsync_error:"loginAsync_error",loginCallbackAsync_begin:"loginCallbackAsync_begin",loginCallbackAsync_end:"loginCallbackAsync_end",loginCallbackAsync_error:"loginCallbackAsync_error",refreshTokensAsync_begin:"refreshTokensAsync_begin",refreshTokensAsync:"refreshTokensAsync",refreshTokensAsync_end:"refreshTokensAsync_end",refreshTokensAsync_error:"refreshTokensAsync_error",refreshTokensAsync_silent_error:"refreshTokensAsync_silent_error",tryKeepExistingSessionAsync_begin:"tryKeepExistingSessionAsync_begin",tryKeepExistingSessionAsync_end:"tryKeepExistingSessionAsync_end",tryKeepExistingSessionAsync_error:"tryKeepExistingSessionAsync_error",silentLoginAsync_begin:"silentLoginAsync_begin",silentLoginAsync:"silentLoginAsync",silentLoginAsync_end:"silentLoginAsync_end",silentLoginAsync_error:"silentLoginAsync_error",syncTokensAsync_begin:"syncTokensAsync_begin",syncTokensAsync_lock_not_available:"syncTokensAsync_lock_not_available",syncTokensAsync_end:"syncTokensAsync_end",syncTokensAsync_error:"syncTokensAsync_error",tokensInvalidAndWaitingActionsToRefresh:"tokensInvalidAndWaitingActionsToRefresh"},pe=(e,t=sessionStorage)=>{const n=u=>(t[`oidc.${e}`]=JSON.stringify({tokens:null,status:u}),Promise.resolve()),r=async()=>{if(!t[`oidc.${e}`])return t[`oidc.${e}`]=JSON.stringify({tokens:null,status:null}),{tokens:null,status:null};const u=JSON.parse(t[`oidc.${e}`]);return Promise.resolve({tokens:u.tokens,status:u.status})},o=u=>{t[`oidc.${e}`]=JSON.stringify({tokens:u})},s=async u=>{t[`oidc.session_state.${e}`]=u},i=async()=>t[`oidc.session_state.${e}`],a=u=>{t[`oidc.nonce.${e}`]=u.nonce},l=u=>{t[`oidc.jwk.${e}`]=JSON.stringify(u)},f=()=>JSON.parse(t[`oidc.jwk.${e}`]),d=async()=>({nonce:t[`oidc.nonce.${e}`]}),h=async u=>{t[`oidc.dpop_nonce.${e}`]=u},m=()=>t[`oidc.dpop_nonce.${e}`],p=()=>t[`oidc.${e}`]?JSON.stringify({tokens:JSON.parse(t[`oidc.${e}`]).tokens}):null,g={};return{clearAsync:n,initAsync:r,setTokens:o,getTokens:p,setSessionStateAsync:s,getSessionStateAsync:i,setNonceAsync:a,getNonceAsync:d,setLoginParams:u=>{g[e]=u,t[`oidc.login.${e}`]=JSON.stringify(u)},getLoginParams:()=>{const u=t[`oidc.login.${e}`];return u?(g[e]||(g[e]=JSON.parse(u)),g[e]):(console.warn(`storage[oidc.login.${e}] is empty, you should have an bad OIDC or code configuration somewhere.`),null)},getStateAsync:async()=>t[`oidc.state.${e}`],setStateAsync:async u=>{t[`oidc.state.${e}`]=u},getCodeVerifierAsync:async()=>t[`oidc.code_verifier.${e}`],setCodeVerifierAsync:async u=>{t[`oidc.code_verifier.${e}`]=u},setDemonstratingProofOfPossessionNonce:h,getDemonstratingProofOfPossessionNonce:m,setDemonstratingProofOfPossessionJwkAsync:l,getDemonstratingProofOfPossessionJwkAsync:f}};var ot=(e=>(e.AutomaticBeforeTokenExpiration="AutomaticBeforeTokensExpiration",e.AutomaticOnlyWhenFetchExecuted="AutomaticOnlyWhenFetchExecuted",e))(ot||{});const Ca=e=>decodeURIComponent(Array.prototype.map.call(atob(e),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),xa=e=>JSON.parse(Ca(e.replaceAll(/-/g,"+").replaceAll(/_/g,"/"))),mr=e=>{try{return e&&Oa(e,".")===2?xa(e.split(".")[1]):null}catch(t){console.warn(t)}return null},Oa=(e,t)=>e.split(t).length-1,ln={access_token_or_id_token_invalid:"access_token_or_id_token_invalid",access_token_invalid:"access_token_invalid",id_token_invalid:"id_token_invalid"};function Pa(e,t,n){if(e.issuedAt){if(typeof e.issuedAt=="string")return parseInt(e.issuedAt,10)}else return t&&t.iat?t.iat:n&&n.iat?n.iat:new Date().getTime()/1e3;return e.issuedAt}const wn=(e,t=null,n)=>{if(!e)return null;let r;const o=typeof e.expiresIn=="string"?parseInt(e.expiresIn,10):e.expiresIn;e.accessTokenPayload!==void 0?r=e.accessTokenPayload:r=mr(e.accessToken);let s;t!=null&&"idToken"in t&&!("idToken"in e)?s=t.idToken:s=e.idToken;const i=e.idTokenPayload?e.idTokenPayload:mr(s),a=i&&i.exp?i.exp:Number.MAX_VALUE,l=r&&r.exp?r.exp:e.issuedAt+o;e.issuedAt=Pa(e,r,i);let f;e.expiresAt?f=e.expiresAt:n===ln.access_token_invalid?f=l:n===ln.id_token_invalid?f=a:f=a<l?a:l;const d={...e,idTokenPayload:i,accessTokenPayload:r,expiresAt:f,idToken:s};if(t!=null&&"refreshToken"in t&&!("refreshToken"in e)){const h=t.refreshToken;return{...d,refreshToken:h}}return d},Tn=(e,t,n)=>{if(!e)return null;if(!e.issued_at){const o=new Date().getTime()/1e3;e.issued_at=o}const r={accessToken:e.access_token,expiresIn:e.expires_in,idToken:e.id_token,scope:e.scope,tokenType:e.token_type,issuedAt:e.issued_at};return"refresh_token"in e&&(r.refreshToken=e.refresh_token),e.accessTokenPayload!==void 0&&(r.accessTokenPayload=e.accessTokenPayload),e.idTokenPayload!==void 0&&(r.idTokenPayload=e.idTokenPayload),wn(r,t,n)},nt=(e,t)=>{const n=new Date().getTime()/1e3,r=t-n;return Math.round(r-e)},gr=(e,t=0)=>e?nt(t,e.expiresAt)>0:!1,Kr=async(e,t=200,n=50)=>{let r=n;if(!e.getTokens())return null;for(;!gr(e.getTokens(),e.configuration.refresh_time_before_tokens_expiration_in_second)&&r>0;){if(e.configuration.token_automatic_renew_mode==ot.AutomaticOnlyWhenFetchExecuted){await e.renewTokensAsync({});break}else await En({milliseconds:t});r=r-1}return{isTokensValid:gr(e.getTokens()),tokens:e.getTokens(),numberWaited:r-n}},Hr=(e,t,n)=>{if(e.idTokenPayload){const r=e.idTokenPayload;if(n.issuer!==r.iss)return{isValid:!1,reason:`Issuer does not match (oidcServerConfiguration issuer) ${n.issuer} !== (idTokenPayload issuer) ${r.iss}`};const o=new Date().getTime()/1e3;if(r.exp&&r.exp<o)return{isValid:!1,reason:`Token expired (idTokenPayload exp) ${r.exp} < (currentTimeUnixSecond) ${o}`};const s=60*60*24*7;if(r.iat&&r.iat+s<o)return{isValid:!1,reason:`Token is used from too long time (idTokenPayload iat + timeInSevenDays) ${r.iat+s} < (currentTimeUnixSecond) ${o}`};if(r.nonce&&r.nonce!==t)return{isValid:!1,reason:`Nonce does not match (idTokenPayload nonce) ${r.nonce} !== (nonce) ${t}`}}return{isValid:!0,reason:""}},Je=function(){const e=typeof window>"u"?global:window;return{setTimeout:setTimeout.bind(e),clearTimeout:clearTimeout.bind(e),setInterval:setInterval.bind(e),clearInterval:clearInterval.bind(e)}}(),Zt="7.25.14";let pr=null,Ct;const En=({milliseconds:e})=>new Promise(t=>Je.setTimeout(t,e)),Yr=(e="/")=>{try{Ct=new AbortController,fetch(`${e}OidcKeepAliveServiceWorker.json?minSleepSeconds=150`,{signal:Ct.signal}).catch(t=>{console.log(t)}),En({milliseconds:150*1e3}).then(Yr)}catch(t){console.log(t)}},en=()=>{Ct&&Ct.abort()},qr=e=>{const t=sessionStorage.getItem(`oidc.tabId.${e}`);if(t)return t;const n=globalThis.crypto.randomUUID();return sessionStorage.setItem(`oidc.tabId.${e}`,n),n},ce=e=>t=>new Promise(function(n,r){const o=new MessageChannel;o.port1.onmessage=function(s){s!=null&&s.data.error?r(s.data.error):n(s.data),o.port1.close(),o.port2.close()},e.active.postMessage({...t,tabId:qr(t.configurationName)},[o.port2])}),ye=async(e,t)=>{const n=e.service_worker_relative_url;if(typeof window>"u"||typeof navigator>"u"||!navigator.serviceWorker||!n||e.service_worker_activate()===!1)return null;const r=`${n}?v=${Zt}`;let o=null;e.service_worker_register?o=await e.service_worker_register(n):o=await navigator.serviceWorker.register(r,{updateViaCache:"none"}),o.addEventListener("updatefound",()=>{const w=o.installing;en(),w==null||w.addEventListener("statechange",()=>{w.state==="installed"&&navigator.serviceWorker.controller&&(en(),console.log("New SW waiting – skipWaiting()"),w.postMessage({type:"SKIP_WAITING"}))})}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("SW controller changed – reloading page"),en(),window.location.reload()});try{await navigator.serviceWorker.ready,navigator.serviceWorker.controller||await ce(o)({type:"claim"})}catch(w){return console.warn(`Failed init ServiceWorker ${w.toString()}`),null}const s=async w=>ce(o)({type:"clear",data:{status:w},configurationName:t}),i=async(w,$,te)=>{const U=await ce(o)({type:"init",data:{oidcServerConfiguration:w,where:$,oidcConfiguration:{token_renew_mode:te.token_renew_mode,service_worker_convert_all_requests_to_cors:te.service_worker_convert_all_requests_to_cors}},configurationName:t}),B=U.version;return B!==Zt&&console.warn(`Service worker ${B} version mismatch with js client version ${Zt}, unregistering and reloading`),{tokens:Tn(U.tokens,null,te.token_renew_mode),status:U.status}},a=(w="/")=>{pr==null&&(pr="not_null",Yr(w))},l=w=>ce(o)({type:"setSessionState",data:{sessionState:w},configurationName:t}),f=async()=>(await ce(o)({type:"getSessionState",data:null,configurationName:t})).sessionState,d=w=>(sessionStorage[`oidc.nonce.${t}`]=w.nonce,ce(o)({type:"setNonce",data:{nonce:w},configurationName:t})),h=async(w=!0)=>{let $=(await ce(o)({type:"getNonce",data:null,configurationName:t})).nonce;return $||($=sessionStorage[`oidc.nonce.${t}`],console.warn("nonce not found in service worker, using sessionStorage"),w&&(await d($),$=(await h(!1)).nonce)),{nonce:$}},m={},p=w=>{m[t]=w,localStorage[`oidc.login.${t}`]=JSON.stringify(w)},g=()=>{const w=localStorage[`oidc.login.${t}`];return m[t]||(m[t]=JSON.parse(w)),m[t]},u=async w=>{await ce(o)({type:"setDemonstratingProofOfPossessionNonce",data:{demonstratingProofOfPossessionNonce:w},configurationName:t})},_=async()=>(await ce(o)({type:"getDemonstratingProofOfPossessionNonce",data:null,configurationName:t})).demonstratingProofOfPossessionNonce,E=async w=>{const $=JSON.stringify(w);await ce(o)({type:"setDemonstratingProofOfPossessionJwk",data:{demonstratingProofOfPossessionJwkJson:$},configurationName:t})},C=async()=>{const w=await ce(o)({type:"getDemonstratingProofOfPossessionJwk",data:null,configurationName:t});return w.demonstratingProofOfPossessionJwkJson?JSON.parse(w.demonstratingProofOfPossessionJwkJson):null},N=async(w=!0)=>{let $=(await ce(o)({type:"getState",data:null,configurationName:t})).state;return $||($=sessionStorage[`oidc.state.${t}`],console.warn("state not found in service worker, using sessionStorage"),w&&(await k($),$=await N(!1))),$},k=async w=>(sessionStorage[`oidc.state.${t}`]=w,ce(o)({type:"setState",data:{state:w},configurationName:t})),b=async(w=!0)=>{let $=(await ce(o)({type:"getCodeVerifier",data:null,configurationName:t})).codeVerifier;return $||($=sessionStorage[`oidc.code_verifier.${t}`],console.warn("codeVerifier not found in service worker, using sessionStorage"),w&&(await A($),$=await b(!1))),$},A=async w=>(sessionStorage[`oidc.code_verifier.${t}`]=w,ce(o)({type:"setCodeVerifier",data:{codeVerifier:w},configurationName:t}));return{clearAsync:s,initAsync:i,startKeepAliveServiceWorker:()=>a(e.service_worker_keep_alive_path),setSessionStateAsync:l,getSessionStateAsync:f,setNonceAsync:d,getNonceAsync:h,setLoginParams:p,getLoginParams:g,getStateAsync:N,setStateAsync:k,getCodeVerifierAsync:b,setCodeVerifierAsync:A,setDemonstratingProofOfPossessionNonce:u,getDemonstratingProofOfPossessionNonce:_,setDemonstratingProofOfPossessionJwkAsync:E,getDemonstratingProofOfPossessionJwkAsync:C}},Ye={},Na=(e,t=window.sessionStorage,n)=>{if(!Ye[e]&&t){const o=t.getItem(e);o&&(Ye[e]=JSON.parse(o))}const r=1e3*n;return Ye[e]&&Ye[e].timestamp+r>Date.now()?Ye[e].result:null},$a=(e,t,n=window.sessionStorage)=>{const r=Date.now();Ye[e]={result:t,timestamp:r},n&&n.setItem(e,JSON.stringify({result:t,timestamp:r}))};function Gr(e){return new TextEncoder().encode(e)}function Jr(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+/g,"")}function Ia(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(t,n){return String.fromCharCode(parseInt(n,16))})}const An=e=>{let t="";return e.forEach(function(n){t+=String.fromCharCode(n)}),Jr(t)};function yr(e){return Jr(Ia(e))}const Ra={importKeyAlgorithm:{name:"ECDSA",namedCurve:"P-256",hash:{name:"ES256"}},signAlgorithm:{name:"ECDSA",hash:{name:"SHA-256"}},generateKeyAlgorithm:{name:"ECDSA",namedCurve:"P-256"},digestAlgorithm:{name:"SHA-256"},jwtHeaderAlgorithm:"ES256"},Da=e=>async(t,n,r,o,s="dpop+jwt")=>{switch(t=Object.assign({},t),n.typ=s,n.alg=o.jwtHeaderAlgorithm,n.alg){case"ES256":n.jwk={kty:t.kty,crv:t.crv,x:t.x,y:t.y};break;case"RS256":n.jwk={kty:t.kty,n:t.n,e:t.e,kid:n.kid};break;default:throw new Error("Unknown or not implemented JWS algorithm")}const i={protected:yr(JSON.stringify(n)),payload:yr(JSON.stringify(r))},a=o.importKeyAlgorithm,l=!0,f=["sign"],d=await e.crypto.subtle.importKey("jwk",t,a,l,f),h=Gr(`${i.protected}.${i.payload}`),m=o.signAlgorithm,p=await e.crypto.subtle.sign(m,d,h);return i.signature=An(new Uint8Array(p)),`${i.protected}.${i.payload}.${i.signature}`},ja={sign:Da},Ma=e=>async t=>{const n=t,r=!0,o=["sign","verify"],s=await e.crypto.subtle.generateKey(n,r,o);return await e.crypto.subtle.exportKey("jwk",s.privateKey)},La=e=>{const t=Object.assign({},e);return delete t.d,t.key_ops=["verify"],t},Ba={generate:Ma,neuter:La},Wa=e=>async(t,n)=>{let r;switch(t.kty){case"EC":r='{"crv":"CRV","kty":"EC","x":"X","y":"Y"}'.replace("CRV",t.crv).replace("X",t.x).replace("Y",t.y);break;case"RSA":r='{"e":"E","kty":"RSA","n":"N"}'.replace("E",t.e).replace("N",t.n);break;default:throw new Error("Unknown or not implemented JWK type")}const o=await e.crypto.subtle.digest(n,Gr(r));return An(new Uint8Array(o))},Fa={thumbprint:Wa},Va=e=>async t=>await Ba.generate(e)(t),Xr=e=>t=>async(n,r="POST",o,s={})=>{const i={jti:btoa(Ua()),htm:r,htu:o,iat:Math.round(Date.now()/1e3),...s},a=await Fa.thumbprint(e)(n,t.digestAlgorithm);return await ja.sign(e)(n,{kid:a},i,t)},Ua=()=>{const e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",t="0123456789abcdef";let n=0,r="";for(let o=0;o<36;o++)e[o]!=="-"&&e[o]!=="4"&&(n=Math.random()*16|0),e[o]==="x"?r+=t[n]:e[o]==="y"?(n&=3,n|=8,r+=t[n]):r+=e[o];return r},Qr=()=>{const e=typeof window<"u"&&!!window.crypto,t=e&&!!window.crypto.subtle;return{hasCrypto:e,hasSubtleCrypto:t}},un="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",za=e=>{const t=[];for(let n=0;n<e.byteLength;n+=1){const r=e[n]%un.length;t.push(un[r])}return t.join("")},fn=e=>{const t=new Uint8Array(e),{hasCrypto:n}=Qr();if(n)window.crypto.getRandomValues(t);else for(let r=0;r<e;r+=1)t[r]=Math.random()*un.length|0;return za(t)};function Ka(e){const t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}function Zr(e){return new Promise((t,n)=>{crypto.subtle.digest("SHA-256",Ka(e)).then(r=>t(An(new Uint8Array(r))),r=>n(r))})}const Ha=e=>{if(e.length<43||e.length>128)return Promise.reject(new Error("Invalid code length."));const{hasSubtleCrypto:t}=Qr();return t?Zr(e):Promise.reject(new Error("window.crypto.subtle is unavailable."))},Ya=60*60,qa=e=>async(t,n=Ya,r=window.sessionStorage,o=1e4)=>{const s=`${t}/.well-known/openid-configuration`,i=`oidc.server:${t}`,a=Na(i,r,n);if(a)return new hn(a);const l=await lt(e)(s,{},o);if(l.status!==200)return null;const f=await l.json();return $a(i,f,r),new hn(f)},lt=e=>async(t,n={},r=1e4,o=0)=>{let s;try{const i=new AbortController;setTimeout(()=>i.abort(),r),s=await e(t,{...n,signal:i.signal})}catch(i){if(i.name==="AbortError"||i.message==="Network request failed"){if(o<=1)return await lt(e)(t,n,r,o+1);throw i}else throw console.error(i.message),i}return s},dn={refresh_token:"refresh_token",access_token:"access_token"},_r=e=>async(t,n,r=dn.refresh_token,o,s={},i=1e4)=>{const a={token:n,token_type_hint:r,client_id:o};for(const[d,h]of Object.entries(s))a[d]===void 0&&(a[d]=h);const l=[];for(const d in a){const h=encodeURIComponent(d),m=encodeURIComponent(a[d]);l.push(`${h}=${m}`)}const f=l.join("&");return(await lt(e)(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:f},i)).status!==200?{success:!1}:{success:!0}},Ga=e=>async(t,n,r,o,s={},i,a=1e4)=>{for(const[p,g]of Object.entries(r))n[p]===void 0&&(n[p]=g);const l=[];for(const p in n){const g=encodeURIComponent(p),u=encodeURIComponent(n[p]);l.push(`${g}=${u}`)}const f=l.join("&"),d=await lt(e)(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8",...s},body:f},a);if(d.status!==200)return{success:!1,status:d.status,demonstratingProofOfPossessionNonce:null};const h=await d.json();let m=null;return d.headers.has(xt)&&(m=d.headers.get(xt)),{success:!0,status:d.status,data:Tn(h,o,i),demonstratingProofOfPossessionNonce:m}},Ja=(e,t)=>async(n,r)=>{r=r?{...r}:{};const o=fn(128),s=await Ha(o);await e.setCodeVerifierAsync(o),await e.setStateAsync(r.state),r.code_challenge=s,r.code_challenge_method="S256";let i="";if(r)for(const[a,l]of Object.entries(r))i===""?i+="?":i+="&",i+=`${a}=${encodeURIComponent(l)}`;t.open(`${n}${i}`)},xt="DPoP-Nonce",Xa=e=>async(t,n,r,o,s=1e4)=>{n=n?{...n}:{},n.code_verifier=await e.getCodeVerifierAsync();const i=[];for(const h in n){const m=encodeURIComponent(h),p=encodeURIComponent(n[h]);i.push(`${m}=${p}`)}const a=i.join("&"),l=await lt(fetch)(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8",...r},body:a},s);if(await Promise.all([e.setCodeVerifierAsync(null),e.setStateAsync(null)]),l.status!==200)return{success:!1,status:l.status};let f=null;l.headers.has(xt)&&(f=l.headers.get(xt));const d=await l.json();return{success:!0,data:{state:n.state,tokens:Tn(d,null,o),demonstratingProofOfPossessionNonce:f}}};async function br(e,t,n,r=null){const o=a=>{e.tokens=a},{tokens:s,status:i}=await pt(e)(o,0,0,t,n,r);return await ye(e.configuration,e.configurationName)||await pe(e.configurationName,e.configuration.storage).setTokens(e.tokens),e.tokens?s:(await e.destroyAsync(i),null)}async function eo(e,t=!1,n=null,r=null){const o=e.configuration,s=`${o.client_id}_${e.configurationName}_${o.authority}`;let i;const a=await ye(e.configuration,e.configurationName);if((o==null?void 0:o.storage)===(window==null?void 0:window.sessionStorage)&&!a||!navigator.locks)i=await br(e,t,n,r);else{let l="retry";for(;l==="retry";)l=await navigator.locks.request(s,{ifAvailable:!0},async f=>f?await br(e,t,n,r):(e.publishEvent(Te.eventNames.syncTokensAsync_lock_not_available,{lock:"lock not available"}),"retry"));i=l}return i?(e.timeoutId&&(e.timeoutId=st(e,e.tokens.expiresAt,n,r)),e.tokens):null}const st=(e,t,n=null,r=null)=>{const o=e.configuration.refresh_time_before_tokens_expiration_in_second;return e.timeoutId&&Je.clearTimeout(e.timeoutId),Je.setTimeout(async()=>{const s={timeLeft:nt(o,t)};e.publishEvent(Te.eventNames.token_timer,s),await eo(e,!1,n,r)},1e3)},Ae={FORCE_REFRESH:"FORCE_REFRESH",SESSION_LOST:"SESSION_LOST",NOT_CONNECTED:"NOT_CONNECTED",TOKENS_VALID:"TOKENS_VALID",TOKEN_UPDATED_BY_ANOTHER_TAB_TOKENS_VALID:"TOKEN_UPDATED_BY_ANOTHER_TAB_TOKENS_VALID",LOGOUT_FROM_ANOTHER_TAB:"LOGOUT_FROM_ANOTHER_TAB",REQUIRE_SYNC_TOKENS:"REQUIRE_SYNC_TOKENS"},Qa=e=>async(t,n,r,o=!1)=>{const s={nonce:null};if(!r)return{tokens:null,status:"NOT_CONNECTED",nonce:s};let i=s;const a=await e.initAsync(t.authority,t.authority_configuration),l=await ye(t,n);if(l){const{status:d,tokens:h}=await l.initAsync(a,"syncTokensAsync",t);if(d==="LOGGED_OUT")return{tokens:null,status:"LOGOUT_FROM_ANOTHER_TAB",nonce:s};if(d==="SESSIONS_LOST")return{tokens:null,status:"SESSIONS_LOST",nonce:s};if(!d||!h)return{tokens:null,status:"REQUIRE_SYNC_TOKENS",nonce:s};if(h.issuedAt!==r.issuedAt){const m=nt(t.refresh_time_before_tokens_expiration_in_second,h.expiresAt)>0?"TOKEN_UPDATED_BY_ANOTHER_TAB_TOKENS_VALID":"TOKEN_UPDATED_BY_ANOTHER_TAB_TOKENS_INVALID",p=await l.getNonceAsync();return{tokens:h,status:m,nonce:p}}i=await l.getNonceAsync()}else{const d=pe(n,t.storage??sessionStorage),h=await d.initAsync();let{tokens:m}=h;const{status:p}=h;if(m&&(m=wn(m,e.tokens,t.token_renew_mode)),m){if(p==="SESSIONS_LOST")return{tokens:null,status:"SESSIONS_LOST",nonce:s};if(m.issuedAt!==r.issuedAt){const g=nt(t.refresh_time_before_tokens_expiration_in_second,m.expiresAt)>0?"TOKEN_UPDATED_BY_ANOTHER_TAB_TOKENS_VALID":"TOKEN_UPDATED_BY_ANOTHER_TAB_TOKENS_INVALID",u=await d.getNonceAsync();return{tokens:m,status:g,nonce:u}}}else return{tokens:null,status:"LOGOUT_FROM_ANOTHER_TAB",nonce:s};i=await d.getNonceAsync()}const f=nt(t.refresh_time_before_tokens_expiration_in_second,r.expiresAt)>0?"TOKENS_VALID":"TOKENS_INVALID";return o?{tokens:r,status:"FORCE_REFRESH",nonce:i}:{tokens:r,status:f,nonce:i}},pt=e=>async(t,n=0,r=0,o=!1,s=null,i=null)=>{if(!navigator.onLine&&document.hidden)return{tokens:e.tokens,status:"GIVE_UP"};let a=6;const l=5,f=5;for(;!navigator.onLine&&a>0;)await En({milliseconds:1e3}),a--,e.publishEvent(j.refreshTokensAsync,{message:`wait because navigator is offline try ${a}`});const d=document.hidden,h=d?n:n+1,m=d?r+1:r;if(n>=l||r>=f)return t(null),e.publishEvent(j.refreshTokensAsync_error,{message:"refresh token"}),{tokens:null,status:"SESSION_LOST"};s||(s={});const p=e.configuration,g=(_,E=null,C=null)=>Cn(e.configurationName,e.configuration,e.publishEvent.bind(e))(_,E,C),u=async()=>{try{let _;const E=await ye(p,e.configurationName);E?_=E.getLoginParams():_=pe(e.configurationName,p.storage).getLoginParams();const C=await g({..._.extras,...s,prompt:"none",scope:i});return C?C.error?(t(null),e.publishEvent(j.refreshTokensAsync_error,{message:"refresh token silent"}),{tokens:null,status:"SESSION_LOST"}):(t(C.tokens),e.publishEvent(Te.eventNames.token_renewed,{}),{tokens:C.tokens,status:"LOGGED"}):(t(null),e.publishEvent(j.refreshTokensAsync_error,{message:"refresh token silent not active"}),{tokens:null,status:"SESSION_LOST"})}catch(_){return console.error(_),e.publishEvent(j.refreshTokensAsync_silent_error,{message:"exceptionSilent",exception:_.message}),await pt(e)(t,h,m,o,s,i)}};try{const{status:_,tokens:E,nonce:C}=await Qa(e)(p,e.configurationName,e.tokens,o);switch(_){case Ae.SESSION_LOST:return t(null),e.publishEvent(j.refreshTokensAsync_error,{message:"refresh token session lost"}),{tokens:null,status:"SESSION_LOST"};case Ae.NOT_CONNECTED:return t(null),{tokens:null,status:null};case Ae.TOKENS_VALID:return t(E),{tokens:E,status:"LOGGED_IN"};case Ae.TOKEN_UPDATED_BY_ANOTHER_TAB_TOKENS_VALID:return t(E),e.publishEvent(Te.eventNames.token_renewed,{reason:"TOKEN_UPDATED_BY_ANOTHER_TAB_TOKENS_VALID"}),{tokens:E,status:"LOGGED_IN"};case Ae.LOGOUT_FROM_ANOTHER_TAB:return t(null),e.publishEvent(j.logout_from_another_tab,{status:"session syncTokensAsync"}),{tokens:null,status:"LOGGED_OUT"};case Ae.REQUIRE_SYNC_TOKENS:return p.token_automatic_renew_mode==ot.AutomaticOnlyWhenFetchExecuted&&Ae.FORCE_REFRESH!==_?(e.publishEvent(j.tokensInvalidAndWaitingActionsToRefresh,{}),{tokens:e.tokens,status:"GIVE_UP"}):(e.publishEvent(j.refreshTokensAsync_begin,{tryNumber:n}),await u());default:{if(p.token_automatic_renew_mode==ot.AutomaticOnlyWhenFetchExecuted&&Ae.FORCE_REFRESH!==_)return e.publishEvent(j.tokensInvalidAndWaitingActionsToRefresh,{}),{tokens:e.tokens,status:"GIVE_UP"};if(e.publishEvent(j.refreshTokensAsync_begin,{refreshToken:E.refreshToken,status:_,tryNumber:n,backgroundTry:r}),!E.refreshToken)return await u();const N=p.client_id,k=p.redirect_uri,b=p.authority,A={...p.token_request_extras?p.token_request_extras:{}};for(const[w,$]of Object.entries(s))w.endsWith(":token_request")&&(A[w.replace(":token_request","")]=$);return await(async()=>{const w={client_id:N,redirect_uri:k,grant_type:"refresh_token",refresh_token:E.refreshToken},$=await e.initAsync(b,p.authority_configuration),te=document.hidden?1e4:3e4*10,U=$.tokenEndpoint,B={};p.demonstrating_proof_of_possession&&(B.DPoP=await e.generateDemonstrationOfProofOfPossessionAsync(E.accessToken,U,"POST"));const c=await Ga(e.getFetch())(U,w,A,E,B,p.token_renew_mode,te);if(c.success){const{isValid:O,reason:T}=Hr(c.data,C.nonce,$);if(!O)return t(null),e.publishEvent(j.refreshTokensAsync_error,{message:`refresh token return not valid tokens, reason: ${T}`}),{tokens:null,status:"SESSION_LOST"};if(t(c.data),c.demonstratingProofOfPossessionNonce){const I=await ye(p,e.configurationName);I?await I.setDemonstratingProofOfPossessionNonce(c.demonstratingProofOfPossessionNonce):await pe(e.configurationName,p.storage).setDemonstratingProofOfPossessionNonce(c.demonstratingProofOfPossessionNonce)}return e.publishEvent(j.refreshTokensAsync_end,{success:c.success}),e.publishEvent(Te.eventNames.token_renewed,{reason:"REFRESH_TOKEN"}),{tokens:c.data,status:"LOGGED_IN"}}else return e.publishEvent(j.refreshTokensAsync_silent_error,{message:"bad request",tokenResponse:c}),c.status>=400&&c.status<500?(t(null),e.publishEvent(j.refreshTokensAsync_error,{message:`session lost: ${c.status}`}),{tokens:null,status:"SESSION_LOST"}):await pt(e)(t,h,m,o,s,i)})()}}}catch(_){return console.error(_),e.publishEvent(j.refreshTokensAsync_silent_error,{message:"exception",exception:_.message}),new Promise((E,C)=>{setTimeout(()=>{pt(e)(t,h,m,o,s,i).then(E).catch(C)},1e3)})}},Cn=(e,t,n)=>(r=null,o=null,s=null)=>{if(!t.silent_redirect_uri||!t.silent_login_uri)return Promise.resolve(null);try{n(j.silentLoginAsync_begin,{});let i="";if(o&&(r==null&&(r={}),r.state=o),s!=null&&(r==null&&(r={}),r.scope=s),r!=null)for(const[h,m]of Object.entries(r))i===""?i=`?${encodeURIComponent(h)}=${encodeURIComponent(m)}`:i+=`&${encodeURIComponent(h)}=${encodeURIComponent(m)}`;const a=t.silent_login_uri+i,l=a.indexOf("/",a.indexOf("//")+2),f=a.substring(0,l),d=document.createElement("iframe");return d.width="0px",d.height="0px",d.id=`${e}_oidc_iframe`,d.setAttribute("src",a),document.body.appendChild(d),new Promise((h,m)=>{let p=!1;const g=()=>{window.removeEventListener("message",u),d.remove(),p=!0},u=_=>{if(_.origin===f&&_.source===d.contentWindow){const E=`${e}_oidc_tokens:`,C=`${e}_oidc_error:`,N=`${e}_oidc_exception:`,k=_.data;if(k&&typeof k=="string"&&!p){if(k.startsWith(E)){const b=JSON.parse(_.data.replace(E,""));n(j.silentLoginAsync_end,{}),h(b),g()}else if(k.startsWith(C)){const b=JSON.parse(_.data.replace(C,""));n(j.silentLoginAsync_error,b),h({error:"oidc_"+b.error,tokens:null,sessionState:null}),g()}else if(k.startsWith(N)){const b=JSON.parse(_.data.replace(N,""));n(j.silentLoginAsync_error,b),m(new Error(b.error)),g()}}}};try{window.addEventListener("message",u);const _=t.silent_login_timeout;setTimeout(()=>{p||(g(),n(j.silentLoginAsync_error,{reason:"timeout"}),m(new Error("timeout")))},_)}catch(_){g(),n(j.silentLoginAsync_error,_),m(_)}})}catch(i){throw n(j.silentLoginAsync_error,i),i}},Za=(e,t,n,r,o)=>(s=null,i=void 0)=>{s={...s};const a=(l,f,d)=>Cn(t,n,r.bind(o))(l,f,d);return(async()=>{o.timeoutId&&Je.clearTimeout(o.timeoutId);let l;s&&"state"in s&&(l=s.state,delete s.state);try{const f=n.extras?{...n.extras,...s}:s,d=await a({...f,prompt:"none"},l,i);if(d)return o.tokens=d.tokens,r(j.token_acquired,{}),o.timeoutId=st(o,o.tokens.expiresAt,s,i),{}}catch(f){return f}})()},ec=(e,t,n)=>(r,o,s,i=!1)=>{const a=(l,f=void 0,d=void 0)=>Cn(e.configurationName,n,e.publishEvent.bind(e))(l,f,d);return new Promise((l,f)=>{if(n.silent_login_uri&&n.silent_redirect_uri&&n.monitor_session&&r&&s&&!i){const d=()=>{e.checkSessionIFrame.stop();const h=e.tokens;if(h===null)return;const m=h.idToken,p=h.idTokenPayload;return a({prompt:"none",id_token_hint:m,scope:n.scope||"openid"}).then(g=>{if(g.error)throw new Error(g.error);const u=g.tokens.idTokenPayload;if(p.sub===u.sub){const _=g.sessionState;e.checkSessionIFrame.start(g.sessionState),p.sid===u.sid?console.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",_):console.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",_)}else console.debug("SessionMonitor._callback: Different subject signed into OP:",u.sub)}).catch(async g=>{console.warn("SessionMonitor._callback: Silent login failed, logging out other tabs:",g);for(const[,u]of Object.entries(t))await u.logoutOtherTabAsync(n.client_id,p.sub)})};e.checkSessionIFrame=new Aa(d,o,r),e.checkSessionIFrame.load().then(()=>{e.checkSessionIFrame.start(s),l(e.checkSessionIFrame)}).catch(h=>{f(h)})}else l(null)})},tc=e=>!!(e.os==="iOS"&&e.osVersion.startsWith("12")||e.os==="Mac OS X"&&e.osVersion.startsWith("10_15_6")),nc=e=>{const t=e.appVersion,n=e.userAgent,r="-";let o=r;const s=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows Vista",r:/Windows NT 6.0/},{s:"Windows Server 2003",r:/Windows NT 5.2/},{s:"Windows XP",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows 2000",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows ME",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows 98",r:/(Windows 98|Win98)/},{s:"Windows 95",r:/(Windows 95|Win95|Windows_95)/},{s:"Windows NT 4.0",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Windows CE",r:/Windows CE/},{s:"Windows 3.11",r:/Win16/},{s:"Android",r:/Android/},{s:"Open BSD",r:/OpenBSD/},{s:"Sun OS",r:/SunOS/},{s:"Chrome OS",r:/CrOS/},{s:"Linux",r:/(Linux|X11(?!.*CrOS))/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(Mac OS|MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BeOS",r:/BeOS/},{s:"OS/2",r:/OS\/2/},{s:"Search Bot",r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}];for(const a in s){const l=s[a];if(l.r.test(n)){o=l.s;break}}let i=r;switch(/Windows/.test(o)&&(i=/Windows (.*)/.exec(o)[1],o="Windows"),o){case"Mac OS":case"Mac OS X":case"Android":i=/(?:Android|Mac OS|Mac OS X|MacPPC|MacIntel|Mac_PowerPC|Macintosh) ([._\d]+)/.exec(n)[1];break;case"iOS":{const a=/OS (\d+)_(\d+)_?(\d+)?/.exec(t);a!=null&&a.length>2&&(i=a[1]+"."+a[2]+"."+(parseInt(a[3])|0));break}}return{os:o,osVersion:i}};function rc(){const e=navigator.userAgent;let t,n=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(n[1]))return t=/\brv[ :]+(\d+)/g.exec(e)||[],{name:"ie",version:t[1]||""};if(n[1]==="Chrome"&&(t=e.match(/\bOPR|Edge\/(\d+)/),t!=null)){let r=t[1];if(!r){const o=e.split(t[0]+"/");o.length>1&&(r=o[1])}return{name:"opera",version:r}}return n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],(t=e.match(/version\/(\d+)/i))!=null&&n.splice(1,1,t[1]),{name:n[0].toLowerCase(),version:n[1]}}const oc=()=>{const{name:e,version:t}=rc();if(e==="chrome"&&parseInt(t)<=70||e==="opera"&&(!t||parseInt(t.split(".")[0])<80)||e==="ie")return!1;const n=nc(navigator);return!tc(n)},sc=async e=>{let t;if(e.tokens!=null)return!1;e.publishEvent(j.tryKeepExistingSessionAsync_begin,{});try{const n=e.configuration,r=await e.initAsync(n.authority,n.authority_configuration);if(t=await ye(n,e.configurationName),t){const{tokens:o}=await t.initAsync(r,"tryKeepExistingSessionAsync",n);if(o){t.startKeepAliveServiceWorker(),e.tokens=o;const s=t.getLoginParams(e.configurationName);e.timeoutId=st(e,e.tokens.expiresAt,s.extras,s.scope);const i=await t.getSessionStateAsync();return await e.startCheckSessionAsync(r.checkSessionIframe,n.client_id,i),n.preload_user_info&&await e.userInfoAsync(),e.publishEvent(j.tryKeepExistingSessionAsync_end,{success:!0,message:"tokens inside ServiceWorker are valid"}),!0}e.publishEvent(j.tryKeepExistingSessionAsync_end,{success:!1,message:"no exiting session found"})}else{n.service_worker_relative_url&&e.publishEvent(j.service_worker_not_supported_by_browser,{message:"service worker is not supported by this browser"});const o=pe(e.configurationName,n.storage??sessionStorage),{tokens:s}=await o.initAsync();if(s){e.tokens=wn(s,null,n.token_renew_mode);const i=o.getLoginParams();e.timeoutId=st(e,e.tokens.expiresAt,i.extras,i.scope);const a=await o.getSessionStateAsync();return await e.startCheckSessionAsync(r.checkSessionIframe,n.client_id,a),n.preload_user_info&&await e.userInfoAsync(),e.publishEvent(j.tryKeepExistingSessionAsync_end,{success:!0,message:"tokens inside storage are valid"}),!0}}return e.publishEvent(j.tryKeepExistingSessionAsync_end,{success:!1,message:t?"service worker sessions not retrieved":"session storage sessions not retrieved"}),!1}catch(n){return console.error(n),t&&await t.clearAsync(),e.publishEvent(j.tryKeepExistingSessionAsync_error,"tokens inside ServiceWorker are invalid"),!1}},to=e=>{const t=e.match(/^([a-z][\w-]+\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(!t)throw new Error("Invalid URL");let n=t[6],r=t[7];if(r){const o=r.split("?");o.length===2&&(r=o[0],n=o[1])}return n.startsWith("?")&&(n=n.slice(1)),t&&{href:e,protocol:t[1],host:t[2],hostname:t[3],port:t[4],path:t[5],search:n,hash:r}},Qe=e=>{const t=to(e);let{path:n}=t;n.endsWith("/")&&(n=n.slice(0,-1));let{hash:r}=t;return r==="#_=_"&&(r=""),r&&(n+=r),n},Ot=e=>{const t=to(e),{search:n}=t;return ic(n)},ic=e=>{const t={};let n,r,o;const s=e.split("&");for(r=0,o=s.length;r<o;r++)n=s[r].split("="),t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]);return t},ac=(e,t,n,r,o)=>(s=void 0,i=null,a=!1,l=void 0)=>{const f=i;return i={...i},(async()=>{const d=s||o.getPath();if("state"in i||(i.state=fn(16)),n(j.loginAsync_begin,{}),i)for(const h of Object.keys(i))h.endsWith(":token_request")&&delete i[h];try{const h=a?t.silent_redirect_uri:t.redirect_uri;l||(l=t.scope);const m=t.extras?{...t.extras,...i}:i;m.nonce||(m.nonce=fn(12));const p={nonce:m.nonce},g=await ye(t,e),u=await r(t.authority,t.authority_configuration);let _;if(g)g.setLoginParams({callbackPath:d,extras:f,scope:l}),await g.initAsync(u,"loginAsync",t),await g.setNonceAsync(p),g.startKeepAliveServiceWorker(),_=g;else{const C=pe(e,t.storage??sessionStorage);C.setLoginParams({callbackPath:d,extras:f,scope:l}),await C.setNonceAsync(p),_=C}const E={client_id:t.client_id,redirect_uri:h,scope:l,response_type:"code",...m};await Ja(_,o)(u.authorizationEndpoint,E)}catch(h){throw n(j.loginAsync_error,h),h}})()},cc=e=>async(t=!1)=>{try{e.publishEvent(j.loginCallbackAsync_begin,{});const n=e.configuration,r=n.client_id,o=t?n.silent_redirect_uri:n.redirect_uri,s=n.authority,i=n.token_request_timeout,a=await e.initAsync(s,n.authority_configuration),l=e.location.getCurrentHref(),f=Ot(l),d=f.session_state,h=await ye(n,e.configurationName);let m,p,g,u;if(h)await h.initAsync(a,"loginCallbackAsync",n),await h.setSessionStateAsync(d),p=await h.getNonceAsync(),g=h.getLoginParams(),u=await h.getStateAsync(),h.startKeepAliveServiceWorker(),m=h;else{const U=pe(e.configurationName,n.storage??sessionStorage);await U.setSessionStateAsync(d),p=await U.getNonceAsync(),g=U.getLoginParams(),u=await U.getStateAsync(),m=U}if(f.error||f.error_description)throw new Error(`Error from OIDC server: ${f.error} - ${f.error_description}`);if(f.iss&&f.iss!==a.issuer)throw console.error(),new Error(`Issuer not valid (expected: ${a.issuer}, received: ${f.iss})`);if(f.state&&f.state!==u)throw new Error(`State not valid (expected: ${u}, received: ${f.state})`);const _={code:f.code,grant_type:"authorization_code",client_id:n.client_id,redirect_uri:o},E={};if(n.token_request_extras)for(const[U,B]of Object.entries(n.token_request_extras))E[U]=B;if(g!=null&&g.extras)for(const[U,B]of Object.entries(g.extras))U.endsWith(":token_request")&&(E[U.replace(":token_request","")]=B);const C=a.tokenEndpoint,N={};if(n.demonstrating_proof_of_possession)if(h)N.DPoP=`DPOP_SECURED_BY_OIDC_SERVICE_WORKER_${e.configurationName}`;else{const U=await Va(window)(n.demonstrating_proof_of_possession_configuration.generateKeyAlgorithm);await pe(e.configurationName,n.storage).setDemonstratingProofOfPossessionJwkAsync(U),N.DPoP=await Xr(window)(n.demonstrating_proof_of_possession_configuration)(U,"POST",C)}const k=await Xa(m)(C,{..._,...E},N,e.configuration.token_renew_mode,i);if(!k.success)throw new Error("Token request failed");let b;const A=k.data.tokens,w=k.data.demonstratingProofOfPossessionNonce;if(k.data.state!==E.state)throw new Error("state is not valid");const{isValid:$,reason:te}=Hr(A,p.nonce,a);if(!$)throw new Error(`Tokens are not OpenID valid, reason: ${te}`);if(h){if(A.refreshToken&&!A.refreshToken.includes("SECURED_BY_OIDC_SERVICE_WORKER"))throw new Error("Refresh token should be hidden by service worker");if(w&&A!=null&&A.accessToken.includes("SECURED_BY_OIDC_SERVICE_WORKER"))throw new Error("Demonstration of proof of possession require Access token not hidden by service worker")}if(h)await h.initAsync(a,"syncTokensAsync",n),b=h.getLoginParams(),w&&await h.setDemonstratingProofOfPossessionNonce(w);else{const U=pe(e.configurationName,n.storage);b=U.getLoginParams(),w&&await U.setDemonstratingProofOfPossessionNonce(w)}return await e.startCheckSessionAsync(a.checkSessionIframe,r,d,t),e.publishEvent(j.loginCallbackAsync_end,{}),{tokens:A,state:"request.state",callbackPath:b.callbackPath,scope:f.scope,extras:b.extras}}catch(n){throw console.error(n),e.publishEvent(j.loginCallbackAsync_error,n),n}},Sr={access_token:"access_token",refresh_token:"refresh_token"},tn=(e,t)=>{const n={};if(e){for(const[r,o]of Object.entries(e))if(r.endsWith(t)){const s=r.replace(t,"");n[s]=o}return n}return n},lc=e=>{const t={};if(e){for(const[n,r]of Object.entries(e))n.includes(":")||(t[n]=r);return t}return t},uc=e=>async t=>{Je.clearTimeout(e.timeoutId),e.timeoutId=null,e.checkSessionIFrame&&e.checkSessionIFrame.stop();const n=await ye(e.configuration,e.configurationName);n?await n.clearAsync(t):await pe(e.configurationName,e.configuration.storage).clearAsync(t),e.tokens=null,e.userInfo=null},fc=(e,t,n,r,o)=>async(s=void 0,i=null)=>{var a,l;const f=e.configuration,d=await e.initAsync(f.authority,f.authority_configuration);s&&typeof s!="string"&&(s=void 0,r.warn("callbackPathOrUrl path is not a string"));const h=s??o.getPath();let m=!1;s&&(m=s.includes("https://")||s.includes("http://"));const p=m?s:o.getOrigin()+h,g=e.tokens?e.tokens.idToken:"";try{const C=d.revocationEndpoint;if(C){const N=[],k=e.tokens?e.tokens.accessToken:null;if(k&&f.logout_tokens_to_invalidate.includes(Sr.access_token)){const A=tn(i,":revoke_access_token"),w=_r(n)(C,k,dn.access_token,f.client_id,A);N.push(w)}const b=e.tokens?e.tokens.refreshToken:null;if(b&&f.logout_tokens_to_invalidate.includes(Sr.refresh_token)){const A=tn(i,":revoke_refresh_token"),w=_r(n)(C,b,dn.refresh_token,f.client_id,A);N.push(w)}N.length>0&&await Promise.all(N)}}catch(C){r.warn("logoutAsync: error when revoking tokens, if the error persist, you ay configure property logout_tokens_to_invalidate from configuration to avoid this error"),r.warn(C)}const u=((l=(a=e.tokens)==null?void 0:a.idTokenPayload)==null?void 0:l.sub)??null;await e.destroyAsync("LOGGED_OUT");for(const[,C]of Object.entries(t))C!==e?await e.logoutSameTabAsync(e.configuration.client_id,u):e.publishEvent(j.logout_from_same_tab,{});const _=tn(i,":oidc");if(_&&_.no_reload==="true")return;const E=lc(i);if(d.endSessionEndpoint){"id_token_hint"in E||(E.id_token_hint=g),!("post_logout_redirect_uri"in E)&&s!==null&&(E.post_logout_redirect_uri=p);let C="";for(const[N,k]of Object.entries(E))k!=null&&(C===""?C+="?":C+="&",C+=`${N}=${encodeURIComponent(k)}`);o.open(`${d.endSessionEndpoint}${C}`)}else o.reload()},no=(e,t,n=!1)=>async(...r)=>{var o;const[s,i,...a]=r,l=i?{...i}:{method:"GET"};let f=new Headers;l.headers&&(f=l.headers instanceof Headers?l.headers:new Headers(l.headers));const d={getTokens:()=>t.tokens,configuration:{token_automatic_renew_mode:t.configuration.token_automatic_renew_mode,refresh_time_before_tokens_expiration_in_second:t.configuration.refresh_time_before_tokens_expiration_in_second},renewTokensAsync:t.renewTokensAsync.bind(t)},h=await Kr(d),m=(o=h==null?void 0:h.tokens)==null?void 0:o.accessToken;if(f.has("Accept")||f.set("Accept","application/json"),m){if(t.configuration.demonstrating_proof_of_possession&&n){const g=await t.generateDemonstrationOfProofOfPossessionAsync(m,s.toString(),l.method);f.set("Authorization",`DPoP ${m}`),f.set("DPoP",g)}else f.set("Authorization",`Bearer ${m}`);l.credentials||(l.credentials="same-origin")}const p={...l,headers:f};return await e(s,p,...a)},dc=e=>async(t=!1,n=!1)=>{if(e.userInfo!=null&&!t)return e.userInfo;const r=e.configuration,o=(await e.initAsync(r.authority,r.authority_configuration)).userInfoEndpoint,s=await(async()=>{const i=await no(fetch,e,n)(o);return i.status!==200?null:i.json()})();return e.userInfo=s,s},hc=()=>fetch;class hn{constructor(t){this.authorizationEndpoint=t.authorization_endpoint,this.tokenEndpoint=t.token_endpoint,this.revocationEndpoint=t.revocation_endpoint,this.userInfoEndpoint=t.userinfo_endpoint,this.checkSessionIframe=t.check_session_iframe,this.issuer=t.issuer,this.endSessionEndpoint=t.end_session_endpoint}}const Re={},mc=(e,t=new At)=>(n,r="default")=>(Re[r]||(Re[r]=new Te(n,r,e,t)),Re[r]),gc=async e=>{const{parsedTokens:t,callbackPath:n,extras:r,scope:o}=await e.loginCallbackAsync();return e.timeoutId=st(e,t.expiresAt,r,o),{callbackPath:n}},pc=e=>Math.floor(Math.random()*e),mn=class ro{constructor(t,n="default",r,o=new At){this.initPromise=null,this.tryKeepExistingSessionPromise=null,this.loginPromise=null,this.loginCallbackPromise=null,this.loginCallbackWithAutoTokensRenewPromise=null,this.userInfoPromise=null,this.renewTokensPromise=null,this.logoutPromise=null;let s=t.silent_login_uri;t.silent_redirect_uri&&!t.silent_login_uri&&(s=`${t.silent_redirect_uri.replace("-callback","").replace("callback","")}-login`);let i=t.refresh_time_before_tokens_expiration_in_second??120;i>60&&(i=i-Math.floor(Math.random()*40)),this.location=o??new At,this.configuration={...t,silent_login_uri:s,token_automatic_renew_mode:t.token_automatic_renew_mode??ot.AutomaticBeforeTokenExpiration,monitor_session:t.monitor_session??!1,refresh_time_before_tokens_expiration_in_second:i,silent_login_timeout:t.silent_login_timeout??12e3,token_renew_mode:t.token_renew_mode??ln.access_token_or_id_token_invalid,demonstrating_proof_of_possession:t.demonstrating_proof_of_possession??!1,authority_timeout_wellknowurl_in_millisecond:t.authority_timeout_wellknowurl_in_millisecond??1e4,logout_tokens_to_invalidate:t.logout_tokens_to_invalidate??["access_token","refresh_token"],service_worker_activate:t.service_worker_activate??oc,demonstrating_proof_of_possession_configuration:t.demonstrating_proof_of_possession_configuration??Ra,preload_user_info:t.preload_user_info??!1},this.getFetch=r??hc,this.configurationName=n,this.tokens=null,this.userInfo=null,this.events=[],this.timeoutId=null,this.loginCallbackWithAutoTokensRenewAsync.bind(this),this.initAsync.bind(this),this.loginCallbackAsync.bind(this),this.subscribeEvents.bind(this),this.removeEventSubscription.bind(this),this.publishEvent.bind(this),this.destroyAsync.bind(this),this.logoutAsync.bind(this),this.renewTokensAsync.bind(this),this.initAsync(this.configuration.authority,this.configuration.authority_configuration)}subscribeEvents(t){const n=pc(9999999999999).toString();return this.events.push({id:n,func:t}),n}removeEventSubscription(t){const n=this.events.filter(r=>r.id!==t);this.events=n}publishEvent(t,n){this.events.forEach(r=>{r.func(t,n)})}static get(t="default"){const n=typeof process>"u";if(!Object.prototype.hasOwnProperty.call(Re,t)&&n)throw Error(`OIDC library does seem initialized.
75
- Please checkout that you are using OIDC hook inside a <OidcProvider configurationName="${t}"></OidcProvider> component.`);return Re[t]}_silentLoginCallbackFromIFrame(){if(this.configuration.silent_redirect_uri&&this.configuration.silent_login_uri){const t=this.location,n=Ot(t.getCurrentHref());window.parent.postMessage(`${this.configurationName}_oidc_tokens:${JSON.stringify({tokens:this.tokens,sessionState:n.session_state})}`,t.getOrigin())}}_silentLoginErrorCallbackFromIFrame(t=null){if(this.configuration.silent_redirect_uri&&this.configuration.silent_login_uri){const n=this.location,r=Ot(n.getCurrentHref());r.error?window.parent.postMessage(`${this.configurationName}_oidc_error:${JSON.stringify({error:r.error})}`,n.getOrigin()):window.parent.postMessage(`${this.configurationName}_oidc_exception:${JSON.stringify({error:t==null?"":t.toString()})}`,n.getOrigin())}}async silentLoginCallbackAsync(){try{await this.loginCallbackAsync(!0),this._silentLoginCallbackFromIFrame()}catch(t){console.error(t),this._silentLoginErrorCallbackFromIFrame(t)}}async initAsync(t,n){if(this.initPromise!==null)return this.initPromise;const r=async()=>{if(n!=null)return new hn({authorization_endpoint:n.authorization_endpoint,end_session_endpoint:n.end_session_endpoint,revocation_endpoint:n.revocation_endpoint,token_endpoint:n.token_endpoint,userinfo_endpoint:n.userinfo_endpoint,check_session_iframe:n.check_session_iframe,issuer:n.issuer});const o=await ye(this.configuration,this.configurationName)?window.sessionStorage:null;return await qa(this.getFetch())(t,this.configuration.authority_time_cache_wellknowurl_in_second??60*60,o,this.configuration.authority_timeout_wellknowurl_in_millisecond)};return this.initPromise=r(),this.initPromise.finally(()=>{this.initPromise=null})}async tryKeepExistingSessionAsync(){return this.tryKeepExistingSessionPromise!==null?this.tryKeepExistingSessionPromise:(this.tryKeepExistingSessionPromise=sc(this),this.tryKeepExistingSessionPromise.finally(()=>{this.tryKeepExistingSessionPromise=null}))}async startCheckSessionAsync(t,n,r,o=!1){await ec(this,Re,this.configuration)(t,n,r,o)}async loginAsync(t=void 0,n=null,r=!1,o=void 0,s=!1){return this.logoutPromise&&await this.logoutPromise,this.loginPromise!==null?this.loginPromise:(s?this.loginPromise=Za(window,this.configurationName,this.configuration,this.publishEvent.bind(this),this)(n,o):this.loginPromise=ac(this.configurationName,this.configuration,this.publishEvent.bind(this),this.initAsync.bind(this),this.location)(t,n,r,o),this.loginPromise.finally(()=>{this.loginPromise=null}))}async loginCallbackAsync(t=!1){if(this.loginCallbackPromise!==null)return this.loginCallbackPromise;const n=async()=>{const r=await cc(this)(t),o=r.tokens;return this.tokens=o,await ye(this.configuration,this.configurationName)||pe(this.configurationName,this.configuration.storage).setTokens(o),this.publishEvent(ro.eventNames.token_acquired,o),this.configuration.preload_user_info&&await this.userInfoAsync(),{parsedTokens:o,state:r.state,callbackPath:r.callbackPath,scope:r.scope,extras:r.extras}};return this.loginCallbackPromise=n(),this.loginCallbackPromise.finally(()=>{this.loginCallbackPromise=null})}async generateDemonstrationOfProofOfPossessionAsync(t,n,r,o={}){const s=this.configuration,i={ath:await Zr(t),...o};if(await ye(s,this.configurationName))return`DPOP_SECURED_BY_OIDC_SERVICE_WORKER_${this.configurationName}#tabId=${qr(this.configurationName)}`;const a=pe(this.configurationName,s.storage),l=await a.getDemonstratingProofOfPossessionJwkAsync(),f=a.getDemonstratingProofOfPossessionNonce();return f&&(i.nonce=f),await Xr(window)(s.demonstrating_proof_of_possession_configuration)(l,r,n,i)}loginCallbackWithAutoTokensRenewAsync(){return this.loginCallbackWithAutoTokensRenewPromise!==null?this.loginCallbackWithAutoTokensRenewPromise:(this.loginCallbackWithAutoTokensRenewPromise=gc(this),this.loginCallbackWithAutoTokensRenewPromise.finally(()=>{this.loginCallbackWithAutoTokensRenewPromise=null}))}userInfoAsync(t=!1,n=!1){return this.userInfoPromise!==null?this.userInfoPromise:(this.userInfoPromise=dc(this)(t,n),this.userInfoPromise.finally(()=>{this.userInfoPromise=null}))}async renewTokensAsync(t=null,n=null){if(this.renewTokensPromise!==null)return this.renewTokensPromise;if(this.timeoutId)return Je.clearTimeout(this.timeoutId),this.renewTokensPromise=eo(this,!0,t,n),this.renewTokensPromise.finally(()=>{this.renewTokensPromise=null})}async destroyAsync(t){return await uc(this)(t)}async logoutSameTabAsync(t,n){this.configuration.monitor_session&&this.configuration.client_id===t&&n&&this.tokens&&this.tokens.idTokenPayload&&this.tokens.idTokenPayload.sub===n&&(await this.destroyAsync("LOGGED_OUT"),this.publishEvent(j.logout_from_same_tab,{mmessage:"SessionMonitor",sub:n}))}async logoutOtherTabAsync(t,n){this.configuration.monitor_session&&this.configuration.client_id===t&&n&&this.tokens&&this.tokens.idTokenPayload&&this.tokens.idTokenPayload.sub===n&&(await this.destroyAsync("LOGGED_OUT"),this.publishEvent(j.logout_from_another_tab,{message:"SessionMonitor",sub:n}))}async logoutAsync(t=void 0,n=null){return this.logoutPromise?this.logoutPromise:(this.logoutPromise=fc(this,Re,this.getFetch(),console,this.location)(t,n),this.logoutPromise.finally(()=>{this.logoutPromise=null}))}};mn.getOrCreate=(e,t)=>(n,r="default")=>mc(e,t)(n,r),mn.eventNames=j;let Te=mn;const yt=class oo{constructor(t){this._oidc=t}subscribeEvents(t){return this._oidc.subscribeEvents(t)}removeEventSubscription(t){this._oidc.removeEventSubscription(t)}publishEvent(t,n){this._oidc.publishEvent(t,n)}static get(t="default"){return new oo(Te.get(t))}tryKeepExistingSessionAsync(){return this._oidc.tryKeepExistingSessionAsync()}loginAsync(t=void 0,n=null,r=!1,o=void 0,s=!1){return this._oidc.loginAsync(t,n,r,o,s)}logoutAsync(t=void 0,n=null){return this._oidc.logoutAsync(t,n)}silentLoginCallbackAsync(){return this._oidc.silentLoginCallbackAsync()}renewTokensAsync(t=null,n=null){return this._oidc.renewTokensAsync(t,n)}loginCallbackAsync(){return this._oidc.loginCallbackWithAutoTokensRenewAsync()}get tokens(){return this._oidc.tokens}get configuration(){return this._oidc.configuration}async generateDemonstrationOfProofOfPossessionAsync(t,n,r,o={}){return this._oidc.generateDemonstrationOfProofOfPossessionAsync(t,n,r,o)}async getValidTokenAsync(t=200,n=50){const r=this._oidc,o={getTokens:()=>r.tokens,configuration:{token_automatic_renew_mode:r.configuration.token_automatic_renew_mode,refresh_time_before_tokens_expiration_in_second:r.configuration.refresh_time_before_tokens_expiration_in_second},renewTokensAsync:r.renewTokensAsync.bind(r)};return Kr(o,t,n)}fetchWithTokens(t,n=!1){return no(t,this._oidc,n)}async userInfoAsync(t=!1,n=!1){return this._oidc.userInfoAsync(t,n)}userInfo(){return this._oidc.userInfo}};yt.getOrCreate=(e,t=new At)=>(n,r="default")=>new yt(Te.getOrCreate(e,t)(n,r)),yt.eventNames=Te.eventNames;let le=yt;const yc=()=>S.jsx("div",{className:"oidc-authenticating",children:S.jsxs("div",{className:"oidc-authenticating__container",children:[S.jsx("h1",{className:"oidc-authenticating__title",children:"Error authentication"}),S.jsx("p",{className:"oidc-authenticating__content",children:"An error occurred during authentication."})]})}),_c=()=>Math.random().toString(36).slice(2,8),bc=(e,t)=>(n,r)=>{if(typeof e.CustomEvent=="function")return new e.CustomEvent(n,r);const o=r||{bubbles:!1,cancelable:!1,detail:void 0},s=t.createEvent("CustomEvent");return s.initCustomEvent(n,o.bubbles,o.cancelable,o.detail),s.prototype=e.Event.prototype,s},Sc=(e,t,n)=>({replaceState:(r,o)=>{const s=n(),i=o||e.history.state;e.history.replaceState({key:s,state:i},null,r),e.dispatchEvent(t("popstate"))}}),vc=()=>Sc(window,bc(window,document),_c),kc=()=>S.jsx("div",{className:"oidc-callback",children:S.jsxs("div",{className:"oidc-callback__container",children:[S.jsx("h1",{className:"oidc-callback__title",children:"Authentication complete"}),S.jsx("p",{className:"oidc-callback__content",children:"You will be redirected to your application."})]})}),wc=({callBackError:e,callBackSuccess:t,configurationName:n,withCustomHistory:r})=>{const[o,s]=ae.useState(!1);ae.useEffect(()=>{let l=!0;return(async()=>{const f=le.get;try{const{callbackPath:d}=await f(n).loginCallbackAsync();(r?r():vc()).replaceState(d||"/")}catch(d){l&&(console.warn(d),s(!0))}})(),()=>{l=!1}},[]);const i=e||yc,a=t||kc;return o?S.jsx(i,{configurationName:n}):S.jsx(a,{configurationName:n})},Tc=({configurationName:e})=>(ae.useEffect(()=>{(async()=>{le.get(e).silentLoginCallbackAsync()})().catch(t=>{console.error("Error during silent login callback:",t)})},[e]),null),Ec=({configurationName:e})=>{const t=Ot(window.location.href),n=le.get,r=n(e);let o=null;for(const[s,i]of Object.entries(t))s==="state"||s==="scope"||(o===null&&(o={}),o[s]=i);return ae.useEffect(()=>{r.tokens||r.loginAsync(null,o,!0,t.scope)},[]),S.jsx(S.Fragment,{})},Ac=({callbackErrorComponent:e,callbackSuccessComponent:t,redirect_uri:n,silent_redirect_uri:r,silent_login_uri:o,children:s,configurationName:i,withCustomHistory:a=null})=>{const l=window?Qe(window.location.href):"",[f,d]=ae.useState(l);ae.useEffect(()=>{const m=()=>d(Qe(window.location.href));return m(),window.addEventListener("popstate",m,!1),()=>window.removeEventListener("popstate",m,!1)},[]);const h=Qe(n);if(r&&f===Qe(r))return S.jsx(Tc,{configurationName:i});if(o&&f===Qe(o))return S.jsx(Ec,{configurationName:i});switch(f){case h:return S.jsx(wc,{callBackError:e,callBackSuccess:t,configurationName:i,withCustomHistory:a});default:return S.jsx(S.Fragment,{children:s})}};ae.memo(Ac);const so="default",nn=(e,t)=>{let n=!1;return e(t)&&(n=e(t).tokens!=null),n},Cc=(e=so)=>{const t=le.get,[n,r]=ae.useState(nn(t,e));return ae.useEffect(()=>{let o=!0;const s=t(e);r(nn(t,e));const i=s.subscribeEvents((a,l)=>{(a===le.eventNames.logout_from_another_tab||a===le.eventNames.logout_from_same_tab||a===le.eventNames.token_acquired)&&o&&r(nn(t,e))});return()=>{o=!1,s.removeEventSubscription(i)}},[e]),{login:(o=void 0,s=void 0,i=!1,a=void 0)=>t(e).loginAsync(o,s,!1,a,i),logout:(o=void 0,s=void 0)=>t(e).logoutAsync(o,s),renewTokens:async(o=void 0)=>{const s=await t(e).renewTokensAsync(o);return{accessToken:s.accessToken,accessTokenPayload:s.accessTokenPayload,idToken:s.idToken,idTokenPayload:s.idTokenPayload}},isAuthenticated:n}},io={idToken:null,idTokenPayload:null},xc=e=>{const t=le.get,n=t(e);if(n.tokens){const r=n.tokens;return{idToken:r.idToken,idTokenPayload:r.idTokenPayload}}return io},Oc=(e=so)=>{const t=le.get,[n,r]=ae.useState(xc(e));return ae.useEffect(()=>{let o=!0;const s=t(e);if(s.tokens){const a=s.tokens;r({idToken:a.idToken,idTokenPayload:a.idTokenPayload})}const i=s.subscribeEvents((a,l)=>{if((a===le.eventNames.token_renewed||a===le.eventNames.token_acquired||a===le.eventNames.logout_from_another_tab||a===le.eventNames.logout_from_same_tab||a===le.eventNames.refreshTokensAsync_error||a===le.eventNames.syncTokensAsync_error)&&o){const f=s.tokens;r(f!=null?{idToken:f.idToken,idTokenPayload:f.idTokenPayload}:io)}});return()=>{o=!1,s.removeEventSubscription(i)}},[e]),n},ao=401,_t=403,bt=404,St=405,vt=409,Pc=500,Nc=501,$c=502,Ic=503,Rc=504,Dc=505,jc=e=>{const{idToken:t}=Oc(),{login:n}=Cc();return it.interceptors.request.use(r=>(t&&(r.headers={...r.headers,Authorization:`Bearer ${t}`}),r.headers={"Content-Type":"application/json",...r.headers},r)),it.interceptors.response.use(r=>r,r=>{const o=r.statusCode;if(o===ao){n().then(s=>s);return}(async()=>{if(o===_t){const l=r.response?await Ke(r.response):null,f=(l==null?void 0:l.message)||He(_t),d=Ce(r,_t,f,r.response);return console.error("Access Forbidden:",f),Promise.reject(d)}if(o===bt){const l=r.response?await Ke(r.response):null,f=(l==null?void 0:l.message)||He(bt),d=Ce(r,bt,f,r.response);return console.error("Resource Not Found:",f),Promise.reject(d)}if(o===St){const l=r.response?await Ke(r.response):null,f=(l==null?void 0:l.message)||He(St),d=Ce(r,St,f,r.response);return Promise.reject(d)}if(o===vt){const l=r.response?await Ke(r.response):null,f=(l==null?void 0:l.message)||He(vt),d=Ce(r,vt,f,r.response);return Promise.reject(d)}if(o&&o>=500&&o<=599){const l=r.response?await Ke(r.response):null,f=(l==null?void 0:l.message)||He(o),d=Ce(r,o,f,r.response);return console.error(`Server Error (${o}):`,f),Promise.reject(d)}if(!r.response){const l=Ce(r,0,"Network error. Please check your connection and try again.");return console.error("Network Error:",r.message),Promise.reject(l)}const s=r.response?await Ke(r.response):null,i=(s==null?void 0:s.message)||r.message||He(o||0),a=Ce(r,o||0,i,r.response);return console.error(`HTTP Error (${o}):`,i),Promise.reject(a)})()}),e.children},Ke=async e=>{const t=e.headers.get("content-type");return t!=null&&t.includes("application/json")?await e.json():t!=null&&t.includes("text/")?await e.text():await e.blob()},He=e=>{switch(e){case ao:return"Authentication required. Please log in again.";case _t:return"Access denied. You do not have permission to access this resource.";case bt:return"The requested resource was not found.";case St:return"Method not allowed. This operation is not supported.";case vt:return"Conflict. The request conflicts with the current state of the resource.";case Pc:return"Internal server error. Please try again later.";case Nc:return"Not implemented. This feature is not available.";case $c:return"Bad gateway. The server received an invalid response.";case Ic:return"Service unavailable. The server is temporarily unavailable.";case Rc:return"Gateway timeout. The request timed out.";case Dc:return"HTTP version not supported.";default:return"An unexpected error occurred."}},Ce=(e,t,n,r,o)=>{const s=new Error(n);return s.statusCode=t,s.originalError=e,s.response=r,s.request=o,s},Mc=(e,t,n)=>{const r=t.startsWith("http")?t:`${e}${t}`;if(!n)return r;const o=new URL(r);return Object.entries(n).forEach(([s,i])=>{i!=null&&o.searchParams.append(s,String(i))}),o.toString()},Lc=async e=>{const t=e.headers.get("content-type");return t!=null&&t.includes("application/json")?await e.json():t!=null&&t.includes("text/")?await e.text():await e.blob()};class Bc{constructor(t=void 0){Le(this,"baseURL");Le(this,"requestInterceptors",[]);Le(this,"responseInterceptors",[]);Le(this,"errorInterceptors",[]);Le(this,"interceptors",{request:{use:t=>{this.requestInterceptors.push(t)}},response:{use:(t,n)=>{t&&this.responseInterceptors.push(t),n&&this.errorInterceptors.push(n)}}});this.baseURL=t}async get(t,n){return this.executeRequest({...n,method:"GET",url:t})}async post(t,n,r){const o=n?JSON.stringify(n):void 0;return this.executeRequest({...r,method:"POST",url:t,body:o})}async put(t,n,r){const o=n?JSON.stringify(n):void 0;return this.executeRequest({...r,method:"PUT",url:t,body:o})}async delete(t,n){return this.executeRequest({...n,method:"DELETE",url:t})}async patch(t,n,r){const o=n?JSON.stringify(n):void 0;return this.executeRequest({...r,method:"PATCH",url:t,body:o})}async request(t){return this.executeRequest(t)}async executeRequest(t){let n=t;for(const a of this.requestInterceptors)n=await a(n);const{url:r,params:o,...s}=n,i=Mc(this.baseURL,r||"",o);try{const a=await fetch(i,s);let d={data:await Lc(a),status:a.status,statusText:a.statusText,headers:a.headers,config:n};for(const h of this.responseInterceptors)d=await h(d);return d}catch(a){let l=Ce(a,0,"Network error. Please check your connection and try again.");for(const f of this.errorInterceptors){const d=await f(l);d!==void 0&&(l=d)}throw l}}}const vr=new Bc,it=Object.assign(async(e,t)=>(await vr.request({...t,method:"GET",url:e})).data,vr);function Wc(e){return typeof e=="boolean"?e:typeof e=="string"?e.toLowerCase()==="true":!1}function Fc(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}var xn=(e=>(e.SYSTEM_TIME_ZONE="America/New_York",e.SYSTEM_LOCALE="en-US",e.SYSTEM_DATE_FORMAT="MM/dd/yyyy",e.SYSTEM_DATE_TIME_FORMAT="MM/dd/yyyy hh:mm:ss a",e.ISO_DATE_FORMAT="yyyy-MM-dd",e[e.SYSTEM_COOKIE_TIMEOUT_HOURS=24]="SYSTEM_COOKIE_TIMEOUT_HOURS",e[e.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS=36e5]="SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS",e))(xn||{});const Vc=()=>{const e=+new Date;return new Date(e+xn.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS)},Uc=e=>rn.format(new Date(e),xn.ISO_DATE_FORMAT),zc=(e,t)=>e?rn.format(rn.parseISO(e),t):"";function Kc(e){if(typeof e=="string")return Number.parseInt(e,10)}const Hc=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),Yc=e=>({...e,isLoading:!0,isSuccess:!1,isError:!1,message:""}),qc=(e,t)=>({...e,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:t||""}),Gc=(e,t)=>({...e,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:t||""});function Jc(e){return e==null?!0:typeof e=="string"?e.trim()==="":!1}const Xc=e=>{try{return decodeURIComponent(e)!==e}catch{return!1}};exports.AppSnackBar=ma;exports.CancelButton=Qi;exports.CenteredCircularProgress=pa;exports.ConfirmDialog=ya;exports.DeleteButton=ea;exports.DismissibleAlert=_a;exports.EditIconButton=na;exports.ExcelButton=ra;exports.FetchClient=it;exports.FetchInterceptor=jc;exports.GoBackButton=sa;exports.HistoryButton=aa;exports.LoadingSuccessButton=ua;exports.ManageButton=da;exports.NextLink=ba;exports.OpenInNewIconLink=va;exports.QuerySnackBar=ga;exports.ReactIf=ka;exports.SuccessButton=ha;exports.TabPanel=Ta;exports.TablePaginationActions=wa;exports.a11yProps=Ea;exports.convertToIsoDate=Uc;exports.fetchClient=it;exports.formatDate=zc;exports.getCssVariable=Fc;exports.httpClient=it;exports.initializeState=Hc;exports.isBlankOrEmpty=Jc;exports.isEncoded=Xc;exports.markError=Gc;exports.markLoading=Yc;exports.markSuccess=qc;exports.parseBoolean=Wc;exports.parseNumber=Kc;exports.setCookieExpirationDate=Vc;
72
+ export default theme;`}function pr(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const li=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function ui(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Mr(t,li(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${pr(r)})`:ft(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${pr(r)})`:ut(t,r)}})}function wt(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:s={},typography:c={},shape:u,colorSpace:d,...m}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Ce(20));const p=Pt({...i,colorSpace:d}),h=kt(e);let C=ce(h,{mixins:Qo(h.breakpoints,n),palette:p,shadows:ri.slice(),typography:Jo(p,c),transitions:ai(s),zIndex:{...si}});if(C=ce(C,m),C=t.reduce((g,l)=>ce(g,l),C),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],l=(x,_)=>{let j;for(j in x){const D=x[j];if(g.includes(j)&&Object.keys(D).length>0){if(process.env.NODE_ENV!=="production"){const w=It("",j);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${j}\` internal state.`,"You can not override it like this: ",JSON.stringify(x,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:D}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
73
+ `))}x[j]={}}}};Object.keys(C.components).forEach(x=>{const _=C.components[x].styleOverrides;_&&x.startsWith("Mui")&&l(_,x)})}return C.unstable_sxConfig={...ct,...m==null?void 0:m.unstable_sxConfig},C.unstable_sx=function(l){return Ne({sx:l,theme:this})},C.toRuntimeSource=Dr,ui(C),C}function fi(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const di=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=fi(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Lr(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Vr(e){return e==="dark"?di:[]}function mi(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...i}=e,s=Pt({...t,colorSpace:o});return{palette:s,opacity:{...Lr(s.mode),...r},overlays:n||Vr(s.mode),...i}}function pi(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const hi=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],gi=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return hi(e.cssVarPrefix).forEach(c=>{s[c]=r[c],delete r[c]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:s}}:i?{[i.replace("%s",t)]:s,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...s}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function yi(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function f(e,t,r){!e[t]&&r&&(e[t]=r)}function De(e){return typeof e!="string"||!e.startsWith("hsl")?e:Pr(e)}function ge(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Be(De(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().
74
+ 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 bi(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const pe=e=>{try{return e()}catch{}},vi=(e="mui")=>jo(e);function Ct(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const i=o==="dark"?"dark":"light";if(!n){t[o]=mi({...r,palette:{mode:i,...r==null?void 0:r.palette},colorSpace:e});return}const{palette:s,...c}=wt({...n,palette:{mode:i,...r==null?void 0:r.palette},colorSpace:e});return t[o]={...r,palette:s,opacity:{...Lr(i),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||Vr(i)},c}function Si(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:s=!1,shouldSkipGeneratingVar:c=pi,colorSchemeSelector:u=r.light&&r.dark?"media":void 0,rootSelector:d=":root",...m}=e,p=Object.keys(r)[0],h=n||(r.light&&p!=="light"?"light":p),C=vi(i),{[h]:g,light:l,dark:x,..._}=r,j={..._};let D=g;if((h==="dark"&&!("dark"in r)||h==="light"&&!("light"in r))&&(D=!0),!D)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:Ce(21,h));let w;s&&(w="oklch");const b=Ct(w,j,D,m,h);l&&!j.light&&Ct(w,j,l,void 0,"light"),x&&!j.dark&&Ct(w,j,x,void 0,"dark");let $={defaultColorScheme:h,...b,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:d,getCssVar:C,colorSchemes:j,font:{...Ko(b.typography),...b.font},spacing:bi(m.spacing)};Object.keys($.colorSchemes).forEach(X=>{const a=$.colorSchemes[X].palette,T=A=>{const R=A.split("-"),ne=R[1],ie=R[2];return C(A,a[ne][ie])};a.mode==="light"&&(f(a.common,"background","#fff"),f(a.common,"onBackground","#000")),a.mode==="dark"&&(f(a.common,"background","#000"),f(a.common,"onBackground","#fff"));function S(A,R,ne){if(w){let ie;return A===Te&&(ie=`transparent ${((1-ne)*100).toFixed(0)}%`),A===H&&(ie=`#000 ${(ne*100).toFixed(0)}%`),A===q&&(ie=`#fff ${(ne*100).toFixed(0)}%`),`color-mix(in ${w}, ${R}, ${ie})`}return A(R,ne)}if(yi(a,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),a.mode==="light"){f(a.Alert,"errorColor",S(H,a.error.light,.6)),f(a.Alert,"infoColor",S(H,a.info.light,.6)),f(a.Alert,"successColor",S(H,a.success.light,.6)),f(a.Alert,"warningColor",S(H,a.warning.light,.6)),f(a.Alert,"errorFilledBg",T("palette-error-main")),f(a.Alert,"infoFilledBg",T("palette-info-main")),f(a.Alert,"successFilledBg",T("palette-success-main")),f(a.Alert,"warningFilledBg",T("palette-warning-main")),f(a.Alert,"errorFilledColor",pe(()=>a.getContrastText(a.error.main))),f(a.Alert,"infoFilledColor",pe(()=>a.getContrastText(a.info.main))),f(a.Alert,"successFilledColor",pe(()=>a.getContrastText(a.success.main))),f(a.Alert,"warningFilledColor",pe(()=>a.getContrastText(a.warning.main))),f(a.Alert,"errorStandardBg",S(q,a.error.light,.9)),f(a.Alert,"infoStandardBg",S(q,a.info.light,.9)),f(a.Alert,"successStandardBg",S(q,a.success.light,.9)),f(a.Alert,"warningStandardBg",S(q,a.warning.light,.9)),f(a.Alert,"errorIconColor",T("palette-error-main")),f(a.Alert,"infoIconColor",T("palette-info-main")),f(a.Alert,"successIconColor",T("palette-success-main")),f(a.Alert,"warningIconColor",T("palette-warning-main")),f(a.AppBar,"defaultBg",T("palette-grey-100")),f(a.Avatar,"defaultBg",T("palette-grey-400")),f(a.Button,"inheritContainedBg",T("palette-grey-300")),f(a.Button,"inheritContainedHoverBg",T("palette-grey-A100")),f(a.Chip,"defaultBorder",T("palette-grey-400")),f(a.Chip,"defaultAvatarColor",T("palette-grey-700")),f(a.Chip,"defaultIconColor",T("palette-grey-700")),f(a.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),f(a.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),f(a.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),f(a.LinearProgress,"primaryBg",S(q,a.primary.main,.62)),f(a.LinearProgress,"secondaryBg",S(q,a.secondary.main,.62)),f(a.LinearProgress,"errorBg",S(q,a.error.main,.62)),f(a.LinearProgress,"infoBg",S(q,a.info.main,.62)),f(a.LinearProgress,"successBg",S(q,a.success.main,.62)),f(a.LinearProgress,"warningBg",S(q,a.warning.main,.62)),f(a.Skeleton,"bg",w?S(Te,a.text.primary,.11):`rgba(${T("palette-text-primaryChannel")} / 0.11)`),f(a.Slider,"primaryTrack",S(q,a.primary.main,.62)),f(a.Slider,"secondaryTrack",S(q,a.secondary.main,.62)),f(a.Slider,"errorTrack",S(q,a.error.main,.62)),f(a.Slider,"infoTrack",S(q,a.info.main,.62)),f(a.Slider,"successTrack",S(q,a.success.main,.62)),f(a.Slider,"warningTrack",S(q,a.warning.main,.62));const A=w?S(H,a.background.default,.6825):qe(a.background.default,.8);f(a.SnackbarContent,"bg",A),f(a.SnackbarContent,"color",pe(()=>w?Ot.text.primary:a.getContrastText(A))),f(a.SpeedDialAction,"fabHoverBg",qe(a.background.paper,.15)),f(a.StepConnector,"border",T("palette-grey-400")),f(a.StepContent,"border",T("palette-grey-400")),f(a.Switch,"defaultColor",T("palette-common-white")),f(a.Switch,"defaultDisabledColor",T("palette-grey-100")),f(a.Switch,"primaryDisabledColor",S(q,a.primary.main,.62)),f(a.Switch,"secondaryDisabledColor",S(q,a.secondary.main,.62)),f(a.Switch,"errorDisabledColor",S(q,a.error.main,.62)),f(a.Switch,"infoDisabledColor",S(q,a.info.main,.62)),f(a.Switch,"successDisabledColor",S(q,a.success.main,.62)),f(a.Switch,"warningDisabledColor",S(q,a.warning.main,.62)),f(a.TableCell,"border",S(q,S(Te,a.divider,1),.88)),f(a.Tooltip,"bg",S(Te,a.grey[700],.92))}if(a.mode==="dark"){f(a.Alert,"errorColor",S(q,a.error.light,.6)),f(a.Alert,"infoColor",S(q,a.info.light,.6)),f(a.Alert,"successColor",S(q,a.success.light,.6)),f(a.Alert,"warningColor",S(q,a.warning.light,.6)),f(a.Alert,"errorFilledBg",T("palette-error-dark")),f(a.Alert,"infoFilledBg",T("palette-info-dark")),f(a.Alert,"successFilledBg",T("palette-success-dark")),f(a.Alert,"warningFilledBg",T("palette-warning-dark")),f(a.Alert,"errorFilledColor",pe(()=>a.getContrastText(a.error.dark))),f(a.Alert,"infoFilledColor",pe(()=>a.getContrastText(a.info.dark))),f(a.Alert,"successFilledColor",pe(()=>a.getContrastText(a.success.dark))),f(a.Alert,"warningFilledColor",pe(()=>a.getContrastText(a.warning.dark))),f(a.Alert,"errorStandardBg",S(H,a.error.light,.9)),f(a.Alert,"infoStandardBg",S(H,a.info.light,.9)),f(a.Alert,"successStandardBg",S(H,a.success.light,.9)),f(a.Alert,"warningStandardBg",S(H,a.warning.light,.9)),f(a.Alert,"errorIconColor",T("palette-error-main")),f(a.Alert,"infoIconColor",T("palette-info-main")),f(a.Alert,"successIconColor",T("palette-success-main")),f(a.Alert,"warningIconColor",T("palette-warning-main")),f(a.AppBar,"defaultBg",T("palette-grey-900")),f(a.AppBar,"darkBg",T("palette-background-paper")),f(a.AppBar,"darkColor",T("palette-text-primary")),f(a.Avatar,"defaultBg",T("palette-grey-600")),f(a.Button,"inheritContainedBg",T("palette-grey-800")),f(a.Button,"inheritContainedHoverBg",T("palette-grey-700")),f(a.Chip,"defaultBorder",T("palette-grey-700")),f(a.Chip,"defaultAvatarColor",T("palette-grey-300")),f(a.Chip,"defaultIconColor",T("palette-grey-300")),f(a.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),f(a.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),f(a.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),f(a.LinearProgress,"primaryBg",S(H,a.primary.main,.5)),f(a.LinearProgress,"secondaryBg",S(H,a.secondary.main,.5)),f(a.LinearProgress,"errorBg",S(H,a.error.main,.5)),f(a.LinearProgress,"infoBg",S(H,a.info.main,.5)),f(a.LinearProgress,"successBg",S(H,a.success.main,.5)),f(a.LinearProgress,"warningBg",S(H,a.warning.main,.5)),f(a.Skeleton,"bg",w?S(Te,a.text.primary,.13):`rgba(${T("palette-text-primaryChannel")} / 0.13)`),f(a.Slider,"primaryTrack",S(H,a.primary.main,.5)),f(a.Slider,"secondaryTrack",S(H,a.secondary.main,.5)),f(a.Slider,"errorTrack",S(H,a.error.main,.5)),f(a.Slider,"infoTrack",S(H,a.info.main,.5)),f(a.Slider,"successTrack",S(H,a.success.main,.5)),f(a.Slider,"warningTrack",S(H,a.warning.main,.5));const A=w?S(q,a.background.default,.985):qe(a.background.default,.98);f(a.SnackbarContent,"bg",A),f(a.SnackbarContent,"color",pe(()=>w?jr.text.primary:a.getContrastText(A))),f(a.SpeedDialAction,"fabHoverBg",qe(a.background.paper,.15)),f(a.StepConnector,"border",T("palette-grey-600")),f(a.StepContent,"border",T("palette-grey-600")),f(a.Switch,"defaultColor",T("palette-grey-300")),f(a.Switch,"defaultDisabledColor",T("palette-grey-600")),f(a.Switch,"primaryDisabledColor",S(H,a.primary.main,.55)),f(a.Switch,"secondaryDisabledColor",S(H,a.secondary.main,.55)),f(a.Switch,"errorDisabledColor",S(H,a.error.main,.55)),f(a.Switch,"infoDisabledColor",S(H,a.info.main,.55)),f(a.Switch,"successDisabledColor",S(H,a.success.main,.55)),f(a.Switch,"warningDisabledColor",S(H,a.warning.main,.55)),f(a.TableCell,"border",S(H,S(Te,a.divider,1),.68)),f(a.Tooltip,"bg",S(Te,a.grey[700],.92))}ge(a.background,"default"),ge(a.background,"paper"),ge(a.common,"background"),ge(a.common,"onBackground"),ge(a,"divider"),Object.keys(a).forEach(A=>{const R=a[A];A!=="tonalOffset"&&R&&typeof R=="object"&&(R.main&&f(a[A],"mainChannel",Be(De(R.main))),R.light&&f(a[A],"lightChannel",Be(De(R.light))),R.dark&&f(a[A],"darkChannel",Be(De(R.dark))),R.contrastText&&f(a[A],"contrastTextChannel",Be(De(R.contrastText))),A==="text"&&(ge(a[A],"primary"),ge(a[A],"secondary")),A==="action"&&(R.active&&ge(a[A],"active"),R.selected&&ge(a[A],"selected")))})}),$=t.reduce((X,a)=>ce(X,a),$);const Q={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:gi($),enableContrastVars:s},{vars:re,generateThemeVars:oe,generateStyleSheets:de}=Lo($,Q);return $.vars=re,Object.entries($.colorSchemes[$.defaultColorScheme]).forEach(([X,a])=>{$[X]=a}),$.generateThemeVars=oe,$.generateStyleSheets=de,$.generateSpacing=function(){return _r(m.spacing,_t(this))},$.getColorSchemeSelector=Vo(u),$.spacing=$.generateSpacing(),$.shouldSkipGeneratingVar=c,$.unstable_sxConfig={...ct,...m==null?void 0:m.unstable_sxConfig},$.unstable_sx=function(a){return Ne({sx:a,theme:this})},$.toRuntimeSource=Dr,$}function hr(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Pt({...r===!0?{}:r.palette,mode:t})})}function Ci(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r==null?void 0:r.mode,...s}=e,c=i||"light",u=o==null?void 0:o[c],d={...o,...r?{[c]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return wt(e,...t);let m=r;"palette"in e||d[c]&&(d[c]!==!0?m=d[c].palette:c==="dark"&&(m={mode:"dark"}));const p=wt({...e,palette:m},...t);return p.defaultColorScheme=c,p.colorSchemes=d,p.palette.mode==="light"&&(p.colorSchemes.light={...d.light!==!0&&d.light,palette:p.palette},hr(p,"dark",d.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:p.palette},hr(p,"light",d.light)),p}return!r&&!("light"in d)&&c==="light"&&(d.light=!0),Si({...s,colorSchemes:d,defaultColorScheme:c,...typeof n!="boolean"&&n},...t)}const Fr=Ci(),zr="$$material";function xi(){const e=go(Fr);return process.env.NODE_ENV!=="production"&&he.useDebugValue(e),e[zr]||e}function Ei(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ti=e=>Ei(e)&&e!=="classes",Oi=Eo({themeId:zr,defaultTheme:Fr,rootShouldForwardProp:Ti}),wi=No;process.env.NODE_ENV!=="production"&&(z.node,z.object.isRequired);function $i(e){return Mo(e)}function _i(e){return It("MuiSvgIcon",e)}bo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ai=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${$e(t)}`,`fontSize${$e(r)}`]};return nn(o,_i,n)},ki=Oi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${$e(r.color)}`],t[`fontSize${$e(r.fontSize)}`]]}})(wi(({theme:e})=>{var t,r,n,o,i,s,c,u,d,m,p,h,C,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:l=>!l.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((m=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:m.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,l])=>l&&l.main).map(([l])=>{var x,_;return{props:{color:l},style:{color:(_=(x=(e.vars??e).palette)==null?void 0:x[l])==null?void 0:_.main}}}),{props:{color:"action"},style:{color:(h=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(g=(C=(e.vars??e).palette)==null?void 0:C.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Je=he.forwardRef(function(t,r){const n=$i({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:m=!1,titleAccess:p,viewBox:h="0 0 24 24",...C}=n,g=he.isValidElement(o)&&o.type==="svg",l={...n,color:s,component:c,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:h,hasSvgAsChild:g},x={};m||(x.viewBox=h);const _=Ai(l);return v.jsxs(ki,{as:c,className:Tr(_.root,i),focusable:"false",color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...x,...C,...g&&o.props,ownerState:l,children:[g?o.props.children:o,p?v.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Je.propTypes={children:z.node,classes:z.object,className:z.string,color:z.oneOfType([z.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),z.string]),component:z.elementType,fontSize:z.oneOfType([z.oneOf(["inherit","large","medium","small"]),z.string]),htmlColor:z.string,inheritViewBox:z.bool,shapeRendering:z.string,sx:z.oneOfType([z.arrayOf(z.oneOfType([z.func,z.object,z.bool])),z.func,z.object]),titleAccess:z.string,viewBox:z.string});Je.muiName="SvgIcon";function le(e,t){function r(n,o){return v.jsx(Je,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Je.muiName,he.memo(he.forwardRef(r))}const Ii=le(v.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo");function Ri(e){return v.jsx(k.Button,{name:e.name,"data-cy":e.dataCy??"cancel-button",className:e.className,sx:e.sx,startIcon:e.startIcon??v.jsx(Ii,{}),variant:e.variant??"contained",color:e.color??"secondary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const Pi=le(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteForever");function Mi(e){return v.jsx(k.Button,{"data-cy":e.dataCy??"delete-button",loading:e.loading??!1,loadingPosition:e.loadingPosition??"start",startIcon:e.startIcon??v.jsx(Pi,{}),name:e.name,variant:e.variant??"contained",color:e.color??"error",sx:{m:1},type:e.type??"button",onClick:e.onClick,children:e.label?e.label:"Delete"})}const Ni=le(v.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");function ji(e){return v.jsx(k.Tooltip,{title:e.tooltipTitle,children:v.jsx(k.IconButton,{sx:{pt:0,pb:0},color:e.color??"primary",onClick:()=>e.onClick(!0),"aria-label":e.tooltipTitle,children:v.jsx(Ni,{})})})}function Bi(e){return v.jsx(k.Button,{"data-cy":e.dataCy??"excel-button",style:{borderRadius:"20px"},className:e.className,name:e.name,sx:e.sx,startIcon:e.startIcon,variant:"contained",color:"success",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const Di=le(v.jsx("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function Li(e){return v.jsx(k.Tooltip,{title:"Go Back to Previous Page",children:v.jsxs(k.IconButton,{name:e.name,color:e.color??"primary",onClick:()=>e.navigate(-1),children:[v.jsx(Di,{}),e.children]})})}const Vi=le(v.jsx("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History");function Fi(e){return v.jsx(k.Button,{name:e.name,"data-cy":e.dataCy??"history-button",className:e.className,sx:e.sx??{p:1,m:1},startIcon:e.startIcon??v.jsx(Vi,{}),variant:e.variant??"contained",color:e.color??"primary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const zi=le(v.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),Ui={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function Yi(e){return v.jsx(k.Button,{name:e.name,"data-cy":e.dataCy??"loading-success-button",variant:e.variant??"contained",color:e.color??"success",loadingPosition:"start",startIcon:e.startIcon??v.jsx(zi,{}),loading:e.loading,type:e.type??"button",style:Ui,sx:e.sx,onClick:e.onClick,children:e.children??e.name})}const Wi=le(v.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");function Hi(e){return v.jsx(k.Button,{name:e.name,"data-cy":e.dataCy??"manage-button",className:e.className,onClick:()=>e.onClick(),variant:e.variant??"contained",color:e.color??"primary",size:e.size??"large",startIcon:e.startIcon??v.jsx(Wi,{}),children:e.children?e.children:"Manage"})}function qi(e){return v.jsx(k.Button,{name:e.name,"data-cy":e.dataCy??"success-button",className:e.className,sx:e.sx,startIcon:e.startIcon,variant:e.variant??"contained",color:e.color??"success",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const Mt=le(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Gi=e=>{const[t,r]=be.useState(!1);be.useEffect(()=>{r(e.open)},[e.open,e.progressState]);const n=v.jsx(k.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>r(!1),children:v.jsx(Mt,{fontSize:"small"})});return v.jsxs(v.Fragment,{children:[v.jsx(k.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:v.jsx(k.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:n,children:e.progressState.message})}),v.jsx(k.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isError,TransitionComponent:k.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:v.jsx(k.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:n,children:e.progressState.message})})]})},Ki=e=>{const[t,r]=be.useState(!1);be.useEffect(()=>{r(e.open)},[e.open,e]);const n=v.jsx(k.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>r(!1),children:v.jsx(Mt,{fontSize:"small"})});return v.jsxs(v.Fragment,{children:[v.jsx(k.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:v.jsx(k.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:n,children:e.message})}),v.jsx(k.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isError,TransitionComponent:k.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:v.jsx(k.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:n,children:e.message})})]})};function Qi(){return v.jsx("div",{style:{margin:"1.5rem"},className:"app-flex-justify-center",children:v.jsx(k.CircularProgress,{})})}function Xi(e){const{onClose:t,title:r,message:n,open:o,...i}=e;return v.jsxs(k.Dialog,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[v.jsx(k.DialogTitle,{children:r??"Confirm"}),v.jsx(k.DialogContent,{dividers:!0,children:n}),v.jsxs(k.DialogActions,{children:[v.jsx(k.Button,{autoFocus:!0,onClick:()=>t("No"),children:"Cancel"}),v.jsx(k.Button,{onClick:()=>t("Yes"),children:"Yes"})]})]})}function Ji(e){const[t,r]=be.useState(!0),[n]=be.useState(e.dismissible??!0),[o]=be.useState(e.dismissOnTimeOut??!0),[i]=be.useState(e.dismissTimeOut??5e3);return setTimeout(()=>{r(o?!1:t)},i),v.jsx("span",{children:t&&v.jsx(k.Alert,{action:n?v.jsx(k.IconButton,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{r(!1)},children:v.jsx(Mt,{fontSize:"inherit"})}):null,style:{margin:"20px"},...e,children:e.message})})}function Zi(e){return v.jsx(k.Link,{component:Sr.Link,to:e.href,className:"next-btn-link",underline:"hover",children:e.linkText??e.children})}const ea=le(v.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");function ta(e){return v.jsxs(k.Link,{component:Sr.Link,to:e.href,target:e.target||"_blank",rel:"noreferrer",className:"next-btn-link",underline:"hover",children:[e.linkText??e.children,v.jsx(k.Icon,{sx:{fontSize:"1.1rem",mx:.75,verticalAlign:"middle",display:"inline-flex"},component:ea})]})}function ra(e){const{condition:t,children:r,else:n}=e;return t?typeof r=="function"?r():r:n?typeof n=="function"?n():n:null}const gr=le(v.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),yr=le(v.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),br=le(v.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),vr=le(v.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function na(e){const t=xi(),{count:r,page:n,rowsPerPage:o,onPageChange:i}=e,s=m=>{i(m,0)},c=m=>{i(m,n-1)},u=m=>{i(m,n+1)},d=m=>{i(m,Math.max(0,Math.ceil(r/o)-1))};return v.jsxs(k.Box,{sx:{flexShrink:0,ml:2.5},children:[v.jsx(k.IconButton,{onClick:s,disabled:n===0,"aria-label":"first page",children:t.direction==="rtl"?v.jsx(vr,{}):v.jsx(gr,{})}),v.jsx(k.IconButton,{onClick:c,disabled:n===0,"aria-label":"previous page",children:t.direction==="rtl"?v.jsx(br,{}):v.jsx(yr,{})}),v.jsx(k.IconButton,{onClick:u,disabled:n>=Math.ceil(r/o)-1,"aria-label":"next page",children:t.direction==="rtl"?v.jsx(yr,{}):v.jsx(br,{})}),v.jsx(k.IconButton,{onClick:d,disabled:n>=Math.ceil(r/o)-1,"aria-label":"last page",children:t.direction==="rtl"?v.jsx(gr,{}):v.jsx(vr,{})})]})}function oa(e){const{children:t,index:r,...n}=e;return v.jsx("div",{className:"tabPanel",role:"tabpanel",id:`vertical-tabpanel-${r}`,"aria-labelledby":`vertical-tab-${r}`,...n,children:v.jsx(k.Box,{sx:{p:3},children:v.jsx(k.Typography,{component:"span",children:t})})})}function ia(e){return{id:`vertical-tab-${e}`,"aria-controls":`vertical-tabpanel-${e}`}}function aa(e){return typeof e=="boolean"?e:typeof e=="string"?e.toLowerCase()==="true":!1}function sa(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}var Nt=(e=>(e.SYSTEM_TIME_ZONE="America/New_York",e.SYSTEM_LOCALE="en-US",e.SYSTEM_DATE_FORMAT="MM/dd/yyyy",e.SYSTEM_DATE_TIME_FORMAT="MM/dd/yyyy hh:mm:ss a",e.ISO_DATE_FORMAT="yyyy-MM-dd",e[e.SYSTEM_COOKIE_TIMEOUT_HOURS=24]="SYSTEM_COOKIE_TIMEOUT_HOURS",e[e.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS=36e5]="SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS",e))(Nt||{});const ca=()=>{const e=+new Date;return new Date(e+Nt.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS)},la=e=>xt.format(new Date(e),Nt.ISO_DATE_FORMAT),ua=(e,t)=>e?xt.format(xt.parseISO(e),t):"";function fa(e){if(typeof e=="string")return Number.parseInt(e,10)}const da=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),ma=e=>({...e,isLoading:!0,isSuccess:!1,isError:!1,message:""}),pa=(e,t)=>({...e,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:t||""}),ha=(e,t)=>({...e,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:t||""});function ga(e){return e==null?!0:typeof e=="string"?e.trim()==="":!1}const ya=e=>{try{return decodeURIComponent(e)!==e}catch{return!1}};exports.AppSnackBar=Gi;exports.CancelButton=Ri;exports.CenteredCircularProgress=Qi;exports.ConfirmDialog=Xi;exports.DeleteButton=Mi;exports.DismissibleAlert=Ji;exports.EditIconButton=ji;exports.ExcelButton=Bi;exports.GoBackButton=Li;exports.HistoryButton=Fi;exports.LoadingSuccessButton=Yi;exports.ManageButton=Hi;exports.NextLink=Zi;exports.OpenInNewIconLink=ta;exports.QuerySnackBar=Ki;exports.ReactIf=ra;exports.SuccessButton=qi;exports.TabPanel=oa;exports.TablePaginationActions=na;exports.a11yProps=ia;exports.convertToIsoDate=la;exports.formatDate=ua;exports.getCssVariable=sa;exports.initializeState=da;exports.isBlankOrEmpty=ga;exports.isEncoded=ya;exports.markError=ha;exports.markLoading=ma;exports.markSuccess=pa;exports.parseBoolean=aa;exports.parseNumber=fa;exports.setCookieExpirationDate=ca;