@js-smart/react-kit 5.12.0 → 5.13.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +22 -23
- package/index.js +26 -6206
- package/index.mjs +6326 -0
- package/lib/utils/fetchClient.d.ts +12 -0
- package/package.json +43 -44
package/index.cjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Vr=Object.defineProperty;var zr=(e,t,r)=>t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var je=(e,t,r)=>zr(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),_=require("@mui/material"),ye=require("react"),Fr=require("@emotion/styled"),Ur=require("@emotion/react"),vr=require("react-router-dom"),Ct=require("date-fns");function Yr(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 pe=Yr(ye),Bt=e=>e,Wr=()=>{let e=Bt;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Bt}}},Hr=Wr();function Se(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 we(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Se(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ye={exports:{}},We={exports:{}},z={};/** @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 Gr(){if(Dt)return z;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,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,s=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,J=e?Symbol.for("react.scope"):60119;function w(g){if(typeof g=="object"&&g!==null){var V=g.$$typeof;switch(V){case t:switch(g=g.type,g){case u:case f:case n:case i:case o:case h:return g;default:switch(g=g&&g.$$typeof,g){case l:case m:case b:case C:case c:return g;default:return V}}case r:return V}}}function O(g){return w(g)===f}return z.AsyncMode=u,z.ConcurrentMode=f,z.ContextConsumer=l,z.ContextProvider=c,z.Element=t,z.ForwardRef=m,z.Fragment=n,z.Lazy=b,z.Memo=C,z.Portal=r,z.Profiler=i,z.StrictMode=o,z.Suspense=h,z.isAsyncMode=function(g){return O(g)||w(g)===u},z.isConcurrentMode=O,z.isContextConsumer=function(g){return w(g)===l},z.isContextProvider=function(g){return w(g)===c},z.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},z.isForwardRef=function(g){return w(g)===m},z.isFragment=function(g){return w(g)===n},z.isLazy=function(g){return w(g)===b},z.isMemo=function(g){return w(g)===C},z.isPortal=function(g){return w(g)===r},z.isProfiler=function(g){return w(g)===i},z.isStrictMode=function(g){return w(g)===o},z.isSuspense=function(g){return w(g)===h},z.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===f||g===i||g===o||g===h||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===b||g.$$typeof===C||g.$$typeof===c||g.$$typeof===l||g.$$typeof===m||g.$$typeof===T||g.$$typeof===$||g.$$typeof===J||g.$$typeof===s)},z.typeOf=w,z}var F={};/** @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 Kr(){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,c=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,s=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,$=e?Symbol.for("react.responder"):60118,J=e?Symbol.for("react.scope"):60119;function w(S){return typeof S=="string"||typeof S=="function"||S===n||S===f||S===i||S===o||S===h||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===b||S.$$typeof===C||S.$$typeof===c||S.$$typeof===l||S.$$typeof===m||S.$$typeof===T||S.$$typeof===$||S.$$typeof===J||S.$$typeof===s)}function O(S){if(typeof S=="object"&&S!==null){var de=S.$$typeof;switch(de){case t:var Ue=S.type;switch(Ue){case u:case f:case n:case i:case o:case h:return Ue;default:var Nt=Ue&&Ue.$$typeof;switch(Nt){case l:case m:case b:case C:case c:return Nt;default:return de}}case r:return de}}}var g=u,V=f,G=l,ne=c,K=t,a=m,x=n,I=b,j=C,te=r,re=i,oe=o,ae=h,Te=!1;function $e(S){return Te||(Te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),y(S)||O(S)===u}function y(S){return O(S)===f}function E(S){return O(S)===l}function M(S){return O(S)===c}function R(S){return typeof S=="object"&&S!==null&&S.$$typeof===t}function A(S){return O(S)===m}function N(S){return O(S)===n}function k(S){return O(S)===b}function P(S){return O(S)===C}function B(S){return O(S)===r}function U(S){return O(S)===i}function D(S){return O(S)===o}function ie(S){return O(S)===h}F.AsyncMode=g,F.ConcurrentMode=V,F.ContextConsumer=G,F.ContextProvider=ne,F.Element=K,F.ForwardRef=a,F.Fragment=x,F.Lazy=I,F.Memo=j,F.Portal=te,F.Profiler=re,F.StrictMode=oe,F.Suspense=ae,F.isAsyncMode=$e,F.isConcurrentMode=y,F.isContextConsumer=E,F.isContextProvider=M,F.isElement=R,F.isForwardRef=A,F.isFragment=N,F.isLazy=k,F.isMemo=P,F.isPortal=B,F.isProfiler=U,F.isStrictMode=D,F.isSuspense=ie,F.isValidElementType=w,F.typeOf=O}()),F}var Vt;function Sr(){return Vt||(Vt=1,process.env.NODE_ENV==="production"?We.exports=Gr():We.exports=Kr()),We.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 ft,zt;function Qr(){if(zt)return ft;zt=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 c={},l=0;l<10;l++)c["_"+String.fromCharCode(l)]=l;var u=Object.getOwnPropertyNames(c).map(function(m){return c[m]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(m){f[m]=m}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ft=o()?Object.assign:function(i,c){for(var l,u=n(i),f,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var h in l)t.call(l,h)&&(u[h]=l[h]);if(e){f=e(l);for(var p=0;p<f.length;p++)r.call(l,f[p])&&(u[f[p]]=l[f[p]])}}return u},ft}var dt,Ft;function Ot(){if(Ft)return dt;Ft=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return dt=e,dt}var mt,Ut;function Cr(){return Ut||(Ut=1,mt=Function.call.bind(Object.prototype.hasOwnProperty)),mt}var pt,Yt;function Jr(){if(Yt)return pt;Yt=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ot(),r={},n=Cr();e=function(i){var c="Warning: "+i;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function o(i,c,l,u,f){if(process.env.NODE_ENV!=="production"){for(var m in i)if(n(i,m)){var h;try{if(typeof i[m]!="function"){var p=Error((u||"React class")+": "+l+" 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 p.name="Invariant Violation",p}h=i[m](c,m,u,l,null,t)}catch(b){h=b}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+l+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var C=f?f():"";e("Failed "+l+" type: "+h.message+(C??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},pt=o,pt}var ht,Wt;function Xr(){if(Wt)return ht;Wt=1;var e=Sr(),t=Qr(),r=Ot(),n=Cr(),o=Jr(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var u="Warning: "+l;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function c(){return null}return ht=function(l,u){var f=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function h(y){var E=y&&(f&&y[f]||y[m]);if(typeof E=="function")return E}var p="<<anonymous>>",C={array:$("array"),bigint:$("bigint"),bool:$("boolean"),func:$("function"),number:$("number"),object:$("object"),string:$("string"),symbol:$("symbol"),any:J(),arrayOf:w,element:O(),elementType:g(),instanceOf:V,node:a(),objectOf:ne,oneOf:G,oneOfType:K,shape:I,exact:j};function b(y,E){return y===E?y!==0||1/y===1/E:y!==y&&E!==E}function s(y,E){this.message=y,this.data=E&&typeof E=="object"?E:{},this.stack=""}s.prototype=Error.prototype;function T(y){if(process.env.NODE_ENV!=="production")var E={},M=0;function R(N,k,P,B,U,D,ie){if(B=B||p,D=D||P,ie!==r){if(u){var S=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 S.name="Invariant Violation",S}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=B+":"+P;!E[de]&&M<3&&(i("You are manually calling a React.PropTypes validation function for the `"+D+"` prop on `"+B+"`. 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."),E[de]=!0,M++)}}return k[P]==null?N?k[P]===null?new s("The "+U+" `"+D+"` is marked as required "+("in `"+B+"`, but its value is `null`.")):new s("The "+U+" `"+D+"` is marked as required in "+("`"+B+"`, but its value is `undefined`.")):null:y(k,P,B,U,D)}var A=R.bind(null,!1);return A.isRequired=R.bind(null,!0),A}function $(y){function E(M,R,A,N,k,P){var B=M[R],U=oe(B);if(U!==y){var D=ae(B);return new s("Invalid "+N+" `"+k+"` of type "+("`"+D+"` supplied to `"+A+"`, expected ")+("`"+y+"`."),{expectedType:y})}return null}return T(E)}function J(){return T(c)}function w(y){function E(M,R,A,N,k){if(typeof y!="function")return new s("Property `"+k+"` of component `"+A+"` has invalid PropType notation inside arrayOf.");var P=M[R];if(!Array.isArray(P)){var B=oe(P);return new s("Invalid "+N+" `"+k+"` of type "+("`"+B+"` supplied to `"+A+"`, expected an array."))}for(var U=0;U<P.length;U++){var D=y(P,U,A,N,k+"["+U+"]",r);if(D instanceof Error)return D}return null}return T(E)}function O(){function y(E,M,R,A,N){var k=E[M];if(!l(k)){var P=oe(k);return new s("Invalid "+A+" `"+N+"` of type "+("`"+P+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return T(y)}function g(){function y(E,M,R,A,N){var k=E[M];if(!e.isValidElementType(k)){var P=oe(k);return new s("Invalid "+A+" `"+N+"` of type "+("`"+P+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return T(y)}function V(y){function E(M,R,A,N,k){if(!(M[R]instanceof y)){var P=y.name||p,B=$e(M[R]);return new s("Invalid "+N+" `"+k+"` of type "+("`"+B+"` supplied to `"+A+"`, expected ")+("instance of `"+P+"`."))}return null}return T(E)}function G(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),c;function E(M,R,A,N,k){for(var P=M[R],B=0;B<y.length;B++)if(b(P,y[B]))return null;var U=JSON.stringify(y,function(ie,S){var de=ae(S);return de==="symbol"?String(S):S});return new s("Invalid "+N+" `"+k+"` of value `"+String(P)+"` "+("supplied to `"+A+"`, expected one of "+U+"."))}return T(E)}function ne(y){function E(M,R,A,N,k){if(typeof y!="function")return new s("Property `"+k+"` of component `"+A+"` has invalid PropType notation inside objectOf.");var P=M[R],B=oe(P);if(B!=="object")return new s("Invalid "+N+" `"+k+"` of type "+("`"+B+"` supplied to `"+A+"`, expected an object."));for(var U in P)if(n(P,U)){var D=y(P,U,A,N,k+"."+U,r);if(D instanceof Error)return D}return null}return T(E)}function K(y){if(!Array.isArray(y))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var E=0;E<y.length;E++){var M=y[E];if(typeof M!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Te(M)+" at index "+E+"."),c}function R(A,N,k,P,B){for(var U=[],D=0;D<y.length;D++){var ie=y[D],S=ie(A,N,k,P,B,r);if(S==null)return null;S.data&&n(S.data,"expectedType")&&U.push(S.data.expectedType)}var de=U.length>0?", expected one of type ["+U.join(", ")+"]":"";return new s("Invalid "+P+" `"+B+"` supplied to "+("`"+k+"`"+de+"."))}return T(R)}function a(){function y(E,M,R,A,N){return te(E[M])?null:new s("Invalid "+A+" `"+N+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return T(y)}function x(y,E,M,R,A){return new s((y||"React class")+": "+E+" type `"+M+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+A+"`.")}function I(y){function E(M,R,A,N,k){var P=M[R],B=oe(P);if(B!=="object")return new s("Invalid "+N+" `"+k+"` of type `"+B+"` "+("supplied to `"+A+"`, expected `object`."));for(var U in y){var D=y[U];if(typeof D!="function")return x(A,N,k,U,ae(D));var ie=D(P,U,A,N,k+"."+U,r);if(ie)return ie}return null}return T(E)}function j(y){function E(M,R,A,N,k){var P=M[R],B=oe(P);if(B!=="object")return new s("Invalid "+N+" `"+k+"` of type `"+B+"` "+("supplied to `"+A+"`, expected `object`."));var U=t({},M[R],y);for(var D in U){var ie=y[D];if(n(y,D)&&typeof ie!="function")return x(A,N,k,D,ae(ie));if(!ie)return new s("Invalid "+N+" `"+k+"` key `"+D+"` supplied to `"+A+"`.\nBad object: "+JSON.stringify(M[R],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(y),null," "));var S=ie(P,D,A,N,k+"."+D,r);if(S)return S}return null}return T(E)}function te(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every(te);if(y===null||l(y))return!0;var E=h(y);if(E){var M=E.call(y),R;if(E!==y.entries){for(;!(R=M.next()).done;)if(!te(R.value))return!1}else for(;!(R=M.next()).done;){var A=R.value;if(A&&!te(A[1]))return!1}}else return!1;return!0;default:return!1}}function re(y,E){return y==="symbol"?!0:E?E["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&E instanceof Symbol:!1}function oe(y){var E=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":re(E,y)?"symbol":E}function ae(y){if(typeof y>"u"||y===null)return""+y;var E=oe(y);if(E==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return E}function Te(y){var E=ae(y);switch(E){case"array":case"object":return"an "+E;case"boolean":case"date":case"regexp":return"a "+E;default:return E}}function $e(y){return!y.constructor||!y.constructor.name?p:y.constructor.name}return C.checkPropTypes=o,C.resetWarningCache=o.resetWarningCache,C.PropTypes=C,C},ht}var gt,Ht;function Zr(){if(Ht)return gt;Ht=1;var e=Ot();function t(){}function r(){}return r.resetWarningCache=t,gt=function(){function n(c,l,u,f,m,h){if(h!==e){var p=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 p.name="Invariant Violation",p}}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},gt}var qt;function en(){if(qt)return Ye.exports;if(qt=1,process.env.NODE_ENV!=="production"){var e=Sr(),t=!0;Ye.exports=Xr()(e.isElement,t)}else Ye.exports=Zr()();return Ye.exports}var tn=en();const L=qr(tn);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 rn(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let c="",l=!0;for(let u=0;u<i.length;u+=1){const f=i[u];f&&(c+=(l===!0?"":" ")+t(f),l=!1,r&&r[f]&&(c+=" "+r[f]))}n[o]=c}return n}var He={exports:{}},Y={};/**
|
|
21
21
|
* @license React
|
|
22
22
|
* react-is.production.js
|
|
23
23
|
*
|
|
@@ -25,7 +25,7 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var C=le(B,z,R,V,j+"."+z
|
|
|
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 nn(){if(Gt)return Y;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"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),C=Symbol.for("react.client.reference");function b(s){if(typeof s=="object"&&s!==null){var T=s.$$typeof;switch(T){case e:switch(s=s.type,s){case r:case o:case n:case u:case f:case p:return s;default:switch(s=s&&s.$$typeof,s){case c:case l:case h:case m:return s;case i:return s;default:return T}}case t:return T}}}return Y.ContextConsumer=i,Y.ContextProvider=c,Y.Element=e,Y.ForwardRef=l,Y.Fragment=r,Y.Lazy=h,Y.Memo=m,Y.Portal=t,Y.Profiler=o,Y.StrictMode=n,Y.Suspense=u,Y.SuspenseList=f,Y.isContextConsumer=function(s){return b(s)===i},Y.isContextProvider=function(s){return b(s)===c},Y.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===e},Y.isForwardRef=function(s){return b(s)===l},Y.isFragment=function(s){return b(s)===r},Y.isLazy=function(s){return b(s)===h},Y.isMemo=function(s){return b(s)===m},Y.isPortal=function(s){return b(s)===t},Y.isProfiler=function(s){return b(s)===o},Y.isStrictMode=function(s){return b(s)===n},Y.isSuspense=function(s){return b(s)===u},Y.isSuspenseList=function(s){return b(s)===f},Y.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===r||s===o||s===n||s===u||s===f||typeof s=="object"&&s!==null&&(s.$$typeof===h||s.$$typeof===m||s.$$typeof===c||s.$$typeof===i||s.$$typeof===l||s.$$typeof===C||s.getModuleId!==void 0)},Y.typeOf=b,Y}var W={};/**
|
|
29
29
|
* @license React
|
|
30
30
|
* react-is.development.js
|
|
31
31
|
*
|
|
@@ -33,23 +33,23 @@ Valid keys: `+JSON.stringify(Object.keys(w),null," "));var C=le(B,z,R,V,j+"."+z
|
|
|
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 on(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){function e(s){if(typeof s=="object"&&s!==null){var T=s.$$typeof;switch(T){case t:switch(s=s.type,s){case n:case i:case o:case f:case m:case C:return s;default:switch(s=s&&s.$$typeof,s){case l:case u:case p:case h:return s;case c:return s;default:return T}}case r:return T}}}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"),c=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");W.ContextConsumer=c,W.ContextProvider=l,W.Element=t,W.ForwardRef=u,W.Fragment=n,W.Lazy=p,W.Memo=h,W.Portal=r,W.Profiler=i,W.StrictMode=o,W.Suspense=f,W.SuspenseList=m,W.isContextConsumer=function(s){return e(s)===c},W.isContextProvider=function(s){return e(s)===l},W.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===t},W.isForwardRef=function(s){return e(s)===u},W.isFragment=function(s){return e(s)===n},W.isLazy=function(s){return e(s)===p},W.isMemo=function(s){return e(s)===h},W.isPortal=function(s){return e(s)===r},W.isProfiler=function(s){return e(s)===i},W.isStrictMode=function(s){return e(s)===o},W.isSuspense=function(s){return e(s)===f},W.isSuspenseList=function(s){return e(s)===m},W.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===n||s===i||s===o||s===f||s===m||typeof s=="object"&&s!==null&&(s.$$typeof===p||s.$$typeof===h||s.$$typeof===l||s.$$typeof===c||s.$$typeof===u||s.$$typeof===b||s.getModuleId!==void 0)},W.typeOf=e}()),W}var Qt;function an(){return Qt||(Qt=1,process.env.NODE_ENV==="production"?He.exports=nn():He.exports=on()),He.exports}var Qe=an();function ge(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 xr(e){if(pe.isValidElement(e)||Qe.isValidElementType(e)||!ge(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=xr(e[r])}),t}function ce(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return ge(e)&&ge(t)&&Object.keys(t).forEach(o=>{pe.isValidElement(t[o])||Qe.isValidElementType(t[o])?n[o]=t[o]:ge(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ge(e[o])?n[o]=ce(e[o],t[o],r):r.clone?n[o]=ge(t[o])?xr(t[o]):t[o]:n[o]=t[o]}),n}function Le(e,t){return t?ce(e,t,{clone:!1}):e}const Ee=process.env.NODE_ENV!=="production"?L.oneOfType([L.number,L.string,L.object,L.array]):{};function Jt(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{var c,l;const i=/min-width:\s*([0-9.]+)/;return+(((c=n.match(i))==null?void 0:c[1])||0)-+(((l=o.match(i))==null?void 0:l[1])||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function sn(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function cn(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\`.`:Se(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function ln(e){const t=(i,c)=>i.replace("@media",c?`@container ${c}`:"@container");function r(i,c){i.up=(...l)=>t(e.breakpoints.up(...l),c),i.down=(...l)=>t(e.breakpoints.down(...l),c),i.between=(...l)=>t(e.breakpoints.between(...l),c),i.only=(...l)=>t(e.breakpoints.only(...l),c),i.not=(...l)=>{const u=t(e.breakpoints.not(...l),c);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const et={xs:0,sm:600,md:900,lg:1200,xl:1536},Xt={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${et[e]}px)`},un={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:et[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function be(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Xt;return t.reduce((c,l,u)=>(c[i.up(i.keys[u])]=r(t[u]),c),{})}if(typeof t=="object"){const i=n.breakpoints||Xt;return Object.keys(t).reduce((c,l)=>{if(sn(i.keys,l)){const u=cn(n.containerQueries?n:un,l);u&&(c[u]=r(t[l],l))}else if(Object.keys(i.values||et).includes(l)){const u=i.up(l);c[u]=r(t[l],l)}else{const u=l;c[u]=t[u]}return c},{})}return r(t)}function fn(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function Zt(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function tt(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 Je(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=tt(e,r)||n,t&&(o=t(o,n,e)),o}function ee(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=c=>{if(c[t]==null)return null;const l=c[t],u=c.theme,f=tt(u,n)||{};return be(c,l,h=>{let p=Je(f,o,h);return h===p&&typeof h=="string"&&(p=Je(f,o,`${t}${h==="default"?"":we(h)}`,h)),r===!1?p:{[r]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ee}:{},i.filterProps=[t],i}function dn(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const mn={m:"margin",p:"padding"},pn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},er={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hn=dn(e=>{if(e.length>2)if(er[e])e=er[e];else return[e];const[t,r]=e.split(""),n=mn[t],o=pn[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),rt=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],nt=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],gn=[...rt,...nt];function ze(e,t,r,n){const o=tt(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 c=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(c)?c>o.length-1&&console.error([`MUI: The value provided (${c}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${c} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
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 hn(e){return it(e,"spacing",8,"spacing")}function at(e,t){return typeof t=="string"||t==null?t:e(t)}function Do(e,t){return n=>e.reduce((r,o)=>(r[o]=at(t,n),r),{})}function jo(e,t,n,r){if(!t.includes(n))return null;const o=$o(n),s=Do(o,r),i=e[n];return Te(e,i,s)}function Ar(e,t){const n=hn(e.theme);return Object.keys(e).map(r=>jo(e,t,r,n)).reduce(et,{})}function te(e){return Ar(e,It)}te.propTypes=process.env.NODE_ENV!=="production"?It.reduce((e,t)=>(e[t]=Pe,e),{}):{};te.filterProps=It;function ne(e){return Ar(e,$t)}ne.propTypes=process.env.NODE_ENV!=="production"?$t.reduce((e,t)=>(e[t]=Pe,e),{}):{};ne.filterProps=$t;process.env.NODE_ENV!=="production"&&Ro.reduce((e,t)=>(e[t]=Pe,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]?et(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 me(e){return typeof e!="number"?e:`${e}px solid`}function ye(e,t){return oe({prop:e,themeKey:"borders",transform:t})}const Mo=ye("border",me),Lo=ye("borderTop",me),Bo=ye("borderRight",me),Wo=ye("borderBottom",me),Fo=ye("borderLeft",me),Vo=ye("borderColor"),Uo=ye("borderTopColor"),zo=ye("borderRightColor"),Ko=ye("borderBottomColor"),Ho=ye("borderLeftColor"),Yo=ye("outline",me),qo=ye("outlineColor"),Dt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=it(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:at(t,r)});return Te(e,e.borderRadius,n)}return null};Dt.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Pe}:{};Dt.filterProps=["borderRadius"];Rt(Mo,Lo,Bo,Wo,Fo,Vo,Uo,zo,Ko,Ho,Dt,Yo,qo);const jt=e=>{if(e.gap!==void 0&&e.gap!==null){const t=it(e.theme,"spacing",8,"gap"),n=r=>({gap:at(t,r)});return Te(e,e.gap,n)}return null};jt.propTypes=process.env.NODE_ENV!=="production"?{gap:Pe}:{};jt.filterProps=["gap"];const Mt=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=it(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:at(t,r)});return Te(e,e.columnGap,n)}return null};Mt.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Pe}:{};Mt.filterProps=["columnGap"];const Lt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=it(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:at(t,r)});return Te(e,e.rowGap,n)}return null};Lt.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Pe}:{};Lt.filterProps=["rowGap"];const Go=oe({prop:"gridColumn"}),Jo=oe({prop:"gridRow"}),Xo=oe({prop:"gridAutoFlow"}),Qo=oe({prop:"gridAutoColumns"}),Zo=oe({prop:"gridAutoRows"}),es=oe({prop:"gridTemplateColumns"}),ts=oe({prop:"gridTemplateRows"}),ns=oe({prop:"gridTemplateAreas"}),rs=oe({prop:"gridArea"});Rt(jt,Mt,Lt,Go,Jo,Xo,Qo,Zo,es,ts,ns,rs);function Ye(e,t){return t==="grey"?t:e}const os=oe({prop:"color",themeKey:"palette",transform:Ye}),ss=oe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ye}),is=oe({prop:"backgroundColor",themeKey:"palette",transform:Ye});Rt(os,ss,is);function fe(e){return e<=1&&e!==0?`${e*100}%`:e}const as=oe({prop:"width",transform:fe}),mn=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,s,i,a,u;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?((u=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:fe(n)}};return Te(e,e.maxWidth,t)}return null};mn.filterProps=["maxWidth"];const cs=oe({prop:"minWidth",transform:fe}),ls=oe({prop:"height",transform:fe}),us=oe({prop:"maxHeight",transform:fe}),fs=oe({prop:"minHeight",transform:fe});oe({prop:"size",cssProperty:"width",transform:fe});oe({prop:"size",cssProperty:"height",transform:fe});const ds=oe({prop:"boxSizing"});Rt(as,mn,cs,ls,us,fs,ds);const Bt={border:{themeKey:"borders",transform:me},borderTop:{themeKey:"borders",transform:me},borderRight:{themeKey:"borders",transform:me},borderBottom:{themeKey:"borders",transform:me},borderLeft:{themeKey:"borders",transform:me},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:me},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Dt},color:{themeKey:"palette",transform:Ye},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ye},backgroundColor:{themeKey:"palette",transform:Ye},p:{style:ne},pt:{style:ne},pr:{style:ne},pb:{style:ne},pl:{style:ne},px:{style:ne},py:{style:ne},padding:{style:ne},paddingTop:{style:ne},paddingRight:{style:ne},paddingBottom:{style:ne},paddingLeft:{style:ne},paddingX:{style:ne},paddingY:{style:ne},paddingInline:{style:ne},paddingInlineStart:{style:ne},paddingInlineEnd:{style:ne},paddingBlock:{style:ne},paddingBlockStart:{style:ne},paddingBlockEnd:{style:ne},m:{style:te},mt:{style:te},mr:{style:te},mb:{style:te},ml:{style:te},mx:{style:te},my:{style:te},margin:{style:te},marginTop:{style:te},marginRight:{style:te},marginBottom:{style:te},marginLeft:{style:te},marginX:{style:te},marginY:{style:te},marginInline:{style:te},marginInlineStart:{style:te},marginInlineEnd:{style:te},marginBlock:{style:te},marginBlockStart:{style:te},marginBlockEnd:{style:te},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:fe},maxWidth:{style:mn},minWidth:{transform:fe},height:{transform:fe},maxHeight:{transform:fe},minHeight:{transform:fe},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 hs(...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 ms(e,t){return typeof e=="function"?e(t):e}function gs(){function e(n,r,o,s){const i={[n]:r,theme:o},a=s[n];if(!a)return{[n]:r};const{cssProperty:u=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):Te(i,r,g=>{let l=kt(m,d,g);return g===l&&typeof g=="string"&&(l=kt(m,d,`${n}${g==="default"?"":De(g)}`,g)),u===!1?l:{[u]:l}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Bt;function a(u){let f=u;if(typeof u=="function")f=u(o);else if(typeof u!="object")return u;if(!f)return null;const d=xo(o.breakpoints),h=Object.keys(d);let m=d;return Object.keys(f).forEach(y=>{const g=ms(f[y],o);if(g!=null)if(typeof g=="object")if(i[y])m=et(m,e(y,g,o,i));else{const l=Te({theme:o},g,b=>({[y]:b}));hs(l,g)?m[y]=t({sx:g,theme:o,nested:!0}):m=et(m,l)}else m=et(m,e(y,g,o,i))}),!s&&o.modularCssLayers?{"@layer sx":Un(o,Kn(h,m))}:Un(o,Kn(h,m))}return Array.isArray(r)?r.map(a):a(r)}return t}const qe=gs();qe.filterProps=["sx"];function ps(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 ys={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 _s(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var bs=/[A-Z]|^ms/g,Ss=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cr=function(t){return t.charCodeAt(1)===45},Yn=function(t){return t!=null&&typeof t!="boolean"},Yt=_s(function(e){return Cr(e)?e:e.replace(bs,"-$&").toLowerCase()}),qn=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ss,function(r,o,s){return Ce={name:o,styles:s,next:Ce},o})}return ys[t]!==1&&!Cr(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 Ce={name:o.name,styles:o.styles,next:Ce},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Ce={name:i.name,styles:i.styles,next:Ce},i=i.next;var a=s.styles+";";return a}return ws(e,t,n)}}var u=n;return u}function ws(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;Yn(a)&&(r+=Yt(s)+":"+qn(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var u=0;u<i.length;u++)Yn(i[u])&&(r+=Yt(s)+":"+qn(s,i[u])+";");else{var f=Tt(e,t,i);switch(s){case"animation":case"animationName":{r+=Yt(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}return r}var Gn=/label:\s*([^\s;{]+)\s*(;|$)/g,Ce;function vs(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="";Ce=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 u=s;o+=u[a]}Gn.lastIndex=0;for(var f="",d;(d=Gn.exec(o))!==null;)f+="-"+d[1];var h=ps(o)+f;return{name:h,styles:o,next:Ce}}/**
|
|
39
|
+
`)));const l=o[c];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
40
|
+
`)),()=>{})}function wt(e){return ze(e,"spacing",8,"spacing")}function Fe(e,t){return typeof t=="string"||t==null?t:e(t)}function yn(e,t){return r=>e.reduce((n,o)=>(n[o]=Fe(t,r),n),{})}function bn(e,t,r,n){if(!t.includes(r))return null;const o=hn(r),i=yn(o,n),c=e[r];return be(e,c,i)}function Or(e,t){const r=wt(e.theme);return Object.keys(e).map(n=>bn(e,t,n,r)).reduce(Le,{})}function X(e){return Or(e,rt)}X.propTypes=process.env.NODE_ENV!=="production"?rt.reduce((e,t)=>(e[t]=Ee,e),{}):{};X.filterProps=rt;function Z(e){return Or(e,nt)}Z.propTypes=process.env.NODE_ENV!=="production"?nt.reduce((e,t)=>(e[t]=Ee,e),{}):{};Z.filterProps=nt;process.env.NODE_ENV!=="production"&&gn.reduce((e,t)=>(e[t]=Ee,e),{});function ot(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Le(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function ue(e){return typeof e!="number"?e:`${e}px solid`}function fe(e,t){return ee({prop:e,themeKey:"borders",transform:t})}const vn=fe("border",ue),Sn=fe("borderTop",ue),Cn=fe("borderRight",ue),En=fe("borderBottom",ue),Tn=fe("borderLeft",ue),xn=fe("borderColor"),On=fe("borderTopColor"),wn=fe("borderRightColor"),$n=fe("borderBottomColor"),_n=fe("borderLeftColor"),An=fe("outline",ue),kn=fe("outlineColor"),it=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ze(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:Fe(t,n)});return be(e,e.borderRadius,r)}return null};it.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ee}:{};it.filterProps=["borderRadius"];ot(vn,Sn,Cn,En,Tn,xn,On,wn,$n,_n,it,An,kn);const at=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ze(e.theme,"spacing",8,"gap"),r=n=>({gap:Fe(t,n)});return be(e,e.gap,r)}return null};at.propTypes=process.env.NODE_ENV!=="production"?{gap:Ee}:{};at.filterProps=["gap"];const st=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ze(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:Fe(t,n)});return be(e,e.columnGap,r)}return null};st.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ee}:{};st.filterProps=["columnGap"];const ct=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ze(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:Fe(t,n)});return be(e,e.rowGap,r)}return null};ct.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ee}:{};ct.filterProps=["rowGap"];const In=ee({prop:"gridColumn"}),Rn=ee({prop:"gridRow"}),Pn=ee({prop:"gridAutoFlow"}),Mn=ee({prop:"gridAutoColumns"}),jn=ee({prop:"gridAutoRows"}),Nn=ee({prop:"gridTemplateColumns"}),Bn=ee({prop:"gridTemplateRows"}),Dn=ee({prop:"gridTemplateAreas"}),Ln=ee({prop:"gridArea"});ot(at,st,ct,In,Rn,Pn,Mn,jn,Nn,Bn,Dn,Ln);function Pe(e,t){return t==="grey"?t:e}const Vn=ee({prop:"color",themeKey:"palette",transform:Pe}),zn=ee({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pe}),Fn=ee({prop:"backgroundColor",themeKey:"palette",transform:Pe});ot(Vn,zn,Fn);function se(e){return e<=1&&e!==0?`${e*100}%`:e}const Un=ee({prop:"width",transform:se}),$t=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,i,c,l,u;const n=((c=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:c[r])||et[r];return n?((u=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:se(r)}};return be(e,e.maxWidth,t)}return null};$t.filterProps=["maxWidth"];const Yn=ee({prop:"minWidth",transform:se}),Wn=ee({prop:"height",transform:se}),Hn=ee({prop:"maxHeight",transform:se}),qn=ee({prop:"minHeight",transform:se});ee({prop:"size",cssProperty:"width",transform:se});ee({prop:"size",cssProperty:"height",transform:se});const Gn=ee({prop:"boxSizing"});ot(Un,$t,Yn,Wn,Hn,qn,Gn);const lt={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:it},color:{themeKey:"palette",transform:Pe},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pe},backgroundColor:{themeKey:"palette",transform:Pe},p:{style:Z},pt:{style:Z},pr:{style:Z},pb:{style:Z},pl:{style:Z},px:{style:Z},py:{style:Z},padding:{style:Z},paddingTop:{style:Z},paddingRight:{style:Z},paddingBottom:{style:Z},paddingLeft:{style:Z},paddingX:{style:Z},paddingY:{style:Z},paddingInline:{style:Z},paddingInlineStart:{style:Z},paddingInlineEnd:{style:Z},paddingBlock:{style:Z},paddingBlockStart:{style:Z},paddingBlockEnd:{style:Z},m:{style:X},mt:{style:X},mr:{style:X},mb:{style:X},ml:{style:X},mx:{style:X},my:{style:X},margin:{style:X},marginTop:{style:X},marginRight:{style:X},marginBottom:{style:X},marginLeft:{style:X},marginX:{style:X},marginY:{style:X},marginInline:{style:X},marginInlineStart:{style:X},marginInlineEnd:{style:X},marginBlock:{style:X},marginBlockStart:{style:X},marginBlockEnd:{style:X},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:at},rowGap:{style:ct},columnGap:{style:st},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:$t},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 Kn(...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 Qn(e,t){return typeof e=="function"?e(t):e}function Jn(){function e(r,n,o,i){const c={[r]:n,theme:o},l=i[r];if(!l)return{[r]:n};const{cssProperty:u=r,themeKey:f,transform:m,style:h}=l;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const p=tt(o,f)||{};return h?h(c):be(c,n,b=>{let s=Je(p,m,b);return b===s&&typeof b=="string"&&(s=Je(p,m,`${r}${b==="default"?"":we(b)}`,b)),u===!1?s:{[u]:s}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const c=o.unstable_sxConfig??lt;function l(u){let f=u;if(typeof u=="function")f=u(o);else if(typeof u!="object")return u;if(!f)return null;const m=fn(o.breakpoints),h=Object.keys(m);let p=m;return Object.keys(f).forEach(C=>{const b=Qn(f[C],o);if(b!=null)if(typeof b=="object")if(c[C])p=Le(p,e(C,b,o,c));else{const s=be({theme:o},b,T=>({[C]:T}));Kn(s,b)?p[C]=t({sx:b,theme:o,nested:!0}):p=Le(p,s)}else p=Le(p,e(C,b,o,c))}),!i&&o.modularCssLayers?{"@layer sx":Jt(o,Zt(h,p))}:Jt(o,Zt(h,p))}return Array.isArray(n)?n.map(l):l(n)}return t}const Me=Jn();Me.filterProps=["sx"];function Xn(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 Zn={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 eo(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var to=/[A-Z]|^ms/g,ro=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wr=function(t){return t.charCodeAt(1)===45},tr=function(t){return t!=null&&typeof t!="boolean"},yt=eo(function(e){return wr(e)?e:e.replace(to,"-$&").toLowerCase()}),rr=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ro,function(n,o,i){return ve={name:o,styles:i,next:ve},o})}return Zn[t]!==1&&!wr(t)&&typeof r=="number"&&r!==0?r+"px":r};function Xe(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return ve={name:o.name,styles:o.styles,next:ve},o.name;var i=r;if(i.styles!==void 0){var c=i.next;if(c!==void 0)for(;c!==void 0;)ve={name:c.name,styles:c.styles,next:ve},c=c.next;var l=i.styles+";";return l}return no(e,t,r)}}var u=r;return u}function no(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Xe(e,t,r[o])+";";else for(var i in r){var c=r[i];if(typeof c!="object"){var l=c;tr(l)&&(n+=yt(i)+":"+rr(i,l)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&t==null)for(var u=0;u<c.length;u++)tr(c[u])&&(n+=yt(i)+":"+rr(i,c[u])+";");else{var f=Xe(e,t,c);switch(i){case"animation":case"animationName":{n+=yt(i)+":"+f+";";break}default:n+=i+"{"+f+"}"}}}return n}var nr=/label:\s*([^\s;{]+)\s*(;|$)/g,ve;function oo(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="";ve=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=Xe(r,t,i);else{var c=i;o+=c[0]}for(var l=1;l<e.length;l++)if(o+=Xe(r,t,e[l]),n){var u=i;o+=u[l]}nr.lastIndex=0;for(var f="",m;(m=nr.exec(o))!==null;)f+="-"+m[1];var h=Xn(o)+f;return{name:h,styles:o,next:ve}}/**
|
|
41
41
|
* @mui/styled-engine v7.2.0
|
|
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 io(e,t){const r=Fr(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 ao(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const or=[];function Oe(e){return or[0]=e,oo(or)}const so=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 co(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=so(t),c=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function f(p,C){const b=c.indexOf(C);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(b!==-1&&typeof t[c[b]]=="number"?t[c[b]]:C)-n/100}${r})`}function m(p){return c.indexOf(p)+1<c.length?f(p,c[c.indexOf(p)+1]):l(p)}function h(p){const C=c.indexOf(p);return C===0?l(c[1]):C===c.length-1?u(c[C]):f(p,c[c.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:c,values:i,up:l,down:u,between:f,only:m,not:h,unit:r,...o}}const lo={borderRadius:4};function $r(e=8,t=wt({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 c=t(i);return typeof c=="number"?`${c}px`:c}).join(" "));return r.mui=!0,r}function uo(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function _t(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...c}=e,l=co(r),u=$r(o);let f=ce({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:u,shape:{...lo,...i}},c);return f=ln(f),f.applyStyles=uo,f=t.reduce((m,h)=>ce(m,h),f),f.unstable_sxConfig={...lt,...c==null?void 0:c.unstable_sxConfig},f.unstable_sx=function(h){return Me({sx:h,theme:this})},f}function fo(e){return Object.keys(e).length===0}function mo(e=null){const t=pe.useContext(Ur.ThemeContext);return!t||fo(t)?e:t}const po=_t();function ho(e=po){return mo(e)}const go={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function At(e,t,r="Mui"){const n=go[t];return n?`${r}-${n}`:`${Hr.generate(e)}-${t}`}function yo(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=At(e,o,r)}),n}function _r(e,t=""){return e.displayName||e.name||t}function ir(e,t,r){const n=_r(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function bo(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return _r(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Qe.ForwardRef:return ir(e,e.render,"ForwardRef");case Qe.Memo:return ir(e,e.type,"memo");default:return}}}function Ar(e){const{variants:t,...r}=e,n={variants:t,style:Oe(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Oe(o.style))}),n}const vo=_t();function bt(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function xe(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function So(e){return e?(t,r)=>r[e]:null}function Co(e,t,r){e.theme=Oo(e.theme)?r:e.theme[t]||e.theme}function Ke(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Ke(e,o,r));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=r?xe(n.style,r):n.style;else{const{variants:i,...c}=n;o=r?xe(Oe(c),r):c}return kr(e,n.variants,[o],r)}return n!=null&&n.isProcessed?r?xe(Oe(n.style),r):n.style:r?xe(Oe(n),r):n}function kr(e,t,r=[],n=void 0){var i;let o;e:for(let c=0;c<t.length;c+=1){const l=t[c];if(typeof l.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(o))continue}else for(const u in l.props)if(e[u]!==l.props[u]&&((i=e.ownerState)==null?void 0:i[u])!==l.props[u])continue e;typeof l.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),r.push(n?xe(Oe(l.style(o)),n):l.style(o))):r.push(n?xe(Oe(l.style),n):l.style)}return r}function Eo(e={}){const{themeId:t,defaultTheme:r=vo,rootShouldForwardProp:n=bt,slotShouldForwardProp:o=bt}=e;function i(l){Co(l,t,r)}return(l,u={})=>{ao(l,V=>V.filter(G=>G!==Me));const{name:f,slot:m,skipVariantsResolver:h,skipSx:p,overridesResolver:C=So(Ir(m)),...b}=u,s=f&&f.startsWith("Mui")||m?"components":"custom",T=h!==void 0?h:m&&m!=="Root"&&m!=="root"||!1,$=p||!1;let J=bt;m==="Root"||m==="root"?J=n:m?J=o:wo(l)&&(J=void 0);const w=io(l,{shouldForwardProp:J,label:xo(f,m),...b}),O=V=>{if(V.__emotion_real===V)return V;if(typeof V=="function")return function(ne){return Ke(ne,V,ne.theme.modularCssLayers?s:void 0)};if(ge(V)){const G=Ar(V);return function(K){return G.variants?Ke(K,G,K.theme.modularCssLayers?s:void 0):K.theme.modularCssLayers?xe(G.style,s):G.style}}return V},g=(...V)=>{const G=[],ne=V.map(O),K=[];if(G.push(i),f&&C&&K.push(function(j){var ae,Te;const re=(Te=(ae=j.theme.components)==null?void 0:ae[f])==null?void 0:Te.styleOverrides;if(!re)return null;const oe={};for(const $e in re)oe[$e]=Ke(j,re[$e],j.theme.modularCssLayers?"theme":void 0);return C(j,oe)}),f&&!T&&K.push(function(j){var oe,ae;const te=j.theme,re=(ae=(oe=te==null?void 0:te.components)==null?void 0:oe[f])==null?void 0:ae.variants;return re?kr(j,re,[],j.theme.modularCssLayers?"theme":void 0):null}),$||K.push(Me),Array.isArray(ne[0])){const I=ne.shift(),j=new Array(G.length).fill(""),te=new Array(K.length).fill("");let re;re=[...j,...I,...te],re.raw=[...j,...I.raw,...te],G.unshift(re)}const a=[...G,...ne,...K],x=w(...a);return l.muiName&&(x.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(x.displayName=To(f,m,l)),x};return w.withConfig&&(g.withConfig=w.withConfig),g}}function To(e,t,r){return e?`${e}${we(t||"")}`:`Styled(${bo(r)})`}function xo(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${Ir(t||"Root")}`),r}function Oo(e){for(const t in e)return!1;return!0}function wo(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ir(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 c=e[i],l=t[i];if(!l)n[i]=c||{};else if(!c)n[i]=l;else{n[i]={...l};for(const u in c)if(Object.prototype.hasOwnProperty.call(c,u)){const f=u;n[i][f]=Et(c[f],l[f],r)}}}else i==="className"&&r&&t.className?n.className=Tr(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&r&&t.style?n.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:n[i]===void 0&&(n[i]=e[i])}return n}function $o(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function kt(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 _o(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 Ce(e){if(e.type)return e;if(e.charAt(0)==="#")return Ce(_o(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().`:Se(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.`:Se(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const Ao=e=>{const t=Ce(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},Be=(e,t)=>{try{return Ao(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ut(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=Ce(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),c=(f,m=(f+r/30)%12)=>o-i*Math.max(Math.min(m-3,9-m,1),-1);let l="rgb";const u=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),ut({type:l,values:u})}function Tt(e){e=Ce(e);let t=e.type==="hsl"||e.type==="hsla"?Ce(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 ko(e,t){return e=Ce(e),t=kt(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ut(e)}function qe(e,t,r){try{return ko(e,t)}catch{return e}}function It(e,t){if(e=Ce(e),t=kt(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 ut(e)}function H(e,t,r){try{return It(e,t)}catch{return e}}function Rt(e,t){if(e=Ce(e),t=kt(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 ut(e)}function q(e,t,r){try{return Rt(e,t)}catch{return e}}function Io(e,t=.15){return Tt(e)>.5?It(e,t):Rt(e,t)}function Ge(e,t,r){try{return Io(e,t)}catch{return e}}const Ro=pe.createContext(void 0);process.env.NODE_ENV!=="production"&&(L.node,L.object);function Po(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Et(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Et(o,n,t.components.mergeClassNameAndStyle):n}function Mo({props:e,name:t}){const r=pe.useContext(Ro);return Po({props:e,name:t,theme:{components:r}})}const sr={theme:void 0};function jo(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(sr.theme=o.theme,i=Ar(e(sr)),t=i,r=o.theme),i}}function No(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,c)=>{c===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=[],c=[]){Object.entries(o).forEach(([l,u])=>{(!r||r&&!r([...i,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...i,l],Array.isArray(u)?[...c,l]:c):t([...i,l],u,c))})}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 vt(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},c={};return Bo(e,(l,u,f)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(l,u))){const m=`--${r?`${r}-`:""}${l.join("-")}`,h=Do(l,u);Object.assign(o,{[m]:h}),cr(i,l,`var(${m})`,f),cr(c,l,`var(${m}, ${h})`,f)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:c}}function Lo(e,t={}){const{getSelector:r=T,disableCssColorScheme:n,colorSchemeSelector:o}=t,{colorSchemes:i={},components:c,defaultColorScheme:l="light",...u}=e,{vars:f,css:m,varsWithDefaults:h}=vt(u,t);let p=h;const C={},{[l]:b,...s}=i;if(Object.entries(s||{}).forEach(([w,O])=>{const{vars:g,css:V,varsWithDefaults:G}=vt(O,t);p=ce(p,G),C[w]={css:V,vars:g}}),b){const{css:w,vars:O,varsWithDefaults:g}=vt(b,t);p=ce(p,g),C[l]={css:w,vars:O}}function T(w,O){var V,G;let g=o;if(o==="class"&&(g=".%s"),o==="data"&&(g="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(g=`[${o}="%s"]`),w){if(g==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((G=(V=i[w])==null?void 0:V.palette)==null?void 0:G.mode)||w})`]:{":root":O}};if(g)return e.defaultColorScheme===w?`:root, ${g.replace("%s",String(w))}`:g.replace("%s",String(w))}return":root"}return{vars:p,generateThemeVars:()=>{let w={...f};return Object.entries(C).forEach(([,{vars:O}])=>{w=ce(w,O)}),w},generateStyleSheets:()=>{var ne,K;const w=[],O=e.defaultColorScheme||"light";function g(a,x){Object.keys(x).length&&w.push(typeof a=="string"?{[a]:{...x}}:a)}g(r(void 0,{...m}),m);const{[O]:V,...G}=C;if(V){const{css:a}=V,x=(K=(ne=i[O])==null?void 0:ne.palette)==null?void 0:K.mode,I=!n&&x?{colorScheme:x,...a}:{...a};g(r(O,{...I}),I)}return Object.entries(G).forEach(([a,{css:x}])=>{var te,re;const I=(re=(te=i[a])==null?void 0:te.palette)==null?void 0:re.mode,j=!n&&I?{colorScheme:I,...x}:{...x};g(r(a,{...j}),j)}),w}}}function Vo(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Ve={black:"#000",white:"#fff"},zo={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"},Re={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Pr(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ve.white,default:Ve.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Fo=Pr();function Mr(){return{text:{primary:Ve.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ve.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const lr=Mr();function ur(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=Rt(e.main,o):t==="dark"&&(e.dark=It(e.main,i)))}function Uo(e="light"){return e==="dark"?{main:ke[200],light:ke[50],dark:ke[400]}:{main:ke[700],light:ke[400],dark:ke[800]}}function Yo(e="light"){return e==="dark"?{main:_e[200],light:_e[50],dark:_e[400]}:{main:_e[500],light:_e[300],dark:_e[700]}}function Wo(e="light"){return e==="dark"?{main:Ae[500],light:Ae[300],dark:Ae[700]}:{main:Ae[700],light:Ae[400],dark:Ae[800]}}function Ho(e="light"){return e==="dark"?{main:Ie[400],light:Ie[300],dark:Ie[700]}:{main:Ie[700],light:Ie[500],dark:Ie[900]}}function qo(e="light"){return e==="dark"?{main:Re[400],light:Re[300],dark:Re[700]}:{main:Re[800],light:Re[500],dark:Re[900]}}function Go(e="light"){return e==="dark"?{main:Ne[400],light:Ne[300],dark:Ne[700]}:{main:"#ed6c02",light:Ne[500],dark:Ne[900]}}function Pt(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,...o}=e,i=e.primary||Uo(t),c=e.secondary||Yo(t),l=e.error||Wo(t),u=e.info||Ho(t),f=e.success||qo(t),m=e.warning||Go(t);function h(s){const T=ar(s,lr.text.primary)>=r?lr.text.primary:Fo.text.primary;if(process.env.NODE_ENV!=="production"){const $=ar(s,T);$<3&&console.error([`MUI: The contrast ratio of ${$}:1 for ${T} on ${s}`,"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 T}const p=({color:s,name:T,mainShade:$=500,lightShade:J=300,darkShade:w=700})=>{if(s={...s},!s.main&&s[$]&&(s.main=s[$]),!s.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${T?` (${T})`:""} provided to augmentColor(color) is invalid.
|
|
51
|
+
The color object needs to have a \`main\` property or a \`${$}\` property.`:Se(11,T?` (${T})`:"",$));if(typeof s.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${T?` (${T})`:""} provided to augmentColor(color) is invalid.
|
|
52
|
+
\`color.main\` should be a string, but \`${JSON.stringify(s.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(f).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(
|
|
64
|
+
} });`:Se(12,T?` (${T})`:"",JSON.stringify(s.main)));return ur(s,"light",J,n),ur(s,"dark",w,n),s.contrastText||(s.contrastText=h(s.main)),s};let C;return t==="light"?C=Pr():t==="dark"&&(C=Mr()),process.env.NODE_ENV!=="production"&&(C||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ce({common:{...Ve},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:m,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:f,name:"success"}),grey:zo,contrastThreshold:r,getContrastText:h,augmentColor:p,tonalOffset:n,...C},o)}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 Jo(e){return Math.round(e*1e5)/1e5}const fr={textTransform:"uppercase"},dr='"Roboto", "Helvetica", "Arial", sans-serif';function Xo(e,t){const{fontFamily:r=dr,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:c=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:m,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=n/14,C=m||(T=>`${T/u*p}rem`),b=(T,$,J,w,O)=>({fontFamily:r,fontWeight:T,fontSize:C($),lineHeight:J,...r===dr?{letterSpacing:`${Jo(w/$)}em`}:{},...O,...f}),s={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(c,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(c,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(c,14,1.75,.4,fr),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,fr),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ce({htmlFontSize:u,pxToRem:C,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:c,fontWeightBold:l,...s},h,{clone:!1})}const Zo=.2,ei=.14,ti=.12;function Q(...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",Q(0,2,1,-1,0,1,1,0,0,1,3,0),Q(0,3,1,-2,0,2,2,0,0,1,5,0),Q(0,3,3,-2,0,3,4,0,0,1,8,0),Q(0,2,4,-1,0,4,5,0,0,1,10,0),Q(0,3,5,-1,0,5,8,0,0,1,14,0),Q(0,3,5,-1,0,6,10,0,0,1,18,0),Q(0,4,5,-2,0,7,10,1,0,2,16,1),Q(0,5,5,-3,0,8,10,1,0,3,14,2),Q(0,5,6,-3,0,9,12,1,0,3,16,2),Q(0,6,6,-3,0,10,14,1,0,4,18,3),Q(0,6,7,-4,0,11,15,1,0,4,20,3),Q(0,7,8,-4,0,12,17,2,0,5,22,4),Q(0,7,8,-4,0,13,19,2,0,5,24,4),Q(0,7,9,-4,0,14,21,2,0,5,26,4),Q(0,8,9,-5,0,15,22,2,0,6,28,5),Q(0,8,10,-5,0,16,24,2,0,6,30,5),Q(0,8,11,-5,0,17,26,2,0,6,32,5),Q(0,9,11,-5,0,18,28,2,0,7,34,6),Q(0,9,12,-6,0,19,29,2,0,7,36,6),Q(0,10,13,-6,0,20,31,3,0,8,38,7),Q(0,10,13,-6,0,21,33,3,0,8,40,7),Q(0,10,14,-6,0,22,35,3,0,8,42,7),Q(0,11,14,-7,0,23,36,3,0,9,44,8),Q(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:c=r.standard,easing:l=t.easeInOut,delay:u=0,...f}=i;if(process.env.NODE_ENV!=="production"){const m=p=>typeof p=="string",h=p=>!Number.isNaN(parseFloat(p));!m(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(c)&&!m(c)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${c}.`),m(l)||console.error('MUI: Argument "easing" must be a string.'),!h(u)&&!m(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
65
|
+
`)),Object.keys(f).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof c=="string"?c:mr(c)} ${l} ${typeof u=="string"?u:mr(u)}`).join(",")},...e,easing:t,duration:r}}const si={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ci(e){return ge(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function jr(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[c,l]=o[i];!ci(l)||c.startsWith("unstable_")?delete n[c]:ge(l)&&(n[c]={...l},r(n[c]))}}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 $i(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const be=e=>{try{return e()}catch{}},Ri=(e="mui")=>Zs(e);function Jt(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=Oi({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:s,...i}=on({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:s,opacity:{...Mr(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Lr(o)},i}function Di(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:i=xi,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...f}=e,d=Object.keys(n)[0],h=r||(n.light&&d!=="light"?"light":d),m=Ri(s),{[h]:y,light:g,dark:l,...b}=n,k={...b};let x=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:Oe(21,h));const E=Jt(k,x,f,h);g&&!k.light&&Jt(k,g,void 0,"light"),l&&!k.dark&&Jt(k,l,void 0,"dark");let T={defaultColorScheme:h,...E,cssVarPrefix:s,colorSchemeSelector:a,rootSelector:u,getCssVar:m,colorSchemes:k,font:{...di(E.typography),...E.font},spacing:$i(f.spacing)};Object.keys(T.colorSchemes).forEach(F=>{const c=T.colorSchemes[F].palette,A=P=>{const M=P.split("-"),re=M[1],ee=M[2];return m(P,c[re][ee])};if(c.mode==="light"&&(p(c.common,"background","#fff"),p(c.common,"onBackground","#000")),c.mode==="dark"&&(p(c.common,"background","#000"),p(c.common,"onBackground","#fff")),Ii(c,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),c.mode==="light"){p(c.Alert,"errorColor",X(c.error.light,.6)),p(c.Alert,"infoColor",X(c.info.light,.6)),p(c.Alert,"successColor",X(c.success.light,.6)),p(c.Alert,"warningColor",X(c.warning.light,.6)),p(c.Alert,"errorFilledBg",A("palette-error-main")),p(c.Alert,"infoFilledBg",A("palette-info-main")),p(c.Alert,"successFilledBg",A("palette-success-main")),p(c.Alert,"warningFilledBg",A("palette-warning-main")),p(c.Alert,"errorFilledColor",be(()=>c.getContrastText(c.error.main))),p(c.Alert,"infoFilledColor",be(()=>c.getContrastText(c.info.main))),p(c.Alert,"successFilledColor",be(()=>c.getContrastText(c.success.main))),p(c.Alert,"warningFilledColor",be(()=>c.getContrastText(c.warning.main))),p(c.Alert,"errorStandardBg",Q(c.error.light,.9)),p(c.Alert,"infoStandardBg",Q(c.info.light,.9)),p(c.Alert,"successStandardBg",Q(c.success.light,.9)),p(c.Alert,"warningStandardBg",Q(c.warning.light,.9)),p(c.Alert,"errorIconColor",A("palette-error-main")),p(c.Alert,"infoIconColor",A("palette-info-main")),p(c.Alert,"successIconColor",A("palette-success-main")),p(c.Alert,"warningIconColor",A("palette-warning-main")),p(c.AppBar,"defaultBg",A("palette-grey-100")),p(c.Avatar,"defaultBg",A("palette-grey-400")),p(c.Button,"inheritContainedBg",A("palette-grey-300")),p(c.Button,"inheritContainedHoverBg",A("palette-grey-A100")),p(c.Chip,"defaultBorder",A("palette-grey-400")),p(c.Chip,"defaultAvatarColor",A("palette-grey-700")),p(c.Chip,"defaultIconColor",A("palette-grey-700")),p(c.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),p(c.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),p(c.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),p(c.LinearProgress,"primaryBg",Q(c.primary.main,.62)),p(c.LinearProgress,"secondaryBg",Q(c.secondary.main,.62)),p(c.LinearProgress,"errorBg",Q(c.error.main,.62)),p(c.LinearProgress,"infoBg",Q(c.info.main,.62)),p(c.LinearProgress,"successBg",Q(c.success.main,.62)),p(c.LinearProgress,"warningBg",Q(c.warning.main,.62)),p(c.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.11)`),p(c.Slider,"primaryTrack",Q(c.primary.main,.62)),p(c.Slider,"secondaryTrack",Q(c.secondary.main,.62)),p(c.Slider,"errorTrack",Q(c.error.main,.62)),p(c.Slider,"infoTrack",Q(c.info.main,.62)),p(c.Slider,"successTrack",Q(c.success.main,.62)),p(c.Slider,"warningTrack",Q(c.warning.main,.62));const P=mt(c.background.default,.8);p(c.SnackbarContent,"bg",P),p(c.SnackbarContent,"color",be(()=>c.getContrastText(P))),p(c.SpeedDialAction,"fabHoverBg",mt(c.background.paper,.15)),p(c.StepConnector,"border",A("palette-grey-400")),p(c.StepContent,"border",A("palette-grey-400")),p(c.Switch,"defaultColor",A("palette-common-white")),p(c.Switch,"defaultDisabledColor",A("palette-grey-100")),p(c.Switch,"primaryDisabledColor",Q(c.primary.main,.62)),p(c.Switch,"secondaryDisabledColor",Q(c.secondary.main,.62)),p(c.Switch,"errorDisabledColor",Q(c.error.main,.62)),p(c.Switch,"infoDisabledColor",Q(c.info.main,.62)),p(c.Switch,"successDisabledColor",Q(c.success.main,.62)),p(c.Switch,"warningDisabledColor",Q(c.warning.main,.62)),p(c.TableCell,"border",Q(ht(c.divider,1),.88)),p(c.Tooltip,"bg",ht(c.grey[700],.92))}if(c.mode==="dark"){p(c.Alert,"errorColor",Q(c.error.light,.6)),p(c.Alert,"infoColor",Q(c.info.light,.6)),p(c.Alert,"successColor",Q(c.success.light,.6)),p(c.Alert,"warningColor",Q(c.warning.light,.6)),p(c.Alert,"errorFilledBg",A("palette-error-dark")),p(c.Alert,"infoFilledBg",A("palette-info-dark")),p(c.Alert,"successFilledBg",A("palette-success-dark")),p(c.Alert,"warningFilledBg",A("palette-warning-dark")),p(c.Alert,"errorFilledColor",be(()=>c.getContrastText(c.error.dark))),p(c.Alert,"infoFilledColor",be(()=>c.getContrastText(c.info.dark))),p(c.Alert,"successFilledColor",be(()=>c.getContrastText(c.success.dark))),p(c.Alert,"warningFilledColor",be(()=>c.getContrastText(c.warning.dark))),p(c.Alert,"errorStandardBg",X(c.error.light,.9)),p(c.Alert,"infoStandardBg",X(c.info.light,.9)),p(c.Alert,"successStandardBg",X(c.success.light,.9)),p(c.Alert,"warningStandardBg",X(c.warning.light,.9)),p(c.Alert,"errorIconColor",A("palette-error-main")),p(c.Alert,"infoIconColor",A("palette-info-main")),p(c.Alert,"successIconColor",A("palette-success-main")),p(c.Alert,"warningIconColor",A("palette-warning-main")),p(c.AppBar,"defaultBg",A("palette-grey-900")),p(c.AppBar,"darkBg",A("palette-background-paper")),p(c.AppBar,"darkColor",A("palette-text-primary")),p(c.Avatar,"defaultBg",A("palette-grey-600")),p(c.Button,"inheritContainedBg",A("palette-grey-800")),p(c.Button,"inheritContainedHoverBg",A("palette-grey-700")),p(c.Chip,"defaultBorder",A("palette-grey-700")),p(c.Chip,"defaultAvatarColor",A("palette-grey-300")),p(c.Chip,"defaultIconColor",A("palette-grey-300")),p(c.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),p(c.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),p(c.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),p(c.LinearProgress,"primaryBg",X(c.primary.main,.5)),p(c.LinearProgress,"secondaryBg",X(c.secondary.main,.5)),p(c.LinearProgress,"errorBg",X(c.error.main,.5)),p(c.LinearProgress,"infoBg",X(c.info.main,.5)),p(c.LinearProgress,"successBg",X(c.success.main,.5)),p(c.LinearProgress,"warningBg",X(c.warning.main,.5)),p(c.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.13)`),p(c.Slider,"primaryTrack",X(c.primary.main,.5)),p(c.Slider,"secondaryTrack",X(c.secondary.main,.5)),p(c.Slider,"errorTrack",X(c.error.main,.5)),p(c.Slider,"infoTrack",X(c.info.main,.5)),p(c.Slider,"successTrack",X(c.success.main,.5)),p(c.Slider,"warningTrack",X(c.warning.main,.5));const P=mt(c.background.default,.98);p(c.SnackbarContent,"bg",P),p(c.SnackbarContent,"color",be(()=>c.getContrastText(P))),p(c.SpeedDialAction,"fabHoverBg",mt(c.background.paper,.15)),p(c.StepConnector,"border",A("palette-grey-600")),p(c.StepContent,"border",A("palette-grey-600")),p(c.Switch,"defaultColor",A("palette-grey-300")),p(c.Switch,"defaultDisabledColor",A("palette-grey-600")),p(c.Switch,"primaryDisabledColor",X(c.primary.main,.55)),p(c.Switch,"secondaryDisabledColor",X(c.secondary.main,.55)),p(c.Switch,"errorDisabledColor",X(c.error.main,.55)),p(c.Switch,"infoDisabledColor",X(c.info.main,.55)),p(c.Switch,"successDisabledColor",X(c.success.main,.55)),p(c.Switch,"warningDisabledColor",X(c.warning.main,.55)),p(c.TableCell,"border",X(ht(c.divider,1),.68)),p(c.Tooltip,"bg",ht(c.grey[700],.92))}we(c.background,"default"),we(c.background,"paper"),we(c.common,"background"),we(c.common,"onBackground"),we(c,"divider"),Object.keys(c).forEach(P=>{const M=c[P];P!=="tonalOffset"&&M&&typeof M=="object"&&(M.main&&p(c[P],"mainChannel",Qe(Ze(M.main))),M.light&&p(c[P],"lightChannel",Qe(Ze(M.light))),M.dark&&p(c[P],"darkChannel",Qe(Ze(M.dark))),M.contrastText&&p(c[P],"contrastTextChannel",Qe(Ze(M.contrastText))),P==="text"&&(we(c[P],"primary"),we(c[P],"secondary")),P==="action"&&(M.active&&we(c[P],"active"),M.selected&&we(c[P],"selected")))})}),T=t.reduce((F,c)=>de(F,c),T);const _={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:Ni(T)},{vars:N,generateThemeVars:v,generateStyleSheets:I}=ni(T,_);return T.vars=N,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([F,c])=>{T[F]=c}),T.generateThemeVars=v,T.generateStyleSheets=I,T.generateSpacing=function(){return Or(f.spacing,hn(this))},T.getColorSchemeSelector=ri(a),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=i,T.unstable_sxConfig={...Bt,...f==null?void 0:f.unstable_sxConfig},T.unstable_sx=function(c){return qe({sx:c,theme:this})},T.toRuntimeSource=jr,T}function ir(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Sn({...n===!0?{}:n.palette,mode:t})})}function ji(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",u=o==null?void 0:o[a],f={...o,...n?{[a]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return on(e,...t);let d=n;"palette"in e||f[a]&&(f[a]!==!0?d=f[a].palette:a==="dark"&&(d={mode:"dark"}));const h=on({...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},ir(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},ir(h,"light",f.light)),h}return!n&&!("light"in f)&&a==="light"&&(f.light=!0),Di({...i,colorSchemes:f,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Br=ji(),Wr="$$material";function Mi(){const e=Is(Br);return process.env.NODE_ENV!=="production"&&Se.useDebugValue(e),e[Wr]||e}function Li(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Bi=e=>Li(e)&&e!=="classes",Wi=Bs({themeId:Wr,defaultTheme:Br,rootShouldForwardProp:Bi}),Fi=Qs;process.env.NODE_ENV!=="production"&&(K.node,K.object.isRequired);function Vi(e){return Xs(e)}function Ui(e){return pn("MuiSvgIcon",e)}Rs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zi=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${De(t)}`,`fontSize${De(n)}`]};return wo(o,Ui,r)},Ki=Wi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${De(n.color)}`],t[`fontSize${De(n.fontSize)}`]]}})(Fi(({theme:e})=>{var t,n,r,o,s,i,a,u,f,d,h,m,y,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:l=>!l.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:((u=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:u.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(([,l])=>l&&l.main).map(([l])=>{var b,k;return{props:{color:l},style:{color:(k=(b=(e.vars??e).palette)==null?void 0:b[l])==null?void 0:k.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=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Et=Se.forwardRef(function(t,n){const r=Vi({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:a="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:d=!1,titleAccess:h,viewBox:m="0 0 24 24",...y}=r,g=Se.isValidElement(o)&&o.type==="svg",l={...r,color:i,component:a,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:g},b={};d||(b.viewBox=m);const k=zi(l);return S.jsxs(Ki,{as:a,className:Tr(k.root,s),focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...b,...y,...g&&o.props,ownerState:l,children:[g?o.props.children:o,h?S.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Et.propTypes={children:K.node,classes:K.object,className:K.string,color:K.oneOfType([K.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),K.string]),component:K.elementType,fontSize:K.oneOfType([K.oneOf(["inherit","large","medium","small"]),K.string]),htmlColor:K.string,inheritViewBox:K.bool,shapeRendering:K.string,sx:K.oneOfType([K.arrayOf(K.oneOfType([K.func,K.object,K.bool])),K.func,K.object]),titleAccess:K.string,viewBox:K.string});Et.muiName="SvgIcon";function he(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,Se.memo(Se.forwardRef(n))}const Hi=he(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 Yi(e){return S.jsx($.Button,{name:e.name,"data-cy":e.dataCy??"cancel-button",className:e.className,sx:e.sx,startIcon:e.startIcon??S.jsx(Hi,{}),variant:e.variant??"contained",color:e.color??"secondary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const qi=he(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 Gi(e){return S.jsx($.Button,{"data-cy":e.dataCy??"delete-button",loading:e.loading??!1,loadingPosition:e.loadingPosition??"start",startIcon:e.startIcon??S.jsx(qi,{}),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 Ji=he(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 Xi(e){return S.jsx($.Tooltip,{title:e.tooltipTitle,children:S.jsx($.IconButton,{sx:{pt:0,pb:0},color:e.color??"primary",onClick:()=>e.onClick(!0),"aria-label":e.tooltipTitle,children:S.jsx(Ji,{})})})}function Qi(e){return S.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 Zi=he(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 ea(e){return S.jsx($.Tooltip,{title:"Go Back to Previous Page",children:S.jsxs($.IconButton,{name:e.name,color:e.color??"primary",onClick:()=>e.navigate(-1),children:[S.jsx(Zi,{}),e.children]})})}const ta=he(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 na(e){return S.jsx($.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(ta,{}),variant:e.variant??"contained",color:e.color??"primary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const ra=he(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"),oa={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function sa(e){return S.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??S.jsx(ra,{}),loading:e.loading,type:e.type??"button",style:oa,sx:e.sx,onClick:e.onClick,children:e.children??e.name})}const ia=he(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 aa(e){return S.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??S.jsx(ia,{}),children:e.children?e.children:"Manage"})}function ca(e){return S.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 wn=he(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"),la=e=>{const[t,n]=se.useState(!1);se.useEffect(()=>{n(e.open)},[e.open,e.progressState]);const r=S.jsx($.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:S.jsx(wn,{fontSize:"small"})});return S.jsxs(S.Fragment,{children:[S.jsx($.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx($.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:e.progressState.message})}),S.jsx($.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.progressState.isError,TransitionComponent:$.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx($.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:e.progressState.message})})]})},ua=e=>{const[t,n]=se.useState(!1);se.useEffect(()=>{n(e.open)},[e.open,e]);const r=S.jsx($.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:()=>n(!1),children:S.jsx(wn,{fontSize:"small"})});return S.jsxs(S.Fragment,{children:[S.jsx($.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isSuccess,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx($.Alert,{variant:"filled",severity:"success",sx:{width:"100%"},action:r,children:e.message})}),S.jsx($.Snackbar,{anchorOrigin:{vertical:"bottom",horizontal:"center"},open:t&&e.isError,TransitionComponent:$.Slide,autoHideDuration:e.autoHideDuration??3e3,onClose:()=>n(!1),children:S.jsx($.Alert,{variant:"filled",sx:{width:"100%"},severity:"error",action:r,children:e.message})})]})};function fa(){return S.jsx("div",{style:{margin:"1.5rem"},className:"app-flex-justify-center",children:S.jsx($.CircularProgress,{})})}function da(e){const{onClose:t,title:n,message:r,open:o,...s}=e;return S.jsxs($.Dialog,{sx:{"& .MuiDialog-paper":{width:"80%",maxHeight:435}},maxWidth:"xs",open:o,...s,children:[S.jsx($.DialogTitle,{children:n??"Confirm"}),S.jsx($.DialogContent,{dividers:!0,children:r}),S.jsxs($.DialogActions,{children:[S.jsx($.Button,{autoFocus:!0,onClick:()=>t("No"),children:"Cancel"}),S.jsx($.Button,{onClick:()=>t("Yes"),children:"Yes"})]})]})}function ha(e){const[t,n]=se.useState(!0),[r]=se.useState(e.dismissible??!0),[o]=se.useState(e.dismissOnTimeOut??!0),[s]=se.useState(e.dismissTimeOut??5e3);return setTimeout(()=>{n(o?!1:t)},s),S.jsx("span",{children:t&&S.jsx($.Alert,{action:r?S.jsx($.IconButton,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>{n(!1)},children:S.jsx(wn,{fontSize:"inherit"})}):null,style:{margin:"20px"},...e,children:e.message})})}function ma(e){return S.jsx($.Link,{component:Sr.Link,to:e.href,className:"next-btn-link",underline:"hover",children:e.linkText??e.children})}const ga=he(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 pa(e){return S.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,S.jsx($.Icon,{sx:{fontSize:"1.1rem",mx:.75,verticalAlign:"middle",display:"inline-flex"},component:ga})]})}function ya(e){const{condition:t,children:n,else:r}=e;return t?typeof n=="function"?n():n:r?typeof r=="function"?r():r:null}const ar=he(S.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),cr=he(S.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),lr=he(S.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),ur=he(S.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function _a(e){const t=Mi(),{count:n,page:r,rowsPerPage:o,onPageChange:s}=e,i=d=>{s(d,0)},a=d=>{s(d,r-1)},u=d=>{s(d,r+1)},f=d=>{s(d,Math.max(0,Math.ceil(n/o)-1))};return S.jsxs($.Box,{sx:{flexShrink:0,ml:2.5},children:[S.jsx($.IconButton,{onClick:i,disabled:r===0,"aria-label":"first page",children:t.direction==="rtl"?S.jsx(ur,{}):S.jsx(ar,{})}),S.jsx($.IconButton,{onClick:a,disabled:r===0,"aria-label":"previous page",children:t.direction==="rtl"?S.jsx(lr,{}):S.jsx(cr,{})}),S.jsx($.IconButton,{onClick:u,disabled:r>=Math.ceil(n/o)-1,"aria-label":"next page",children:t.direction==="rtl"?S.jsx(cr,{}):S.jsx(lr,{})}),S.jsx($.IconButton,{onClick:f,disabled:r>=Math.ceil(n/o)-1,"aria-label":"last page",children:t.direction==="rtl"?S.jsx(ar,{}):S.jsx(ur,{})})]})}function ba(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($.Box,{sx:{p:3},children:S.jsx($.Typography,{component:"span",children:t})})})}function Sa(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 fr=2e3,Ue=console;class wa{constructor(t,n,r,o=fr,s=!0){this._callback=t,this._client_id=n,this._url=r,this._interval=o||fr,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"?(Ue.error("CheckSessionIFrame: error message from check session op iframe"),this._stopOnError&&this.stop()):t.data==="changed"?(Ue.debug(t),Ue.debug("CheckSessionIFrame: changed message from check session op iframe"),this.stop(),this._callback()):Ue.debug("CheckSessionIFrame: "+t.data+" message from check session op iframe"))}start(t){Ue.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&&(Ue.debug("CheckSessionIFrame.stop"),window.clearInterval(this._timer),this._timer=null)}}const D={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"},ge=(e,t=sessionStorage)=>{const n=l=>(t[`oidc.${e}`]=JSON.stringify({tokens:null,status:l}),Promise.resolve()),r=async()=>{if(!t[`oidc.${e}`])return t[`oidc.${e}`]=JSON.stringify({tokens:null,status:null}),{tokens:null,status:null};const l=JSON.parse(t[`oidc.${e}`]);return Promise.resolve({tokens:l.tokens,status:l.status})},o=l=>{t[`oidc.${e}`]=JSON.stringify({tokens:l})},s=async l=>{t[`oidc.session_state.${e}`]=l},i=async()=>t[`oidc.session_state.${e}`],a=l=>{t[`oidc.nonce.${e}`]=l.nonce},u=l=>{t[`oidc.jwk.${e}`]=JSON.stringify(l)},f=()=>JSON.parse(t[`oidc.jwk.${e}`]),d=async()=>({nonce:t[`oidc.nonce.${e}`]}),h=async l=>{t[`oidc.dpop_nonce.${e}`]=l},m=()=>t[`oidc.dpop_nonce.${e}`],y=()=>t[`oidc.${e}`]?JSON.stringify({tokens:JSON.parse(t[`oidc.${e}`]).tokens}):null,g={};return{clearAsync:n,initAsync:r,setTokens:o,getTokens:y,setSessionStateAsync:s,getSessionStateAsync:i,setNonceAsync:a,getNonceAsync:d,setLoginParams:l=>{g[e]=l,t[`oidc.login.${e}`]=JSON.stringify(l)},getLoginParams:()=>{const l=t[`oidc.login.${e}`];return l?(g[e]||(g[e]=JSON.parse(l)),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 l=>{t[`oidc.state.${e}`]=l},getCodeVerifierAsync:async()=>t[`oidc.code_verifier.${e}`],setCodeVerifierAsync:async l=>{t[`oidc.code_verifier.${e}`]=l},setDemonstratingProofOfPossessionNonce:h,getDemonstratingProofOfPossessionNonce:m,setDemonstratingProofOfPossessionJwkAsync:u,getDemonstratingProofOfPossessionJwkAsync:f}};var rt=(e=>(e.AutomaticBeforeTokenExpiration="AutomaticBeforeTokensExpiration",e.AutomaticOnlyWhenFetchExecuted="AutomaticOnlyWhenFetchExecuted",e))(rt||{});const va=e=>decodeURIComponent(Array.prototype.map.call(atob(e),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),ka=e=>JSON.parse(va(e.replaceAll(/-/g,"+").replaceAll(/_/g,"/"))),dr=e=>{try{return e&&Ta(e,".")===2?ka(e.split(".")[1]):null}catch(t){console.warn(t)}return null},Ta=(e,t)=>e.split(t).length-1,sn={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 Ea(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 vn=(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=dr(e.accessToken);let s;t!=null&&"idToken"in t&&!("idToken"in e)?s=t.idToken:s=e.idToken;const i=e.idTokenPayload?e.idTokenPayload:dr(s),a=i&&i.exp?i.exp:Number.MAX_VALUE,u=r&&r.exp?r.exp:e.issuedAt+o;e.issuedAt=Ea(e,r,i);let f;e.expiresAt?f=e.expiresAt:n===sn.access_token_invalid?f=u:n===sn.id_token_invalid?f=a:f=a<u?a:u;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},kn=(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),vn(r,t,n)},tt=(e,t)=>{const n=new Date().getTime()/1e3,r=t-n;return Math.round(r-e)},hr=(e,t=0)=>e?tt(t,e.expiresAt)>0:!1,Fr=async(e,t=200,n=50)=>{let r=n;if(!e.getTokens())return null;for(;!hr(e.getTokens(),e.configuration.refresh_time_before_tokens_expiration_in_second)&&r>0;){if(e.configuration.token_automatic_renew_mode==rt.AutomaticOnlyWhenFetchExecuted){await e.renewTokensAsync({});break}else await Tn({milliseconds:t});r=r-1}return{isTokensValid:hr(e.getTokens()),tokens:e.getTokens(),numberWaited:r-n}},Vr=(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:""}},Ge=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)}}(),Xt="7.25.14";let mr=null,Ct;const Tn=({milliseconds:e})=>new Promise(t=>Ge.setTimeout(t,e)),Ur=(e="/")=>{try{Ct=new AbortController,fetch(`${e}OidcKeepAliveServiceWorker.json?minSleepSeconds=150`,{signal:Ct.signal}).catch(t=>{console.log(t)}),Tn({milliseconds:150*1e3}).then(Ur)}catch(t){console.log(t)}},Qt=()=>{Ct&&Ct.abort()},zr=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},ae=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:zr(t.configurationName)},[o.port2])}),pe=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=${Xt}`;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 v=o.installing;Qt(),v==null||v.addEventListener("statechange",()=>{v.state==="installed"&&navigator.serviceWorker.controller&&(Qt(),console.log("New SW waiting – skipWaiting()"),v.postMessage({type:"SKIP_WAITING"}))})}),navigator.serviceWorker.addEventListener("controllerchange",()=>{console.log("SW controller changed – reloading page"),Qt(),window.location.reload()});try{await navigator.serviceWorker.ready,navigator.serviceWorker.controller||await ae(o)({type:"claim"})}catch(v){return console.warn(`Failed init ServiceWorker ${v.toString()}`),null}const s=async v=>ae(o)({type:"clear",data:{status:v},configurationName:t}),i=async(v,I,F)=>{const c=await ae(o)({type:"init",data:{oidcServerConfiguration:v,where:I,oidcConfiguration:{token_renew_mode:F.token_renew_mode,service_worker_convert_all_requests_to_cors:F.service_worker_convert_all_requests_to_cors}},configurationName:t}),A=c.version;return A!==Xt&&console.warn(`Service worker ${A} version mismatch with js client version ${Xt}, unregistering and reloading`),{tokens:kn(c.tokens,null,F.token_renew_mode),status:c.status}},a=(v="/")=>{mr==null&&(mr="not_null",Ur(v))},u=v=>ae(o)({type:"setSessionState",data:{sessionState:v},configurationName:t}),f=async()=>(await ae(o)({type:"getSessionState",data:null,configurationName:t})).sessionState,d=v=>(sessionStorage[`oidc.nonce.${t}`]=v.nonce,ae(o)({type:"setNonce",data:{nonce:v},configurationName:t})),h=async(v=!0)=>{let I=(await ae(o)({type:"getNonce",data:null,configurationName:t})).nonce;return I||(I=sessionStorage[`oidc.nonce.${t}`],console.warn("nonce not found in service worker, using sessionStorage"),v&&(await d(I),I=(await h(!1)).nonce)),{nonce:I}},m={},y=v=>{m[t]=v,localStorage[`oidc.login.${t}`]=JSON.stringify(v)},g=()=>{const v=localStorage[`oidc.login.${t}`];return m[t]||(m[t]=JSON.parse(v)),m[t]},l=async v=>{await ae(o)({type:"setDemonstratingProofOfPossessionNonce",data:{demonstratingProofOfPossessionNonce:v},configurationName:t})},b=async()=>(await ae(o)({type:"getDemonstratingProofOfPossessionNonce",data:null,configurationName:t})).demonstratingProofOfPossessionNonce,k=async v=>{const I=JSON.stringify(v);await ae(o)({type:"setDemonstratingProofOfPossessionJwk",data:{demonstratingProofOfPossessionJwkJson:I},configurationName:t})},x=async()=>{const v=await ae(o)({type:"getDemonstratingProofOfPossessionJwk",data:null,configurationName:t});return v.demonstratingProofOfPossessionJwkJson?JSON.parse(v.demonstratingProofOfPossessionJwkJson):null},E=async(v=!0)=>{let I=(await ae(o)({type:"getState",data:null,configurationName:t})).state;return I||(I=sessionStorage[`oidc.state.${t}`],console.warn("state not found in service worker, using sessionStorage"),v&&(await T(I),I=await E(!1))),I},T=async v=>(sessionStorage[`oidc.state.${t}`]=v,ae(o)({type:"setState",data:{state:v},configurationName:t})),_=async(v=!0)=>{let I=(await ae(o)({type:"getCodeVerifier",data:null,configurationName:t})).codeVerifier;return I||(I=sessionStorage[`oidc.code_verifier.${t}`],console.warn("codeVerifier not found in service worker, using sessionStorage"),v&&(await N(I),I=await _(!1))),I},N=async v=>(sessionStorage[`oidc.code_verifier.${t}`]=v,ae(o)({type:"setCodeVerifier",data:{codeVerifier:v},configurationName:t}));return{clearAsync:s,initAsync:i,startKeepAliveServiceWorker:()=>a(e.service_worker_keep_alive_path),setSessionStateAsync:u,getSessionStateAsync:f,setNonceAsync:d,getNonceAsync:h,setLoginParams:y,getLoginParams:g,getStateAsync:E,setStateAsync:T,getCodeVerifierAsync:_,setCodeVerifierAsync:N,setDemonstratingProofOfPossessionNonce:l,getDemonstratingProofOfPossessionNonce:b,setDemonstratingProofOfPossessionJwkAsync:k,getDemonstratingProofOfPossessionJwkAsync:x}},He={},Aa=(e,t=window.sessionStorage,n)=>{if(!He[e]&&t){const o=t.getItem(e);o&&(He[e]=JSON.parse(o))}const r=1e3*n;return He[e]&&He[e].timestamp+r>Date.now()?He[e].result:null},Ca=(e,t,n=window.sessionStorage)=>{const r=Date.now();He[e]={result:t,timestamp:r},n&&n.setItem(e,JSON.stringify({result:t,timestamp:r}))};function Kr(e){return new TextEncoder().encode(e)}function Hr(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+/g,"")}function Oa(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(t,n){return String.fromCharCode(parseInt(n,16))})}const En=e=>{let t="";return e.forEach(function(n){t+=String.fromCharCode(n)}),Hr(t)};function gr(e){return Hr(Oa(e))}const xa={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"},Pa=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:gr(JSON.stringify(n)),payload:gr(JSON.stringify(r))},a=o.importKeyAlgorithm,u=!0,f=["sign"],d=await e.crypto.subtle.importKey("jwk",t,a,u,f),h=Kr(`${i.protected}.${i.payload}`),m=o.signAlgorithm,y=await e.crypto.subtle.sign(m,d,h);return i.signature=En(new Uint8Array(y)),`${i.protected}.${i.payload}.${i.signature}`},Na={sign:Pa},Ia=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)},$a=e=>{const t=Object.assign({},e);return delete t.d,t.key_ops=["verify"],t},Ra={generate:Ia,neuter:$a},Da=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,Kr(r));return En(new Uint8Array(o))},ja={thumbprint:Da},Ma=e=>async t=>await Ra.generate(e)(t),Yr=e=>t=>async(n,r="POST",o,s={})=>{const i={jti:btoa(La()),htm:r,htu:o,iat:Math.round(Date.now()/1e3),...s},a=await ja.thumbprint(e)(n,t.digestAlgorithm);return await Na.sign(e)(n,{kid:a},i,t)},La=()=>{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}},an="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Ba=e=>{const t=[];for(let n=0;n<e.byteLength;n+=1){const r=e[n]%an.length;t.push(an[r])}return t.join("")},cn=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()*an.length|0;return Ba(t)};function Wa(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 Gr(e){return new Promise((t,n)=>{crypto.subtle.digest("SHA-256",Wa(e)).then(r=>t(En(new Uint8Array(r))),r=>n(r))})}const Fa=e=>{if(e.length<43||e.length>128)return Promise.reject(new Error("Invalid code length."));const{hasSubtleCrypto:t}=qr();return t?Gr(e):Promise.reject(new Error("window.crypto.subtle is unavailable."))},Va=60*60,Ua=e=>async(t,n=Va,r=window.sessionStorage,o=1e4)=>{const s=`${t}/.well-known/openid-configuration`,i=`oidc.server:${t}`,a=Aa(i,r,n);if(a)return new un(a);const u=await ct(e)(s,{},o);if(u.status!==200)return null;const f=await u.json();return Ca(i,f,r),new un(f)},ct=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 ct(e)(t,n,r,o+1);throw i}else throw console.error(i.message),i}return s},ln={refresh_token:"refresh_token",access_token:"access_token"},pr=e=>async(t,n,r=ln.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 u=[];for(const d in a){const h=encodeURIComponent(d),m=encodeURIComponent(a[d]);u.push(`${h}=${m}`)}const f=u.join("&");return(await ct(e)(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:f},i)).status!==200?{success:!1}:{success:!0}},za=e=>async(t,n,r,o,s={},i,a=1e4)=>{for(const[y,g]of Object.entries(r))n[y]===void 0&&(n[y]=g);const u=[];for(const y in n){const g=encodeURIComponent(y),l=encodeURIComponent(n[y]);u.push(`${g}=${l}`)}const f=u.join("&"),d=await ct(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(Ot)&&(m=d.headers.get(Ot)),{success:!0,status:d.status,data:kn(h,o,i),demonstratingProofOfPossessionNonce:m}},Ka=(e,t)=>async(n,r)=>{r=r?{...r}:{};const o=cn(128),s=await Fa(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,u]of Object.entries(r))i===""?i+="?":i+="&",i+=`${a}=${encodeURIComponent(u)}`;t.open(`${n}${i}`)},Ot="DPoP-Nonce",Ha=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),y=encodeURIComponent(n[h]);i.push(`${m}=${y}`)}const a=i.join("&"),u=await ct(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)]),u.status!==200)return{success:!1,status:u.status};let f=null;u.headers.has(Ot)&&(f=u.headers.get(Ot));const d=await u.json();return{success:!0,data:{state:n.state,tokens:kn(d,null,o),demonstratingProofOfPossessionNonce:f}}};async function yr(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 pe(e.configuration,e.configurationName)||await ge(e.configurationName,e.configuration.storage).setTokens(e.tokens),e.tokens?s:(await e.destroyAsync(i),null)}async function Jr(e,t=!1,n=null,r=null){const o=e.configuration,s=`${o.client_id}_${e.configurationName}_${o.authority}`;let i;const a=await pe(e.configuration,e.configurationName);if((o==null?void 0:o.storage)===(window==null?void 0:window.sessionStorage)&&!a||!navigator.locks)i=await yr(e,t,n,r);else{let u="retry";for(;u==="retry";)u=await navigator.locks.request(s,{ifAvailable:!0},async f=>f?await yr(e,t,n,r):(e.publishEvent(ke.eventNames.syncTokensAsync_lock_not_available,{lock:"lock not available"}),"retry"));i=u}return i?(e.timeoutId&&(e.timeoutId=ot(e,e.tokens.expiresAt,n,r)),e.tokens):null}const ot=(e,t,n=null,r=null)=>{const o=e.configuration.refresh_time_before_tokens_expiration_in_second;return e.timeoutId&&Ge.clearTimeout(e.timeoutId),Ge.setTimeout(async()=>{const s={timeLeft:tt(o,t)};e.publishEvent(ke.eventNames.token_timer,s),await Jr(e,!1,n,r)},1e3)},Ee={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"},Ya=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),u=await pe(t,n);if(u){const{status:d,tokens:h}=await u.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=tt(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",y=await u.getNonceAsync();return{tokens:h,status:m,nonce:y}}i=await u.getNonceAsync()}else{const d=ge(n,t.storage??sessionStorage),h=await d.initAsync();let{tokens:m}=h;const{status:y}=h;if(m&&(m=vn(m,e.tokens,t.token_renew_mode)),m){if(y==="SESSIONS_LOST")return{tokens:null,status:"SESSIONS_LOST",nonce:s};if(m.issuedAt!==r.issuedAt){const g=tt(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",l=await d.getNonceAsync();return{tokens:m,status:g,nonce:l}}}else return{tokens:null,status:"LOGOUT_FROM_ANOTHER_TAB",nonce:s};i=await d.getNonceAsync()}const f=tt(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 u=5,f=5;for(;!navigator.onLine&&a>0;)await Tn({milliseconds:1e3}),a--,e.publishEvent(D.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>=u||r>=f)return t(null),e.publishEvent(D.refreshTokensAsync_error,{message:"refresh token"}),{tokens:null,status:"SESSION_LOST"};s||(s={});const y=e.configuration,g=(b,k=null,x=null)=>An(e.configurationName,e.configuration,e.publishEvent.bind(e))(b,k,x),l=async()=>{try{let b;const k=await pe(y,e.configurationName);k?b=k.getLoginParams():b=ge(e.configurationName,y.storage).getLoginParams();const x=await g({...b.extras,...s,prompt:"none",scope:i});return x?x.error?(t(null),e.publishEvent(D.refreshTokensAsync_error,{message:"refresh token silent"}),{tokens:null,status:"SESSION_LOST"}):(t(x.tokens),e.publishEvent(ke.eventNames.token_renewed,{}),{tokens:x.tokens,status:"LOGGED"}):(t(null),e.publishEvent(D.refreshTokensAsync_error,{message:"refresh token silent not active"}),{tokens:null,status:"SESSION_LOST"})}catch(b){return console.error(b),e.publishEvent(D.refreshTokensAsync_silent_error,{message:"exceptionSilent",exception:b.message}),await pt(e)(t,h,m,o,s,i)}};try{const{status:b,tokens:k,nonce:x}=await Ya(e)(y,e.configurationName,e.tokens,o);switch(b){case Ee.SESSION_LOST:return t(null),e.publishEvent(D.refreshTokensAsync_error,{message:"refresh token session lost"}),{tokens:null,status:"SESSION_LOST"};case Ee.NOT_CONNECTED:return t(null),{tokens:null,status:null};case Ee.TOKENS_VALID:return t(k),{tokens:k,status:"LOGGED_IN"};case Ee.TOKEN_UPDATED_BY_ANOTHER_TAB_TOKENS_VALID:return t(k),e.publishEvent(ke.eventNames.token_renewed,{reason:"TOKEN_UPDATED_BY_ANOTHER_TAB_TOKENS_VALID"}),{tokens:k,status:"LOGGED_IN"};case Ee.LOGOUT_FROM_ANOTHER_TAB:return t(null),e.publishEvent(D.logout_from_another_tab,{status:"session syncTokensAsync"}),{tokens:null,status:"LOGGED_OUT"};case Ee.REQUIRE_SYNC_TOKENS:return y.token_automatic_renew_mode==rt.AutomaticOnlyWhenFetchExecuted&&Ee.FORCE_REFRESH!==b?(e.publishEvent(D.tokensInvalidAndWaitingActionsToRefresh,{}),{tokens:e.tokens,status:"GIVE_UP"}):(e.publishEvent(D.refreshTokensAsync_begin,{tryNumber:n}),await l());default:{if(y.token_automatic_renew_mode==rt.AutomaticOnlyWhenFetchExecuted&&Ee.FORCE_REFRESH!==b)return e.publishEvent(D.tokensInvalidAndWaitingActionsToRefresh,{}),{tokens:e.tokens,status:"GIVE_UP"};if(e.publishEvent(D.refreshTokensAsync_begin,{refreshToken:k.refreshToken,status:b,tryNumber:n,backgroundTry:r}),!k.refreshToken)return await l();const E=y.client_id,T=y.redirect_uri,_=y.authority,N={...y.token_request_extras?y.token_request_extras:{}};for(const[v,I]of Object.entries(s))v.endsWith(":token_request")&&(N[v.replace(":token_request","")]=I);return await(async()=>{const v={client_id:E,redirect_uri:T,grant_type:"refresh_token",refresh_token:k.refreshToken},I=await e.initAsync(_,y.authority_configuration),F=document.hidden?1e4:3e4*10,c=I.tokenEndpoint,A={};y.demonstrating_proof_of_possession&&(A.DPoP=await e.generateDemonstrationOfProofOfPossessionAsync(k.accessToken,c,"POST"));const P=await za(e.getFetch())(c,v,N,k,A,y.token_renew_mode,F);if(P.success){const{isValid:M,reason:re}=Vr(P.data,x.nonce,I);if(!M)return t(null),e.publishEvent(D.refreshTokensAsync_error,{message:`refresh token return not valid tokens, reason: ${re}`}),{tokens:null,status:"SESSION_LOST"};if(t(P.data),P.demonstratingProofOfPossessionNonce){const ee=await pe(y,e.configurationName);ee?await ee.setDemonstratingProofOfPossessionNonce(P.demonstratingProofOfPossessionNonce):await ge(e.configurationName,y.storage).setDemonstratingProofOfPossessionNonce(P.demonstratingProofOfPossessionNonce)}return e.publishEvent(D.refreshTokensAsync_end,{success:P.success}),e.publishEvent(ke.eventNames.token_renewed,{reason:"REFRESH_TOKEN"}),{tokens:P.data,status:"LOGGED_IN"}}else return e.publishEvent(D.refreshTokensAsync_silent_error,{message:"bad request",tokenResponse:P}),P.status>=400&&P.status<500?(t(null),e.publishEvent(D.refreshTokensAsync_error,{message:`session lost: ${P.status}`}),{tokens:null,status:"SESSION_LOST"}):await pt(e)(t,h,m,o,s,i)})()}}}catch(b){return console.error(b),e.publishEvent(D.refreshTokensAsync_silent_error,{message:"exception",exception:b.message}),new Promise((k,x)=>{setTimeout(()=>{pt(e)(t,h,m,o,s,i).then(k).catch(x)},1e3)})}},An=(e,t,n)=>(r=null,o=null,s=null)=>{if(!t.silent_redirect_uri||!t.silent_login_uri)return Promise.resolve(null);try{n(D.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,u=a.indexOf("/",a.indexOf("//")+2),f=a.substring(0,u),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 y=!1;const g=()=>{window.removeEventListener("message",l),d.remove(),y=!0},l=b=>{if(b.origin===f&&b.source===d.contentWindow){const k=`${e}_oidc_tokens:`,x=`${e}_oidc_error:`,E=`${e}_oidc_exception:`,T=b.data;if(T&&typeof T=="string"&&!y){if(T.startsWith(k)){const _=JSON.parse(b.data.replace(k,""));n(D.silentLoginAsync_end,{}),h(_),g()}else if(T.startsWith(x)){const _=JSON.parse(b.data.replace(x,""));n(D.silentLoginAsync_error,_),h({error:"oidc_"+_.error,tokens:null,sessionState:null}),g()}else if(T.startsWith(E)){const _=JSON.parse(b.data.replace(E,""));n(D.silentLoginAsync_error,_),m(new Error(_.error)),g()}}}};try{window.addEventListener("message",l);const b=t.silent_login_timeout;setTimeout(()=>{y||(g(),n(D.silentLoginAsync_error,{reason:"timeout"}),m(new Error("timeout")))},b)}catch(b){g(),n(D.silentLoginAsync_error,b),m(b)}})}catch(i){throw n(D.silentLoginAsync_error,i),i}},qa=(e,t,n,r,o)=>(s=null,i=void 0)=>{s={...s};const a=(u,f,d)=>An(t,n,r.bind(o))(u,f,d);return(async()=>{o.timeoutId&&Ge.clearTimeout(o.timeoutId);let u;s&&"state"in s&&(u=s.state,delete s.state);try{const f=n.extras?{...n.extras,...s}:s,d=await a({...f,prompt:"none"},u,i);if(d)return o.tokens=d.tokens,r(D.token_acquired,{}),o.timeoutId=ot(o,o.tokens.expiresAt,s,i),{}}catch(f){return f}})()},Ga=(e,t,n)=>(r,o,s,i=!1)=>{const a=(u,f=void 0,d=void 0)=>An(e.configurationName,n,e.publishEvent.bind(e))(u,f,d);return new Promise((u,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,y=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 l=g.tokens.idTokenPayload;if(y.sub===l.sub){const b=g.sessionState;e.checkSessionIFrame.start(g.sessionState),y.sid===l.sid?console.debug("SessionMonitor._callback: Same sub still logged in at OP, restarting check session iframe; session_state:",b):console.debug("SessionMonitor._callback: Same sub still logged in at OP, session state has changed, restarting check session iframe; session_state:",b)}else console.debug("SessionMonitor._callback: Different subject signed into OP:",l.sub)}).catch(async g=>{console.warn("SessionMonitor._callback: Silent login failed, logging out other tabs:",g);for(const[,l]of Object.entries(t))await l.logoutOtherTabAsync(n.client_id,y.sub)})};e.checkSessionIFrame=new wa(d,o,r),e.checkSessionIFrame.load().then(()=>{e.checkSessionIFrame.start(s),u(e.checkSessionIFrame)}).catch(h=>{f(h)})}else u(null)})},Ja=e=>!!(e.os==="iOS"&&e.osVersion.startsWith("12")||e.os==="Mac OS X"&&e.osVersion.startsWith("10_15_6")),Xa=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 u=s[a];if(u.r.test(n)){o=u.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 Qa(){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 Za=()=>{const{name:e,version:t}=Qa();if(e==="chrome"&&parseInt(t)<=70||e==="opera"&&(!t||parseInt(t.split(".")[0])<80)||e==="ie")return!1;const n=Xa(navigator);return!Ja(n)},ec=async e=>{let t;if(e.tokens!=null)return!1;e.publishEvent(D.tryKeepExistingSessionAsync_begin,{});try{const n=e.configuration,r=await e.initAsync(n.authority,n.authority_configuration);if(t=await pe(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=ot(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(D.tryKeepExistingSessionAsync_end,{success:!0,message:"tokens inside ServiceWorker are valid"}),!0}e.publishEvent(D.tryKeepExistingSessionAsync_end,{success:!1,message:"no exiting session found"})}else{n.service_worker_relative_url&&e.publishEvent(D.service_worker_not_supported_by_browser,{message:"service worker is not supported by this browser"});const o=ge(e.configurationName,n.storage??sessionStorage),{tokens:s}=await o.initAsync();if(s){e.tokens=vn(s,null,n.token_renew_mode);const i=o.getLoginParams();e.timeoutId=ot(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(D.tryKeepExistingSessionAsync_end,{success:!0,message:"tokens inside storage are valid"}),!0}}return e.publishEvent(D.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(D.tryKeepExistingSessionAsync_error,"tokens inside ServiceWorker are invalid"),!1}},Xr=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}},Xe=e=>{const t=Xr(e);let{path:n}=t;n.endsWith("/")&&(n=n.slice(0,-1));let{hash:r}=t;return r==="#_=_"&&(r=""),r&&(n+=r),n},xt=e=>{const t=Xr(e),{search:n}=t;return tc(n)},tc=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},nc=(e,t,n,r,o)=>(s=void 0,i=null,a=!1,u=void 0)=>{const f=i;return i={...i},(async()=>{const d=s||o.getPath();if("state"in i||(i.state=cn(16)),n(D.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;u||(u=t.scope);const m=t.extras?{...t.extras,...i}:i;m.nonce||(m.nonce=cn(12));const y={nonce:m.nonce},g=await pe(t,e),l=await r(t.authority,t.authority_configuration);let b;if(g)g.setLoginParams({callbackPath:d,extras:f,scope:u}),await g.initAsync(l,"loginAsync",t),await g.setNonceAsync(y),g.startKeepAliveServiceWorker(),b=g;else{const x=ge(e,t.storage??sessionStorage);x.setLoginParams({callbackPath:d,extras:f,scope:u}),await x.setNonceAsync(y),b=x}const k={client_id:t.client_id,redirect_uri:h,scope:u,response_type:"code",...m};await Ka(b,o)(l.authorizationEndpoint,k)}catch(h){throw n(D.loginAsync_error,h),h}})()},rc=e=>async(t=!1)=>{try{e.publishEvent(D.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),u=e.location.getCurrentHref(),f=xt(u),d=f.session_state,h=await pe(n,e.configurationName);let m,y,g,l;if(h)await h.initAsync(a,"loginCallbackAsync",n),await h.setSessionStateAsync(d),y=await h.getNonceAsync(),g=h.getLoginParams(),l=await h.getStateAsync(),h.startKeepAliveServiceWorker(),m=h;else{const c=ge(e.configurationName,n.storage??sessionStorage);await c.setSessionStateAsync(d),y=await c.getNonceAsync(),g=c.getLoginParams(),l=await c.getStateAsync(),m=c}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!==l)throw new Error(`State not valid (expected: ${l}, received: ${f.state})`);const b={code:f.code,grant_type:"authorization_code",client_id:n.client_id,redirect_uri:o},k={};if(n.token_request_extras)for(const[c,A]of Object.entries(n.token_request_extras))k[c]=A;if(g!=null&&g.extras)for(const[c,A]of Object.entries(g.extras))c.endsWith(":token_request")&&(k[c.replace(":token_request","")]=A);const x=a.tokenEndpoint,E={};if(n.demonstrating_proof_of_possession)if(h)E.DPoP=`DPOP_SECURED_BY_OIDC_SERVICE_WORKER_${e.configurationName}`;else{const c=await Ma(window)(n.demonstrating_proof_of_possession_configuration.generateKeyAlgorithm);await ge(e.configurationName,n.storage).setDemonstratingProofOfPossessionJwkAsync(c),E.DPoP=await Yr(window)(n.demonstrating_proof_of_possession_configuration)(c,"POST",x)}const T=await Ha(m)(x,{...b,...k},E,e.configuration.token_renew_mode,i);if(!T.success)throw new Error("Token request failed");let _;const N=T.data.tokens,v=T.data.demonstratingProofOfPossessionNonce;if(T.data.state!==k.state)throw new Error("state is not valid");const{isValid:I,reason:F}=Vr(N,y.nonce,a);if(!I)throw new Error(`Tokens are not OpenID valid, reason: ${F}`);if(h){if(N.refreshToken&&!N.refreshToken.includes("SECURED_BY_OIDC_SERVICE_WORKER"))throw new Error("Refresh token should be hidden by service worker");if(v&&N!=null&&N.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),_=h.getLoginParams(),v&&await h.setDemonstratingProofOfPossessionNonce(v);else{const c=ge(e.configurationName,n.storage);_=c.getLoginParams(),v&&await c.setDemonstratingProofOfPossessionNonce(v)}return await e.startCheckSessionAsync(a.checkSessionIframe,r,d,t),e.publishEvent(D.loginCallbackAsync_end,{}),{tokens:N,state:"request.state",callbackPath:_.callbackPath,scope:f.scope,extras:_.extras}}catch(n){throw console.error(n),e.publishEvent(D.loginCallbackAsync_error,n),n}},_r={access_token:"access_token",refresh_token:"refresh_token"},Zt=(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},oc=e=>{const t={};if(e){for(const[n,r]of Object.entries(e))n.includes(":")||(t[n]=r);return t}return t},sc=e=>async t=>{Ge.clearTimeout(e.timeoutId),e.timeoutId=null,e.checkSessionIFrame&&e.checkSessionIFrame.stop();const n=await pe(e.configuration,e.configurationName);n?await n.clearAsync(t):await ge(e.configurationName,e.configuration.storage).clearAsync(t),e.tokens=null,e.userInfo=null},ic=(e,t,n,r,o)=>async(s=void 0,i=null)=>{var a,u;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 y=m?s:o.getOrigin()+h,g=e.tokens?e.tokens.idToken:"";try{const x=d.revocationEndpoint;if(x){const E=[],T=e.tokens?e.tokens.accessToken:null;if(T&&f.logout_tokens_to_invalidate.includes(_r.access_token)){const N=Zt(i,":revoke_access_token"),v=pr(n)(x,T,ln.access_token,f.client_id,N);E.push(v)}const _=e.tokens?e.tokens.refreshToken:null;if(_&&f.logout_tokens_to_invalidate.includes(_r.refresh_token)){const N=Zt(i,":revoke_refresh_token"),v=pr(n)(x,_,ln.refresh_token,f.client_id,N);E.push(v)}E.length>0&&await Promise.all(E)}}catch(x){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(x)}const l=((u=(a=e.tokens)==null?void 0:a.idTokenPayload)==null?void 0:u.sub)??null;await e.destroyAsync("LOGGED_OUT");for(const[,x]of Object.entries(t))x!==e?await e.logoutSameTabAsync(e.configuration.client_id,l):e.publishEvent(D.logout_from_same_tab,{});const b=Zt(i,":oidc");if(b&&b.no_reload==="true")return;const k=oc(i);if(d.endSessionEndpoint){"id_token_hint"in k||(k.id_token_hint=g),!("post_logout_redirect_uri"in k)&&s!==null&&(k.post_logout_redirect_uri=y);let x="";for(const[E,T]of Object.entries(k))T!=null&&(x===""?x+="?":x+="&",x+=`${E}=${encodeURIComponent(T)}`);o.open(`${d.endSessionEndpoint}${x}`)}else o.reload()},Qr=(e,t,n=!1)=>async(...r)=>{var o;const[s,i,...a]=r,u=i?{...i}:{method:"GET"};let f=new Headers;u.headers&&(f=u.headers instanceof Headers?u.headers:new Headers(u.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 Fr(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(),u.method);f.set("Authorization",`DPoP ${m}`),f.set("DPoP",g)}else f.set("Authorization",`Bearer ${m}`);u.credentials||(u.credentials="same-origin")}const y={...u,headers:f};return await e(s,y,...a)},ac=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 Qr(fetch,e,n)(o);return i.status!==200?null:i.json()})();return e.userInfo=s,s},cc=()=>fetch;class un{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 $e={},lc=(e,t=new At)=>(n,r="default")=>($e[r]||($e[r]=new ke(n,r,e,t)),$e[r]),uc=async e=>{const{parsedTokens:t,callbackPath:n,extras:r,scope:o}=await e.loginCallbackAsync();return e.timeoutId=ot(e,t.expiresAt,r,o),{callbackPath:n}},fc=e=>Math.floor(Math.random()*e),fn=class Zr{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??rt.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??sn.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??Za,demonstrating_proof_of_possession_configuration:t.demonstrating_proof_of_possession_configuration??xa,preload_user_info:t.preload_user_info??!1},this.getFetch=r??cc,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=fc(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($e,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 $e[t]}_silentLoginCallbackFromIFrame(){if(this.configuration.silent_redirect_uri&&this.configuration.silent_login_uri){const t=this.location,n=xt(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=xt(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 un({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 pe(this.configuration,this.configurationName)?window.sessionStorage:null;return await Ua(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=ec(this),this.tryKeepExistingSessionPromise.finally(()=>{this.tryKeepExistingSessionPromise=null}))}async startCheckSessionAsync(t,n,r,o=!1){await Ga(this,$e,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=qa(window,this.configurationName,this.configuration,this.publishEvent.bind(this),this)(n,o):this.loginPromise=nc(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 rc(this)(t),o=r.tokens;return this.tokens=o,await pe(this.configuration,this.configurationName)||ge(this.configurationName,this.configuration.storage).setTokens(o),this.publishEvent(Zr.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 Gr(t),...o};if(await pe(s,this.configurationName))return`DPOP_SECURED_BY_OIDC_SERVICE_WORKER_${this.configurationName}#tabId=${zr(this.configurationName)}`;const a=ge(this.configurationName,s.storage),u=await a.getDemonstratingProofOfPossessionJwkAsync(),f=a.getDemonstratingProofOfPossessionNonce();return f&&(i.nonce=f),await Yr(window)(s.demonstrating_proof_of_possession_configuration)(u,r,n,i)}loginCallbackWithAutoTokensRenewAsync(){return this.loginCallbackWithAutoTokensRenewPromise!==null?this.loginCallbackWithAutoTokensRenewPromise:(this.loginCallbackWithAutoTokensRenewPromise=uc(this),this.loginCallbackWithAutoTokensRenewPromise.finally(()=>{this.loginCallbackWithAutoTokensRenewPromise=null}))}userInfoAsync(t=!1,n=!1){return this.userInfoPromise!==null?this.userInfoPromise:(this.userInfoPromise=ac(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 Ge.clearTimeout(this.timeoutId),this.renewTokensPromise=Jr(this,!0,t,n),this.renewTokensPromise.finally(()=>{this.renewTokensPromise=null})}async destroyAsync(t){return await sc(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(D.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(D.logout_from_another_tab,{message:"SessionMonitor",sub:n}))}async logoutAsync(t=void 0,n=null){return this.logoutPromise?this.logoutPromise:(this.logoutPromise=ic(this,$e,this.getFetch(),console,this.location)(t,n),this.logoutPromise.finally(()=>{this.logoutPromise=null}))}};fn.getOrCreate=(e,t)=>(n,r="default")=>lc(e,t)(n,r),fn.eventNames=D;let ke=fn;const yt=class eo{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 eo(ke.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 Fr(o,t,n)}fetchWithTokens(t,n=!1){return Qr(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(ke.getOrCreate(e,t)(n,r)),yt.eventNames=ke.eventNames;let ce=yt;const dc=()=>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."})]})}),hc=()=>Math.random().toString(36).slice(2,8),mc=(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},gc=(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"))}}),pc=()=>gc(window,mc(window,document),hc),yc=()=>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."})]})}),_c=({callBackError:e,callBackSuccess:t,configurationName:n,withCustomHistory:r})=>{const[o,s]=se.useState(!1);se.useEffect(()=>{let u=!0;return(async()=>{const f=ce.get;try{const{callbackPath:d}=await f(n).loginCallbackAsync();(r?r():pc()).replaceState(d||"/")}catch(d){u&&(console.warn(d),s(!0))}})(),()=>{u=!1}},[]);const i=e||dc,a=t||yc;return o?S.jsx(i,{configurationName:n}):S.jsx(a,{configurationName:n})},bc=({configurationName:e})=>(se.useEffect(()=>{(async()=>{ce.get(e).silentLoginCallbackAsync()})().catch(t=>{console.error("Error during silent login callback:",t)})},[e]),null),Sc=({configurationName:e})=>{const t=xt(window.location.href),n=ce.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 se.useEffect(()=>{r.tokens||r.loginAsync(null,o,!0,t.scope)},[]),S.jsx(S.Fragment,{})},wc=({callbackErrorComponent:e,callbackSuccessComponent:t,redirect_uri:n,silent_redirect_uri:r,silent_login_uri:o,children:s,configurationName:i,withCustomHistory:a=null})=>{const u=window?Xe(window.location.href):"",[f,d]=se.useState(u);se.useEffect(()=>{const m=()=>d(Xe(window.location.href));return m(),window.addEventListener("popstate",m,!1),()=>window.removeEventListener("popstate",m,!1)},[]);const h=Xe(n);if(r&&f===Xe(r))return S.jsx(bc,{configurationName:i});if(o&&f===Xe(o))return S.jsx(Sc,{configurationName:i});switch(f){case h:return S.jsx(_c,{callBackError:e,callBackSuccess:t,configurationName:i,withCustomHistory:a});default:return S.jsx(S.Fragment,{children:s})}};se.memo(wc);const to="default",en=(e,t)=>{let n=!1;return e(t)&&(n=e(t).tokens!=null),n},vc=(e=to)=>{const t=ce.get,[n,r]=se.useState(en(t,e));return se.useEffect(()=>{let o=!0;const s=t(e);r(en(t,e));const i=s.subscribeEvents((a,u)=>{(a===ce.eventNames.logout_from_another_tab||a===ce.eventNames.logout_from_same_tab||a===ce.eventNames.token_acquired)&&o&&r(en(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}},no={idToken:null,idTokenPayload:null},kc=e=>{const t=ce.get,n=t(e);if(n.tokens){const r=n.tokens;return{idToken:r.idToken,idTokenPayload:r.idTokenPayload}}return no},Tc=(e=to)=>{const t=ce.get,[n,r]=se.useState(kc(e));return se.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,u)=>{if((a===ce.eventNames.token_renewed||a===ce.eventNames.token_acquired||a===ce.eventNames.logout_from_another_tab||a===ce.eventNames.logout_from_same_tab||a===ce.eventNames.refreshTokensAsync_error||a===ce.eventNames.syncTokensAsync_error)&&o){const f=s.tokens;r(f!=null?{idToken:f.idToken,idTokenPayload:f.idTokenPayload}:no)}});return()=>{o=!1,s.removeEventSubscription(i)}},[e]),n},ro=401,_t=403,bt=404,St=405,wt=409,Ec=500,Ac=501,Cc=502,Oc=503,xc=504,Pc=505,Nc=e=>{const{idToken:t}=Tc(),{login:n}=vc();return st.interceptors.request.use(r=>(t&&(r.headers={...r.headers,Authorization:`Bearer ${t}`}),r.headers={"Content-Type":"application/json",...r.headers},r)),st.interceptors.response.use(r=>r,r=>{const o=r.statusCode;if(o===ro){n().then(s=>s);return}(async()=>{if(o===_t){const u=r.response?await ze(r.response):null,f=(u==null?void 0:u.message)||Ke(_t),d=Ae(r,_t,f,r.response);return console.error("Access Forbidden:",f),Promise.reject(d)}if(o===bt){const u=r.response?await ze(r.response):null,f=(u==null?void 0:u.message)||Ke(bt),d=Ae(r,bt,f,r.response);return console.error("Resource Not Found:",f),Promise.reject(d)}if(o===St){const u=r.response?await ze(r.response):null,f=(u==null?void 0:u.message)||Ke(St),d=Ae(r,St,f,r.response);return Promise.reject(d)}if(o===wt){const u=r.response?await ze(r.response):null,f=(u==null?void 0:u.message)||Ke(wt),d=Ae(r,wt,f,r.response);return Promise.reject(d)}if(o&&o>=500&&o<=599){const u=r.response?await ze(r.response):null,f=(u==null?void 0:u.message)||Ke(o),d=Ae(r,o,f,r.response);return console.error(`Server Error (${o}):`,f),Promise.reject(d)}if(!r.response){const u=Ae(r,0,"Network error. Please check your connection and try again.");return console.error("Network Error:",r.message),Promise.reject(u)}const s=r.response?await ze(r.response):null,i=(s==null?void 0:s.message)||r.message||Ke(o||0),a=Ae(r,o||0,i,r.response);return console.error(`HTTP Error (${o}):`,i),Promise.reject(a)})()}),e.children},ze=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()},Ke=e=>{switch(e){case ro: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 wt:return"Conflict. The request conflicts with the current state of the resource.";case Ec:return"Internal server error. Please try again later.";case Ac:return"Not implemented. This feature is not available.";case Cc:return"Bad gateway. The server received an invalid response.";case Oc:return"Service unavailable. The server is temporarily unavailable.";case xc:return"Gateway timeout. The request timed out.";case Pc:return"HTTP version not supported.";default:return"An unexpected error occurred."}},Ae=(e,t,n,r,o)=>{const s=new Error(n);return s.statusCode=t,s.originalError=e,s.response=r,s.request=o,s},Ic=(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()},$c=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 Rc{constructor(t=void 0){Me(this,"baseURL");Me(this,"requestInterceptors",[]);Me(this,"responseInterceptors",[]);Me(this,"errorInterceptors",[]);Me(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=Ic(this.baseURL,r||"",o);try{const a=await fetch(i,s);let d={data:await $c(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 u=Ae(a,0,"Network error. Please check your connection and try again.");for(const f of this.errorInterceptors){const d=await f(u);d!==void 0&&(u=d)}throw u}}}const br=new Rc,st=Object.assign(async(e,t)=>(await br.request({...t,method:"GET",url:e})).data,br);function Dc(e){return typeof e=="boolean"?e:typeof e=="string"?e.toLowerCase()==="true":!1}function jc(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}var Cn=(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))(Cn||{});const Mc=()=>{const e=+new Date;return new Date(e+Cn.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS)},Lc=e=>tn.format(new Date(e),Cn.ISO_DATE_FORMAT),Bc=(e,t)=>e?tn.format(tn.parseISO(e),t):"";function Wc(e){if(typeof e=="string")return Number.parseInt(e,10)}const Fc=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),Vc=e=>({...e,isLoading:!0,isSuccess:!1,isError:!1,message:""}),Uc=(e,t)=>({...e,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:t||""}),zc=(e,t)=>({...e,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:t||""});function Kc(e){return e==null?!0:typeof e=="string"?e.trim()==="":!1}const Hc=e=>{try{return decodeURIComponent(e)!==e}catch{return!1}};exports.AppSnackBar=la;exports.CancelButton=Yi;exports.CenteredCircularProgress=fa;exports.ConfirmDialog=da;exports.DeleteButton=Gi;exports.DismissibleAlert=ha;exports.EditIconButton=Xi;exports.ExcelButton=Qi;exports.FetchClient=st;exports.FetchInterceptor=Nc;exports.GoBackButton=ea;exports.HistoryButton=na;exports.LoadingSuccessButton=sa;exports.ManageButton=aa;exports.NextLink=ma;exports.OpenInNewIconLink=pa;exports.QuerySnackBar=ua;exports.ReactIf=ya;exports.SuccessButton=ca;exports.TabPanel=ba;exports.TablePaginationActions=_a;exports.a11yProps=Sa;exports.convertToIsoDate=Lc;exports.fetchClient=st;exports.formatDate=Bc;exports.getCssVariable=jc;exports.httpClient=st;exports.initializeState=Fc;exports.isBlankOrEmpty=Kc;exports.isEncoded=Hc;exports.markError=zc;exports.markLoading=Vc;exports.markSuccess=Uc;exports.parseBoolean=Dc;exports.parseNumber=Wc;exports.setCookieExpirationDate=Mc;
|
|
72
|
+
export default theme;`}function xt(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:c={},typography:l={},shape:u,...f}=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.":Se(20));const m=Pt(i),h=_t(e);let p=ce(h,{mixins:Qo(h.breakpoints,n),palette:m,shadows:ri.slice(),typography:Xo(m,l),transitions:ai(c),zIndex:{...si}});if(p=ce(p,f),p=t.reduce((C,b)=>ce(C,b),p),process.env.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(s,T)=>{let $;for($ in s){const J=s[$];if(C.includes($)&&Object.keys(J).length>0){if(process.env.NODE_ENV!=="production"){const w=At("",$);console.error([`MUI: The \`${T}\` component increases the CSS specificity of the \`${$}\` internal state.`,"You can not override it like this: ",JSON.stringify(s,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:J}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
73
|
+
`))}s[$]={}}}};Object.keys(p.components).forEach(s=>{const T=p.components[s].styleOverrides;T&&s.startsWith("Mui")&&b(T,s)})}return p.unstable_sxConfig={...lt,...f==null?void 0:f.unstable_sxConfig},p.unstable_sx=function(b){return Me({sx:b,theme:this})},p.toRuntimeSource=jr,p}function li(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 ui=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=li(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Nr(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Br(e){return e==="dark"?ui:[]}function fi(e){const{palette:t={mode:"light"},opacity:r,overlays:n,...o}=e,i=Pt(t);return{palette:i,opacity:{...Nr(i.mode),...r},overlays:n||Br(i.mode),...o}}function di(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const mi=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],pi=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return mi(e.cssVarPrefix).forEach(l=>{c[l]=r[l],delete r[l]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:c}}:i?{[i.replace("%s",t)]:c,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...c}}}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 hi(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function d(e,t,r){!e[t]&&r&&(e[t]=r)}function De(e){return typeof e!="string"||!e.startsWith("hsl")?e:Rr(e)}function he(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Be(De(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
74
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function gi(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const me=e=>{try{return e()}catch{}},yi=(e="mui")=>No(e);function St(e,t,r,n){if(!t)return;t=t===!0?{}:t;const o=n==="dark"?"dark":"light";if(!r){e[n]=fi({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...c}=xt({...r,palette:{mode:o,...t==null?void 0:t.palette}});return e[n]={...t,palette:i,opacity:{...Nr(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Br(o)},c}function bi(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:c=di,colorSchemeSelector:l=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...f}=e,m=Object.keys(r)[0],h=n||(r.light&&m!=="light"?"light":m),p=yi(i),{[h]:C,light:b,dark:s,...T}=r,$={...T};let J=C;if((h==="dark"&&!("dark"in r)||h==="light"&&!("light"in r))&&(J=!0),!J)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:Se(21,h));const w=St($,J,f,h);b&&!$.light&&St($,b,void 0,"light"),s&&!$.dark&&St($,s,void 0,"dark");let O={defaultColorScheme:h,...w,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:u,getCssVar:p,colorSchemes:$,font:{...Ko(w.typography),...w.font},spacing:gi(f.spacing)};Object.keys(O.colorSchemes).forEach(K=>{const a=O.colorSchemes[K].palette,x=I=>{const j=I.split("-"),te=j[1],re=j[2];return p(I,a[te][re])};if(a.mode==="light"&&(d(a.common,"background","#fff"),d(a.common,"onBackground","#000")),a.mode==="dark"&&(d(a.common,"background","#000"),d(a.common,"onBackground","#fff")),hi(a,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),a.mode==="light"){d(a.Alert,"errorColor",H(a.error.light,.6)),d(a.Alert,"infoColor",H(a.info.light,.6)),d(a.Alert,"successColor",H(a.success.light,.6)),d(a.Alert,"warningColor",H(a.warning.light,.6)),d(a.Alert,"errorFilledBg",x("palette-error-main")),d(a.Alert,"infoFilledBg",x("palette-info-main")),d(a.Alert,"successFilledBg",x("palette-success-main")),d(a.Alert,"warningFilledBg",x("palette-warning-main")),d(a.Alert,"errorFilledColor",me(()=>a.getContrastText(a.error.main))),d(a.Alert,"infoFilledColor",me(()=>a.getContrastText(a.info.main))),d(a.Alert,"successFilledColor",me(()=>a.getContrastText(a.success.main))),d(a.Alert,"warningFilledColor",me(()=>a.getContrastText(a.warning.main))),d(a.Alert,"errorStandardBg",q(a.error.light,.9)),d(a.Alert,"infoStandardBg",q(a.info.light,.9)),d(a.Alert,"successStandardBg",q(a.success.light,.9)),d(a.Alert,"warningStandardBg",q(a.warning.light,.9)),d(a.Alert,"errorIconColor",x("palette-error-main")),d(a.Alert,"infoIconColor",x("palette-info-main")),d(a.Alert,"successIconColor",x("palette-success-main")),d(a.Alert,"warningIconColor",x("palette-warning-main")),d(a.AppBar,"defaultBg",x("palette-grey-100")),d(a.Avatar,"defaultBg",x("palette-grey-400")),d(a.Button,"inheritContainedBg",x("palette-grey-300")),d(a.Button,"inheritContainedHoverBg",x("palette-grey-A100")),d(a.Chip,"defaultBorder",x("palette-grey-400")),d(a.Chip,"defaultAvatarColor",x("palette-grey-700")),d(a.Chip,"defaultIconColor",x("palette-grey-700")),d(a.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),d(a.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),d(a.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),d(a.LinearProgress,"primaryBg",q(a.primary.main,.62)),d(a.LinearProgress,"secondaryBg",q(a.secondary.main,.62)),d(a.LinearProgress,"errorBg",q(a.error.main,.62)),d(a.LinearProgress,"infoBg",q(a.info.main,.62)),d(a.LinearProgress,"successBg",q(a.success.main,.62)),d(a.LinearProgress,"warningBg",q(a.warning.main,.62)),d(a.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.11)`),d(a.Slider,"primaryTrack",q(a.primary.main,.62)),d(a.Slider,"secondaryTrack",q(a.secondary.main,.62)),d(a.Slider,"errorTrack",q(a.error.main,.62)),d(a.Slider,"infoTrack",q(a.info.main,.62)),d(a.Slider,"successTrack",q(a.success.main,.62)),d(a.Slider,"warningTrack",q(a.warning.main,.62));const I=Ge(a.background.default,.8);d(a.SnackbarContent,"bg",I),d(a.SnackbarContent,"color",me(()=>a.getContrastText(I))),d(a.SpeedDialAction,"fabHoverBg",Ge(a.background.paper,.15)),d(a.StepConnector,"border",x("palette-grey-400")),d(a.StepContent,"border",x("palette-grey-400")),d(a.Switch,"defaultColor",x("palette-common-white")),d(a.Switch,"defaultDisabledColor",x("palette-grey-100")),d(a.Switch,"primaryDisabledColor",q(a.primary.main,.62)),d(a.Switch,"secondaryDisabledColor",q(a.secondary.main,.62)),d(a.Switch,"errorDisabledColor",q(a.error.main,.62)),d(a.Switch,"infoDisabledColor",q(a.info.main,.62)),d(a.Switch,"successDisabledColor",q(a.success.main,.62)),d(a.Switch,"warningDisabledColor",q(a.warning.main,.62)),d(a.TableCell,"border",q(qe(a.divider,1),.88)),d(a.Tooltip,"bg",qe(a.grey[700],.92))}if(a.mode==="dark"){d(a.Alert,"errorColor",q(a.error.light,.6)),d(a.Alert,"infoColor",q(a.info.light,.6)),d(a.Alert,"successColor",q(a.success.light,.6)),d(a.Alert,"warningColor",q(a.warning.light,.6)),d(a.Alert,"errorFilledBg",x("palette-error-dark")),d(a.Alert,"infoFilledBg",x("palette-info-dark")),d(a.Alert,"successFilledBg",x("palette-success-dark")),d(a.Alert,"warningFilledBg",x("palette-warning-dark")),d(a.Alert,"errorFilledColor",me(()=>a.getContrastText(a.error.dark))),d(a.Alert,"infoFilledColor",me(()=>a.getContrastText(a.info.dark))),d(a.Alert,"successFilledColor",me(()=>a.getContrastText(a.success.dark))),d(a.Alert,"warningFilledColor",me(()=>a.getContrastText(a.warning.dark))),d(a.Alert,"errorStandardBg",H(a.error.light,.9)),d(a.Alert,"infoStandardBg",H(a.info.light,.9)),d(a.Alert,"successStandardBg",H(a.success.light,.9)),d(a.Alert,"warningStandardBg",H(a.warning.light,.9)),d(a.Alert,"errorIconColor",x("palette-error-main")),d(a.Alert,"infoIconColor",x("palette-info-main")),d(a.Alert,"successIconColor",x("palette-success-main")),d(a.Alert,"warningIconColor",x("palette-warning-main")),d(a.AppBar,"defaultBg",x("palette-grey-900")),d(a.AppBar,"darkBg",x("palette-background-paper")),d(a.AppBar,"darkColor",x("palette-text-primary")),d(a.Avatar,"defaultBg",x("palette-grey-600")),d(a.Button,"inheritContainedBg",x("palette-grey-800")),d(a.Button,"inheritContainedHoverBg",x("palette-grey-700")),d(a.Chip,"defaultBorder",x("palette-grey-700")),d(a.Chip,"defaultAvatarColor",x("palette-grey-300")),d(a.Chip,"defaultIconColor",x("palette-grey-300")),d(a.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),d(a.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),d(a.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),d(a.LinearProgress,"primaryBg",H(a.primary.main,.5)),d(a.LinearProgress,"secondaryBg",H(a.secondary.main,.5)),d(a.LinearProgress,"errorBg",H(a.error.main,.5)),d(a.LinearProgress,"infoBg",H(a.info.main,.5)),d(a.LinearProgress,"successBg",H(a.success.main,.5)),d(a.LinearProgress,"warningBg",H(a.warning.main,.5)),d(a.Skeleton,"bg",`rgba(${x("palette-text-primaryChannel")} / 0.13)`),d(a.Slider,"primaryTrack",H(a.primary.main,.5)),d(a.Slider,"secondaryTrack",H(a.secondary.main,.5)),d(a.Slider,"errorTrack",H(a.error.main,.5)),d(a.Slider,"infoTrack",H(a.info.main,.5)),d(a.Slider,"successTrack",H(a.success.main,.5)),d(a.Slider,"warningTrack",H(a.warning.main,.5));const I=Ge(a.background.default,.98);d(a.SnackbarContent,"bg",I),d(a.SnackbarContent,"color",me(()=>a.getContrastText(I))),d(a.SpeedDialAction,"fabHoverBg",Ge(a.background.paper,.15)),d(a.StepConnector,"border",x("palette-grey-600")),d(a.StepContent,"border",x("palette-grey-600")),d(a.Switch,"defaultColor",x("palette-grey-300")),d(a.Switch,"defaultDisabledColor",x("palette-grey-600")),d(a.Switch,"primaryDisabledColor",H(a.primary.main,.55)),d(a.Switch,"secondaryDisabledColor",H(a.secondary.main,.55)),d(a.Switch,"errorDisabledColor",H(a.error.main,.55)),d(a.Switch,"infoDisabledColor",H(a.info.main,.55)),d(a.Switch,"successDisabledColor",H(a.success.main,.55)),d(a.Switch,"warningDisabledColor",H(a.warning.main,.55)),d(a.TableCell,"border",H(qe(a.divider,1),.68)),d(a.Tooltip,"bg",qe(a.grey[700],.92))}he(a.background,"default"),he(a.background,"paper"),he(a.common,"background"),he(a.common,"onBackground"),he(a,"divider"),Object.keys(a).forEach(I=>{const j=a[I];I!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&d(a[I],"mainChannel",Be(De(j.main))),j.light&&d(a[I],"lightChannel",Be(De(j.light))),j.dark&&d(a[I],"darkChannel",Be(De(j.dark))),j.contrastText&&d(a[I],"contrastTextChannel",Be(De(j.contrastText))),I==="text"&&(he(a[I],"primary"),he(a[I],"secondary")),I==="action"&&(j.active&&he(a[I],"active"),j.selected&&he(a[I],"selected")))})}),O=t.reduce((K,a)=>ce(K,a),O);const g={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:pi(O)},{vars:V,generateThemeVars:G,generateStyleSheets:ne}=Lo(O,g);return O.vars=V,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([K,a])=>{O[K]=a}),O.generateThemeVars=G,O.generateStyleSheets=ne,O.generateSpacing=function(){return $r(f.spacing,wt(this))},O.getColorSchemeSelector=Vo(l),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=c,O.unstable_sxConfig={...lt,...f==null?void 0:f.unstable_sxConfig},O.unstable_sx=function(a){return Me({sx:a,theme:this})},O.toRuntimeSource=jr,O}function pr(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Pt({...r===!0?{}:r.palette,mode:t})})}function vi(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r==null?void 0:r.mode,...c}=e,l=i||"light",u=o==null?void 0:o[l],f={...o,...r?{[l]:{...typeof u!="boolean"&&u,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return xt(e,...t);let m=r;"palette"in e||f[l]&&(f[l]!==!0?m=f[l].palette:l==="dark"&&(m={mode:"dark"}));const h=xt({...e,palette:m},...t);return h.defaultColorScheme=l,h.colorSchemes=f,h.palette.mode==="light"&&(h.colorSchemes.light={...f.light!==!0&&f.light,palette:h.palette},pr(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},pr(h,"light",f.light)),h}return!r&&!("light"in f)&&l==="light"&&(f.light=!0),bi({...c,colorSchemes:f,defaultColorScheme:l,...typeof n!="boolean"&&n},...t)}const Dr=vi(),Lr="$$material";function Si(){const e=ho(Dr);return process.env.NODE_ENV!=="production"&&pe.useDebugValue(e),e[Lr]||e}function Ci(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ei=e=>Ci(e)&&e!=="classes",Ti=Eo({themeId:Lr,defaultTheme:Dr,rootShouldForwardProp:Ei}),xi=jo;process.env.NODE_ENV!=="production"&&(L.node,L.object.isRequired);function Oi(e){return Mo(e)}function wi(e){return At("MuiSvgIcon",e)}yo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $i=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${we(t)}`,`fontSize${we(r)}`]};return rn(o,wi,n)},_i=Ti("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${we(r.color)}`],t[`fontSize${we(r.fontSize)}`]]}})(xi(({theme:e})=>{var t,r,n,o,i,c,l,u,f,m,h,p,C,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(n=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:n.shorter}),variants:[{props:s=>!s.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:c.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((m=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:m.call(f,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,s])=>s&&s.main).map(([s])=>{var T,$;return{props:{color:s},style:{color:($=(T=(e.vars??e).palette)==null?void 0:T[s])==null?void 0:$.main}}}),{props:{color:"action"},style:{color:(p=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(b=(C=(e.vars??e).palette)==null?void 0:C.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ze=pe.forwardRef(function(t,r){const n=Oi({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:c="inherit",component:l="svg",fontSize:u="medium",htmlColor:f,inheritViewBox:m=!1,titleAccess:h,viewBox:p="0 0 24 24",...C}=n,b=pe.isValidElement(o)&&o.type==="svg",s={...n,color:c,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:p,hasSvgAsChild:b},T={};m||(T.viewBox=p);const $=$i(s);return v.jsxs(_i,{as:l,className:Tr($.root,i),focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r,...T,...C,...b&&o.props,ownerState:s,children:[b?o.props.children:o,h?v.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Ze.propTypes={children:L.node,classes:L.object,className:L.string,color:L.oneOfType([L.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),L.string]),component:L.elementType,fontSize:L.oneOfType([L.oneOf(["inherit","large","medium","small"]),L.string]),htmlColor:L.string,inheritViewBox:L.bool,shapeRendering:L.string,sx:L.oneOfType([L.arrayOf(L.oneOfType([L.func,L.object,L.bool])),L.func,L.object]),titleAccess:L.string,viewBox:L.string});Ze.muiName="SvgIcon";function le(e,t){function r(n,o){return v.jsx(Ze,{"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=Ze.muiName,pe.memo(pe.forwardRef(r))}const Ai=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 ki(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(Ai,{}),variant:e.variant??"contained",color:e.color??"secondary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const Ii=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 Ri(e){return v.jsx(_.Button,{"data-cy":e.dataCy??"delete-button",loading:e.loading??!1,loadingPosition:e.loadingPosition??"start",startIcon:e.startIcon??v.jsx(Ii,{}),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 Pi=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 Mi(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(Pi,{}),e.children]})})}const ji=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 Ni(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(ji,{}),variant:e.variant??"contained",color:e.color??"primary",type:e.type??"button",onClick:()=>e.onClick(),children:e.children??e.name})}const Bi=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"),Di={backgroundColor:"$primary-color",color:"var(--white-color)",margin:"20px"};function Li(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(Bi,{}),loading:e.loading,type:e.type??"button",style:Di,sx:e.sx,onClick:e.onClick,children:e.children??e.name})}const Vi=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 zi(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(Vi,{}),children:e.children?e.children:"Manage"})}function Fi(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})}function Ui(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 Yi=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 Wi(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(Yi,{})})})}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"),Hi=e=>{const[t,r]=ye.useState(!1);ye.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})})]})},qi=e=>{const[t,r]=ye.useState(!1);ye.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})})]})},hr=le(v.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),gr=le(v.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"}),"KeyboardArrowLeft"),yr=le(v.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"}),"KeyboardArrowRight"),br=le(v.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage");function Gi(e){const t=Si(),{count:r,page:n,rowsPerPage:o,onPageChange:i}=e,c=m=>{i(m,0)},l=m=>{i(m,n-1)},u=m=>{i(m,n+1)},f=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:c,disabled:n===0,"aria-label":"first page",children:t.direction==="rtl"?v.jsx(br,{}):v.jsx(hr,{})}),v.jsx(_.IconButton,{onClick:l,disabled:n===0,"aria-label":"previous page",children:t.direction==="rtl"?v.jsx(yr,{}):v.jsx(gr,{})}),v.jsx(_.IconButton,{onClick:u,disabled:n>=Math.ceil(r/o)-1,"aria-label":"next page",children:t.direction==="rtl"?v.jsx(gr,{}):v.jsx(yr,{})}),v.jsx(_.IconButton,{onClick:f,disabled:n>=Math.ceil(r/o)-1,"aria-label":"last page",children:t.direction==="rtl"?v.jsx(hr,{}):v.jsx(br,{})})]})}function Ki(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 Qi(e){return{id:`vertical-tab-${e}`,"aria-controls":`vertical-tabpanel-${e}`}}function Ji(e){return v.jsx(_.Link,{component:vr.Link,to:e.href,className:"next-btn-link",underline:"hover",children:e.linkText??e.children})}function Xi(){return v.jsx("div",{style:{margin:"1.5rem"},className:"app-flex-justify-center",children:v.jsx(_.CircularProgress,{})})}function Zi(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 ea(e){const[t,r]=ye.useState(!0),[n]=ye.useState(e.dismissible??!0),[o]=ye.useState(e.dismissOnTimeOut??!0),[i]=ye.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})})}const ta=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 ra(e){return v.jsxs(_.Link,{component:vr.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:ta})]})}function na(e){const{condition:t,children:r,else:n}=e;return t?typeof r=="function"?r():r:n?typeof n=="function"?n():n:null}function oa(e){return typeof e=="boolean"?e:typeof e=="string"?e.toLowerCase()==="true":!1}var jt=(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))(jt||{});const ia=()=>{const e=+new Date;return new Date(e+jt.SYSTEM_COOKIE_TIMEOUT_MILLI_SECONDS)},aa=e=>Ct.format(new Date(e),jt.ISO_DATE_FORMAT),sa=(e,t)=>e?Ct.format(Ct.parseISO(e),t):"";function ca(e){if(typeof e=="string")return Number.parseInt(e,10)}const la=()=>({isLoading:!1,isSuccess:!1,isError:!1,isComplete:!1,message:""}),ua=e=>({...e,isLoading:!0,isSuccess:!1,isError:!1,message:""}),fa=(e,t)=>({...e,isLoading:!1,isSuccess:!0,isError:!1,isComplete:!0,message:t||""}),da=(e,t)=>({...e,isLoading:!1,isSuccess:!1,isError:!0,isComplete:!0,message:t||""});function ma(e){return e==null?!0:typeof e=="string"?e.trim()==="":!1}const pa=e=>{try{return decodeURIComponent(e)!==e}catch{return!1}};class ha extends Error{constructor(r,{status:n,statusText:o,redirected:i,type:c}){super(r);je(this,"status");je(this,"statusText");je(this,"redirected");je(this,"type");this.status=n,this.statusText=o,this.statusText=c,this.redirected=i,this.name="HttpError"}}async function ga(e,t={}){const r=new Headers(t.headers||{});t.body instanceof FormData||typeof t.body=="object"&&(t.body=JSON.stringify(t.body),r.set("Content-Type","application/json"));const n={...t,headers:r};n.body&&typeof n.body=="object"&&(n.body=JSON.stringify(n.body));const o=await fetch(e,n);if(o.type==="error"){const i=await o.text();throw new ha(i,o)}return await o.json()}function ya(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}exports.AppSnackBar=Hi;exports.CancelButton=ki;exports.CenteredCircularProgress=Xi;exports.ConfirmDialog=Zi;exports.DeleteButton=Ri;exports.DismissibleAlert=ea;exports.EditIconButton=Wi;exports.ExcelButton=Ui;exports.GoBackButton=Mi;exports.HistoryButton=Ni;exports.LoadingSuccessButton=Li;exports.ManageButton=zi;exports.NextLink=Ji;exports.OpenInNewIconLink=ra;exports.QuerySnackBar=qi;exports.ReactIf=na;exports.SuccessButton=Fi;exports.TabPanel=Ki;exports.TablePaginationActions=Gi;exports.a11yProps=Qi;exports.convertToIsoDate=aa;exports.fetchClient=ga;exports.formatDate=sa;exports.getCssVariable=ya;exports.initializeState=la;exports.isBlankOrEmpty=ma;exports.isEncoded=pa;exports.markError=da;exports.markLoading=ua;exports.markSuccess=fa;exports.parseBoolean=oa;exports.parseNumber=ca;exports.setCookieExpirationDate=ia;
|