@js-smart/react-kit 5.13.0 → 5.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +0 -3
- package/index.js +23 -24
- package/index.mjs +2183 -4363
- package/package.json +2 -1
package/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),_=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 Ue={exports:{}},Ye={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
|
|
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,f=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,S=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function B(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case t:switch(b=b.type,b){case f:case d:case n:case i:case o:case p:return b;default:switch(b=b&&b.$$typeof,b){case c:case m:case y:case S:case s:return b;default:return w}}case r:return w}}}function O(b){return B(b)===d}return U.AsyncMode=f,U.ConcurrentMode=d,U.ContextConsumer=c,U.ContextProvider=s,U.Element=t,U.ForwardRef=m,U.Fragment=n,U.Lazy=y,U.Memo=S,U.Portal=r,U.Profiler=i,U.StrictMode=o,U.Suspense=p,U.isAsyncMode=function(b){return O(b)||B(b)===f},U.isConcurrentMode=O,U.isContextConsumer=function(b){return B(b)===c},U.isContextProvider=function(b){return B(b)===s},U.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},U.isForwardRef=function(b){return B(b)===m},U.isFragment=function(b){return B(b)===n},U.isLazy=function(b){return B(b)===y},U.isMemo=function(b){return B(b)===S},U.isPortal=function(b){return B(b)===r},U.isProfiler=function(b){return B(b)===i},U.isStrictMode=function(b){return B(b)===o},U.isSuspense=function(b){return B(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===y||b.$$typeof===S||b.$$typeof===s||b.$$typeof===c||b.$$typeof===m||b.$$typeof===x||b.$$typeof===A||b.$$typeof===N||b.$$typeof===l)},U.typeOf=B,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
|
|
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,f=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,S=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,l=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function B(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===y||E.$$typeof===S||E.$$typeof===s||E.$$typeof===c||E.$$typeof===m||E.$$typeof===x||E.$$typeof===A||E.$$typeof===N||E.$$typeof===l)}function O(E){if(typeof E=="object"&&E!==null){var me=E.$$typeof;switch(me){case t:var ze=E.type;switch(ze){case f:case d:case n:case i:case o:case p:return ze;default:var jt=ze&&ze.$$typeof;switch(jt){case c:case m:case y:case S:case s:return jt;default:return me}}case r:return me}}}var b=f,w=d,X=c,ne=s,Q=t,ie=m,Z=n,a=y,$=S,C=r,k=i,D=o,oe=p,de=!1;function ft(E){return de||(de=!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.")),g(E)||O(E)===f}function g(E){return O(E)===d}function T(E){return O(E)===c}function j(E){return O(E)===s}function R(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function I(E){return O(E)===m}function L(E){return O(E)===n}function P(E){return O(E)===y}function M(E){return O(E)===S}function V(E){return O(E)===r}function W(E){return O(E)===i}function F(E){return O(E)===o}function ae(E){return O(E)===p}Y.AsyncMode=b,Y.ConcurrentMode=w,Y.ContextConsumer=X,Y.ContextProvider=ne,Y.Element=Q,Y.ForwardRef=ie,Y.Fragment=Z,Y.Lazy=a,Y.Memo=$,Y.Portal=C,Y.Profiler=k,Y.StrictMode=D,Y.Suspense=oe,Y.isAsyncMode=ft,Y.isConcurrentMode=g,Y.isContextConsumer=T,Y.isContextProvider=j,Y.isElement=R,Y.isForwardRef=I,Y.isFragment=L,Y.isLazy=P,Y.isMemo=M,Y.isPortal=V,Y.isProfiler=W,Y.isStrictMode=F,Y.isSuspense=ae,Y.isValidElementType=B,Y.typeOf=O}()),Y}var Vt;function Cr(){return Vt||(Vt=1,process.env.NODE_ENV==="production"?Ye.exports=Kr():Ye.exports=Qr()),Ye.exports}/*
|
|
16
16
|
object-assign
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
|
-
*/var
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
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 f=Object.getOwnPropertyNames(s).map(function(m){return s[m]});if(f.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,f=n(i),d,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var p in c)t.call(c,p)&&(f[p]=c[p]);if(e){d=e(c);for(var h=0;h<d.length;h++)r.call(c,d[h])&&(f[d[h]]=c[d[h]])}}return f},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,f,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((f||"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,f,c,null,t)}catch(y){p=y}if(p&&!(p instanceof Error)&&e((f||"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 S=d?d():"";e("Failed "+c+" type: "+p.message+(S??""))}}}}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 f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function s(){return null}return gt=function(c,f){var d=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function p(g){var T=g&&(d&&g[d]||g[m]);if(typeof T=="function")return T}var h="<<anonymous>>",S={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:N(),arrayOf:B,element:O(),elementType:b(),instanceOf:w,node:ie(),objectOf:ne,oneOf:X,oneOfType:Q,shape:a,exact:$};function y(g,T){return g===T?g!==0||1/g===1/T:g!==g&&T!==T}function l(g,T){this.message=g,this.data=T&&typeof T=="object"?T:{},this.stack=""}l.prototype=Error.prototype;function x(g){if(process.env.NODE_ENV!=="production")var T={},j=0;function R(L,P,M,V,W,F,ae){if(V=V||h,F=F||M,ae!==r){if(f){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+":"+M;!T[me]&&j<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."),T[me]=!0,j++)}}return P[M]==null?L?P[M]===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:g(P,M,V,W,F)}var I=R.bind(null,!1);return I.isRequired=R.bind(null,!0),I}function A(g){function T(j,R,I,L,P,M){var V=j[R],W=D(V);if(W!==g){var F=oe(V);return new l("Invalid "+L+" `"+P+"` of type "+("`"+F+"` supplied to `"+I+"`, expected ")+("`"+g+"`."),{expectedType:g})}return null}return x(T)}function N(){return x(s)}function B(g){function T(j,R,I,L,P){if(typeof g!="function")return new l("Property `"+P+"` of component `"+I+"` has invalid PropType notation inside arrayOf.");var M=j[R];if(!Array.isArray(M)){var V=D(M);return new l("Invalid "+L+" `"+P+"` of type "+("`"+V+"` supplied to `"+I+"`, expected an array."))}for(var W=0;W<M.length;W++){var F=g(M,W,I,L,P+"["+W+"]",r);if(F instanceof Error)return F}return null}return x(T)}function O(){function g(T,j,R,I,L){var P=T[j];if(!c(P)){var M=D(P);return new l("Invalid "+I+" `"+L+"` of type "+("`"+M+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return x(g)}function b(){function g(T,j,R,I,L){var P=T[j];if(!e.isValidElementType(P)){var M=D(P);return new l("Invalid "+I+" `"+L+"` of type "+("`"+M+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return x(g)}function w(g){function T(j,R,I,L,P){if(!(j[R]instanceof g)){var M=g.name||h,V=ft(j[R]);return new l("Invalid "+L+" `"+P+"` of type "+("`"+V+"` supplied to `"+I+"`, expected ")+("instance of `"+M+"`."))}return null}return x(T)}function X(g){if(!Array.isArray(g))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 T(j,R,I,L,P){for(var M=j[R],V=0;V<g.length;V++)if(y(M,g[V]))return null;var W=JSON.stringify(g,function(ae,E){var me=oe(E);return me==="symbol"?String(E):E});return new l("Invalid "+L+" `"+P+"` of value `"+String(M)+"` "+("supplied to `"+I+"`, expected one of "+W+"."))}return x(T)}function ne(g){function T(j,R,I,L,P){if(typeof g!="function")return new l("Property `"+P+"` of component `"+I+"` has invalid PropType notation inside objectOf.");var M=j[R],V=D(M);if(V!=="object")return new l("Invalid "+L+" `"+P+"` of type "+("`"+V+"` supplied to `"+I+"`, expected an object."));for(var W in M)if(n(M,W)){var F=g(M,W,I,L,P+"."+W,r);if(F instanceof Error)return F}return null}return x(T)}function Q(g){if(!Array.isArray(g))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var T=0;T<g.length;T++){var j=g[T];if(typeof j!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+de(j)+" at index "+T+"."),s}function R(I,L,P,M,V){for(var W=[],F=0;F<g.length;F++){var ae=g[F],E=ae(I,L,P,M,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 "+M+" `"+V+"` supplied to "+("`"+P+"`"+me+"."))}return x(R)}function ie(){function g(T,j,R,I,L){return C(T[j])?null:new l("Invalid "+I+" `"+L+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return x(g)}function Z(g,T,j,R,I){return new l((g||"React class")+": "+T+" type `"+j+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+I+"`.")}function a(g){function T(j,R,I,L,P){var M=j[R],V=D(M);if(V!=="object")return new l("Invalid "+L+" `"+P+"` of type `"+V+"` "+("supplied to `"+I+"`, expected `object`."));for(var W in g){var F=g[W];if(typeof F!="function")return Z(I,L,P,W,oe(F));var ae=F(M,W,I,L,P+"."+W,r);if(ae)return ae}return null}return x(T)}function $(g){function T(j,R,I,L,P){var M=j[R],V=D(M);if(V!=="object")return new l("Invalid "+L+" `"+P+"` of type `"+V+"` "+("supplied to `"+I+"`, expected `object`."));var W=t({},j[R],g);for(var F in W){var ae=g[F];if(n(g,F)&&typeof ae!="function")return Z(I,L,P,F,oe(ae));if(!ae)return new l("Invalid "+L+" `"+P+"` key `"+F+"` supplied to `"+I+"`.\nBad object: "+JSON.stringify(j[R],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(g),null," "));var E=ae(M,F,I,L,P+"."+F,r);if(E)return E}return null}return x(T)}function C(g){switch(typeof g){case"number":case"string":case"undefined":return!0;case"boolean":return!g;case"object":if(Array.isArray(g))return g.every(C);if(g===null||c(g))return!0;var T=p(g);if(T){var j=T.call(g),R;if(T!==g.entries){for(;!(R=j.next()).done;)if(!C(R.value))return!1}else for(;!(R=j.next()).done;){var I=R.value;if(I&&!C(I[1]))return!1}}else return!1;return!0;default:return!1}}function k(g,T){return g==="symbol"?!0:T?T["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&T instanceof Symbol:!1}function D(g){var T=typeof g;return Array.isArray(g)?"array":g instanceof RegExp?"object":k(T,g)?"symbol":T}function oe(g){if(typeof g>"u"||g===null)return""+g;var T=D(g);if(T==="object"){if(g instanceof Date)return"date";if(g instanceof RegExp)return"regexp"}return T}function de(g){var T=oe(g);switch(T){case"array":case"object":return"an "+T;case"boolean":case"date":case"regexp":return"a "+T;default:return T}}function ft(g){return!g.constructor||!g.constructor.name?h:g.constructor.name}return S.checkPropTypes=o,S.resetWarningCache=o.resetWarningCache,S.PropTypes=S,S},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,f,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 Ue.exports;if(qt=1,process.env.NODE_ENV!=="production"){var e=Cr(),t=!0;Ue.exports=Zr()(e.isElement,t)}else Ue.exports=en()();return Ue.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 f=0;f<i.length;f+=1){const d=i[f];d&&(s+=(c===!0?"":" ")+t(d),c=!1,r&&r[d]&&(s+=" "+r[d]))}n[o]=s}return n}var We={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
|
|
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"),f=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"),S=Symbol.for("react.client.reference");function y(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 f: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=f,G.SuspenseList=d,G.isContextConsumer=function(l){return y(l)===i},G.isContextProvider=function(l){return y(l)===s},G.isElement=function(l){return typeof l=="object"&&l!==null&&l.$$typeof===e},G.isForwardRef=function(l){return y(l)===c},G.isFragment=function(l){return y(l)===r},G.isLazy=function(l){return y(l)===p},G.isMemo=function(l){return y(l)===m},G.isPortal=function(l){return y(l)===t},G.isProfiler=function(l){return y(l)===o},G.isStrictMode=function(l){return y(l)===n},G.isSuspense=function(l){return y(l)===f},G.isSuspenseList=function(l){return y(l)===d},G.isValidElementType=function(l){return typeof l=="string"||typeof l=="function"||l===r||l===o||l===n||l===f||l===d||typeof l=="object"&&l!==null&&(l.$$typeof===p||l.$$typeof===m||l.$$typeof===s||l.$$typeof===i||l.$$typeof===c||l.$$typeof===S||l.getModuleId!==void 0)},G.typeOf=y,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
|
|
37
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
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 S:return l;default:switch(l=l&&l.$$typeof,l){case c:case f: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"),f=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"),S=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");K.ContextConsumer=s,K.ContextProvider=c,K.Element=t,K.ForwardRef=f,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)===f},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===f||l.$$typeof===y||l.getModuleId!==void 0)},K.typeOf=e}()),K}var Qt;function sn(){return Qt||(Qt=1,process.env.NODE_ENV==="production"?We.exports=on():We.exports=an()),We.exports}var Ge=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)||Ge.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])||Ge.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 De(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)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[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 f=t(e.breakpoints.not(...c),s);return f.includes("not all and")?f.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):f}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const Je={xs:0,sm:600,md:900,lg:1200,xl:1536},Jt={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Je[e]}px)`},fn={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Je[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,f)=>(s[i.up(i.keys[f])]=r(t[f]),s),{})}if(typeof t=="object"){const i=n.breakpoints||Jt;return Object.keys(t).reduce((s,c)=>{if(cn(i.keys,c)){const f=ln(n.containerQueries?n:fn,c);f&&(s[f]=r(t[c],c))}else if(Object.keys(i.values||Je).includes(c)){const f=i.up(c);s[f]=r(t[c],c)}else{const f=c;s[f]=t[f]}return s},{})}return r(t)}function dn(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}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 Ze(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 Ke(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Ze(e,r)||n,t&&(o=t(o,n,e)),o}function re(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],f=s.theme,d=Ze(f,n)||{};return ve(s,c,p=>{let h=Ke(d,o,p);return p===h&&typeof p=="string"&&(h=Ke(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]}),et=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],tt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],yn=[...et,...tt];function Ve(e,t,r,n){const o=Ze(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
|
|
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}}/**
|
|
41
|
-
* @mui/styled-engine v7.3.
|
|
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 Ve(e,"spacing",8,"spacing")}function Fe(e,t){return typeof t=="string"||t==null?t:e(t)}function bn(e,t){return r=>e.reduce((n,o)=>(n[o]=Fe(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(De,{})}function ee(e){return wr(e,et)}ee.propTypes=process.env.NODE_ENV!=="production"?et.reduce((e,t)=>(e[t]=Ee,e),{}):{};ee.filterProps=et;function te(e){return wr(e,tt)}te.propTypes=process.env.NODE_ENV!=="production"?tt.reduce((e,t)=>(e[t]=Ee,e),{}):{};te.filterProps=tt;process.env.NODE_ENV!=="production"&&yn.reduce((e,t)=>(e[t]=Ee,e),{});function rt(...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]?De(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 re({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"),nt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ve(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Fe(t,n)});return ve(e,e.borderRadius,r)}return null};nt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ee}:{};nt.filterProps=["borderRadius"];rt(Sn,Cn,xn,En,Tn,On,wn,$n,_n,An,nt,kn,In);const ot=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ve(e.theme,"spacing",8,"gap"),r=n=>({gap:Fe(t,n)});return ve(e,e.gap,r)}return null};ot.propTypes=process.env.NODE_ENV!=="production"?{gap:Ee}:{};ot.filterProps=["gap"];const it=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ve(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Fe(t,n)});return ve(e,e.columnGap,r)}return null};it.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ee}:{};it.filterProps=["columnGap"];const at=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ve(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Fe(t,n)});return ve(e,e.rowGap,r)}return null};at.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ee}:{};at.filterProps=["rowGap"];const Pn=re({prop:"gridColumn"}),Rn=re({prop:"gridRow"}),Mn=re({prop:"gridAutoFlow"}),Nn=re({prop:"gridAutoColumns"}),jn=re({prop:"gridAutoRows"}),Bn=re({prop:"gridTemplateColumns"}),Dn=re({prop:"gridTemplateRows"}),Ln=re({prop:"gridTemplateAreas"}),Vn=re({prop:"gridArea"});rt(ot,it,at,Pn,Rn,Mn,Nn,jn,Bn,Dn,Ln,Vn);function Re(e,t){return t==="grey"?t:e}const Fn=re({prop:"color",themeKey:"palette",transform:Re}),zn=re({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Re}),Un=re({prop:"backgroundColor",themeKey:"palette",transform:Re});rt(Fn,zn,Un);function se(e){return e<=1&&e!==0?`${e*100}%`:e}const Yn=re({prop:"width",transform:se}),At=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Je[r];return n?e.theme?.breakpoints?.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=re({prop:"minWidth",transform:se}),Hn=re({prop:"height",transform:se}),qn=re({prop:"maxHeight",transform:se}),Gn=re({prop:"minHeight",transform:se});re({prop:"size",cssProperty:"width",transform:se});re({prop:"size",cssProperty:"height",transform:se});const Kn=re({prop:"boxSizing"});rt(Yn,At,Wn,Hn,qn,Gn,Kn);const st={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:nt},color:{themeKey:"palette",transform:Re},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Re},backgroundColor:{themeKey:"palette",transform:Re},p:{style:te},pt:{style:te},pr:{style:te},pb:{style:te},pl:{style:te},px:{style:te},py:{style:te},padding:{style:te},paddingTop:{style:te},paddingRight:{style:te},paddingBottom:{style:te},paddingLeft:{style:te},paddingX:{style:te},paddingY:{style:te},paddingInline:{style:te},paddingInlineStart:{style:te},paddingInlineEnd:{style:te},paddingBlock:{style:te},paddingBlockStart:{style:te},paddingBlockEnd:{style:te},m:{style:ee},mt:{style:ee},mr:{style:ee},mb:{style:ee},ml:{style:ee},mx:{style:ee},my:{style:ee},margin:{style:ee},marginTop:{style:ee},marginRight:{style:ee},marginBottom:{style:ee},marginLeft:{style:ee},marginX:{style:ee},marginY:{style:ee},marginInline:{style:ee},marginInlineStart:{style:ee},marginInlineEnd:{style:ee},marginBlock:{style:ee},marginBlockStart:{style:ee},marginBlockEnd:{style:ee},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:ot},rowGap:{style:at},columnGap:{style:it},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:f=r,themeKey:d,transform:m,style:p}=c;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const h=Ze(o,d)||{};return p?p(s):ve(s,n,y=>{let l=Ke(h,m,y);return y===l&&typeof y=="string"&&(l=Ke(h,m,`${r}${y==="default"?"":$e(y)}`,y)),f===!1?l:{[f]:l}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const s=o.unstable_sxConfig??st;function c(f){let d=f;if(typeof f=="function")d=f(o);else if(typeof f!="object")return f;if(!d)return null;const m=dn(o.breakpoints),p=Object.keys(m);let h=m;return Object.keys(d).forEach(S=>{const y=Xn(d[S],o);if(y!=null)if(typeof y=="object")if(s[S])h=De(h,e(S,y,o,s));else{const l=ve({theme:o},y,x=>({[S]:x}));Qn(l,y)?h[S]=t({sx:y,theme:o,nested:!0}):h=De(h,l)}else h=De(h,e(S,y,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 Me=Jn();Me.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 Qe(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 f=r;return f}function oo(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Qe(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 f=0;f<s.length;f++)tr(s[f])&&(n+=bt(i)+":"+rr(i,s[f])+";");else{var d=Qe(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+=Qe(r,t,i);else{var s=i;o+=s[0]}for(var c=1;c<e.length;c++)if(o+=Qe(r,t,e[c]),n){var f=i;o+=f[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
|
+
* @mui/styled-engine v7.3.3
|
|
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
|
|
47
|
-
`)):
|
|
48
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
49
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:
|
|
50
|
-
`))}return
|
|
51
|
-
The color object needs to have a \`main\` property or a \`${
|
|
52
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
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 f(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function d(h,S){const y=s.indexOf(S);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(y!==-1&&typeof t[s[y]]=="number"?t[s[y]]:S)-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 S=s.indexOf(h);return S===0?c(s[1]):S===s.length-1?f(s[S]):d(h,s[s.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:c,down:f,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){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]: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),f=_r(o);let d=ce({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:f,shape:{...uo,...i}},s);return d=un(d),d.applyStyles=fo,d=t.reduce((m,p)=>ce(m,p),d),d.unstable_sxConfig={...st,...s?.unstable_sxConfig},d.unstable_sx=function(p){return Me({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 Ge.ForwardRef:return ir(e,e.render,"ForwardRef");case Ge.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 qe(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>qe(e,o,r));if(Array.isArray(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?.isProcessed?r?Oe(we(n.style),r):n.style:r?Oe(we(n),r):n}function Ir(e,t,r=[],n=void 0){let o;e:for(let i=0;i<t.length;i+=1){const s=t[i];if(typeof s.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(o))continue}else for(const c in s.props)if(e[c]!==s.props[c]&&e.ownerState?.[c]!==s.props[c])continue e;typeof s.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?Oe(we(s.style(o)),n):s.style(o))):r.push(n?Oe(we(s.style),n):s.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,f={})=>{so(c,w=>w.filter(X=>X!==Me));const{name:d,slot:m,skipVariantsResolver:p,skipSx:h,overridesResolver:S=Co(Pr(m)),...y}=f,l=d&&d.startsWith("Mui")||m?"components":"custom",x=p!==void 0?p:m&&m!=="Root"&&m!=="root"||!1,A=h||!1;let N=vt;m==="Root"||m==="root"?N=n:m?N=o:$o(c)&&(N=void 0);const B=ao(c,{shouldForwardProp:N,label:Oo(d,m),...y}),O=w=>{if(w.__emotion_real===w)return w;if(typeof w=="function")return function(ne){return qe(ne,w,ne.theme.modularCssLayers?l:void 0)};if(ye(w)){const X=kr(w);return function(Q){return X.variants?qe(Q,X,Q.theme.modularCssLayers?l:void 0):Q.theme.modularCssLayers?Oe(X.style,l):X.style}}return w},b=(...w)=>{const X=[],ne=w.map(O),Q=[];if(X.push(i),d&&S&&Q.push(function($){const k=$.theme.components?.[d]?.styleOverrides;if(!k)return null;const D={};for(const oe in k)D[oe]=qe($,k[oe],$.theme.modularCssLayers?"theme":void 0);return S($,D)}),d&&!x&&Q.push(function($){const k=$.theme?.components?.[d]?.variants;return k?Ir($,k,[],$.theme.modularCssLayers?"theme":void 0):null}),A||Q.push(Me),Array.isArray(ne[0])){const a=ne.shift(),$=new Array(X.length).fill(""),C=new Array(Q.length).fill("");let k;k=[...$,...a,...C],k.raw=[...$,...a.raw,...C],X.unshift(k)}const ie=[...X,...ne,...Q],Z=B(...ie);return c.muiName&&(Z.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(Z.displayName=To(d,m,c)),Z};return B.withConfig&&(b.withConfig=B.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}-${Pr(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 Pr(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 f in s)if(Object.prototype.hasOwnProperty.call(s,f)){const d=f;n[i][d]=Et(s[d],c[d],r)}}}else i==="className"&&r&&t.className?n.className=Tr(e?.className,t?.className):i==="style"&&r&&t.style?n.style={...e?.style,...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 Pt(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(" ")},je=(e,t)=>{try{return ko(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ct(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 Rr(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 f=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",f.push(t[3])),ct({type:c,values:f})}function Tt(e){e=xe(e);let t=e.type==="hsl"||e.type==="hsla"?xe(Rr(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=Pt(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ct(e)}function Te(e,t,r){try{return Mr(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function lt(e,t){if(e=xe(e),t=Pt(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 ct(e)}function H(e,t,r){try{return lt(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ut(e,t){if(e=xe(e),t=Pt(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 ct(e)}function q(e,t,r){try{return ut(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Io(e,t=.15){return Tt(e)>.5?lt(e,t):ut(e,t)}function He(e,t,r){try{return Io(e,t)}catch{return e}}const Po=he.createContext(void 0);process.env.NODE_ENV!=="production"&&(z.node,z.object);function Ro(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(Po);return Ro({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,f])=>{(!r||r&&!r([...i,c]))&&f!=null&&(typeof f=="object"&&Object.keys(f).length>0?n(f,[...i,c],Array.isArray(f)?[...s,c]:s):t([...i,c],f,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,f,d)=>{if((typeof f=="string"||typeof f=="number")&&(!n||!n(c,f))){const m=`--${r?`${r}-`:""}${c.join("-")}`,p=Do(c,f);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=A,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:s={},components:c,defaultColorScheme:f="light",...d}=e,{vars:m,css:p,varsWithDefaults:h}=St(d,t);let S=h;const y={},{[f]:l,...x}=s;if(Object.entries(x||{}).forEach(([O,b])=>{const{vars:w,css:X,varsWithDefaults:ne}=St(b,t);S=ce(S,ne),y[O]={css:X,vars:w}}),l){const{css:O,vars:b,varsWithDefaults:w}=St(l,t);S=ce(S,w),y[f]={css:O,vars:b}}function A(O,b){let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),O){if(w==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${s[O]?.palette?.mode||O})`]:{":root":b}};if(w)return e.defaultColorScheme===O?`:root, ${w.replace("%s",String(O))}`:w.replace("%s",String(O))}return":root"}return{vars:S,generateThemeVars:()=>{let O={...m};return Object.entries(y).forEach(([,{vars:b}])=>{O=ce(O,b)}),O},generateStyleSheets:()=>{const O=[],b=e.defaultColorScheme||"light";function w(Q,ie){Object.keys(ie).length&&O.push(typeof Q=="string"?{[Q]:{...ie}}:Q)}w(r(void 0,{...p}),p);const{[b]:X,...ne}=y;if(X){const{css:Q}=X,ie=s[b]?.palette?.mode,Z=!n&&ie?{colorScheme:ie,...Q}:{...Q};w(r(b,{...Z}),Z)}return Object.entries(ne).forEach(([Q,{css:ie}])=>{const Z=s[Q]?.palette?.mode,a=!n&&Z?{colorScheme:Z,...ie}:{...ie};w(r(Q,{...a}),a)}),i&&O.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),O}}}function 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 Le={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"},_e={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ae={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ne={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ke={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ie={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:Le.white,default:Le.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:Le.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:Le.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=ut(e.main,o):t==="dark"&&(e.dark=lt(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:ke[200],light:ke[50],dark:ke[400]}:{main:ke[700],light:ke[400],dark:ke[800]}}function Uo(e="light"){return e==="dark"?{main:_e[200],light:_e[50],dark:_e[400]}:{main:_e[500],light:_e[300],dark:_e[700]}}function Yo(e="light"){return e==="dark"?{main:Ae[500],light:Ae[300],dark:Ae[700]}:{main:Ae[700],light:Ae[400],dark:Ae[800]}}function Wo(e="light"){return e==="dark"?{main:Ie[400],light:Ie[300],dark:Ie[700]}:{main:Ie[700],light:Ie[500],dark:Ie[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:Ne[400],light:Ne[300],dark:Ne[700]}:{main:"#ed6c02",light:Ne[500],dark:Ne[900]}}function Go(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Rt(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),f=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 A=ar(x,Ot.text.primary)>=r?Ot.text.primary:jr.text.primary;if(process.env.NODE_ENV!=="production"){const N=ar(x,A);N<3&&console.error([`MUI: The contrast ratio of ${N}:1 for ${A} 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 A}const S=({color:x,name:A,mainShade:N=500,lightShade:B=300,darkShade:O=700})=>{if(x={...x},!x.main&&x[N]&&(x.main=x[N]),!x.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${A?` (${A})`:""} provided to augmentColor(color) is invalid.
|
|
51
|
+
The color object needs to have a \`main\` property or a \`${N}\` property.`:Ce(11,A?` (${A})`:"",N));if(typeof x.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${A?` (${A})`:""} 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
|
-
} });`:
|
|
65
|
-
`)),Object.keys(
|
|
64
|
+
} });`:Ce(12,A?` (${A})`:"",JSON.stringify(x.main)));return o?(ur(o,x,"light",B,n),ur(o,x,"dark",O,n)):(lr(x,"light",B,n),lr(x,"dark",O,n)),x.contrastText||(x.contrastText=h(x.main)),x};let y;return t==="light"?y=Nr():t==="dark"&&(y=Br()),process.env.NODE_ENV!=="production"&&(y||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ce({common:{...Le},mode:t,primary:S({color:s,name:"primary"}),secondary:S({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:f,name:"error"}),warning:S({color:p,name:"warning"}),info:S({color:d,name:"info"}),success:S({color:m,name:"success"}),grey:Fo,contrastThreshold:r,getContrastText:h,augmentColor:S,tonalOffset:n,...y},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:f=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 f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=n/14,S=m||(x=>`${x/f*h}rem`),y=(x,A,N,B,O)=>({fontFamily:r,fontWeight:x,fontSize:S(A),lineHeight:N,...r===dr?{letterSpacing:`${Xo(B/A)}em`}:{},...O,...d}),l={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(s,14,1.75,.4,fr),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,fr),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ce({htmlFontSize:f,pxToRem:S,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:f=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(f)&&!m(f)&&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 f=="string"?f:mr(f)}`).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
|
|
73
|
-
`))}
|
|
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)})`:ut(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${pr(r)})`:lt(t,r)}})}function wt(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:s={},typography:c={},shape:f,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=Rt({...i,colorSpace:d}),h=kt(e);let S=ce(h,{mixins:Qo(h.breakpoints,n),palette:p,shadows:ri.slice(),typography:Jo(p,c),transitions:ai(s),zIndex:{...si}});if(S=ce(S,m),S=t.reduce((y,l)=>ce(y,l),S),process.env.NODE_ENV!=="production"){const y=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],l=(x,A)=>{let N;for(N in x){const B=x[N];if(y.includes(N)&&Object.keys(B).length>0){if(process.env.NODE_ENV!=="production"){const O=It("",N);console.error([`MUI: The \`${A}\` component increases the CSS specificity of the \`${N}\` internal state.`,"You can not override it like this: ",JSON.stringify(x,null,2),"",`Instead, you need to use the '&.${O}' syntax:`,JSON.stringify({root:{[`&.${O}`]:B}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
73
|
+
`))}x[N]={}}}};Object.keys(S.components).forEach(x=>{const A=S.components[x].styleOverrides;A&&x.startsWith("Mui")&&l(A,x)})}return S.unstable_sxConfig={...st,...m?.unstable_sxConfig},S.unstable_sx=function(l){return Me({sx:l,theme:this})},S.toRuntimeSource=Dr,ui(S),S}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=Rt({...t,colorSpace:o});return{palette:s,opacity:{...Lr(s.mode),...r},overlays:n||Vr(s.mode),...i}}function pi(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const 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?.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 u(e,t,r){!e[t]&&r&&(e[t]=r)}function Be(e){return typeof e!="string"||!e.startsWith("hsl")?e:Rr(e)}function ge(e,t){`${t}Channel`in e||(e[`${t}Channel`]=je(Be(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?.palette},colorSpace:e});return}const{palette:s,...c}=wt({...n,palette:{mode:i,...r?.palette},colorSpace:e});return t[o]={...r,palette:s,opacity:{...Lr(i),...r?.opacity},overlays: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:f=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),S=vi(i),{[h]:y,light:l,dark:x,...A}=r,N={...A};let B=y;if((h==="dark"&&!("dark"in r)||h==="light"&&!("light"in r))&&(B=!0),!B)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:Ce(21,h));let O;s&&(O="oklch");const b=Ct(O,N,B,m,h);l&&!N.light&&Ct(O,N,l,void 0,"light"),x&&!N.dark&&Ct(O,N,x,void 0,"dark");let w={defaultColorScheme:h,...b,cssVarPrefix:i,colorSchemeSelector:f,rootSelector:d,getCssVar:S,colorSchemes:N,font:{...Ko(b.typography),...b.font},spacing:bi(m.spacing)};Object.keys(w.colorSchemes).forEach(Z=>{const a=w.colorSchemes[Z].palette,$=k=>{const D=k.split("-"),oe=D[1],de=D[2];return S(k,a[oe][de])};a.mode==="light"&&(u(a.common,"background","#fff"),u(a.common,"onBackground","#000")),a.mode==="dark"&&(u(a.common,"background","#000"),u(a.common,"onBackground","#fff"));function C(k,D,oe){if(O){let de;return k===Te&&(de=`transparent ${((1-oe)*100).toFixed(0)}%`),k===H&&(de=`#000 ${(oe*100).toFixed(0)}%`),k===q&&(de=`#fff ${(oe*100).toFixed(0)}%`),`color-mix(in ${O}, ${D}, ${de})`}return k(D,oe)}if(yi(a,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),a.mode==="light"){u(a.Alert,"errorColor",C(H,a.error.light,.6)),u(a.Alert,"infoColor",C(H,a.info.light,.6)),u(a.Alert,"successColor",C(H,a.success.light,.6)),u(a.Alert,"warningColor",C(H,a.warning.light,.6)),u(a.Alert,"errorFilledBg",$("palette-error-main")),u(a.Alert,"infoFilledBg",$("palette-info-main")),u(a.Alert,"successFilledBg",$("palette-success-main")),u(a.Alert,"warningFilledBg",$("palette-warning-main")),u(a.Alert,"errorFilledColor",pe(()=>a.getContrastText(a.error.main))),u(a.Alert,"infoFilledColor",pe(()=>a.getContrastText(a.info.main))),u(a.Alert,"successFilledColor",pe(()=>a.getContrastText(a.success.main))),u(a.Alert,"warningFilledColor",pe(()=>a.getContrastText(a.warning.main))),u(a.Alert,"errorStandardBg",C(q,a.error.light,.9)),u(a.Alert,"infoStandardBg",C(q,a.info.light,.9)),u(a.Alert,"successStandardBg",C(q,a.success.light,.9)),u(a.Alert,"warningStandardBg",C(q,a.warning.light,.9)),u(a.Alert,"errorIconColor",$("palette-error-main")),u(a.Alert,"infoIconColor",$("palette-info-main")),u(a.Alert,"successIconColor",$("palette-success-main")),u(a.Alert,"warningIconColor",$("palette-warning-main")),u(a.AppBar,"defaultBg",$("palette-grey-100")),u(a.Avatar,"defaultBg",$("palette-grey-400")),u(a.Button,"inheritContainedBg",$("palette-grey-300")),u(a.Button,"inheritContainedHoverBg",$("palette-grey-A100")),u(a.Chip,"defaultBorder",$("palette-grey-400")),u(a.Chip,"defaultAvatarColor",$("palette-grey-700")),u(a.Chip,"defaultIconColor",$("palette-grey-700")),u(a.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),u(a.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),u(a.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),u(a.LinearProgress,"primaryBg",C(q,a.primary.main,.62)),u(a.LinearProgress,"secondaryBg",C(q,a.secondary.main,.62)),u(a.LinearProgress,"errorBg",C(q,a.error.main,.62)),u(a.LinearProgress,"infoBg",C(q,a.info.main,.62)),u(a.LinearProgress,"successBg",C(q,a.success.main,.62)),u(a.LinearProgress,"warningBg",C(q,a.warning.main,.62)),u(a.Skeleton,"bg",O?C(Te,a.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),u(a.Slider,"primaryTrack",C(q,a.primary.main,.62)),u(a.Slider,"secondaryTrack",C(q,a.secondary.main,.62)),u(a.Slider,"errorTrack",C(q,a.error.main,.62)),u(a.Slider,"infoTrack",C(q,a.info.main,.62)),u(a.Slider,"successTrack",C(q,a.success.main,.62)),u(a.Slider,"warningTrack",C(q,a.warning.main,.62));const k=O?C(H,a.background.default,.6825):He(a.background.default,.8);u(a.SnackbarContent,"bg",k),u(a.SnackbarContent,"color",pe(()=>O?Ot.text.primary:a.getContrastText(k))),u(a.SpeedDialAction,"fabHoverBg",He(a.background.paper,.15)),u(a.StepConnector,"border",$("palette-grey-400")),u(a.StepContent,"border",$("palette-grey-400")),u(a.Switch,"defaultColor",$("palette-common-white")),u(a.Switch,"defaultDisabledColor",$("palette-grey-100")),u(a.Switch,"primaryDisabledColor",C(q,a.primary.main,.62)),u(a.Switch,"secondaryDisabledColor",C(q,a.secondary.main,.62)),u(a.Switch,"errorDisabledColor",C(q,a.error.main,.62)),u(a.Switch,"infoDisabledColor",C(q,a.info.main,.62)),u(a.Switch,"successDisabledColor",C(q,a.success.main,.62)),u(a.Switch,"warningDisabledColor",C(q,a.warning.main,.62)),u(a.TableCell,"border",C(q,C(Te,a.divider,1),.88)),u(a.Tooltip,"bg",C(Te,a.grey[700],.92))}if(a.mode==="dark"){u(a.Alert,"errorColor",C(q,a.error.light,.6)),u(a.Alert,"infoColor",C(q,a.info.light,.6)),u(a.Alert,"successColor",C(q,a.success.light,.6)),u(a.Alert,"warningColor",C(q,a.warning.light,.6)),u(a.Alert,"errorFilledBg",$("palette-error-dark")),u(a.Alert,"infoFilledBg",$("palette-info-dark")),u(a.Alert,"successFilledBg",$("palette-success-dark")),u(a.Alert,"warningFilledBg",$("palette-warning-dark")),u(a.Alert,"errorFilledColor",pe(()=>a.getContrastText(a.error.dark))),u(a.Alert,"infoFilledColor",pe(()=>a.getContrastText(a.info.dark))),u(a.Alert,"successFilledColor",pe(()=>a.getContrastText(a.success.dark))),u(a.Alert,"warningFilledColor",pe(()=>a.getContrastText(a.warning.dark))),u(a.Alert,"errorStandardBg",C(H,a.error.light,.9)),u(a.Alert,"infoStandardBg",C(H,a.info.light,.9)),u(a.Alert,"successStandardBg",C(H,a.success.light,.9)),u(a.Alert,"warningStandardBg",C(H,a.warning.light,.9)),u(a.Alert,"errorIconColor",$("palette-error-main")),u(a.Alert,"infoIconColor",$("palette-info-main")),u(a.Alert,"successIconColor",$("palette-success-main")),u(a.Alert,"warningIconColor",$("palette-warning-main")),u(a.AppBar,"defaultBg",$("palette-grey-900")),u(a.AppBar,"darkBg",$("palette-background-paper")),u(a.AppBar,"darkColor",$("palette-text-primary")),u(a.Avatar,"defaultBg",$("palette-grey-600")),u(a.Button,"inheritContainedBg",$("palette-grey-800")),u(a.Button,"inheritContainedHoverBg",$("palette-grey-700")),u(a.Chip,"defaultBorder",$("palette-grey-700")),u(a.Chip,"defaultAvatarColor",$("palette-grey-300")),u(a.Chip,"defaultIconColor",$("palette-grey-300")),u(a.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),u(a.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),u(a.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),u(a.LinearProgress,"primaryBg",C(H,a.primary.main,.5)),u(a.LinearProgress,"secondaryBg",C(H,a.secondary.main,.5)),u(a.LinearProgress,"errorBg",C(H,a.error.main,.5)),u(a.LinearProgress,"infoBg",C(H,a.info.main,.5)),u(a.LinearProgress,"successBg",C(H,a.success.main,.5)),u(a.LinearProgress,"warningBg",C(H,a.warning.main,.5)),u(a.Skeleton,"bg",O?C(Te,a.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),u(a.Slider,"primaryTrack",C(H,a.primary.main,.5)),u(a.Slider,"secondaryTrack",C(H,a.secondary.main,.5)),u(a.Slider,"errorTrack",C(H,a.error.main,.5)),u(a.Slider,"infoTrack",C(H,a.info.main,.5)),u(a.Slider,"successTrack",C(H,a.success.main,.5)),u(a.Slider,"warningTrack",C(H,a.warning.main,.5));const k=O?C(q,a.background.default,.985):He(a.background.default,.98);u(a.SnackbarContent,"bg",k),u(a.SnackbarContent,"color",pe(()=>O?jr.text.primary:a.getContrastText(k))),u(a.SpeedDialAction,"fabHoverBg",He(a.background.paper,.15)),u(a.StepConnector,"border",$("palette-grey-600")),u(a.StepContent,"border",$("palette-grey-600")),u(a.Switch,"defaultColor",$("palette-grey-300")),u(a.Switch,"defaultDisabledColor",$("palette-grey-600")),u(a.Switch,"primaryDisabledColor",C(H,a.primary.main,.55)),u(a.Switch,"secondaryDisabledColor",C(H,a.secondary.main,.55)),u(a.Switch,"errorDisabledColor",C(H,a.error.main,.55)),u(a.Switch,"infoDisabledColor",C(H,a.info.main,.55)),u(a.Switch,"successDisabledColor",C(H,a.success.main,.55)),u(a.Switch,"warningDisabledColor",C(H,a.warning.main,.55)),u(a.TableCell,"border",C(H,C(Te,a.divider,1),.68)),u(a.Tooltip,"bg",C(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(k=>{const D=a[k];k!=="tonalOffset"&&D&&typeof D=="object"&&(D.main&&u(a[k],"mainChannel",je(Be(D.main))),D.light&&u(a[k],"lightChannel",je(Be(D.light))),D.dark&&u(a[k],"darkChannel",je(Be(D.dark))),D.contrastText&&u(a[k],"contrastTextChannel",je(Be(D.contrastText))),k==="text"&&(ge(a[k],"primary"),ge(a[k],"secondary")),k==="action"&&(D.active&&ge(a[k],"active"),D.selected&&ge(a[k],"selected")))})}),w=t.reduce((Z,a)=>ce(Z,a),w);const X={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:gi(w),enableContrastVars:s},{vars:ne,generateThemeVars:Q,generateStyleSheets:ie}=Lo(w,X);return w.vars=ne,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([Z,a])=>{w[Z]=a}),w.generateThemeVars=Q,w.generateStyleSheets=ie,w.generateSpacing=function(){return _r(m.spacing,_t(this))},w.getColorSchemeSelector=Vo(f),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=c,w.unstable_sxConfig={...st,...m?.unstable_sxConfig},w.unstable_sx=function(a){return Me({sx:a,theme:this})},w.toRuntimeSource=Dr,w}function hr(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Rt({...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?.mode,...s}=e,c=i||"light",f=o?.[c],d={...o,...r?{[c]:{...typeof f!="boolean"&&f,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})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Xe=he.forwardRef(function(t,r){const n=$i({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:c="svg",fontSize:f="medium",htmlColor:d,inheritViewBox:m=!1,titleAccess:p,viewBox:h="0 0 24 24",...S}=n,y=he.isValidElement(o)&&o.type==="svg",l={...n,color:s,component:c,fontSize:f,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:h,hasSvgAsChild:y},x={};m||(x.viewBox=h);const A=Ai(l);return v.jsxs(ki,{as:c,className:Tr(A.root,i),focusable:"false",color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...x,...S,...y&&o.props,ownerState:l,children:[y?o.props.children:o,p?v.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Xe.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});Xe.muiName="SvgIcon";function le(e,t){function r(n,o){return v.jsx(Xe,{"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=Xe.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 Pi(e){return v.jsx(_.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 Ri=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(_.Button,{"data-cy":e.dataCy??"delete-button",loading:e.loading??!1,loadingPosition:e.loadingPosition??"start",startIcon:e.startIcon??v.jsx(Ri,{}),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(_.Tooltip,{title:e.tooltipTitle,children:v.jsx(_.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(_.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(_.Tooltip,{title:"Go Back to Previous Page",children:v.jsxs(_.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(_.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(_.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(_.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(_.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(_.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(_.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:v.jsx(_.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:n,children:e.progressState.message})}),v.jsx(_.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isError,TransitionComponent:_.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:v.jsx(_.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(_.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(_.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:v.jsx(_.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:n,children:e.message})}),v.jsx(_.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isError,TransitionComponent:_.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>r(!1),children:v.jsx(_.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(_.CircularProgress,{})})}function Xi(e){const{onClose:t,title:r,message:n,open:o,...i}=e;return v.jsxs(_.Dialog,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...i,children:[v.jsx(_.DialogTitle,{children:r??"Confirm"}),v.jsx(_.DialogContent,{dividers:!0,children:n}),v.jsxs(_.DialogActions,{children:[v.jsx(_.Button,{autoFocus:!0,onClick:()=>t("No"),children:"Cancel"}),v.jsx(_.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(_.Alert,{action:n?v.jsx(_.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(_.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(_.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(_.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)},f=m=>{i(m,n+1)},d=m=>{i(m,Math.max(0,Math.ceil(r/o)-1))};return v.jsxs(_.Box,{sx:{flexShrink:0,ml:2.5},children:[v.jsx(_.IconButton,{onClick:s,disabled:n===0,"aria-label":"first page",children:t.direction==="rtl"?v.jsx(vr,{}):v.jsx(gr,{})}),v.jsx(_.IconButton,{onClick:c,disabled:n===0,"aria-label":"previous page",children:t.direction==="rtl"?v.jsx(br,{}):v.jsx(yr,{})}),v.jsx(_.IconButton,{onClick:f,disabled:n>=Math.ceil(r/o)-1,"aria-label":"next page",children:t.direction==="rtl"?v.jsx(yr,{}):v.jsx(br,{})}),v.jsx(_.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(_.Box,{sx:{p:3},children:v.jsx(_.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=Pi;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;
|