mui-toolpad-extended-tuni 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/LMSToolpad/LMSProvider.d.ts +14 -8
- package/dist/LMSToolpad/components/CenteredHeading.d.ts +7 -0
- package/dist/LMSToolpad/components/Courses/CourseCodeLoader.d.ts +15 -0
- package/dist/LMSToolpad/components/Courses/CourseInstanceLoader.d.ts +16 -0
- package/dist/LMSToolpad/components/Courses/CourseInstanceSelector.d.ts +15 -0
- package/dist/LMSToolpad/components/Courses/CourseItem.d.ts +18 -2
- package/dist/LMSToolpad/components/Courses/CourseList.d.ts +16 -1
- package/dist/LMSToolpad/components/Courses/CourseSelector.d.ts +21 -1
- package/dist/LMSToolpad/components/Courses/CourseTools.d.ts +20 -1
- package/dist/LMSToolpad/components/Courses/LayoutToggle.d.ts +7 -0
- package/dist/LMSToolpad/components/Home.d.ts +10 -0
- package/dist/LMSToolpad/components/MicroserviceNavigationBuilder.d.ts +45 -0
- package/dist/LMSToolpad/components/MicroserviceRoutes.d.ts +30 -5
- package/dist/LMSToolpad/components/ToolCard.d.ts +8 -0
- package/dist/LMSToolpad/components/ToolDisplayer.d.ts +21 -0
- package/dist/LMSToolpad/components/sidebar/Footer.d.ts +2 -1
- package/dist/LMSToolpad/constants.d.ts +1 -0
- package/dist/LMSToolpad/hooks/useCustomRouter.d.ts +1 -0
- package/dist/LMSToolpad/network/axiosConfig.d.ts +1 -0
- package/dist/LMSToolpad/store/useCourseStore.d.ts +23 -7
- package/dist/LMSToolpad/store/useNavigationStore.d.ts +14 -0
- package/dist/LMSToolpad/utils/courseFilters.d.ts +14 -0
- package/dist/index.cjs +83 -83
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +5758 -5148
- package/package.json +1 -1
- package/dist/LMSToolpad/components/Courses/CourseLoader.d.ts +0 -7
- package/dist/LMSToolpad/utils/slugify.d.ts +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Dh=Object.defineProperty;var Lh=(e,t,n)=>t in e?Dh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wn=(e,t,n)=>Lh(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react"),Bh=require("@emotion/styled"),gr=require("@emotion/react"),D=require("@mui/material"),rr=require("react-dom");function md(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const v=md(M),Fh=md(rr);function xa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fs={exports:{}},Cr={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var _c;function Vh(){if(_c)return Cr;_c=1;var e=M,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(c,l,u){var d,f={},m=null,b=null;u!==void 0&&(m=""+u),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(b=l.ref);for(d in l)r.call(l,d)&&!i.hasOwnProperty(d)&&(f[d]=l[d]);if(c&&c.defaultProps)for(d in l=c.defaultProps,l)f[d]===void 0&&(f[d]=l[d]);return{$$typeof:t,type:c,key:m,ref:b,props:f,_owner:o.current}}return Cr.Fragment=n,Cr.jsx=a,Cr.jsxs=a,Cr}var Tr={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,50 +14,50 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+Q+
|
|
17
|
+
*/var Mc;function Uh(){return Mc||(Mc=1,process.env.NODE_ENV!=="production"&&function(){var e=M,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=Symbol.iterator,p="@@iterator";function y(j){if(j===null||typeof j!="object")return null;var H=g&&j[g]||j[p];return typeof H=="function"?H:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(j){{for(var H=arguments.length,re=new Array(H>1?H-1:0),le=1;le<H;le++)re[le-1]=arguments[le];w("error",j,re)}}function w(j,H,re){{var le=C.ReactDebugCurrentFrame,be=le.getStackAddendum();be!==""&&(H+="%s",re=re.concat([be]));var Ae=re.map(function(ye){return String(ye)});Ae.unshift("Warning: "+H),Function.prototype.apply.call(console[j],console,Ae)}}var E=!1,S=!1,O=!1,R=!1,P=!1,N;N=Symbol.for("react.module.reference");function x(j){return!!(typeof j=="string"||typeof j=="function"||j===r||j===i||P||j===o||j===u||j===d||R||j===b||E||S||O||typeof j=="object"&&j!==null&&(j.$$typeof===m||j.$$typeof===f||j.$$typeof===a||j.$$typeof===c||j.$$typeof===l||j.$$typeof===N||j.getModuleId!==void 0))}function k(j,H,re){var le=j.displayName;if(le)return le;var be=H.displayName||H.name||"";return be!==""?re+"("+be+")":re}function F(j){return j.displayName||"Context"}function $(j){if(j==null)return null;if(typeof j.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof j=="function")return j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof j=="object")switch(j.$$typeof){case c:var H=j;return F(H)+".Consumer";case a:var re=j;return F(re._context)+".Provider";case l:return k(j,j.render,"ForwardRef");case f:var le=j.displayName||null;return le!==null?le:$(j.type)||"Memo";case m:{var be=j,Ae=be._payload,ye=be._init;try{return $(ye(Ae))}catch{return null}}}return null}var z=Object.assign,L=0,B,q,G,Z,A,W,te;function ne(){}ne.__reactDisabledLog=!0;function Y(){{if(L===0){B=console.log,q=console.info,G=console.warn,Z=console.error,A=console.group,W=console.groupCollapsed,te=console.groupEnd;var j={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:j,log:j,warn:j,error:j,group:j,groupCollapsed:j,groupEnd:j})}L++}}function J(){{if(L--,L===0){var j={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},j,{value:B}),info:z({},j,{value:q}),warn:z({},j,{value:G}),error:z({},j,{value:Z}),group:z({},j,{value:A}),groupCollapsed:z({},j,{value:W}),groupEnd:z({},j,{value:te})})}L<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=C.ReactCurrentDispatcher,Q;function ee(j,H,re){{if(Q===void 0)try{throw Error()}catch(be){var le=be.stack.trim().match(/\n( *(at )?)/);Q=le&&le[1]||""}return`
|
|
18
|
+
`+Q+j}}var oe=!1,K;{var ie=typeof WeakMap=="function"?WeakMap:Map;K=new ie}function V(j,H){if(!j||oe)return"";{var re=K.get(j);if(re!==void 0)return re}var le;oe=!0;var be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ae;Ae=U.current,U.current=null,Y();try{if(H){var ye=function(){throw Error()};if(Object.defineProperty(ye.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ye,[])}catch(st){le=st}Reflect.construct(j,[],ye)}else{try{ye.call()}catch(st){le=st}j.call(ye.prototype)}}else{try{throw Error()}catch(st){le=st}j()}}catch(st){if(st&&le&&typeof st.stack=="string"){for(var me=st.stack.split(`
|
|
19
19
|
`),rt=le.stack.split(`
|
|
20
|
-
`),
|
|
21
|
-
`+me[
|
|
20
|
+
`),Ye=me.length-1,Ze=rt.length-1;Ye>=1&&Ze>=0&&me[Ye]!==rt[Ze];)Ze--;for(;Ye>=1&&Ze>=0;Ye--,Ze--)if(me[Ye]!==rt[Ze]){if(Ye!==1||Ze!==1)do if(Ye--,Ze--,Ze<0||me[Ye]!==rt[Ze]){var vt=`
|
|
21
|
+
`+me[Ye].replace(" at new "," at ");return j.displayName&&vt.includes("<anonymous>")&&(vt=vt.replace("<anonymous>",j.displayName)),typeof j=="function"&&K.set(j,vt),vt}while(Ye>=1&&Ze>=0);break}}}finally{oe=!1,U.current=Ae,J(),Error.prepareStackTrace=be}var zn=j?j.displayName||j.name:"",Sn=zn?ee(zn):"";return typeof j=="function"&&K.set(j,Sn),Sn}function he(j,H,re){return V(j,!1)}function X(j){var H=j.prototype;return!!(H&&H.isReactComponent)}function ve(j,H,re){if(j==null)return"";if(typeof j=="function")return V(j,X(j));if(typeof j=="string")return ee(j);switch(j){case u:return ee("Suspense");case d:return ee("SuspenseList")}if(typeof j=="object")switch(j.$$typeof){case l:return he(j.render);case f:return ve(j.type,H,re);case m:{var le=j,be=le._payload,Ae=le._init;try{return ve(Ae(be),H,re)}catch{}}}return""}var De=Object.prototype.hasOwnProperty,ge={},Le=C.ReactDebugCurrentFrame;function Be(j){if(j){var H=j._owner,re=ve(j.type,j._source,H?H.type:null);Le.setExtraStackFrame(re)}else Le.setExtraStackFrame(null)}function Je(j,H,re,le,be){{var Ae=Function.call.bind(De);for(var ye in j)if(Ae(j,ye)){var me=void 0;try{if(typeof j[ye]!="function"){var rt=Error((le||"React class")+": "+re+" type `"+ye+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof j[ye]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw rt.name="Invariant Violation",rt}me=j[ye](H,ye,le,re,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ye){me=Ye}me&&!(me instanceof Error)&&(Be(be),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",le||"React class",re,ye,typeof me),Be(null)),me instanceof Error&&!(me.message in ge)&&(ge[me.message]=!0,Be(be),T("Failed %s type: %s",re,me.message),Be(null))}}}var Me=Array.isArray;function se(j){return Me(j)}function Dt(j){{var H=typeof Symbol=="function"&&Symbol.toStringTag,re=H&&j[Symbol.toStringTag]||j.constructor.name||"Object";return re}}function Lt(j){try{return Bt(j),!1}catch{return!0}}function Bt(j){return""+j}function Ft(j){if(Lt(j))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Dt(j)),Bt(j)}var Ne=C.ReactCurrentOwner,Ge={key:!0,ref:!0,__self:!0,__source:!0},ze,yt;function $e(j){if(De.call(j,"ref")){var H=Object.getOwnPropertyDescriptor(j,"ref").get;if(H&&H.isReactWarning)return!1}return j.ref!==void 0}function tt(j){if(De.call(j,"key")){var H=Object.getOwnPropertyDescriptor(j,"key").get;if(H&&H.isReactWarning)return!1}return j.key!==void 0}function Gt(j,H){typeof j.ref=="string"&&Ne.current}function ft(j,H){{var re=function(){ze||(ze=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",H))};re.isReactWarning=!0,Object.defineProperty(j,"key",{get:re,configurable:!0})}}function ns(j,H){{var re=function(){yt||(yt=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",H))};re.isReactWarning=!0,Object.defineProperty(j,"ref",{get:re,configurable:!0})}}var Er=function(j,H,re,le,be,Ae,ye){var me={$$typeof:t,type:j,key:H,ref:re,props:ye,_owner:Ae};return me._store={},Object.defineProperty(me._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(me,"_self",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.defineProperty(me,"_source",{configurable:!1,enumerable:!1,writable:!1,value:be}),Object.freeze&&(Object.freeze(me.props),Object.freeze(me)),me};function rs(j,H,re,le,be){{var Ae,ye={},me=null,rt=null;re!==void 0&&(Ft(re),me=""+re),tt(H)&&(Ft(H.key),me=""+H.key),$e(H)&&(rt=H.ref,Gt(H,be));for(Ae in H)De.call(H,Ae)&&!Ge.hasOwnProperty(Ae)&&(ye[Ae]=H[Ae]);if(j&&j.defaultProps){var Ye=j.defaultProps;for(Ae in Ye)ye[Ae]===void 0&&(ye[Ae]=Ye[Ae])}if(me||rt){var Ze=typeof j=="function"?j.displayName||j.name||"Unknown":j;me&&ft(ye,Ze),rt&&ns(ye,Ze)}return Er(j,me,rt,be,le,Ne.current,ye)}}var nn=C.ReactCurrentOwner,Ro=C.ReactDebugCurrentFrame;function rn(j){if(j){var H=j._owner,re=ve(j.type,j._source,H?H.type:null);Ro.setExtraStackFrame(re)}else Ro.setExtraStackFrame(null)}var Sr;Sr=!1;function wr(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function jo(){{if(nn.current){var j=$(nn.current.type);if(j)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+j+"`."}return""}}function os(j){return""}var ko={};function is(j){{var H=jo();if(!H){var re=typeof j=="string"?j:j.displayName||j.name;re&&(H=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+re+">.")}return
|
|
25
|
+
Check the top-level render call using <`+re+">.")}return H}}function ue(j,H){{if(!j._store||j._store.validated||j.key!=null)return;j._store.validated=!0;var re=is(H);if(ko[re])return;ko[re]=!0;var le="";j&&j._owner&&j._owner!==nn.current&&(le=" It was passed a child from "+$(j._owner.type)+"."),rn(j),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',re,le),rn(null)}}function it(j,H){{if(typeof j!="object")return;if(se(j))for(var re=0;re<j.length;re++){var le=j[re];wr(le)&&ue(le,H)}else if(wr(j))j._store&&(j._store.validated=!0);else if(j){var be=y(j);if(typeof be=="function"&&be!==j.entries)for(var Ae=be.call(j),ye;!(ye=Ae.next()).done;)wr(ye.value)&&ue(ye.value,H)}}}function Po(j){{var H=j.type;if(H==null||typeof H=="string")return;var re;if(typeof H=="function")re=H.propTypes;else if(typeof H=="object"&&(H.$$typeof===l||H.$$typeof===f))re=H.propTypes;else return;if(re){var le=$(H);Je(re,j.props,"prop",le,j)}else if(H.PropTypes!==void 0&&!Sr){Sr=!0;var be=$(H);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",be||"Unknown")}typeof H.getDefaultProps=="function"&&!H.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ph(j){{for(var H=Object.keys(j.props),re=0;re<H.length;re++){var le=H[re];if(le!=="children"&&le!=="key"){rn(j),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",le),rn(null);break}}j.ref!==null&&(rn(j),T("Invalid attribute `ref` supplied to `React.Fragment`."),rn(null))}}var Ac={};function Ic(j,H,re,le,be,Ae){{var ye=x(j);if(!ye){var me="";(j===void 0||typeof j=="object"&&j!==null&&Object.keys(j).length===0)&&(me+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var rt=os();rt?me+=rt:me+=jo();var Ye;j===null?Ye="null":se(j)?Ye="array":j!==void 0&&j.$$typeof===t?(Ye="<"+($(j.type)||"Unknown")+" />",me=" Did you accidentally export a JSX literal instead of a component?"):Ye=typeof j,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ye,me)}var Ze=rs(j,H,re,be,Ae);if(Ze==null)return Ze;if(ye){var vt=H.children;if(vt!==void 0)if(le)if(se(vt)){for(var zn=0;zn<vt.length;zn++)it(vt[zn],j);Object.freeze&&Object.freeze(vt)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else it(vt,j)}if(De.call(H,"key")){var Sn=$(j),st=Object.keys(H).filter(function($h){return $h!=="key"}),ss=st.length>0?"{key: someKey, "+st.join(": ..., ")+": ...}":"{key: someKey}";if(!Ac[Sn+ss]){var Mh=st.length>0?"{"+st.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,ss,Sn,Mh,Sn),Ac[Sn+ss]=!0}}return j===r?Ph(Ze):Po(Ze),Ze}}function Nh(j,H,re){return Ic(j,H,re,!0)}function Ah(j,H,re){return Ic(j,H,re,!1)}var Ih=Ah,_h=Nh;Tr.Fragment=r,Tr.jsx=Ih,Tr.jsxs=_h}()),Tr}process.env.NODE_ENV==="production"?Fs.exports=Vh():Fs.exports=Uh();var h=Fs.exports,Vs={exports:{}},No={exports:{}},xe={};/** @license React v16.13.1
|
|
31
31
|
* react-is.production.min.js
|
|
32
32
|
*
|
|
33
33
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/var
|
|
37
|
+
*/var $c;function zh(){if($c)return xe;$c=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function w(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case t:switch(S=S.type,S){case l:case u:case r:case i:case o:case f:return S;default:switch(S=S&&S.$$typeof,S){case c:case d:case g:case b:case a:return S;default:return O}}case n:return O}}}function E(S){return w(S)===u}return xe.AsyncMode=l,xe.ConcurrentMode=u,xe.ContextConsumer=c,xe.ContextProvider=a,xe.Element=t,xe.ForwardRef=d,xe.Fragment=r,xe.Lazy=g,xe.Memo=b,xe.Portal=n,xe.Profiler=i,xe.StrictMode=o,xe.Suspense=f,xe.isAsyncMode=function(S){return E(S)||w(S)===l},xe.isConcurrentMode=E,xe.isContextConsumer=function(S){return w(S)===c},xe.isContextProvider=function(S){return w(S)===a},xe.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},xe.isForwardRef=function(S){return w(S)===d},xe.isFragment=function(S){return w(S)===r},xe.isLazy=function(S){return w(S)===g},xe.isMemo=function(S){return w(S)===b},xe.isPortal=function(S){return w(S)===n},xe.isProfiler=function(S){return w(S)===i},xe.isStrictMode=function(S){return w(S)===o},xe.isSuspense=function(S){return w(S)===f},xe.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===i||S===o||S===f||S===m||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===b||S.$$typeof===a||S.$$typeof===c||S.$$typeof===d||S.$$typeof===y||S.$$typeof===C||S.$$typeof===T||S.$$typeof===p)},xe.typeOf=w,xe}var Ee={};/** @license React v16.13.1
|
|
38
38
|
* react-is.development.js
|
|
39
39
|
*
|
|
40
40
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var
|
|
44
|
+
*/var Dc;function Wh(){return Dc||(Dc=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function w(V){return typeof V=="string"||typeof V=="function"||V===r||V===u||V===i||V===o||V===f||V===m||typeof V=="object"&&V!==null&&(V.$$typeof===g||V.$$typeof===b||V.$$typeof===a||V.$$typeof===c||V.$$typeof===d||V.$$typeof===y||V.$$typeof===C||V.$$typeof===T||V.$$typeof===p)}function E(V){if(typeof V=="object"&&V!==null){var he=V.$$typeof;switch(he){case t:var X=V.type;switch(X){case l:case u:case r:case i:case o:case f:return X;default:var ve=X&&X.$$typeof;switch(ve){case c:case d:case g:case b:case a:return ve;default:return he}}case n:return he}}}var S=l,O=u,R=c,P=a,N=t,x=d,k=r,F=g,$=b,z=n,L=i,B=o,q=f,G=!1;function Z(V){return G||(G=!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.")),A(V)||E(V)===l}function A(V){return E(V)===u}function W(V){return E(V)===c}function te(V){return E(V)===a}function ne(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function Y(V){return E(V)===d}function J(V){return E(V)===r}function U(V){return E(V)===g}function Q(V){return E(V)===b}function ee(V){return E(V)===n}function oe(V){return E(V)===i}function K(V){return E(V)===o}function ie(V){return E(V)===f}Ee.AsyncMode=S,Ee.ConcurrentMode=O,Ee.ContextConsumer=R,Ee.ContextProvider=P,Ee.Element=N,Ee.ForwardRef=x,Ee.Fragment=k,Ee.Lazy=F,Ee.Memo=$,Ee.Portal=z,Ee.Profiler=L,Ee.StrictMode=B,Ee.Suspense=q,Ee.isAsyncMode=Z,Ee.isConcurrentMode=A,Ee.isContextConsumer=W,Ee.isContextProvider=te,Ee.isElement=ne,Ee.isForwardRef=Y,Ee.isFragment=J,Ee.isLazy=U,Ee.isMemo=Q,Ee.isPortal=ee,Ee.isProfiler=oe,Ee.isStrictMode=K,Ee.isSuspense=ie,Ee.isValidElementType=w,Ee.typeOf=E}()),Ee}var Lc;function gd(){return Lc||(Lc=1,process.env.NODE_ENV==="production"?No.exports=zh():No.exports=Wh()),No.exports}/*
|
|
45
45
|
object-assign
|
|
46
46
|
(c) Sindre Sorhus
|
|
47
47
|
@license MIT
|
|
48
|
-
*/var
|
|
49
|
-
Valid keys: `+JSON.stringify(Object.keys(A),null," "));var
|
|
48
|
+
*/var as,Bc;function Hh(){if(Bc)return as;Bc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(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 a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return as=o()?Object.assign:function(i,a){for(var c,l=r(i),u,d=1;d<arguments.length;d++){c=Object(arguments[d]);for(var f in c)t.call(c,f)&&(l[f]=c[f]);if(e){u=e(c);for(var m=0;m<u.length;m++)n.call(c,u[m])&&(l[u[m]]=c[u[m]])}}return l},as}var cs,Fc;function Ea(){if(Fc)return cs;Fc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cs=e,cs}var ls,Vc;function yd(){return Vc||(Vc=1,ls=Function.call.bind(Object.prototype.hasOwnProperty)),ls}var us,Uc;function qh(){if(Uc)return us;Uc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ea(),n={},r=yd();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,l,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var f;try{if(typeof i[d]!="function"){var m=Error((l||"React class")+": "+c+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=i[d](a,d,l,c,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+c+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var b=u?u():"";e("Failed "+c+" type: "+f.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},us=o,us}var ds,zc;function Gh(){if(zc)return ds;zc=1;var e=gd(),t=Hh(),n=Ea(),r=yd(),o=qh(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var l="Warning: "+c;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return ds=function(c,l){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(A){var W=A&&(u&&A[u]||A[d]);if(typeof W=="function")return W}var m="<<anonymous>>",b={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:T(),arrayOf:w,element:E(),elementType:S(),instanceOf:O,node:x(),objectOf:P,oneOf:R,oneOfType:N,shape:F,exact:$};function g(A,W){return A===W?A!==0||1/A===1/W:A!==A&&W!==W}function p(A,W){this.message=A,this.data=W&&typeof W=="object"?W:{},this.stack=""}p.prototype=Error.prototype;function y(A){if(process.env.NODE_ENV!=="production")var W={},te=0;function ne(J,U,Q,ee,oe,K,ie){if(ee=ee||m,K=K||Q,ie!==n){if(l){var V=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 V.name="Invariant Violation",V}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var he=ee+":"+Q;!W[he]&&te<3&&(i("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+ee+"`. 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."),W[he]=!0,te++)}}return U[Q]==null?J?U[Q]===null?new p("The "+oe+" `"+K+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new p("The "+oe+" `"+K+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:A(U,Q,ee,oe,K)}var Y=ne.bind(null,!1);return Y.isRequired=ne.bind(null,!0),Y}function C(A){function W(te,ne,Y,J,U,Q){var ee=te[ne],oe=B(ee);if(oe!==A){var K=q(ee);return new p("Invalid "+J+" `"+U+"` of type "+("`"+K+"` supplied to `"+Y+"`, expected ")+("`"+A+"`."),{expectedType:A})}return null}return y(W)}function T(){return y(a)}function w(A){function W(te,ne,Y,J,U){if(typeof A!="function")return new p("Property `"+U+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var Q=te[ne];if(!Array.isArray(Q)){var ee=B(Q);return new p("Invalid "+J+" `"+U+"` of type "+("`"+ee+"` supplied to `"+Y+"`, expected an array."))}for(var oe=0;oe<Q.length;oe++){var K=A(Q,oe,Y,J,U+"["+oe+"]",n);if(K instanceof Error)return K}return null}return y(W)}function E(){function A(W,te,ne,Y,J){var U=W[te];if(!c(U)){var Q=B(U);return new p("Invalid "+Y+" `"+J+"` of type "+("`"+Q+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return y(A)}function S(){function A(W,te,ne,Y,J){var U=W[te];if(!e.isValidElementType(U)){var Q=B(U);return new p("Invalid "+Y+" `"+J+"` of type "+("`"+Q+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return y(A)}function O(A){function W(te,ne,Y,J,U){if(!(te[ne]instanceof A)){var Q=A.name||m,ee=Z(te[ne]);return new p("Invalid "+J+" `"+U+"` of type "+("`"+ee+"` supplied to `"+Y+"`, expected ")+("instance of `"+Q+"`."))}return null}return y(W)}function R(A){if(!Array.isArray(A))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.")),a;function W(te,ne,Y,J,U){for(var Q=te[ne],ee=0;ee<A.length;ee++)if(g(Q,A[ee]))return null;var oe=JSON.stringify(A,function(ie,V){var he=q(V);return he==="symbol"?String(V):V});return new p("Invalid "+J+" `"+U+"` of value `"+String(Q)+"` "+("supplied to `"+Y+"`, expected one of "+oe+"."))}return y(W)}function P(A){function W(te,ne,Y,J,U){if(typeof A!="function")return new p("Property `"+U+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var Q=te[ne],ee=B(Q);if(ee!=="object")return new p("Invalid "+J+" `"+U+"` of type "+("`"+ee+"` supplied to `"+Y+"`, expected an object."));for(var oe in Q)if(r(Q,oe)){var K=A(Q,oe,Y,J,U+"."+oe,n);if(K instanceof Error)return K}return null}return y(W)}function N(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var W=0;W<A.length;W++){var te=A[W];if(typeof te!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+G(te)+" at index "+W+"."),a}function ne(Y,J,U,Q,ee){for(var oe=[],K=0;K<A.length;K++){var ie=A[K],V=ie(Y,J,U,Q,ee,n);if(V==null)return null;V.data&&r(V.data,"expectedType")&&oe.push(V.data.expectedType)}var he=oe.length>0?", expected one of type ["+oe.join(", ")+"]":"";return new p("Invalid "+Q+" `"+ee+"` supplied to "+("`"+U+"`"+he+"."))}return y(ne)}function x(){function A(W,te,ne,Y,J){return z(W[te])?null:new p("Invalid "+Y+" `"+J+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return y(A)}function k(A,W,te,ne,Y){return new p((A||"React class")+": "+W+" type `"+te+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function F(A){function W(te,ne,Y,J,U){var Q=te[ne],ee=B(Q);if(ee!=="object")return new p("Invalid "+J+" `"+U+"` of type `"+ee+"` "+("supplied to `"+Y+"`, expected `object`."));for(var oe in A){var K=A[oe];if(typeof K!="function")return k(Y,J,U,oe,q(K));var ie=K(Q,oe,Y,J,U+"."+oe,n);if(ie)return ie}return null}return y(W)}function $(A){function W(te,ne,Y,J,U){var Q=te[ne],ee=B(Q);if(ee!=="object")return new p("Invalid "+J+" `"+U+"` of type `"+ee+"` "+("supplied to `"+Y+"`, expected `object`."));var oe=t({},te[ne],A);for(var K in oe){var ie=A[K];if(r(A,K)&&typeof ie!="function")return k(Y,J,U,K,q(ie));if(!ie)return new p("Invalid "+J+" `"+U+"` key `"+K+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(te[ne],null," ")+`
|
|
49
|
+
Valid keys: `+JSON.stringify(Object.keys(A),null," "));var V=ie(Q,K,Y,J,U+"."+K,n);if(V)return V}return null}return y(W)}function z(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(z);if(A===null||c(A))return!0;var W=f(A);if(W){var te=W.call(A),ne;if(W!==A.entries){for(;!(ne=te.next()).done;)if(!z(ne.value))return!1}else for(;!(ne=te.next()).done;){var Y=ne.value;if(Y&&!z(Y[1]))return!1}}else return!1;return!0;default:return!1}}function L(A,W){return A==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function B(A){var W=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":L(W,A)?"symbol":W}function q(A){if(typeof A>"u"||A===null)return""+A;var W=B(A);if(W==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return W}function G(A){var W=q(A);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function Z(A){return!A.constructor||!A.constructor.name?m:A.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},ds}var fs,Wc;function Yh(){if(Wc)return fs;Wc=1;var e=Ea();function t(){}function n(){}return n.resetWarningCache=t,fs=function(){function r(a,c,l,u,d,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},fs}if(process.env.NODE_ENV!=="production"){var Kh=gd(),Xh=!0;Vs.exports=Gh()(Kh.isElement,Xh)}else Vs.exports=Yh()();var Jh=Vs.exports;const s=xa(Jh);function ln(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const At="$$material";function Zh(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 Qh={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 em(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var tm=/[A-Z]|^ms/g,nm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vd=function(t){return t.charCodeAt(1)===45},Hc=function(t){return t!=null&&typeof t!="boolean"},ps=em(function(e){return vd(e)?e:e.replace(tm,"-$&").toLowerCase()}),qc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nm,function(r,o,i){return an={name:o,styles:i,next:an},o})}return Qh[t]!==1&&!vd(t)&&typeof n=="number"&&n!==0?n+"px":n};function ai(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 an={name:o.name,styles:o.styles,next:an},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)an={name:a.name,styles:a.styles,next:an},a=a.next;var c=i.styles+";";return c}return rm(e,t,n)}}var l=n;return l}function rm(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ai(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var c=a;Hc(c)&&(r+=ps(i)+":"+qc(i,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var l=0;l<a.length;l++)Hc(a[l])&&(r+=ps(i)+":"+qc(i,a[l])+";");else{var u=ai(e,t,a);switch(i){case"animation":case"animationName":{r+=ps(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var Gc=/label:\s*([^\s;{]+)\s*(;|$)/g,an;function om(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="";an=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=ai(n,t,i);else{var a=i;o+=a[0]}for(var c=1;c<e.length;c++)if(o+=ai(n,t,e[c]),r){var l=i;o+=l[c]}Gc.lastIndex=0;for(var u="",d;(d=Gc.exec(o))!==null;)u+="-"+d[1];var f=Zh(o)+u;return{name:f,styles:o,next:an}}function im(e){return e==null||Object.keys(e).length===0}function Sa(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(im(o)?n:o):t;return h.jsx(gr.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(Sa.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
|
|
50
50
|
* @mui/styled-engine v6.3.0
|
|
51
51
|
*
|
|
52
52
|
* @license MIT
|
|
53
53
|
* This source code is licensed under the MIT license found in the
|
|
54
54
|
* LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/function
|
|
56
|
-
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function
|
|
57
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:ln(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function
|
|
55
|
+
*/function bd(e,t){const n=Bh(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
56
|
+
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function sm(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Yc=[];function Kc(e){return Yc[0]=e,om(Yc)}function zt(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 xd(e){if(v.isValidElement(e)||!zt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=xd(e[n])}),t}function ot(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return zt(e)&&zt(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])?r[o]=t[o]:zt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&zt(e[o])?r[o]=ot(e[o],t[o],n):n.clone?r[o]=zt(t[o])?xd(t[o]):t[o]:r[o]=t[o]}),r}const am=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function cm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=am(t),a=Object.keys(i);function c(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function l(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function u(m,b){const g=a.indexOf(b);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:b)-r/100}${n})`}function d(m){return a.indexOf(m)+1<a.length?u(m,a[a.indexOf(m)+1]):c(m)}function f(m){const b=a.indexOf(m);return b===0?c(a[1]):b===a.length-1?l(a[b]):u(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:c,down:l,between:u,only:d,not:f,unit:n,...o}}function lm(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,c;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((c=o.match(i))==null?void 0:c[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function um(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function dm(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
57
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:ln(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function fm(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...c)=>t(e.breakpoints.up(...c),a),i.down=(...c)=>t(e.breakpoints.down(...c),a),i.between=(...c)=>t(e.breakpoints.between(...c),a),i.only=(...c)=>t(e.breakpoints.only(...c),a),i.not=(...c)=>{const l=t(e.breakpoints.not(...c),a);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const pm={borderRadius:4},mn=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Br(e,t){return t?ot(e,t,{clone:!1}):e}const Oi={xs:0,sm:600,md:900,lg:1200,xl:1536},Xc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Oi[e]}px)`},hm={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Oi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function It(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Xc;return t.reduce((a,c,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Xc;return Object.keys(t).reduce((a,c)=>{if(um(i.keys,c)){const l=dm(r.containerQueries?r:hm,c);l&&(a[l]=n(t[c],c))}else if(Object.keys(i.values||Oi).includes(c)){const l=i.up(c);a[l]=n(t[c],c)}else{const l=c;a[l]=t[l]}return a},{})}return n(t)}function Ed(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Sd(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function mm(e,...t){const n=Ed(e),r=[n,...t].reduce((o,i)=>ot(o,i),{});return Sd(Object.keys(n),r)}function gm(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function hs({values:e,breakpoints:t,base:n}){const r=n||gm(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,c,l)=>(Array.isArray(e)?(a[c]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[c]=e[c]!=null?e[c]:e[i],i=c):a[c]=e,a),{})}function de(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ln(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ar(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ci(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=ar(e,n)||r,t&&(o=t(o,r,e)),o}function Xe(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const c=a[t],l=a.theme,u=ar(l,r)||{};return It(a,c,f=>{let m=ci(u,o,f);return f===m&&typeof f=="string"&&(m=ci(u,o,`${t}${f==="default"?"":de(f)}`,f)),n===!1?m:{[n]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:mn}:{},i.filterProps=[t],i}function ym(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const vm={m:"margin",p:"padding"},bm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Jc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xm=ym(e=>{if(e.length>2)if(Jc[e])e=Jc[e];else return[e];const[t,n]=e.split(""),r=vm[t],o=bm[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Ri=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ji=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Em=[...Ri,...ji];function co(e,t,n,r){const o=ar(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
58
58
|
`)):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(`
|
|
59
59
|
`)));const c=o[a];return i>=0?c:typeof c=="number"?-c:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
60
|
-
`)),()=>{})}function Oi(e){return ao(e,"spacing",8,"spacing")}function An(e,t){return typeof t=="string"||t==null?t:e(t)}function ym(e,t){return n=>e.reduce((r,o)=>(r[o]=An(t,n),r),{})}function vm(e,t,n,r){if(!t.includes(n))return null;const o=mm(n),i=ym(o,r),a=e[n];return jt(e,a,i)}function bd(e,t){const n=Oi(e.theme);return Object.keys(e).map(r=>vm(e,t,r,n)).reduce(Lr,{})}function We(e){return bd(e,Ti)}We.propTypes=process.env.NODE_ENV!=="production"?Ti.reduce((e,t)=>(e[t]=mn,e),{}):{};We.filterProps=Ti;function He(e){return bd(e,Ci)}He.propTypes=process.env.NODE_ENV!=="production"?Ci.reduce((e,t)=>(e[t]=mn,e),{}):{};He.filterProps=Ci;process.env.NODE_ENV!=="production"&&gm.reduce((e,t)=>(e[t]=mn,e),{});function xd(e=8,t=Oi({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Ri(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Lr(o,t[i](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 xt(e){return typeof e!="number"?e:`${e}px solid`}function Ot(e,t){return Xe({prop:e,themeKey:"borders",transform:t})}const bm=Ot("border",xt),xm=Ot("borderTop",xt),Em=Ot("borderRight",xt),Sm=Ot("borderBottom",xt),wm=Ot("borderLeft",xt),Tm=Ot("borderColor"),Cm=Ot("borderTopColor"),Om=Ot("borderRightColor"),Rm=Ot("borderBottomColor"),km=Ot("borderLeftColor"),Pm=Ot("outline",xt),Nm=Ot("outlineColor"),ki=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ao(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:An(t,r)});return jt(e,e.borderRadius,n)}return null};ki.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:mn}:{};ki.filterProps=["borderRadius"];Ri(bm,xm,Em,Sm,wm,Tm,Cm,Om,Rm,km,ki,Pm,Nm);const Pi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ao(e.theme,"spacing",8,"gap"),n=r=>({gap:An(t,r)});return jt(e,e.gap,n)}return null};Pi.propTypes=process.env.NODE_ENV!=="production"?{gap:mn}:{};Pi.filterProps=["gap"];const Ni=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ao(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:An(t,r)});return jt(e,e.columnGap,n)}return null};Ni.propTypes=process.env.NODE_ENV!=="production"?{columnGap:mn}:{};Ni.filterProps=["columnGap"];const ji=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ao(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:An(t,r)});return jt(e,e.rowGap,n)}return null};ji.propTypes=process.env.NODE_ENV!=="production"?{rowGap:mn}:{};ji.filterProps=["rowGap"];const jm=Xe({prop:"gridColumn"}),Am=Xe({prop:"gridRow"}),Im=Xe({prop:"gridAutoFlow"}),_m=Xe({prop:"gridAutoColumns"}),$m=Xe({prop:"gridAutoRows"}),Mm=Xe({prop:"gridTemplateColumns"}),Dm=Xe({prop:"gridTemplateRows"}),Lm=Xe({prop:"gridTemplateAreas"}),Bm=Xe({prop:"gridArea"});Ri(Pi,Ni,ji,jm,Am,Im,_m,$m,Mm,Dm,Lm,Bm);function or(e,t){return t==="grey"?t:e}const Fm=Xe({prop:"color",themeKey:"palette",transform:or}),Vm=Xe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:or}),Um=Xe({prop:"backgroundColor",themeKey:"palette",transform:or});Ri(Fm,Vm,Um);function pt(e){return e<=1&&e!==0?`${e*100}%`:e}const zm=Xe({prop:"width",transform:pt}),va=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,c,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||wi[n];return r?((l=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:pt(n)}};return jt(e,e.maxWidth,t)}return null};va.filterProps=["maxWidth"];const Wm=Xe({prop:"minWidth",transform:pt}),Hm=Xe({prop:"height",transform:pt}),qm=Xe({prop:"maxHeight",transform:pt}),Gm=Xe({prop:"minHeight",transform:pt});Xe({prop:"size",cssProperty:"width",transform:pt});Xe({prop:"size",cssProperty:"height",transform:pt});const Ym=Xe({prop:"boxSizing"});Ri(zm,va,Wm,Hm,qm,Gm,Ym);const co={border:{themeKey:"borders",transform:xt},borderTop:{themeKey:"borders",transform:xt},borderRight:{themeKey:"borders",transform:xt},borderBottom:{themeKey:"borders",transform:xt},borderLeft:{themeKey:"borders",transform:xt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ki},color:{themeKey:"palette",transform:or},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:or},backgroundColor:{themeKey:"palette",transform:or},p:{style:He},pt:{style:He},pr:{style:He},pb:{style:He},pl:{style:He},px:{style:He},py:{style:He},padding:{style:He},paddingTop:{style:He},paddingRight:{style:He},paddingBottom:{style:He},paddingLeft:{style:He},paddingX:{style:He},paddingY:{style:He},paddingInline:{style:He},paddingInlineStart:{style:He},paddingInlineEnd:{style:He},paddingBlock:{style:He},paddingBlockStart:{style:He},paddingBlockEnd:{style:He},m:{style:We},mt:{style:We},mr:{style:We},mb:{style:We},ml:{style:We},mx:{style:We},my:{style:We},margin:{style:We},marginTop:{style:We},marginRight:{style:We},marginBottom:{style:We},marginLeft:{style:We},marginX:{style:We},marginY:{style:We},marginInline:{style:We},marginInlineStart:{style:We},marginInlineEnd:{style:We},marginBlock:{style:We},marginBlockStart:{style:We},marginBlockEnd:{style:We},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:Pi},rowGap:{style:ji},columnGap:{style:Ni},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pt},maxWidth:{style:va},minWidth:{transform:pt},height:{transform:pt},maxHeight:{transform:pt},minHeight:{transform:pt},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 Km(...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 Xm(e,t){return typeof e=="function"?e(t):e}function Jm(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:d,style:f}=c;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=sr(o,u)||{};return f?f(a):jt(a,r,m=>{let p=ii(h,d,m);return m===p&&typeof m=="string"&&(p=ii(h,d,`${n}${m==="default"?"":de(m)}`,m)),l===!1?p:{[l]:p}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??co;function a(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const u=yd(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(l).forEach(h=>{const b=Xm(l[h],o);if(b!=null)if(typeof b=="object")if(i[h])f=Lr(f,e(h,b,o,i));else{const m=jt({theme:o},b,p=>({[h]:p}));Km(m,b)?f[h]=t({sx:b,theme:o}):f=Lr(f,m)}else f=Lr(f,e(h,b,o,i))}),om(o,vd(d,f))}return Array.isArray(r)?r.map(a):a(r)}return t}const un=Jm();un.filterProps=["sx"];function Zm(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function lo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,c=rm(n),l=xd(o);let u=ot({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...cm,...i}},a);return u=am(u),u.applyStyles=Zm,u=t.reduce((d,f)=>ot(d,f),u),u.unstable_sxConfig={...co,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(f){return un({sx:f,theme:this})},u}function Qm(e){return Object.keys(e).length===0}function ba(e=null){const t=v.useContext(mr.ThemeContext);return!t||Qm(t)?e:t}const eg=lo();function Ai(e=eg){return ba(e)}function Ed({styles:e,themeId:t,defaultTheme:n={}}){const r=Ai(n),o=typeof e=="function"?e(t&&r[t]||r):e;return g.jsx(ya,{styles:o})}process.env.NODE_ENV!=="production"&&(Ed.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const tg=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??co;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function xa(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=tg(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const c=t(...a);return Vt(c)?{...r,...c}:r}:i={...r,...t},{...o,sx:i}}const Kc=e=>e,ng=()=>{let e=Kc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Kc}}},Ea=ng();function Sd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Sd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ae(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Sd(e))&&(r&&(r+=" "),r+=t);return r}function wd(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=md("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(un);return v.forwardRef(function(l,u){const d=Ai(n),{className:f,component:h="div",...b}=xa(l);return g.jsx(i,{as:h,ref:u,className:ae(f,o?o(r):r),theme:t&&d[t]||d,...b})})}const rg={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 Te(e,t,n="Mui"){const r=rg[t];return r?`${n}-${r}`:`${Ea.generate(e)}-${t}`}function Oe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Te(e,o,n)}),r}const og=Oe("MuiBox",["root"]),Td=wd({defaultClassName:og.root,generateClassName:Ea.generate});process.env.NODE_ENV!=="production"&&(Td.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});var Ds={exports:{}},Re={};/**
|
|
60
|
+
`)),()=>{})}function ki(e){return co(e,"spacing",8,"spacing")}function Mn(e,t){return typeof t=="string"||t==null?t:e(t)}function Sm(e,t){return n=>e.reduce((r,o)=>(r[o]=Mn(t,n),r),{})}function wm(e,t,n,r){if(!t.includes(n))return null;const o=xm(n),i=Sm(o,r),a=e[n];return It(e,a,i)}function wd(e,t){const n=ki(e.theme);return Object.keys(e).map(r=>wm(e,t,r,n)).reduce(Br,{})}function We(e){return wd(e,Ri)}We.propTypes=process.env.NODE_ENV!=="production"?Ri.reduce((e,t)=>(e[t]=mn,e),{}):{};We.filterProps=Ri;function He(e){return wd(e,ji)}He.propTypes=process.env.NODE_ENV!=="production"?ji.reduce((e,t)=>(e[t]=mn,e),{}):{};He.filterProps=ji;process.env.NODE_ENV!=="production"&&Em.reduce((e,t)=>(e[t]=mn,e),{});function Cd(e=8,t=ki({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Pi(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Br(o,t[i](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 xt(e){return typeof e!="number"?e:`${e}px solid`}function Ot(e,t){return Xe({prop:e,themeKey:"borders",transform:t})}const Cm=Ot("border",xt),Tm=Ot("borderTop",xt),Om=Ot("borderRight",xt),Rm=Ot("borderBottom",xt),jm=Ot("borderLeft",xt),km=Ot("borderColor"),Pm=Ot("borderTopColor"),Nm=Ot("borderRightColor"),Am=Ot("borderBottomColor"),Im=Ot("borderLeftColor"),_m=Ot("outline",xt),Mm=Ot("outlineColor"),Ni=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=co(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Mn(t,r)});return It(e,e.borderRadius,n)}return null};Ni.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:mn}:{};Ni.filterProps=["borderRadius"];Pi(Cm,Tm,Om,Rm,jm,km,Pm,Nm,Am,Im,Ni,_m,Mm);const Ai=e=>{if(e.gap!==void 0&&e.gap!==null){const t=co(e.theme,"spacing",8,"gap"),n=r=>({gap:Mn(t,r)});return It(e,e.gap,n)}return null};Ai.propTypes=process.env.NODE_ENV!=="production"?{gap:mn}:{};Ai.filterProps=["gap"];const Ii=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=co(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Mn(t,r)});return It(e,e.columnGap,n)}return null};Ii.propTypes=process.env.NODE_ENV!=="production"?{columnGap:mn}:{};Ii.filterProps=["columnGap"];const _i=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=co(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Mn(t,r)});return It(e,e.rowGap,n)}return null};_i.propTypes=process.env.NODE_ENV!=="production"?{rowGap:mn}:{};_i.filterProps=["rowGap"];const $m=Xe({prop:"gridColumn"}),Dm=Xe({prop:"gridRow"}),Lm=Xe({prop:"gridAutoFlow"}),Bm=Xe({prop:"gridAutoColumns"}),Fm=Xe({prop:"gridAutoRows"}),Vm=Xe({prop:"gridTemplateColumns"}),Um=Xe({prop:"gridTemplateRows"}),zm=Xe({prop:"gridTemplateAreas"}),Wm=Xe({prop:"gridArea"});Pi(Ai,Ii,_i,$m,Dm,Lm,Bm,Fm,Vm,Um,zm,Wm);function ir(e,t){return t==="grey"?t:e}const Hm=Xe({prop:"color",themeKey:"palette",transform:ir}),qm=Xe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ir}),Gm=Xe({prop:"backgroundColor",themeKey:"palette",transform:ir});Pi(Hm,qm,Gm);function pt(e){return e<=1&&e!==0?`${e*100}%`:e}const Ym=Xe({prop:"width",transform:pt}),wa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,c,l;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Oi[n];return r?((l=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:pt(n)}};return It(e,e.maxWidth,t)}return null};wa.filterProps=["maxWidth"];const Km=Xe({prop:"minWidth",transform:pt}),Xm=Xe({prop:"height",transform:pt}),Jm=Xe({prop:"maxHeight",transform:pt}),Zm=Xe({prop:"minHeight",transform:pt});Xe({prop:"size",cssProperty:"width",transform:pt});Xe({prop:"size",cssProperty:"height",transform:pt});const Qm=Xe({prop:"boxSizing"});Pi(Ym,wa,Km,Xm,Jm,Zm,Qm);const lo={border:{themeKey:"borders",transform:xt},borderTop:{themeKey:"borders",transform:xt},borderRight:{themeKey:"borders",transform:xt},borderBottom:{themeKey:"borders",transform:xt},borderLeft:{themeKey:"borders",transform:xt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ni},color:{themeKey:"palette",transform:ir},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ir},backgroundColor:{themeKey:"palette",transform:ir},p:{style:He},pt:{style:He},pr:{style:He},pb:{style:He},pl:{style:He},px:{style:He},py:{style:He},padding:{style:He},paddingTop:{style:He},paddingRight:{style:He},paddingBottom:{style:He},paddingLeft:{style:He},paddingX:{style:He},paddingY:{style:He},paddingInline:{style:He},paddingInlineStart:{style:He},paddingInlineEnd:{style:He},paddingBlock:{style:He},paddingBlockStart:{style:He},paddingBlockEnd:{style:He},m:{style:We},mt:{style:We},mr:{style:We},mb:{style:We},ml:{style:We},mx:{style:We},my:{style:We},margin:{style:We},marginTop:{style:We},marginRight:{style:We},marginBottom:{style:We},marginLeft:{style:We},marginX:{style:We},marginY:{style:We},marginInline:{style:We},marginInlineStart:{style:We},marginInlineEnd:{style:We},marginBlock:{style:We},marginBlockStart:{style:We},marginBlockEnd:{style:We},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:Ai},rowGap:{style:_i},columnGap:{style:Ii},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pt},maxWidth:{style:wa},minWidth:{transform:pt},height:{transform:pt},maxHeight:{transform:pt},minHeight:{transform:pt},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 eg(...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 tg(e,t){return typeof e=="function"?e(t):e}function ng(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:d,style:f}=c;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const m=ar(o,u)||{};return f?f(a):It(a,r,g=>{let p=ci(m,d,g);return g===p&&typeof g=="string"&&(p=ci(m,d,`${n}${g==="default"?"":de(g)}`,g)),l===!1?p:{[l]:p}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??lo;function a(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const u=Ed(o.breakpoints),d=Object.keys(u);let f=u;return Object.keys(l).forEach(m=>{const b=tg(l[m],o);if(b!=null)if(typeof b=="object")if(i[m])f=Br(f,e(m,b,o,i));else{const g=It({theme:o},b,p=>({[m]:p}));eg(g,b)?f[m]=t({sx:b,theme:o}):f=Br(f,g)}else f=Br(f,e(m,b,o,i))}),lm(o,Sd(d,f))}return Array.isArray(r)?r.map(a):a(r)}return t}const un=ng();un.filterProps=["sx"];function rg(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function uo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,c=cm(n),l=Cd(o);let u=ot({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...pm,...i}},a);return u=fm(u),u.applyStyles=rg,u=t.reduce((d,f)=>ot(d,f),u),u.unstable_sxConfig={...lo,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(f){return un({sx:f,theme:this})},u}function og(e){return Object.keys(e).length===0}function Ca(e=null){const t=v.useContext(gr.ThemeContext);return!t||og(t)?e:t}const ig=uo();function Mi(e=ig){return Ca(e)}function Td({styles:e,themeId:t,defaultTheme:n={}}){const r=Mi(n),o=typeof e=="function"?e(t&&r[t]||r):e;return h.jsx(Sa,{styles:o})}process.env.NODE_ENV!=="production"&&(Td.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const sg=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??lo;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function Ta(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=sg(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const c=t(...a);return zt(c)?{...r,...c}:r}:i={...r,...t},{...o,sx:i}}const Zc=e=>e,ag=()=>{let e=Zc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Zc}}},Oa=ag();function Od(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Od(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ae(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Od(e))&&(r&&(r+=" "),r+=t);return r}function Rd(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=bd("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(un);return v.forwardRef(function(l,u){const d=Mi(n),{className:f,component:m="div",...b}=Ta(l);return h.jsx(i,{as:m,ref:u,className:ae(f,o?o(r):r),theme:t&&d[t]||d,...b})})}const cg={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 Ce(e,t,n="Mui"){const r=cg[t];return r?`${n}-${r}`:`${Oa.generate(e)}-${t}`}function Oe(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ce(e,o,n)}),r}const lg=Oe("MuiBox",["root"]),jd=Rd({defaultClassName:lg.root,generateClassName:Oa.generate});process.env.NODE_ENV!=="production"&&(jd.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});var Us={exports:{}},Re={};/**
|
|
61
61
|
* @license React
|
|
62
62
|
* react-is.production.js
|
|
63
63
|
*
|
|
@@ -65,7 +65,7 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:ln(18,`(${t})`));return
|
|
|
65
65
|
*
|
|
66
66
|
* This source code is licensed under the MIT license found in the
|
|
67
67
|
* LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/var
|
|
68
|
+
*/var Qc;function ug(){if(Qc)return Re;Qc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case n:case o:case r:case l:case u:return p;default:switch(p=p&&p.$$typeof,p){case a:case c:case f:case d:return p;case i:return p;default:return y}}case t:return y}}}return Re.ContextConsumer=i,Re.ContextProvider=a,Re.Element=e,Re.ForwardRef=c,Re.Fragment=n,Re.Lazy=f,Re.Memo=d,Re.Portal=t,Re.Profiler=o,Re.StrictMode=r,Re.Suspense=l,Re.SuspenseList=u,Re.isContextConsumer=function(p){return g(p)===i},Re.isContextProvider=function(p){return g(p)===a},Re.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Re.isForwardRef=function(p){return g(p)===c},Re.isFragment=function(p){return g(p)===n},Re.isLazy=function(p){return g(p)===f},Re.isMemo=function(p){return g(p)===d},Re.isPortal=function(p){return g(p)===t},Re.isProfiler=function(p){return g(p)===o},Re.isStrictMode=function(p){return g(p)===r},Re.isSuspense=function(p){return g(p)===l},Re.isSuspenseList=function(p){return g(p)===u},Re.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===l||p===u||p===m||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===a||p.$$typeof===i||p.$$typeof===c||p.$$typeof===b||p.getModuleId!==void 0)},Re.typeOf=g,Re}var je={};/**
|
|
69
69
|
* @license React
|
|
70
70
|
* react-is.development.js
|
|
71
71
|
*
|
|
@@ -73,19 +73,19 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:ln(18,`(${t})`));return
|
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the MIT license found in the
|
|
75
75
|
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/var
|
|
77
|
-
`));let f=typeof r=="function"?r(i):r;f=f.replace(/^@media( ?)/m,"");const b=(
|
|
76
|
+
*/var el;function dg(){return el||(el=1,process.env.NODE_ENV!=="production"&&function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case t:switch(p=p.type,p){case r:case i:case o:case u:case d:return p;default:switch(p=p&&p.$$typeof,p){case c:case l:case m:case f:return p;case a:return p;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=Symbol.for("react.client.reference");je.ContextConsumer=a,je.ContextProvider=c,je.Element=t,je.ForwardRef=l,je.Fragment=r,je.Lazy=m,je.Memo=f,je.Portal=n,je.Profiler=i,je.StrictMode=o,je.Suspense=u,je.SuspenseList=d,je.isContextConsumer=function(p){return e(p)===a},je.isContextProvider=function(p){return e(p)===c},je.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},je.isForwardRef=function(p){return e(p)===l},je.isFragment=function(p){return e(p)===r},je.isLazy=function(p){return e(p)===m},je.isMemo=function(p){return e(p)===f},je.isPortal=function(p){return e(p)===n},je.isProfiler=function(p){return e(p)===i},je.isStrictMode=function(p){return e(p)===o},je.isSuspense=function(p){return e(p)===u},je.isSuspenseList=function(p){return e(p)===d},je.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===o||p===u||p===d||p===b||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===f||p.$$typeof===c||p.$$typeof===a||p.$$typeof===l||p.$$typeof===g||p.getModuleId!==void 0)},je.typeOf=e}()),je}process.env.NODE_ENV==="production"?Us.exports=ug():Us.exports=dg();var zs=Us.exports;function kd(e,t=""){return e.displayName||e.name||t}function tl(e,t,n){const r=kd(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function fg(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return kd(e,"Component");if(typeof e=="object")switch(e.$$typeof){case zs.ForwardRef:return tl(e,e.render,"ForwardRef");case zs.Memo:return tl(e,e.type,"memo");default:return}}}function Pd(e){const{variants:t,...n}=e,r={variants:t,style:Kc(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Kc(o.style))}),r}const pg=uo();function ms(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function hg(e){return e?(t,n)=>n[e]:null}function mg(e,t,n){e.theme=vg(e.theme)?n:e.theme[t]||e.theme}function Ko(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Ko(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return Nd(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function Nd(e,t,n=[]){var o;let r;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(r))continue}else for(const c in a.props)if(e[c]!==a.props[c]&&((o=e.ownerState)==null?void 0:o[c])!==a.props[c])continue e;typeof a.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(a.style(r))):n.push(a.style)}return n}function Ad(e={}){const{themeId:t,defaultTheme:n=pg,rootShouldForwardProp:r=ms,slotShouldForwardProp:o=ms}=e;function i(c){mg(c,t,n)}return(c,l={})=>{sm(c,S=>S.filter(O=>O!==un));const{name:u,slot:d,skipVariantsResolver:f,skipSx:m,overridesResolver:b=hg(Id(d)),...g}=l,p=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,y=m||!1;let C=ms;d==="Root"||d==="root"?C=r:d?C=o:bg(c)&&(C=void 0);const T=bd(c,{shouldForwardProp:C,label:yg(u,d),...g}),w=S=>{if(typeof S=="function"&&S.__emotion_real!==S)return function(R){return Ko(R,S)};if(zt(S)){const O=Pd(S);return O.variants?function(P){return Ko(P,O)}:O.style}return S},E=(...S)=>{const O=[],R=S.map(w),P=[];if(O.push(i),u&&b&&P.push(function(F){var B,q;const z=(q=(B=F.theme.components)==null?void 0:B[u])==null?void 0:q.styleOverrides;if(!z)return null;const L={};for(const G in z)L[G]=Ko(F,z[G]);return b(F,L)}),u&&!p&&P.push(function(F){var L,B;const $=F.theme,z=(B=(L=$==null?void 0:$.components)==null?void 0:L[u])==null?void 0:B.variants;return z?Nd(F,z):null}),y||P.push(un),Array.isArray(R[0])){const k=R.shift(),F=new Array(O.length).fill(""),$=new Array(P.length).fill("");let z;z=[...F,...k,...$],z.raw=[...F,...k.raw,...$],O.unshift(z)}const N=[...O,...R,...P],x=T(...N);return c.muiName&&(x.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(x.displayName=gg(u,d,c)),x};return T.withConfig&&(E.withConfig=T.withConfig),E}}function gg(e,t,n){return e?`${e}${de(t||"")}`:`Styled(${fg(n)})`}function yg(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Id(t||"Root")}`),n}function vg(e){for(const t in e)return!1;return!0}function bg(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Id(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const _d=Ad();function Hr(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){const l=c;n[o][l]=Hr(i[l],a[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function Md(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Hr(t.components[n].defaultProps,r)}function $d({props:e,name:t,defaultTheme:n,themeId:r}){let o=Mi(n);return r&&(o=o[r]||o),Md({theme:o,name:t,props:e})}const $n=typeof window<"u"?v.useLayoutEffect:v.useEffect;function xg(e,t,n,r,o){const[i,a]=v.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return $n(()=>{if(!n)return;const c=n(e),l=()=>{a(c.matches)};return l(),c.addEventListener("change",l),()=>{c.removeEventListener("change",l)}},[e,n]),i}const Eg={...v},Dd=Eg.useSyncExternalStore;function Sg(e,t,n,r,o){const i=v.useCallback(()=>t,[t]),a=v.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return i},[i,e,r,o,n]),[c,l]=v.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addEventListener("change",f),()=>{d.removeEventListener("change",f)})]},[i,n,e]);return Dd(l,c,a)}function wg(e={}){const{themeId:t}=e;return function(r,o={}){let i=Ca();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=Md({name:"MuiUseMediaQuery",props:o,theme:i});process.env.NODE_ENV!=="production"&&typeof r=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
77
|
+
`));let f=typeof r=="function"?r(i):r;f=f.replace(/^@media( ?)/m,"");const b=(Dd!==void 0?Sg:xg)(f,c,l,u,d);return process.env.NODE_ENV!=="production"&&v.useDebugValue({query:f,match:b}),b}}function Cg(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ra(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Cg(e,t,n)}function Tg(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function dn(e){if(e.type)return e;if(e.charAt(0)==="#")return dn(Tg(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
78
78
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:ln(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
79
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ln(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const
|
|
79
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ln(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Og=e=>{const t=dn(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ir=(e,t)=>{try{return Og(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function $i(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Ld(e){e=dn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,d=(u+n/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let c="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",l.push(t[3])),$i({type:c,values:l})}function Ws(e){e=dn(e);let t=e.type==="hsl"||e.type==="hsla"?dn(Ld(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nl(e,t){const n=Ws(e),r=Ws(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ke(e,t){return e=dn(e),t=Ra(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$i(e)}function Ao(e,t,n){try{return Ke(e,t)}catch{return e}}function ja(e,t){if(e=dn(e),t=Ra(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return $i(e)}function Ie(e,t,n){try{return ja(e,t)}catch{return e}}function ka(e,t){if(e=dn(e),t=Ra(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return $i(e)}function _e(e,t,n){try{return ka(e,t)}catch{return e}}function Hs(e,t=.15){return Ws(e)>.5?ja(e,t):ka(e,t)}function Io(e,t,n){try{return Hs(e,t)}catch{return e}}function tn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Rg(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Bd(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let c;const l=i.type;return typeof l=="function"&&!Rg(l)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Vn=tn(s.element,Bd);Vn.isRequired=tn(s.element.isRequired,Bd);function jg(e){const{prototype:t={}}=e;return!!t.isReactComponent}function kg(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let c;return typeof i=="function"&&!jg(i)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const fo=tn(s.elementType,kg),Pg="exact-prop: ";function Di(e){return process.env.NODE_ENV==="production"?e:{...e,[Pg]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}function Qt(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Li=s.oneOfType([s.func,s.object]);function rl(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Fd(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Vd(e,t){var n,r,o;return v.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function _t(e){return e&&e.ownerDocument||document}function fn(e){return _t(e).defaultView||window}function qs(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let ol=0;function Ng(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(ol+=1,n(`mui-${ol}`))},[t]),r}const Ag={...v},il=Ag.useId;function Ig(e){if(il!==void 0){const t=il();return e??t}return Ng(e)}function _g({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=v.useRef(e!==void 0),[i,a]=v.useState(t),c=o?e:i;if(process.env.NODE_ENV!=="production"){v.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
80
80
|
`))},[r,n,e]);const{current:u}=v.useRef(t);v.useEffect(()=>{!o&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
81
|
-
`))},[JSON.stringify(t)])}const l=v.useCallback(u=>{o||a(u)},[]);return[c,l]}function cn(e){const t=v.useRef(e);return
|
|
82
|
-
`))}return!1}function
|
|
83
|
-
`))),n}return{...e,...t}}function
|
|
84
|
-
`));const o=v.useMemo(()=>{const i=r===null?{...n}:
|
|
85
|
-
`));const a=
|
|
86
|
-
${c}.classList.add('${
|
|
87
|
-
${c}.removeAttribute('${
|
|
88
|
-
${c}.setAttribute('${
|
|
81
|
+
`))},[JSON.stringify(t)])}const l=v.useCallback(u=>{o||a(u)},[]);return[c,l]}function cn(e){const t=v.useRef(e);return $n(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function et(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{qs(n,t)})},e)}const sl={};function Ud(e,t){const n=v.useRef(sl);return n.current===sl&&(n.current=e(t)),n}const Mg=[];function $g(e){v.useEffect(e,Mg)}class Bi{constructor(){Wn(this,"currentId",null);Wn(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Wn(this,"disposeEffect",()=>this.clear)}static create(){return new Bi}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function jn(){const e=Ud(Bi.create).current;return $g(e.disposeEffect),e}function cr(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
82
|
+
`))}return!1}function Dg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Lg(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function zd(e,t,n,r){const o=e[t];if(o==null||!Number.isInteger(o)){const i=Lg(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Wd(e,t,...n){return e[t]===void 0?null:zd(e,t,...n)}function Gs(){return null}Wd.isRequired=zd;Gs.isRequired=Gs;const sr=process.env.NODE_ENV==="production"?Gs:Wd;function Pe(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",c=!0;for(let l=0;l<i.length;l+=1){const u=i[l];u&&(a+=(c===!0?"":" ")+t(u),c=!1,n&&n[u]&&(a+=" "+n[u]))}r[o]=a}return r}function Bg(e){return typeof e=="string"}function Hd(e,t,n){return e===void 0||Bg(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function qd(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function al(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Gd(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=ae(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},p={...n,...o,...r};return b.length>0&&(p.className=b),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const a=qd({...o,...r}),c=al(r),l=al(o),u=t(a),d=ae(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f={...u==null?void 0:u.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},m={...u,...n,...l,...c};return d.length>0&&(m.className=d),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:u.ref}}function Yd(e,t,n){return typeof e=="function"?e(t,n):e}function Kd(e){var f;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Yd(n,r),{props:c,internalRef:l}=Gd({...i,externalSlotProps:a}),u=et(l,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return Hd(t,{...c,ref:u},r)}function yr(e){var t;return parseInt(v.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const Pa=v.createContext(null);process.env.NODE_ENV!=="production"&&(Pa.displayName="ThemeContext");function Na(){const e=v.useContext(Pa);return process.env.NODE_ENV!=="production"&&v.useDebugValue(e),e}const Fg=typeof Symbol=="function"&&Symbol.for,Vg=Fg?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ug(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
|
|
83
|
+
`))),n}return{...e,...t}}function li(e){const{children:t,theme:n}=e,r=Na();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
84
|
+
`));const o=v.useMemo(()=>{const i=r===null?{...n}:Ug(r,n);return i!=null&&(i[Vg]=r!==null),i},[n,r]);return h.jsx(Pa.Provider,{value:o,children:t})}process.env.NODE_ENV!=="production"&&(li.propTypes={children:s.node,theme:s.oneOfType([s.object,s.func]).isRequired});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(li.propTypes=Di(li.propTypes));const Xd=v.createContext();function Jd({value:e,...t}){return h.jsx(Xd.Provider,{value:e??!0,...t})}process.env.NODE_ENV!=="production"&&(Jd.propTypes={children:s.node,value:s.bool});const Aa=()=>v.useContext(Xd)??!1,Zd=v.createContext(void 0);function Qd({value:e,children:t}){return h.jsx(Zd.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(Qd.propTypes={children:s.node,value:s.object});function zg(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Hr(o.defaultProps,r):!o.styleOverrides&&!o.variants?Hr(o,r):r}function Wg({props:e,name:t}){const n=v.useContext(Zd);return zg({props:e,name:t,theme:{components:n}})}const cl={};function ll(e,t,n,r=!1){return v.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function qr(e){const{children:t,theme:n,themeId:r}=e,o=Ca(cl),i=Na()||cl;process.env.NODE_ENV!=="production"&&(o===null&&typeof n=="function"||r&&o&&!o[r]&&typeof n=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
|
|
85
|
+
`));const a=ll(r,o,n),c=ll(r,i,n,!0),l=(r?a[r]:a).direction==="rtl";return h.jsx(li,{theme:c,children:h.jsx(gr.ThemeContext.Provider,{value:a,children:h.jsx(Jd,{value:l,children:h.jsx(Qd,{value:r?a[r].components:a.components,children:t})})})})}process.env.NODE_ENV!=="production"&&(qr.propTypes={children:s.node,theme:s.oneOfType([s.func,s.object]).isRequired,themeId:s.string});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(qr.propTypes=Di(qr.propTypes));const ul={theme:void 0};function Hg(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(ul.theme=o.theme,i=Pd(e(ul)),t=i,n=o.theme),i}}const Ia="mode",_a="color-scheme",qg="data-color-scheme";function ef(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=Ia,colorSchemeStorageKey:i=_a,attribute:a=qg,colorSchemeNode:c="document.documentElement",nonce:l}=e||{};let u="",d=a;if(a==="class"&&(d=".%s"),a==="data"&&(d="[data-%s]"),d.startsWith(".")){const m=d.substring(1);u+=`${c}.classList.remove('${m}'.replace('%s', light), '${m}'.replace('%s', dark));
|
|
86
|
+
${c}.classList.add('${m}'.replace('%s', colorScheme));`}const f=d.match(/\[([^\]]+)\]/);if(f){const[m,b]=f[1].split("=");b||(u+=`${c}.removeAttribute('${m}'.replace('%s', light));
|
|
87
|
+
${c}.removeAttribute('${m}'.replace('%s', dark));`),u+=`
|
|
88
|
+
${c}.setAttribute('${m}'.replace('%s', colorScheme), ${b?`${b}.replace('%s', colorScheme)`:'""'});`}else u+=`${c}.setAttribute('${d}', colorScheme);`;return h.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
89
89
|
try {
|
|
90
90
|
let colorScheme = '';
|
|
91
91
|
const mode = localStorage.getItem('${o}') || '${t}';
|
|
@@ -109,10 +109,10 @@ try {
|
|
|
109
109
|
if (colorScheme) {
|
|
110
110
|
${u}
|
|
111
111
|
}
|
|
112
|
-
} catch(e){}})();`}},"mui-color-scheme-init")}function
|
|
113
|
-
`)),K(je)},systemMode:ie}),[J,ge,he,F,De,ve,K,ie,Le.colorSchemeSelector]);let $e=!0;(P||A.cssVariables===!1||H&&(M==null?void 0:M.cssVarPrefix)===ne)&&($e=!1);const se=g.jsxs(v.Fragment,{children:[g.jsx(Hr,{themeId:Z?t:void 0,theme:Le,children:C}),$e&&g.jsx(ya,{styles:((Lt=Le.generateStyleSheets)==null?void 0:Lt.call(Le))||[]})]});return H?se:g.jsx(u.Provider,{value:Je,children:se})}process.env.NODE_ENV!=="production"&&(b.propTypes={children:s.node,colorSchemeNode:s.any,colorSchemeStorageKey:s.string,defaultMode:s.string,disableNestedContext:s.bool,disableStyleSheetGeneration:s.bool,disableTransitionOnChange:s.bool,documentNode:s.any,modeStorageKey:s.string,noSsr:s.bool,storageWindow:s.any,theme:s.object});const m=typeof a=="string"?a:a.light,p=typeof a=="string"?a:a.dark;return{CssVarsProvider:b,useColorScheme:d,getInitColorSchemeScript:T=>Xd({colorSchemeStorageKey:o,defaultLightColorScheme:m,defaultDarkColorScheme:p,modeStorageKey:r,...T})}}function qg(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const ll=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},Gg=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([c,l])=>{(!n||!n([...i,c]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,c],Array.isArray(l)?[...a,c]:a):t([...i,c],l,a))})}r(e)},Yg=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ps(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return Gg(e,(c,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(c,l))){const d=`--${n?`${n}-`:""}${c.join("-")}`,f=Yg(c,l);Object.assign(o,{[d]:f}),ll(i,c,`var(${d})`,u),ll(a,c,`var(${d}, ${f})`,u)}},c=>c[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function Kg(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:c="light",...l}=e,{vars:u,css:d,varsWithDefaults:f}=ps(l,t);let h=f;const b={},{[c]:m,...p}=i;if(Object.entries(p||{}).forEach(([w,E])=>{const{vars:S,css:O,varsWithDefaults:R}=ps(E,t);h=ot(h,R),b[w]={css:O,vars:S}}),m){const{css:w,vars:E,varsWithDefaults:S}=ps(m,t);h=ot(h,S),b[c]={css:w,vars:E}}function y(w,E){var O,R;let S=o;if(o==="class"&&(S=".%s"),o==="data"&&(S="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(S=`[${o}="%s"]`),w){if(S==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((R=(O=i[w])==null?void 0:O.palette)==null?void 0:R.mode)||w})`]:{":root":E}};if(S)return e.defaultColorScheme===w?`:root, ${S.replace("%s",String(w))}`:S.replace("%s",String(w))}return":root"}return{vars:h,generateThemeVars:()=>{let w={...u};return Object.entries(b).forEach(([,{vars:E}])=>{w=ot(w,E)}),w},generateStyleSheets:()=>{var N,j;const w=[],E=e.defaultColorScheme||"light";function S(x,P){Object.keys(P).length&&w.push(typeof x=="string"?{[x]:{...P}}:x)}S(n(void 0,{...d}),d);const{[E]:O,...R}=b;if(O){const{css:x}=O,P=(j=(N=i[E])==null?void 0:N.palette)==null?void 0:j.mode,B=!r&&P?{colorScheme:P,...x}:{...x};S(n(E,{...B}),B)}return Object.entries(R).forEach(([x,{css:P}])=>{var U,M;const B=(M=(U=i[x])==null?void 0:U.palette)==null?void 0:M.mode,$=!r&&B?{colorScheme:B,...P}:{...P};S(n(x,{...$}),$)}),w}}}function Xg(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const Jg=lo(),Zg=Nd("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${de(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Qg=e=>Ad({props:e,name:"MuiContainer",defaultTheme:Jg}),ey=(e,t)=>{const n=l=>Te(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,c={root:["root",a&&`maxWidth${de(String(a))}`,o&&"fixed",i&&"disableGutters"]};return Ne(c,n,r)};function ty(e={}){const{createStyledComponent:t=Zg,useThemeProps:n=Qg,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:c})=>c.fixed&&Object.keys(a.breakpoints.values).reduce((l,u)=>{const d=u,f=a.breakpoints.values[d];return f!==0&&(l[a.breakpoints.up(d)]={maxWidth:`${f}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:c})=>({...c.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[a.breakpoints.up(c.maxWidth)]:{maxWidth:`${a.breakpoints.values[c.maxWidth]}${a.breakpoints.unit}`}}})),i=v.forwardRef(function(c,l){const u=n(c),{className:d,component:f="div",disableGutters:h=!1,fixed:b=!1,maxWidth:m="lg",classes:p,...y}=u,T={...u,component:f,disableGutters:h,fixed:b,maxWidth:m},C=ey(T,r);return g.jsx(o,{as:f,ownerState:T,className:ae(C.root,d),ref:l,...y})});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disableGutters:s.bool,fixed:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),i}const ny=lo(),ry=Nd("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function oy(e){return Ad({props:e,name:"MuiStack",defaultTheme:ny})}function iy(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(v.cloneElement(t,{key:`separator-${i}`})),r),[])}const sy=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],ay=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...jt({theme:t},us({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Oi(t),o=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),i=us({values:e.direction,base:o}),a=us({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,u,d)=>{if(!i[l]){const h=u>0?i[d[u-1]]:"column";i[l]=h}}),n=ot(n,jt({theme:t},a,(l,u)=>e.useFlexGap?{gap:An(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${sy(u?i[u]:e.direction)}`]:An(r,l)}}))}return n=um(t.breakpoints,n),n};function Zd(e={}){const{createStyledComponent:t=ry,useThemeProps:n=oy,componentName:r="MuiStack"}=e,o=()=>Ne({root:["root"]},l=>Te(r,l),{}),i=t(ay),a=v.forwardRef(function(l,u){const d=n(l),f=xa(d),{component:h="div",direction:b="column",spacing:m=0,divider:p,children:y,className:T,useFlexGap:C=!1,...w}=f,E={direction:b,spacing:m,useFlexGap:C},S=o();return g.jsx(i,{as:h,ownerState:E,ref:u,className:ae(S.root,T),...w,children:p?iy(y,p):y})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:s.node,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),a}const Qd=Zd();process.env.NODE_ENV!=="production"&&(Qd.propTypes={children:s.node,component:s.elementType,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),useFlexGap:s.bool});const qr={black:"#000",white:"#fff"},cy={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"},Wn={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Hn={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Cr={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},qn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Gn={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Yn={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function ef(){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:qr.white,default:qr.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 ly=ef();function tf(){return{text:{primary:qr.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:qr.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 ul=tf();function dl(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ta(e.main,o):t==="dark"&&(e.dark=wa(e.main,i)))}function uy(e="light"){return e==="dark"?{main:qn[200],light:qn[50],dark:qn[400]}:{main:qn[700],light:qn[400],dark:qn[800]}}function dy(e="light"){return e==="dark"?{main:Wn[200],light:Wn[50],dark:Wn[400]}:{main:Wn[500],light:Wn[300],dark:Wn[700]}}function fy(e="light"){return e==="dark"?{main:Hn[500],light:Hn[300],dark:Hn[700]}:{main:Hn[700],light:Hn[400],dark:Hn[800]}}function py(e="light"){return e==="dark"?{main:Gn[400],light:Gn[300],dark:Gn[700]}:{main:Gn[700],light:Gn[500],dark:Gn[900]}}function hy(e="light"){return e==="dark"?{main:Yn[400],light:Yn[300],dark:Yn[700]}:{main:Yn[800],light:Yn[500],dark:Yn[900]}}function my(e="light"){return e==="dark"?{main:Cr[400],light:Cr[300],dark:Cr[700]}:{main:"#ed6c02",light:Cr[500],dark:Cr[900]}}function Na(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||uy(t),a=e.secondary||dy(t),c=e.error||fy(t),l=e.info||py(t),u=e.success||hy(t),d=e.warning||my(t);function f(p){const y=Qc(p,ul.text.primary)>=n?ul.text.primary:ly.text.primary;if(process.env.NODE_ENV!=="production"){const T=Qc(p,y);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${y} on ${p}`,"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(`
|
|
114
|
-
`))}return y}const
|
|
115
|
-
The color object needs to have a \`main\` property or a \`${
|
|
112
|
+
} catch(e){}})();`}},"mui-color-scheme-init")}function dl(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function tf(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function Gg(e){return tf(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function gs(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function Yg(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=Ia,colorSchemeStorageKey:a=_a,storageWindow:c=typeof window>"u"?void 0:window,noSsr:l=!1}=e,u=o.join(","),d=o.length>1,[f,m]=v.useState(()=>{const E=gs(i,t),S=gs(`${a}-light`,n),O=gs(`${a}-dark`,r);return{mode:E,systemMode:dl(E),lightColorScheme:S,darkColorScheme:O}}),[b,g]=v.useState(l||!d);v.useEffect(()=>{g(!0)},[]);const p=Gg(f),y=v.useCallback(E=>{m(S=>{if(E===S.mode)return S;const O=E??t;try{localStorage.setItem(i,O)}catch{}return{...S,mode:O,systemMode:dl(O)}})},[i,t]),C=v.useCallback(E=>{E?typeof E=="string"?E&&!u.includes(E)?console.error(`\`${E}\` does not exist in \`theme.colorSchemes\`.`):m(S=>{const O={...S};return tf(S,R=>{try{localStorage.setItem(`${a}-${R}`,E)}catch{}R==="light"&&(O.lightColorScheme=E),R==="dark"&&(O.darkColorScheme=E)}),O}):m(S=>{const O={...S},R=E.light===null?n:E.light,P=E.dark===null?r:E.dark;if(R)if(!u.includes(R))console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`);else{O.lightColorScheme=R;try{localStorage.setItem(`${a}-light`,R)}catch{}}if(P)if(!u.includes(P))console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`);else{O.darkColorScheme=P;try{localStorage.setItem(`${a}-dark`,P)}catch{}}return O}):m(S=>{try{localStorage.setItem(`${a}-light`,n),localStorage.setItem(`${a}-dark`,r)}catch{}return{...S,lightColorScheme:n,darkColorScheme:r}})},[u,a,n,r]),T=v.useCallback(E=>{f.mode==="system"&&m(S=>{const O=E!=null&&E.matches?"dark":"light";return S.systemMode===O?S:{...S,systemMode:O}})},[f.mode]),w=v.useRef(T);return w.current=T,v.useEffect(()=>{if(typeof window.matchMedia!="function"||!d)return;const E=(...O)=>w.current(...O),S=window.matchMedia("(prefers-color-scheme: dark)");return S.addListener(E),E(S),()=>{S.removeListener(E)}},[d]),v.useEffect(()=>{if(c&&d){const E=S=>{const O=S.newValue;typeof S.key=="string"&&S.key.startsWith(a)&&(!O||u.match(O))&&(S.key.endsWith("light")&&C({light:O}),S.key.endsWith("dark")&&C({dark:O})),S.key===i&&(!O||["light","dark","system"].includes(O))&&y(O||t)};return c.addEventListener("storage",E),()=>{c.removeEventListener("storage",E)}}},[C,y,i,a,u,t,c,d]),{...f,mode:b?f.mode:void 0,systemMode:b?f.systemMode:void 0,colorScheme:b?p:void 0,setMode:y,setColorScheme:C}}const Kg="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Xg(e){const{themeId:t,theme:n={},modeStorageKey:r=Ia,colorSchemeStorageKey:o=_a,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:c}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=v.createContext(void 0);process.env.NODE_ENV!=="production"&&(u.displayName="ColorSchemeContext");const d=()=>v.useContext(u)||l,f={},m={};function b(C){var Dt,Lt,Bt,Ft;const{children:T,theme:w,modeStorageKey:E=r,colorSchemeStorageKey:S=o,disableTransitionOnChange:O=i,storageWindow:R=typeof window>"u"?void 0:window,documentNode:P=typeof document>"u"?void 0:document,colorSchemeNode:N=typeof document>"u"?void 0:document.documentElement,disableNestedContext:x=!1,disableStyleSheetGeneration:k=!1,defaultMode:F="system",noSsr:$}=C,z=v.useRef(!1),L=Na(),B=v.useContext(u),q=!!B&&!x,G=v.useMemo(()=>w||(typeof n=="function"?n():n),[w]),Z=G[t],A=Z||G,{colorSchemes:W=f,components:te=m,cssVarPrefix:ne}=A,Y=Object.keys(W).filter(Ne=>!!W[Ne]).join(","),J=v.useMemo(()=>Y.split(","),[Y]),U=typeof a=="string"?a:a.light,Q=typeof a=="string"?a:a.dark,ee=W[U]&&W[Q]?F:((Lt=(Dt=W[A.defaultColorScheme])==null?void 0:Dt.palette)==null?void 0:Lt.mode)||((Bt=A.palette)==null?void 0:Bt.mode),{mode:oe,setMode:K,systemMode:ie,lightColorScheme:V,darkColorScheme:he,colorScheme:X,setColorScheme:ve}=Yg({supportedColorSchemes:J,defaultLightColorScheme:U,defaultDarkColorScheme:Q,modeStorageKey:E,colorSchemeStorageKey:S,defaultMode:ee,storageWindow:R,noSsr:$});let De=oe,ge=X;q&&(De=B.mode,ge=B.colorScheme);const Le=v.useMemo(()=>{var yt;const Ne=ge||A.defaultColorScheme,Ge=((yt=A.generateThemeVars)==null?void 0:yt.call(A))||A.vars,ze={...A,components:te,colorSchemes:W,cssVarPrefix:ne,vars:Ge};if(typeof ze.generateSpacing=="function"&&(ze.spacing=ze.generateSpacing()),Ne){const $e=W[Ne];$e&&typeof $e=="object"&&Object.keys($e).forEach(tt=>{$e[tt]&&typeof $e[tt]=="object"?ze[tt]={...ze[tt],...$e[tt]}:ze[tt]=$e[tt]})}return c?c(ze):ze},[A,ge,te,W,ne]),Be=A.colorSchemeSelector;v.useEffect(()=>{if(ge&&N&&Be&&Be!=="media"){const Ne=Be;let Ge=Be;if(Ne==="class"&&(Ge=".%s"),Ne==="data"&&(Ge="[data-%s]"),Ne!=null&&Ne.startsWith("data-")&&!Ne.includes("%s")&&(Ge=`[${Ne}="%s"]`),Ge.startsWith("."))N.classList.remove(...J.map(ze=>Ge.substring(1).replace("%s",ze))),N.classList.add(Ge.substring(1).replace("%s",ge));else{const ze=Ge.replace("%s",ge).match(/\[([^\]]+)\]/);if(ze){const[yt,$e]=ze[1].split("=");$e||J.forEach(tt=>{N.removeAttribute(yt.replace(ge,tt))}),N.setAttribute(yt,$e?$e.replace(/"|'/g,""):"")}else N.setAttribute(Ge,ge)}}},[ge,Be,N,J]),v.useEffect(()=>{let Ne;if(O&&z.current&&P){const Ge=P.createElement("style");Ge.appendChild(P.createTextNode(Kg)),P.head.appendChild(Ge),window.getComputedStyle(P.body),Ne=setTimeout(()=>{P.head.removeChild(Ge)},1)}return()=>{clearTimeout(Ne)}},[ge,O,P]),v.useEffect(()=>(z.current=!0,()=>{z.current=!1}),[]);const Je=v.useMemo(()=>({allColorSchemes:J,colorScheme:ge,darkColorScheme:he,lightColorScheme:V,mode:De,setColorScheme:ve,setMode:process.env.NODE_ENV==="production"?K:Ne=>{Le.colorSchemeSelector==="media"&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
|
|
113
|
+
`)),K(Ne)},systemMode:ie}),[J,ge,he,V,De,ve,K,ie,Le.colorSchemeSelector]);let Me=!0;(k||A.cssVariables===!1||q&&(L==null?void 0:L.cssVarPrefix)===ne)&&(Me=!1);const se=h.jsxs(v.Fragment,{children:[h.jsx(qr,{themeId:Z?t:void 0,theme:Le,children:T}),Me&&h.jsx(Sa,{styles:((Ft=Le.generateStyleSheets)==null?void 0:Ft.call(Le))||[]})]});return q?se:h.jsx(u.Provider,{value:Je,children:se})}process.env.NODE_ENV!=="production"&&(b.propTypes={children:s.node,colorSchemeNode:s.any,colorSchemeStorageKey:s.string,defaultMode:s.string,disableNestedContext:s.bool,disableStyleSheetGeneration:s.bool,disableTransitionOnChange:s.bool,documentNode:s.any,modeStorageKey:s.string,noSsr:s.bool,storageWindow:s.any,theme:s.object});const g=typeof a=="string"?a:a.light,p=typeof a=="string"?a:a.dark;return{CssVarsProvider:b,useColorScheme:d,getInitColorSchemeScript:C=>ef({colorSchemeStorageKey:o,defaultLightColorScheme:g,defaultDarkColorScheme:p,modeStorageKey:r,...C})}}function Jg(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const fl=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},Zg=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([c,l])=>{(!n||!n([...i,c]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,c],Array.isArray(l)?[...a,c]:a):t([...i,c],l,a))})}r(e)},Qg=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ys(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return Zg(e,(c,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(c,l))){const d=`--${n?`${n}-`:""}${c.join("-")}`,f=Qg(c,l);Object.assign(o,{[d]:f}),fl(i,c,`var(${d})`,u),fl(a,c,`var(${d}, ${f})`,u)}},c=>c[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function ey(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:c="light",...l}=e,{vars:u,css:d,varsWithDefaults:f}=ys(l,t);let m=f;const b={},{[c]:g,...p}=i;if(Object.entries(p||{}).forEach(([w,E])=>{const{vars:S,css:O,varsWithDefaults:R}=ys(E,t);m=ot(m,R),b[w]={css:O,vars:S}}),g){const{css:w,vars:E,varsWithDefaults:S}=ys(g,t);m=ot(m,S),b[c]={css:w,vars:E}}function y(w,E){var O,R;let S=o;if(o==="class"&&(S=".%s"),o==="data"&&(S="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(S=`[${o}="%s"]`),w){if(S==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((R=(O=i[w])==null?void 0:O.palette)==null?void 0:R.mode)||w})`]:{":root":E}};if(S)return e.defaultColorScheme===w?`:root, ${S.replace("%s",String(w))}`:S.replace("%s",String(w))}return":root"}return{vars:m,generateThemeVars:()=>{let w={...u};return Object.entries(b).forEach(([,{vars:E}])=>{w=ot(w,E)}),w},generateStyleSheets:()=>{var P,N;const w=[],E=e.defaultColorScheme||"light";function S(x,k){Object.keys(k).length&&w.push(typeof x=="string"?{[x]:{...k}}:x)}S(n(void 0,{...d}),d);const{[E]:O,...R}=b;if(O){const{css:x}=O,k=(N=(P=i[E])==null?void 0:P.palette)==null?void 0:N.mode,F=!r&&k?{colorScheme:k,...x}:{...x};S(n(E,{...F}),F)}return Object.entries(R).forEach(([x,{css:k}])=>{var z,L;const F=(L=(z=i[x])==null?void 0:z.palette)==null?void 0:L.mode,$=!r&&F?{colorScheme:F,...k}:{...k};S(n(x,{...$}),$)}),w}}}function ty(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const ny=uo(),ry=_d("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${de(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),oy=e=>$d({props:e,name:"MuiContainer",defaultTheme:ny}),iy=(e,t)=>{const n=l=>Ce(t,l),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,c={root:["root",a&&`maxWidth${de(String(a))}`,o&&"fixed",i&&"disableGutters"]};return Pe(c,n,r)};function sy(e={}){const{createStyledComponent:t=ry,useThemeProps:n=oy,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:c})=>c.fixed&&Object.keys(a.breakpoints.values).reduce((l,u)=>{const d=u,f=a.breakpoints.values[d];return f!==0&&(l[a.breakpoints.up(d)]={maxWidth:`${f}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:c})=>({...c.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[a.breakpoints.up(c.maxWidth)]:{maxWidth:`${a.breakpoints.values[c.maxWidth]}${a.breakpoints.unit}`}}})),i=v.forwardRef(function(c,l){const u=n(c),{className:d,component:f="div",disableGutters:m=!1,fixed:b=!1,maxWidth:g="lg",classes:p,...y}=u,C={...u,component:f,disableGutters:m,fixed:b,maxWidth:g},T=iy(C,r);return h.jsx(o,{as:f,ownerState:C,className:ae(T.root,d),ref:l,...y})});return process.env.NODE_ENV!=="production"&&(i.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disableGutters:s.bool,fixed:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),i}const ay=uo(),cy=_d("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ly(e){return $d({props:e,name:"MuiStack",defaultTheme:ay})}function uy(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(v.cloneElement(t,{key:`separator-${i}`})),r),[])}const dy=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],fy=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...It({theme:t},hs({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=ki(t),o=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),i=hs({values:e.direction,base:o}),a=hs({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((l,u,d)=>{if(!i[l]){const m=u>0?i[d[u-1]]:"column";i[l]=m}}),n=ot(n,It({theme:t},a,(l,u)=>e.useFlexGap?{gap:Mn(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${dy(u?i[u]:e.direction)}`]:Mn(r,l)}}))}return n=mm(t.breakpoints,n),n};function nf(e={}){const{createStyledComponent:t=cy,useThemeProps:n=ly,componentName:r="MuiStack"}=e,o=()=>Pe({root:["root"]},l=>Ce(r,l),{}),i=t(fy),a=v.forwardRef(function(l,u){const d=n(l),f=Ta(d),{component:m="div",direction:b="column",spacing:g=0,divider:p,children:y,className:C,useFlexGap:T=!1,...w}=f,E={direction:b,spacing:g,useFlexGap:T},S=o();return h.jsx(i,{as:m,ownerState:E,ref:u,className:ae(S.root,C),...w,children:p?uy(y,p):y})});return process.env.NODE_ENV!=="production"&&(a.propTypes={children:s.node,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),a}const rf=nf();process.env.NODE_ENV!=="production"&&(rf.propTypes={children:s.node,component:s.elementType,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),useFlexGap:s.bool});const Gr={black:"#000",white:"#fff"},py={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"},Hn={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},qn={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Or={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Gn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Yn={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Kn={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function of(){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:Gr.white,default:Gr.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 hy=of();function sf(){return{text:{primary:Gr.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:Gr.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 pl=sf();function hl(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ka(e.main,o):t==="dark"&&(e.dark=ja(e.main,i)))}function my(e="light"){return e==="dark"?{main:Gn[200],light:Gn[50],dark:Gn[400]}:{main:Gn[700],light:Gn[400],dark:Gn[800]}}function gy(e="light"){return e==="dark"?{main:Hn[200],light:Hn[50],dark:Hn[400]}:{main:Hn[500],light:Hn[300],dark:Hn[700]}}function yy(e="light"){return e==="dark"?{main:qn[500],light:qn[300],dark:qn[700]}:{main:qn[700],light:qn[400],dark:qn[800]}}function vy(e="light"){return e==="dark"?{main:Yn[400],light:Yn[300],dark:Yn[700]}:{main:Yn[700],light:Yn[500],dark:Yn[900]}}function by(e="light"){return e==="dark"?{main:Kn[400],light:Kn[300],dark:Kn[700]}:{main:Kn[800],light:Kn[500],dark:Kn[900]}}function xy(e="light"){return e==="dark"?{main:Or[400],light:Or[300],dark:Or[700]}:{main:"#ed6c02",light:Or[500],dark:Or[900]}}function Ma(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||my(t),a=e.secondary||gy(t),c=e.error||yy(t),l=e.info||vy(t),u=e.success||by(t),d=e.warning||xy(t);function f(p){const y=nl(p,pl.text.primary)>=n?pl.text.primary:hy.text.primary;if(process.env.NODE_ENV!=="production"){const C=nl(p,y);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${y} on ${p}`,"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(`
|
|
114
|
+
`))}return y}const m=({color:p,name:y,mainShade:C=500,lightShade:T=300,darkShade:w=700})=>{if(p={...p},!p.main&&p[C]&&(p.main=p[C]),!p.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
115
|
+
The color object needs to have a \`main\` property or a \`${C}\` property.`:ln(11,y?` (${y})`:"",C));if(typeof p.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
116
116
|
\`color.main\` should be a string, but \`${JSON.stringify(p.main)}\` was provided instead.
|
|
117
117
|
|
|
118
118
|
Did you intend to use one of the following approaches?
|
|
@@ -125,17 +125,17 @@ const theme1 = createTheme({ palette: {
|
|
|
125
125
|
|
|
126
126
|
const theme2 = createTheme({ palette: {
|
|
127
127
|
primary: { main: green[500] },
|
|
128
|
-
} });`:ln(12,y?` (${y})`:"",JSON.stringify(p.main)));return
|
|
129
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof a=="string"?a:
|
|
128
|
+
} });`:ln(12,y?` (${y})`:"",JSON.stringify(p.main)));return hl(p,"light",T,r),hl(p,"dark",w,r),p.contrastText||(p.contrastText=f(p.main)),p};let b;return t==="light"?b=of():t==="dark"&&(b=sf()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ot({common:{...Gr},mode:t,primary:m({color:i,name:"primary"}),secondary:m({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:d,name:"warning"}),info:m({color:l,name:"info"}),success:m({color:u,name:"success"}),grey:py,contrastThreshold:n,getContrastText:f,augmentColor:m,tonalOffset:r,...b},o)}function Ey(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;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 Sy(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function wy(e){return Math.round(e*1e5)/1e5}const ml={textTransform:"uppercase"},gl='"Roboto", "Helvetica", "Arial", sans-serif';function af(e,t){const{fontFamily:n=gl,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:u,pxToRem:d,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=r/14,b=d||(y=>`${y/l*m}rem`),g=(y,C,T,w,E)=>({fontFamily:n,fontWeight:y,fontSize:b(C),lineHeight:T,...n===gl?{letterSpacing:`${wy(w/C)}em`}:{},...E,...u}),p={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,ml),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,ml),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ot({htmlFontSize:l,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:c,...p},f,{clone:!1})}const Cy=.2,Ty=.14,Oy=.12;function Fe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Cy})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ty})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Oy})`].join(",")}const Ry=["none",Fe(0,2,1,-1,0,1,1,0,0,1,3,0),Fe(0,3,1,-2,0,2,2,0,0,1,5,0),Fe(0,3,3,-2,0,3,4,0,0,1,8,0),Fe(0,2,4,-1,0,4,5,0,0,1,10,0),Fe(0,3,5,-1,0,5,8,0,0,1,14,0),Fe(0,3,5,-1,0,6,10,0,0,1,18,0),Fe(0,4,5,-2,0,7,10,1,0,2,16,1),Fe(0,5,5,-3,0,8,10,1,0,3,14,2),Fe(0,5,6,-3,0,9,12,1,0,3,16,2),Fe(0,6,6,-3,0,10,14,1,0,4,18,3),Fe(0,6,7,-4,0,11,15,1,0,4,20,3),Fe(0,7,8,-4,0,12,17,2,0,5,22,4),Fe(0,7,8,-4,0,13,19,2,0,5,24,4),Fe(0,7,9,-4,0,14,21,2,0,5,26,4),Fe(0,8,9,-5,0,15,22,2,0,6,28,5),Fe(0,8,10,-5,0,16,24,2,0,6,30,5),Fe(0,8,11,-5,0,17,26,2,0,6,32,5),Fe(0,9,11,-5,0,18,28,2,0,7,34,6),Fe(0,9,12,-6,0,19,29,2,0,7,36,6),Fe(0,10,13,-6,0,20,31,3,0,8,38,7),Fe(0,10,13,-6,0,21,33,3,0,8,40,7),Fe(0,10,14,-6,0,22,35,3,0,8,42,7),Fe(0,11,14,-7,0,23,36,3,0,9,44,8),Fe(0,11,15,-7,0,24,38,3,0,9,46,8)],jy={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)"},cf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yl(e){return`${Math.round(e)}ms`}function ky(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Py(e){const t={...jy,...e.easing},n={...cf,...e.duration};return{getAutoHeightDuration:ky,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:l=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=m=>typeof m=="string",f=m=>!Number.isNaN(parseFloat(m));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(c)||console.error('MUI: Argument "easing" must be a string.'),!f(l)&&!d(l)&&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(`
|
|
129
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof a=="string"?a:yl(a)} ${c} ${typeof l=="string"?l:yl(l)}`).join(",")},...e,easing:t,duration:n}}const Ny={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ay(e){return zt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function lf(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,c]=o[i];!Ay(c)||a.startsWith("unstable_")?delete r[a]:zt(c)&&(r[a]={...c},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
130
130
|
|
|
131
131
|
const theme = ${JSON.stringify(t,null,2)};
|
|
132
132
|
|
|
133
133
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
134
134
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
135
135
|
|
|
136
|
-
export default theme;`}function
|
|
137
|
-
`))}p[
|
|
138
|
-
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 _y(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Bt=e=>{try{return e()}catch{}},$y=(e="mui")=>qg(e);function hs(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=Py({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=zs({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...sf(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||af(o)},a}function My(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=Ny,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!=="light"?"light":d),h=$y(i),{[f]:b,light:m,dark:p,...y}=n,T={...y};let C=b;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(C=!0),!C)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:ln(21,f));const w=hs(T,C,u,f);m&&!T.light&&hs(T,m,void 0,"light"),p&&!T.dark&&hs(T,p,void 0,"dark");let E={defaultColorScheme:f,...w,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:h,colorSchemes:T,font:{...gy(w.typography),...w.font},spacing:_y(u.spacing)};Object.keys(E.colorSchemes).forEach(j=>{const x=E.colorSchemes[j].palette,P=B=>{const $=B.split("-"),U=$[1],M=$[2];return h(B,x[U][M])};if(x.mode==="light"&&(_(x.common,"background","#fff"),_(x.common,"onBackground","#000")),x.mode==="dark"&&(_(x.common,"background","#000"),_(x.common,"onBackground","#fff")),Iy(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){_(x.Alert,"errorColor",Ie(x.error.light,.6)),_(x.Alert,"infoColor",Ie(x.info.light,.6)),_(x.Alert,"successColor",Ie(x.success.light,.6)),_(x.Alert,"warningColor",Ie(x.warning.light,.6)),_(x.Alert,"errorFilledBg",P("palette-error-main")),_(x.Alert,"infoFilledBg",P("palette-info-main")),_(x.Alert,"successFilledBg",P("palette-success-main")),_(x.Alert,"warningFilledBg",P("palette-warning-main")),_(x.Alert,"errorFilledColor",Bt(()=>x.getContrastText(x.error.main))),_(x.Alert,"infoFilledColor",Bt(()=>x.getContrastText(x.info.main))),_(x.Alert,"successFilledColor",Bt(()=>x.getContrastText(x.success.main))),_(x.Alert,"warningFilledColor",Bt(()=>x.getContrastText(x.warning.main))),_(x.Alert,"errorStandardBg",_e(x.error.light,.9)),_(x.Alert,"infoStandardBg",_e(x.info.light,.9)),_(x.Alert,"successStandardBg",_e(x.success.light,.9)),_(x.Alert,"warningStandardBg",_e(x.warning.light,.9)),_(x.Alert,"errorIconColor",P("palette-error-main")),_(x.Alert,"infoIconColor",P("palette-info-main")),_(x.Alert,"successIconColor",P("palette-success-main")),_(x.Alert,"warningIconColor",P("palette-warning-main")),_(x.AppBar,"defaultBg",P("palette-grey-100")),_(x.Avatar,"defaultBg",P("palette-grey-400")),_(x.Button,"inheritContainedBg",P("palette-grey-300")),_(x.Button,"inheritContainedHoverBg",P("palette-grey-A100")),_(x.Chip,"defaultBorder",P("palette-grey-400")),_(x.Chip,"defaultAvatarColor",P("palette-grey-700")),_(x.Chip,"defaultIconColor",P("palette-grey-700")),_(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_(x.LinearProgress,"primaryBg",_e(x.primary.main,.62)),_(x.LinearProgress,"secondaryBg",_e(x.secondary.main,.62)),_(x.LinearProgress,"errorBg",_e(x.error.main,.62)),_(x.LinearProgress,"infoBg",_e(x.info.main,.62)),_(x.LinearProgress,"successBg",_e(x.success.main,.62)),_(x.LinearProgress,"warningBg",_e(x.warning.main,.62)),_(x.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.11)`),_(x.Slider,"primaryTrack",_e(x.primary.main,.62)),_(x.Slider,"secondaryTrack",_e(x.secondary.main,.62)),_(x.Slider,"errorTrack",_e(x.error.main,.62)),_(x.Slider,"infoTrack",_e(x.info.main,.62)),_(x.Slider,"successTrack",_e(x.success.main,.62)),_(x.Slider,"warningTrack",_e(x.warning.main,.62));const B=jo(x.background.default,.8);_(x.SnackbarContent,"bg",B),_(x.SnackbarContent,"color",Bt(()=>x.getContrastText(B))),_(x.SpeedDialAction,"fabHoverBg",jo(x.background.paper,.15)),_(x.StepConnector,"border",P("palette-grey-400")),_(x.StepContent,"border",P("palette-grey-400")),_(x.Switch,"defaultColor",P("palette-common-white")),_(x.Switch,"defaultDisabledColor",P("palette-grey-100")),_(x.Switch,"primaryDisabledColor",_e(x.primary.main,.62)),_(x.Switch,"secondaryDisabledColor",_e(x.secondary.main,.62)),_(x.Switch,"errorDisabledColor",_e(x.error.main,.62)),_(x.Switch,"infoDisabledColor",_e(x.info.main,.62)),_(x.Switch,"successDisabledColor",_e(x.success.main,.62)),_(x.Switch,"warningDisabledColor",_e(x.warning.main,.62)),_(x.TableCell,"border",_e(No(x.divider,1),.88)),_(x.Tooltip,"bg",No(x.grey[700],.92))}if(x.mode==="dark"){_(x.Alert,"errorColor",_e(x.error.light,.6)),_(x.Alert,"infoColor",_e(x.info.light,.6)),_(x.Alert,"successColor",_e(x.success.light,.6)),_(x.Alert,"warningColor",_e(x.warning.light,.6)),_(x.Alert,"errorFilledBg",P("palette-error-dark")),_(x.Alert,"infoFilledBg",P("palette-info-dark")),_(x.Alert,"successFilledBg",P("palette-success-dark")),_(x.Alert,"warningFilledBg",P("palette-warning-dark")),_(x.Alert,"errorFilledColor",Bt(()=>x.getContrastText(x.error.dark))),_(x.Alert,"infoFilledColor",Bt(()=>x.getContrastText(x.info.dark))),_(x.Alert,"successFilledColor",Bt(()=>x.getContrastText(x.success.dark))),_(x.Alert,"warningFilledColor",Bt(()=>x.getContrastText(x.warning.dark))),_(x.Alert,"errorStandardBg",Ie(x.error.light,.9)),_(x.Alert,"infoStandardBg",Ie(x.info.light,.9)),_(x.Alert,"successStandardBg",Ie(x.success.light,.9)),_(x.Alert,"warningStandardBg",Ie(x.warning.light,.9)),_(x.Alert,"errorIconColor",P("palette-error-main")),_(x.Alert,"infoIconColor",P("palette-info-main")),_(x.Alert,"successIconColor",P("palette-success-main")),_(x.Alert,"warningIconColor",P("palette-warning-main")),_(x.AppBar,"defaultBg",P("palette-grey-900")),_(x.AppBar,"darkBg",P("palette-background-paper")),_(x.AppBar,"darkColor",P("palette-text-primary")),_(x.Avatar,"defaultBg",P("palette-grey-600")),_(x.Button,"inheritContainedBg",P("palette-grey-800")),_(x.Button,"inheritContainedHoverBg",P("palette-grey-700")),_(x.Chip,"defaultBorder",P("palette-grey-700")),_(x.Chip,"defaultAvatarColor",P("palette-grey-300")),_(x.Chip,"defaultIconColor",P("palette-grey-300")),_(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_(x.LinearProgress,"primaryBg",Ie(x.primary.main,.5)),_(x.LinearProgress,"secondaryBg",Ie(x.secondary.main,.5)),_(x.LinearProgress,"errorBg",Ie(x.error.main,.5)),_(x.LinearProgress,"infoBg",Ie(x.info.main,.5)),_(x.LinearProgress,"successBg",Ie(x.success.main,.5)),_(x.LinearProgress,"warningBg",Ie(x.warning.main,.5)),_(x.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.13)`),_(x.Slider,"primaryTrack",Ie(x.primary.main,.5)),_(x.Slider,"secondaryTrack",Ie(x.secondary.main,.5)),_(x.Slider,"errorTrack",Ie(x.error.main,.5)),_(x.Slider,"infoTrack",Ie(x.info.main,.5)),_(x.Slider,"successTrack",Ie(x.success.main,.5)),_(x.Slider,"warningTrack",Ie(x.warning.main,.5));const B=jo(x.background.default,.98);_(x.SnackbarContent,"bg",B),_(x.SnackbarContent,"color",Bt(()=>x.getContrastText(B))),_(x.SpeedDialAction,"fabHoverBg",jo(x.background.paper,.15)),_(x.StepConnector,"border",P("palette-grey-600")),_(x.StepContent,"border",P("palette-grey-600")),_(x.Switch,"defaultColor",P("palette-grey-300")),_(x.Switch,"defaultDisabledColor",P("palette-grey-600")),_(x.Switch,"primaryDisabledColor",Ie(x.primary.main,.55)),_(x.Switch,"secondaryDisabledColor",Ie(x.secondary.main,.55)),_(x.Switch,"errorDisabledColor",Ie(x.error.main,.55)),_(x.Switch,"infoDisabledColor",Ie(x.info.main,.55)),_(x.Switch,"successDisabledColor",Ie(x.success.main,.55)),_(x.Switch,"warningDisabledColor",Ie(x.warning.main,.55)),_(x.TableCell,"border",Ie(No(x.divider,1),.68)),_(x.Tooltip,"bg",No(x.grey[700],.92))}Gt(x.background,"default"),Gt(x.background,"paper"),Gt(x.common,"background"),Gt(x.common,"onBackground"),Gt(x,"divider"),Object.keys(x).forEach(B=>{const $=x[B];B!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&_(x[B],"mainChannel",Ar(Ir($.main))),$.light&&_(x[B],"lightChannel",Ar(Ir($.light))),$.dark&&_(x[B],"darkChannel",Ar(Ir($.dark))),$.contrastText&&_(x[B],"contrastTextChannel",Ar(Ir($.contrastText))),B==="text"&&(Gt(x[B],"primary"),Gt(x[B],"secondary")),B==="action"&&($.active&&Gt(x[B],"active"),$.selected&&Gt(x[B],"selected")))})}),E=t.reduce((j,x)=>ot(j,x),E);const S={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Ay(E)},{vars:O,generateThemeVars:R,generateStyleSheets:N}=Kg(E,S);return E.vars=O,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([j,x])=>{E[j]=x}),E.generateThemeVars=R,E.generateStyleSheets=N,E.generateSpacing=function(){return xd(u.spacing,Oi(this))},E.getColorSchemeSelector=Xg(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=a,E.unstable_sxConfig={...co,...u==null?void 0:u.unstable_sxConfig},E.unstable_sx=function(x){return un({sx:x,theme:this})},E.toRuntimeSource=of,E}function ml(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Na({...n===!0?{}:n.palette,mode:t})})}function Di(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,c=i||"light",l=o==null?void 0:o[c],u={...o,...n?{[c]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return zs(e,...t);let d=n;"palette"in e||u[c]&&(u[c]!==!0?d=u[c].palette:c==="dark"&&(d={mode:"dark"}));const f=zs({...e,palette:d},...t);return f.defaultColorScheme=c,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},ml(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},ml(f,"light",u.light)),f}return!n&&!("light"in u)&&c==="light"&&(u.light=!0),My({...a,colorSchemes:u,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const ja=Di();function gn(){const e=Ai(ja);return process.env.NODE_ENV!=="production"&&v.useDebugValue(e),e[Nt]||e}function Dy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Li=e=>Dy(e)&&e!=="classes",ce=kd({themeId:Nt,defaultTheme:ja,rootShouldForwardProp:Li});function gl({theme:e,...t}){const n=Nt in e?e[Nt]:void 0;return g.jsx(Hr,{...t,themeId:n?Nt:void 0,theme:n||e})}const _r={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},Ly=function(t){return g.jsx(Xd,{..._r,...t})},{CssVarsProvider:By,useColorScheme:Fy,getInitColorSchemeScript:H1}=Hg({themeId:Nt,theme:()=>Di({cssVariables:!0}),colorSchemeStorageKey:_r.colorSchemeStorageKey,modeStorageKey:_r.modeStorageKey,defaultColorScheme:{light:_r.defaultLightColorScheme,dark:_r.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:nf(e.palette,e.typography)};return t.unstable_sx=function(r){return un({sx:r,theme:this})},t}}),Vy=By;function cf({theme:e,...t}){return typeof e=="function"?g.jsx(gl,{theme:e,...t}):"colorSchemes"in(Nt in e?e[Nt]:e)?g.jsx(Vy,{theme:e,...t}):g.jsx(gl,{theme:e,...t})}const lf=v.createContext(null);function uf(e){return g.jsx(Ed,{...e,defaultTheme:ja,themeId:Nt})}process.env.NODE_ENV!=="production"&&(uf.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function df(e){return function(n){return g.jsx(uf,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Uy(){return xa}const Ve=Fg;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Ce(e){return Bg(e)}function zy(e){return Te("MuiSvgIcon",e)}Oe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Wy=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${de(t)}`,`fontSize${de(n)}`]};return Ne(o,zy,r)},Hy=ce("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)}`]]}})(Ve(({theme:e})=>{var t,n,r,o,i,a,c,l,u,d,f,h,b,m;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:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:l.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var y,T;return{props:{color:p},style:{color:(T=(y=(e.vars??e).palette)==null?void 0:y[p])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(h=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(m=(b=(e.vars??e).palette)==null?void 0:b.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ai=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:c="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:h="0 0 24 24",...b}=r,m=v.isValidElement(o)&&o.type==="svg",p={...r,color:a,component:c,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:m},y={};d||(y.viewBox=h);const T=Wy(p);return g.jsxs(Hy,{as:c,className:ae(T.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...y,...b,...m&&o.props,ownerState:p,children:[m?o.props.children:o,f?g.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(ai.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string});ai.muiName="SvgIcon";function Ge(e,t){function n(r,o){return g.jsx(ai,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ai.muiName,v.memo(v.forwardRef(n))}const ff=Ge(g.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");var Se={};/**
|
|
136
|
+
export default theme;`}function Ys(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:c={},shape:l,...u}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":ln(20));const d=Ma(i),f=uo(e);let m=ot(f,{mixins:Sy(f.breakpoints,r),palette:d,shadows:Ry.slice(),typography:af(d,c),transitions:Py(a),zIndex:{...Ny}});if(m=ot(m,u),m=t.reduce((b,g)=>ot(b,g),m),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(p,y)=>{let C;for(C in p){const T=p[C];if(b.includes(C)&&Object.keys(T).length>0){if(process.env.NODE_ENV!=="production"){const w=Ce("",C);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:T}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
137
|
+
`))}p[C]={}}}};Object.keys(m.components).forEach(p=>{const y=m.components[p].styleOverrides;y&&p.startsWith("Mui")&&g(y,p)})}return m.unstable_sxConfig={...lo,...u==null?void 0:u.unstable_sxConfig},m.unstable_sx=function(g){return un({sx:g,theme:this})},m.toRuntimeSource=lf,m}function Ks(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 Iy=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ks(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function uf(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function df(e){return e==="dark"?Iy:[]}function _y(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=Ma(t);return{palette:i,opacity:{...uf(i.mode),...n},overlays:r||df(i.mode),...o}}function My(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const $y=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Dy=e=>(t,n)=>{const r=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 a={};return $y(e.cssVarPrefix).forEach(c=>{a[c]=n[c],delete n[c]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function Ly(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function _(e,t,n){!e[t]&&n&&(e[t]=n)}function _r(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ld(e)}function Yt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ir(_r(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().
|
|
138
|
+
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 By(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Vt=e=>{try{return e()}catch{}},Fy=(e="mui")=>Jg(e);function vs(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=_y({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=Ys({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...uf(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||df(o)},a}function Vy(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=My,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!=="light"?"light":d),m=Fy(i),{[f]:b,light:g,dark:p,...y}=n,C={...y};let T=b;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(T=!0),!T)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:ln(21,f));const w=vs(C,T,u,f);g&&!C.light&&vs(C,g,void 0,"light"),p&&!C.dark&&vs(C,p,void 0,"dark");let E={defaultColorScheme:f,...w,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:m,colorSchemes:C,font:{...Ey(w.typography),...w.font},spacing:By(u.spacing)};Object.keys(E.colorSchemes).forEach(N=>{const x=E.colorSchemes[N].palette,k=F=>{const $=F.split("-"),z=$[1],L=$[2];return m(F,x[z][L])};if(x.mode==="light"&&(_(x.common,"background","#fff"),_(x.common,"onBackground","#000")),x.mode==="dark"&&(_(x.common,"background","#000"),_(x.common,"onBackground","#fff")),Ly(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){_(x.Alert,"errorColor",Ie(x.error.light,.6)),_(x.Alert,"infoColor",Ie(x.info.light,.6)),_(x.Alert,"successColor",Ie(x.success.light,.6)),_(x.Alert,"warningColor",Ie(x.warning.light,.6)),_(x.Alert,"errorFilledBg",k("palette-error-main")),_(x.Alert,"infoFilledBg",k("palette-info-main")),_(x.Alert,"successFilledBg",k("palette-success-main")),_(x.Alert,"warningFilledBg",k("palette-warning-main")),_(x.Alert,"errorFilledColor",Vt(()=>x.getContrastText(x.error.main))),_(x.Alert,"infoFilledColor",Vt(()=>x.getContrastText(x.info.main))),_(x.Alert,"successFilledColor",Vt(()=>x.getContrastText(x.success.main))),_(x.Alert,"warningFilledColor",Vt(()=>x.getContrastText(x.warning.main))),_(x.Alert,"errorStandardBg",_e(x.error.light,.9)),_(x.Alert,"infoStandardBg",_e(x.info.light,.9)),_(x.Alert,"successStandardBg",_e(x.success.light,.9)),_(x.Alert,"warningStandardBg",_e(x.warning.light,.9)),_(x.Alert,"errorIconColor",k("palette-error-main")),_(x.Alert,"infoIconColor",k("palette-info-main")),_(x.Alert,"successIconColor",k("palette-success-main")),_(x.Alert,"warningIconColor",k("palette-warning-main")),_(x.AppBar,"defaultBg",k("palette-grey-100")),_(x.Avatar,"defaultBg",k("palette-grey-400")),_(x.Button,"inheritContainedBg",k("palette-grey-300")),_(x.Button,"inheritContainedHoverBg",k("palette-grey-A100")),_(x.Chip,"defaultBorder",k("palette-grey-400")),_(x.Chip,"defaultAvatarColor",k("palette-grey-700")),_(x.Chip,"defaultIconColor",k("palette-grey-700")),_(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),_(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),_(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),_(x.LinearProgress,"primaryBg",_e(x.primary.main,.62)),_(x.LinearProgress,"secondaryBg",_e(x.secondary.main,.62)),_(x.LinearProgress,"errorBg",_e(x.error.main,.62)),_(x.LinearProgress,"infoBg",_e(x.info.main,.62)),_(x.LinearProgress,"successBg",_e(x.success.main,.62)),_(x.LinearProgress,"warningBg",_e(x.warning.main,.62)),_(x.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.11)`),_(x.Slider,"primaryTrack",_e(x.primary.main,.62)),_(x.Slider,"secondaryTrack",_e(x.secondary.main,.62)),_(x.Slider,"errorTrack",_e(x.error.main,.62)),_(x.Slider,"infoTrack",_e(x.info.main,.62)),_(x.Slider,"successTrack",_e(x.success.main,.62)),_(x.Slider,"warningTrack",_e(x.warning.main,.62));const F=Io(x.background.default,.8);_(x.SnackbarContent,"bg",F),_(x.SnackbarContent,"color",Vt(()=>x.getContrastText(F))),_(x.SpeedDialAction,"fabHoverBg",Io(x.background.paper,.15)),_(x.StepConnector,"border",k("palette-grey-400")),_(x.StepContent,"border",k("palette-grey-400")),_(x.Switch,"defaultColor",k("palette-common-white")),_(x.Switch,"defaultDisabledColor",k("palette-grey-100")),_(x.Switch,"primaryDisabledColor",_e(x.primary.main,.62)),_(x.Switch,"secondaryDisabledColor",_e(x.secondary.main,.62)),_(x.Switch,"errorDisabledColor",_e(x.error.main,.62)),_(x.Switch,"infoDisabledColor",_e(x.info.main,.62)),_(x.Switch,"successDisabledColor",_e(x.success.main,.62)),_(x.Switch,"warningDisabledColor",_e(x.warning.main,.62)),_(x.TableCell,"border",_e(Ao(x.divider,1),.88)),_(x.Tooltip,"bg",Ao(x.grey[700],.92))}if(x.mode==="dark"){_(x.Alert,"errorColor",_e(x.error.light,.6)),_(x.Alert,"infoColor",_e(x.info.light,.6)),_(x.Alert,"successColor",_e(x.success.light,.6)),_(x.Alert,"warningColor",_e(x.warning.light,.6)),_(x.Alert,"errorFilledBg",k("palette-error-dark")),_(x.Alert,"infoFilledBg",k("palette-info-dark")),_(x.Alert,"successFilledBg",k("palette-success-dark")),_(x.Alert,"warningFilledBg",k("palette-warning-dark")),_(x.Alert,"errorFilledColor",Vt(()=>x.getContrastText(x.error.dark))),_(x.Alert,"infoFilledColor",Vt(()=>x.getContrastText(x.info.dark))),_(x.Alert,"successFilledColor",Vt(()=>x.getContrastText(x.success.dark))),_(x.Alert,"warningFilledColor",Vt(()=>x.getContrastText(x.warning.dark))),_(x.Alert,"errorStandardBg",Ie(x.error.light,.9)),_(x.Alert,"infoStandardBg",Ie(x.info.light,.9)),_(x.Alert,"successStandardBg",Ie(x.success.light,.9)),_(x.Alert,"warningStandardBg",Ie(x.warning.light,.9)),_(x.Alert,"errorIconColor",k("palette-error-main")),_(x.Alert,"infoIconColor",k("palette-info-main")),_(x.Alert,"successIconColor",k("palette-success-main")),_(x.Alert,"warningIconColor",k("palette-warning-main")),_(x.AppBar,"defaultBg",k("palette-grey-900")),_(x.AppBar,"darkBg",k("palette-background-paper")),_(x.AppBar,"darkColor",k("palette-text-primary")),_(x.Avatar,"defaultBg",k("palette-grey-600")),_(x.Button,"inheritContainedBg",k("palette-grey-800")),_(x.Button,"inheritContainedHoverBg",k("palette-grey-700")),_(x.Chip,"defaultBorder",k("palette-grey-700")),_(x.Chip,"defaultAvatarColor",k("palette-grey-300")),_(x.Chip,"defaultIconColor",k("palette-grey-300")),_(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),_(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),_(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),_(x.LinearProgress,"primaryBg",Ie(x.primary.main,.5)),_(x.LinearProgress,"secondaryBg",Ie(x.secondary.main,.5)),_(x.LinearProgress,"errorBg",Ie(x.error.main,.5)),_(x.LinearProgress,"infoBg",Ie(x.info.main,.5)),_(x.LinearProgress,"successBg",Ie(x.success.main,.5)),_(x.LinearProgress,"warningBg",Ie(x.warning.main,.5)),_(x.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.13)`),_(x.Slider,"primaryTrack",Ie(x.primary.main,.5)),_(x.Slider,"secondaryTrack",Ie(x.secondary.main,.5)),_(x.Slider,"errorTrack",Ie(x.error.main,.5)),_(x.Slider,"infoTrack",Ie(x.info.main,.5)),_(x.Slider,"successTrack",Ie(x.success.main,.5)),_(x.Slider,"warningTrack",Ie(x.warning.main,.5));const F=Io(x.background.default,.98);_(x.SnackbarContent,"bg",F),_(x.SnackbarContent,"color",Vt(()=>x.getContrastText(F))),_(x.SpeedDialAction,"fabHoverBg",Io(x.background.paper,.15)),_(x.StepConnector,"border",k("palette-grey-600")),_(x.StepContent,"border",k("palette-grey-600")),_(x.Switch,"defaultColor",k("palette-grey-300")),_(x.Switch,"defaultDisabledColor",k("palette-grey-600")),_(x.Switch,"primaryDisabledColor",Ie(x.primary.main,.55)),_(x.Switch,"secondaryDisabledColor",Ie(x.secondary.main,.55)),_(x.Switch,"errorDisabledColor",Ie(x.error.main,.55)),_(x.Switch,"infoDisabledColor",Ie(x.info.main,.55)),_(x.Switch,"successDisabledColor",Ie(x.success.main,.55)),_(x.Switch,"warningDisabledColor",Ie(x.warning.main,.55)),_(x.TableCell,"border",Ie(Ao(x.divider,1),.68)),_(x.Tooltip,"bg",Ao(x.grey[700],.92))}Yt(x.background,"default"),Yt(x.background,"paper"),Yt(x.common,"background"),Yt(x.common,"onBackground"),Yt(x,"divider"),Object.keys(x).forEach(F=>{const $=x[F];F!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&_(x[F],"mainChannel",Ir(_r($.main))),$.light&&_(x[F],"lightChannel",Ir(_r($.light))),$.dark&&_(x[F],"darkChannel",Ir(_r($.dark))),$.contrastText&&_(x[F],"contrastTextChannel",Ir(_r($.contrastText))),F==="text"&&(Yt(x[F],"primary"),Yt(x[F],"secondary")),F==="action"&&($.active&&Yt(x[F],"active"),$.selected&&Yt(x[F],"selected")))})}),E=t.reduce((N,x)=>ot(N,x),E);const S={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Dy(E)},{vars:O,generateThemeVars:R,generateStyleSheets:P}=ey(E,S);return E.vars=O,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([N,x])=>{E[N]=x}),E.generateThemeVars=R,E.generateStyleSheets=P,E.generateSpacing=function(){return Cd(u.spacing,ki(this))},E.getColorSchemeSelector=ty(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=a,E.unstable_sxConfig={...lo,...u==null?void 0:u.unstable_sxConfig},E.unstable_sx=function(x){return un({sx:x,theme:this})},E.toRuntimeSource=lf,E}function vl(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ma({...n===!0?{}:n.palette,mode:t})})}function Fi(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,c=i||"light",l=o==null?void 0:o[c],u={...o,...n?{[c]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Ys(e,...t);let d=n;"palette"in e||u[c]&&(u[c]!==!0?d=u[c].palette:c==="dark"&&(d={mode:"dark"}));const f=Ys({...e,palette:d},...t);return f.defaultColorScheme=c,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},vl(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},vl(f,"light",u.light)),f}return!n&&!("light"in u)&&c==="light"&&(u.light=!0),Vy({...a,colorSchemes:u,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const $a=Fi();function gn(){const e=Mi($a);return process.env.NODE_ENV!=="production"&&v.useDebugValue(e),e[At]||e}function Uy(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Vi=e=>Uy(e)&&e!=="classes",ce=Ad({themeId:At,defaultTheme:$a,rootShouldForwardProp:Vi});function bl({theme:e,...t}){const n=At in e?e[At]:void 0;return h.jsx(qr,{...t,themeId:n?At:void 0,theme:n||e})}const Mr={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},zy=function(t){return h.jsx(ef,{...Mr,...t})},{CssVarsProvider:Wy,useColorScheme:Hy,getInitColorSchemeScript:cO}=Xg({themeId:At,theme:()=>Fi({cssVariables:!0}),colorSchemeStorageKey:Mr.colorSchemeStorageKey,modeStorageKey:Mr.modeStorageKey,defaultColorScheme:{light:Mr.defaultLightColorScheme,dark:Mr.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:af(e.palette,e.typography)};return t.unstable_sx=function(r){return un({sx:r,theme:this})},t}}),qy=Wy;function ff({theme:e,...t}){return typeof e=="function"?h.jsx(bl,{theme:e,...t}):"colorSchemes"in(At in e?e[At]:e)?h.jsx(qy,{theme:e,...t}):h.jsx(bl,{theme:e,...t})}const pf=v.createContext(null);function hf(e){return h.jsx(Td,{...e,defaultTheme:$a,themeId:At})}process.env.NODE_ENV!=="production"&&(hf.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function mf(e){return function(n){return h.jsx(hf,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Gy(){return Ta}const Ve=Hg;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Te(e){return Wg(e)}function Yy(e){return Ce("MuiSvgIcon",e)}Oe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ky=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${de(t)}`,`fontSize${de(n)}`]};return Pe(o,Yy,r)},Xy=ce("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)}`]]}})(Ve(({theme:e})=>{var t,n,r,o,i,a,c,l,u,d,f,m,b,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:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:l.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var y,C;return{props:{color:p},style:{color:(C=(y=(e.vars??e).palette)==null?void 0:y[p])==null?void 0:C.main}}}),{props:{color:"action"},style:{color:(m=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(g=(b=(e.vars??e).palette)==null?void 0:b.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ui=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:c="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:m="0 0 24 24",...b}=r,g=v.isValidElement(o)&&o.type==="svg",p={...r,color:a,component:c,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:g},y={};d||(y.viewBox=m);const C=Ky(p);return h.jsxs(Xy,{as:c,className:ae(C.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...y,...b,...g&&o.props,ownerState:p,children:[g?o.props.children:o,f?h.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(ui.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string});ui.muiName="SvgIcon";function Ue(e,t){function n(r,o){return h.jsx(ui,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ui.muiName,v.memo(v.forwardRef(n))}const gf=Ue(h.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");var Se={};/**
|
|
139
139
|
* @license React
|
|
140
140
|
* react-is.production.min.js
|
|
141
141
|
*
|
|
@@ -143,7 +143,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the MIT license found in the
|
|
145
145
|
* LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/var
|
|
146
|
+
*/var xl;function Jy(){if(xl)return Se;xl=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function p(y){if(typeof y=="object"&&y!==null){var C=y.$$typeof;switch(C){case e:switch(y=y.type,y){case n:case o:case r:case u:case d:return y;default:switch(y=y&&y.$$typeof,y){case c:case a:case l:case m:case f:case i:return y;default:return C}}case t:return C}}}return Se.ContextConsumer=a,Se.ContextProvider=i,Se.Element=e,Se.ForwardRef=l,Se.Fragment=n,Se.Lazy=m,Se.Memo=f,Se.Portal=t,Se.Profiler=o,Se.StrictMode=r,Se.Suspense=u,Se.SuspenseList=d,Se.isAsyncMode=function(){return!1},Se.isConcurrentMode=function(){return!1},Se.isContextConsumer=function(y){return p(y)===a},Se.isContextProvider=function(y){return p(y)===i},Se.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Se.isForwardRef=function(y){return p(y)===l},Se.isFragment=function(y){return p(y)===n},Se.isLazy=function(y){return p(y)===m},Se.isMemo=function(y){return p(y)===f},Se.isPortal=function(y){return p(y)===t},Se.isProfiler=function(y){return p(y)===o},Se.isStrictMode=function(y){return p(y)===r},Se.isSuspense=function(y){return p(y)===u},Se.isSuspenseList=function(y){return p(y)===d},Se.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===o||y===r||y===u||y===d||y===b||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===f||y.$$typeof===i||y.$$typeof===a||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},Se.typeOf=p,Se}var we={};/**
|
|
147
147
|
* @license React
|
|
148
148
|
* react-is.development.js
|
|
149
149
|
*
|
|
@@ -151,8 +151,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
151
151
|
*
|
|
152
152
|
* This source code is licensed under the MIT license found in the
|
|
153
153
|
* LICENSE file in the root directory of this source tree.
|
|
154
|
-
*/var
|
|
155
|
-
`)),g.jsx(uv,{as:a,ownerState:f,className:ae(h.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[c],...o.vars&&{"--Paper-overlay":(b=o.vars.overlays)==null?void 0:b[c]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ue("#fff",Ws(c))}, ${Ue("#fff",Ws(c))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Bi.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:en(ir,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});class ci{constructor(){zn(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ci}static use(){const t=Ld(ci.create).current,[n,r]=v.useState(!1);return t.shouldMount=n,t.setShouldMount=r,v.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=fv(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function dv(){return ci.use()}function fv(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Hs(){return Hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hs.apply(null,arguments)}function mf(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function qs(e,t){return qs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qs(e,t)}function gf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qs(e,t)}const wl={disabled:!1};var pv=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]);const li=D.createContext(null);var hv=function(t){return t.scrollTop},$r="unmounted",En="exited",Sn="entering",er="entered",Gs="exiting",Rt=function(e){gf(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,c=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?c?(l=En,i.appearStatus=Sn):l=er:r.unmountOnExit||r.mountOnEnter?l=$r:l=En,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===$r?{status:En}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Sn&&a!==er&&(i=Sn):(a===Sn||a===er)&&(i=Gs)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Sn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:nr.findDOMNode(this);a&&hv(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===En&&this.setState({status:$r})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,l=this.props.nodeRef?[c]:[nr.findDOMNode(this),c],u=l[0],d=l[1],f=this.getTimeouts(),h=c?f.appear:f.enter;if(!o&&!a||wl.disabled){this.safeSetState({status:er},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Sn},function(){i.props.onEntering(u,d),i.onTransitionEnd(h,function(){i.safeSetState({status:er},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:nr.findDOMNode(this);if(!i||wl.disabled){this.safeSetState({status:En},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Gs},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:En},function(){o.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:nr.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===$r)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=mf(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return D.createElement(li.Provider,{value:null},typeof a=="function"?a(o,c):D.cloneElement(D.Children.only(a),c))},t}(D.Component);Rt.contextType=li;Rt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,r,o,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=pv;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Kn(){}Rt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Kn,onEntering:Kn,onEntered:Kn,onExit:Kn,onExiting:Kn,onExited:Kn};Rt.UNMOUNTED=$r;Rt.EXITED=En;Rt.ENTERING=Sn;Rt.ENTERED=er;Rt.EXITING=Gs;function mv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aa(e,t){var n=function(i){return t&&D.isValidElement(i)?t(i):i},r=Object.create(null);return e&&D.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function gv(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var u=r[l][a];c[r[l][a]]=n(u)}c[l]=n(l)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function On(e,t,n){return n[t]!=null?n[t]:e.props[t]}function yv(e,t){return Aa(e.children,function(n){return D.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:On(n,"appear",e),enter:On(n,"enter",e),exit:On(n,"exit",e)})})}function vv(e,t,n){var r=Aa(e.children),o=gv(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(D.isValidElement(a)){var c=i in t,l=i in r,u=t[i],d=D.isValidElement(u)&&!u.props.in;l&&(!c||d)?o[i]=D.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:On(a,"exit",e),enter:On(a,"enter",e)}):!l&&c&&!d?o[i]=D.cloneElement(a,{in:!1}):l&&c&&D.isValidElement(u)&&(o[i]=D.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:On(a,"exit",e),enter:On(a,"enter",e)}))}}),o}var bv=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},xv={component:"div",childFactory:function(t){return t}},Ia=function(e){gf(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(mv(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,l=i.firstRender;return{children:l?yv(o,c):vv(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=Aa(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var l=Hs({},c.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=mf(o,["component","childFactory"]),l=this.state.contextValue,u=bv(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?D.createElement(li.Provider,{value:l},u):D.createElement(li.Provider,{value:l},D.createElement(i,c,u))},t}(D.Component);Ia.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Ia.defaultProps=xv;function yf(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:l,timeout:u}=e,[d,f]=v.useState(!1),h=ae(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},m=ae(n.child,d&&n.childLeaving,r&&n.childPulsate);return!c&&!d&&f(!0),v.useEffect(()=>{if(!c&&l!=null){const p=setTimeout(l,u);return()=>{clearTimeout(p)}}},[l,c,u]),g.jsx("span",{className:h,style:b,children:g.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(yf.propTypes={classes:s.object.isRequired,className:s.string,in:s.bool,onExited:s.func,pulsate:s.bool,rippleSize:s.number,rippleX:s.number,rippleY:s.number,timeout:s.number.isRequired});const bt=Oe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ys=550,Ev=80,Sv=mr.keyframes`
|
|
154
|
+
*/var El;function Zy(){return El||(El=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=!1,p=!1,y=!1,C=!1,T=!1,w;w=Symbol.for("react.module.reference");function E(X){return!!(typeof X=="string"||typeof X=="function"||X===n||X===o||T||X===r||X===u||X===d||C||X===b||g||p||y||typeof X=="object"&&X!==null&&(X.$$typeof===m||X.$$typeof===f||X.$$typeof===i||X.$$typeof===a||X.$$typeof===l||X.$$typeof===w||X.getModuleId!==void 0))}function S(X){if(typeof X=="object"&&X!==null){var ve=X.$$typeof;switch(ve){case e:var De=X.type;switch(De){case n:case o:case r:case u:case d:return De;default:var ge=De&&De.$$typeof;switch(ge){case c:case a:case l:case m:case f:case i:return ge;default:return ve}}case t:return ve}}}var O=a,R=i,P=e,N=l,x=n,k=m,F=f,$=t,z=o,L=r,B=u,q=d,G=!1,Z=!1;function A(X){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(X){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(X){return S(X)===a}function ne(X){return S(X)===i}function Y(X){return typeof X=="object"&&X!==null&&X.$$typeof===e}function J(X){return S(X)===l}function U(X){return S(X)===n}function Q(X){return S(X)===m}function ee(X){return S(X)===f}function oe(X){return S(X)===t}function K(X){return S(X)===o}function ie(X){return S(X)===r}function V(X){return S(X)===u}function he(X){return S(X)===d}we.ContextConsumer=O,we.ContextProvider=R,we.Element=P,we.ForwardRef=N,we.Fragment=x,we.Lazy=k,we.Memo=F,we.Portal=$,we.Profiler=z,we.StrictMode=L,we.Suspense=B,we.SuspenseList=q,we.isAsyncMode=A,we.isConcurrentMode=W,we.isContextConsumer=te,we.isContextProvider=ne,we.isElement=Y,we.isForwardRef=J,we.isFragment=U,we.isLazy=Q,we.isMemo=ee,we.isPortal=oe,we.isProfiler=K,we.isStrictMode=ie,we.isSuspense=V,we.isSuspenseList=he,we.isValidElementType=E,we.typeOf=S}()),we}process.env.NODE_ENV==="production"?Jy():Zy();function Qy(e,t){const n=v.useContext(e);if(n==null)throw new Error(`context "${t}" was used without a Provider`);return n}function ev(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function tv(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ev(n,t)})},e)}function nv(e){return typeof e=="string"}function rv(e,t,n){return e===void 0||nv(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ov(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Sl(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function iv(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const b=ae(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},p={...n,...o,...r};return b.length>0&&(p.className=b),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const a=ov({...o,...r}),c=Sl(r),l=Sl(o),u=t(a),d=ae(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f={...u==null?void 0:u.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},m={...u,...n,...l,...c};return d.length>0&&(m.className=d),Object.keys(f).length>0&&(m.style=f),{props:m,internalRef:u.ref}}function sv(e,t,n){return typeof e=="function"?e(t,n):e}function yf(e){var f;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:sv(n,r),{props:c,internalRef:l}=iv({...i,externalSlotProps:a}),u=tv(l,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return rv(t,{...c,ref:u},r)}var wl;const Cl="Close",vf=v.createContext(null);function av({notificationKey:e,open:t,message:n,options:r,badge:o}){var p,y;const{close:i}=Qy(pf),{severity:a,actionText:c,onAction:l,autoHideDuration:u}=r,d=v.useCallback((C,T)=>{T!=="clickaway"&&i(e)},[e,i]),f=h.jsxs(v.Fragment,{children:[l?h.jsx(D.Button,{color:"inherit",size:"small",onClick:l,children:c??"Action"}):null,h.jsx(D.IconButton,{size:"small","aria-label":Cl,title:Cl,color:"inherit",onClick:d,children:wl||(wl=h.jsx(gf,{fontSize:"small"}))})]}),m=v.useContext(vf),b=((p=m==null?void 0:m.slots)==null?void 0:p.snackbar)??D.Snackbar,g=yf({elementType:b,ownerState:m,externalSlotProps:(y=m==null?void 0:m.slotProps)==null?void 0:y.snackbar,additionalProps:{open:t,autoHideDuration:u,onClose:d,action:f}});return h.jsx(b,{...g,children:h.jsx(D.Badge,{badgeContent:o,color:"primary",sx:{width:"100%"},children:a?h.jsx(D.Alert,{severity:a,sx:{width:"100%"},action:f,children:n}):h.jsx(D.SnackbarContent,{message:n,action:f})})},e)}function cv({state:e}){const t=e.queue[0]??null;return t?h.jsx(av,{...t,badge:e.queue.length>1?String(e.queue.length):null}):null}let Tl=0;const lv=()=>{const e=Tl;return Tl+=1,e};function uv(e){const{children:t}=e,[n,r]=v.useState({queue:[]}),o=v.useCallback((c,l={})=>{const u=l.key??`::toolpad-internal::notification::${lv()}`;return r(d=>d.queue.some(f=>f.notificationKey===u)?d:{...d,queue:[...d.queue,{message:c,options:l,notificationKey:u,open:!0}]}),u},[]),i=v.useCallback(c=>{r(l=>({...l,queue:l.queue.filter(u=>u.notificationKey!==c)}))},[]),a=v.useMemo(()=>({show:o,close:i}),[o,i]);return h.jsx(vf.Provider,{value:e,children:h.jsxs(pf.Provider,{value:a,children:[t,h.jsx(cv,{state:n})]})})}function ht(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=i,m=u[e]||r,b=Yd(d[e],o),{props:{component:g,...p},internalRef:y}=Gd({className:n,...c,externalForwardedProps:e==="root"?f:void 0,externalSlotProps:b}),C=et(y,b==null?void 0:b.ref,t.ref),T=e==="root"?g||l:g,w=Hd(m,{...e==="root"&&!l&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...p,...T&&{as:T},ref:C},o);return[m,w]}function dv(e){return typeof e.main=="string"}function fv(e,t=[]){if(!dv(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function lr(e=[]){return([,t])=>t&&fv(t,e)}function pv(e){return Ce("MuiPaper",e)}Oe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const hv=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Pe(i,pv,o)},mv=ce("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ve(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ui=v.forwardRef(function(t,n){var b;const r=Te({props:t,name:"MuiPaper"}),o=gn(),{className:i,component:a="div",elevation:c=1,square:l=!1,variant:u="elevation",...d}=r,f={...r,component:a,elevation:c,square:l,variant:u},m=hv(f);return process.env.NODE_ENV!=="production"&&o.shadows[c]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${c}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${c}]\` is defined.`].join(`
|
|
155
|
+
`)),h.jsx(mv,{as:a,ownerState:f,className:ae(m.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[c],...o.vars&&{"--Paper-overlay":(b=o.vars.overlays)==null?void 0:b[c]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ke("#fff",Ks(c))}, ${Ke("#fff",Ks(c))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Ui.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:tn(sr,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});class di{constructor(){Wn(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new di}static use(){const t=Ud(di.create).current,[n,r]=v.useState(!1);return t.shouldMount=n,t.setShouldMount=r,v.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=yv(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function gv(){return di.use()}function yv(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xs.apply(null,arguments)}function bf(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Js(e,t){return Js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Js(e,t)}function xf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Js(e,t)}const Ol={disabled:!1};var vv=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]);const fi=M.createContext(null);var bv=function(t){return t.scrollTop},$r="unmounted",wn="exited",Cn="entering",tr="entered",Zs="exiting",Rt=function(e){xf(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,c=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?c?(l=wn,i.appearStatus=Cn):l=tr:r.unmountOnExit||r.mountOnEnter?l=$r:l=wn,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===$r?{status:wn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Cn&&a!==tr&&(i=Cn):(a===Cn||a===tr)&&(i=Zs)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,c;return i=a=c=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,c=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:c}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Cn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:rr.findDOMNode(this);a&&bv(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wn&&this.setState({status:$r})},n.performEnter=function(o){var i=this,a=this.props.enter,c=this.context?this.context.isMounting:o,l=this.props.nodeRef?[c]:[rr.findDOMNode(this),c],u=l[0],d=l[1],f=this.getTimeouts(),m=c?f.appear:f.enter;if(!o&&!a||Ol.disabled){this.safeSetState({status:tr},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Cn},function(){i.props.onEntering(u,d),i.onTransitionEnd(m,function(){i.safeSetState({status:tr},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),c=this.props.nodeRef?void 0:rr.findDOMNode(this);if(!i||Ol.disabled){this.safeSetState({status:wn},function(){o.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Zs},function(){o.props.onExiting(c),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:wn},function(){o.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(c){a&&(a=!1,i.nextCallback=null,o(c))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:rr.findDOMNode(this),c=o==null&&!this.props.addEndListener;if(!a||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===$r)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var c=bf(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(fi.Provider,{value:null},typeof a=="function"?a(o,c):M.cloneElement(M.Children.only(a),c))},t}(M.Component);Rt.contextType=fi;Rt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,r,o,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=vv;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Xn(){}Rt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xn,onEntering:Xn,onEntered:Xn,onExit:Xn,onExiting:Xn,onExited:Xn};Rt.UNMOUNTED=$r;Rt.EXITED=wn;Rt.ENTERING=Cn;Rt.ENTERED=tr;Rt.EXITING=Zs;function xv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Da(e,t){var n=function(i){return t&&M.isValidElement(i)?t(i):i},r=Object.create(null);return e&&M.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Ev(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var u=r[l][a];c[r[l][a]]=n(u)}c[l]=n(l)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function kn(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Sv(e,t){return Da(e.children,function(n){return M.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:kn(n,"appear",e),enter:kn(n,"enter",e),exit:kn(n,"exit",e)})})}function wv(e,t,n){var r=Da(e.children),o=Ev(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(M.isValidElement(a)){var c=i in t,l=i in r,u=t[i],d=M.isValidElement(u)&&!u.props.in;l&&(!c||d)?o[i]=M.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:kn(a,"exit",e),enter:kn(a,"enter",e)}):!l&&c&&!d?o[i]=M.cloneElement(a,{in:!1}):l&&c&&M.isValidElement(u)&&(o[i]=M.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:kn(a,"exit",e),enter:kn(a,"enter",e)}))}}),o}var Cv=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Tv={component:"div",childFactory:function(t){return t}},La=function(e){xf(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(xv(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,l=i.firstRender;return{children:l?Sv(o,c):wv(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=Da(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var l=Xs({},c.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=bf(o,["component","childFactory"]),l=this.state.contextValue,u=Cv(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?M.createElement(fi.Provider,{value:l},u):M.createElement(fi.Provider,{value:l},M.createElement(i,c,u))},t}(M.Component);La.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};La.defaultProps=Tv;function Ef(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:l,timeout:u}=e,[d,f]=v.useState(!1),m=ae(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=ae(n.child,d&&n.childLeaving,r&&n.childPulsate);return!c&&!d&&f(!0),v.useEffect(()=>{if(!c&&l!=null){const p=setTimeout(l,u);return()=>{clearTimeout(p)}}},[l,c,u]),h.jsx("span",{className:m,style:b,children:h.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(Ef.propTypes={classes:s.object.isRequired,className:s.string,in:s.bool,onExited:s.func,pulsate:s.bool,rippleSize:s.number,rippleX:s.number,rippleY:s.number,timeout:s.number.isRequired});const bt=Oe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Qs=550,Ov=80,Rv=gr.keyframes`
|
|
156
156
|
0% {
|
|
157
157
|
transform: scale(0);
|
|
158
158
|
opacity: 0.1;
|
|
@@ -162,7 +162,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
162
162
|
transform: scale(1);
|
|
163
163
|
opacity: 0.3;
|
|
164
164
|
}
|
|
165
|
-
`,
|
|
165
|
+
`,jv=gr.keyframes`
|
|
166
166
|
0% {
|
|
167
167
|
opacity: 1;
|
|
168
168
|
}
|
|
@@ -170,7 +170,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
170
170
|
100% {
|
|
171
171
|
opacity: 0;
|
|
172
172
|
}
|
|
173
|
-
`,
|
|
173
|
+
`,kv=gr.keyframes`
|
|
174
174
|
0% {
|
|
175
175
|
transform: scale(1);
|
|
176
176
|
}
|
|
@@ -182,15 +182,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
182
182
|
100% {
|
|
183
183
|
transform: scale(1);
|
|
184
184
|
}
|
|
185
|
-
`,
|
|
185
|
+
`,Pv=ce("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Nv=ce(Ef,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
186
186
|
opacity: 0;
|
|
187
187
|
position: absolute;
|
|
188
188
|
|
|
189
189
|
&.${bt.rippleVisible} {
|
|
190
190
|
opacity: 0.3;
|
|
191
191
|
transform: scale(1);
|
|
192
|
-
animation-name: ${
|
|
193
|
-
animation-duration: ${
|
|
192
|
+
animation-name: ${Rv};
|
|
193
|
+
animation-duration: ${Qs}ms;
|
|
194
194
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
195
195
|
}
|
|
196
196
|
|
|
@@ -209,8 +209,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
209
209
|
|
|
210
210
|
& .${bt.childLeaving} {
|
|
211
211
|
opacity: 0;
|
|
212
|
-
animation-name: ${
|
|
213
|
-
animation-duration: ${
|
|
212
|
+
animation-name: ${jv};
|
|
213
|
+
animation-duration: ${Qs}ms;
|
|
214
214
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
215
215
|
}
|
|
216
216
|
|
|
@@ -219,29 +219,29 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
219
219
|
/* @noflip */
|
|
220
220
|
left: 0px;
|
|
221
221
|
top: 0;
|
|
222
|
-
animation-name: ${
|
|
222
|
+
animation-name: ${kv};
|
|
223
223
|
animation-duration: 2500ms;
|
|
224
224
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
225
225
|
animation-iteration-count: infinite;
|
|
226
226
|
animation-delay: 200ms;
|
|
227
227
|
}
|
|
228
|
-
`,
|
|
229
|
-
`)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function $v(e){return Te("MuiTypography",e)}const Tl=Oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Mv={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Dv=Uy(),Lv=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,c={root:["root",i,e.align!=="inherit"&&`align${de(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ne(c,$v,a)},Bv=ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${de(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ve(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(cr()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${de(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),Cl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Et=v.forwardRef(function(t,n){const{color:r,...o}=Ce({props:t,name:"MuiTypography"}),i=!Mv[r],a=Dv({...o,...i&&{color:r}}),{align:c="inherit",className:l,component:u,gutterBottom:d=!1,noWrap:f=!1,paragraph:h=!1,variant:b="body1",variantMapping:m=Cl,...p}=a,y={...a,align:c,color:r,className:l,component:u,gutterBottom:d,noWrap:f,paragraph:h,variant:b,variantMapping:m},T=u||(h?"p":m[b]||Cl[b])||"span",C=Lv(y);return g.jsx(Bv,{as:T,ref:n,className:ae(C.root,l),...p,ownerState:y,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...p.style}})});process.env.NODE_ENV!=="production"&&(Et.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});var ct="top",Tt="bottom",Ct="right",lt="left",_a="auto",po=[ct,Tt,Ct,lt],lr="start",Yr="end",Fv="clippingParents",bf="viewport",Or="popper",Vv="reference",Ol=po.reduce(function(e,t){return e.concat([t+"-"+lr,t+"-"+Yr])},[]),xf=[].concat(po,[_a]).reduce(function(e,t){return e.concat([t,t+"-"+lr,t+"-"+Yr])},[]),Uv="beforeRead",zv="read",Wv="afterRead",Hv="beforeMain",qv="main",Gv="afterMain",Yv="beforeWrite",Kv="write",Xv="afterWrite",Jv=[Uv,zv,Wv,Hv,qv,Gv,Yv,Kv,Xv];function Wt(e){return e?(e.nodeName||"").toLowerCase():null}function gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _n(e){var t=gt(e).Element;return e instanceof t||e instanceof Element}function wt(e){var t=gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $a(e){if(typeof ShadowRoot>"u")return!1;var t=gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Zv(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!wt(i)||!Wt(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var c=o[a];c===!1?i.removeAttribute(a):i.setAttribute(a,c===!0?"":c)}))})}function Qv(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(l,u){return l[u]="",l},{});!wt(o)||!Wt(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const eb={name:"applyStyles",enabled:!0,phase:"write",fn:Zv,effect:Qv,requires:["computeStyles"]};function Ut(e){return e.split("-")[0]}var kn=Math.max,ui=Math.min,ur=Math.round;function Ks(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ef(){return!/^((?!chrome|android).)*safari/i.test(Ks())}function dr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&wt(e)&&(o=e.offsetWidth>0&&ur(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ur(r.height)/e.offsetHeight||1);var a=_n(e)?gt(e):window,c=a.visualViewport,l=!Ef()&&n,u=(r.left+(l&&c?c.offsetLeft:0))/o,d=(r.top+(l&&c?c.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:d,right:u+f,bottom:d+h,left:u,x:u,y:d}}function Ma(e){var t=dr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Sf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$a(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qt(e){return gt(e).getComputedStyle(e)}function tb(e){return["table","td","th"].indexOf(Wt(e))>=0}function yn(e){return((_n(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fi(e){return Wt(e)==="html"?e:e.assignedSlot||e.parentNode||($a(e)?e.host:null)||yn(e)}function Rl(e){return!wt(e)||Qt(e).position==="fixed"?null:e.offsetParent}function nb(e){var t=/firefox/i.test(Ks()),n=/Trident/i.test(Ks());if(n&&wt(e)){var r=Qt(e);if(r.position==="fixed")return null}var o=Fi(e);for($a(o)&&(o=o.host);wt(o)&&["html","body"].indexOf(Wt(o))<0;){var i=Qt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function ho(e){for(var t=gt(e),n=Rl(e);n&&tb(n)&&Qt(n).position==="static";)n=Rl(n);return n&&(Wt(n)==="html"||Wt(n)==="body"&&Qt(n).position==="static")?t:n||nb(e)||t}function Da(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Br(e,t,n){return kn(e,ui(t,n))}function rb(e,t,n){var r=Br(e,t,n);return r>n?n:r}function wf(){return{top:0,right:0,bottom:0,left:0}}function Tf(e){return Object.assign({},wf(),e)}function Cf(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ob=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Tf(typeof t!="number"?t:Cf(t,po))};function ib(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Ut(n.placement),l=Da(c),u=[lt,Ct].indexOf(c)>=0,d=u?"height":"width";if(!(!i||!a)){var f=ob(o.padding,n),h=Ma(i),b=l==="y"?ct:lt,m=l==="y"?Tt:Ct,p=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],y=a[l]-n.rects.reference[l],T=ho(i),C=T?l==="y"?T.clientHeight||0:T.clientWidth||0:0,w=p/2-y/2,E=f[b],S=C-h[d]-f[m],O=C/2-h[d]/2+w,R=Br(E,O,S),N=l;n.modifiersData[r]=(t={},t[N]=R,t.centerOffset=R-O,t)}}function sb(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Sf(t.elements.popper,o)&&(t.elements.arrow=o))}const ab={name:"arrow",enabled:!0,phase:"main",fn:ib,effect:sb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fr(e){return e.split("-")[1]}var cb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lb(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ur(n*o)/o||0,y:ur(r*o)/o||0}}function kl(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,b=h===void 0?0:h,m=a.y,p=m===void 0?0:m,y=typeof d=="function"?d({x:b,y:p}):{x:b,y:p};b=y.x,p=y.y;var T=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),w=lt,E=ct,S=window;if(u){var O=ho(n),R="clientHeight",N="clientWidth";if(O===gt(n)&&(O=yn(n),Qt(O).position!=="static"&&c==="absolute"&&(R="scrollHeight",N="scrollWidth")),O=O,o===ct||(o===lt||o===Ct)&&i===Yr){E=Tt;var j=f&&O===S&&S.visualViewport?S.visualViewport.height:O[R];p-=j-r.height,p*=l?1:-1}if(o===lt||(o===ct||o===Tt)&&i===Yr){w=Ct;var x=f&&O===S&&S.visualViewport?S.visualViewport.width:O[N];b-=x-r.width,b*=l?1:-1}}var P=Object.assign({position:c},u&&cb),B=d===!0?lb({x:b,y:p},gt(n)):{x:b,y:p};if(b=B.x,p=B.y,l){var $;return Object.assign({},P,($={},$[E]=C?"0":"",$[w]=T?"0":"",$.transform=(S.devicePixelRatio||1)<=1?"translate("+b+"px, "+p+"px)":"translate3d("+b+"px, "+p+"px, 0)",$))}return Object.assign({},P,(t={},t[E]=C?p+"px":"",t[w]=T?b+"px":"",t.transform="",t))}function ub(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,c=n.roundOffsets,l=c===void 0?!0:c,u={placement:Ut(t.placement),variation:fr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,kl(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kl(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const db={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ub,data:{}};var Ao={passive:!0};function fb(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,l=gt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ao)}),c&&l.addEventListener("resize",n.update,Ao),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ao)}),c&&l.removeEventListener("resize",n.update,Ao)}}const pb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fb,data:{}};var hb={left:"right",right:"left",bottom:"top",top:"bottom"};function Go(e){return e.replace(/left|right|bottom|top/g,function(t){return hb[t]})}var mb={start:"end",end:"start"};function Pl(e){return e.replace(/start|end/g,function(t){return mb[t]})}function La(e){var t=gt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ba(e){return dr(yn(e)).left+La(e).scrollLeft}function gb(e,t){var n=gt(e),r=yn(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;var u=Ef();(u||!u&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c+Ba(e),y:l}}function yb(e){var t,n=yn(e),r=La(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=kn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=kn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+Ba(e),l=-r.scrollTop;return Qt(o||n).direction==="rtl"&&(c+=kn(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:l}}function Fa(e){var t=Qt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Of(e){return["html","body","#document"].indexOf(Wt(e))>=0?e.ownerDocument.body:wt(e)&&Fa(e)?e:Of(Fi(e))}function Fr(e,t){var n;t===void 0&&(t=[]);var r=Of(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=gt(r),a=o?[i].concat(i.visualViewport||[],Fa(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(Fr(Fi(a)))}function Xs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vb(e,t){var n=dr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Nl(e,t,n){return t===bf?Xs(gb(e,n)):_n(t)?vb(t,n):Xs(yb(yn(e)))}function bb(e){var t=Fr(Fi(e)),n=["absolute","fixed"].indexOf(Qt(e).position)>=0,r=n&&wt(e)?ho(e):e;return _n(r)?t.filter(function(o){return _n(o)&&Sf(o,r)&&Wt(o)!=="body"}):[]}function xb(e,t,n,r){var o=t==="clippingParents"?bb(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(l,u){var d=Nl(e,u,r);return l.top=kn(d.top,l.top),l.right=ui(d.right,l.right),l.bottom=ui(d.bottom,l.bottom),l.left=kn(d.left,l.left),l},Nl(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Rf(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ut(r):null,i=r?fr(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,l;switch(o){case ct:l={x:a,y:t.y-n.height};break;case Tt:l={x:a,y:t.y+t.height};break;case Ct:l={x:t.x+t.width,y:c};break;case lt:l={x:t.x-n.width,y:c};break;default:l={x:t.x,y:t.y}}var u=o?Da(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case lr:l[u]=l[u]-(t[d]/2-n[d]/2);break;case Yr:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function Kr(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,c=n.boundary,l=c===void 0?Fv:c,u=n.rootBoundary,d=u===void 0?bf:u,f=n.elementContext,h=f===void 0?Or:f,b=n.altBoundary,m=b===void 0?!1:b,p=n.padding,y=p===void 0?0:p,T=Tf(typeof y!="number"?y:Cf(y,po)),C=h===Or?Vv:Or,w=e.rects.popper,E=e.elements[m?C:h],S=xb(_n(E)?E:E.contextElement||yn(e.elements.popper),l,d,a),O=dr(e.elements.reference),R=Rf({reference:O,element:w,strategy:"absolute",placement:o}),N=Xs(Object.assign({},w,R)),j=h===Or?N:O,x={top:S.top-j.top+T.top,bottom:j.bottom-S.bottom+T.bottom,left:S.left-j.left+T.left,right:j.right-S.right+T.right},P=e.modifiersData.offset;if(h===Or&&P){var B=P[o];Object.keys(x).forEach(function($){var U=[Ct,Tt].indexOf($)>=0?1:-1,M=[ct,Tt].indexOf($)>=0?"y":"x";x[$]+=B[M]*U})}return x}function Eb(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?xf:l,d=fr(r),f=d?c?Ol:Ol.filter(function(m){return fr(m)===d}):po,h=f.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=f);var b=h.reduce(function(m,p){return m[p]=Kr(e,{placement:p,boundary:o,rootBoundary:i,padding:a})[Ut(p)],m},{});return Object.keys(b).sort(function(m,p){return b[m]-b[p]})}function Sb(e){if(Ut(e)===_a)return[];var t=Go(e);return[Pl(e),t,Pl(t)]}function wb(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,b=n.flipVariations,m=b===void 0?!0:b,p=n.allowedAutoPlacements,y=t.options.placement,T=Ut(y),C=T===y,w=l||(C||!m?[Go(y)]:Sb(y)),E=[y].concat(w).reduce(function(G,J){return G.concat(Ut(J)===_a?Eb(t,{placement:J,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:p}):J)},[]),S=t.rects.reference,O=t.rects.popper,R=new Map,N=!0,j=E[0],x=0;x<E.length;x++){var P=E[x],B=Ut(P),$=fr(P)===lr,U=[ct,Tt].indexOf(B)>=0,M=U?"width":"height",L=Kr(t,{placement:P,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),H=U?$?Ct:lt:$?Tt:ct;S[M]>O[M]&&(H=Go(H));var q=Go(H),Z=[];if(i&&Z.push(L[B]<=0),c&&Z.push(L[H]<=0,L[q]<=0),Z.every(function(G){return G})){j=P,N=!1;break}R.set(P,Z)}if(N)for(var A=m?3:1,z=function(J){var V=E.find(function(Q){var ee=R.get(Q);if(ee)return ee.slice(0,J).every(function(oe){return oe})});if(V)return j=V,"break"},te=A;te>0;te--){var ne=z(te);if(ne==="break")break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}}const Tb={name:"flip",enabled:!0,phase:"main",fn:wb,requiresIfExists:["offset"],data:{_skip:!1}};function jl(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Al(e){return[ct,Ct,Tt,lt].some(function(t){return e[t]>=0})}function Cb(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Kr(t,{elementContext:"reference"}),c=Kr(t,{altBoundary:!0}),l=jl(a,r),u=jl(c,o,i),d=Al(l),f=Al(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Ob={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cb};function Rb(e,t,n){var r=Ut(e),o=[lt,ct].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[lt,Ct].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function kb(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=xf.reduce(function(d,f){return d[f]=Rb(f,t.rects,i),d},{}),c=a[t.placement],l=c.x,u=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const Pb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kb};function Nb(e){var t=e.state,n=e.name;t.modifiersData[n]=Rf({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const jb={name:"popperOffsets",enabled:!0,phase:"read",fn:Nb,data:{}};function Ab(e){return e==="x"?"y":"x"}function Ib(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,b=h===void 0?!0:h,m=n.tetherOffset,p=m===void 0?0:m,y=Kr(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),T=Ut(t.placement),C=fr(t.placement),w=!C,E=Da(T),S=Ab(E),O=t.modifiersData.popperOffsets,R=t.rects.reference,N=t.rects.popper,j=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,x=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(O){if(i){var $,U=E==="y"?ct:lt,M=E==="y"?Tt:Ct,L=E==="y"?"height":"width",H=O[E],q=H+y[U],Z=H-y[M],A=b?-N[L]/2:0,z=C===lr?R[L]:N[L],te=C===lr?-N[L]:-R[L],ne=t.elements.arrow,G=b&&ne?Ma(ne):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:wf(),V=J[U],Q=J[M],ee=Br(0,R[L],G[L]),oe=w?R[L]/2-A-ee-V-x.mainAxis:z-ee-V-x.mainAxis,K=w?-R[L]/2+A+ee+Q+x.mainAxis:te+ee+Q+x.mainAxis,ie=t.elements.arrow&&ho(t.elements.arrow),F=ie?E==="y"?ie.clientTop||0:ie.clientLeft||0:0,he=($=P==null?void 0:P[E])!=null?$:0,X=H+oe-he-F,ve=H+K-he,De=Br(b?ui(q,X):q,H,b?kn(Z,ve):Z);O[E]=De,B[E]=De-H}if(c){var ge,Le=E==="x"?ct:lt,Be=E==="x"?Tt:Ct,Je=O[S],$e=S==="y"?"height":"width",se=Je+y[Le],$t=Je-y[Be],Mt=[ct,lt].indexOf(T)!==-1,Dt=(ge=P==null?void 0:P[S])!=null?ge:0,Lt=Mt?se:Je-R[$e]-N[$e]-Dt+x.altAxis,je=Mt?Je+R[$e]+N[$e]-Dt-x.altAxis:$t,Ye=b&&Mt?rb(Lt,Je,je):Br(b?Lt:se,Je,b?je:$t);O[S]=Ye,B[S]=Ye-Je}t.modifiersData[r]=B}}const _b={name:"preventOverflow",enabled:!0,phase:"main",fn:Ib,requiresIfExists:["offset"]};function $b(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Mb(e){return e===gt(e)||!wt(e)?La(e):$b(e)}function Db(e){var t=e.getBoundingClientRect(),n=ur(t.width)/e.offsetWidth||1,r=ur(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Lb(e,t,n){n===void 0&&(n=!1);var r=wt(t),o=wt(t)&&Db(t),i=yn(t),a=dr(e,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Wt(t)!=="body"||Fa(i))&&(c=Mb(t)),wt(t)?(l=dr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Ba(i))),{x:a.left+c.scrollLeft-l.x,y:a.top+c.scrollTop-l.y,width:a.width,height:a.height}}function Bb(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var l=t.get(c);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Fb(e){var t=Bb(e);return Jv.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Vb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ub(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Il={placement:"bottom",modifiers:[],strategy:"absolute"};function _l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function zb(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Il:o;return function(c,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Il,i),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},f=[],h=!1,b={state:d,setOptions:function(T){var C=typeof T=="function"?T(d.options):T;p(),d.options=Object.assign({},i,d.options,C),d.scrollParents={reference:_n(c)?Fr(c):c.contextElement?Fr(c.contextElement):[],popper:Fr(l)};var w=Fb(Ub([].concat(r,d.options.modifiers)));return d.orderedModifiers=w.filter(function(E){return E.enabled}),m(),b.update()},forceUpdate:function(){if(!h){var T=d.elements,C=T.reference,w=T.popper;if(_l(C,w)){d.rects={reference:Lb(C,ho(w),d.options.strategy==="fixed"),popper:Ma(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(x){return d.modifiersData[x.name]=Object.assign({},x.data)});for(var E=0;E<d.orderedModifiers.length;E++){if(d.reset===!0){d.reset=!1,E=-1;continue}var S=d.orderedModifiers[E],O=S.fn,R=S.options,N=R===void 0?{}:R,j=S.name;typeof O=="function"&&(d=O({state:d,options:N,name:j,instance:b})||d)}}}},update:Vb(function(){return new Promise(function(y){b.forceUpdate(),y(d)})}),destroy:function(){p(),h=!0}};if(!_l(c,l))return b;b.setOptions(u).then(function(y){!h&&u.onFirstUpdate&&u.onFirstUpdate(y)});function m(){d.orderedModifiers.forEach(function(y){var T=y.name,C=y.options,w=C===void 0?{}:C,E=y.effect;if(typeof E=="function"){var S=E({state:d,name:T,instance:b,options:w}),O=function(){};f.push(S||O)}})}function p(){f.forEach(function(y){return y()}),f=[]}return b}}var Wb=[pb,jb,db,eb,Pb,Tb,_b,ab,Ob],Hb=zb({defaultModifiers:Wb});function qb(e){return typeof e=="function"?e():e}const Xr=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,c]=v.useState(null),l=et(v.isValidElement(r)?gr(r):null,n);if(In(()=>{i||c(qb(o)||document.body)},[o,i]),In(()=>{if(a&&!i)return Vs(n,a),()=>{Vs(n,null)}},[n,a,i]),i){if(v.isValidElement(r)){const u={ref:l};return v.cloneElement(r,u)}return r}return a&&$h.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(Xr.propTypes={children:s.node,container:s.oneOfType([Zt,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(Xr.propTypes=_i(Xr.propTypes));function Gb(e){return Te("MuiPopper",e)}Oe("MuiPopper",["root"]);function Yb(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function di(e){return typeof e=="function"?e():e}function Vi(e){return e.nodeType!==void 0}function Kb(e){return!Vi(e)}const Xb=e=>{const{classes:t}=e;return Ne({root:["root"]},Gb,t)},Jb={},Zb=v.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,slotProps:h={},slots:b={},TransitionProps:m,ownerState:p,...y}=t,T=v.useRef(null),C=et(T,n),w=v.useRef(null),E=et(w,f),S=v.useRef(E);In(()=>{S.current=E},[E]),v.useImperativeHandle(f,()=>w.current,[]);const O=Yb(u,i),[R,N]=v.useState(O),[j,x]=v.useState(di(r));v.useEffect(()=>{w.current&&w.current.forceUpdate()}),v.useEffect(()=>{r&&x(di(r))},[r]),In(()=>{if(!j||!l)return;const M=q=>{N(q.placement)};if(process.env.NODE_ENV!=="production"&&j&&Vi(j)&&j.nodeType===1){const q=j.getBoundingClientRect();process.env.NODE_ENV!=="test"&&q.top===0&&q.left===0&&q.right===0&&q.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
230
|
-
`))}let
|
|
231
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"||
|
|
232
|
-
`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Zt,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:$i,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const Qb=ce(kf,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Va=v.forwardRef(function(t,n){const r=Ra(),o=Ce({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:c,componentsProps:l,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:b,placement:m,popperOptions:p,popperRef:y,transition:T,slots:C,slotProps:w,...E}=o,S=(C==null?void 0:C.root)??(c==null?void 0:c.Root),O={anchorEl:i,container:u,disablePortal:d,keepMounted:f,modifiers:h,open:b,placement:m,popperOptions:p,popperRef:y,transition:T,...E};return g.jsx(Qb,{as:a,direction:r?"rtl":"ltr",slots:{root:S},slotProps:w??l,...O,ref:n})});process.env.NODE_ENV!=="production"&&(Va.propTypes={anchorEl:s.oneOfType([Zt,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Zt,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:$i,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});function ex(e){return Te("MuiListSubheader",e)}Oe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const tx=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${de(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Ne(a,ex,t)},nx=ce("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${de(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Ve(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),fi=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:c=!1,disableSticky:l=!1,inset:u=!1,...d}=r,f={...r,color:i,component:a,disableGutters:c,disableSticky:l,inset:u},h=tx(f);return g.jsx(nx,{as:a,className:ae(h.root,o),ref:n,ownerState:f,...d})});fi&&(fi.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(fi.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOf(["default","inherit","primary"]),component:s.elementType,disableGutters:s.bool,disableSticky:s.bool,inset:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Js(e){return typeof e=="string"}const rx=Ge(g.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function ox(e){return Te("MuiAvatar",e)}Oe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const ix=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Ne({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},ox,t)},sx=ce("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ve(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),ax=ce("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),cx=ce(rx,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function lx({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=v.useState(!1);return v.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const c=new Image;return c.onload=()=>{a&&i("loaded")},c.onerror=()=>{a&&i("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Ua=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:c="div",slots:l={},slotProps:u={},imgProps:d,sizes:f,src:h,srcSet:b,variant:m="circular",...p}=r;let y=null;const T={...r,component:c,variant:m},C=lx({...d,...typeof u.img=="function"?u.img(T):u.img,src:h,srcSet:b}),w=h||b,E=w&&C!=="error";T.colorDefault=!E,delete T.ownerState;const S=ix(T),[O,R]=ht("img",{className:S.img,elementType:ax,externalForwardedProps:{slots:l,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:o,src:h,srcSet:b,sizes:f},ownerState:T});return E?y=g.jsx(O,{...R}):i||i===0?y=i:w&&o?y=o[0]:y=g.jsx(cx,{ownerState:T,className:S.fallback}),g.jsx(sx,{as:c,className:ae(S.root,a),ref:n,...p,ownerState:T,children:y})});process.env.NODE_ENV!=="production"&&(Ua.propTypes={alt:s.string,children:s.node,classes:s.object,className:s.string,component:s.elementType,imgProps:s.object,sizes:s.string,slotProps:s.shape({img:s.oneOfType([s.func,s.object])}),slots:s.shape({img:s.elementType}),src:s.string,srcSet:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rounded","square"]),s.string])});function ux(e){return Te("MuiButton",e)}const Xn=Oe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Pf=v.createContext({});process.env.NODE_ENV!=="production"&&(Pf.displayName="ButtonGroupContext");const Nf=v.createContext(void 0);process.env.NODE_ENV!=="production"&&(Nf.displayName="ButtonGroupButtonContext");const dx=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,c={root:["root",i,`${i}${de(t)}`,`size${de(o)}`,`${i}Size${de(o)}`,`color${de(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${de(o)}`],endIcon:["icon","endIcon",`iconSize${de(o)}`]},l=Ne(c,ux,a);return{...a,...l}},jf=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],fx=ce(fo,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${de(n.color)}`],t[`size${de(n.size)}`],t[`${n.variant}Size${de(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Ve(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Xn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Xn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Xn.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Xn.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(cr()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Ue(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ue(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Xn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Xn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),px=ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${de(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...jf]}),hx=ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${de(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...jf]}),za=v.forwardRef(function(t,n){const r=v.useContext(Pf),o=v.useContext(Nf),i=Wr(r,t),a=Ce({props:i,name:"MuiButton"}),{children:c,color:l="primary",component:u="button",className:d,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:b=!1,endIcon:m,focusVisibleClassName:p,fullWidth:y=!1,size:T="medium",startIcon:C,type:w,variant:E="text",...S}=a,O={...a,color:l,component:u,disabled:f,disableElevation:h,disableFocusRipple:b,fullWidth:y,size:T,type:w,variant:E},R=dx(O),N=C&&g.jsx(px,{className:R.startIcon,ownerState:O,children:C}),j=m&&g.jsx(hx,{className:R.endIcon,ownerState:O,children:m}),x=o||"";return g.jsxs(fx,{ownerState:O,className:ae(r.className,R.root,d,x),component:u,disabled:f,focusRipple:!b,focusVisibleClassName:ae(R.focusVisible,p),ref:n,type:w,...S,classes:R,children:[N,c,j]})});process.env.NODE_ENV!=="production"&&(za.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});const Wa=e=>e.scrollTop;function pn(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Zs(e){return`scale(${e}, ${e**2})`}const mx={entering:{opacity:1,transform:Zs(1)},entered:{opacity:1,transform:"none"}},ms=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Jr=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:h,onExiting:b,style:m,timeout:p="auto",TransitionComponent:y=Rt,...T}=t,C=Cn(),w=v.useRef(),E=gn(),S=v.useRef(null),O=et(S,gr(i),n),R=M=>L=>{if(M){const H=S.current;L===void 0?M(H):M(H,L)}},N=R(d),j=R((M,L)=>{Wa(M);const{duration:H,delay:q,easing:Z}=pn({style:m,timeout:p,easing:a},{mode:"enter"});let A;p==="auto"?(A=E.transitions.getAutoHeightDuration(M.clientHeight),w.current=A):A=H,M.style.transition=[E.transitions.create("opacity",{duration:A,delay:q}),E.transitions.create("transform",{duration:ms?A:A*.666,delay:q,easing:Z})].join(","),l&&l(M,L)}),x=R(u),P=R(b),B=R(M=>{const{duration:L,delay:H,easing:q}=pn({style:m,timeout:p,easing:a},{mode:"exit"});let Z;p==="auto"?(Z=E.transitions.getAutoHeightDuration(M.clientHeight),w.current=Z):Z=L,M.style.transition=[E.transitions.create("opacity",{duration:Z,delay:H}),E.transitions.create("transform",{duration:ms?Z:Z*.666,delay:ms?H:H||Z*.333,easing:q})].join(","),M.style.opacity=0,M.style.transform=Zs(.75),f&&f(M)}),$=R(h),U=M=>{p==="auto"&&C.start(w.current||0,M),r&&r(S.current,M)};return g.jsx(y,{appear:o,in:c,nodeRef:S,onEnter:j,onEntered:x,onEntering:N,onExit:B,onExited:$,onExiting:P,addEndListener:U,timeout:p==="auto"?null:p,...T,children:(M,{ownerState:L,...H})=>v.cloneElement(i,{style:{opacity:0,transform:Zs(.75),visibility:M==="exited"&&!c?"hidden":void 0,...mx[M],...m,...i.props.style},ref:O,...H})})});process.env.NODE_ENV!=="production"&&(Jr.propTypes={addEndListener:s.func,appear:s.bool,children:Ln.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});Jr&&(Jr.muiSupportAuto=!0);function gx(e){return Te("MuiTooltip",e)}const qe=Oe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function yx(e){return Math.round(e*1e5)/1e5}const vx=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${de(i.split("-")[0])}`],arrow:["arrow"]};return Ne(a,gx,t)},bx=ce(Va,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Ve(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${qe.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qe.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),xx=ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${de(n.placement.split("-")[0])}`]]}})(Ve(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ue(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${qe.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${qe.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${qe.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${yx(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Ex=ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Ve(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ue(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Io=!1;const $l=new Mi;let Rr={x:0,y:0};function _o(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const mo=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:c={},componentsProps:l={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:f=!1,disableInteractive:h=!1,disableTouchListener:b=!1,enterDelay:m=100,enterNextDelay:p=0,enterTouchDelay:y=700,followCursor:T=!1,id:C,leaveDelay:w=0,leaveTouchDelay:E=1500,onClose:S,onOpen:O,open:R,placement:N="bottom",PopperComponent:j,PopperProps:x={},slotProps:P={},slots:B={},title:$,TransitionComponent:U,TransitionProps:M,...L}=r,H=v.isValidElement(i)?i:g.jsx("span",{children:i}),q=gn(),Z=Ra(),[A,z]=v.useState(),[te,ne]=v.useState(null),G=v.useRef(!1),J=h||T,V=Cn(),Q=Cn(),ee=Cn(),oe=Cn(),[K,ie]=Pg({controlled:R,default:!1,name:"Tooltip",state:"open"});let F=K;if(process.env.NODE_ENV!=="production"){const{current:ue}=v.useRef(R!==void 0);v.useEffect(()=>{A&&A.disabled&&!ue&&$!==""&&A.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
233
|
-
`))},[$,A,ue])}const he=
|
|
234
|
-
`))},[A]));const tt={};b||(
|
|
235
|
-
`));const qt={...r,isRtl:Z,arrow:o,disableInteractive:J,placement:N,PopperComponentProp:j,touch:G.current},ft=typeof P.popper=="function"?P.popper(qt):P.popper,Zi=v.useMemo(()=>{var it,ko;let ue=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(it=x.popperOptions)!=null&&it.modifiers&&(ue=ue.concat(x.popperOptions.modifiers)),(ko=ft==null?void 0:ft.popperOptions)!=null&&ko.modifiers&&(ue=ue.concat(ft.popperOptions.modifiers)),{...x.popperOptions,...ft==null?void 0:ft.popperOptions,modifiers:ue}},[te,x.popperOptions,ft==null?void 0:ft.popperOptions]),xr=vx(qt),Qi=typeof P.transition=="function"?P.transition(qt):P.transition,nn={slots:{popper:c.Popper,transition:c.Transition??U,tooltip:c.Tooltip,arrow:c.Arrow,...B},slotProps:{arrow:P.arrow??l.arrow,popper:{...x,...ft??l.popper},tooltip:P.tooltip??l.tooltip,transition:{...M,...Qi??l.transition}}},[Co,rn]=ht("popper",{elementType:bx,externalForwardedProps:nn,ownerState:qt,className:ae(xr.popper,x==null?void 0:x.className)}),[Er,Sr]=ht("transition",{elementType:Jr,externalForwardedProps:nn,ownerState:qt}),[Oo,es]=ht("tooltip",{elementType:xx,className:xr.tooltip,externalForwardedProps:nn,ownerState:qt}),[Ro,ts]=ht("arrow",{elementType:Ex,className:xr.arrow,externalForwardedProps:nn,ownerState:qt,ref:ne});return g.jsxs(v.Fragment,{children:[v.cloneElement(H,Me),g.jsx(Co,{as:j??Va,placement:N,anchorEl:T?{getBoundingClientRect:()=>({top:Rr.y,left:Rr.x,right:Rr.x,bottom:Rr.y,width:0,height:0})}:A,popperRef:je,open:A?F:!1,id:he,transition:!0,...tt,...rn,popperOptions:Zi,children:({TransitionProps:ue})=>g.jsx(Er,{timeout:q.transitions.duration.shorter,...ue,...Sr,children:g.jsxs(Oo,{...es,children:[$,o?g.jsx(Ro,{...ts}):null]})})})]})});process.env.NODE_ENV!=="production"&&(mo.propTypes={arrow:s.bool,children:Ln.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.oneOfType([s.func,s.object]),popper:s.oneOfType([s.func,s.object]),tooltip:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});var Sx=function(e,t,n,r,o,i,a,c){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,c],d=0;l=new Error(t.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},wx=Sx;const Zr=ma(wx),Tx=v.createContext(null);function Cx(e){const{children:t,unmountAfter:n=1e3}=e,[r,o]=v.useState([]),i=v.useId(),a=v.useRef(0),c=v.useCallback(function(h,b,m={}){const{onClose:p=async()=>{}}=m;let y;const T=new Promise(E=>{y=E});Zr(y,"resolve not set");const C=`${i}-${a.current}`;a.current+=1;const w={key:C,open:!0,promise:T,Component:h,payload:b,onClose:p,resolve:y};return o(E=>[...E,w]),T},[i]),l=v.useCallback(function(h){o(b=>b.map(m=>m.promise===h?{...m,open:!1}:m)),setTimeout(()=>{o(b=>b.filter(m=>m.promise!==h))},n)},[n]),u=v.useCallback(async function(h,b){const m=r.find(p=>p.promise===h);return Zr(m,"dialog not found"),await m.onClose(b),m.resolve(b),l(h),h},[r,l]),d=v.useMemo(()=>({open:c,close:u}),[c,u]);return g.jsxs(Tx.Provider,{value:d,children:[t,r.map(({key:f,open:h,Component:b,payload:m,promise:p})=>g.jsx(b,{payload:m,open:h,onClose:async y=>{await u(p,y)}},f))]})}const Ha=v.createContext(null),qa=v.createContext([]),Ga=v.createContext({paletteMode:"light",setPaletteMode:()=>{},isDualTheme:!1}),Ui=v.createContext(null),Af=v.createContext(void 0),Qs=typeof df({})=="function",Ox=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Rx=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),If=(e,t=!1)=>{var i,a;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([c,l])=>{var d,f;const u=e.getColorSchemeSelector(c);u.startsWith("@")?n[u]={":root":{colorScheme:(d=l.palette)==null?void 0:d.mode}}:n[u.replace(/\s*&/,"")]={colorScheme:(f=l.palette)==null?void 0:f.mode}});let r={html:Ox(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Rx(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(a=(i=e.components)==null?void 0:i.MuiCssBaseline)==null?void 0:a.styleOverrides;return o&&(r=[r,o]),r},Yo="mui-ecs",kx=e=>{const t=If(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Yo})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var a,c;const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${Yo}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${Yo}))`]:{colorScheme:(c=o.palette)==null?void 0:c.mode}}}),t},Px=df(Qs?({theme:e,enableColorScheme:t})=>If(e,t):({theme:e})=>kx(e));function Ya(e){const t=Ce({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return g.jsxs(v.Fragment,{children:[Qs&&g.jsx(Px,{enableColorScheme:r}),!Qs&&!r&&g.jsx("span",{className:Yo,style:{display:"none"}}),n]})}process.env.NODE_ENV!=="production"&&(Ya.propTypes={children:s.node,enableColorScheme:s.bool});const Nx={parse:e=>e,stringify:e=>e},Qr=new Map;function jx(e,t){let n=Qr.get(e);n||(n=new Set,Qr.set(e,n)),n.add(t)}function Ax(e,t){const n=Qr.get(e);n&&(n.delete(t),n.size===0&&Qr.delete(e))}function _f(e){const t=Qr.get(e);t&&t.forEach(n=>n())}if(typeof window<"u"){const e=window.localStorage.setItem;window.localStorage.setItem=function(n,r){const o=e.call(this,n,r);return _f(n),o}}function Ix(e,t,n){if(!t)return()=>{};const r=o=>{o.storageArea===e&&o.key===t&&n()};return window.addEventListener("storage",r),jx(t,n),()=>{window.removeEventListener("storage",r),Ax(t,n)}}function _x(e,t){if(!t)return null;try{return e.getItem(t)}catch{return null}}function $x(e,t,n){if(t){try{n===null?e.removeItem(t):e.setItem(t,String(n))}catch{return}_f(t)}}const Mx=[null,()=>{}];function Dx(){return Mx}function Ml(e,t){return t===null?null:e.stringify(t)}function Lx(e,t){return t===null?null:e.parse(t)}const Bx=()=>null;function Fx(e,t,n=null,r){const o=(r==null?void 0:r.codec)??Nx,[i]=v.useState(n),a=v.useMemo(()=>Ml(o,i),[o,i]),c=v.useCallback(m=>Ix(e,t,m),[e,t]),l=v.useCallback(()=>_x(e,t)??a,[e,a,t]),u=v.useSyncExternalStore(c,l,Bx),d=v.useMemo(()=>Lx(o,u),[o,u]),f=v.useCallback(m=>{const p=m instanceof Function?m(d):m,y=Ml(o,p);$x(e,t,y)},[e,o,d,t]),[h,b]=v.useState(i);return t?[d,f]:[h,b]}const Vx=(...e)=>Fx(window.localStorage,...e),Ux=typeof window>"u"?Dx:Vx;var Dl,Ll,Bl;const zx="data-toolpad-color-scheme",Fl="toolpad-color-scheme",ea="toolpad-mode";function $f(e){return Y.useMediaQuery("(prefers-color-scheme: dark)",e&&{matchMedia:e.matchMedia})?"dark":"light"}function Ka(e){return"vars"in e}function Wx(e){const{children:t,theme:n,window:r}=e;Zr(!Ka(n),"This provider only accepts legacy themes.");const o="light"in n||"dark"in n,i=$f(r),[a,c]=Ux(ea,"system"),l=!a||a==="system"?i:a,u=v.useMemo(()=>o?n[l==="dark"?"dark":"light"]??n[l==="dark"?"light":"dark"]:n,[o,l,n]),d=v.useMemo(()=>({paletteMode:l,setPaletteMode:c,isDualTheme:o}),[o,l,c]);return g.jsx(cf,{theme:u,children:g.jsxs(Ga.Provider,{value:d,children:[Dl||(Dl=g.jsx(Ya,{enableColorScheme:!0})),t]})})}function Hx(e){const{children:t,window:n}=e,r=$f(n),{mode:o,setMode:i,allColorSchemes:a}=Fy(),c=v.useMemo(()=>({paletteMode:!o||o==="system"?r:o,setPaletteMode:i,isDualTheme:a.length>1}),[a,o,r,i]);return g.jsx(Ga.Provider,{value:c,children:t})}function qx(e){const{children:t,theme:n,window:r}=e;return Zr(Ka(n),"This provider only accepts CSS vars themes."),g.jsxs(cf,{theme:n,documentNode:r==null?void 0:r.document,colorSchemeNode:r==null?void 0:r.document.documentElement,disableNestedContext:!0,colorSchemeStorageKey:Fl,modeStorageKey:ea,children:[Ll||(Ll=g.jsx(Ly,{attribute:zx,colorSchemeStorageKey:Fl,modeStorageKey:ea})),g.jsxs(Hx,{window:r,children:[Bl||(Bl=g.jsx(Ya,{enableColorScheme:!0})),t]})]})}function Gx(e){const{children:t,theme:n,...r}=e;return Ka(n)?g.jsx(qx,{theme:n,...r,children:t}):g.jsx(Wx,{theme:n,...r,children:t})}const zi=v.createContext(null),Xa=v.createContext(null);function Yx(){return Di({cssVariables:{colorSchemeSelector:"data-toolpad-color-scheme"},colorSchemes:{dark:!0}})}function Mf(e){const{children:t,theme:n=Yx(),branding:r=null,navigation:o=[],router:i=null,authentication:a=null,session:c=null,window:l}=e;return g.jsx(Af.Provider,{value:l,children:g.jsx(zi.Provider,{value:a,children:g.jsx(Xa.Provider,{value:c,children:g.jsx(Ui.Provider,{value:i,children:g.jsx(Gx,{theme:n,window:l,children:g.jsx(iv,{children:g.jsx(Cx,{children:g.jsx(Ha.Provider,{value:r,children:g.jsx(qa.Provider,{value:o,children:t})})})})})})})})})}process.env.NODE_ENV!=="production"&&(Mf.propTypes={authentication:s.shape({signIn:s.func.isRequired,signOut:s.func.isRequired}),branding:s.shape({logo:s.node,title:s.string}),children:s.node,navigation:s.arrayOf(s.oneOfType([s.shape({action:s.node,children:s.arrayOf(s.oneOfType([s.object,s.shape({kind:s.oneOf(["header"]).isRequired,title:s.string.isRequired}),s.shape({kind:s.oneOf(["divider"]).isRequired})]).isRequired),icon:s.node,kind:s.oneOf(["page"]),pattern:s.string,segment:s.string,title:s.string}),s.shape({kind:s.oneOf(["header"]).isRequired,title:s.string.isRequired}),s.shape({kind:s.oneOf(["divider"]).isRequired})]).isRequired),router:s.shape({navigate:s.func.isRequired,pathname:s.string.isRequired,searchParams:s.instanceOf(URLSearchParams).isRequired}),session:s.shape({user:s.shape({email:s.string,id:s.string,image:s.string,name:s.string})}),theme:s.object,window:s.object});function Kx(e){return Te("MuiAppBar",e)}Oe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Xx=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${de(t)}`,`position${de(n)}`]};return Ne(o,Kx,r)},Vl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Jx=ce(Bi,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${de(n.position)}`],t[`color${de(n.color)}`]]}})(Ve(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(cr(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?Vl(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?Vl(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),Df=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:c="fixed",...l}=r,u={...r,color:i,position:c,enableColorOnDark:a},d=Xx(u);return g.jsx(Jx,{square:!0,component:"header",ownerState:u,elevation:4,className:ae(d.root,o,c==="fixed"&&"mui-fixed"),ref:n,...l})});process.env.NODE_ENV!=="production"&&(Df.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","inherit","primary","secondary","transparent","error","info","success","warning"]),s.string]),enableColorOnDark:s.bool,position:s.oneOf(["absolute","fixed","relative","static","sticky"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Zx=Oe("MuiBox",["root"]),Qx=Di(),on=wd({themeId:Nt,defaultTheme:Qx,defaultClassName:Zx.root,generateClassName:Ea.generate});process.env.NODE_ENV!=="production"&&(on.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function e0(e){const t=At(e);return t.body===e?fn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Vr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ul(e){return parseInt(fn(e).getComputedStyle(e).paddingRight,10)||0}function t0(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function zl(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const c=!i.includes(a),l=!t0(a);c&&l&&Vr(a,o)})}function gs(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function n0(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(e0(r)){const a=Ag(fn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ul(r)+a}px`;const c=At(r).querySelectorAll(".mui-fixed");[].forEach.call(c,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Ul(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=At(r).body;else{const a=r.parentElement,c=fn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&c.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:c})=>{i?a.style.setProperty(c,i):a.style.removeProperty(c)})}}function r0(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class o0{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Vr(t.modalRef,!1);const o=r0(n);zl(n,t.mount,t.modalRef,o,!0);const i=gs(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=gs(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=n0(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=gs(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Vr(t.modalRef,n),zl(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Vr(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const i0=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function s0(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function a0(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function c0(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||a0(e))}function l0(e){const t=[],n=[];return Array.from(e.querySelectorAll(i0)).forEach((r,o)=>{const i=s0(r);i===-1||!c0(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function u0(){return!0}function pi(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=l0,isEnabled:a=u0,open:c}=e,l=v.useRef(!1),u=v.useRef(null),d=v.useRef(null),f=v.useRef(null),h=v.useRef(null),b=v.useRef(!1),m=v.useRef(null),p=et(gr(t),m),y=v.useRef(null);v.useEffect(()=>{!c||!m.current||(b.current=!n)},[n,c]),v.useEffect(()=>{if(!c||!m.current)return;const w=At(m.current);return m.current.contains(w.activeElement)||(m.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
236
|
-
`)),m.current.setAttribute("tabIndex","-1")),b.current&&m.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[c]),v.useEffect(()=>{if(!c||!m.current)return;const w=At(m.current),E=R=>{y.current=R,!(r||!a()||R.key!=="Tab")&&w.activeElement===m.current&&R.shiftKey&&(l.current=!0,d.current&&d.current.focus())},S=()=>{var j,x;const R=m.current;if(R===null)return;if(!w.hasFocus()||!a()||l.current){l.current=!1;return}if(R.contains(w.activeElement)||r&&w.activeElement!==u.current&&w.activeElement!==d.current)return;if(w.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!b.current)return;let N=[];if((w.activeElement===u.current||w.activeElement===d.current)&&(N=i(m.current)),N.length>0){const P=!!((j=y.current)!=null&&j.shiftKey&&((x=y.current)==null?void 0:x.key)==="Tab"),B=N[0],$=N[N.length-1];typeof B!="string"&&typeof $!="string"&&(P?$.focus():B.focus())}else R.focus()};w.addEventListener("focusin",S),w.addEventListener("keydown",E,!0);const O=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(O),w.removeEventListener("focusin",S),w.removeEventListener("keydown",E,!0)}},[n,r,o,a,c,i]);const T=w=>{f.current===null&&(f.current=w.relatedTarget),b.current=!0,h.current=w.target;const E=t.props.onFocus;E&&E(w)},C=w=>{f.current===null&&(f.current=w.relatedTarget),b.current=!0};return g.jsxs(v.Fragment,{children:[g.jsx("div",{tabIndex:c?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:p,onFocus:T}),g.jsx("div",{tabIndex:c?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(pi.propTypes={children:Ln,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(pi.propTypes=_i(pi.propTypes));const d0={entering:{opacity:1},entered:{opacity:1}},Lf=v.forwardRef(function(t,n){const r=gn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:c,easing:l,in:u,onEnter:d,onEntered:f,onEntering:h,onExit:b,onExited:m,onExiting:p,style:y,timeout:T=o,TransitionComponent:C=Rt,...w}=t,E=v.useRef(null),S=et(E,gr(c),n),O=U=>M=>{if(U){const L=E.current;M===void 0?U(L):U(L,M)}},R=O(h),N=O((U,M)=>{Wa(U);const L=pn({style:y,timeout:T,easing:l},{mode:"enter"});U.style.webkitTransition=r.transitions.create("opacity",L),U.style.transition=r.transitions.create("opacity",L),d&&d(U,M)}),j=O(f),x=O(p),P=O(U=>{const M=pn({style:y,timeout:T,easing:l},{mode:"exit"});U.style.webkitTransition=r.transitions.create("opacity",M),U.style.transition=r.transitions.create("opacity",M),b&&b(U)}),B=O(m),$=U=>{i&&i(E.current,U)};return g.jsx(C,{appear:a,in:u,nodeRef:E,onEnter:N,onEntered:j,onEntering:R,onExit:P,onExited:B,onExiting:x,addEndListener:$,timeout:T,...w,children:(U,{ownerState:M,...L})=>v.cloneElement(c,{style:{opacity:0,visibility:U==="exited"&&!u?"hidden":void 0,...d0[U],...y,...c.props.style},ref:S,...L})})});process.env.NODE_ENV!=="production"&&(Lf.propTypes={addEndListener:s.func,appear:s.bool,children:Ln.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function f0(e){return Te("MuiBackdrop",e)}Oe("MuiBackdrop",["root","invisible"]);const p0=e=>{const{classes:t,invisible:n}=e;return Ne({root:["root",n&&"invisible"]},f0,t)},h0=ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Bf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:c=!1,open:l,components:u={},componentsProps:d={},slotProps:f={},slots:h={},TransitionComponent:b,transitionDuration:m,...p}=r,y={...r,component:a,invisible:c},T=p0(y),C={transition:b,root:u.Root,...h},w={...d,...f},E={slots:C,slotProps:w},[S,O]=ht("root",{elementType:h0,externalForwardedProps:E,className:ae(T.root,i),ownerState:y}),[R,N]=ht("transition",{elementType:Lf,externalForwardedProps:E,ownerState:y});return g.jsx(R,{in:l,timeout:m,...p,...N,children:g.jsx(S,{"aria-hidden":!0,...O,classes:T,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(Bf.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function m0(e){return typeof e=="function"?e():e}function g0(e){return e?e.props.hasOwnProperty("in"):!1}const Wl=()=>{},$o=new o0;function y0(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:c,onClose:l,open:u,rootRef:d}=e,f=v.useRef({}),h=v.useRef(null),b=v.useRef(null),m=et(b,d),[p,y]=v.useState(!u),T=g0(c);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>At(h.current),E=()=>(f.current.modalRef=b.current,f.current.mount=h.current,f.current),S=()=>{$o.mount(E(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},O=cn(()=>{const M=m0(t)||w().body;$o.add(E(),M),b.current&&S()}),R=()=>$o.isTopModal(E()),N=cn(M=>{h.current=M,M&&(u&&R()?S():b.current&&Vr(b.current,C))}),j=v.useCallback(()=>{$o.remove(E(),C)},[C]);v.useEffect(()=>()=>{j()},[j]),v.useEffect(()=>{u?O():(!T||!o)&&j()},[u,j,T,o,O]);const x=M=>L=>{var H;(H=M.onKeyDown)==null||H.call(M,L),!(L.key!=="Escape"||L.which===229||!R())&&(n||(L.stopPropagation(),l&&l(L,"escapeKeyDown")))},P=M=>L=>{var H;(H=M.onClick)==null||H.call(M,L),L.target===L.currentTarget&&l&&l(L,"backdropClick")};return{getRootProps:(M={})=>{const L=Ud(e);delete L.onTransitionEnter,delete L.onTransitionExited;const H={...L,...M};return{role:"presentation",...H,onKeyDown:x(H),ref:m}},getBackdropProps:(M={})=>{const L=M;return{"aria-hidden":!0,...L,onClick:P(L),open:u}},getTransitionProps:()=>{const M=()=>{y(!1),i&&i()},L=()=>{y(!0),a&&a(),o&&j()};return{onEnter:el(M,(c==null?void 0:c.props.onEnter)??Wl),onExited:el(L,(c==null?void 0:c.props.onExited)??Wl)}},rootRef:m,portalRef:N,isTopModal:R,exited:p,hasTransition:T}}function v0(e){return Te("MuiModal",e)}Oe("MuiModal",["root","hidden","backdrop"]);const b0=e=>{const{open:t,exited:n,classes:r}=e;return Ne({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},v0,r)},x0=ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ve(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),E0=ce(Bf,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ja=v.forwardRef(function(t,n){const r=Ce({name:"MuiModal",props:t}),{BackdropComponent:o=E0,BackdropProps:i,classes:a,className:c,closeAfterTransition:l=!1,children:u,container:d,component:f,components:h={},componentsProps:b={},disableAutoFocus:m=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:y=!1,disablePortal:T=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:E=!1,keepMounted:S=!1,onBackdropClick:O,onClose:R,onTransitionEnter:N,onTransitionExited:j,open:x,slotProps:P={},slots:B={},theme:$,...U}=r,M={...r,closeAfterTransition:l,disableAutoFocus:m,disableEnforceFocus:p,disableEscapeKeyDown:y,disablePortal:T,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:E,keepMounted:S},{getRootProps:L,getBackdropProps:H,getTransitionProps:q,portalRef:Z,isTopModal:A,exited:z,hasTransition:te}=y0({...M,rootRef:n}),ne={...M,exited:z},G=b0(ne),J={};if(u.props.tabIndex===void 0&&(J.tabIndex="-1"),te){const{onEnter:F,onExited:he}=q();J.onEnter=F,J.onExited=he}const V={...U,slots:{root:h.Root,backdrop:h.Backdrop,...B},slotProps:{...b,...P}},[Q,ee]=ht("root",{elementType:x0,externalForwardedProps:V,getSlotProps:L,additionalProps:{ref:n,as:f},ownerState:ne,className:ae(c,G==null?void 0:G.root,!ne.open&&ne.exited&&(G==null?void 0:G.hidden))}),[oe,K]=ht("backdrop",{elementType:o,externalForwardedProps:V,additionalProps:i,getSlotProps:F=>H({...F,onClick:he=>{O&&O(he),F!=null&&F.onClick&&F.onClick(he)}}),className:ae(i==null?void 0:i.className,G==null?void 0:G.backdrop),ownerState:ne}),ie=et(i==null?void 0:i.ref,K.ref);return!S&&!x&&(!te||z)?null:g.jsx(Xr,{ref:Z,container:d,disablePortal:T,children:g.jsxs(Q,{...ee,children:[!E&&o?g.jsx(oe,{...K,ref:ie}):null,g.jsx(pi,{disableEnforceFocus:p,disableAutoFocus:m,disableRestoreFocus:C,isEnabled:A,open:x,children:v.cloneElement(u,J)})]})})});process.env.NODE_ENV!=="production"&&(Ja.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Ln.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Zt,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onBackdropClick:s.func,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function S0(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=fn(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=i.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let c=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");c=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+c-r.left}px)`:`translateX(${i.innerWidth+c-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-c}px)`:`translateX(-${r.left+r.width-c}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function Ff(e){return typeof e=="function"?e():e}function Mo(e,t,n){const r=Ff(n),o=S0(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Vf=v.forwardRef(function(t,n){const r=gn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:c=!0,children:l,container:u,direction:d="down",easing:f=o,in:h,onEnter:b,onEntered:m,onEntering:p,onExit:y,onExited:T,onExiting:C,style:w,timeout:E=i,TransitionComponent:S=Rt,...O}=t,R=v.useRef(null),N=et(gr(l),R,n),j=q=>Z=>{q&&(Z===void 0?q(R.current):q(R.current,Z))},x=j((q,Z)=>{Mo(d,q,u),Wa(q),b&&b(q,Z)}),P=j((q,Z)=>{const A=pn({timeout:E,style:w,easing:f},{mode:"enter"});q.style.webkitTransition=r.transitions.create("-webkit-transform",{...A}),q.style.transition=r.transitions.create("transform",{...A}),q.style.webkitTransform="none",q.style.transform="none",p&&p(q,Z)}),B=j(m),$=j(C),U=j(q=>{const Z=pn({timeout:E,style:w,easing:f},{mode:"exit"});q.style.webkitTransition=r.transitions.create("-webkit-transform",Z),q.style.transition=r.transitions.create("transform",Z),Mo(d,q,u),y&&y(q)}),M=j(q=>{q.style.webkitTransition="",q.style.transition="",T&&T(q)}),L=q=>{a&&a(R.current,q)},H=v.useCallback(()=>{R.current&&Mo(d,R.current,u)},[d,u]);return v.useEffect(()=>{if(h||d==="down"||d==="right")return;const q=Md(()=>{R.current&&Mo(d,R.current,u)}),Z=fn(R.current);return Z.addEventListener("resize",q),()=>{q.clear(),Z.removeEventListener("resize",q)}},[d,h,u]),v.useEffect(()=>{h||H()},[h,H]),g.jsx(S,{nodeRef:R,onEnter:x,onEntered:B,onEntering:P,onExit:U,onExited:M,onExiting:$,addEndListener:L,appear:c,in:h,timeout:E,...O,children:(q,{ownerState:Z,...A})=>v.cloneElement(l,{ref:N,style:{visibility:q==="exited"&&!h?"hidden":void 0,...w,...l.props.style},...A})})});process.env.NODE_ENV!=="production"&&(Vf.propTypes={addEndListener:s.func,appear:s.bool,children:Ln.isRequired,container:en(s.oneOfType([Zt,s.func]),e=>{if(e.open){const t=Ff(e.container);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `container` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
228
|
+
`,Sf=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...c}=r,[l,u]=v.useState([]),d=v.useRef(0),f=v.useRef(null);v.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const m=v.useRef(!1),b=jn(),g=v.useRef(null),p=v.useRef(null),y=v.useCallback(E=>{const{pulsate:S,rippleX:O,rippleY:R,rippleSize:P,cb:N}=E;u(x=>[...x,h.jsx(Nv,{classes:{ripple:ae(i.ripple,bt.ripple),rippleVisible:ae(i.rippleVisible,bt.rippleVisible),ripplePulsate:ae(i.ripplePulsate,bt.ripplePulsate),child:ae(i.child,bt.child),childLeaving:ae(i.childLeaving,bt.childLeaving),childPulsate:ae(i.childPulsate,bt.childPulsate)},timeout:Qs,pulsate:S,rippleX:O,rippleY:R,rippleSize:P},d.current)]),d.current+=1,f.current=N},[i]),C=v.useCallback((E={},S={},O=()=>{})=>{const{pulsate:R=!1,center:P=o||S.pulsate,fakeElement:N=!1}=S;if((E==null?void 0:E.type)==="mousedown"&&m.current){m.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(m.current=!0);const x=N?null:p.current,k=x?x.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,$,z;if(P||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)F=Math.round(k.width/2),$=Math.round(k.height/2);else{const{clientX:L,clientY:B}=E.touches&&E.touches.length>0?E.touches[0]:E;F=Math.round(L-k.left),$=Math.round(B-k.top)}if(P)z=Math.sqrt((2*k.width**2+k.height**2)/3),z%2===0&&(z+=1);else{const L=Math.max(Math.abs((x?x.clientWidth:0)-F),F)*2+2,B=Math.max(Math.abs((x?x.clientHeight:0)-$),$)*2+2;z=Math.sqrt(L**2+B**2)}E!=null&&E.touches?g.current===null&&(g.current=()=>{y({pulsate:R,rippleX:F,rippleY:$,rippleSize:z,cb:O})},b.start(Ov,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:R,rippleX:F,rippleY:$,rippleSize:z,cb:O})},[o,y,b]),T=v.useCallback(()=>{C({},{pulsate:!0})},[C]),w=v.useCallback((E,S)=>{if(b.clear(),(E==null?void 0:E.type)==="touchend"&&g.current){g.current(),g.current=null,b.start(0,()=>{w(E,S)});return}g.current=null,u(O=>O.length>0?O.slice(1):O),f.current=S},[b]);return v.useImperativeHandle(n,()=>({pulsate:T,start:C,stop:w}),[T,C,w]),h.jsx(Pv,{className:ae(bt.root,i.root,a),ref:p,...c,children:h.jsx(La,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(Sf.propTypes={center:s.bool,classes:s.object,className:s.string});function Av(e){return Ce("MuiButtonBase",e)}const Iv=Oe("MuiButtonBase",["root","disabled","focusVisible"]),_v=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Pe({root:["root",t&&"disabled",n&&"focusVisible"]},Av,o);return n&&r&&(a.root+=` ${r}`),a},Mv=ce("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Iv.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),po=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:c,component:l="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:m=!1,focusVisibleClassName:b,LinkComponent:g="a",onBlur:p,onClick:y,onContextMenu:C,onDragLeave:T,onFocus:w,onFocusVisible:E,onKeyDown:S,onKeyUp:O,onMouseDown:R,onMouseLeave:P,onMouseUp:N,onTouchEnd:x,onTouchMove:k,onTouchStart:F,tabIndex:$=0,TouchRippleProps:z,touchRippleRef:L,type:B,...q}=r,G=v.useRef(null),Z=gv(),A=et(Z.ref,L),[W,te]=v.useState(!1);u&&W&&te(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{te(!0),G.current.focus()}}),[]);const ne=Z.shouldMount&&!d&&!u;v.useEffect(()=>{W&&m&&!d&&Z.pulsate()},[d,m,W,Z]);const Y=Kt(Z,"start",R,f),J=Kt(Z,"stop",C,f),U=Kt(Z,"stop",T,f),Q=Kt(Z,"stop",N,f),ee=Kt(Z,"stop",se=>{W&&se.preventDefault(),P&&P(se)},f),oe=Kt(Z,"start",F,f),K=Kt(Z,"stop",x,f),ie=Kt(Z,"stop",k,f),V=Kt(Z,"stop",se=>{cr(se.target)||te(!1),p&&p(se)},!1),he=cn(se=>{G.current||(G.current=se.currentTarget),cr(se.target)&&(te(!0),E&&E(se)),w&&w(se)}),X=()=>{const se=G.current;return l&&l!=="button"&&!(se.tagName==="A"&&se.href)},ve=cn(se=>{m&&!se.repeat&&W&&se.key===" "&&Z.stop(se,()=>{Z.start(se)}),se.target===se.currentTarget&&X()&&se.key===" "&&se.preventDefault(),S&&S(se),se.target===se.currentTarget&&X()&&se.key==="Enter"&&!u&&(se.preventDefault(),y&&y(se))}),De=cn(se=>{m&&se.key===" "&&W&&!se.defaultPrevented&&Z.stop(se,()=>{Z.pulsate(se)}),O&&O(se),y&&se.target===se.currentTarget&&X()&&se.key===" "&&!se.defaultPrevented&&y(se)});let ge=l;ge==="button"&&(q.href||q.to)&&(ge=g);const Le={};ge==="button"?(Le.type=B===void 0?"button":B,Le.disabled=u):(!q.href&&!q.to&&(Le.role="button"),u&&(Le["aria-disabled"]=u));const Be=et(n,G),Je={...r,centerRipple:i,component:l,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:m,tabIndex:$,focusVisible:W},Me=_v(Je);return h.jsxs(Mv,{as:ge,className:ae(Me.root,c),ownerState:Je,onBlur:V,onClick:y,onContextMenu:J,onFocus:he,onKeyDown:ve,onKeyUp:De,onMouseDown:Y,onMouseLeave:ee,onMouseUp:Q,onDragLeave:U,onTouchEnd:K,onTouchMove:ie,onTouchStart:oe,ref:Be,tabIndex:u?-1:$,type:B,...Le,...q,children:[a,ne?h.jsx(Sf,{ref:A,center:i,...z}):null]})});function Kt(e,t,n,r=!1){return cn(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(po.propTypes={action:Li,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:fo,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});function $v(e){return Ce("MuiIconButton",e)}const Dv=Oe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Lv=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${de(r)}`,o&&`edge${de(o)}`,`size${de(i)}`]};return Pe(a,$v,t)},Bv=ce(po,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${de(n.color)}`],n.edge&&t[`edge${de(n.edge)}`],t[`size${de(n.size)}`]]}})(Ve(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ve(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(lr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(lr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Dv.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Yr=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:c="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium",...f}=r,m={...r,edge:o,color:c,disabled:l,disableFocusRipple:u,size:d},b=Lv(m);return h.jsx(Bv,{className:ae(b.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,...f,ownerState:m,children:i})});process.env.NODE_ENV!=="production"&&(Yr.propTypes={children:tn(s.node,e=>v.Children.toArray(e.children).some(n=>v.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
229
|
+
`)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function Fv(e){return Ce("MuiTypography",e)}const Rl=Oe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Vv={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Uv=Gy(),zv=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,c={root:["root",i,e.align!=="inherit"&&`align${de(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Pe(c,Fv,a)},Wv=ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${de(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ve(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(lr()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${de(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),jl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Et=v.forwardRef(function(t,n){const{color:r,...o}=Te({props:t,name:"MuiTypography"}),i=!Vv[r],a=Uv({...o,...i&&{color:r}}),{align:c="inherit",className:l,component:u,gutterBottom:d=!1,noWrap:f=!1,paragraph:m=!1,variant:b="body1",variantMapping:g=jl,...p}=a,y={...a,align:c,color:r,className:l,component:u,gutterBottom:d,noWrap:f,paragraph:m,variant:b,variantMapping:g},C=u||(m?"p":g[b]||jl[b])||"span",T=zv(y);return h.jsx(Wv,{as:C,ref:n,className:ae(T.root,l),...p,ownerState:y,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...p.style}})});process.env.NODE_ENV!=="production"&&(Et.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});var ct="top",Ct="bottom",Tt="right",lt="left",Ba="auto",ho=[ct,Ct,Tt,lt],ur="start",Kr="end",Hv="clippingParents",wf="viewport",Rr="popper",qv="reference",kl=ho.reduce(function(e,t){return e.concat([t+"-"+ur,t+"-"+Kr])},[]),Cf=[].concat(ho,[Ba]).reduce(function(e,t){return e.concat([t,t+"-"+ur,t+"-"+Kr])},[]),Gv="beforeRead",Yv="read",Kv="afterRead",Xv="beforeMain",Jv="main",Zv="afterMain",Qv="beforeWrite",eb="write",tb="afterWrite",nb=[Gv,Yv,Kv,Xv,Jv,Zv,Qv,eb,tb];function qt(e){return e?(e.nodeName||"").toLowerCase():null}function gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dn(e){var t=gt(e).Element;return e instanceof t||e instanceof Element}function wt(e){var t=gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fa(e){if(typeof ShadowRoot>"u")return!1;var t=gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rb(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!wt(i)||!qt(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var c=o[a];c===!1?i.removeAttribute(a):i.setAttribute(a,c===!0?"":c)}))})}function ob(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=a.reduce(function(l,u){return l[u]="",l},{});!wt(o)||!qt(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const ib={name:"applyStyles",enabled:!0,phase:"write",fn:rb,effect:ob,requires:["computeStyles"]};function Wt(e){return e.split("-")[0]}var Nn=Math.max,pi=Math.min,dr=Math.round;function ea(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Tf(){return!/^((?!chrome|android).)*safari/i.test(ea())}function fr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&wt(e)&&(o=e.offsetWidth>0&&dr(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&dr(r.height)/e.offsetHeight||1);var a=Dn(e)?gt(e):window,c=a.visualViewport,l=!Tf()&&n,u=(r.left+(l&&c?c.offsetLeft:0))/o,d=(r.top+(l&&c?c.offsetTop:0))/i,f=r.width/o,m=r.height/i;return{width:f,height:m,top:d,right:u+f,bottom:d+m,left:u,x:u,y:d}}function Va(e){var t=fr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Of(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fa(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function en(e){return gt(e).getComputedStyle(e)}function sb(e){return["table","td","th"].indexOf(qt(e))>=0}function yn(e){return((Dn(e)?e.ownerDocument:e.document)||window.document).documentElement}function zi(e){return qt(e)==="html"?e:e.assignedSlot||e.parentNode||(Fa(e)?e.host:null)||yn(e)}function Pl(e){return!wt(e)||en(e).position==="fixed"?null:e.offsetParent}function ab(e){var t=/firefox/i.test(ea()),n=/Trident/i.test(ea());if(n&&wt(e)){var r=en(e);if(r.position==="fixed")return null}var o=zi(e);for(Fa(o)&&(o=o.host);wt(o)&&["html","body"].indexOf(qt(o))<0;){var i=en(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function mo(e){for(var t=gt(e),n=Pl(e);n&&sb(n)&&en(n).position==="static";)n=Pl(n);return n&&(qt(n)==="html"||qt(n)==="body"&&en(n).position==="static")?t:n||ab(e)||t}function Ua(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fr(e,t,n){return Nn(e,pi(t,n))}function cb(e,t,n){var r=Fr(e,t,n);return r>n?n:r}function Rf(){return{top:0,right:0,bottom:0,left:0}}function jf(e){return Object.assign({},Rf(),e)}function kf(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var lb=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,jf(typeof t!="number"?t:kf(t,ho))};function ub(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=Wt(n.placement),l=Ua(c),u=[lt,Tt].indexOf(c)>=0,d=u?"height":"width";if(!(!i||!a)){var f=lb(o.padding,n),m=Va(i),b=l==="y"?ct:lt,g=l==="y"?Ct:Tt,p=n.rects.reference[d]+n.rects.reference[l]-a[l]-n.rects.popper[d],y=a[l]-n.rects.reference[l],C=mo(i),T=C?l==="y"?C.clientHeight||0:C.clientWidth||0:0,w=p/2-y/2,E=f[b],S=T-m[d]-f[g],O=T/2-m[d]/2+w,R=Fr(E,O,S),P=l;n.modifiersData[r]=(t={},t[P]=R,t.centerOffset=R-O,t)}}function db(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Of(t.elements.popper,o)&&(t.elements.arrow=o))}const fb={name:"arrow",enabled:!0,phase:"main",fn:ub,effect:db,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pr(e){return e.split("-")[1]}var pb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hb(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:dr(n*o)/o||0,y:dr(r*o)/o||0}}function Nl(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,c=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,m=a.x,b=m===void 0?0:m,g=a.y,p=g===void 0?0:g,y=typeof d=="function"?d({x:b,y:p}):{x:b,y:p};b=y.x,p=y.y;var C=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),w=lt,E=ct,S=window;if(u){var O=mo(n),R="clientHeight",P="clientWidth";if(O===gt(n)&&(O=yn(n),en(O).position!=="static"&&c==="absolute"&&(R="scrollHeight",P="scrollWidth")),O=O,o===ct||(o===lt||o===Tt)&&i===Kr){E=Ct;var N=f&&O===S&&S.visualViewport?S.visualViewport.height:O[R];p-=N-r.height,p*=l?1:-1}if(o===lt||(o===ct||o===Ct)&&i===Kr){w=Tt;var x=f&&O===S&&S.visualViewport?S.visualViewport.width:O[P];b-=x-r.width,b*=l?1:-1}}var k=Object.assign({position:c},u&&pb),F=d===!0?hb({x:b,y:p},gt(n)):{x:b,y:p};if(b=F.x,p=F.y,l){var $;return Object.assign({},k,($={},$[E]=T?"0":"",$[w]=C?"0":"",$.transform=(S.devicePixelRatio||1)<=1?"translate("+b+"px, "+p+"px)":"translate3d("+b+"px, "+p+"px, 0)",$))}return Object.assign({},k,(t={},t[E]=T?p+"px":"",t[w]=C?b+"px":"",t.transform="",t))}function mb(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,c=n.roundOffsets,l=c===void 0?!0:c,u={placement:Wt(t.placement),variation:pr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Nl(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Nl(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mb,data:{}};var _o={passive:!0};function yb(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,c=a===void 0?!0:a,l=gt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,_o)}),c&&l.addEventListener("resize",n.update,_o),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,_o)}),c&&l.removeEventListener("resize",n.update,_o)}}const vb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yb,data:{}};var bb={left:"right",right:"left",bottom:"top",top:"bottom"};function Xo(e){return e.replace(/left|right|bottom|top/g,function(t){return bb[t]})}var xb={start:"end",end:"start"};function Al(e){return e.replace(/start|end/g,function(t){return xb[t]})}function za(e){var t=gt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Wa(e){return fr(yn(e)).left+za(e).scrollLeft}function Eb(e,t){var n=gt(e),r=yn(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;var u=Tf();(u||!u&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c+Wa(e),y:l}}function Sb(e){var t,n=yn(e),r=za(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Nn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Nn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+Wa(e),l=-r.scrollTop;return en(o||n).direction==="rtl"&&(c+=Nn(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:l}}function Ha(e){var t=en(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Pf(e){return["html","body","#document"].indexOf(qt(e))>=0?e.ownerDocument.body:wt(e)&&Ha(e)?e:Pf(zi(e))}function Vr(e,t){var n;t===void 0&&(t=[]);var r=Pf(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=gt(r),a=o?[i].concat(i.visualViewport||[],Ha(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(Vr(zi(a)))}function ta(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wb(e,t){var n=fr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Il(e,t,n){return t===wf?ta(Eb(e,n)):Dn(t)?wb(t,n):ta(Sb(yn(e)))}function Cb(e){var t=Vr(zi(e)),n=["absolute","fixed"].indexOf(en(e).position)>=0,r=n&&wt(e)?mo(e):e;return Dn(r)?t.filter(function(o){return Dn(o)&&Of(o,r)&&qt(o)!=="body"}):[]}function Tb(e,t,n,r){var o=t==="clippingParents"?Cb(e):[].concat(t),i=[].concat(o,[n]),a=i[0],c=i.reduce(function(l,u){var d=Il(e,u,r);return l.top=Nn(d.top,l.top),l.right=pi(d.right,l.right),l.bottom=pi(d.bottom,l.bottom),l.left=Nn(d.left,l.left),l},Il(e,a,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Nf(e){var t=e.reference,n=e.element,r=e.placement,o=r?Wt(r):null,i=r?pr(r):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,l;switch(o){case ct:l={x:a,y:t.y-n.height};break;case Ct:l={x:a,y:t.y+t.height};break;case Tt:l={x:t.x+t.width,y:c};break;case lt:l={x:t.x-n.width,y:c};break;default:l={x:t.x,y:t.y}}var u=o?Ua(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case ur:l[u]=l[u]-(t[d]/2-n[d]/2);break;case Kr:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function Xr(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,c=n.boundary,l=c===void 0?Hv:c,u=n.rootBoundary,d=u===void 0?wf:u,f=n.elementContext,m=f===void 0?Rr:f,b=n.altBoundary,g=b===void 0?!1:b,p=n.padding,y=p===void 0?0:p,C=jf(typeof y!="number"?y:kf(y,ho)),T=m===Rr?qv:Rr,w=e.rects.popper,E=e.elements[g?T:m],S=Tb(Dn(E)?E:E.contextElement||yn(e.elements.popper),l,d,a),O=fr(e.elements.reference),R=Nf({reference:O,element:w,strategy:"absolute",placement:o}),P=ta(Object.assign({},w,R)),N=m===Rr?P:O,x={top:S.top-N.top+C.top,bottom:N.bottom-S.bottom+C.bottom,left:S.left-N.left+C.left,right:N.right-S.right+C.right},k=e.modifiersData.offset;if(m===Rr&&k){var F=k[o];Object.keys(x).forEach(function($){var z=[Tt,Ct].indexOf($)>=0?1:-1,L=[ct,Ct].indexOf($)>=0?"y":"x";x[$]+=F[L]*z})}return x}function Ob(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Cf:l,d=pr(r),f=d?c?kl:kl.filter(function(g){return pr(g)===d}):ho,m=f.filter(function(g){return u.indexOf(g)>=0});m.length===0&&(m=f);var b=m.reduce(function(g,p){return g[p]=Xr(e,{placement:p,boundary:o,rootBoundary:i,padding:a})[Wt(p)],g},{});return Object.keys(b).sort(function(g,p){return b[g]-b[p]})}function Rb(e){if(Wt(e)===Ba)return[];var t=Xo(e);return[Al(e),t,Al(t)]}function jb(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,m=n.altBoundary,b=n.flipVariations,g=b===void 0?!0:b,p=n.allowedAutoPlacements,y=t.options.placement,C=Wt(y),T=C===y,w=l||(T||!g?[Xo(y)]:Rb(y)),E=[y].concat(w).reduce(function(Y,J){return Y.concat(Wt(J)===Ba?Ob(t,{placement:J,boundary:d,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:p}):J)},[]),S=t.rects.reference,O=t.rects.popper,R=new Map,P=!0,N=E[0],x=0;x<E.length;x++){var k=E[x],F=Wt(k),$=pr(k)===ur,z=[ct,Ct].indexOf(F)>=0,L=z?"width":"height",B=Xr(t,{placement:k,boundary:d,rootBoundary:f,altBoundary:m,padding:u}),q=z?$?Tt:lt:$?Ct:ct;S[L]>O[L]&&(q=Xo(q));var G=Xo(q),Z=[];if(i&&Z.push(B[F]<=0),c&&Z.push(B[q]<=0,B[G]<=0),Z.every(function(Y){return Y})){N=k,P=!1;break}R.set(k,Z)}if(P)for(var A=g?3:1,W=function(J){var U=E.find(function(Q){var ee=R.get(Q);if(ee)return ee.slice(0,J).every(function(oe){return oe})});if(U)return N=U,"break"},te=A;te>0;te--){var ne=W(te);if(ne==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const kb={name:"flip",enabled:!0,phase:"main",fn:jb,requiresIfExists:["offset"],data:{_skip:!1}};function _l(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ml(e){return[ct,Tt,Ct,lt].some(function(t){return e[t]>=0})}function Pb(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Xr(t,{elementContext:"reference"}),c=Xr(t,{altBoundary:!0}),l=_l(a,r),u=_l(c,o,i),d=Ml(l),f=Ml(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Nb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Pb};function Ab(e,t,n){var r=Wt(e),o=[lt,ct].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[lt,Tt].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}function Ib(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=Cf.reduce(function(d,f){return d[f]=Ab(f,t.rects,i),d},{}),c=a[t.placement],l=c.x,u=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const _b={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ib};function Mb(e){var t=e.state,n=e.name;t.modifiersData[n]=Nf({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const $b={name:"popperOffsets",enabled:!0,phase:"read",fn:Mb,data:{}};function Db(e){return e==="x"?"y":"x"}function Lb(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,c=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,m=n.tether,b=m===void 0?!0:m,g=n.tetherOffset,p=g===void 0?0:g,y=Xr(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),C=Wt(t.placement),T=pr(t.placement),w=!T,E=Ua(C),S=Db(E),O=t.modifiersData.popperOffsets,R=t.rects.reference,P=t.rects.popper,N=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,x=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(O){if(i){var $,z=E==="y"?ct:lt,L=E==="y"?Ct:Tt,B=E==="y"?"height":"width",q=O[E],G=q+y[z],Z=q-y[L],A=b?-P[B]/2:0,W=T===ur?R[B]:P[B],te=T===ur?-P[B]:-R[B],ne=t.elements.arrow,Y=b&&ne?Va(ne):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Rf(),U=J[z],Q=J[L],ee=Fr(0,R[B],Y[B]),oe=w?R[B]/2-A-ee-U-x.mainAxis:W-ee-U-x.mainAxis,K=w?-R[B]/2+A+ee+Q+x.mainAxis:te+ee+Q+x.mainAxis,ie=t.elements.arrow&&mo(t.elements.arrow),V=ie?E==="y"?ie.clientTop||0:ie.clientLeft||0:0,he=($=k==null?void 0:k[E])!=null?$:0,X=q+oe-he-V,ve=q+K-he,De=Fr(b?pi(G,X):G,q,b?Nn(Z,ve):Z);O[E]=De,F[E]=De-q}if(c){var ge,Le=E==="x"?ct:lt,Be=E==="x"?Ct:Tt,Je=O[S],Me=S==="y"?"height":"width",se=Je+y[Le],Dt=Je-y[Be],Lt=[ct,lt].indexOf(C)!==-1,Bt=(ge=k==null?void 0:k[S])!=null?ge:0,Ft=Lt?se:Je-R[Me]-P[Me]-Bt+x.altAxis,Ne=Lt?Je+R[Me]+P[Me]-Bt-x.altAxis:Dt,Ge=b&&Lt?cb(Ft,Je,Ne):Fr(b?Ft:se,Je,b?Ne:Dt);O[S]=Ge,F[S]=Ge-Je}t.modifiersData[r]=F}}const Bb={name:"preventOverflow",enabled:!0,phase:"main",fn:Lb,requiresIfExists:["offset"]};function Fb(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vb(e){return e===gt(e)||!wt(e)?za(e):Fb(e)}function Ub(e){var t=e.getBoundingClientRect(),n=dr(t.width)/e.offsetWidth||1,r=dr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zb(e,t,n){n===void 0&&(n=!1);var r=wt(t),o=wt(t)&&Ub(t),i=yn(t),a=fr(e,o,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((qt(t)!=="body"||Ha(i))&&(c=Vb(t)),wt(t)?(l=fr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Wa(i))),{x:a.left+c.scrollLeft-l.x,y:a.top+c.scrollTop-l.y,width:a.width,height:a.height}}function Wb(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(c){if(!n.has(c)){var l=t.get(c);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Hb(e){var t=Wb(e);return nb.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function qb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Gb(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var $l={placement:"bottom",modifiers:[],strategy:"absolute"};function Dl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Yb(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?$l:o;return function(c,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},$l,i),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},f=[],m=!1,b={state:d,setOptions:function(C){var T=typeof C=="function"?C(d.options):C;p(),d.options=Object.assign({},i,d.options,T),d.scrollParents={reference:Dn(c)?Vr(c):c.contextElement?Vr(c.contextElement):[],popper:Vr(l)};var w=Hb(Gb([].concat(r,d.options.modifiers)));return d.orderedModifiers=w.filter(function(E){return E.enabled}),g(),b.update()},forceUpdate:function(){if(!m){var C=d.elements,T=C.reference,w=C.popper;if(Dl(T,w)){d.rects={reference:zb(T,mo(w),d.options.strategy==="fixed"),popper:Va(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(x){return d.modifiersData[x.name]=Object.assign({},x.data)});for(var E=0;E<d.orderedModifiers.length;E++){if(d.reset===!0){d.reset=!1,E=-1;continue}var S=d.orderedModifiers[E],O=S.fn,R=S.options,P=R===void 0?{}:R,N=S.name;typeof O=="function"&&(d=O({state:d,options:P,name:N,instance:b})||d)}}}},update:qb(function(){return new Promise(function(y){b.forceUpdate(),y(d)})}),destroy:function(){p(),m=!0}};if(!Dl(c,l))return b;b.setOptions(u).then(function(y){!m&&u.onFirstUpdate&&u.onFirstUpdate(y)});function g(){d.orderedModifiers.forEach(function(y){var C=y.name,T=y.options,w=T===void 0?{}:T,E=y.effect;if(typeof E=="function"){var S=E({state:d,name:C,instance:b,options:w}),O=function(){};f.push(S||O)}})}function p(){f.forEach(function(y){return y()}),f=[]}return b}}var Kb=[vb,$b,gb,ib,_b,kb,Bb,fb,Nb],Xb=Yb({defaultModifiers:Kb});function Jb(e){return typeof e=="function"?e():e}const Jr=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,c]=v.useState(null),l=et(v.isValidElement(r)?yr(r):null,n);if($n(()=>{i||c(Jb(o)||document.body)},[o,i]),$n(()=>{if(a&&!i)return qs(n,a),()=>{qs(n,null)}},[n,a,i]),i){if(v.isValidElement(r)){const u={ref:l};return v.cloneElement(r,u)}return r}return a&&Fh.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(Jr.propTypes={children:s.node,container:s.oneOfType([Qt,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(Jr.propTypes=Di(Jr.propTypes));function Zb(e){return Ce("MuiPopper",e)}Oe("MuiPopper",["root"]);function Qb(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function hi(e){return typeof e=="function"?e():e}function Wi(e){return e.nodeType!==void 0}function ex(e){return!Wi(e)}const tx=e=>{const{classes:t}=e;return Pe({root:["root"]},Zb,t)},nx={},rx=v.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,slotProps:m={},slots:b={},TransitionProps:g,ownerState:p,...y}=t,C=v.useRef(null),T=et(C,n),w=v.useRef(null),E=et(w,f),S=v.useRef(E);$n(()=>{S.current=E},[E]),v.useImperativeHandle(f,()=>w.current,[]);const O=Qb(u,i),[R,P]=v.useState(O),[N,x]=v.useState(hi(r));v.useEffect(()=>{w.current&&w.current.forceUpdate()}),v.useEffect(()=>{r&&x(hi(r))},[r]),$n(()=>{if(!N||!l)return;const L=G=>{P(G.placement)};if(process.env.NODE_ENV!=="production"&&N&&Wi(N)&&N.nodeType===1){const G=N.getBoundingClientRect();process.env.NODE_ENV!=="test"&&G.top===0&&G.left===0&&G.right===0&&G.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
230
|
+
`))}let B=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{L(G)}}];c!=null&&(B=B.concat(c)),d&&d.modifiers!=null&&(B=B.concat(d.modifiers));const q=Xb(N,C.current,{placement:O,...d,modifiers:B});return S.current(q),()=>{q.destroy(),S.current(null)}},[N,a,c,l,d,O]);const k={placement:R};g!==null&&(k.TransitionProps=g);const F=tx(t),$=b.root??"div",z=Kd({elementType:$,externalSlotProps:m.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:T},ownerState:t,className:F.root});return h.jsx($,{...z,children:typeof o=="function"?o(k):o})}),Af=v.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:c=!1,keepMounted:l=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:m=nx,popperRef:b,style:g,transition:p=!1,slotProps:y={},slots:C={},...T}=t,[w,E]=v.useState(!0),S=()=>{E(!1)},O=()=>{E(!0)};if(!l&&!d&&(!p||w))return null;let R;if(i)R=i;else if(r){const x=hi(r);R=x&&Wi(x)?_t(x).body:_t(null).body}const P=!d&&l&&(!p||w)?"none":void 0,N=p?{in:d,onEnter:S,onExited:O}:void 0;return h.jsx(Jr,{disablePortal:c,container:R,children:h.jsx(rx,{anchorEl:r,direction:a,disablePortal:c,modifiers:u,ref:n,open:p?!w:d,placement:f,popperOptions:m,popperRef:b,slotProps:y,slots:C,...T,style:{position:"fixed",top:0,left:0,display:P,...g},TransitionProps:N,children:o})})});process.env.NODE_ENV!=="production"&&(Af.propTypes={anchorEl:tn(s.oneOfType([Qt,s.object,s.func]),e=>{if(e.open){const t=hi(e.anchorEl);if(t&&Wi(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
231
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||ex(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
232
|
+
`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Qt,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Li,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const ox=ce(Af,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qa=v.forwardRef(function(t,n){const r=Aa(),o=Te({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:c,componentsProps:l,container:u,disablePortal:d,keepMounted:f,modifiers:m,open:b,placement:g,popperOptions:p,popperRef:y,transition:C,slots:T,slotProps:w,...E}=o,S=(T==null?void 0:T.root)??(c==null?void 0:c.Root),O={anchorEl:i,container:u,disablePortal:d,keepMounted:f,modifiers:m,open:b,placement:g,popperOptions:p,popperRef:y,transition:C,...E};return h.jsx(ox,{as:a,direction:r?"rtl":"ltr",slots:{root:S},slotProps:w??l,...O,ref:n})});process.env.NODE_ENV!=="production"&&(qa.propTypes={anchorEl:s.oneOfType([Qt,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Qt,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Li,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});function ix(e){return Ce("MuiListSubheader",e)}Oe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const sx=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${de(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return Pe(a,ix,t)},ax=ce("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${de(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Ve(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),mi=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:c=!1,disableSticky:l=!1,inset:u=!1,...d}=r,f={...r,color:i,component:a,disableGutters:c,disableSticky:l,inset:u},m=sx(f);return h.jsx(ax,{as:a,className:ae(m.root,o),ref:n,ownerState:f,...d})});mi&&(mi.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(mi.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOf(["default","inherit","primary"]),component:s.elementType,disableGutters:s.bool,disableSticky:s.bool,inset:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function na(e){return typeof e=="string"}const cx=Ue(h.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function lx(e){return Ce("MuiAvatar",e)}Oe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const ux=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Pe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},lx,t)},dx=ce("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ve(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),fx=ce("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),px=ce(cx,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function hx({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=v.useState(!1);return v.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const c=new Image;return c.onload=()=>{a&&i("loaded")},c.onerror=()=>{a&&i("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const Ga=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:c="div",slots:l={},slotProps:u={},imgProps:d,sizes:f,src:m,srcSet:b,variant:g="circular",...p}=r;let y=null;const C={...r,component:c,variant:g},T=hx({...d,...typeof u.img=="function"?u.img(C):u.img,src:m,srcSet:b}),w=m||b,E=w&&T!=="error";C.colorDefault=!E,delete C.ownerState;const S=ux(C),[O,R]=ht("img",{className:S.img,elementType:fx,externalForwardedProps:{slots:l,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:o,src:m,srcSet:b,sizes:f},ownerState:C});return E?y=h.jsx(O,{...R}):i||i===0?y=i:w&&o?y=o[0]:y=h.jsx(px,{ownerState:C,className:S.fallback}),h.jsx(dx,{as:c,className:ae(S.root,a),ref:n,...p,ownerState:C,children:y})});process.env.NODE_ENV!=="production"&&(Ga.propTypes={alt:s.string,children:s.node,classes:s.object,className:s.string,component:s.elementType,imgProps:s.object,sizes:s.string,slotProps:s.shape({img:s.oneOfType([s.func,s.object])}),slots:s.shape({img:s.elementType}),src:s.string,srcSet:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rounded","square"]),s.string])});function mx(e){return Ce("MuiButton",e)}const Jn=Oe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),If=v.createContext({});process.env.NODE_ENV!=="production"&&(If.displayName="ButtonGroupContext");const _f=v.createContext(void 0);process.env.NODE_ENV!=="production"&&(_f.displayName="ButtonGroupButtonContext");const gx=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,c={root:["root",i,`${i}${de(t)}`,`size${de(o)}`,`${i}Size${de(o)}`,`color${de(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${de(o)}`],endIcon:["icon","endIcon",`iconSize${de(o)}`]},l=Pe(c,mx,a);return{...a,...l}},Mf=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],yx=ce(po,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${de(n.color)}`],t[`size${de(n.size)}`],t[`${n.variant}Size${de(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(Ve(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Jn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Jn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Jn.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Jn.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(lr()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Ke(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ke(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Jn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Jn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),vx=ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${de(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Mf]}),bx=ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${de(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Mf]}),Ya=v.forwardRef(function(t,n){const r=v.useContext(If),o=v.useContext(_f),i=Hr(r,t),a=Te({props:i,name:"MuiButton"}),{children:c,color:l="primary",component:u="button",className:d,disabled:f=!1,disableElevation:m=!1,disableFocusRipple:b=!1,endIcon:g,focusVisibleClassName:p,fullWidth:y=!1,size:C="medium",startIcon:T,type:w,variant:E="text",...S}=a,O={...a,color:l,component:u,disabled:f,disableElevation:m,disableFocusRipple:b,fullWidth:y,size:C,type:w,variant:E},R=gx(O),P=T&&h.jsx(vx,{className:R.startIcon,ownerState:O,children:T}),N=g&&h.jsx(bx,{className:R.endIcon,ownerState:O,children:g}),x=o||"";return h.jsxs(yx,{ownerState:O,className:ae(r.className,R.root,d,x),component:u,disabled:f,focusRipple:!b,focusVisibleClassName:ae(R.focusVisible,p),ref:n,type:w,...S,classes:R,children:[P,c,N]})});process.env.NODE_ENV!=="production"&&(Ya.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});const Ka=e=>e.scrollTop;function pn(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function ra(e){return`scale(${e}, ${e**2})`}const xx={entering:{opacity:1,transform:ra(1)},entered:{opacity:1,transform:"none"}},bs=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Zr=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:m,onExiting:b,style:g,timeout:p="auto",TransitionComponent:y=Rt,...C}=t,T=jn(),w=v.useRef(),E=gn(),S=v.useRef(null),O=et(S,yr(i),n),R=L=>B=>{if(L){const q=S.current;B===void 0?L(q):L(q,B)}},P=R(d),N=R((L,B)=>{Ka(L);const{duration:q,delay:G,easing:Z}=pn({style:g,timeout:p,easing:a},{mode:"enter"});let A;p==="auto"?(A=E.transitions.getAutoHeightDuration(L.clientHeight),w.current=A):A=q,L.style.transition=[E.transitions.create("opacity",{duration:A,delay:G}),E.transitions.create("transform",{duration:bs?A:A*.666,delay:G,easing:Z})].join(","),l&&l(L,B)}),x=R(u),k=R(b),F=R(L=>{const{duration:B,delay:q,easing:G}=pn({style:g,timeout:p,easing:a},{mode:"exit"});let Z;p==="auto"?(Z=E.transitions.getAutoHeightDuration(L.clientHeight),w.current=Z):Z=B,L.style.transition=[E.transitions.create("opacity",{duration:Z,delay:q}),E.transitions.create("transform",{duration:bs?Z:Z*.666,delay:bs?q:q||Z*.333,easing:G})].join(","),L.style.opacity=0,L.style.transform=ra(.75),f&&f(L)}),$=R(m),z=L=>{p==="auto"&&T.start(w.current||0,L),r&&r(S.current,L)};return h.jsx(y,{appear:o,in:c,nodeRef:S,onEnter:N,onEntered:x,onEntering:P,onExit:F,onExited:$,onExiting:k,addEndListener:z,timeout:p==="auto"?null:p,...C,children:(L,{ownerState:B,...q})=>v.cloneElement(i,{style:{opacity:0,transform:ra(.75),visibility:L==="exited"&&!c?"hidden":void 0,...xx[L],...g,...i.props.style},ref:O,...q})})});process.env.NODE_ENV!=="production"&&(Zr.propTypes={addEndListener:s.func,appear:s.bool,children:Vn.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});Zr&&(Zr.muiSupportAuto=!0);function Ex(e){return Ce("MuiTooltip",e)}const qe=Oe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Sx(e){return Math.round(e*1e5)/1e5}const wx=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${de(i.split("-")[0])}`],arrow:["arrow"]};return Pe(a,Ex,t)},Cx=ce(qa,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Ve(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${qe.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${qe.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${qe.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${qe.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Tx=ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${de(n.placement.split("-")[0])}`]]}})(Ve(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ke(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${qe.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${qe.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${qe.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Sx(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${qe.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${qe.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${qe.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Ox=ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Ve(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ke(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Mo=!1;const Ll=new Bi;let jr={x:0,y:0};function $o(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const go=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:c={},componentsProps:l={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:f=!1,disableInteractive:m=!1,disableTouchListener:b=!1,enterDelay:g=100,enterNextDelay:p=0,enterTouchDelay:y=700,followCursor:C=!1,id:T,leaveDelay:w=0,leaveTouchDelay:E=1500,onClose:S,onOpen:O,open:R,placement:P="bottom",PopperComponent:N,PopperProps:x={},slotProps:k={},slots:F={},title:$,TransitionComponent:z,TransitionProps:L,...B}=r,q=v.isValidElement(i)?i:h.jsx("span",{children:i}),G=gn(),Z=Aa(),[A,W]=v.useState(),[te,ne]=v.useState(null),Y=v.useRef(!1),J=m||C,U=jn(),Q=jn(),ee=jn(),oe=jn(),[K,ie]=_g({controlled:R,default:!1,name:"Tooltip",state:"open"});let V=K;if(process.env.NODE_ENV!=="production"){const{current:ue}=v.useRef(R!==void 0);v.useEffect(()=>{A&&A.disabled&&!ue&&$!==""&&A.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
233
|
+
`))},[$,A,ue])}const he=Ig(T),X=v.useRef(),ve=cn(()=>{X.current!==void 0&&(document.body.style.WebkitUserSelect=X.current,X.current=void 0),oe.clear()});v.useEffect(()=>ve,[ve]);const De=ue=>{Ll.clear(),Mo=!0,ie(!0),O&&!V&&O(ue)},ge=cn(ue=>{Ll.start(800+w,()=>{Mo=!1}),ie(!1),S&&V&&S(ue),U.start(G.transitions.duration.shortest,()=>{Y.current=!1})}),Le=ue=>{Y.current&&ue.type!=="touchstart"||(A&&A.removeAttribute("title"),Q.clear(),ee.clear(),g||Mo&&p?Q.start(Mo?p:g,()=>{De(ue)}):De(ue))},Be=ue=>{Q.clear(),ee.start(w,()=>{ge(ue)})},[,Je]=v.useState(!1),Me=ue=>{cr(ue.target)||(Je(!1),Be(ue))},se=ue=>{A||W(ue.currentTarget),cr(ue.target)&&(Je(!0),Le(ue))},Dt=ue=>{Y.current=!0;const it=q.props;it.onTouchStart&&it.onTouchStart(ue)},Lt=ue=>{Dt(ue),ee.clear(),U.clear(),ve(),X.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",oe.start(y,()=>{document.body.style.WebkitUserSelect=X.current,Le(ue)})},Bt=ue=>{q.props.onTouchEnd&&q.props.onTouchEnd(ue),ve(),ee.start(E,()=>{ge(ue)})};v.useEffect(()=>{if(!V)return;function ue(it){it.key==="Escape"&&ge(it)}return document.addEventListener("keydown",ue),()=>{document.removeEventListener("keydown",ue)}},[ge,V]);const Ft=et(yr(q),W,n);!$&&$!==0&&(V=!1);const Ne=v.useRef(),Ge=ue=>{const it=q.props;it.onMouseMove&&it.onMouseMove(ue),jr={x:ue.clientX,y:ue.clientY},Ne.current&&Ne.current.update()},ze={},yt=typeof $=="string";u?(ze.title=!V&&yt&&!f?$:null,ze["aria-describedby"]=V?he:null):(ze["aria-label"]=yt?$:null,ze["aria-labelledby"]=V&&!yt?he:null);const $e={...ze,...B,...q.props,className:ae(B.className,q.props.className),onTouchStart:Dt,ref:Ft,...C?{onMouseMove:Ge}:{}};process.env.NODE_ENV!=="production"&&($e["data-mui-internal-clone-element"]=!0,v.useEffect(()=>{A&&!A.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
234
|
+
`))},[A]));const tt={};b||($e.onTouchStart=Lt,$e.onTouchEnd=Bt),f||($e.onMouseOver=$o(Le,$e.onMouseOver),$e.onMouseLeave=$o(Be,$e.onMouseLeave),J||(tt.onMouseOver=Le,tt.onMouseLeave=Be)),d||($e.onFocus=$o(se,$e.onFocus),$e.onBlur=$o(Me,$e.onBlur),J||(tt.onFocus=se,tt.onBlur=Me)),process.env.NODE_ENV!=="production"&&q.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${q.props.title}\` or the Tooltip component.`].join(`
|
|
235
|
+
`));const Gt={...r,isRtl:Z,arrow:o,disableInteractive:J,placement:P,PopperComponentProp:N,touch:Y.current},ft=typeof k.popper=="function"?k.popper(Gt):k.popper,ns=v.useMemo(()=>{var it,Po;let ue=[{name:"arrow",enabled:!!te,options:{element:te,padding:4}}];return(it=x.popperOptions)!=null&&it.modifiers&&(ue=ue.concat(x.popperOptions.modifiers)),(Po=ft==null?void 0:ft.popperOptions)!=null&&Po.modifiers&&(ue=ue.concat(ft.popperOptions.modifiers)),{...x.popperOptions,...ft==null?void 0:ft.popperOptions,modifiers:ue}},[te,x.popperOptions,ft==null?void 0:ft.popperOptions]),Er=wx(Gt),rs=typeof k.transition=="function"?k.transition(Gt):k.transition,nn={slots:{popper:c.Popper,transition:c.Transition??z,tooltip:c.Tooltip,arrow:c.Arrow,...F},slotProps:{arrow:k.arrow??l.arrow,popper:{...x,...ft??l.popper},tooltip:k.tooltip??l.tooltip,transition:{...L,...rs??l.transition}}},[Ro,rn]=ht("popper",{elementType:Cx,externalForwardedProps:nn,ownerState:Gt,className:ae(Er.popper,x==null?void 0:x.className)}),[Sr,wr]=ht("transition",{elementType:Zr,externalForwardedProps:nn,ownerState:Gt}),[jo,os]=ht("tooltip",{elementType:Tx,className:Er.tooltip,externalForwardedProps:nn,ownerState:Gt}),[ko,is]=ht("arrow",{elementType:Ox,className:Er.arrow,externalForwardedProps:nn,ownerState:Gt,ref:ne});return h.jsxs(v.Fragment,{children:[v.cloneElement(q,$e),h.jsx(Ro,{as:N??qa,placement:P,anchorEl:C?{getBoundingClientRect:()=>({top:jr.y,left:jr.x,right:jr.x,bottom:jr.y,width:0,height:0})}:A,popperRef:Ne,open:A?V:!1,id:he,transition:!0,...tt,...rn,popperOptions:ns,children:({TransitionProps:ue})=>h.jsx(Sr,{timeout:G.transitions.duration.shorter,...ue,...wr,children:h.jsxs(jo,{...os,children:[$,o?h.jsx(ko,{...is}):null]})})})]})});process.env.NODE_ENV!=="production"&&(go.propTypes={arrow:s.bool,children:Vn.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.oneOfType([s.func,s.object]),popper:s.oneOfType([s.func,s.object]),tooltip:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});var Rx=function(e,t,n,r,o,i,a,c){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,c],d=0;l=new Error(t.replace(/%s/g,function(){return u[d++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},jx=Rx;const Qr=xa(jx),kx=v.createContext(null);function Px(e){const{children:t,unmountAfter:n=1e3}=e,[r,o]=v.useState([]),i=v.useId(),a=v.useRef(0),c=v.useCallback(function(m,b,g={}){const{onClose:p=async()=>{}}=g;let y;const C=new Promise(E=>{y=E});Qr(y,"resolve not set");const T=`${i}-${a.current}`;a.current+=1;const w={key:T,open:!0,promise:C,Component:m,payload:b,onClose:p,resolve:y};return o(E=>[...E,w]),C},[i]),l=v.useCallback(function(m){o(b=>b.map(g=>g.promise===m?{...g,open:!1}:g)),setTimeout(()=>{o(b=>b.filter(g=>g.promise!==m))},n)},[n]),u=v.useCallback(async function(m,b){const g=r.find(p=>p.promise===m);return Qr(g,"dialog not found"),await g.onClose(b),g.resolve(b),l(m),m},[r,l]),d=v.useMemo(()=>({open:c,close:u}),[c,u]);return h.jsxs(kx.Provider,{value:d,children:[t,r.map(({key:f,open:m,Component:b,payload:g,promise:p})=>h.jsx(b,{payload:g,open:m,onClose:async y=>{await u(p,y)}},f))]})}const Xa=v.createContext(null),Ja=v.createContext([]),Za=v.createContext({paletteMode:"light",setPaletteMode:()=>{},isDualTheme:!1}),Hi=v.createContext(null),$f=v.createContext(void 0),oa=typeof mf({})=="function",Nx=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),Ax=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Df=(e,t=!1)=>{var i,a;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([c,l])=>{var d,f;const u=e.getColorSchemeSelector(c);u.startsWith("@")?n[u]={":root":{colorScheme:(d=l.palette)==null?void 0:d.mode}}:n[u.replace(/\s*&/,"")]={colorScheme:(f=l.palette)==null?void 0:f.mode}});let r={html:Nx(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Ax(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(a=(i=e.components)==null?void 0:i.MuiCssBaseline)==null?void 0:a.styleOverrides;return o&&(r=[r,o]),r},Jo="mui-ecs",Ix=e=>{const t=Df(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Jo})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var a,c;const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${Jo}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${Jo}))`]:{colorScheme:(c=o.palette)==null?void 0:c.mode}}}),t},_x=mf(oa?({theme:e,enableColorScheme:t})=>Df(e,t):({theme:e})=>Ix(e));function Qa(e){const t=Te({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return h.jsxs(v.Fragment,{children:[oa&&h.jsx(_x,{enableColorScheme:r}),!oa&&!r&&h.jsx("span",{className:Jo,style:{display:"none"}}),n]})}process.env.NODE_ENV!=="production"&&(Qa.propTypes={children:s.node,enableColorScheme:s.bool});const Mx={parse:e=>e,stringify:e=>e},eo=new Map;function $x(e,t){let n=eo.get(e);n||(n=new Set,eo.set(e,n)),n.add(t)}function Dx(e,t){const n=eo.get(e);n&&(n.delete(t),n.size===0&&eo.delete(e))}function Lf(e){const t=eo.get(e);t&&t.forEach(n=>n())}if(typeof window<"u"){const e=window.localStorage.setItem;window.localStorage.setItem=function(n,r){const o=e.call(this,n,r);return Lf(n),o}}function Lx(e,t,n){if(!t)return()=>{};const r=o=>{o.storageArea===e&&o.key===t&&n()};return window.addEventListener("storage",r),$x(t,n),()=>{window.removeEventListener("storage",r),Dx(t,n)}}function Bx(e,t){if(!t)return null;try{return e.getItem(t)}catch{return null}}function Fx(e,t,n){if(t){try{n===null?e.removeItem(t):e.setItem(t,String(n))}catch{return}Lf(t)}}const Vx=[null,()=>{}];function Ux(){return Vx}function Bl(e,t){return t===null?null:e.stringify(t)}function zx(e,t){return t===null?null:e.parse(t)}const Wx=()=>null;function Hx(e,t,n=null,r){const o=(r==null?void 0:r.codec)??Mx,[i]=v.useState(n),a=v.useMemo(()=>Bl(o,i),[o,i]),c=v.useCallback(g=>Lx(e,t,g),[e,t]),l=v.useCallback(()=>Bx(e,t)??a,[e,a,t]),u=v.useSyncExternalStore(c,l,Wx),d=v.useMemo(()=>zx(o,u),[o,u]),f=v.useCallback(g=>{const p=g instanceof Function?g(d):g,y=Bl(o,p);Fx(e,t,y)},[e,o,d,t]),[m,b]=v.useState(i);return t?[d,f]:[m,b]}const qx=(...e)=>Hx(window.localStorage,...e),Gx=typeof window>"u"?Ux:qx;var Fl,Vl,Ul;const Yx="data-toolpad-color-scheme",zl="toolpad-color-scheme",ia="toolpad-mode";function Bf(e){return D.useMediaQuery("(prefers-color-scheme: dark)",e&&{matchMedia:e.matchMedia})?"dark":"light"}function ec(e){return"vars"in e}function Kx(e){const{children:t,theme:n,window:r}=e;Qr(!ec(n),"This provider only accepts legacy themes.");const o="light"in n||"dark"in n,i=Bf(r),[a,c]=Gx(ia,"system"),l=!a||a==="system"?i:a,u=v.useMemo(()=>o?n[l==="dark"?"dark":"light"]??n[l==="dark"?"light":"dark"]:n,[o,l,n]),d=v.useMemo(()=>({paletteMode:l,setPaletteMode:c,isDualTheme:o}),[o,l,c]);return h.jsx(ff,{theme:u,children:h.jsxs(Za.Provider,{value:d,children:[Fl||(Fl=h.jsx(Qa,{enableColorScheme:!0})),t]})})}function Xx(e){const{children:t,window:n}=e,r=Bf(n),{mode:o,setMode:i,allColorSchemes:a}=Hy(),c=v.useMemo(()=>({paletteMode:!o||o==="system"?r:o,setPaletteMode:i,isDualTheme:a.length>1}),[a,o,r,i]);return h.jsx(Za.Provider,{value:c,children:t})}function Jx(e){const{children:t,theme:n,window:r}=e;return Qr(ec(n),"This provider only accepts CSS vars themes."),h.jsxs(ff,{theme:n,documentNode:r==null?void 0:r.document,colorSchemeNode:r==null?void 0:r.document.documentElement,disableNestedContext:!0,colorSchemeStorageKey:zl,modeStorageKey:ia,children:[Vl||(Vl=h.jsx(zy,{attribute:Yx,colorSchemeStorageKey:zl,modeStorageKey:ia})),h.jsxs(Xx,{window:r,children:[Ul||(Ul=h.jsx(Qa,{enableColorScheme:!0})),t]})]})}function Zx(e){const{children:t,theme:n,...r}=e;return ec(n)?h.jsx(Jx,{theme:n,...r,children:t}):h.jsx(Kx,{theme:n,...r,children:t})}const qi=v.createContext(null),tc=v.createContext(null);function Qx(){return Fi({cssVariables:{colorSchemeSelector:"data-toolpad-color-scheme"},colorSchemes:{dark:!0}})}function Ff(e){const{children:t,theme:n=Qx(),branding:r=null,navigation:o=[],router:i=null,authentication:a=null,session:c=null,window:l}=e;return h.jsx($f.Provider,{value:l,children:h.jsx(qi.Provider,{value:a,children:h.jsx(tc.Provider,{value:c,children:h.jsx(Hi.Provider,{value:i,children:h.jsx(Zx,{theme:n,window:l,children:h.jsx(uv,{children:h.jsx(Px,{children:h.jsx(Xa.Provider,{value:r,children:h.jsx(Ja.Provider,{value:o,children:t})})})})})})})})})}process.env.NODE_ENV!=="production"&&(Ff.propTypes={authentication:s.shape({signIn:s.func.isRequired,signOut:s.func.isRequired}),branding:s.shape({logo:s.node,title:s.string}),children:s.node,navigation:s.arrayOf(s.oneOfType([s.shape({action:s.node,children:s.arrayOf(s.oneOfType([s.object,s.shape({kind:s.oneOf(["header"]).isRequired,title:s.string.isRequired}),s.shape({kind:s.oneOf(["divider"]).isRequired})]).isRequired),icon:s.node,kind:s.oneOf(["page"]),pattern:s.string,segment:s.string,title:s.string}),s.shape({kind:s.oneOf(["header"]).isRequired,title:s.string.isRequired}),s.shape({kind:s.oneOf(["divider"]).isRequired})]).isRequired),router:s.shape({navigate:s.func.isRequired,pathname:s.string.isRequired,searchParams:s.instanceOf(URLSearchParams).isRequired}),session:s.shape({user:s.shape({email:s.string,id:s.string,image:s.string,name:s.string})}),theme:s.object,window:s.object});function e0(e){return Ce("MuiAppBar",e)}Oe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const t0=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${de(t)}`,`position${de(n)}`]};return Pe(o,e0,r)},Wl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,n0=ce(Ui,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${de(n.position)}`],t[`color${de(n.color)}`]]}})(Ve(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(lr(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?Wl(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?Wl(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),Vf=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:c="fixed",...l}=r,u={...r,color:i,position:c,enableColorOnDark:a},d=t0(u);return h.jsx(n0,{square:!0,component:"header",ownerState:u,elevation:4,className:ae(d.root,o,c==="fixed"&&"mui-fixed"),ref:n,...l})});process.env.NODE_ENV!=="production"&&(Vf.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","inherit","primary","secondary","transparent","error","info","success","warning"]),s.string]),enableColorOnDark:s.bool,position:s.oneOf(["absolute","fixed","relative","static","sticky"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const r0=Oe("MuiBox",["root"]),o0=Fi(),on=Rd({themeId:At,defaultTheme:o0,defaultClassName:r0.root,generateClassName:Oa.generate});process.env.NODE_ENV!=="production"&&(on.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function i0(e){const t=_t(e);return t.body===e?fn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ur(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Hl(e){return parseInt(fn(e).getComputedStyle(e).paddingRight,10)||0}function s0(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ql(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const c=!i.includes(a),l=!s0(a);c&&l&&Ur(a,o)})}function xs(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function a0(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(i0(r)){const a=Dg(fn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Hl(r)+a}px`;const c=_t(r).querySelectorAll(".mui-fixed");[].forEach.call(c,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Hl(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=_t(r).body;else{const a=r.parentElement,c=fn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&c.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:c})=>{i?a.style.setProperty(c,i):a.style.removeProperty(c)})}}function c0(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class l0{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Ur(t.modalRef,!1);const o=c0(n);ql(n,t.mount,t.modalRef,o,!0);const i=xs(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=xs(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=a0(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=xs(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Ur(t.modalRef,n),ql(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Ur(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const u0=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function d0(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function f0(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function p0(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||f0(e))}function h0(e){const t=[],n=[];return Array.from(e.querySelectorAll(u0)).forEach((r,o)=>{const i=d0(r);i===-1||!p0(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function m0(){return!0}function gi(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=h0,isEnabled:a=m0,open:c}=e,l=v.useRef(!1),u=v.useRef(null),d=v.useRef(null),f=v.useRef(null),m=v.useRef(null),b=v.useRef(!1),g=v.useRef(null),p=et(yr(t),g),y=v.useRef(null);v.useEffect(()=>{!c||!g.current||(b.current=!n)},[n,c]),v.useEffect(()=>{if(!c||!g.current)return;const w=_t(g.current);return g.current.contains(w.activeElement)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
236
|
+
`)),g.current.setAttribute("tabIndex","-1")),b.current&&g.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[c]),v.useEffect(()=>{if(!c||!g.current)return;const w=_t(g.current),E=R=>{y.current=R,!(r||!a()||R.key!=="Tab")&&w.activeElement===g.current&&R.shiftKey&&(l.current=!0,d.current&&d.current.focus())},S=()=>{var N,x;const R=g.current;if(R===null)return;if(!w.hasFocus()||!a()||l.current){l.current=!1;return}if(R.contains(w.activeElement)||r&&w.activeElement!==u.current&&w.activeElement!==d.current)return;if(w.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!b.current)return;let P=[];if((w.activeElement===u.current||w.activeElement===d.current)&&(P=i(g.current)),P.length>0){const k=!!((N=y.current)!=null&&N.shiftKey&&((x=y.current)==null?void 0:x.key)==="Tab"),F=P[0],$=P[P.length-1];typeof F!="string"&&typeof $!="string"&&(k?$.focus():F.focus())}else R.focus()};w.addEventListener("focusin",S),w.addEventListener("keydown",E,!0);const O=setInterval(()=>{w.activeElement&&w.activeElement.tagName==="BODY"&&S()},50);return()=>{clearInterval(O),w.removeEventListener("focusin",S),w.removeEventListener("keydown",E,!0)}},[n,r,o,a,c,i]);const C=w=>{f.current===null&&(f.current=w.relatedTarget),b.current=!0,m.current=w.target;const E=t.props.onFocus;E&&E(w)},T=w=>{f.current===null&&(f.current=w.relatedTarget),b.current=!0};return h.jsxs(v.Fragment,{children:[h.jsx("div",{tabIndex:c?0:-1,onFocus:T,ref:u,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:p,onFocus:C}),h.jsx("div",{tabIndex:c?0:-1,onFocus:T,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(gi.propTypes={children:Vn,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(gi.propTypes=Di(gi.propTypes));const g0={entering:{opacity:1},entered:{opacity:1}},Uf=v.forwardRef(function(t,n){const r=gn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:c,easing:l,in:u,onEnter:d,onEntered:f,onEntering:m,onExit:b,onExited:g,onExiting:p,style:y,timeout:C=o,TransitionComponent:T=Rt,...w}=t,E=v.useRef(null),S=et(E,yr(c),n),O=z=>L=>{if(z){const B=E.current;L===void 0?z(B):z(B,L)}},R=O(m),P=O((z,L)=>{Ka(z);const B=pn({style:y,timeout:C,easing:l},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",B),z.style.transition=r.transitions.create("opacity",B),d&&d(z,L)}),N=O(f),x=O(p),k=O(z=>{const L=pn({style:y,timeout:C,easing:l},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",L),z.style.transition=r.transitions.create("opacity",L),b&&b(z)}),F=O(g),$=z=>{i&&i(E.current,z)};return h.jsx(T,{appear:a,in:u,nodeRef:E,onEnter:P,onEntered:N,onEntering:R,onExit:k,onExited:F,onExiting:x,addEndListener:$,timeout:C,...w,children:(z,{ownerState:L,...B})=>v.cloneElement(c,{style:{opacity:0,visibility:z==="exited"&&!u?"hidden":void 0,...g0[z],...y,...c.props.style},ref:S,...B})})});process.env.NODE_ENV!=="production"&&(Uf.propTypes={addEndListener:s.func,appear:s.bool,children:Vn.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function y0(e){return Ce("MuiBackdrop",e)}Oe("MuiBackdrop",["root","invisible"]);const v0=e=>{const{classes:t,invisible:n}=e;return Pe({root:["root",n&&"invisible"]},y0,t)},b0=ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),zf=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:c=!1,open:l,components:u={},componentsProps:d={},slotProps:f={},slots:m={},TransitionComponent:b,transitionDuration:g,...p}=r,y={...r,component:a,invisible:c},C=v0(y),T={transition:b,root:u.Root,...m},w={...d,...f},E={slots:T,slotProps:w},[S,O]=ht("root",{elementType:b0,externalForwardedProps:E,className:ae(C.root,i),ownerState:y}),[R,P]=ht("transition",{elementType:Uf,externalForwardedProps:E,ownerState:y});return h.jsx(R,{in:l,timeout:g,...p,...P,children:h.jsx(S,{"aria-hidden":!0,...O,classes:C,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(zf.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function x0(e){return typeof e=="function"?e():e}function E0(e){return e?e.props.hasOwnProperty("in"):!1}const Gl=()=>{},Do=new l0;function S0(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:c,onClose:l,open:u,rootRef:d}=e,f=v.useRef({}),m=v.useRef(null),b=v.useRef(null),g=et(b,d),[p,y]=v.useState(!u),C=E0(c);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const w=()=>_t(m.current),E=()=>(f.current.modalRef=b.current,f.current.mount=m.current,f.current),S=()=>{Do.mount(E(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},O=cn(()=>{const L=x0(t)||w().body;Do.add(E(),L),b.current&&S()}),R=()=>Do.isTopModal(E()),P=cn(L=>{m.current=L,L&&(u&&R()?S():b.current&&Ur(b.current,T))}),N=v.useCallback(()=>{Do.remove(E(),T)},[T]);v.useEffect(()=>()=>{N()},[N]),v.useEffect(()=>{u?O():(!C||!o)&&N()},[u,N,C,o,O]);const x=L=>B=>{var q;(q=L.onKeyDown)==null||q.call(L,B),!(B.key!=="Escape"||B.which===229||!R())&&(n||(B.stopPropagation(),l&&l(B,"escapeKeyDown")))},k=L=>B=>{var q;(q=L.onClick)==null||q.call(L,B),B.target===B.currentTarget&&l&&l(B,"backdropClick")};return{getRootProps:(L={})=>{const B=qd(e);delete B.onTransitionEnter,delete B.onTransitionExited;const q={...B,...L};return{role:"presentation",...q,onKeyDown:x(q),ref:g}},getBackdropProps:(L={})=>{const B=L;return{"aria-hidden":!0,...B,onClick:k(B),open:u}},getTransitionProps:()=>{const L=()=>{y(!1),i&&i()},B=()=>{y(!0),a&&a(),o&&N()};return{onEnter:rl(L,(c==null?void 0:c.props.onEnter)??Gl),onExited:rl(B,(c==null?void 0:c.props.onExited)??Gl)}},rootRef:g,portalRef:P,isTopModal:R,exited:p,hasTransition:C}}function w0(e){return Ce("MuiModal",e)}Oe("MuiModal",["root","hidden","backdrop"]);const C0=e=>{const{open:t,exited:n,classes:r}=e;return Pe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},w0,r)},T0=ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ve(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),O0=ce(zf,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),nc=v.forwardRef(function(t,n){const r=Te({name:"MuiModal",props:t}),{BackdropComponent:o=O0,BackdropProps:i,classes:a,className:c,closeAfterTransition:l=!1,children:u,container:d,component:f,components:m={},componentsProps:b={},disableAutoFocus:g=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:y=!1,disablePortal:C=!1,disableRestoreFocus:T=!1,disableScrollLock:w=!1,hideBackdrop:E=!1,keepMounted:S=!1,onBackdropClick:O,onClose:R,onTransitionEnter:P,onTransitionExited:N,open:x,slotProps:k={},slots:F={},theme:$,...z}=r,L={...r,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:p,disableEscapeKeyDown:y,disablePortal:C,disableRestoreFocus:T,disableScrollLock:w,hideBackdrop:E,keepMounted:S},{getRootProps:B,getBackdropProps:q,getTransitionProps:G,portalRef:Z,isTopModal:A,exited:W,hasTransition:te}=S0({...L,rootRef:n}),ne={...L,exited:W},Y=C0(ne),J={};if(u.props.tabIndex===void 0&&(J.tabIndex="-1"),te){const{onEnter:V,onExited:he}=G();J.onEnter=V,J.onExited=he}const U={...z,slots:{root:m.Root,backdrop:m.Backdrop,...F},slotProps:{...b,...k}},[Q,ee]=ht("root",{elementType:T0,externalForwardedProps:U,getSlotProps:B,additionalProps:{ref:n,as:f},ownerState:ne,className:ae(c,Y==null?void 0:Y.root,!ne.open&&ne.exited&&(Y==null?void 0:Y.hidden))}),[oe,K]=ht("backdrop",{elementType:o,externalForwardedProps:U,additionalProps:i,getSlotProps:V=>q({...V,onClick:he=>{O&&O(he),V!=null&&V.onClick&&V.onClick(he)}}),className:ae(i==null?void 0:i.className,Y==null?void 0:Y.backdrop),ownerState:ne}),ie=et(i==null?void 0:i.ref,K.ref);return!S&&!x&&(!te||W)?null:h.jsx(Jr,{ref:Z,container:d,disablePortal:C,children:h.jsxs(Q,{...ee,children:[!E&&o?h.jsx(oe,{...K,ref:ie}):null,h.jsx(gi,{disableEnforceFocus:p,disableAutoFocus:g,disableRestoreFocus:T,isEnabled:A,open:x,children:v.cloneElement(u,J)})]})})});process.env.NODE_ENV!=="production"&&(nc.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Vn.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Qt,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onBackdropClick:s.func,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function R0(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=fn(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=i.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let c=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");c=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?o?`translateX(${o.right+c-r.left}px)`:`translateX(${i.innerWidth+c-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-c}px)`:`translateX(-${r.left+r.width-c}px)`:e==="up"?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function Wf(e){return typeof e=="function"?e():e}function Lo(e,t,n){const r=Wf(n),o=R0(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Hf=v.forwardRef(function(t,n){const r=gn(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:c=!0,children:l,container:u,direction:d="down",easing:f=o,in:m,onEnter:b,onEntered:g,onEntering:p,onExit:y,onExited:C,onExiting:T,style:w,timeout:E=i,TransitionComponent:S=Rt,...O}=t,R=v.useRef(null),P=et(yr(l),R,n),N=G=>Z=>{G&&(Z===void 0?G(R.current):G(R.current,Z))},x=N((G,Z)=>{Lo(d,G,u),Ka(G),b&&b(G,Z)}),k=N((G,Z)=>{const A=pn({timeout:E,style:w,easing:f},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",{...A}),G.style.transition=r.transitions.create("transform",{...A}),G.style.webkitTransform="none",G.style.transform="none",p&&p(G,Z)}),F=N(g),$=N(T),z=N(G=>{const Z=pn({timeout:E,style:w,easing:f},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Z),G.style.transition=r.transitions.create("transform",Z),Lo(d,G,u),y&&y(G)}),L=N(G=>{G.style.webkitTransition="",G.style.transition="",C&&C(G)}),B=G=>{a&&a(R.current,G)},q=v.useCallback(()=>{R.current&&Lo(d,R.current,u)},[d,u]);return v.useEffect(()=>{if(m||d==="down"||d==="right")return;const G=Fd(()=>{R.current&&Lo(d,R.current,u)}),Z=fn(R.current);return Z.addEventListener("resize",G),()=>{G.clear(),Z.removeEventListener("resize",G)}},[d,m,u]),v.useEffect(()=>{m||q()},[m,q]),h.jsx(S,{nodeRef:R,onEnter:x,onEntered:F,onEntering:k,onExit:z,onExited:L,onExiting:$,addEndListener:B,appear:c,in:m,timeout:E,...O,children:(G,{ownerState:Z,...A})=>v.cloneElement(l,{ref:P,style:{visibility:G==="exited"&&!m?"hidden":void 0,...w,...l.props.style},...A})})});process.env.NODE_ENV!=="production"&&(Hf.propTypes={addEndListener:s.func,appear:s.bool,children:Vn.isRequired,container:tn(s.oneOfType([Qt,s.func]),e=>{if(e.open){const t=Wf(e.container);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `container` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
237
237
|
`))}else if(!t||typeof t.getBoundingClientRect!="function"||t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `container` prop provided to the component is invalid.","It should be an HTML element instance."].join(`
|
|
238
|
-
`))}return null}),direction:s.oneOf(["down","left","right","up"]),easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function
|
|
239
|
-
`))}return{top:
|
|
240
|
-
`)),b!==null&&ve<b){const
|
|
238
|
+
`))}return null}),direction:s.oneOf(["down","left","right","up"]),easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function j0(e){return Ce("MuiDrawer",e)}Oe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const qf=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},k0=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${de(n)}`,r!=="temporary"&&`paperAnchorDocked${de(n)}`]};return Pe(o,j0,t)},P0=ce(nc,{name:"MuiDrawer",slot:"Root",overridesResolver:qf})(Ve(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Yl=ce("div",{shouldForwardProp:Vi,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:qf})({flex:"0 0 auto"}),N0=ce(Ui,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${de(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${de(n.anchor)}`]]}})(Ve(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Gf={left:"right",right:"left",top:"down",bottom:"up"};function A0(e){return["left","right"].includes(e)}function I0({direction:e},t){return e==="rtl"&&A0(t)?Gf[t]:t}const Zo=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDrawer"}),o=gn(),i=Aa(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:c="left",BackdropProps:l,children:u,className:d,elevation:f=16,hideBackdrop:m=!1,ModalProps:{BackdropProps:b,...g}={},onClose:p,open:y=!1,PaperProps:C={},SlideProps:T,TransitionComponent:w=Hf,transitionDuration:E=a,variant:S="temporary",...O}=r,R=v.useRef(!1);v.useEffect(()=>{R.current=!0},[]);const P=I0({direction:i?"rtl":"ltr"},c),x={...r,anchor:c,elevation:f,open:y,variant:S,...O},k=k0(x),F=h.jsx(N0,{elevation:S==="temporary"?f:0,square:!0,...C,className:ae(k.paper,C.className),ownerState:x,children:u});if(S==="permanent")return h.jsx(Yl,{className:ae(k.root,k.docked,d),ownerState:x,ref:n,...O,children:F});const $=h.jsx(w,{in:y,direction:Gf[P],timeout:E,appear:R.current,...T,children:F});return S==="persistent"?h.jsx(Yl,{className:ae(k.root,k.docked,d),ownerState:x,ref:n,...O,children:$}):h.jsx(P0,{BackdropProps:{...l,...b,transitionDuration:E},className:ae(k.root,k.modal,d),open:y,ownerState:x,onClose:p,hideBackdrop:m,ref:n,...O,...g,children:$})});process.env.NODE_ENV!=="production"&&(Zo.propTypes={anchor:s.oneOf(["bottom","left","right","top"]),BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,elevation:sr,hideBackdrop:s.bool,ModalProps:s.object,onClose:s.func,open:s.bool,PaperProps:s.object,SlideProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),variant:s.oneOf(["permanent","persistent","temporary"])});const at=nf({createStyledComponent:ce("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Te({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(at.propTypes={children:s.node,component:s.elementType,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),useFlexGap:s.bool});function _0(e){return Ce("MuiToolbar",e)}Oe("MuiToolbar",["root","gutters","regular","dense"]);const M0=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Pe({root:["root",!n&&"gutters",r]},_0,t)},$0=ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Ve(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),Qo=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:c="regular",...l}=r,u={...r,component:i,disableGutters:a,variant:c},d=M0(u);return h.jsx($0,{as:i,className:ae(d.root,o),ref:n,ownerState:u,...l})});process.env.NODE_ENV!=="production"&&(Qo.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disableGutters:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["dense","regular"]),s.string])});const Kl=wg({themeId:At}),D0=Ue(h.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),L0=Ue(h.jsx("path",{d:"M3 18h13v-2H3zm0-5h10v-2H3zm0-7v2h13V6zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5z"}),"MenuOpen"),rc=v.forwardRef(function(t,n){const{children:r,href:o,onClick:i,history:a,...c}=t,l=v.useContext(Hi),u=v.useMemo(()=>l?d=>{d.preventDefault();const f=new URL(d.currentTarget.href);l.navigate(f.pathname,{history:a}),i==null||i(d)}:i,[l,i,a]);return h.jsx("a",{ref:n,href:o,...c,onClick:u,children:r})});function B0(e){return Ce("MuiPopover",e)}Oe("MuiPopover",["root","paper"]);function Xl(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Jl(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Zl(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ei(e){return typeof e=="function"?e():e}const F0=e=>{const{classes:t}=e;return Pe({root:["root"],paper:["paper"]},B0,t)},V0=ce(nc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),U0=ce(Ui,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Yf=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:l="anchorEl",children:u,className:d,container:f,elevation:m=8,marginThreshold:b=16,open:g,PaperProps:p={},slots:y={},slotProps:C={},transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:w=Zr,transitionDuration:E="auto",TransitionProps:{onEntering:S,...O}={},disableScrollLock:R=!1,...P}=r,N=(C==null?void 0:C.paper)??p,x=v.useRef(),k={...r,anchorOrigin:a,anchorReference:l,elevation:m,marginThreshold:b,externalPaperSlotProps:N,transformOrigin:T,TransitionComponent:w,transitionDuration:E,TransitionProps:O},F=F0(k),$=v.useCallback(()=>{if(l==="anchorPosition")return process.env.NODE_ENV!=="production"&&(c||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),c;const K=ei(i),ie=K&&K.nodeType===1?K:_t(x.current).body,V=ie.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const he=ie.getBoundingClientRect();process.env.NODE_ENV!=="test"&&he.top===0&&he.left===0&&he.right===0&&he.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
239
|
+
`))}return{top:V.top+Xl(V,a.vertical),left:V.left+Jl(V,a.horizontal)}},[i,a.horizontal,a.vertical,c,l]),z=v.useCallback(K=>({vertical:Xl(K,T.vertical),horizontal:Jl(K,T.horizontal)}),[T.horizontal,T.vertical]),L=v.useCallback(K=>{const ie={width:K.offsetWidth,height:K.offsetHeight},V=z(ie);if(l==="none")return{top:null,left:null,transformOrigin:Zl(V)};const he=$();let X=he.top-V.vertical,ve=he.left-V.horizontal;const De=X+ie.height,ge=ve+ie.width,Le=fn(ei(i)),Be=Le.innerHeight-b,Je=Le.innerWidth-b;if(b!==null&&X<b){const Me=X-b;X-=Me,V.vertical+=Me}else if(b!==null&&De>Be){const Me=De-Be;X-=Me,V.vertical+=Me}if(process.env.NODE_ENV!=="production"&&ie.height>Be&&ie.height&&Be&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ie.height-Be}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
240
|
+
`)),b!==null&&ve<b){const Me=ve-b;ve-=Me,V.horizontal+=Me}else if(ge>Je){const Me=ge-Je;ve-=Me,V.horizontal+=Me}return{top:`${Math.round(X)}px`,left:`${Math.round(ve)}px`,transformOrigin:Zl(V)}},[i,l,$,z,b]),[B,q]=v.useState(g),G=v.useCallback(()=>{const K=x.current;if(!K)return;const ie=L(K);ie.top!==null&&K.style.setProperty("top",ie.top),ie.left!==null&&(K.style.left=ie.left),K.style.transformOrigin=ie.transformOrigin,q(!0)},[L]);v.useEffect(()=>(R&&window.addEventListener("scroll",G),()=>window.removeEventListener("scroll",G)),[i,R,G]);const Z=(K,ie)=>{S&&S(K,ie),G()},A=()=>{q(!1)};v.useEffect(()=>{g&&G()}),v.useImperativeHandle(o,()=>g?{updatePosition:()=>{G()}}:null,[g,G]),v.useEffect(()=>{if(!g)return;const K=Fd(()=>{G()}),ie=fn(i);return ie.addEventListener("resize",K),()=>{K.clear(),ie.removeEventListener("resize",K)}},[i,g,G]);let W=E;E==="auto"&&!w.muiSupportAuto&&(W=void 0);const te=f||(i?_t(ei(i)).body:void 0),ne={slots:y,slotProps:{...C,paper:N}},[Y,J]=ht("paper",{elementType:U0,externalForwardedProps:ne,additionalProps:{elevation:m,className:ae(F.paper,N==null?void 0:N.className),style:B?N.style:{...N.style,opacity:0}},ownerState:k}),[U,{slotProps:Q,...ee}]=ht("root",{elementType:V0,externalForwardedProps:ne,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:te,open:g},ownerState:k,className:ae(F.root,d)}),oe=et(x,J.ref);return h.jsx(U,{...ee,...!na(U)&&{slotProps:Q,disableScrollLock:R},...P,ref:n,children:h.jsx(w,{appear:!0,in:g,onEntering:Z,onExited:A,timeout:W,...O,children:h.jsx(Y,{...J,ref:oe,children:u})})})});process.env.NODE_ENV!=="production"&&(Yf.propTypes={action:Li,anchorEl:tn(s.oneOfType([Qt,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=ei(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
241
241
|
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
242
|
-
`))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([Zt,s.func]),disableScrollLock:s.bool,elevation:ir,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:uo}),slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function L0(e){return Te("MuiDivider",e)}Oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const B0=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:c,variant:l}=e;return Ne({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",c==="right"&&a!=="vertical"&&"textAlignRight",c==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},L0,r)},F0=ce("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Ve(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ue(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),V0=ce("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ve(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),eo=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:c="horizontal",component:l=i||c==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:f=l!=="hr"?"separator":void 0,textAlign:h="center",variant:b="fullWidth",...m}=r,p={...r,absolute:o,component:l,flexItem:u,light:d,orientation:c,role:f,textAlign:h,variant:b},y=B0(p);return g.jsx(F0,{as:l,className:ae(y.root,a),role:f,ref:n,ownerState:p,"aria-orientation":f==="separator"&&(l!=="hr"||c==="vertical")?c:void 0,...m,children:i?g.jsx(V0,{className:y.wrapper,ownerState:p,children:i}):null})});eo&&(eo.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(eo.propTypes={absolute:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,flexItem:s.bool,light:s.bool,orientation:s.oneOf(["horizontal","vertical"]),role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),textAlign:s.oneOf(["center","left","right"]),variant:s.oneOfType([s.oneOf(["fullWidth","inset","middle"]),s.string])});const Hf={signInLabel:"Sign In",signOutLabel:"Sign Out",iconButtonAriaLabel:"Current User"},qf=v.createContext(Hf);function Xl({localeText:e,children:t}){const n=v.useMemo(()=>({...Hf,...e}),[e]);return g.jsx(qf.Provider,{value:n,children:t})}function Qa(){return v.useContext(qf)}function U0(e){const t=v.useContext(zi),n=Qa();return g.jsx(za,{disableElevation:!0,variant:"contained",size:"small",onClick:t==null?void 0:t.signIn,sx:{textTransform:"capitalize",filter:"opacity(0.9)",width:"50%",margin:r=>`${r.spacing(1)} auto`,transition:"filter 0.2s ease-in","&:hover":{filter:"opacity(1)"}},...e,children:(n==null?void 0:n.signInLabel)||"Sign In"})}const Gf=Ge(g.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var Jl;function Yf(e){const t=v.useContext(zi),n=Qa();return g.jsx(za,{disabled:!t,variant:"outlined",size:"small",disableElevation:!0,onClick:t==null?void 0:t.signOut,sx:{textTransform:"capitalize",fontWeight:"normal",filter:"opacity(0.9)",transition:"filter 0.2s ease-in","&:hover":{filter:"opacity(1)"}},startIcon:Jl||(Jl=g.jsx(Gf,{})),...e,children:n.signOutLabel})}const z0=Ge(g.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var Zl;function hi(e){var d,f,h,b,m,p,y;const{slots:t,variant:n="condensed",slotProps:r,open:o,handleClick:i,sx:a}=e,c=v.useContext(Xa),l=Qa();if(!c||!c.user)return null;const u=t!=null&&t.avatar?g.jsx(t.avatar,{}):g.jsx(Ua,{src:((d=c.user)==null?void 0:d.image)||"",alt:((f=c.user)==null?void 0:f.name)||((h=c.user)==null?void 0:h.email)||"",sx:{height:n==="expanded"?48:32,width:n==="expanded"?48:32},...r==null?void 0:r.avatar});return n==="expanded"?g.jsxs(at,{direction:"row",justifyContent:"space-between",sx:{py:1,px:2,gap:2,...a},children:[g.jsxs(at,{direction:"row",justifyContent:"flex-start",spacing:2,children:[u,g.jsxs(at,{direction:"column",justifyContent:"space-evenly",children:[g.jsx(Et,{variant:"body2",fontWeight:"bolder",noWrap:!0,children:(b=c.user)==null?void 0:b.name}),g.jsx(Et,{variant:"caption",noWrap:!0,children:(m=c.user)==null?void 0:m.email})]})]}),i&&(t!=null&&t.moreIconButton?g.jsx(t.moreIconButton,{}):g.jsx(Gr,{size:"small",onClick:i,...r==null?void 0:r.moreIconButton,sx:{alignSelf:"center",...(p=r==null?void 0:r.moreIconButton)==null?void 0:p.sx},children:Zl||(Zl=g.jsx(z0,{fontSize:"small"}))}))]}):g.jsx(mo,{title:c.user.name??"Account",children:t!=null&&t.avatarIconButton?g.jsx(t.avatarIconButton,{...r==null?void 0:r.avatarIconButton}):g.jsx(at,{sx:{py:.5,...a},children:g.jsx(Gr,{onClick:i,"aria-label":l.iconButtonAriaLabel||"Current User",size:"small","aria-controls":o?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,...r==null?void 0:r.avatarIconButton,sx:{width:"fit-content",margin:"0 auto",...(y=r==null?void 0:r.avatarIconButton)==null?void 0:y.sx},children:u})})})}process.env.NODE_ENV!=="production"&&(hi.propTypes={handleClick:s.func,open:s.bool,slotProps:s.shape({avatar:s.object,avatarIconButton:s.object,moreIconButton:s.object}),slots:s.shape({avatar:s.elementType,avatarIconButton:s.elementType,moreIconButton:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["condensed","expanded"])});function W0(e){const{children:t,...n}=e;return g.jsx(at,{...n,children:t})}function Kf(e){const{children:t,...n}=e;return g.jsx(on,{...n,sx:{display:"flex",flexDirection:"row",p:1,justifyContent:"flex-end",...n.sx},children:t})}var Ql,eu;function ec(e){var f;const{localeText:t}=e,{slots:n,slotProps:r}=e,[o,i]=v.useState(null),a=v.useContext(Xa),c=v.useContext(zi),l=!!o,u=h=>{i(h.currentTarget)},d=()=>{i(null)};return c?a!=null&&a.user?g.jsxs(Xl,{localeText:t,children:[n!=null&&n.preview?g.jsx(n.preview,{handleClick:u,open:l}):g.jsx(hi,{variant:"condensed",handleClick:u,open:l,...r==null?void 0:r.preview}),n!=null&&n.popover?g.jsx(n.popover,{open:l,onClick:u,onClose:d,...r==null?void 0:r.popover}):g.jsx(Wf,{anchorEl:o,id:"account-menu",open:l,onClose:d,onClick:d,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},...r==null?void 0:r.popover,slotProps:{paper:{elevation:0,sx:{overflow:"visible",filter:h=>`drop-shadow(0px 2px 8px ${h.palette.mode==="dark"?"rgba(255,255,255,0.10)":"rgba(0,0,0,0.32)"})`,mt:1,"&::before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},...(f=r==null?void 0:r.popover)==null?void 0:f.slotProps},children:n!=null&&n.popoverContent?g.jsx(n.popoverContent,{...r==null?void 0:r.popoverContent}):g.jsxs(at,{direction:"column",...r==null?void 0:r.popoverContent,children:[Ql||(Ql=g.jsx(W0,{children:g.jsx(hi,{variant:"expanded"})})),eu||(eu=g.jsx(eo,{})),g.jsx(Kf,{children:g.jsx(Yf,{...r==null?void 0:r.signOutButton})})]})})]}):g.jsx(Xl,{localeText:t,children:n!=null&&n.signInButton?g.jsx(n.signInButton,{onClick:c.signIn}):g.jsx(U0,{...r==null?void 0:r.signInButton})}):null}process.env.NODE_ENV!=="production"&&(ec.propTypes={localeText:s.shape({iconButtonAriaLabel:s.string,signInLabel:s.string,signOutLabel:s.string}),slotProps:s.shape({popover:s.object,popoverContent:s.object,preview:s.shape({handleClick:s.func,open:s.bool,slotProps:s.shape({avatar:s.object,avatarIconButton:s.object,moreIconButton:s.object}),slots:s.shape({avatar:s.elementType,avatarIconButton:s.elementType,moreIconButton:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["condensed","expanded"])}),signInButton:s.object,signOutButton:s.object}),slots:s.shape({popover:s.elementType,popoverContent:s.elementType,preview:s.elementType,signInButton:s.elementType,signOutButton:s.elementType})});function H0(){const e=v.useContext(Ha);return(e==null?void 0:e.title)??"Toolpad"}function q0(e){return Te("MuiCollapse",e)}Oe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const G0=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ne(r,q0,n)},Y0=ce("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Ve(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),K0=ce("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),X0=ce("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),mi=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:c="0px",component:l,easing:u,in:d,onEnter:f,onEntered:h,onEntering:b,onExit:m,onExited:p,onExiting:y,orientation:T="vertical",style:C,timeout:w=rf.standard,TransitionComponent:E=Rt,...S}=r,O={...r,orientation:T,collapsedSize:c},R=G0(O),N=gn(),j=Cn(),x=v.useRef(null),P=v.useRef(),B=typeof c=="number"?`${c}px`:c,$=T==="horizontal",U=$?"width":"height",M=v.useRef(null),L=et(n,M),H=V=>Q=>{if(V){const ee=M.current;Q===void 0?V(ee):V(ee,Q)}},q=()=>x.current?x.current[$?"clientWidth":"clientHeight"]:0,Z=H((V,Q)=>{x.current&&$&&(x.current.style.position="absolute"),V.style[U]=B,f&&f(V,Q)}),A=H((V,Q)=>{const ee=q();x.current&&$&&(x.current.style.position="");const{duration:oe,easing:K}=pn({style:C,timeout:w,easing:u},{mode:"enter"});if(w==="auto"){const ie=N.transitions.getAutoHeightDuration(ee);V.style.transitionDuration=`${ie}ms`,P.current=ie}else V.style.transitionDuration=typeof oe=="string"?oe:`${oe}ms`;V.style[U]=`${ee}px`,V.style.transitionTimingFunction=K,b&&b(V,Q)}),z=H((V,Q)=>{V.style[U]="auto",h&&h(V,Q)}),te=H(V=>{V.style[U]=`${q()}px`,m&&m(V)}),ne=H(p),G=H(V=>{const Q=q(),{duration:ee,easing:oe}=pn({style:C,timeout:w,easing:u},{mode:"exit"});if(w==="auto"){const K=N.transitions.getAutoHeightDuration(Q);V.style.transitionDuration=`${K}ms`,P.current=K}else V.style.transitionDuration=typeof ee=="string"?ee:`${ee}ms`;V.style[U]=B,V.style.transitionTimingFunction=oe,y&&y(V)}),J=V=>{w==="auto"&&j.start(P.current||0,V),o&&o(M.current,V)};return g.jsx(E,{in:d,onEnter:Z,onEntered:z,onEntering:A,onExit:te,onExited:ne,onExiting:G,addEndListener:J,nodeRef:M,timeout:w==="auto"?null:w,...S,children:(V,{ownerState:Q,...ee})=>g.jsx(Y0,{as:l,className:ae(R.root,a,{entered:R.entered,exited:!d&&B==="0px"&&R.hidden}[V]),style:{[$?"minWidth":"minHeight"]:B,...C},ref:L,ownerState:{...O,state:V},...ee,children:g.jsx(K0,{ownerState:{...O,state:V},className:R.wrapper,ref:x,children:g.jsx(X0,{ownerState:{...O,state:V},className:R.wrapperInner,children:i})})})})});process.env.NODE_ENV!=="production"&&(mi.propTypes={addEndListener:s.func,children:s.node,classes:s.object,className:s.string,collapsedSize:s.oneOfType([s.number,s.string]),component:uo,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,orientation:s.oneOf(["horizontal","vertical"]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});mi&&(mi.muiSupportAuto=!0);const zt=v.createContext({});process.env.NODE_ENV!=="production"&&(zt.displayName="ListContext");function J0(e){return Te("MuiList",e)}Oe("MuiList",["root","padding","dense","subheader"]);const Z0=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ne({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},J0,t)},Q0=ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Xf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:c=!1,disablePadding:l=!1,subheader:u,...d}=r,f=v.useMemo(()=>({dense:c}),[c]),h={...r,component:a,dense:c,disablePadding:l},b=Z0(h);return g.jsx(zt.Provider,{value:f,children:g.jsxs(Q0,{as:a,className:ae(b.root,i),ref:n,ownerState:h,...d,children:[u,o]})})});process.env.NODE_ENV!=="production"&&(Xf.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function eE(e){return Te("MuiListItem",e)}Oe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function tE(e){return Te("MuiListItemButton",e)}const tr=Oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),nE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},rE=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:c}=e,u=Ne({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",c&&"selected"]},tE,n);return{...n,...u}},oE=ce(fo,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:nE})(Ve(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tr.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tr.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ue(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Jf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:c,dense:l=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:h=!1,className:b,...m}=r,p=v.useContext(zt),y=v.useMemo(()=>({dense:l||p.dense||!1,alignItems:o,disableGutters:u}),[o,p.dense,l,u]),T=v.useRef(null);In(()=>{i&&(T.current?T.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[i]);const C={...r,alignItems:o,dense:y.dense,disableGutters:u,divider:d,selected:h},w=rE(C),E=et(T,n);return g.jsx(zt.Provider,{value:y,children:g.jsx(oE,{ref:E,href:m.href||m.to,component:(m.href||m.to)&&a==="div"?"button":a,focusVisibleClassName:ae(w.focusVisible,f),ownerState:C,className:ae(w.root,b),...m,classes:w,children:c})})});process.env.NODE_ENV!=="production"&&(Jf.propTypes={alignItems:s.oneOf(["center","flex-start"]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,href:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function iE(e){return Te("MuiListItemSecondaryAction",e)}Oe("MuiListItemSecondaryAction",["root","disableGutters"]);const sE=e=>{const{disableGutters:t,classes:n}=e;return Ne({root:["root",t&&"disableGutters"]},iE,n)},aE=ce("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),tc=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=v.useContext(zt),c={...r,disableGutters:a.disableGutters},l=sE(c);return g.jsx(aE,{className:ae(l.root,o),ownerState:c,ref:n,...i})});process.env.NODE_ENV!=="production"&&(tc.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});tc.muiName="ListItemSecondaryAction";const cE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},lE=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:c}=e;return Ne({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction"],container:["container"]},eE,n)},uE=ce("div",{name:"MuiListItem",slot:"Root",overridesResolver:cE})(Ve(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${tr.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),dE=ce("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Zf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:c,components:l={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f,...h}={},dense:b=!1,disableGutters:m=!1,disablePadding:p=!1,divider:y=!1,secondaryAction:T,slotProps:C={},slots:w={},...E}=r,S=v.useContext(zt),O=v.useMemo(()=>({dense:b||S.dense||!1,alignItems:o,disableGutters:m}),[o,S.dense,b,m]),R=v.useRef(null),N=v.Children.toArray(i),j=N.length&&Dd(N[N.length-1],["ListItemSecondaryAction"]),x={...r,alignItems:o,dense:O.dense,disableGutters:m,disablePadding:p,divider:y,hasSecondaryAction:j},P=lE(x),B=et(R,n),$=w.root||l.Root||uE,U=C.root||u.root||{},M={className:ae(P.root,U.className,a),...E};let L=c||"li";return j?(L=!M.component&&!c?"div":L,d==="li"&&(L==="li"?L="div":M.component==="li"&&(M.component="div")),g.jsx(zt.Provider,{value:O,children:g.jsxs(dE,{as:d,className:ae(P.container,f),ref:B,ownerState:x,...h,children:[g.jsx($,{...U,...!Js($)&&{as:L,ownerState:{...x,...U.ownerState}},...M,children:N}),N.pop()]})})):g.jsx(zt.Provider,{value:O,children:g.jsxs($,{...U,as:L,ref:B,...!Js($)&&{ownerState:{...x,...U.ownerState}},...M,children:[N,T&&g.jsx(tc,{children:T})]})})});process.env.NODE_ENV!=="production"&&(Zf.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:en(s.node,e=>{const t=v.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const o=t[r];if(Dd(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:uo,ContainerProps:s.object,dense:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,secondaryAction:s.node,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function fE(e){return Te("MuiListItemIcon",e)}Oe("MuiListItemIcon",["root","alignItemsFlexStart"]);const pE=e=>{const{alignItems:t,classes:n}=e;return Ne({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},fE,n)},hE=ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ve(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Qf=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,a=v.useContext(zt),c={...r,alignItems:a.alignItems},l=pE(c);return g.jsx(hE,{className:ae(l.root,o),ownerState:c,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Qf.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function mE(e){return Te("MuiListItemText",e)}const Do=Oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),gE=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Ne({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},mE,t)},yE=ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Do.primary}`]:t.primary},{[`& .${Do.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Tl.root}:where(& .${Do.primary})`]:{display:"block"},[`.${Tl.root}:where(& .${Do.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),ep=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:c=!1,primary:l,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f,slots:h={},slotProps:b={},...m}=r,{dense:p}=v.useContext(zt);let y=l??o,T=d;const C={...r,disableTypography:a,inset:c,primary:!!y,secondary:!!T,dense:p},w=gE(C),E={slots:h,slotProps:{primary:u,secondary:f,...b}},[S,O]=ht("primary",{className:w.primary,elementType:Et,externalForwardedProps:E,ownerState:C}),[R,N]=ht("secondary",{className:w.secondary,elementType:Et,externalForwardedProps:E,ownerState:C});return y!=null&&y.type!==Et&&!a&&(y=g.jsx(S,{variant:p?"body2":"body1",component:O!=null&&O.variant?void 0:"span",...O,children:y})),T!=null&&T.type!==Et&&!a&&(T=g.jsx(R,{variant:"body2",color:"textSecondary",...N,children:T})),g.jsxs(yE,{className:ae(w.root,i),ownerState:C,ref:n,...m,children:[y,T]})});process.env.NODE_ENV!=="production"&&(ep.propTypes={children:s.node,classes:s.object,className:s.string,disableTypography:s.bool,inset:s.bool,primary:s.node,primaryTypographyProps:s.object,secondary:s.node,secondaryTypographyProps:s.object,slotProps:s.shape({primary:s.oneOfType([s.func,s.object]),secondary:s.oneOfType([s.func,s.object])}),slots:s.shape({primary:s.elementType,secondary:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const vE=Ge(g.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),bE=Ge(g.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function xE(e){for(var t=[],n=0;n<e.length;){var r=e[n];if(r==="*"||r==="+"||r==="?"){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:e[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(r===":"){for(var o="",i=n+1;i<e.length;){var a=e.charCodeAt(i);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){o+=e[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:o}),n=i;continue}if(r==="("){var c=1,l="",i=n+1;if(e[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if(e[i]==="\\"){l+=e[i++]+e[i++];continue}if(e[i]===")"){if(c--,c===0){i++;break}}else if(e[i]==="("&&(c++,e[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));l+=e[i++]}if(c)throw new TypeError("Unbalanced pattern at ".concat(n));if(!l)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:l}),n=i;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}function EE(e,t){t===void 0&&(t={});for(var n=xE(e),r=t.prefixes,o=r===void 0?"./":r,i=t.delimiter,a=i===void 0?"/#?":i,c=[],l=0,u=0,d="",f=function(j){if(u<n.length&&n[u].type===j)return n[u++].value},h=function(j){var x=f(j);if(x!==void 0)return x;var P=n[u],B=P.type,$=P.index;throw new TypeError("Unexpected ".concat(B," at ").concat($,", expected ").concat(j))},b=function(){for(var j="",x;x=f("CHAR")||f("ESCAPED_CHAR");)j+=x;return j},m=function(j){for(var x=0,P=a;x<P.length;x++){var B=P[x];if(j.indexOf(B)>-1)return!0}return!1},p=function(j){var x=c[c.length-1],P=j||(x&&typeof x=="string"?x:"");if(x&&!P)throw new TypeError('Must have text between two parameters, missing text after "'.concat(x.name,'"'));return!P||m(P)?"[^".concat(sn(a),"]+?"):"(?:(?!".concat(sn(P),")[^").concat(sn(a),"])+?")};u<n.length;){var y=f("CHAR"),T=f("NAME"),C=f("PATTERN");if(T||C){var w=y||"";o.indexOf(w)===-1&&(d+=w,w=""),d&&(c.push(d),d=""),c.push({name:T||l++,prefix:w,suffix:"",pattern:C||p(w),modifier:f("MODIFIER")||""});continue}var E=y||f("ESCAPED_CHAR");if(E){d+=E;continue}d&&(c.push(d),d="");var S=f("OPEN");if(S){var w=b(),O=f("NAME")||"",R=f("PATTERN")||"",N=b();h("CLOSE"),c.push({name:O||(R?l++:""),pattern:O&&!R?p(w):R,prefix:w,suffix:N,modifier:f("MODIFIER")||""});continue}h("END")}return c}function sn(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function tp(e){return e&&e.sensitive?"":"i"}function SE(e,t){return e}function wE(e,t,n){var r=e.map(function(o){return nc(o,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),tp(n))}function TE(e,t,n){return CE(EE(e,n),t,n)}function CE(e,t,n){n===void 0&&(n={});for(var r=n.strict,o=r===void 0?!1:r,i=n.start,a=i===void 0?!0:i,c=n.end,l=c===void 0?!0:c,u=n.encode,d=u===void 0?function(x){return x}:u,f=n.delimiter,h=f===void 0?"/#?":f,b=n.endsWith,m=b===void 0?"":b,p="[".concat(sn(m),"]|$"),y="[".concat(sn(h),"]"),T=a?"^":"",C=0,w=e;C<w.length;C++){var E=w[C];if(typeof E=="string")T+=sn(d(E));else{var S=sn(d(E.prefix)),O=sn(d(E.suffix));if(E.pattern)if(S||O)if(E.modifier==="+"||E.modifier==="*"){var R=E.modifier==="*"?"?":"";T+="(?:".concat(S,"((?:").concat(E.pattern,")(?:").concat(O).concat(S,"(?:").concat(E.pattern,"))*)").concat(O,")").concat(R)}else T+="(?:".concat(S,"(").concat(E.pattern,")").concat(O,")").concat(E.modifier);else{if(E.modifier==="+"||E.modifier==="*")throw new TypeError('Can not repeat "'.concat(E.name,'" without a prefix and suffix'));T+="(".concat(E.pattern,")").concat(E.modifier)}else T+="(?:".concat(S).concat(O,")").concat(E.modifier)}}if(l)o||(T+="".concat(y,"?")),T+=n.endsWith?"(?=".concat(p,")"):"$";else{var N=e[e.length-1],j=typeof N=="string"?y.indexOf(N[N.length-1])>-1:N===void 0;o||(T+="(?:".concat(y,"(?=").concat(p,"))?")),j||(T+="(?=".concat(y,"|").concat(p,")"))}return new RegExp(T,tp(n))}function nc(e,t,n){return e instanceof RegExp?SE(e):Array.isArray(e)?wE(e,t,n):TE(e,t,n)}const OE=e=>e.kind??"page",to=e=>OE(e)==="page",Pn=e=>to(e)?e.title??e.segment??"":e.title;function rc(e,t){return`${e}${e&&!t.segment?"":"/"}${t.segment??""}`}function np(e,t,n){return e.pattern?nc(`${t}/${e.pattern}`).test(n):rc(t,e)===n}function rp(e,t,n){if(to(e)&&e.children){const r=rc(t,e);return e.children.some(o=>to(o)?o.children?rp(o,r,n):np(o,r,n):!1)}return!1}function RE(e){const t=new Map,n=(r,o)=>{if(to(r)){const i=`${o}${r.segment?`/${r.segment}`:""}`||"/";if(t.set(r,i),r.children)for(const a of r.children)n(a,i)}};for(const r of e)n(r,"");return t}const tu=new WeakMap;function kE(e){let t=tu.get(e);return t||(t=RE(e),tu.set(e,t)),t}function PE(e){const t=new Map,n=r=>{if(to(r)){const o=ta(e,r);if(t.has(o)&&console.warn(`Duplicate path in navigation: ${o}`),t.set(o,r),r.pattern){const i=r.segment?o.slice(0,-r.segment.length):o;t.set(nc(i+r.pattern),r)}if(r.children)for(const i of r.children)n(i)}};for(const r of e)n(r);return t}const nu=new WeakMap;function NE(e){let t=nu.get(e);return t||(t=PE(e),nu.set(e,t)),t}function ys(e,t){const n=NE(e);for(const[r,o]of n.entries())if(typeof r=="string"&&r===t||r instanceof RegExp&&r.test(t))return o;return null}function ta(e,t){const r=kE(e).get(t);return Zr(r,`Item not found in navigation: ${t.title}`),r}function gi(e,t){return{transition:n=>n.transitions.create(t,{easing:n.transitions.easing.sharp,duration:e?n.transitions.duration.enteringScreen:n.transitions.duration.leavingScreen})}}function ru(e){return{...gi(e,"width"),overflowX:"hidden"}}var ou,iu;const jE=Y.styled(Jf)(({theme:e})=>({borderRadius:8,"&.Mui-selected":{"& .MuiListItemIcon-root":{color:(e.vars??e).palette.primary.dark},"& .MuiTypography-root":{color:(e.vars??e).palette.text.primary},"& .MuiSvgIcon-root":{color:(e.vars??e).palette.primary.dark},"& .MuiAvatar-root":{backgroundColor:(e.vars??e).palette.primary.dark},"& .MuiTouchRipple-child":{backgroundColor:(e.vars??e).palette.primary.dark}},"& .MuiSvgIcon-root":{color:(e.vars??e).palette.action.active},"& .MuiAvatar-root":{backgroundColor:(e.vars??e).palette.action.active}}));function op({subNavigation:e,basePath:t="",depth:n=0,onLinkClick:r,isMini:o=!1,isFullyExpanded:i=!0,hasDrawerTransitions:a=!1,selectedItemId:c}){const l=v.useContext(Ui),u=(l==null?void 0:l.pathname)??"/",d=v.useMemo(()=>e.map((m,p)=>({navigationItem:m,originalIndex:p})).filter(({navigationItem:m})=>rp(m,t,u)).map(({originalIndex:m})=>`${n}-${m}`),[t,n,u,e]),[f,h]=v.useState(d),b=v.useCallback(m=>()=>{h(p=>p.includes(m)?p.filter(y=>y!==m):[...p,m])},[]);return g.jsx(Xf,{sx:{padding:0,mb:n===0?4:1,pl:2*n},children:e.map((m,p)=>{if(m.kind==="header")return g.jsx(fi,{component:"div",sx:{fontSize:12,fontWeight:"700",height:o?0:40,...a?gi(i,"height"):{},px:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",zIndex:2},children:Pn(m)},`subheader-${n}-${p}`);if(m.kind==="divider"){const N=e[p+1];return g.jsx(eo,{sx:{borderBottomWidth:2,mx:1,mt:1,mb:(N==null?void 0:N.kind)==="header"&&!o?0:1,...a?gi(i,"margin"):{}}},`divider-${n}-${p}`)}const y=rc(t,m),T=`${n}-${p}`,C=Pn(m),w=f.includes(T),E=w?ou||(ou=g.jsx(vE,{})):iu||(iu=g.jsx(bE,{})),S=34,O=np(m,t,u);process.env.NODE_ENV!=="production"&&O&&c&&console.warn(`Duplicate selected path in navigation: ${y}`),O&&!c&&(c=T);const R=g.jsx(Zf,{sx:{py:0,px:1,overflowX:"hidden"},children:g.jsxs(jE,{selected:O&&(!m.children||o),sx:{px:1.4,height:48},...m.children&&!o?{onClick:b(T)}:{LinkComponent:Za,href:y,onClick:r},children:[m.icon||o?g.jsxs(Qf,{sx:{minWidth:S,mr:1.2},children:[m.icon??null,!m.icon&&o?g.jsx(Ua,{sx:{width:S-7,height:S-7,fontSize:12,ml:"-2px"},children:C.split(" ").slice(0,2).map(N=>N.charAt(0).toUpperCase())}):null]}):null,g.jsx(ep,{primary:C,sx:{whiteSpace:"nowrap",zIndex:1,"& .MuiTypography-root":{fontWeight:"500"}}}),m.action&&!o&&i?m.action:null,m.children&&!o&&i?E:null]})});return g.jsxs(v.Fragment,{children:[o?g.jsx(mo,{title:C,placement:"right",children:R}):R,m.children&&!o?g.jsx(mi,{in:w,timeout:"auto",unmountOnExit:!0,children:g.jsx(op,{subNavigation:m.children,basePath:y,depth:n+1,onLinkClick:r,selectedItemId:c})}):null]},T)})})}const su=Ge(g.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),au=Ge(g.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode");function AE(){return()=>{}}function IE(){return!1}function _E(){return!0}function $E(){return v.useSyncExternalStore(AE,IE,_E)}var cu,lu;function ME(){const e=$E(),t=Y.useTheme(),{paletteMode:n,setPaletteMode:r,isDualTheme:o}=v.useContext(Ga),i=v.useCallback(()=>{r(n==="dark"?"light":"dark")},[n,r]);return o?g.jsx(mo,{title:e?"Switch mode":`${n==="dark"?"Light":"Dark"} mode`,enterDelay:1e3,children:g.jsx("div",{children:g.jsx(Gr,{"aria-label":e?"Switch theme mode":`Switch to ${n==="dark"?"light":"dark"} mode`,onClick:i,sx:{color:(t.vars??t).palette.primary.dark},children:t.getColorSchemeSelector?g.jsxs(v.Fragment,{children:[g.jsx(su,{sx:{display:"inline",[t.getColorSchemeSelector("dark")]:{display:"none"}}}),g.jsx(au,{sx:{display:"none",[t.getColorSchemeSelector("dark")]:{display:"inline"}}})]}):g.jsx(v.Fragment,{children:e||n!=="dark"?cu||(cu=g.jsx(su,{})):lu||(lu=g.jsx(au,{}))})})})}):null}var uu;function ip(){return uu||(uu=g.jsx(at,{direction:"row",alignItems:"center",children:g.jsx(ME,{})}))}var du,fu,pu,hu,mu;function DE({size:e=40}){return g.jsxs("svg",{width:e,height:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[du||(du=g.jsxs("g",{mask:"url(#a)",children:[g.jsx("path",{d:"M22.74 27.73v-7.6l6.64-3.79v7.6l-6.64 3.79Z",fill:"#007FFF"}),g.jsx("path",{d:"M16.1 23.93v-7.59l6.64 3.8v7.59l-6.65-3.8Z",fill:"#39F"}),g.jsx("path",{d:"m16.1 16.34 6.64-3.8 6.64 3.8-6.64 3.8-6.65-3.8Z",fill:"#A5D8FF"})]})),g.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"8",y:"17",width:"14",height:"15",children:fu||(fu=g.jsx("path",{d:"M8.5 22.3c0-1.05.56-2 1.46-2.53l3.75-2.14c.89-.5 1.98-.5 2.87 0l3.75 2.14a2.9 2.9 0 0 1 1.46 2.52v4.23c0 1.04-.56 2-1.46 2.52l-3.75 2.14c-.89.5-1.98.5-2.87 0l-3.75-2.14a2.9 2.9 0 0 1-1.46-2.52v-4.23Z",fill:"#D7DCE1"}))}),pu||(pu=g.jsxs("g",{mask:"url(#b)",children:[g.jsx("path",{d:"M15.14 32v-7.6l6.65-3.8v7.6L15.14 32Z",fill:"#007FFF"}),g.jsx("path",{d:"M8.5 28.2v-7.6l6.64 3.8V32L8.5 28.2Z",fill:"#39F"}),g.jsx("path",{d:"m8.5 20.6 6.64-3.79 6.65 3.8-6.65 3.8-6.64-3.8Z",fill:"#A5D8FF"})]})),g.jsx("mask",{id:"c",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"8",y:"4",width:"22",height:"20",children:hu||(hu=g.jsx("path",{d:"M24.17 4.82a2.9 2.9 0 0 0-2.87 0L9.97 11.22a2.9 2.9 0 0 0-1.47 2.53v4.22c0 1.04.56 2 1.46 2.52l3.75 2.14c.89.5 1.98.5 2.87 0l11.33-6.42a2.9 2.9 0 0 0 1.47-2.52V9.48c0-1.04-.56-2-1.46-2.52l-3.75-2.14Z",fill:"#D7DCE1"}))}),mu||(mu=g.jsxs("g",{mask:"url(#c)",children:[g.jsx("path",{d:"M15.14 23.46v-7.6L29.38 7.8v7.59l-14.24 8.07Z",fill:"#007FFF"}),g.jsx("path",{d:"M8.5 19.66v-7.6l6.64 3.8v7.6l-6.64-3.8Z",fill:"#39F"}),g.jsx("path",{d:"M8.5 12.07 22.74 4l6.64 3.8-14.24 8.06-6.64-3.8Z",fill:"#A5D8FF"})]}))]})}var gu,yu,vu,bu;const LE=Y.styled(Df)(({theme:e})=>({borderWidth:0,borderBottomWidth:1,borderStyle:"solid",borderColor:(e.vars??e).palette.divider,boxShadow:"none",zIndex:e.zIndex.drawer+1})),BE=Y.styled("div")({position:"relative",height:40,"& img":{maxHeight:40}});function oc(e){const{children:t,branding:n,disableCollapsibleSidebar:r=!1,defaultSidebarCollapsed:o=!1,hideNavigation:i=!1,sidebarExpandedWidth:a=320,slots:c,slotProps:l,sx:u}=e,d=Y.useTheme(),f=v.useContext(Ha),h=v.useContext(qa),b=v.useContext(Af),m=H0(),p=n??f,[y,T]=v.useState(!o),[C,w]=v.useState(!1),E=ql(d.breakpoints.down("md"),b&&{matchMedia:b.matchMedia}),S=ql(d.breakpoints.up("sm"),b&&{matchMedia:b.matchMedia}),O=E?C:y,R=v.useCallback(G=>{E?w(G):T(G)},[E]),[N,j]=v.useState(O);v.useEffect(()=>{if(O){const G=setTimeout(()=>{j(!0)},d.transitions.duration.enteringScreen);return()=>clearTimeout(G)}return j(!1),()=>{}},[O,d]);const x=v.useRef(""),P=v.useCallback(G=>()=>{R(G)},[R]),B=v.useCallback(()=>{R(!O)},[O,R]),$=v.useCallback(()=>{x.current="",w(!1)},[w]);v.useMemo(()=>{h&&(x.current="")},[h]);const U=!r&&!y,M=!r&&!C,L=v.useCallback(G=>{const J="Expand",V="Collapse";return g.jsx(mo,{title:`${G?V:J} menu`,enterDelay:1e3,children:g.jsx("div",{children:g.jsx(Gr,{"aria-label":`${G?V:J} navigation menu`,onClick:B,children:G?gu||(gu=g.jsx(I0,{})):yu||(yu=g.jsx(A0,{}))})})})},[B]),H=S&&(r||!E),q=(c==null?void 0:c.toolbarActions)??ip,Z=(c==null?void 0:c.toolbarAccount)??ec,A=(c==null?void 0:c.sidebarFooter)??null,z=v.useCallback((G,J)=>{var V;return g.jsxs(v.Fragment,{children:[vu||(vu=g.jsx(Xo,{})),g.jsxs(on,{component:"nav","aria-label":`${J.charAt(0).toUpperCase()}${J.slice(1)}`,sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",overflow:"auto",pt:((V=h[0])==null?void 0:V.kind)==="header"&&!G?0:2,...H?gi(N,"padding"):{}},children:[g.jsx(op,{subNavigation:h,onLinkClick:$,isMini:G,isFullyExpanded:N,hasDrawerTransitions:H,selectedItemId:x.current}),A?g.jsx(A,{mini:G,...l==null?void 0:l.sidebarFooter}):null]})]})},[A,$,H,N,h,l==null?void 0:l.sidebarFooter]),te=v.useCallback((G,J)=>{const V=G?64:a;return{displayPrint:"none",width:V,flexShrink:0,...ru(O),...J?{position:"absolute"}:{},"& .MuiDrawer-paper":{position:"absolute",width:V,boxSizing:"border-box",backgroundImage:"none",...ru(O)}}},[O,a]),ne=v.useRef(null);return g.jsxs(on,{ref:ne,sx:{position:"relative",display:"flex",overflow:"hidden",height:"100vh",width:"100vw",...u},children:[g.jsx(LE,{color:"inherit",position:"absolute",sx:{displayPrint:"none"},children:g.jsx(Xo,{sx:{backgroundColor:"inherit",mx:{xs:-.75,sm:-1.5}},children:g.jsxs(at,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{flexWrap:"wrap",width:"100%"},children:[g.jsxs(at,{direction:"row",children:[i?null:g.jsxs(v.Fragment,{children:[g.jsx(on,{sx:{mr:{sm:r?0:1},display:{md:"none"}},children:L(C)}),g.jsx(on,{sx:{display:{xs:"none",md:r?"none":"block"},mr:r?0:1},children:L(y)})]}),g.jsx(Za,{href:"/",style:{color:"inherit",textDecoration:"none"},children:g.jsxs(at,{direction:"row",alignItems:"center",children:[g.jsx(BE,{children:(p==null?void 0:p.logo)??(bu||(bu=g.jsx(DE,{size:40})))}),g.jsx(Et,{variant:"h6",sx:{color:(d.vars??d).palette.primary.main,fontWeight:"700",ml:1,whiteSpace:"nowrap"},children:m})]})})]}),g.jsxs(at,{direction:"row",alignItems:"center",spacing:1,sx:{marginLeft:"auto"},children:[g.jsx(q,{...l==null?void 0:l.toolbarActions}),g.jsx(Z,{...l==null?void 0:l.toolbarAccount})]})]})})}),i?null:g.jsxs(v.Fragment,{children:[g.jsx(Ko,{container:ne.current,variant:"temporary",open:C,onClose:P(!1),ModalProps:{keepMounted:!0},sx:{display:{xs:"block",sm:r?"block":"none",md:"none"},...te(!1,!0)},children:z(!1,"phone")}),g.jsx(Ko,{variant:"permanent",sx:{display:{xs:"none",sm:r?"none":"block",md:"none"},...te(M,!1)},children:z(M,"tablet")}),g.jsx(Ko,{variant:"permanent",sx:{display:{xs:"none",md:"block"},...te(U,!1)},children:z(U,"desktop")})]}),g.jsxs(on,{sx:{display:"flex",flexDirection:"column",flex:1,minWidth:0},children:[g.jsx(Xo,{sx:{displayPrint:"none"}}),g.jsx(on,{component:"main",sx:{display:"flex",flexDirection:"column",flex:1,overflow:"auto"},children:t})]})]})}process.env.NODE_ENV!=="production"&&(oc.propTypes={branding:s.shape({logo:s.node,title:s.string}),children:s.node,defaultSidebarCollapsed:s.bool,disableCollapsibleSidebar:s.bool,hideNavigation:s.bool,sidebarExpandedWidth:s.oneOfType([s.number,s.string]),slotProps:s.shape({sidebarFooter:s.shape({mini:s.bool.isRequired}),toolbarAccount:s.shape({localeText:s.shape({iconButtonAriaLabel:s.string,signInLabel:s.string,signOutLabel:s.string}),slotProps:s.shape({popover:s.object,popoverContent:s.object,preview:s.object,signInButton:s.object,signOutButton:s.object}),slots:s.shape({popover:s.elementType,popoverContent:s.elementType,preview:s.elementType,signInButton:s.elementType,signOutButton:s.elementType})}),toolbarActions:s.object}),slots:s.shape({sidebarFooter:s.elementType,toolbarAccount:s.elementType,toolbarActions:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const sp=ty({createStyledComponent:ce("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${de(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ce({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(sp.propTypes={children:s.node,classes:s.object,component:s.elementType,disableGutters:s.bool,fixed:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});var xu=new Set;function FE(e){xu.has(e)||(xu.add(e),console.warn(e))}const VE=Ge(g.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),UE=ce(fo)(Ve(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:Fs(e.palette.grey[200],.12)}:{backgroundColor:Fs(e.palette.grey[600],.12)}}}))),zE=ce(VE)({width:24,height:16});function ap(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return g.jsx("li",{children:g.jsx(UE,{focusRipple:!0,...r,ownerState:o,children:g.jsx(zE,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}process.env.NODE_ENV!=="production"&&(ap.propTypes={slotProps:s.shape({collapsedIcon:s.oneOfType([s.func,s.object])}),slots:s.shape({CollapsedIcon:s.elementType}),sx:s.object});function WE(e){return Te("MuiBreadcrumbs",e)}const HE=Oe("MuiBreadcrumbs",["root","ol","li","separator"]),qE=e=>{const{classes:t}=e;return Ne({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},WE,t)},GE=ce(Et,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${HE.li}`]:t.li},t.root]})({}),YE=ce("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),KE=ce("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function XE(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,g.jsx(KE,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const cp=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:c={},slotProps:l={},expandText:u="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:f=1,maxItems:h=8,separator:b="/",...m}=r,[p,y]=v.useState(!1),T={...r,component:a,expanded:p,expandText:u,itemsAfterCollapse:d,itemsBeforeCollapse:f,maxItems:h,separator:b},C=qE(T),w=Hd({elementType:c.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:T}),E=v.useRef(null),S=R=>{const N=()=>{y(!0);const j=E.current.querySelector("a[href],button,[tabindex]");j&&j.focus()};return f+d>=R.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${d}} + itemsBeforeCollapse={${f}} >= maxItems={${h}}`].join(`
|
|
243
|
-
`)),R):[...R.slice(0,f),
|
|
244
|
-
`)),v.isValidElement(R))).map((R,
|
|
242
|
+
`))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([Qt,s.func]),disableScrollLock:s.bool,elevation:sr,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:fo}),slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function z0(e){return Ce("MuiDivider",e)}Oe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const W0=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:c,variant:l}=e;return Pe({root:["root",t&&"absolute",l,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",c==="right"&&a!=="vertical"&&"textAlignRight",c==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},z0,r)},H0=ce("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Ve(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ke(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),q0=ce("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ve(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),to=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:c="horizontal",component:l=i||c==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:f=l!=="hr"?"separator":void 0,textAlign:m="center",variant:b="fullWidth",...g}=r,p={...r,absolute:o,component:l,flexItem:u,light:d,orientation:c,role:f,textAlign:m,variant:b},y=W0(p);return h.jsx(H0,{as:l,className:ae(y.root,a),role:f,ref:n,ownerState:p,"aria-orientation":f==="separator"&&(l!=="hr"||c==="vertical")?c:void 0,...g,children:i?h.jsx(q0,{className:y.wrapper,ownerState:p,children:i}):null})});to&&(to.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(to.propTypes={absolute:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,flexItem:s.bool,light:s.bool,orientation:s.oneOf(["horizontal","vertical"]),role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),textAlign:s.oneOf(["center","left","right"]),variant:s.oneOfType([s.oneOf(["fullWidth","inset","middle"]),s.string])});const Kf={signInLabel:"Sign In",signOutLabel:"Sign Out",iconButtonAriaLabel:"Current User"},Xf=v.createContext(Kf);function Ql({localeText:e,children:t}){const n=v.useMemo(()=>({...Kf,...e}),[e]);return h.jsx(Xf.Provider,{value:n,children:t})}function oc(){return v.useContext(Xf)}function G0(e){const t=v.useContext(qi),n=oc();return h.jsx(Ya,{disableElevation:!0,variant:"contained",size:"small",onClick:t==null?void 0:t.signIn,sx:{textTransform:"capitalize",filter:"opacity(0.9)",width:"50%",margin:r=>`${r.spacing(1)} auto`,transition:"filter 0.2s ease-in","&:hover":{filter:"opacity(1)"}},...e,children:(n==null?void 0:n.signInLabel)||"Sign In"})}const Jf=Ue(h.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var eu;function Zf(e){const t=v.useContext(qi),n=oc();return h.jsx(Ya,{disabled:!t,variant:"outlined",size:"small",disableElevation:!0,onClick:t==null?void 0:t.signOut,sx:{textTransform:"capitalize",fontWeight:"normal",filter:"opacity(0.9)",transition:"filter 0.2s ease-in","&:hover":{filter:"opacity(1)"}},startIcon:eu||(eu=h.jsx(Jf,{})),...e,children:n.signOutLabel})}const Y0=Ue(h.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert");var tu;function yi(e){var d,f,m,b,g,p,y;const{slots:t,variant:n="condensed",slotProps:r,open:o,handleClick:i,sx:a}=e,c=v.useContext(tc),l=oc();if(!c||!c.user)return null;const u=t!=null&&t.avatar?h.jsx(t.avatar,{}):h.jsx(Ga,{src:((d=c.user)==null?void 0:d.image)||"",alt:((f=c.user)==null?void 0:f.name)||((m=c.user)==null?void 0:m.email)||"",sx:{height:n==="expanded"?48:32,width:n==="expanded"?48:32},...r==null?void 0:r.avatar});return n==="expanded"?h.jsxs(at,{direction:"row",justifyContent:"space-between",sx:{py:1,px:2,gap:2,...a},children:[h.jsxs(at,{direction:"row",justifyContent:"flex-start",spacing:2,children:[u,h.jsxs(at,{direction:"column",justifyContent:"space-evenly",children:[h.jsx(Et,{variant:"body2",fontWeight:"bolder",noWrap:!0,children:(b=c.user)==null?void 0:b.name}),h.jsx(Et,{variant:"caption",noWrap:!0,children:(g=c.user)==null?void 0:g.email})]})]}),i&&(t!=null&&t.moreIconButton?h.jsx(t.moreIconButton,{}):h.jsx(Yr,{size:"small",onClick:i,...r==null?void 0:r.moreIconButton,sx:{alignSelf:"center",...(p=r==null?void 0:r.moreIconButton)==null?void 0:p.sx},children:tu||(tu=h.jsx(Y0,{fontSize:"small"}))}))]}):h.jsx(go,{title:c.user.name??"Account",children:t!=null&&t.avatarIconButton?h.jsx(t.avatarIconButton,{...r==null?void 0:r.avatarIconButton}):h.jsx(at,{sx:{py:.5,...a},children:h.jsx(Yr,{onClick:i,"aria-label":l.iconButtonAriaLabel||"Current User",size:"small","aria-controls":o?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,...r==null?void 0:r.avatarIconButton,sx:{width:"fit-content",margin:"0 auto",...(y=r==null?void 0:r.avatarIconButton)==null?void 0:y.sx},children:u})})})}process.env.NODE_ENV!=="production"&&(yi.propTypes={handleClick:s.func,open:s.bool,slotProps:s.shape({avatar:s.object,avatarIconButton:s.object,moreIconButton:s.object}),slots:s.shape({avatar:s.elementType,avatarIconButton:s.elementType,moreIconButton:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["condensed","expanded"])});function K0(e){const{children:t,...n}=e;return h.jsx(at,{...n,children:t})}function Qf(e){const{children:t,...n}=e;return h.jsx(on,{...n,sx:{display:"flex",flexDirection:"row",p:1,justifyContent:"flex-end",...n.sx},children:t})}var nu,ru;function ic(e){var f;const{localeText:t}=e,{slots:n,slotProps:r}=e,[o,i]=v.useState(null),a=v.useContext(tc),c=v.useContext(qi),l=!!o,u=m=>{i(m.currentTarget)},d=()=>{i(null)};return c?a!=null&&a.user?h.jsxs(Ql,{localeText:t,children:[n!=null&&n.preview?h.jsx(n.preview,{handleClick:u,open:l}):h.jsx(yi,{variant:"condensed",handleClick:u,open:l,...r==null?void 0:r.preview}),n!=null&&n.popover?h.jsx(n.popover,{open:l,onClick:u,onClose:d,...r==null?void 0:r.popover}):h.jsx(Yf,{anchorEl:o,id:"account-menu",open:l,onClose:d,onClick:d,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},...r==null?void 0:r.popover,slotProps:{paper:{elevation:0,sx:{overflow:"visible",filter:m=>`drop-shadow(0px 2px 8px ${m.palette.mode==="dark"?"rgba(255,255,255,0.10)":"rgba(0,0,0,0.32)"})`,mt:1,"&::before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},...(f=r==null?void 0:r.popover)==null?void 0:f.slotProps},children:n!=null&&n.popoverContent?h.jsx(n.popoverContent,{...r==null?void 0:r.popoverContent}):h.jsxs(at,{direction:"column",...r==null?void 0:r.popoverContent,children:[nu||(nu=h.jsx(K0,{children:h.jsx(yi,{variant:"expanded"})})),ru||(ru=h.jsx(to,{})),h.jsx(Qf,{children:h.jsx(Zf,{...r==null?void 0:r.signOutButton})})]})})]}):h.jsx(Ql,{localeText:t,children:n!=null&&n.signInButton?h.jsx(n.signInButton,{onClick:c.signIn}):h.jsx(G0,{...r==null?void 0:r.signInButton})}):null}process.env.NODE_ENV!=="production"&&(ic.propTypes={localeText:s.shape({iconButtonAriaLabel:s.string,signInLabel:s.string,signOutLabel:s.string}),slotProps:s.shape({popover:s.object,popoverContent:s.object,preview:s.shape({handleClick:s.func,open:s.bool,slotProps:s.shape({avatar:s.object,avatarIconButton:s.object,moreIconButton:s.object}),slots:s.shape({avatar:s.elementType,avatarIconButton:s.elementType,moreIconButton:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["condensed","expanded"])}),signInButton:s.object,signOutButton:s.object}),slots:s.shape({popover:s.elementType,popoverContent:s.elementType,preview:s.elementType,signInButton:s.elementType,signOutButton:s.elementType})});function X0(){const e=v.useContext(Xa);return(e==null?void 0:e.title)??"Toolpad"}function J0(e){return Ce("MuiCollapse",e)}Oe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Z0=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Pe(r,J0,n)},Q0=ce("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Ve(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),eE=ce("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),tE=ce("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),vi=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:c="0px",component:l,easing:u,in:d,onEnter:f,onEntered:m,onEntering:b,onExit:g,onExited:p,onExiting:y,orientation:C="vertical",style:T,timeout:w=cf.standard,TransitionComponent:E=Rt,...S}=r,O={...r,orientation:C,collapsedSize:c},R=Z0(O),P=gn(),N=jn(),x=v.useRef(null),k=v.useRef(),F=typeof c=="number"?`${c}px`:c,$=C==="horizontal",z=$?"width":"height",L=v.useRef(null),B=et(n,L),q=U=>Q=>{if(U){const ee=L.current;Q===void 0?U(ee):U(ee,Q)}},G=()=>x.current?x.current[$?"clientWidth":"clientHeight"]:0,Z=q((U,Q)=>{x.current&&$&&(x.current.style.position="absolute"),U.style[z]=F,f&&f(U,Q)}),A=q((U,Q)=>{const ee=G();x.current&&$&&(x.current.style.position="");const{duration:oe,easing:K}=pn({style:T,timeout:w,easing:u},{mode:"enter"});if(w==="auto"){const ie=P.transitions.getAutoHeightDuration(ee);U.style.transitionDuration=`${ie}ms`,k.current=ie}else U.style.transitionDuration=typeof oe=="string"?oe:`${oe}ms`;U.style[z]=`${ee}px`,U.style.transitionTimingFunction=K,b&&b(U,Q)}),W=q((U,Q)=>{U.style[z]="auto",m&&m(U,Q)}),te=q(U=>{U.style[z]=`${G()}px`,g&&g(U)}),ne=q(p),Y=q(U=>{const Q=G(),{duration:ee,easing:oe}=pn({style:T,timeout:w,easing:u},{mode:"exit"});if(w==="auto"){const K=P.transitions.getAutoHeightDuration(Q);U.style.transitionDuration=`${K}ms`,k.current=K}else U.style.transitionDuration=typeof ee=="string"?ee:`${ee}ms`;U.style[z]=F,U.style.transitionTimingFunction=oe,y&&y(U)}),J=U=>{w==="auto"&&N.start(k.current||0,U),o&&o(L.current,U)};return h.jsx(E,{in:d,onEnter:Z,onEntered:W,onEntering:A,onExit:te,onExited:ne,onExiting:Y,addEndListener:J,nodeRef:L,timeout:w==="auto"?null:w,...S,children:(U,{ownerState:Q,...ee})=>h.jsx(Q0,{as:l,className:ae(R.root,a,{entered:R.entered,exited:!d&&F==="0px"&&R.hidden}[U]),style:{[$?"minWidth":"minHeight"]:F,...T},ref:B,ownerState:{...O,state:U},...ee,children:h.jsx(eE,{ownerState:{...O,state:U},className:R.wrapper,ref:x,children:h.jsx(tE,{ownerState:{...O,state:U},className:R.wrapperInner,children:i})})})})});process.env.NODE_ENV!=="production"&&(vi.propTypes={addEndListener:s.func,children:s.node,classes:s.object,className:s.string,collapsedSize:s.oneOfType([s.number,s.string]),component:fo,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,orientation:s.oneOf(["horizontal","vertical"]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});vi&&(vi.muiSupportAuto=!0);const Ht=v.createContext({});process.env.NODE_ENV!=="production"&&(Ht.displayName="ListContext");function nE(e){return Ce("MuiList",e)}Oe("MuiList",["root","padding","dense","subheader"]);const rE=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Pe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},nE,t)},oE=ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),ep=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:c=!1,disablePadding:l=!1,subheader:u,...d}=r,f=v.useMemo(()=>({dense:c}),[c]),m={...r,component:a,dense:c,disablePadding:l},b=rE(m);return h.jsx(Ht.Provider,{value:f,children:h.jsxs(oE,{as:a,className:ae(b.root,i),ref:n,ownerState:m,...d,children:[u,o]})})});process.env.NODE_ENV!=="production"&&(ep.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function iE(e){return Ce("MuiListItem",e)}Oe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function sE(e){return Ce("MuiListItemButton",e)}const nr=Oe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),aE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},cE=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:c}=e,u=Pe({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",c&&"selected"]},sE,n);return{...n,...u}},lE=ce(po,{shouldForwardProp:e=>Vi(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:aE})(Ve(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${nr.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ke(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${nr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${nr.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ke(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${nr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),tp=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:c,dense:l=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:m=!1,className:b,...g}=r,p=v.useContext(Ht),y=v.useMemo(()=>({dense:l||p.dense||!1,alignItems:o,disableGutters:u}),[o,p.dense,l,u]),C=v.useRef(null);$n(()=>{i&&(C.current?C.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItemButton whose component has not been rendered."))},[i]);const T={...r,alignItems:o,dense:y.dense,disableGutters:u,divider:d,selected:m},w=cE(T),E=et(C,n);return h.jsx(Ht.Provider,{value:y,children:h.jsx(lE,{ref:E,href:g.href||g.to,component:(g.href||g.to)&&a==="div"?"button":a,focusVisibleClassName:ae(w.focusVisible,f),ownerState:T,className:ae(w.root,b),...g,classes:w,children:c})})});process.env.NODE_ENV!=="production"&&(tp.propTypes={alignItems:s.oneOf(["center","flex-start"]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,href:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function uE(e){return Ce("MuiListItemSecondaryAction",e)}Oe("MuiListItemSecondaryAction",["root","disableGutters"]);const dE=e=>{const{disableGutters:t,classes:n}=e;return Pe({root:["root",t&&"disableGutters"]},uE,n)},fE=ce("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),sc=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=v.useContext(Ht),c={...r,disableGutters:a.disableGutters},l=dE(c);return h.jsx(fE,{className:ae(l.root,o),ownerState:c,ref:n,...i})});process.env.NODE_ENV!=="production"&&(sc.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});sc.muiName="ListItemSecondaryAction";const pE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},hE=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:c}=e;return Pe({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction"],container:["container"]},iE,n)},mE=ce("div",{name:"MuiListItem",slot:"Root",overridesResolver:pE})(Ve(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${nr.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),gE=ce("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),np=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:c,components:l={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f,...m}={},dense:b=!1,disableGutters:g=!1,disablePadding:p=!1,divider:y=!1,secondaryAction:C,slotProps:T={},slots:w={},...E}=r,S=v.useContext(Ht),O=v.useMemo(()=>({dense:b||S.dense||!1,alignItems:o,disableGutters:g}),[o,S.dense,b,g]),R=v.useRef(null),P=v.Children.toArray(i),N=P.length&&Vd(P[P.length-1],["ListItemSecondaryAction"]),x={...r,alignItems:o,dense:O.dense,disableGutters:g,disablePadding:p,divider:y,hasSecondaryAction:N},k=hE(x),F=et(R,n),$=w.root||l.Root||mE,z=T.root||u.root||{},L={className:ae(k.root,z.className,a),...E};let B=c||"li";return N?(B=!L.component&&!c?"div":B,d==="li"&&(B==="li"?B="div":L.component==="li"&&(L.component="div")),h.jsx(Ht.Provider,{value:O,children:h.jsxs(gE,{as:d,className:ae(k.container,f),ref:F,ownerState:x,...m,children:[h.jsx($,{...z,...!na($)&&{as:B,ownerState:{...x,...z.ownerState}},...L,children:P}),P.pop()]})})):h.jsx(Ht.Provider,{value:O,children:h.jsxs($,{...z,as:B,ref:F,...!na($)&&{ownerState:{...x,...z.ownerState}},...L,children:[P,C&&h.jsx(sc,{children:C})]})})});process.env.NODE_ENV!=="production"&&(np.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:tn(s.node,e=>{const t=v.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const o=t[r];if(Vd(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:fo,ContainerProps:s.object,dense:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,secondaryAction:s.node,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function yE(e){return Ce("MuiListItemIcon",e)}Oe("MuiListItemIcon",["root","alignItemsFlexStart"]);const vE=e=>{const{alignItems:t,classes:n}=e;return Pe({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},yE,n)},bE=ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ve(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),rp=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,a=v.useContext(Ht),c={...r,alignItems:a.alignItems},l=vE(c);return h.jsx(bE,{className:ae(l.root,o),ownerState:c,ref:n,...i})});process.env.NODE_ENV!=="production"&&(rp.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function xE(e){return Ce("MuiListItemText",e)}const Bo=Oe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),EE=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return Pe({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},xE,t)},SE=ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Bo.primary}`]:t.primary},{[`& .${Bo.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Rl.root}:where(& .${Bo.primary})`]:{display:"block"},[`.${Rl.root}:where(& .${Bo.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),op=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:c=!1,primary:l,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f,slots:m={},slotProps:b={},...g}=r,{dense:p}=v.useContext(Ht);let y=l??o,C=d;const T={...r,disableTypography:a,inset:c,primary:!!y,secondary:!!C,dense:p},w=EE(T),E={slots:m,slotProps:{primary:u,secondary:f,...b}},[S,O]=ht("primary",{className:w.primary,elementType:Et,externalForwardedProps:E,ownerState:T}),[R,P]=ht("secondary",{className:w.secondary,elementType:Et,externalForwardedProps:E,ownerState:T});return y!=null&&y.type!==Et&&!a&&(y=h.jsx(S,{variant:p?"body2":"body1",component:O!=null&&O.variant?void 0:"span",...O,children:y})),C!=null&&C.type!==Et&&!a&&(C=h.jsx(R,{variant:"body2",color:"textSecondary",...P,children:C})),h.jsxs(SE,{className:ae(w.root,i),ownerState:T,ref:n,...g,children:[y,C]})});process.env.NODE_ENV!=="production"&&(op.propTypes={children:s.node,classes:s.object,className:s.string,disableTypography:s.bool,inset:s.bool,primary:s.node,primaryTypographyProps:s.object,secondary:s.node,secondaryTypographyProps:s.object,slotProps:s.shape({primary:s.oneOfType([s.func,s.object]),secondary:s.oneOfType([s.func,s.object])}),slots:s.shape({primary:s.elementType,secondary:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const wE=Ue(h.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),CE=Ue(h.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function TE(e){for(var t=[],n=0;n<e.length;){var r=e[n];if(r==="*"||r==="+"||r==="?"){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:e[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(r===":"){for(var o="",i=n+1;i<e.length;){var a=e.charCodeAt(i);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){o+=e[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:o}),n=i;continue}if(r==="("){var c=1,l="",i=n+1;if(e[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if(e[i]==="\\"){l+=e[i++]+e[i++];continue}if(e[i]===")"){if(c--,c===0){i++;break}}else if(e[i]==="("&&(c++,e[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));l+=e[i++]}if(c)throw new TypeError("Unbalanced pattern at ".concat(n));if(!l)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:l}),n=i;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}function OE(e,t){t===void 0&&(t={});for(var n=TE(e),r=t.prefixes,o=r===void 0?"./":r,i=t.delimiter,a=i===void 0?"/#?":i,c=[],l=0,u=0,d="",f=function(N){if(u<n.length&&n[u].type===N)return n[u++].value},m=function(N){var x=f(N);if(x!==void 0)return x;var k=n[u],F=k.type,$=k.index;throw new TypeError("Unexpected ".concat(F," at ").concat($,", expected ").concat(N))},b=function(){for(var N="",x;x=f("CHAR")||f("ESCAPED_CHAR");)N+=x;return N},g=function(N){for(var x=0,k=a;x<k.length;x++){var F=k[x];if(N.indexOf(F)>-1)return!0}return!1},p=function(N){var x=c[c.length-1],k=N||(x&&typeof x=="string"?x:"");if(x&&!k)throw new TypeError('Must have text between two parameters, missing text after "'.concat(x.name,'"'));return!k||g(k)?"[^".concat(sn(a),"]+?"):"(?:(?!".concat(sn(k),")[^").concat(sn(a),"])+?")};u<n.length;){var y=f("CHAR"),C=f("NAME"),T=f("PATTERN");if(C||T){var w=y||"";o.indexOf(w)===-1&&(d+=w,w=""),d&&(c.push(d),d=""),c.push({name:C||l++,prefix:w,suffix:"",pattern:T||p(w),modifier:f("MODIFIER")||""});continue}var E=y||f("ESCAPED_CHAR");if(E){d+=E;continue}d&&(c.push(d),d="");var S=f("OPEN");if(S){var w=b(),O=f("NAME")||"",R=f("PATTERN")||"",P=b();m("CLOSE"),c.push({name:O||(R?l++:""),pattern:O&&!R?p(w):R,prefix:w,suffix:P,modifier:f("MODIFIER")||""});continue}m("END")}return c}function sn(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function ip(e){return e&&e.sensitive?"":"i"}function RE(e,t){return e}function jE(e,t,n){var r=e.map(function(o){return ac(o,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),ip(n))}function kE(e,t,n){return PE(OE(e,n),t,n)}function PE(e,t,n){n===void 0&&(n={});for(var r=n.strict,o=r===void 0?!1:r,i=n.start,a=i===void 0?!0:i,c=n.end,l=c===void 0?!0:c,u=n.encode,d=u===void 0?function(x){return x}:u,f=n.delimiter,m=f===void 0?"/#?":f,b=n.endsWith,g=b===void 0?"":b,p="[".concat(sn(g),"]|$"),y="[".concat(sn(m),"]"),C=a?"^":"",T=0,w=e;T<w.length;T++){var E=w[T];if(typeof E=="string")C+=sn(d(E));else{var S=sn(d(E.prefix)),O=sn(d(E.suffix));if(E.pattern)if(S||O)if(E.modifier==="+"||E.modifier==="*"){var R=E.modifier==="*"?"?":"";C+="(?:".concat(S,"((?:").concat(E.pattern,")(?:").concat(O).concat(S,"(?:").concat(E.pattern,"))*)").concat(O,")").concat(R)}else C+="(?:".concat(S,"(").concat(E.pattern,")").concat(O,")").concat(E.modifier);else{if(E.modifier==="+"||E.modifier==="*")throw new TypeError('Can not repeat "'.concat(E.name,'" without a prefix and suffix'));C+="(".concat(E.pattern,")").concat(E.modifier)}else C+="(?:".concat(S).concat(O,")").concat(E.modifier)}}if(l)o||(C+="".concat(y,"?")),C+=n.endsWith?"(?=".concat(p,")"):"$";else{var P=e[e.length-1],N=typeof P=="string"?y.indexOf(P[P.length-1])>-1:P===void 0;o||(C+="(?:".concat(y,"(?=").concat(p,"))?")),N||(C+="(?=".concat(y,"|").concat(p,")"))}return new RegExp(C,ip(n))}function ac(e,t,n){return e instanceof RegExp?RE(e):Array.isArray(e)?jE(e,t,n):kE(e,t,n)}const NE=e=>e.kind??"page",no=e=>NE(e)==="page",An=e=>no(e)?e.title??e.segment??"":e.title;function cc(e,t){return`${e}${e&&!t.segment?"":"/"}${t.segment??""}`}function sp(e,t,n){return e.pattern?ac(`${t}/${e.pattern}`).test(n):cc(t,e)===n}function ap(e,t,n){if(no(e)&&e.children){const r=cc(t,e);return e.children.some(o=>no(o)?o.children?ap(o,r,n):sp(o,r,n):!1)}return!1}function AE(e){const t=new Map,n=(r,o)=>{if(no(r)){const i=`${o}${r.segment?`/${r.segment}`:""}`||"/";if(t.set(r,i),r.children)for(const a of r.children)n(a,i)}};for(const r of e)n(r,"");return t}const ou=new WeakMap;function IE(e){let t=ou.get(e);return t||(t=AE(e),ou.set(e,t)),t}function _E(e){const t=new Map,n=r=>{if(no(r)){const o=sa(e,r);if(t.has(o)&&console.warn(`Duplicate path in navigation: ${o}`),t.set(o,r),r.pattern){const i=r.segment?o.slice(0,-r.segment.length):o;t.set(ac(i+r.pattern),r)}if(r.children)for(const i of r.children)n(i)}};for(const r of e)n(r);return t}const iu=new WeakMap;function ME(e){let t=iu.get(e);return t||(t=_E(e),iu.set(e,t)),t}function Es(e,t){const n=ME(e);for(const[r,o]of n.entries())if(typeof r=="string"&&r===t||r instanceof RegExp&&r.test(t))return o;return null}function sa(e,t){const r=IE(e).get(t);return Qr(r,`Item not found in navigation: ${t.title}`),r}function bi(e,t){return{transition:n=>n.transitions.create(t,{easing:n.transitions.easing.sharp,duration:e?n.transitions.duration.enteringScreen:n.transitions.duration.leavingScreen})}}function su(e){return{...bi(e,"width"),overflowX:"hidden"}}var au,cu;const $E=D.styled(tp)(({theme:e})=>({borderRadius:8,"&.Mui-selected":{"& .MuiListItemIcon-root":{color:(e.vars??e).palette.primary.dark},"& .MuiTypography-root":{color:(e.vars??e).palette.text.primary},"& .MuiSvgIcon-root":{color:(e.vars??e).palette.primary.dark},"& .MuiAvatar-root":{backgroundColor:(e.vars??e).palette.primary.dark},"& .MuiTouchRipple-child":{backgroundColor:(e.vars??e).palette.primary.dark}},"& .MuiSvgIcon-root":{color:(e.vars??e).palette.action.active},"& .MuiAvatar-root":{backgroundColor:(e.vars??e).palette.action.active}}));function cp({subNavigation:e,basePath:t="",depth:n=0,onLinkClick:r,isMini:o=!1,isFullyExpanded:i=!0,hasDrawerTransitions:a=!1,selectedItemId:c}){const l=v.useContext(Hi),u=(l==null?void 0:l.pathname)??"/",d=v.useMemo(()=>e.map((g,p)=>({navigationItem:g,originalIndex:p})).filter(({navigationItem:g})=>ap(g,t,u)).map(({originalIndex:g})=>`${n}-${g}`),[t,n,u,e]),[f,m]=v.useState(d),b=v.useCallback(g=>()=>{m(p=>p.includes(g)?p.filter(y=>y!==g):[...p,g])},[]);return h.jsx(ep,{sx:{padding:0,mb:n===0?4:1,pl:2*n},children:e.map((g,p)=>{if(g.kind==="header")return h.jsx(mi,{component:"div",sx:{fontSize:12,fontWeight:"700",height:o?0:40,...a?bi(i,"height"):{},px:2,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",zIndex:2},children:An(g)},`subheader-${n}-${p}`);if(g.kind==="divider"){const P=e[p+1];return h.jsx(to,{sx:{borderBottomWidth:2,mx:1,mt:1,mb:(P==null?void 0:P.kind)==="header"&&!o?0:1,...a?bi(i,"margin"):{}}},`divider-${n}-${p}`)}const y=cc(t,g),C=`${n}-${p}`,T=An(g),w=f.includes(C),E=w?au||(au=h.jsx(wE,{})):cu||(cu=h.jsx(CE,{})),S=34,O=sp(g,t,u);process.env.NODE_ENV!=="production"&&O&&c&&console.warn(`Duplicate selected path in navigation: ${y}`),O&&!c&&(c=C);const R=h.jsx(np,{sx:{py:0,px:1,overflowX:"hidden"},children:h.jsxs($E,{selected:O&&(!g.children||o),sx:{px:1.4,height:48},...g.children&&!o?{onClick:b(C)}:{LinkComponent:rc,href:y,onClick:r},children:[g.icon||o?h.jsxs(rp,{sx:{minWidth:S,mr:1.2},children:[g.icon??null,!g.icon&&o?h.jsx(Ga,{sx:{width:S-7,height:S-7,fontSize:12,ml:"-2px"},children:T.split(" ").slice(0,2).map(P=>P.charAt(0).toUpperCase())}):null]}):null,h.jsx(op,{primary:T,sx:{whiteSpace:"nowrap",zIndex:1,"& .MuiTypography-root":{fontWeight:"500"}}}),g.action&&!o&&i?g.action:null,g.children&&!o&&i?E:null]})});return h.jsxs(v.Fragment,{children:[o?h.jsx(go,{title:T,placement:"right",children:R}):R,g.children&&!o?h.jsx(vi,{in:w,timeout:"auto",unmountOnExit:!0,children:h.jsx(cp,{subNavigation:g.children,basePath:y,depth:n+1,onLinkClick:r,selectedItemId:c})}):null]},C)})})}const lu=Ue(h.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),uu=Ue(h.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode");function DE(){return()=>{}}function LE(){return!1}function BE(){return!0}function FE(){return v.useSyncExternalStore(DE,LE,BE)}var du,fu;function VE(){const e=FE(),t=D.useTheme(),{paletteMode:n,setPaletteMode:r,isDualTheme:o}=v.useContext(Za),i=v.useCallback(()=>{r(n==="dark"?"light":"dark")},[n,r]);return o?h.jsx(go,{title:e?"Switch mode":`${n==="dark"?"Light":"Dark"} mode`,enterDelay:1e3,children:h.jsx("div",{children:h.jsx(Yr,{"aria-label":e?"Switch theme mode":`Switch to ${n==="dark"?"light":"dark"} mode`,onClick:i,sx:{color:(t.vars??t).palette.primary.dark},children:t.getColorSchemeSelector?h.jsxs(v.Fragment,{children:[h.jsx(lu,{sx:{display:"inline",[t.getColorSchemeSelector("dark")]:{display:"none"}}}),h.jsx(uu,{sx:{display:"none",[t.getColorSchemeSelector("dark")]:{display:"inline"}}})]}):h.jsx(v.Fragment,{children:e||n!=="dark"?du||(du=h.jsx(lu,{})):fu||(fu=h.jsx(uu,{}))})})})}):null}var pu;function lp(){return pu||(pu=h.jsx(at,{direction:"row",alignItems:"center",children:h.jsx(VE,{})}))}var hu,mu,gu,yu,vu;function UE({size:e=40}){return h.jsxs("svg",{width:e,height:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[hu||(hu=h.jsxs("g",{mask:"url(#a)",children:[h.jsx("path",{d:"M22.74 27.73v-7.6l6.64-3.79v7.6l-6.64 3.79Z",fill:"#007FFF"}),h.jsx("path",{d:"M16.1 23.93v-7.59l6.64 3.8v7.59l-6.65-3.8Z",fill:"#39F"}),h.jsx("path",{d:"m16.1 16.34 6.64-3.8 6.64 3.8-6.64 3.8-6.65-3.8Z",fill:"#A5D8FF"})]})),h.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"8",y:"17",width:"14",height:"15",children:mu||(mu=h.jsx("path",{d:"M8.5 22.3c0-1.05.56-2 1.46-2.53l3.75-2.14c.89-.5 1.98-.5 2.87 0l3.75 2.14a2.9 2.9 0 0 1 1.46 2.52v4.23c0 1.04-.56 2-1.46 2.52l-3.75 2.14c-.89.5-1.98.5-2.87 0l-3.75-2.14a2.9 2.9 0 0 1-1.46-2.52v-4.23Z",fill:"#D7DCE1"}))}),gu||(gu=h.jsxs("g",{mask:"url(#b)",children:[h.jsx("path",{d:"M15.14 32v-7.6l6.65-3.8v7.6L15.14 32Z",fill:"#007FFF"}),h.jsx("path",{d:"M8.5 28.2v-7.6l6.64 3.8V32L8.5 28.2Z",fill:"#39F"}),h.jsx("path",{d:"m8.5 20.6 6.64-3.79 6.65 3.8-6.65 3.8-6.64-3.8Z",fill:"#A5D8FF"})]})),h.jsx("mask",{id:"c",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"8",y:"4",width:"22",height:"20",children:yu||(yu=h.jsx("path",{d:"M24.17 4.82a2.9 2.9 0 0 0-2.87 0L9.97 11.22a2.9 2.9 0 0 0-1.47 2.53v4.22c0 1.04.56 2 1.46 2.52l3.75 2.14c.89.5 1.98.5 2.87 0l11.33-6.42a2.9 2.9 0 0 0 1.47-2.52V9.48c0-1.04-.56-2-1.46-2.52l-3.75-2.14Z",fill:"#D7DCE1"}))}),vu||(vu=h.jsxs("g",{mask:"url(#c)",children:[h.jsx("path",{d:"M15.14 23.46v-7.6L29.38 7.8v7.59l-14.24 8.07Z",fill:"#007FFF"}),h.jsx("path",{d:"M8.5 19.66v-7.6l6.64 3.8v7.6l-6.64-3.8Z",fill:"#39F"}),h.jsx("path",{d:"M8.5 12.07 22.74 4l6.64 3.8-14.24 8.06-6.64-3.8Z",fill:"#A5D8FF"})]}))]})}var bu,xu,Eu,Su;const zE=D.styled(Vf)(({theme:e})=>({borderWidth:0,borderBottomWidth:1,borderStyle:"solid",borderColor:(e.vars??e).palette.divider,boxShadow:"none",zIndex:e.zIndex.drawer+1})),WE=D.styled("div")({position:"relative",height:40,"& img":{maxHeight:40}});function lc(e){const{children:t,branding:n,disableCollapsibleSidebar:r=!1,defaultSidebarCollapsed:o=!1,hideNavigation:i=!1,sidebarExpandedWidth:a=320,slots:c,slotProps:l,sx:u}=e,d=D.useTheme(),f=v.useContext(Xa),m=v.useContext(Ja),b=v.useContext($f),g=X0(),p=n??f,[y,C]=v.useState(!o),[T,w]=v.useState(!1),E=Kl(d.breakpoints.down("md"),b&&{matchMedia:b.matchMedia}),S=Kl(d.breakpoints.up("sm"),b&&{matchMedia:b.matchMedia}),O=E?T:y,R=v.useCallback(Y=>{E?w(Y):C(Y)},[E]),[P,N]=v.useState(O);v.useEffect(()=>{if(O){const Y=setTimeout(()=>{N(!0)},d.transitions.duration.enteringScreen);return()=>clearTimeout(Y)}return N(!1),()=>{}},[O,d]);const x=v.useRef(""),k=v.useCallback(Y=>()=>{R(Y)},[R]),F=v.useCallback(()=>{R(!O)},[O,R]),$=v.useCallback(()=>{x.current="",w(!1)},[w]);v.useMemo(()=>{m&&(x.current="")},[m]);const z=!r&&!y,L=!r&&!T,B=v.useCallback(Y=>{const J="Expand",U="Collapse";return h.jsx(go,{title:`${Y?U:J} menu`,enterDelay:1e3,children:h.jsx("div",{children:h.jsx(Yr,{"aria-label":`${Y?U:J} navigation menu`,onClick:F,children:Y?bu||(bu=h.jsx(L0,{})):xu||(xu=h.jsx(D0,{}))})})})},[F]),q=S&&(r||!E),G=(c==null?void 0:c.toolbarActions)??lp,Z=(c==null?void 0:c.toolbarAccount)??ic,A=(c==null?void 0:c.sidebarFooter)??null,W=v.useCallback((Y,J)=>{var U;return h.jsxs(v.Fragment,{children:[Eu||(Eu=h.jsx(Qo,{})),h.jsxs(on,{component:"nav","aria-label":`${J.charAt(0).toUpperCase()}${J.slice(1)}`,sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",overflow:"auto",pt:((U=m[0])==null?void 0:U.kind)==="header"&&!Y?0:2,...q?bi(P,"padding"):{}},children:[h.jsx(cp,{subNavigation:m,onLinkClick:$,isMini:Y,isFullyExpanded:P,hasDrawerTransitions:q,selectedItemId:x.current}),A?h.jsx(A,{mini:Y,...l==null?void 0:l.sidebarFooter}):null]})]})},[A,$,q,P,m,l==null?void 0:l.sidebarFooter]),te=v.useCallback((Y,J)=>{const U=Y?64:a;return{displayPrint:"none",width:U,flexShrink:0,...su(O),...J?{position:"absolute"}:{},"& .MuiDrawer-paper":{position:"absolute",width:U,boxSizing:"border-box",backgroundImage:"none",...su(O)}}},[O,a]),ne=v.useRef(null);return h.jsxs(on,{ref:ne,sx:{position:"relative",display:"flex",overflow:"hidden",height:"100vh",width:"100vw",...u},children:[h.jsx(zE,{color:"inherit",position:"absolute",sx:{displayPrint:"none"},children:h.jsx(Qo,{sx:{backgroundColor:"inherit",mx:{xs:-.75,sm:-1.5}},children:h.jsxs(at,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{flexWrap:"wrap",width:"100%"},children:[h.jsxs(at,{direction:"row",children:[i?null:h.jsxs(v.Fragment,{children:[h.jsx(on,{sx:{mr:{sm:r?0:1},display:{md:"none"}},children:B(T)}),h.jsx(on,{sx:{display:{xs:"none",md:r?"none":"block"},mr:r?0:1},children:B(y)})]}),h.jsx(rc,{href:"/",style:{color:"inherit",textDecoration:"none"},children:h.jsxs(at,{direction:"row",alignItems:"center",children:[h.jsx(WE,{children:(p==null?void 0:p.logo)??(Su||(Su=h.jsx(UE,{size:40})))}),h.jsx(Et,{variant:"h6",sx:{color:(d.vars??d).palette.primary.main,fontWeight:"700",ml:1,whiteSpace:"nowrap"},children:g})]})})]}),h.jsxs(at,{direction:"row",alignItems:"center",spacing:1,sx:{marginLeft:"auto"},children:[h.jsx(G,{...l==null?void 0:l.toolbarActions}),h.jsx(Z,{...l==null?void 0:l.toolbarAccount})]})]})})}),i?null:h.jsxs(v.Fragment,{children:[h.jsx(Zo,{container:ne.current,variant:"temporary",open:T,onClose:k(!1),ModalProps:{keepMounted:!0},sx:{display:{xs:"block",sm:r?"block":"none",md:"none"},...te(!1,!0)},children:W(!1,"phone")}),h.jsx(Zo,{variant:"permanent",sx:{display:{xs:"none",sm:r?"none":"block",md:"none"},...te(L,!1)},children:W(L,"tablet")}),h.jsx(Zo,{variant:"permanent",sx:{display:{xs:"none",md:"block"},...te(z,!1)},children:W(z,"desktop")})]}),h.jsxs(on,{sx:{display:"flex",flexDirection:"column",flex:1,minWidth:0},children:[h.jsx(Qo,{sx:{displayPrint:"none"}}),h.jsx(on,{component:"main",sx:{display:"flex",flexDirection:"column",flex:1,overflow:"auto"},children:t})]})]})}process.env.NODE_ENV!=="production"&&(lc.propTypes={branding:s.shape({logo:s.node,title:s.string}),children:s.node,defaultSidebarCollapsed:s.bool,disableCollapsibleSidebar:s.bool,hideNavigation:s.bool,sidebarExpandedWidth:s.oneOfType([s.number,s.string]),slotProps:s.shape({sidebarFooter:s.shape({mini:s.bool.isRequired}),toolbarAccount:s.shape({localeText:s.shape({iconButtonAriaLabel:s.string,signInLabel:s.string,signOutLabel:s.string}),slotProps:s.shape({popover:s.object,popoverContent:s.object,preview:s.object,signInButton:s.object,signOutButton:s.object}),slots:s.shape({popover:s.elementType,popoverContent:s.elementType,preview:s.elementType,signInButton:s.elementType,signOutButton:s.elementType})}),toolbarActions:s.object}),slots:s.shape({sidebarFooter:s.elementType,toolbarAccount:s.elementType,toolbarActions:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const up=sy({createStyledComponent:ce("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${de(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Te({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(up.propTypes={children:s.node,classes:s.object,component:s.elementType,disableGutters:s.bool,fixed:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});var wu=new Set;function HE(e){wu.has(e)||(wu.add(e),console.warn(e))}const qE=Ue(h.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),GE=ce(po)(Ve(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:Hs(e.palette.grey[200],.12)}:{backgroundColor:Hs(e.palette.grey[600],.12)}}}))),YE=ce(qE)({width:24,height:16});function dp(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return h.jsx("li",{children:h.jsx(GE,{focusRipple:!0,...r,ownerState:o,children:h.jsx(YE,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}process.env.NODE_ENV!=="production"&&(dp.propTypes={slotProps:s.shape({collapsedIcon:s.oneOfType([s.func,s.object])}),slots:s.shape({CollapsedIcon:s.elementType}),sx:s.object});function KE(e){return Ce("MuiBreadcrumbs",e)}const XE=Oe("MuiBreadcrumbs",["root","ol","li","separator"]),JE=e=>{const{classes:t}=e;return Pe({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},KE,t)},ZE=ce(Et,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${XE.li}`]:t.li},t.root]})({}),QE=ce("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),eS=ce("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function tS(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,h.jsx(eS,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const fp=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:c={},slotProps:l={},expandText:u="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:f=1,maxItems:m=8,separator:b="/",...g}=r,[p,y]=v.useState(!1),C={...r,component:a,expanded:p,expandText:u,itemsAfterCollapse:d,itemsBeforeCollapse:f,maxItems:m,separator:b},T=JE(C),w=Kd({elementType:c.CollapsedIcon,externalSlotProps:l.collapsedIcon,ownerState:C}),E=v.useRef(null),S=R=>{const P=()=>{y(!0);const N=E.current.querySelector("a[href],button,[tabindex]");N&&N.focus()};return f+d>=R.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${d}} + itemsBeforeCollapse={${f}} >= maxItems={${m}}`].join(`
|
|
243
|
+
`)),R):[...R.slice(0,f),h.jsx(dp,{"aria-label":u,slots:{CollapsedIcon:c.CollapsedIcon},slotProps:{collapsedIcon:w},onClick:P},"ellipsis"),...R.slice(R.length-d,R.length)]},O=v.Children.toArray(o).filter(R=>(process.env.NODE_ENV!=="production"&&zs.isFragment(R)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
244
|
+
`)),v.isValidElement(R))).map((R,P)=>h.jsx("li",{className:T.li,children:R},`child-${P}`));return h.jsx(ZE,{ref:n,component:a,color:"textSecondary",className:ae(T.root,i),ownerState:C,...g,children:h.jsx(QE,{className:T.ol,ref:E,ownerState:C,children:tS(p||m&&O.length<=m?O:S(O),T.separator,b,C)})})});process.env.NODE_ENV!=="production"&&(fp.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,expandText:s.string,itemsAfterCollapse:sr,itemsBeforeCollapse:sr,maxItems:sr,separator:s.node,slotProps:s.shape({collapsedIcon:s.oneOfType([s.func,s.object])}),slots:s.shape({CollapsedIcon:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function nS(e){return Ce("MuiLink",e)}const rS=Oe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),oS=({theme:e,ownerState:t})=>{const n=t.color,r=ar(e,`palette.${n}`,!1)||t.color,o=ar(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ke(r,.4)},Cu={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},iS=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${de(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Pe(i,nS,t)},sS=ce(Et,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${de(n.underline)}`],n.component==="button"&&t.button]}})(Ve(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(lr()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Ke(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ke(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Ke(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${rS.focusVisible}`]:{outline:"auto"}}}]}))),pp=v.forwardRef(function(t,n){const r=Te({props:t,name:"MuiLink"}),o=gn(),{className:i,color:a="primary",component:c="a",onBlur:l,onFocus:u,TypographyClasses:d,underline:f="always",variant:m="inherit",sx:b,...g}=r,[p,y]=v.useState(!1),C=S=>{cr(S.target)||y(!1),l&&l(S)},T=S=>{cr(S.target)&&y(!0),u&&u(S)},w={...r,color:a,component:c,focusVisible:p,underline:f,variant:m},E=iS(w);return h.jsx(sS,{color:a,className:ae(E.root,i),classes:d,component:c,onBlur:C,onFocus:T,ref:n,ownerState:w,variant:m,...g,sx:[...Cu[a]===void 0?[{color:a}]:[],...Array.isArray(b)?b:[b]],style:{...g.style,...f==="always"&&a!=="inherit"&&!Cu[a]&&{"--Link-underlineColor":oS({theme:o,ownerState:w})}}})});process.env.NODE_ENV!=="production"&&(pp.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:fo,onBlur:s.func,onFocus:s.func,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TypographyClasses:s.object,underline:s.oneOf(["always","hover","none"]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string])});const aS=D.styled("div")(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.spacing(1),marginLeft:"auto"}));function hp(e){return h.jsx(aS,{...e})}function mp(){const e=v.useContext(Ja),t=v.useContext(Hi),n=(t==null?void 0:t.pathname)??"/",r=Es(e,n),o=Es(e,"/");return v.useMemo(()=>{if(!r)return null;const i=[];o&&i.push({title:An(o),path:"/"});const a=n.split("/").filter(Boolean);let c="";for(const l of a){const u=`${c}/${l}`;c=u;const d=Es(e,u);if(!d)continue;const f=sa(e,d),m=i[i.length-1];(m==null?void 0:m.path)!==f&&i.push({title:An(d),path:f})}return{title:An(r),path:sa(e,r),breadcrumbs:i,breadCrumbs:i}},[r,o,n,e])}const cS=D.styled("div")(({theme:e})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",gap:e.spacing(2)}));function gp(e){var m,b;const{children:t,slots:n,slotProps:r,breadcrumbs:o,breadCrumbs:i,...a}=e;process.env.NODE_ENV!=="production"&&i&&HE("The PageContainer `breadCrumbs` prop is deprecated. Use `breadcrumbs` instead.");const c=mp(),l=o??i??(c==null?void 0:c.breadcrumbs)??[],u=e.title??(c==null?void 0:c.title)??"",d=((m=e==null?void 0:e.slots)==null?void 0:m.toolbar)??hp,f=yf({elementType:d,ownerState:e,externalSlotProps:(b=e==null?void 0:e.slotProps)==null?void 0:b.toolbar,additionalProps:{}});return h.jsx(up,{...a,children:h.jsxs(at,{sx:{my:2},spacing:2,children:[h.jsxs(at,{children:[h.jsx(fp,{"aria-label":"breadcrumb",children:l?l.map((g,p)=>p<l.length-1?h.jsx(pp,{component:rc,underline:"hover",color:"inherit",href:g.path,children:An(g)},g.path):h.jsx(Et,{color:"text.primary",children:An(g)},g.path)):null}),h.jsxs(cS,{children:[u?h.jsx(Et,{variant:"h4",children:u}):null,h.jsx(d,{...f})]})]}),h.jsx("div",{children:t})]})})}process.env.NODE_ENV!=="production"&&(gp.propTypes={breadcrumbs:s.arrayOf(s.shape({path:s.string.isRequired,title:s.string.isRequired})),breadCrumbs:s.arrayOf(s.shape({path:s.string.isRequired,title:s.string.isRequired})),children:s.node,slotProps:s.shape({toolbar:s.shape({children:s.node}).isRequired}),slots:s.shape({toolbar:s.elementType}),title:s.string});/**
|
|
245
245
|
* @remix-run/router v1.21.0
|
|
246
246
|
*
|
|
247
247
|
* Copyright (c) Remix Software Inc.
|
|
@@ -250,7 +250,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
250
250
|
* LICENSE.md file in the root directory of this source tree.
|
|
251
251
|
*
|
|
252
252
|
* @license MIT
|
|
253
|
-
*/function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no.apply(this,arguments)}var St;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(St||(St={}));const Su="popstate";function oS(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:n,v5Compat:r=!1}=e,o;o=t.map((b,m)=>d(b,typeof b=="string"?null:b.state,m===0?"default":void 0));let i=l(n??o.length-1),a=St.Pop,c=null;function l(b){return Math.min(Math.max(b,0),o.length-1)}function u(){return o[i]}function d(b,m,p){m===void 0&&(m=null);let y=ro(o?u().pathname:"/",b,m,p);return dt(y.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(b)),y}function f(b){return typeof b=="string"?b:$n(b)}return{get index(){return i},get action(){return a},get location(){return u()},createHref:f,createURL(b){return new URL(f(b),"http://localhost")},encodeLocation(b){let m=typeof b=="string"?vn(b):b;return{pathname:m.pathname||"",search:m.search||"",hash:m.hash||""}},push(b,m){a=St.Push;let p=d(b,m);i+=1,o.splice(i,o.length,p),r&&c&&c({action:a,location:p,delta:1})},replace(b,m){a=St.Replace;let p=d(b,m);o[i]=p,r&&c&&c({action:a,location:p,delta:0})},go(b){a=St.Pop;let m=l(i+b),p=o[m];i=m,c&&c({action:a,location:p,delta:b})},listen(b){return c=b,()=>{c=null}}}}function iS(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:c}=r.location;return ro("",{pathname:i,search:a,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:$n(o)}return pp(t,n,null,e)}function sS(e){e===void 0&&(e={});function t(o,i){let{pathname:a="/",search:c="",hash:l=""}=vn(o.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),ro("",{pathname:a,search:c,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let a=o.document.querySelector("base"),c="";if(a&&a.getAttribute("href")){let l=o.location.href,u=l.indexOf("#");c=u===-1?l:l.slice(0,u)}return c+"#"+(typeof i=="string"?i:$n(i))}function r(o,i){dt(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return pp(t,n,r,e)}function pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function aS(){return Math.random().toString(36).substr(2,8)}function wu(e,t){return{usr:e.state,key:e.key,idx:t}}function ro(e,t,n,r){return n===void 0&&(n=null),no({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vn(t):t,{state:n,key:t&&t.key||r||aS()})}function $n(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function vn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function pp(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,c=St.Pop,l=null,u=d();u==null&&(u=0,a.replaceState(no({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){c=St.Pop;let y=d(),T=y==null?null:y-u;u=y,l&&l({action:c,location:p.location,delta:T})}function h(y,T){c=St.Push;let C=ro(p.location,y,T);n&&n(C,y),u=d()+1;let w=wu(C,u),E=p.createHref(C);try{a.pushState(w,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}i&&l&&l({action:c,location:p.location,delta:1})}function b(y,T){c=St.Replace;let C=ro(p.location,y,T);n&&n(C,y),u=d();let w=wu(C,u),E=p.createHref(C);a.replaceState(w,"",E),i&&l&&l({action:c,location:p.location,delta:0})}function m(y){let T=o.location.origin!=="null"?o.location.origin:o.location.href,C=typeof y=="string"?y:$n(y);return C=C.replace(/ $/,"%20"),pe(T,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,T)}let p={get action(){return c},get location(){return e(o,a)},listen(y){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Su,f),l=y,()=>{o.removeEventListener(Su,f),l=null}},createHref(y){return t(o,y)},createURL:m,encodeLocation(y){let T=m(y);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:h,replace:b,go(y){return a.go(y)}};return p}var Tu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Tu||(Tu={}));function cS(e,t,n){return n===void 0&&(n="/"),lS(e,t,n)}function lS(e,t,n,r){let o=typeof t=="string"?vn(t):t,i=hn(o.pathname||"/",n);if(i==null)return null;let a=hp(e);uS(a);let c=null;for(let l=0;c==null&&l<a.length;++l){let u=ES(i);c=bS(a[l],u)}return c}function hp(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,c)=>{let l={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(pe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Jt([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(pe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),hp(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:yS(u,i.index),routesMeta:d})};return e.forEach((i,a)=>{var c;if(i.path===""||!((c=i.path)!=null&&c.includes("?")))o(i,a);else for(let l of mp(i.path))o(i,a,l)}),t}function mp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=mp(r.join("/")),c=[];return c.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&c.push(...a),c.map(l=>e.startsWith("/")&&l===""?"/":l)}function uS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:vS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const dS=/^:[\w-]+$/,fS=3,pS=2,hS=1,mS=10,gS=-2,Cu=e=>e==="*";function yS(e,t){let n=e.split("/"),r=n.length;return n.some(Cu)&&(r+=gS),t&&(r+=pS),n.filter(o=>!Cu(o)).reduce((o,i)=>o+(dS.test(i)?fS:i===""?hS:mS),r)}function vS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function bS(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let c=0;c<r.length;++c){let l=r[c],u=c===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=na({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),h=l.route;if(!f)return null;Object.assign(o,f.params),a.push({params:o,pathname:Jt([i,f.pathname]),pathnameBase:CS(Jt([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=Jt([i,f.pathnameBase]))}return a}function na(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=xS(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:h,isOptional:b}=d;if(h==="*"){let p=c[f]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const m=c[f];return b&&!m?u[h]=void 0:u[h]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function xS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,c,l)=>(r.push({paramName:c,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function ES(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function SS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?vn(e):e;return{pathname:n?n.startsWith("/")?n:wS(n,t):t,search:OS(r),hash:RS(o)}}function wS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function vs(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function TS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ic(e,t){let n=TS(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function sc(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=vn(e):(o=no({},e),pe(!o.pathname||!o.pathname.includes("?"),vs("?","pathname","search",o)),pe(!o.pathname||!o.pathname.includes("#"),vs("#","pathname","hash",o)),pe(!o.search||!o.search.includes("#"),vs("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,c;if(a==null)c=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}c=f>=0?t[f]:"/"}let l=SS(o,c),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Jt=e=>e.join("/").replace(/\/\/+/g,"/"),CS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function kS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const gp=["post","put","patch","delete"];new Set(gp);const PS=["get",...gp];new Set(PS);/**
|
|
253
|
+
*/function ro(){return ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ro.apply(this,arguments)}var St;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(St||(St={}));const Tu="popstate";function lS(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:n,v5Compat:r=!1}=e,o;o=t.map((b,g)=>d(b,typeof b=="string"?null:b.state,g===0?"default":void 0));let i=l(n??o.length-1),a=St.Pop,c=null;function l(b){return Math.min(Math.max(b,0),o.length-1)}function u(){return o[i]}function d(b,g,p){g===void 0&&(g=null);let y=oo(o?u().pathname:"/",b,g,p);return dt(y.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(b)),y}function f(b){return typeof b=="string"?b:Ln(b)}return{get index(){return i},get action(){return a},get location(){return u()},createHref:f,createURL(b){return new URL(f(b),"http://localhost")},encodeLocation(b){let g=typeof b=="string"?vn(b):b;return{pathname:g.pathname||"",search:g.search||"",hash:g.hash||""}},push(b,g){a=St.Push;let p=d(b,g);i+=1,o.splice(i,o.length,p),r&&c&&c({action:a,location:p,delta:1})},replace(b,g){a=St.Replace;let p=d(b,g);o[i]=p,r&&c&&c({action:a,location:p,delta:0})},go(b){a=St.Pop;let g=l(i+b),p=o[g];i=g,c&&c({action:a,location:p,delta:b})},listen(b){return c=b,()=>{c=null}}}}function uS(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:c}=r.location;return oo("",{pathname:i,search:a,hash:c},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Ln(o)}return yp(t,n,null,e)}function dS(e){e===void 0&&(e={});function t(o,i){let{pathname:a="/",search:c="",hash:l=""}=vn(o.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),oo("",{pathname:a,search:c,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let a=o.document.querySelector("base"),c="";if(a&&a.getAttribute("href")){let l=o.location.href,u=l.indexOf("#");c=u===-1?l:l.slice(0,u)}return c+"#"+(typeof i=="string"?i:Ln(i))}function r(o,i){dt(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return yp(t,n,r,e)}function pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fS(){return Math.random().toString(36).substr(2,8)}function Ou(e,t){return{usr:e.state,key:e.key,idx:t}}function oo(e,t,n,r){return n===void 0&&(n=null),ro({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?vn(t):t,{state:n,key:t&&t.key||r||fS()})}function Ln(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function vn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function yp(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,c=St.Pop,l=null,u=d();u==null&&(u=0,a.replaceState(ro({},a.state,{idx:u}),""));function d(){return(a.state||{idx:null}).idx}function f(){c=St.Pop;let y=d(),C=y==null?null:y-u;u=y,l&&l({action:c,location:p.location,delta:C})}function m(y,C){c=St.Push;let T=oo(p.location,y,C);n&&n(T,y),u=d()+1;let w=Ou(T,u),E=p.createHref(T);try{a.pushState(w,"",E)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(E)}i&&l&&l({action:c,location:p.location,delta:1})}function b(y,C){c=St.Replace;let T=oo(p.location,y,C);n&&n(T,y),u=d();let w=Ou(T,u),E=p.createHref(T);a.replaceState(w,"",E),i&&l&&l({action:c,location:p.location,delta:0})}function g(y){let C=o.location.origin!=="null"?o.location.origin:o.location.href,T=typeof y=="string"?y:Ln(y);return T=T.replace(/ $/,"%20"),pe(C,"No window.location.(origin|href) available to create URL for href: "+T),new URL(T,C)}let p={get action(){return c},get location(){return e(o,a)},listen(y){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Tu,f),l=y,()=>{o.removeEventListener(Tu,f),l=null}},createHref(y){return t(o,y)},createURL:g,encodeLocation(y){let C=g(y);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:m,replace:b,go(y){return a.go(y)}};return p}var Ru;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ru||(Ru={}));function pS(e,t,n){return n===void 0&&(n="/"),hS(e,t,n)}function hS(e,t,n,r){let o=typeof t=="string"?vn(t):t,i=hn(o.pathname||"/",n);if(i==null)return null;let a=vp(e);mS(a);let c=null;for(let l=0;c==null&&l<a.length;++l){let u=OS(i);c=CS(a[l],u)}return c}function vp(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,c)=>{let l={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(pe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Zt([r,l.relativePath]),d=n.concat(l);i.children&&i.children.length>0&&(pe(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),vp(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:SS(u,i.index),routesMeta:d})};return e.forEach((i,a)=>{var c;if(i.path===""||!((c=i.path)!=null&&c.includes("?")))o(i,a);else for(let l of bp(i.path))o(i,a,l)}),t}function bp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=bp(r.join("/")),c=[];return c.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&c.push(...a),c.map(l=>e.startsWith("/")&&l===""?"/":l)}function mS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:wS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const gS=/^:[\w-]+$/,yS=3,vS=2,bS=1,xS=10,ES=-2,ju=e=>e==="*";function SS(e,t){let n=e.split("/"),r=n.length;return n.some(ju)&&(r+=ES),t&&(r+=vS),n.filter(o=>!ju(o)).reduce((o,i)=>o+(gS.test(i)?yS:i===""?bS:xS),r)}function wS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function CS(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let c=0;c<r.length;++c){let l=r[c],u=c===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=aa({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),m=l.route;if(!f)return null;Object.assign(o,f.params),a.push({params:o,pathname:Zt([i,f.pathname]),pathnameBase:PS(Zt([i,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(i=Zt([i,f.pathnameBase]))}return a}function aa(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=TS(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:m,isOptional:b}=d;if(m==="*"){let p=c[f]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const g=c[f];return b&&!g?u[m]=void 0:u[m]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function TS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),dt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,c,l)=>(r.push({paramName:c,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function OS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dt(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function hn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function RS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?vn(e):e;return{pathname:n?n.startsWith("/")?n:jS(n,t):t,search:NS(r),hash:AS(o)}}function jS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ss(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function kS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function uc(e,t){let n=kS(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function dc(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=vn(e):(o=ro({},e),pe(!o.pathname||!o.pathname.includes("?"),Ss("?","pathname","search",o)),pe(!o.pathname||!o.pathname.includes("#"),Ss("#","pathname","hash",o)),pe(!o.search||!o.search.includes("#"),Ss("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,c;if(a==null)c=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let m=a.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}c=f>=0?t[f]:"/"}let l=RS(o,c),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Zt=e=>e.join("/").replace(/\/\/+/g,"/"),PS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),NS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,AS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function IS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xp=["post","put","patch","delete"];new Set(xp);const _S=["get",...xp];new Set(_S);/**
|
|
254
254
|
* React Router v6.28.1
|
|
255
255
|
*
|
|
256
256
|
* Copyright (c) Remix Software Inc.
|
|
@@ -259,9 +259,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
259
259
|
* LICENSE.md file in the root directory of this source tree.
|
|
260
260
|
*
|
|
261
261
|
* @license MIT
|
|
262
|
-
*/function
|
|
262
|
+
*/function io(){return io=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},io.apply(this,arguments)}const yo=v.createContext(null);process.env.NODE_ENV!=="production"&&(yo.displayName="DataRouter");const fc=v.createContext(null);process.env.NODE_ENV!=="production"&&(fc.displayName="DataRouterState");const MS=v.createContext(null);process.env.NODE_ENV!=="production"&&(MS.displayName="Await");const jt=v.createContext(null);process.env.NODE_ENV!=="production"&&(jt.displayName="Navigation");const vo=v.createContext(null);process.env.NODE_ENV!=="production"&&(vo.displayName="Location");const kt=v.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(kt.displayName="Route");const pc=v.createContext(null);process.env.NODE_ENV!=="production"&&(pc.displayName="RouteError");function $S(e,t){let{relative:n}=t===void 0?{}:t;vr()||(process.env.NODE_ENV!=="production"?pe(!1,"useHref() may be used only in the context of a <Router> component."):pe(!1));let{basename:r,navigator:o}=v.useContext(jt),{hash:i,pathname:a,search:c}=xo(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Zt([r,a])),o.createHref({pathname:l,search:c,hash:i})}function vr(){return v.useContext(vo)!=null}function Mt(){return vr()||(process.env.NODE_ENV!=="production"?pe(!1,"useLocation() may be used only in the context of a <Router> component."):pe(!1)),v.useContext(vo).location}const Ep="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Sp(e){v.useContext(jt).static||v.useLayoutEffect(e)}function Pt(){let{isDataRoute:e}=v.useContext(kt);return e?ZS():DS()}function DS(){vr()||(process.env.NODE_ENV!=="production"?pe(!1,"useNavigate() may be used only in the context of a <Router> component."):pe(!1));let e=v.useContext(yo),{basename:t,future:n,navigator:r}=v.useContext(jt),{matches:o}=v.useContext(kt),{pathname:i}=Mt(),a=JSON.stringify(uc(o,n.v7_relativeSplatPath)),c=v.useRef(!1);return Sp(()=>{c.current=!0}),v.useCallback(function(u,d){if(d===void 0&&(d={}),process.env.NODE_ENV!=="production"&&dt(c.current,Ep),!c.current)return;if(typeof u=="number"){r.go(u);return}let f=dc(u,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Zt([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,a,i,e])}const LS=v.createContext(null);function BS(e){let t=v.useContext(kt).outlet;return t&&v.createElement(LS.Provider,{value:e},t)}function bo(){let{matches:e}=v.useContext(kt),t=e[e.length-1];return t?t.params:{}}function xo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(jt),{matches:o}=v.useContext(kt),{pathname:i}=Mt(),a=JSON.stringify(uc(o,r.v7_relativeSplatPath));return v.useMemo(()=>dc(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function FS(e,t){return VS(e,t)}function VS(e,t,n,r){vr()||(process.env.NODE_ENV!=="production"?pe(!1,"useRoutes() may be used only in the context of a <Router> component."):pe(!1));let{navigator:o}=v.useContext(jt),{matches:i}=v.useContext(kt),a=i[i.length-1],c=a?a.params:{},l=a?a.pathname:"/",u=a?a.pathnameBase:"/",d=a&&a.route;if(process.env.NODE_ENV!=="production"){let T=d&&d.path||"";Cp(l,!d||T.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+l+'" (under <Route path="'+T+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
263
263
|
|
|
264
|
-
`+('Please change the parent <Route path="'+C+'"> to <Route ')+('path="'+(C==="/"?"*":C+"/*")+'">.'))}let f=It(),h;if(t){var b;let C=typeof t=="string"?vn(t):t;u==="/"||(b=C.pathname)!=null&&b.startsWith(u)||(process.env.NODE_ENV!=="production"?pe(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+u+'" ')+('but pathname "'+C.pathname+'" was given in the `location` prop.')):pe(!1)),h=C}else h=f;let m=h.pathname||"/",p=m;if(u!=="/"){let C=u.replace(/^\//,"").split("/");p="/"+m.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=cS(e,{pathname:p});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&dt(d||y!=null,'No routes matched location "'+h.pathname+h.search+h.hash+'" '),process.env.NODE_ENV!=="production"&&dt(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,'Matched leaf route at location "'+h.pathname+h.search+h.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let T=VS(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Jt([u,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:Jt([u,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),i,n,r);return t&&T?v.createElement(yo.Provider,{value:{location:oo({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:St.Pop}},T):T}function DS(){let e=qS(),t=kS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:i},"ErrorBoundary")," or"," ",v.createElement("code",{style:i},"errorElement")," prop on your route."))),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,a)}const LS=v.createElement(DS,null);class BS extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(Pt.Provider,{value:this.props.routeContext},v.createElement(cc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function FS(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(go);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(Pt.Provider,{value:t},r)}function VS(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,c=(o=n)==null?void 0:o.errors;if(c!=null){let d=a.findIndex(f=>f.route.id&&(c==null?void 0:c[f.route.id])!==void 0);d>=0||(process.env.NODE_ENV!=="production"?pe(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):pe(!1)),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:h,errors:b}=n,m=f.route.loader&&h[f.route.id]===void 0&&(!b||b[f.route.id]===void 0);if(f.route.lazy||m){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,h)=>{let b,m=!1,p=null,y=null;n&&(b=c&&f.route.id?c[f.route.id]:void 0,p=f.route.errorElement||LS,l&&(u<0&&h===0?(xp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,y=null):u===h&&(m=!0,y=f.route.hydrateFallbackElement||null)));let T=t.concat(a.slice(0,h+1)),C=()=>{let w;return b?w=p:m?w=y:f.route.Component?w=v.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,v.createElement(FS,{match:f,routeContext:{outlet:d,matches:T,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?v.createElement(BS,{location:n.location,revalidation:n.revalidation,component:p,error:b,children:C(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):C()},null)}var bp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(bp||{}),io=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(io||{});function uc(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function US(e){let t=v.useContext(go);return t||(process.env.NODE_ENV!=="production"?pe(!1,uc(e)):pe(!1)),t}function zS(e){let t=v.useContext(ac);return t||(process.env.NODE_ENV!=="production"?pe(!1,uc(e)):pe(!1)),t}function WS(e){let t=v.useContext(Pt);return t||(process.env.NODE_ENV!=="production"?pe(!1,uc(e)):pe(!1)),t}function dc(e){let t=WS(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?pe(!1,e+' can only be used on routes that contain a unique "id"'):pe(!1)),n.route.id}function HS(){return dc(io.UseRouteId)}function qS(){var e;let t=v.useContext(cc),n=zS(io.UseRouteError),r=dc(io.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function GS(){let{router:e}=US(bp.UseNavigateStable),t=dc(io.UseNavigateStable),n=v.useRef(!1);return vp(()=>{n.current=!0}),v.useCallback(function(o,i){i===void 0&&(i={}),process.env.NODE_ENV!=="production"&&dt(n.current,yp),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,oo({fromRouteId:t},i)))},[e,t])}const Ou={};function xp(e,t,n){!t&&!Ou[e]&&(Ou[e]=!0,process.env.NODE_ENV!=="production"&&dt(!1,n))}const Ru={};function YS(e,t){Ru[t]||(Ru[t]=!0,console.warn(t))}const ku=(e,t,n)=>YS(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function fc(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&ku("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&!t&&ku("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}const KS="startTransition",Pu=v[KS];function XS(e){let{basename:t,children:n,initialEntries:r,initialIndex:o,future:i}=e,a=v.useRef();a.current==null&&(a.current=oS({initialEntries:r,initialIndex:o,v5Compat:!0}));let c=a.current,[l,u]=v.useState({action:c.action,location:c.location}),{v7_startTransition:d}=i||{},f=v.useCallback(h=>{d&&Pu?Pu(()=>u(h)):u(h)},[u,d]);return v.useLayoutEffect(()=>c.listen(f),[c,f]),v.useEffect(()=>fc(i),[i]),v.createElement(pc,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:c,future:i})}function JS(e){let{to:t,replace:n,state:r,relative:o}=e;yr()||(process.env.NODE_ENV!=="production"?pe(!1,"<Navigate> may be used only in the context of a <Router> component."):pe(!1));let{future:i,static:a}=v.useContext(kt);process.env.NODE_ENV!=="production"&&dt(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=v.useContext(Pt),{pathname:l}=It(),u=tn(),d=sc(t,ic(c,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(d);return v.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:o}),[u,f,o,n,r]),null}function Ep(e){return _S(e.context)}function Ur(e){process.env.NODE_ENV!=="production"?pe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):pe(!1)}function pc(e){let{basename:t="/",children:n=null,location:r,navigationType:o=St.Pop,navigator:i,static:a=!1,future:c}=e;yr()&&(process.env.NODE_ENV!=="production"?pe(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):pe(!1));let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:i,static:a,future:oo({v7_relativeSplatPath:!1},c)}),[l,c,i,a]);typeof r=="string"&&(r=vn(r));let{pathname:d="/",search:f="",hash:h="",state:b=null,key:m="default"}=r,p=v.useMemo(()=>{let y=hn(d,l);return y==null?null:{location:{pathname:y,search:f,hash:h,state:b,key:m},navigationType:o}},[l,d,f,h,b,m,o]);return process.env.NODE_ENV!=="production"&&dt(p!=null,'<Router basename="'+l+'"> is not able to match the URL '+('"'+d+f+h+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),p==null?null:v.createElement(kt.Provider,{value:u},v.createElement(yo.Provider,{children:n,value:p}))}function Sp(e){let{children:t,location:n}=e;return $S(ra(t),n)}new Promise(()=>{});function ra(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,ra(r.props.children,i));return}r.type!==Ur&&(process.env.NODE_ENV!=="production"?pe(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):pe(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?pe(!1,"An index route cannot have child routes."):pe(!1));let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ra(r.props.children,i)),n.push(a)}),n}/**
|
|
264
|
+
`+('Please change the parent <Route path="'+T+'"> to <Route ')+('path="'+(T==="/"?"*":T+"/*")+'">.'))}let f=Mt(),m;if(t){var b;let T=typeof t=="string"?vn(t):t;u==="/"||(b=T.pathname)!=null&&b.startsWith(u)||(process.env.NODE_ENV!=="production"?pe(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+u+'" ')+('but pathname "'+T.pathname+'" was given in the `location` prop.')):pe(!1)),m=T}else m=f;let g=m.pathname||"/",p=g;if(u!=="/"){let T=u.replace(/^\//,"").split("/");p="/"+g.replace(/^\//,"").split("/").slice(T.length).join("/")}let y=pS(e,{pathname:p});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&dt(d||y!=null,'No routes matched location "'+m.pathname+m.search+m.hash+'" '),process.env.NODE_ENV!=="production"&&dt(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,'Matched leaf route at location "'+m.pathname+m.search+m.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let C=qS(y&&y.map(T=>Object.assign({},T,{params:Object.assign({},c,T.params),pathname:Zt([u,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?u:Zt([u,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),i,n,r);return t&&C?v.createElement(vo.Provider,{value:{location:io({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:St.Pop}},C):C}function US(){let e=JS(),t=IS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:i},"ErrorBoundary")," or"," ",v.createElement("code",{style:i},"errorElement")," prop on your route."))),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:o},n):null,a)}const zS=v.createElement(US,null);class WS extends v.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?v.createElement(kt.Provider,{value:this.props.routeContext},v.createElement(pc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function HS(e){let{routeContext:t,match:n,children:r}=e,o=v.useContext(yo);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(kt.Provider,{value:t},r)}function qS(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,c=(o=n)==null?void 0:o.errors;if(c!=null){let d=a.findIndex(f=>f.route.id&&(c==null?void 0:c[f.route.id])!==void 0);d>=0||(process.env.NODE_ENV!=="production"?pe(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):pe(!1)),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:b}=n,g=f.route.loader&&m[f.route.id]===void 0&&(!b||b[f.route.id]===void 0);if(f.route.lazy||g){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,m)=>{let b,g=!1,p=null,y=null;n&&(b=c&&f.route.id?c[f.route.id]:void 0,p=f.route.errorElement||zS,l&&(u<0&&m===0?(Cp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,y=null):u===m&&(g=!0,y=f.route.hydrateFallbackElement||null)));let C=t.concat(a.slice(0,m+1)),T=()=>{let w;return b?w=p:g?w=y:f.route.Component?w=v.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,v.createElement(HS,{match:f,routeContext:{outlet:d,matches:C,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?v.createElement(WS,{location:n.location,revalidation:n.revalidation,component:p,error:b,children:T(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):T()},null)}var wp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(wp||{}),so=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(so||{});function hc(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function GS(e){let t=v.useContext(yo);return t||(process.env.NODE_ENV!=="production"?pe(!1,hc(e)):pe(!1)),t}function YS(e){let t=v.useContext(fc);return t||(process.env.NODE_ENV!=="production"?pe(!1,hc(e)):pe(!1)),t}function KS(e){let t=v.useContext(kt);return t||(process.env.NODE_ENV!=="production"?pe(!1,hc(e)):pe(!1)),t}function mc(e){let t=KS(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?pe(!1,e+' can only be used on routes that contain a unique "id"'):pe(!1)),n.route.id}function XS(){return mc(so.UseRouteId)}function JS(){var e;let t=v.useContext(pc),n=YS(so.UseRouteError),r=mc(so.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ZS(){let{router:e}=GS(wp.UseNavigateStable),t=mc(so.UseNavigateStable),n=v.useRef(!1);return Sp(()=>{n.current=!0}),v.useCallback(function(o,i){i===void 0&&(i={}),process.env.NODE_ENV!=="production"&&dt(n.current,Ep),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,io({fromRouteId:t},i)))},[e,t])}const ku={};function Cp(e,t,n){!t&&!ku[e]&&(ku[e]=!0,process.env.NODE_ENV!=="production"&&dt(!1,n))}const Pu={};function QS(e,t){Pu[t]||(Pu[t]=!0,console.warn(t))}const Nu=(e,t,n)=>QS(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function gc(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&Nu("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&!t&&Nu("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}const ew="startTransition",Au=v[ew];function tw(e){let{basename:t,children:n,initialEntries:r,initialIndex:o,future:i}=e,a=v.useRef();a.current==null&&(a.current=lS({initialEntries:r,initialIndex:o,v5Compat:!0}));let c=a.current,[l,u]=v.useState({action:c.action,location:c.location}),{v7_startTransition:d}=i||{},f=v.useCallback(m=>{d&&Au?Au(()=>u(m)):u(m)},[u,d]);return v.useLayoutEffect(()=>c.listen(f),[c,f]),v.useEffect(()=>gc(i),[i]),v.createElement(vc,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:c,future:i})}function nw(e){let{to:t,replace:n,state:r,relative:o}=e;vr()||(process.env.NODE_ENV!=="production"?pe(!1,"<Navigate> may be used only in the context of a <Router> component."):pe(!1));let{future:i,static:a}=v.useContext(jt);process.env.NODE_ENV!=="production"&&dt(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=v.useContext(kt),{pathname:l}=Mt(),u=Pt(),d=dc(t,uc(c,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(d);return v.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:o}),[u,f,o,n,r]),null}function yc(e){return BS(e.context)}function On(e){process.env.NODE_ENV!=="production"?pe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):pe(!1)}function vc(e){let{basename:t="/",children:n=null,location:r,navigationType:o=St.Pop,navigator:i,static:a=!1,future:c}=e;vr()&&(process.env.NODE_ENV!=="production"?pe(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):pe(!1));let l=t.replace(/^\/*/,"/"),u=v.useMemo(()=>({basename:l,navigator:i,static:a,future:io({v7_relativeSplatPath:!1},c)}),[l,c,i,a]);typeof r=="string"&&(r=vn(r));let{pathname:d="/",search:f="",hash:m="",state:b=null,key:g="default"}=r,p=v.useMemo(()=>{let y=hn(d,l);return y==null?null:{location:{pathname:y,search:f,hash:m,state:b,key:g},navigationType:o}},[l,d,f,m,b,g,o]);return process.env.NODE_ENV!=="production"&&dt(p!=null,'<Router basename="'+l+'"> is not able to match the URL '+('"'+d+f+m+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),p==null?null:v.createElement(jt.Provider,{value:u},v.createElement(vo.Provider,{children:n,value:p}))}function Tp(e){let{children:t,location:n}=e;return FS(ca(t),n)}new Promise(()=>{});function ca(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,o)=>{if(!v.isValidElement(r))return;let i=[...t,o];if(r.type===v.Fragment){n.push.apply(n,ca(r.props.children,i));return}r.type!==On&&(process.env.NODE_ENV!=="production"?pe(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):pe(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?pe(!1,"An index route cannot have child routes."):pe(!1));let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ca(r.props.children,i)),n.push(a)}),n}/**
|
|
265
265
|
* React Router DOM v6.28.1
|
|
266
266
|
*
|
|
267
267
|
* Copyright (c) Remix Software Inc.
|
|
@@ -270,7 +270,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
270
270
|
* LICENSE.md file in the root directory of this source tree.
|
|
271
271
|
*
|
|
272
272
|
* @license MIT
|
|
273
|
-
*/function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pr.apply(this,arguments)}function hc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const Zo="get",Qo="application/x-www-form-urlencoded";function Wi(e){return e!=null&&typeof e.tagName=="string"}function ZS(e){return Wi(e)&&e.tagName.toLowerCase()==="button"}function QS(e){return Wi(e)&&e.tagName.toLowerCase()==="form"}function ew(e){return Wi(e)&&e.tagName.toLowerCase()==="input"}function tw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nw(e,t){return e.button===0&&(!t||t==="_self")&&!tw(e)}function oa(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function rw(e,t){let n=oa(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}let Lo=null;function ow(){if(Lo===null)try{new FormData(document.createElement("form"),0),Lo=!1}catch{Lo=!0}return Lo}const iw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bs(e){return e!=null&&!iw.has(e)?(process.env.NODE_ENV!=="production"&&dt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Qo+'"')),null):e}function sw(e,t){let n,r,o,i,a;if(QS(e)){let c=e.getAttribute("action");r=c?hn(c,t):null,n=e.getAttribute("method")||Zo,o=bs(e.getAttribute("enctype"))||Qo,i=new FormData(e)}else if(ZS(e)||ew(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||c.getAttribute("action");if(r=l?hn(l,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Zo,o=bs(e.getAttribute("formenctype"))||bs(c.getAttribute("enctype"))||Qo,i=new FormData(c,e),!ow()){let{name:u,type:d,value:f}=e;if(d==="image"){let h=u?u+".":"";i.append(h+"x","0"),i.append(h+"y","0")}else u&&i.append(u,f)}}else{if(Wi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Zo,r=null,o=Qo,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}const aw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],cw=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],lw=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],uw="6";try{window.__reactRouterVersion=uw}catch{}const wp=v.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(wp.displayName="ViewTransition");const dw=v.createContext(new Map);process.env.NODE_ENV!=="production"&&(dw.displayName="Fetchers");const fw="startTransition",yi=v[fw];function pw(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=iS({window:o,v5Compat:!0}));let a=i.current,[c,l]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=v.useCallback(f=>{u&&yi?yi(()=>l(f)):l(f)},[l,u]);return v.useLayoutEffect(()=>a.listen(d),[a,d]),v.useEffect(()=>fc(r),[r]),v.createElement(pc,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:a,future:r})}function hw(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=sS({window:o,v5Compat:!0}));let a=i.current,[c,l]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=v.useCallback(f=>{u&&yi?yi(()=>l(f)):l(f)},[l,u]);return v.useLayoutEffect(()=>a.listen(d),[a,d]),v.useEffect(()=>fc(r),[r]),v.createElement(pc,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:a,future:r})}process.env.NODE_ENV;const mw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mc=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:c,target:l,to:u,preventScrollReset:d,viewTransition:f}=t,h=hc(t,aw),{basename:b}=v.useContext(kt),m,p=!1;if(typeof u=="string"&&gw.test(u)&&(m=u,mw))try{let w=new URL(window.location.href),E=u.startsWith("//")?new URL(w.protocol+u):new URL(u),S=hn(E.pathname,b);E.origin===w.origin&&S!=null?u=S+E.search+E.hash:p=!0}catch{process.env.NODE_ENV!=="production"&&dt(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let y=jS(u,{relative:o}),T=xw(u,{replace:a,state:c,target:l,preventScrollReset:d,relative:o,viewTransition:f});function C(w){r&&r(w),w.defaultPrevented||T(w)}return v.createElement("a",pr({},h,{href:m||y,onClick:p||i?r:C,ref:n,target:l}))});process.env.NODE_ENV!=="production"&&(mc.displayName="Link");const yw=v.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:c,to:l,viewTransition:u,children:d}=t,f=hc(t,cw),h=vo(l,{relative:f.relative}),b=It(),m=v.useContext(ac),{navigator:p,basename:y}=v.useContext(kt),T=m!=null&&Rw(h)&&u===!0,C=p.encodeLocation?p.encodeLocation(h).pathname:h.pathname,w=b.pathname,E=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;o||(w=w.toLowerCase(),E=E?E.toLowerCase():null,C=C.toLowerCase()),E&&y&&(E=hn(E,y)||E);const S=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let O=w===C||!a&&w.startsWith(C)&&w.charAt(S)==="/",R=E!=null&&(E===C||!a&&E.startsWith(C)&&E.charAt(C.length)==="/"),N={isActive:O,isPending:R,isTransitioning:T},j=O?r:void 0,x;typeof i=="function"?x=i(N):x=[i,O?"active":null,R?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let P=typeof c=="function"?c(N):c;return v.createElement(mc,pr({},f,{"aria-current":j,className:x,ref:n,style:P,to:l,viewTransition:u}),typeof d=="function"?d(N):d)});process.env.NODE_ENV!=="production"&&(yw.displayName="NavLink");const vw=v.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:i,state:a,method:c=Zo,action:l,onSubmit:u,relative:d,preventScrollReset:f,viewTransition:h}=e,b=hc(e,lw),m=Cw(),p=Ow(l,{relative:d}),y=c.toLowerCase()==="get"?"get":"post",T=C=>{if(u&&u(C),C.defaultPrevented)return;C.preventDefault();let w=C.nativeEvent.submitter,E=(w==null?void 0:w.getAttribute("formmethod"))||c;m(w||C.currentTarget,{fetcherKey:n,method:E,navigate:r,replace:i,state:a,relative:d,preventScrollReset:f,viewTransition:h})};return v.createElement("form",pr({ref:t,method:y,action:p,onSubmit:o?u:T},b))});process.env.NODE_ENV!=="production"&&(vw.displayName="Form");process.env.NODE_ENV;var vi;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vi||(vi={}));var Nu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Nu||(Nu={}));function bw(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Tp(e){let t=v.useContext(go);return t||(process.env.NODE_ENV!=="production"?pe(!1,bw(e)):pe(!1)),t}function xw(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:c}=t===void 0?{}:t,l=tn(),u=It(),d=vo(e,{relative:a});return v.useCallback(f=>{if(nw(f,n)){f.preventDefault();let h=r!==void 0?r:$n(u)===$n(d);l(e,{replace:h,state:o,preventScrollReset:i,relative:a,viewTransition:c})}},[u,l,d,r,o,n,e,i,a,c])}function Ew(e){process.env.NODE_ENV!=="production"&&dt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=v.useRef(oa(e)),n=v.useRef(!1),r=It(),o=v.useMemo(()=>rw(r.search,n.current?null:t.current),[r.search]),i=tn(),a=v.useCallback((c,l)=>{const u=oa(typeof c=="function"?c(o):c);n.current=!0,i("?"+u,l)},[i,o]);return[o,a]}function Sw(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let ww=0,Tw=()=>"__"+String(++ww)+"__";function Cw(){let{router:e}=Tp(vi.UseSubmit),{basename:t}=v.useContext(kt),n=HS();return v.useCallback(function(r,o){o===void 0&&(o={}),Sw();let{action:i,method:a,encType:c,formData:l,body:u}=sw(r,t);if(o.navigate===!1){let d=o.fetcherKey||Tw();e.fetch(d,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||c,flushSync:o.flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function Ow(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=v.useContext(kt),o=v.useContext(Pt);o||(process.env.NODE_ENV!=="production"?pe(!1,"useFormAction must be used inside a RouteContext"):pe(!1));let[i]=o.matches.slice(-1),a=pr({},vo(e||".",{relative:n})),c=It();if(e==null){a.search=c.search;let l=new URLSearchParams(a.search),u=l.getAll("index");if(u.some(f=>f==="")){l.delete("index"),u.filter(h=>h).forEach(h=>l.append("index",h));let f=l.toString();a.search=f?"?"+f:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Jt([r,a.pathname])),$n(a)}function Rw(e,t){t===void 0&&(t={});let n=v.useContext(wp);n==null&&(process.env.NODE_ENV!=="production"?pe(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):pe(!1));let{basename:r}=Tp(vi.useViewTransitionState),o=vo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=hn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=hn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return na(o.pathname,a)!=null||na(o.pathname,i)!=null}function Cp(e){const{pathname:t}=It(),[n]=Ew(),r=tn(),o=v.useCallback((a,{history:c="auto"}={})=>{if(c==="auto"||c==="push")return r(a);if(c==="replace")return r(a,{replace:!0});throw new Error(`Invalid history option: ${c}`)},[r]),i=v.useMemo(()=>({pathname:t,searchParams:n,navigate:o}),[t,n,o]);return g.jsx(Mf,{router:i,...e})}const ju=e=>{let t;const n=new Set,r=(d,f)=>{const h=typeof d=="function"?d(t):d;if(!Object.is(h,t)){const b=t;t=f??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(m=>m(t,b))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{n.clear()}},u=t=e(r,o,l);return l},kw=e=>e?ju(e):ju;var ia={exports:{}},xs={},Bo={exports:{}},Es={};/**
|
|
273
|
+
*/function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hr.apply(this,arguments)}function bc(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const ti="get",ni="application/x-www-form-urlencoded";function Gi(e){return e!=null&&typeof e.tagName=="string"}function rw(e){return Gi(e)&&e.tagName.toLowerCase()==="button"}function ow(e){return Gi(e)&&e.tagName.toLowerCase()==="form"}function iw(e){return Gi(e)&&e.tagName.toLowerCase()==="input"}function sw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function aw(e,t){return e.button===0&&(!t||t==="_self")&&!sw(e)}function la(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function cw(e,t){let n=la(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}let Fo=null;function lw(){if(Fo===null)try{new FormData(document.createElement("form"),0),Fo=!1}catch{Fo=!0}return Fo}const uw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ws(e){return e!=null&&!uw.has(e)?(process.env.NODE_ENV!=="production"&&dt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+ni+'"')),null):e}function dw(e,t){let n,r,o,i,a;if(ow(e)){let c=e.getAttribute("action");r=c?hn(c,t):null,n=e.getAttribute("method")||ti,o=ws(e.getAttribute("enctype"))||ni,i=new FormData(e)}else if(rw(e)||iw(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||c.getAttribute("action");if(r=l?hn(l,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||ti,o=ws(e.getAttribute("formenctype"))||ws(c.getAttribute("enctype"))||ni,i=new FormData(c,e),!lw()){let{name:u,type:d,value:f}=e;if(d==="image"){let m=u?u+".":"";i.append(m+"x","0"),i.append(m+"y","0")}else u&&i.append(u,f)}}else{if(Gi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ti,r=null,o=ni,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}const fw=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],pw=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],hw=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],mw="6";try{window.__reactRouterVersion=mw}catch{}const Op=v.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Op.displayName="ViewTransition");const gw=v.createContext(new Map);process.env.NODE_ENV!=="production"&&(gw.displayName="Fetchers");const yw="startTransition",xi=v[yw];function vw(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=uS({window:o,v5Compat:!0}));let a=i.current,[c,l]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=v.useCallback(f=>{u&&xi?xi(()=>l(f)):l(f)},[l,u]);return v.useLayoutEffect(()=>a.listen(d),[a,d]),v.useEffect(()=>gc(r),[r]),v.createElement(vc,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:a,future:r})}function bw(e){let{basename:t,children:n,future:r,window:o}=e,i=v.useRef();i.current==null&&(i.current=dS({window:o,v5Compat:!0}));let a=i.current,[c,l]=v.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},d=v.useCallback(f=>{u&&xi?xi(()=>l(f)):l(f)},[l,u]);return v.useLayoutEffect(()=>a.listen(d),[a,d]),v.useEffect(()=>gc(r),[r]),v.createElement(vc,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:a,future:r})}process.env.NODE_ENV;const xw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ew=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xc=v.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:c,target:l,to:u,preventScrollReset:d,viewTransition:f}=t,m=bc(t,fw),{basename:b}=v.useContext(jt),g,p=!1;if(typeof u=="string"&&Ew.test(u)&&(g=u,xw))try{let w=new URL(window.location.href),E=u.startsWith("//")?new URL(w.protocol+u):new URL(u),S=hn(E.pathname,b);E.origin===w.origin&&S!=null?u=S+E.search+E.hash:p=!0}catch{process.env.NODE_ENV!=="production"&&dt(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let y=$S(u,{relative:o}),C=Tw(u,{replace:a,state:c,target:l,preventScrollReset:d,relative:o,viewTransition:f});function T(w){r&&r(w),w.defaultPrevented||C(w)}return v.createElement("a",hr({},m,{href:g||y,onClick:p||i?r:T,ref:n,target:l}))});process.env.NODE_ENV!=="production"&&(xc.displayName="Link");const Sw=v.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:a=!1,style:c,to:l,viewTransition:u,children:d}=t,f=bc(t,pw),m=xo(l,{relative:f.relative}),b=Mt(),g=v.useContext(fc),{navigator:p,basename:y}=v.useContext(jt),C=g!=null&&Aw(m)&&u===!0,T=p.encodeLocation?p.encodeLocation(m).pathname:m.pathname,w=b.pathname,E=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(w=w.toLowerCase(),E=E?E.toLowerCase():null,T=T.toLowerCase()),E&&y&&(E=hn(E,y)||E);const S=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let O=w===T||!a&&w.startsWith(T)&&w.charAt(S)==="/",R=E!=null&&(E===T||!a&&E.startsWith(T)&&E.charAt(T.length)==="/"),P={isActive:O,isPending:R,isTransitioning:C},N=O?r:void 0,x;typeof i=="function"?x=i(P):x=[i,O?"active":null,R?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let k=typeof c=="function"?c(P):c;return v.createElement(xc,hr({},f,{"aria-current":N,className:x,ref:n,style:k,to:l,viewTransition:u}),typeof d=="function"?d(P):d)});process.env.NODE_ENV!=="production"&&(Sw.displayName="NavLink");const ww=v.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:i,state:a,method:c=ti,action:l,onSubmit:u,relative:d,preventScrollReset:f,viewTransition:m}=e,b=bc(e,hw),g=Pw(),p=Nw(l,{relative:d}),y=c.toLowerCase()==="get"?"get":"post",C=T=>{if(u&&u(T),T.defaultPrevented)return;T.preventDefault();let w=T.nativeEvent.submitter,E=(w==null?void 0:w.getAttribute("formmethod"))||c;g(w||T.currentTarget,{fetcherKey:n,method:E,navigate:r,replace:i,state:a,relative:d,preventScrollReset:f,viewTransition:m})};return v.createElement("form",hr({ref:t,method:y,action:p,onSubmit:o?u:C},b))});process.env.NODE_ENV!=="production"&&(ww.displayName="Form");process.env.NODE_ENV;var Ei;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ei||(Ei={}));var Iu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Iu||(Iu={}));function Cw(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Rp(e){let t=v.useContext(yo);return t||(process.env.NODE_ENV!=="production"?pe(!1,Cw(e)):pe(!1)),t}function Tw(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:c}=t===void 0?{}:t,l=Pt(),u=Mt(),d=xo(e,{relative:a});return v.useCallback(f=>{if(aw(f,n)){f.preventDefault();let m=r!==void 0?r:Ln(u)===Ln(d);l(e,{replace:m,state:o,preventScrollReset:i,relative:a,viewTransition:c})}},[u,l,d,r,o,n,e,i,a,c])}function Ow(e){process.env.NODE_ENV!=="production"&&dt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=v.useRef(la(e)),n=v.useRef(!1),r=Mt(),o=v.useMemo(()=>cw(r.search,n.current?null:t.current),[r.search]),i=Pt(),a=v.useCallback((c,l)=>{const u=la(typeof c=="function"?c(o):c);n.current=!0,i("?"+u,l)},[i,o]);return[o,a]}function Rw(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let jw=0,kw=()=>"__"+String(++jw)+"__";function Pw(){let{router:e}=Rp(Ei.UseSubmit),{basename:t}=v.useContext(jt),n=XS();return v.useCallback(function(r,o){o===void 0&&(o={}),Rw();let{action:i,method:a,encType:c,formData:l,body:u}=dw(r,t);if(o.navigate===!1){let d=o.fetcherKey||kw();e.fetch(d,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||c,flushSync:o.flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:l,body:u,formMethod:o.method||a,formEncType:o.encType||c,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function Nw(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=v.useContext(jt),o=v.useContext(kt);o||(process.env.NODE_ENV!=="production"?pe(!1,"useFormAction must be used inside a RouteContext"):pe(!1));let[i]=o.matches.slice(-1),a=hr({},xo(e||".",{relative:n})),c=Mt();if(e==null){a.search=c.search;let l=new URLSearchParams(a.search),u=l.getAll("index");if(u.some(f=>f==="")){l.delete("index"),u.filter(m=>m).forEach(m=>l.append("index",m));let f=l.toString();a.search=f?"?"+f:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Zt([r,a.pathname])),Ln(a)}function Aw(e,t){t===void 0&&(t={});let n=v.useContext(Op);n==null&&(process.env.NODE_ENV!=="production"?pe(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):pe(!1));let{basename:r}=Rp(Ei.useViewTransitionState),o=xo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=hn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=hn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return aa(o.pathname,a)!=null||aa(o.pathname,i)!=null}function jp(e){const{pathname:t}=Mt(),[n]=Ow(),r=Pt(),o=v.useCallback((a,{history:c="auto"}={})=>{if(c==="auto"||c==="push")return r(a);if(c==="replace")return r(a,{replace:!0});throw new Error(`Invalid history option: ${c}`)},[r]),i=v.useMemo(()=>({pathname:t,searchParams:n,navigate:o}),[t,n,o]);return h.jsx(Ff,{router:i,...e})}const _u=e=>{let t;const n=new Set,r=(d,f)=>{const m=typeof d=="function"?d(t):d;if(!Object.is(m,t)){const b=t;t=f??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(g=>g(t,b))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{n.clear()}},u=t=e(r,o,l);return l},Iw=e=>e?_u(e):_u;var ua={exports:{}},Cs={},Vo={exports:{}},Ts={};/**
|
|
274
274
|
* @license React
|
|
275
275
|
* use-sync-external-store-shim.production.min.js
|
|
276
276
|
*
|
|
@@ -278,7 +278,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
278
278
|
*
|
|
279
279
|
* This source code is licensed under the MIT license found in the
|
|
280
280
|
* LICENSE file in the root directory of this source tree.
|
|
281
|
-
*/var
|
|
281
|
+
*/var Mu;function _w(){if(Mu)return Ts;Mu=1;var e=M;function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function c(f,m){var b=m(),g=r({inst:{value:b,getSnapshot:m}}),p=g[0].inst,y=g[1];return i(function(){p.value=b,p.getSnapshot=m,l(p)&&y({inst:p})},[f,b,m]),o(function(){return l(p)&&y({inst:p}),f(function(){l(p)&&y({inst:p})})},[f]),a(b),b}function l(f){var m=f.getSnapshot;f=f.value;try{var b=m();return!n(f,b)}catch{return!0}}function u(f,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:c;return Ts.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Ts}var Os={};/**
|
|
282
282
|
* @license React
|
|
283
283
|
* use-sync-external-store-shim.development.js
|
|
284
284
|
*
|
|
@@ -286,7 +286,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
286
286
|
*
|
|
287
287
|
* This source code is licensed under the MIT license found in the
|
|
288
288
|
* LICENSE file in the root directory of this source tree.
|
|
289
|
-
*/var
|
|
289
|
+
*/var $u;function Mw(){return $u||($u=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=M,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(w){{for(var E=arguments.length,S=new Array(E>1?E-1:0),O=1;O<E;O++)S[O-1]=arguments[O];r("error",w,S)}}function r(w,E,S){{var O=t.ReactDebugCurrentFrame,R=O.getStackAddendum();R!==""&&(E+="%s",S=S.concat([R]));var P=S.map(function(N){return String(N)});P.unshift("Warning: "+E),Function.prototype.apply.call(console[w],console,P)}}function o(w,E){return w===E&&(w!==0||1/w===1/E)||w!==w&&E!==E}var i=typeof Object.is=="function"?Object.is:o,a=e.useState,c=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue,d=!1,f=!1;function m(w,E,S){d||e.startTransition!==void 0&&(d=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var O=E();if(!f){var R=E();i(O,R)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var P=a({inst:{value:O,getSnapshot:E}}),N=P[0].inst,x=P[1];return l(function(){N.value=O,N.getSnapshot=E,b(N)&&x({inst:N})},[w,O,E]),c(function(){b(N)&&x({inst:N});var k=function(){b(N)&&x({inst:N})};return w(k)},[w]),u(O),O}function b(w){var E=w.getSnapshot,S=w.value;try{var O=E();return!i(S,O)}catch{return!0}}function g(w,E,S){return E()}var p=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y=!p,C=y?g:m,T=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:C;Os.useSyncExternalStore=T,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Os}var Du;function kp(){return Du||(Du=1,process.env.NODE_ENV==="production"?Vo.exports=_w():Vo.exports=Mw()),Vo.exports}/**
|
|
290
290
|
* @license React
|
|
291
291
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
292
292
|
*
|
|
@@ -294,7 +294,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
294
294
|
*
|
|
295
295
|
* This source code is licensed under the MIT license found in the
|
|
296
296
|
* LICENSE file in the root directory of this source tree.
|
|
297
|
-
*/var
|
|
297
|
+
*/var Lu;function $w(){if(Lu)return Cs;Lu=1;var e=M,t=kp();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,c=e.useMemo,l=e.useDebugValue;return Cs.useSyncExternalStoreWithSelector=function(u,d,f,m,b){var g=i(null);if(g.current===null){var p={hasValue:!1,value:null};g.current=p}else p=g.current;g=c(function(){function C(O){if(!T){if(T=!0,w=O,O=m(O),b!==void 0&&p.hasValue){var R=p.value;if(b(R,O))return E=R}return E=O}if(R=E,r(w,O))return R;var P=m(O);return b!==void 0&&b(R,P)?R:(w=O,E=P)}var T=!1,w,E,S=f===void 0?null:f;return[function(){return C(d())},S===null?void 0:function(){return C(S())}]},[d,f,m,b]);var y=o(u,g[0],g[1]);return a(function(){p.hasValue=!0,p.value=y},[y]),l(y),y},Cs}var Rs={};/**
|
|
298
298
|
* @license React
|
|
299
299
|
* use-sync-external-store-shim/with-selector.development.js
|
|
300
300
|
*
|
|
@@ -302,26 +302,26 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
302
302
|
*
|
|
303
303
|
* This source code is licensed under the MIT license found in the
|
|
304
304
|
* LICENSE file in the root directory of this source tree.
|
|
305
|
-
*/var Mu;function Aw(){return Mu||(Mu=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=D,t=Op();function n(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,c=e.useMemo,l=e.useDebugValue;function u(d,f,h,b,m){var p=i(null),y;p.current===null?(y={hasValue:!1,value:null},p.current=y):y=p.current;var T=c(function(){var S=!1,O,R,N=function(B){if(!S){S=!0,O=B;var $=b(B);if(m!==void 0&&y.hasValue){var U=y.value;if(m(U,$))return R=U,U}return R=$,$}var M=O,L=R;if(r(M,B))return L;var H=b(B);return m!==void 0&&m(L,H)?L:(O=B,R=H,H)},j=h===void 0?null:h,x=function(){return N(f())},P=j===null?void 0:function(){return N(j())};return[x,P]},[f,h,b,m]),C=T[0],w=T[1],E=o(d,C,w);return a(function(){y.hasValue=!0,y.value=E},[E]),l(E),E}ws.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ws}process.env.NODE_ENV==="production"?ia.exports=jw():ia.exports=Aw();var Iw=ia.exports;const _w=ma(Iw),{useDebugValue:$w}=D,{useSyncExternalStoreWithSelector:Mw}=_w,Dw=e=>e;function Lw(e,t=Dw,n){const r=Mw(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return $w(r),r}const Du=e=>{const t=typeof e=="function"?kw(e):e,n=(r,o)=>Lw(t,r,o);return Object.assign(n,t),n},bo=e=>e?Du(e):Du,gc=Ge(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),yc=Ge(g.jsx("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8zm-2 8c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m4 8H8v-.57c0-.81.48-1.53 1.22-1.85.85-.37 1.79-.58 2.78-.58s1.93.21 2.78.58c.74.32 1.22 1.04 1.22 1.85z"}),"ContactPage"),Bw=Ge(g.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),vc=e=>e.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,""),ei=[{kind:"header",title:"Other"},{segment:"help",title:"Help",iconFC:gc,kind:"page"},{segment:"contact",title:"Contact",iconFC:yc,kind:"page"}],xo=bo(e=>({navigation:ei,baseSections:{header:{kind:"header",title:"Other"},contact:{segment:"contact",title:"Contact",iconFC:yc,kind:"page"},help:{segment:"help",title:"Help",iconFC:gc,kind:"page"}},sections:{},setNavigation:t=>e({navigation:t}),updateSection:(t,n,r)=>e(o=>{console.log("Updating section: ",t,n,r);const i=vc(t.title),c=o.sections[i]||{kind:"page",segment:i,title:t.title,iconFC:Bw,metadata:{description:t.description,forRoles:["student","teacher"],isRootTool:!0},children:[]};c.children=[...r];const l={...o.sections,[i]:c},u=[];for(const d in o.baseSections)u.push(o.baseSections[d]);for(const d in l)console.log("Item: ",l[d]),u.push(l[d]);return{sections:l,navigation:u}})})),Fw=e=>({teacher:ei,student:ei.filter(n=>n.kind!=="header"||n.title!=="Exercise Session manager"),guest:ei.filter(n=>n.kind!=="header"||n.title!=="Exercise statistics")})[e]||[];function Rp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vw}=Object.prototype,{getPrototypeOf:bc}=Object,Hi=(e=>t=>{const n=Vw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_t=e=>(e=e.toLowerCase(),t=>Hi(t)===e),qi=e=>t=>typeof t===e,{isArray:vr}=Array,so=qi("undefined");function Uw(e){return e!==null&&!so(e)&&e.constructor!==null&&!so(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kp=_t("ArrayBuffer");function zw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&kp(e.buffer),t}const Ww=qi("string"),mt=qi("function"),Pp=qi("number"),Gi=e=>e!==null&&typeof e=="object",Hw=e=>e===!0||e===!1,ti=e=>{if(Hi(e)!=="object")return!1;const t=bc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qw=_t("Date"),Gw=_t("File"),Yw=_t("Blob"),Kw=_t("FileList"),Xw=e=>Gi(e)&&mt(e.pipe),Jw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=Hi(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},Zw=_t("URLSearchParams"),[Qw,eT,tT,nT]=["ReadableStream","Request","Response","Headers"].map(_t),rT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Eo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),vr(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let c;for(r=0;r<a;r++)c=i[r],t.call(null,e[c],c,e)}}function Np(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Rn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jp=e=>!so(e)&&e!==Rn;function sa(){const{caseless:e}=jp(this)&&this||{},t={},n=(r,o)=>{const i=e&&Np(t,o)||o;ti(t[i])&&ti(r)?t[i]=sa(t[i],r):ti(r)?t[i]=sa({},r):vr(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Eo(arguments[r],n);return t}const oT=(e,t,n,{allOwnKeys:r}={})=>(Eo(t,(o,i)=>{n&&mt(o)?e[i]=Rp(o,n):e[i]=o},{allOwnKeys:r}),e),iT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sT=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},aT=(e,t,n,r)=>{let o,i,a;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&bc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cT=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},lT=e=>{if(!e)return null;if(vr(e))return e;let t=e.length;if(!Pp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},uT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&bc(Uint8Array)),dT=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},fT=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pT=_t("HTMLFormElement"),hT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Lu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),mT=_t("RegExp"),Ap=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Eo(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},gT=e=>{Ap(e,(t,n)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},yT=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return vr(e)?r(e):r(String(e).split(t)),n},vT=()=>{},bT=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ts="abcdefghijklmnopqrstuvwxyz",Bu="0123456789",Ip={DIGIT:Bu,ALPHA:Ts,ALPHA_DIGIT:Ts+Ts.toUpperCase()+Bu},xT=(e=16,t=Ip.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ET(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ST=e=>{const t=new Array(10),n=(r,o)=>{if(Gi(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=vr(r)?[]:{};return Eo(r,(a,c)=>{const l=n(a,o+1);!so(l)&&(i[c]=l)}),t[o]=void 0,i}}return r};return n(e,0)},wT=_t("AsyncFunction"),TT=e=>e&&(Gi(e)||mt(e))&&mt(e.then)&&mt(e.catch),_p=((e,t)=>e?setImmediate:t?((n,r)=>(Rn.addEventListener("message",({source:o,data:i})=>{o===Rn&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Rn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",mt(Rn.postMessage)),CT=typeof queueMicrotask<"u"?queueMicrotask.bind(Rn):typeof process<"u"&&process.nextTick||_p,I={isArray:vr,isArrayBuffer:kp,isBuffer:Uw,isFormData:Jw,isArrayBufferView:zw,isString:Ww,isNumber:Pp,isBoolean:Hw,isObject:Gi,isPlainObject:ti,isReadableStream:Qw,isRequest:eT,isResponse:tT,isHeaders:nT,isUndefined:so,isDate:qw,isFile:Gw,isBlob:Yw,isRegExp:mT,isFunction:mt,isStream:Xw,isURLSearchParams:Zw,isTypedArray:uT,isFileList:Kw,forEach:Eo,merge:sa,extend:oT,trim:rT,stripBOM:iT,inherits:sT,toFlatObject:aT,kindOf:Hi,kindOfTest:_t,endsWith:cT,toArray:lT,forEachEntry:dT,matchAll:fT,isHTMLForm:pT,hasOwnProperty:Lu,hasOwnProp:Lu,reduceDescriptors:Ap,freezeMethods:gT,toObjectSet:yT,toCamelCase:hT,noop:vT,toFiniteNumber:bT,findKey:Np,global:Rn,isContextDefined:jp,ALPHABET:Ip,generateString:xT,isSpecCompliantForm:ET,toJSONObject:ST,isAsyncFn:wT,isThenable:TT,setImmediate:_p,asap:CT};function fe(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}I.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}});const $p=fe.prototype,Mp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Mp[e]={value:e}});Object.defineProperties(fe,Mp);Object.defineProperty($p,"isAxiosError",{value:!0});fe.from=(e,t,n,r,o,i)=>{const a=Object.create($p);return I.toFlatObject(e,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),fe.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const OT=null;function aa(e){return I.isPlainObject(e)||I.isArray(e)}function Dp(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function Fu(e,t,n){return e?e.concat(t).map(function(o,i){return o=Dp(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function RT(e){return I.isArray(e)&&!e.some(aa)}const kT=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Yi(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!I.isUndefined(y[p])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(I.isDate(m))return m.toISOString();if(!l&&I.isBlob(m))throw new fe("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(m)||I.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,p,y){let T=m;if(m&&!y&&typeof m=="object"){if(I.endsWith(p,"{}"))p=r?p:p.slice(0,-2),m=JSON.stringify(m);else if(I.isArray(m)&&RT(m)||(I.isFileList(m)||I.endsWith(p,"[]"))&&(T=I.toArray(m)))return p=Dp(p),T.forEach(function(w,E){!(I.isUndefined(w)||w===null)&&t.append(a===!0?Fu([p],E,i):a===null?p:p+"[]",u(w))}),!1}return aa(m)?!0:(t.append(Fu(y,p,i),u(m)),!1)}const f=[],h=Object.assign(kT,{defaultVisitor:d,convertValue:u,isVisitable:aa});function b(m,p){if(!I.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),I.forEach(m,function(T,C){(!(I.isUndefined(T)||T===null)&&o.call(t,T,I.isString(C)?C.trim():C,p,h))===!0&&b(T,p?p.concat(C):[C])}),f.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Vu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function xc(e,t){this._pairs=[],e&&Yi(e,this,t)}const Lp=xc.prototype;Lp.append=function(t,n){this._pairs.push([t,n])};Lp.toString=function(t){const n=t?function(r){return t.call(this,r,Vu)}:Vu;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function PT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bp(e,t,n){if(!t)return e;const r=n&&n.encode||PT;I.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=I.isURLSearchParams(t)?t.toString():new xc(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Uu{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Fp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},NT=typeof URLSearchParams<"u"?URLSearchParams:xc,jT=typeof FormData<"u"?FormData:null,AT=typeof Blob<"u"?Blob:null,IT={isBrowser:!0,classes:{URLSearchParams:NT,FormData:jT,Blob:AT},protocols:["http","https","file","blob","url","data"]},Ec=typeof window<"u"&&typeof document<"u",ca=typeof navigator=="object"&&navigator||void 0,_T=Ec&&(!ca||["ReactNative","NativeScript","NS"].indexOf(ca.product)<0),$T=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",MT=Ec&&window.location.href||"http://localhost",DT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ec,hasStandardBrowserEnv:_T,hasStandardBrowserWebWorkerEnv:$T,navigator:ca,origin:MT},Symbol.toStringTag,{value:"Module"})),nt={...DT,...IT};function LT(e,t){return Yi(e,new nt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nt.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function BT(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function FT(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Vp(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=i>=n.length;return a=!a&&I.isArray(o)?o.length:a,l?(I.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!c):((!o[a]||!I.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&I.isArray(o[a])&&(o[a]=FT(o[a])),!c)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,o)=>{t(BT(r),o,n,0)}),n}return null}function VT(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const So={transitional:Fp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=I.isObject(t);if(i&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return o?JSON.stringify(Vp(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return LT(t,this.formSerializer).toString();if((c=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Yi(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),VT(t)):t}],transformResponse:[function(t){const n=this.transitional||So.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?fe.from(c,fe.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{So.headers[e]={}});const UT=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zT=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
306
|
-
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&
|
|
307
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[zu]=this[zu]={accessors:{}}).accessors,o=this.prototype;function i(a){const c=kr(a);r[c]||(GT(o,a),r[c]=!0)}return I.isArray(t)?t.forEach(i):i(t),this}}ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(ut.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(ut);function Os(e,t){const n=this||So,r=t||n,o=ut.from(r.headers);let i=r.data;return I.forEach(e,function(c){i=c.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Up(e){return!!(e&&e.__CANCEL__)}function br(e,t,n){fe.call(this,e??"canceled",fe.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(br,fe,{__CANCEL__:!0});function zp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new fe("Request failed with status code "+n.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function YT(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function KT(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[i];a||(a=u),n[o]=l,r[o]=u;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const b=d&&u-d;return b?Math.round(h*1e3/b):void 0}}function XT(e,t){let n=0,r=1e3/t,o,i;const a=(u,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?a(u,d):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const bi=(e,t,n=3)=>{let r=0;const o=KT(50,250);return XT(i=>{const a=i.loaded,c=i.lengthComputable?i.total:void 0,l=a-r,u=o(l),d=a<=c;r=a;const f={loaded:a,total:c,progress:c?a/c:void 0,bytes:l,rate:u||void 0,estimated:u&&c&&d?(c-a)/u:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(f)},n)},Wu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Hu=e=>(...t)=>I.asap(()=>e(...t)),JT=nt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,nt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(nt.origin),nt.navigator&&/(msie|trident)/i.test(nt.navigator.userAgent)):()=>!0,ZT=nt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];I.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),I.isString(r)&&a.push("path="+r),I.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function QT(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function eC(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Wp(e,t){return e&&!QT(t)?eC(e,t):t}const qu=e=>e instanceof ut?{...e}:e;function Mn(e,t){t=t||{};const n={};function r(u,d,f,h){return I.isPlainObject(u)&&I.isPlainObject(d)?I.merge.call({caseless:h},u,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function o(u,d,f,h){if(I.isUndefined(d)){if(!I.isUndefined(u))return r(void 0,u,f,h)}else return r(u,d,f,h)}function i(u,d){if(!I.isUndefined(d))return r(void 0,d)}function a(u,d){if(I.isUndefined(d)){if(!I.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function c(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(u,d,f)=>o(qu(u),qu(d),f,!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||o,h=f(e[d],t[d],d);I.isUndefined(h)&&f!==c||(n[d]=h)}),n}const Hp=e=>{const t=Mn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:c}=t;t.headers=a=ut.from(a),t.url=Bp(Wp(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(I.isFormData(n)){if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(nt.hasStandardBrowserEnv&&(r&&I.isFunction(r)&&(r=r(t)),r||r!==!1&&JT(t.url))){const u=o&&i&&ZT.read(i);u&&a.set(o,u)}return t},tC=typeof XMLHttpRequest<"u",nC=tC&&function(e){return new Promise(function(n,r){const o=Hp(e);let i=o.data;const a=ut.from(o.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:u}=o,d,f,h,b,m;function p(){b&&b(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function T(){if(!y)return;const w=ut.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),S={data:!c||c==="text"||c==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};zp(function(R){n(R),p()},function(R){r(R),p()},S),y=null}"onloadend"in y?y.onloadend=T:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(T)},y.onabort=function(){y&&(r(new fe("Request aborted",fe.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new fe("Network Error",fe.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||Fp;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),r(new fe(E,S.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&I.forEach(a.toJSON(),function(E,S){y.setRequestHeader(S,E)}),I.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),c&&c!=="json"&&(y.responseType=o.responseType),u&&([h,m]=bi(u,!0),y.addEventListener("progress",h)),l&&y.upload&&([f,b]=bi(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=w=>{y&&(r(!w||w.type?new br(null,e,y):w),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const C=YT(o.url);if(C&&nt.protocols.indexOf(C)===-1){r(new fe("Unsupported protocol "+C+":",fe.ERR_BAD_REQUEST,e));return}y.send(i||null)})},rC=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,c();const d=u instanceof Error?u:this.reason;r.abort(d instanceof fe?d:new br(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new fe(`timeout ${t} of ms exceeded`,fe.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>I.asap(c),l}},oC=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},iC=async function*(e,t){for await(const n of sC(e))yield*oC(n,t)},sC=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Gu=(e,t,n,r)=>{const o=iC(e,t);let i=0,a,c=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await o.next();if(u){c(),l.close();return}let f=d.byteLength;if(n){let h=i+=f;n(h)}l.enqueue(new Uint8Array(d))}catch(u){throw c(u),u}},cancel(l){return c(l),o.return()}},{highWaterMark:2})},Ki=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",qp=Ki&&typeof ReadableStream=="function",aC=Ki&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Gp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},cC=qp&&Gp(()=>{let e=!1;const t=new Request(nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Yu=64*1024,la=qp&&Gp(()=>I.isReadableStream(new Response("").body)),xi={stream:la&&(e=>e.body)};Ki&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!xi[t]&&(xi[t]=I.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new fe(`Response type '${t}' is not supported`,fe.ERR_NOT_SUPPORT,r)})})})(new Response);const lC=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(nt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(I.isArrayBufferView(e)||I.isArrayBuffer(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await aC(e)).byteLength},uC=async(e,t)=>{const n=I.toFiniteNumber(e.getContentLength());return n??lC(t)},dC=Ki&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:c,onUploadProgress:l,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:h}=Hp(e);u=u?(u+"").toLowerCase():"text";let b=rC([o,i&&i.toAbortSignal()],a),m;const p=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let y;try{if(l&&cC&&n!=="get"&&n!=="head"&&(y=await uC(d,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),O;if(I.isFormData(r)&&(O=S.headers.get("content-type"))&&d.setContentType(O),S.body){const[R,N]=Wu(y,bi(Hu(l)));r=Gu(S.body,Yu,R,N)}}I.isString(f)||(f=f?"include":"omit");const T="credentials"in Request.prototype;m=new Request(t,{...h,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:T?f:void 0});let C=await fetch(m);const w=la&&(u==="stream"||u==="response");if(la&&(c||w&&p)){const S={};["status","statusText","headers"].forEach(j=>{S[j]=C[j]});const O=I.toFiniteNumber(C.headers.get("content-length")),[R,N]=c&&Wu(O,bi(Hu(c),!0))||[];C=new Response(Gu(C.body,Yu,R,()=>{N&&N(),p&&p()}),S)}u=u||"text";let E=await xi[I.findKey(xi,u)||"text"](C,e);return!w&&p&&p(),await new Promise((S,O)=>{zp(S,O,{data:E,headers:ut.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:m})})}catch(T){throw p&&p(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new fe("Network Error",fe.ERR_NETWORK,e,m),{cause:T.cause||T}):fe.from(T,T&&T.code,e,m)}}),ua={http:OT,xhr:nC,fetch:dC};I.forEach(ua,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ku=e=>`- ${e}`,fC=e=>I.isFunction(e)||e===null||e===!1,Yp={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!fC(n)&&(r=ua[(a=String(n)).toLowerCase()],r===void 0))throw new fe(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
308
|
-
`+i.map(
|
|
309
|
-
`):" "+
|
|
310
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ri.assertOptions(r,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean)},!1),o!=null&&(I.isFunction(o)?n.paramsSerializer={serialize:o}:ri.assertOptions(o,{encode:Ft.function,serialize:Ft.function},!0)),ri.assertOptions(n,{baseUrl:Ft.spelling("baseURL"),withXsrfToken:Ft.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&I.merge(i.common,i[n.method]);i&&I.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ut.concat(a,i);const c=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,c.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let d,f=0,h;if(!l){const m=[Xu.bind(this),void 0];for(m.unshift.apply(m,c),m.push.apply(m,u),h=m.length,d=Promise.resolve(n);f<h;)d=d.then(m[f++],m[f++]);return d}h=c.length;let b=n;for(f=0;f<h;){const m=c[f++],p=c[f++];try{b=m(b)}catch(y){p.call(this,y);break}}try{d=Xu.call(this,b)}catch(m){return Promise.reject(m)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=Mn(this.defaults,t);const n=Wp(t.baseURL,t.url);return Bp(n,t.params,t.paramsSerializer)}}I.forEach(["delete","get","head","options"],function(t){Nn.prototype[t]=function(n,r){return this.request(Mn(r||{},{method:t,url:n,data:(r||{}).data}))}});I.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,c){return this.request(Mn(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Nn.prototype[t]=n(),Nn.prototype[t+"Form"]=n(!0)});class Sc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(c=>{r.subscribe(c),i=c}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,c){r.reason||(r.reason=new br(i,a,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Sc(function(o){t=o}),cancel:t}}}function hC(e){return function(n){return e.apply(null,n)}}function mC(e){return I.isObject(e)&&e.isAxiosError===!0}const da={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(da).forEach(([e,t])=>{da[t]=e});function Xp(e){const t=new Nn(e),n=Rp(Nn.prototype.request,t);return I.extend(n,Nn.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Xp(Mn(e,o))},n}const Qe=Xp(So);Qe.Axios=Nn;Qe.CanceledError=br;Qe.CancelToken=Sc;Qe.isCancel=Up;Qe.VERSION=Kp;Qe.toFormData=Yi;Qe.AxiosError=fe;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=hC;Qe.isAxiosError=mC;Qe.mergeConfig=Mn;Qe.AxiosHeaders=ut;Qe.formToJSON=e=>Vp(I.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=Yp.getAdapter;Qe.HttpStatusCode=da;Qe.default=Qe;const Jp="/";function gC(e){let t=null;if(document.cookie&&document.cookie!==""){const n=document.cookie.split(";");for(let r=0;r<n.length;r++){const o=n[r].trim();if(o.substring(0,e.length+1)===e+"="){t=decodeURIComponent(o.substring(e.length+1));break}}}return t}const yC=gC("csrftoken"),bn=Qe.create({baseURL:Jp,withCredentials:!0,headers:{"Content-Type":"application/json","X-CSRFToken":yC}}),vC=async e=>{try{return(await bn.get(`api/users/current/${e?`?course_id=${e}`:""}`)).data}catch(t){throw console.error("Error getting current user",t),t}},bC=async e=>{try{const t=await bn.get(`api/users/${e?`?course_id=${e}`:""}`);return console.log("response",t),t.data}catch(t){throw console.error("Error getting users",t),t}},xC=async()=>{try{await bn.post("/auth/lti_logout/")}catch(e){throw console.error("Error logging out user",e),e}},Mr="/static/images/student.png",Dr="/static/images/teacher.png",fa="/static/images/guest.png",ks=[{id:"1",name:"Teacher User",email:"teacher@edu.com",role:"teacher",image:Dr,color:"#3f51b5"},{id:"2",name:"Student User",email:"student@edu.com",role:"student",image:Mr,color:"#f50057"},{id:"3",name:"Guest User",email:"",role:"guest",image:fa,color:"#f50057"}],Bn=bo(e=>({fetchState:"idle",user:null,testUsers:ks,users:[],setTestUsers:t=>e({testUsers:t}),setUser:t=>e({user:t}),getUser:async t=>{try{e({fetchState:"loading"}),e({testUsers:ks});const n=await vC(t);if(n.image=n.role==="student"?Mr:Dr,n){let r;n.role==="student"?r=Mr:n.role==="teacher"?r=Dr:r=fa,e({user:{...n,image:r},fetchState:"idle",testUsers:ks.filter(o=>o.role!==n.role)})}}catch(n){console.log("Error getting user",n),e({fetchState:"error"})}},getUsers:async()=>{try{e({fetchState:"loading"});const t=await bC();t.forEach(n=>{n.image=n.role==="student"?Mr:Dr}),e(t?{users:t,fetchState:"idle"}:{fetchState:"error"})}catch{e({fetchState:"error"})}},changeRole:t=>e(n=>{if(n.user){let r;return t==="student"?r=Mr:t==="teacher"?r=Dr:r=fa,{user:{...n.user,role:t,image:r}}}return n}),clearUser:()=>e({user:null}),logout:async()=>{try{return await xC(),e({user:null}),Promise.resolve()}catch(t){return Promise.reject(t)}}})),EC=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/^_/,""),SC=e=>e.toLowerCase().replace(/_([a-z])/g,(t,n)=>n.toUpperCase()),Dn=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>Dn(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=SC(n);t[o]=Dn(r)}),t},Ei=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>Ei(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=EC(n);t[o]=Ei(r)}),t};async function wC(){try{const e=await bn.get("api/courses/current/");return Dn(e.data)}catch(e){throw new Error("Failed to retrieve current course: "+e)}}async function TC(){try{const e=await bn.get("api/courses/");return Dn(e.data)}catch(e){throw new Error("Failed to retrieve courses: "+e)}}async function CC(e){try{const t=btoa(e),n=await bn.get(`api/courses/?encoded_url=${t}`);return Dn(n.data[0])}catch(t){throw new Error("Failed to retrieve course by URL: "+t)}}async function OC(e){try{const t=await bn.put(`api/courses/${e.id}/`,Ei(e)),n=Dn(t.data);if(n.ltiLoginUrl!==e.ltiLoginUrl)throw new Error("Update verification failed");return n}catch(t){throw new Error(`Failed to update the course: ${t}`)}}const Ht=bo(e=>({fetchState:"loading",currentCourseUrl:"",currentCourse:null,courses:[],getCourseByUrl:async t=>{try{const n=await CC(t);e({currentCourse:n})}catch(n){console.error("Failed to fetch course by URL:",n)}},setCurrentCourseUrl:t=>e({currentCourseUrl:t}),setCurrentCourse:t=>e({currentCourse:t}),updateCurrentCourse:async t=>{try{const n=await OC(t);if(n&&n.id===t.id)return e({currentCourse:n}),n;throw new Error("Invalid response from server")}catch(n){throw console.error("Failed to update the course:",n),n}},getCurrentCourse:async()=>{try{const t=await wC();e({currentCourse:t})}catch(t){console.error("Failed to fetch current course:",t)}},getCourses:async()=>{try{e({fetchState:"loading"});const n=await TC();e({fetchState:"idle"}),e({courses:n})}catch(t){e({fetchState:"error"}),console.error("Failed to fetch courses:",t)}}}));function Zp(){const e=tn(),t=It();return console.log("location",t,e),{pathname:t.pathname,searchParams:new URLSearchParams(t.search),navigate:e}}const Qp=()=>{const{setCurrentCourse:e}=Ht(t=>t);return g.jsx(Y.Box,{onClick:()=>e(null),sx:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flex:"1"},children:g.jsx(Y.Typography,{variant:"h1",component:"h1",children:"EduML"})})},eh=Y.createTheme({cssVariables:{colorSchemeSelector:"data-toolpad-color-scheme"},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h1:{fontSize:"1.5rem",fontWeight:600,lineHeight:1.2},h2:{fontSize:"1.25rem",fontWeight:600},h3:{fontSize:"1.1rem",fontWeight:500},h4:{fontSize:"1rem",fontWeight:500},h5:{fontSize:"0.875rem",fontWeight:500},h6:{fontSize:"0.75rem",fontWeight:500},subtitle1:{fontSize:"0.875rem",lineHeight:1.5},subtitle2:{fontSize:"0.75rem",lineHeight:1.5},body1:{fontSize:"0.875rem",lineHeight:1.5},body2:{fontSize:"0.75rem",lineHeight:1.5},button:{textTransform:"none",fontWeight:500},caption:{fontSize:"0.75rem",lineHeight:1.66},overline:{fontSize:"0.75rem",textTransform:"uppercase"}},shape:{borderRadius:8},spacing:8,colorSchemes:{light:{palette:{mode:"light",background:{default:"#f5f5f5",paper:"#ffffff"},primary:{main:"#6a1b9a",light:"#9c4dcc",dark:"#38006b",contrastText:"#ffffff"},secondary:{main:"#ff4081",light:"#ff79b0",dark:"#c60055",contrastText:"#000000"},error:{main:"#e57373",light:"#ff8a80",dark:"#d32f2f",contrastText:"#ffffff"},warning:{main:"#ffb74d",light:"#ffe97d",dark:"#f57c00",contrastText:"#000000"},info:{main:"#64b5f6",light:"#9be7ff",dark:"#2286c3",contrastText:"#000000"},success:{main:"#81c784",light:"#b2fab4",dark:"#519657",contrastText:"#000000"},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)"}},dark:{palette:{mode:"dark",background:{default:"#303030",paper:"#424242"},primary:{main:"#9575cd",light:"#c7a4ff",dark:"#65499c",contrastText:"#ffffff"},secondary:{main:"#ff4081",light:"#ff79b0",dark:"#c60055",contrastText:"#ffffff"},error:{main:"#ef9a9a",light:"#ffcccb",dark:"#ba6b6c",contrastText:"#000000"},warning:{main:"#ffb74d",light:"#ffe97d",dark:"#f57c00",contrastText:"#000000"},info:{main:"#64b5f6",light:"#9be7ff",dark:"#2286c3",contrastText:"#000000"},success:{main:"#81c784",light:"#b2fab4",dark:"#519657",contrastText:"#000000"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)"}}},breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:8}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}},MuiDialog:{styleOverrides:{paper:{borderRadius:12}}},MuiCard:{styleOverrides:{root:{borderRadius:12}}}},transitions:{easing:{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)"},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}},zIndex:{mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}}),RC=({IconFC:e})=>{const t=n=>{n.preventDefault()};return e?g.jsx(Y.Box,{onClick:t,children:g.jsx(e,{fontSize:"small"})}):null},wc=e=>e.map(t=>{if(t.kind==="page"){const n=t.iconFC?g.jsx(RC,{IconFC:t.iconFC}):void 0,r=t.children?wc(t.children).filter(o=>o.kind==="page"):void 0;return{...t,icon:n,children:r}}return t}),kC=({ActionHandler:e,props:t})=>{const n=r=>(r.preventDefault(),g.jsx(e,{...t}));return g.jsx(Td,{onClick:n,"data-testid":"action-fc-wrapper",sx:{width:"100%"},children:g.jsx(e,{...t})})},th=(e,t)=>{var r;if(e.kind!=="page")return e;const n=(r=e.children)==null?void 0:r.map(o=>th(o)).filter(o=>o.kind==="page");return e!=null&&e.actionFC?{...e,action:g.jsx(kC,{ActionHandler:e.actionFC,props:{}}),children:n}:{...e,children:n}},nh=(e,t)=>e.map(n=>th(n));function rh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=rh(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Fn(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=rh(e))&&(r&&(r+=" "),r+=t);return r}let PC={data:""},NC=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||PC,jC=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,AC=/\/\*[^]*?\*\/| +/g,Zu=/\n+/g,Tn=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?Tn(a,i):i+"{"+Tn(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=Tn(a,t?t.replace(/([^,])+/g,c=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,c):c?c+" "+l:l)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Tn.p?Tn.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Kt={},oh=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+oh(e[n]);return t}return e},IC=(e,t,n,r,o)=>{let i=oh(e),a=Kt[i]||(Kt[i]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(i));if(!Kt[a]){let l=i!==e?e:(u=>{let d,f,h=[{}];for(;d=jC.exec(u.replace(AC,""));)d[4]?h.shift():d[3]?(f=d[3].replace(Zu," ").trim(),h.unshift(h[0][f]=h[0][f]||{})):h[0][d[1]]=d[2].replace(Zu," ").trim();return h[0]})(e);Kt[a]=Tn(o?{["@keyframes "+a]:l}:l,n?"":"."+a)}let c=n&&Kt.g?Kt.g:null;return n&&(Kt.g=Kt[a]),((l,u,d,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(Kt[a],t,r,c),a},_C=(e,t,n)=>e.reduce((r,o,i)=>{let a=t[i];if(a&&a.call){let c=a(n),l=c&&c.props&&c.props.className||/^go/.test(c)&&c;a=l?"."+l:c&&typeof c=="object"?c.props?"":Tn(c,""):c===!1?"":c}return r+o+(a??"")},"");function Tc(e){let t=this||{},n=e.call?e(t.p):e;return IC(n.unshift?n.raw?_C(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,NC(t.target),t.g,t.o,t.k)}Tc.bind({g:1});Tc.bind({k:1});function $C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ih(e,t,n){return t&&$C(e.prototype,t),e}function Pe(){return Pe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe.apply(this,arguments)}function sh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function wo(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Qu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var ed=function(){return""},ah=D.createContext({enqueueSnackbar:ed,closeSnackbar:ed}),wn={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},td=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Cc=function(t){return""+td(t.vertical)+td(t.horizontal)},Fo=function(t){return!!t||t===0},Vo="unmounted",Jn="exited",Zn="entering",Pr="entered",nd="exiting",Oc=function(e){sh(t,e);function t(r){var o;o=e.call(this,r)||this;var i=r.appear,a;return o.appearStatus=null,r.in?i?(a=Jn,o.appearStatus=Zn):a=Pr:r.unmountOnExit||r.mountOnEnter?a=Vo:a=Jn,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Vo?{status:Jn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Zn&&a!==Pr&&(i=Zn):(a===Zn||a===Pr)&&(i=nd)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i=o,a=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(a=o.exit,i=o.enter),{exit:a,enter:i}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===Zn?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===Jn&&this.setState({status:Vo})},n.performEnter=function(o){var i=this,a=this.props.enter,c=o,l=this.getTimeouts();if(!o&&!a){this.safeSetState({status:Pr},function(){i.props.onEntered&&i.props.onEntered(i.node,c)});return}this.props.onEnter&&this.props.onEnter(this.node,c),this.safeSetState({status:Zn},function(){i.props.onEntering&&i.props.onEntering(i.node,c),i.onTransitionEnd(l.enter,function(){i.safeSetState({status:Pr},function(){i.props.onEntered&&i.props.onEntered(i.node,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:Jn},function(){o.props.onExited&&o.props.onExited(o.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:nd},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Jn},function(){o.props.onExited&&o.props.onExited(o.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(){a&&(a=!1,i.nextCallback=null,o())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=o==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Vo)return null;var i=this.props,a=i.children,c=wo(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(o,c)},ih(t,[{key:"node",get:function(){var o,i=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(D.Component);function Qn(){}Oc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qn,onEntering:Qn,onEntered:Qn,onExit:Qn,onExiting:Qn,onExited:Qn};function rd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function pa(e,t){return D.useMemo(function(){return e==null&&t==null?null:function(n){rd(e,n),rd(t,n)}},[e,t])}function Si(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,o=e.mode;return{duration:typeof t=="object"?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var ha={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)"},ch=function(t){t.scrollTop=t.scrollTop},od=function(t){return Math.round(t)+"ms"};function rr(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,o=r===void 0?300:r,i=n.easing,a=i===void 0?ha.easeInOut:i,c=n.delay,l=c===void 0?0:c,u=Array.isArray(e)?e:[e];return u.map(function(d){var f=typeof o=="string"?o:od(o),h=typeof l=="string"?l:od(l);return d+" "+f+" "+a+" "+h}).join(",")}function MC(e){return e&&e.ownerDocument||document}function lh(e){var t=MC(e);return t.defaultView||window}function DC(e,t){t===void 0&&(t=166);var n;function r(){for(var o=this,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var l=function(){e.apply(o,a)};clearTimeout(n),n=setTimeout(l,t)}return r.clear=function(){clearTimeout(n)},r}function LC(e,t){var n=t.getBoundingClientRect(),r=lh(t),o;if(t.fakeTransform)o=t.fakeTransform;else{var i=r.getComputedStyle(t);o=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,c=0;if(o&&o!=="none"&&typeof o=="string"){var l=o.split("(")[1].split(")")[0].split(",");a=parseInt(l[4],10),c=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+c-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-c)+"px)"}}function Uo(e,t){if(t){var n=LC(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var uh=D.forwardRef(function(e,t){var n=e.children,r=e.direction,o=r===void 0?"down":r,i=e.in,a=e.style,c=e.timeout,l=c===void 0?0:c,u=e.onEnter,d=e.onEntered,f=e.onExit,h=e.onExited,b=wo(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=D.useRef(null),p=pa(n.ref,m),y=pa(p,t),T=function(R,N){Uo(o,R),ch(R),u&&u(R,N)},C=function(R){var N=(a==null?void 0:a.transitionTimingFunction)||ha.easeOut,j=Si({timeout:l,mode:"enter",style:Pe({},a,{transitionTimingFunction:N})});R.style.webkitTransition=rr("-webkit-transform",j),R.style.transition=rr("transform",j),R.style.webkitTransform="none",R.style.transform="none"},w=function(R){var N=(a==null?void 0:a.transitionTimingFunction)||ha.sharp,j=Si({timeout:l,mode:"exit",style:Pe({},a,{transitionTimingFunction:N})});R.style.webkitTransition=rr("-webkit-transform",j),R.style.transition=rr("transform",j),Uo(o,R),f&&f(R)},E=function(R){R.style.webkitTransition="",R.style.transition="",h&&h(R)},S=D.useCallback(function(){m.current&&Uo(o,m.current)},[o]);return D.useEffect(function(){if(!(i||o==="down"||o==="right")){var O=DC(function(){m.current&&Uo(o,m.current)}),R=lh(m.current);return R.addEventListener("resize",O),function(){O.clear(),R.removeEventListener("resize",O)}}},[o,i]),D.useEffect(function(){i||S()},[i,S]),D.createElement(Oc,Object.assign({appear:!0,nodeRef:m,onEnter:T,onEntered:d,onEntering:C,onExit:w,onExited:E,in:i,timeout:l},b),function(O,R){return D.cloneElement(n,Pe({ref:y,style:Pe({visibility:O==="exited"&&!i?"hidden":void 0},a,{},n.props.style)},R))})});uh.displayName="Slide";var Ji=function(t){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},BC=function(){return D.createElement(Ji,null,D.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
311
|
-
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},
|
|
305
|
+
*/var Bu;function Dw(){return Bu||(Bu=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=M,t=kp();function n(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,c=e.useMemo,l=e.useDebugValue;function u(d,f,m,b,g){var p=i(null),y;p.current===null?(y={hasValue:!1,value:null},p.current=y):y=p.current;var C=c(function(){var S=!1,O,R,P=function(F){if(!S){S=!0,O=F;var $=b(F);if(g!==void 0&&y.hasValue){var z=y.value;if(g(z,$))return R=z,z}return R=$,$}var L=O,B=R;if(r(L,F))return B;var q=b(F);return g!==void 0&&g(B,q)?B:(O=F,R=q,q)},N=m===void 0?null:m,x=function(){return P(f())},k=N===null?void 0:function(){return P(N())};return[x,k]},[f,m,b,g]),T=C[0],w=C[1],E=o(d,T,w);return a(function(){y.hasValue=!0,y.value=E},[E]),l(E),E}Rs.useSyncExternalStoreWithSelector=u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Rs}process.env.NODE_ENV==="production"?ua.exports=$w():ua.exports=Dw();var Lw=ua.exports;const Bw=xa(Lw),{useDebugValue:Fw}=M,{useSyncExternalStoreWithSelector:Vw}=Bw,Uw=e=>e;function zw(e,t=Uw,n){const r=Vw(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Fw(r),r}const Fu=e=>{const t=typeof e=="function"?Iw(e):e,n=(r,o)=>zw(t,r,o);return Object.assign(n,t),n},Eo=e=>e?Fu(e):Fu,Ec=Ue(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),Sc=Ue(h.jsx("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8zm-2 8c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m4 8H8v-.57c0-.81.48-1.53 1.22-1.85.85-.37 1.79-.58 2.78-.58s1.93.21 2.78.58c.74.32 1.22 1.04 1.22 1.85z"}),"ContactPage"),Pp=Ue(h.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School"),ri=[{kind:"header",title:"Other"},{segment:"help",title:"Help",iconFC:Ec,kind:"page"},{segment:"contact",title:"Contact",iconFC:Sc,kind:"page"}],So=Eo(e=>({navigation:ri,baseSections:{header:{kind:"header",title:"Other"},contact:{segment:"contact",title:"Contact",iconFC:Sc,kind:"page"},help:{segment:"help",title:"Help",iconFC:Ec,kind:"page"}},sections:{},setNavigation:t=>e({navigation:t}),updateSection:(t,n)=>e(r=>{const o=t.code,a=r.sections[o]||{kind:"page",segment:o,title:t.code,iconFC:Pp,metadata:{description:t.description,forRoles:["student","teacher"],isRootTool:!0},children:[]};a.children=[...n];const c={...r.sections,[o]:a},l=[];for(const u in r.baseSections)l.push(r.baseSections[u]);for(const u in c)console.log("Item: ",c[u]),l.push(c[u]);return{sections:c,navigation:l}}),addSection:({segment:t,title:n,Icon:r,description:o,instances:i})=>e(a=>{console.log("Adding section:",{segment:t,title:n,instances:i});const c=a.sections[t]||{kind:"page",segment:t,title:n,iconFC:r,metadata:{description:o,forRoles:["student","teacher"],isRootTool:!0},children:(i==null?void 0:i.map(d=>({kind:"page",segment:d,title:d,children:[]})))||[]},l={...a.sections,[t]:c},u=[...Object.values(a.baseSections),...Object.values(l)];return console.log("New navigation:",u),{sections:l,navigation:u}}),updateCourseInstanceSection:(t,n)=>e(r=>{const o=t.code,a=r.sections[o]||{kind:"page",segment:t.code,title:t.code.toUpperCase(),metadata:{description:t.description,forRoles:["student","teacher"],isRootTool:!0},children:[]},c=a.children||[],l=c.filter(p=>p.segment!==t.instance),u=c.find(p=>p.segment===t.instance);console.log("Existing instance: ",u);const f=((u==null?void 0:u.children)||[]).slice();n.forEach(p=>{const y=f.findIndex(C=>C.segment===p.segment);y!==-1?f[y]=p:f.push(p)});const m={kind:"page",segment:t.instance,title:t.instance,children:f};console.log("Instance section: ",m),a.children=[...l,m];const b={...r.sections,[t.code]:a};console.log("New sections: ",b);const g=[];for(const p in r.baseSections)g.push(r.baseSections[p]);for(const p in b)g.push(b[p]);return{sections:b,navigation:g}})})),Ww=e=>({teacher:ri,student:ri.filter(n=>n.kind!=="header"||n.title!=="Exercise Session manager"),guest:ri.filter(n=>n.kind!=="header"||n.title!=="Exercise statistics")})[e]||[];function Np(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hw}=Object.prototype,{getPrototypeOf:wc}=Object,Yi=(e=>t=>{const n=Hw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$t=e=>(e=e.toLowerCase(),t=>Yi(t)===e),Ki=e=>t=>typeof t===e,{isArray:br}=Array,ao=Ki("undefined");function qw(e){return e!==null&&!ao(e)&&e.constructor!==null&&!ao(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ap=$t("ArrayBuffer");function Gw(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ap(e.buffer),t}const Yw=Ki("string"),mt=Ki("function"),Ip=Ki("number"),Xi=e=>e!==null&&typeof e=="object",Kw=e=>e===!0||e===!1,oi=e=>{if(Yi(e)!=="object")return!1;const t=wc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Xw=$t("Date"),Jw=$t("File"),Zw=$t("Blob"),Qw=$t("FileList"),eC=e=>Xi(e)&&mt(e.pipe),tC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=Yi(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},nC=$t("URLSearchParams"),[rC,oC,iC,sC]=["ReadableStream","Request","Response","Headers"].map($t),aC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),br(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let c;for(r=0;r<a;r++)c=i[r],t.call(null,e[c],c,e)}}function _p(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Pn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mp=e=>!ao(e)&&e!==Pn;function da(){const{caseless:e}=Mp(this)&&this||{},t={},n=(r,o)=>{const i=e&&_p(t,o)||o;oi(t[i])&&oi(r)?t[i]=da(t[i],r):oi(r)?t[i]=da({},r):br(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&wo(arguments[r],n);return t}const cC=(e,t,n,{allOwnKeys:r}={})=>(wo(t,(o,i)=>{n&&mt(o)?e[i]=Np(o,n):e[i]=o},{allOwnKeys:r}),e),lC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uC=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},dC=(e,t,n,r)=>{let o,i,a;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=n!==!1&&wc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},fC=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},pC=e=>{if(!e)return null;if(br(e))return e;let t=e.length;if(!Ip(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},hC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&wc(Uint8Array)),mC=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},gC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},yC=$t("HTMLFormElement"),vC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Vu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),bC=$t("RegExp"),$p=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wo(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},xC=e=>{$p(e,(t,n)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},EC=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return br(e)?r(e):r(String(e).split(t)),n},SC=()=>{},wC=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,js="abcdefghijklmnopqrstuvwxyz",Uu="0123456789",Dp={DIGIT:Uu,ALPHA:js,ALPHA_DIGIT:js+js.toUpperCase()+Uu},CC=(e=16,t=Dp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function TC(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const OC=e=>{const t=new Array(10),n=(r,o)=>{if(Xi(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=br(r)?[]:{};return wo(r,(a,c)=>{const l=n(a,o+1);!ao(l)&&(i[c]=l)}),t[o]=void 0,i}}return r};return n(e,0)},RC=$t("AsyncFunction"),jC=e=>e&&(Xi(e)||mt(e))&&mt(e.then)&&mt(e.catch),Lp=((e,t)=>e?setImmediate:t?((n,r)=>(Pn.addEventListener("message",({source:o,data:i})=>{o===Pn&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Pn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",mt(Pn.postMessage)),kC=typeof queueMicrotask<"u"?queueMicrotask.bind(Pn):typeof process<"u"&&process.nextTick||Lp,I={isArray:br,isArrayBuffer:Ap,isBuffer:qw,isFormData:tC,isArrayBufferView:Gw,isString:Yw,isNumber:Ip,isBoolean:Kw,isObject:Xi,isPlainObject:oi,isReadableStream:rC,isRequest:oC,isResponse:iC,isHeaders:sC,isUndefined:ao,isDate:Xw,isFile:Jw,isBlob:Zw,isRegExp:bC,isFunction:mt,isStream:eC,isURLSearchParams:nC,isTypedArray:hC,isFileList:Qw,forEach:wo,merge:da,extend:cC,trim:aC,stripBOM:lC,inherits:uC,toFlatObject:dC,kindOf:Yi,kindOfTest:$t,endsWith:fC,toArray:pC,forEachEntry:mC,matchAll:gC,isHTMLForm:yC,hasOwnProperty:Vu,hasOwnProp:Vu,reduceDescriptors:$p,freezeMethods:xC,toObjectSet:EC,toCamelCase:vC,noop:SC,toFiniteNumber:wC,findKey:_p,global:Pn,isContextDefined:Mp,ALPHABET:Dp,generateString:CC,isSpecCompliantForm:TC,toJSONObject:OC,isAsyncFn:RC,isThenable:jC,setImmediate:Lp,asap:kC};function fe(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}I.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}});const Bp=fe.prototype,Fp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Fp[e]={value:e}});Object.defineProperties(fe,Fp);Object.defineProperty(Bp,"isAxiosError",{value:!0});fe.from=(e,t,n,r,o,i)=>{const a=Object.create(Bp);return I.toFlatObject(e,a,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),fe.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const PC=null;function fa(e){return I.isPlainObject(e)||I.isArray(e)}function Vp(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function zu(e,t,n){return e?e.concat(t).map(function(o,i){return o=Vp(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function NC(e){return I.isArray(e)&&!e.some(fa)}const AC=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Ji(e,t,n){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!I.isUndefined(y[p])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(I.isDate(g))return g.toISOString();if(!l&&I.isBlob(g))throw new fe("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(g)||I.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,p,y){let C=g;if(g&&!y&&typeof g=="object"){if(I.endsWith(p,"{}"))p=r?p:p.slice(0,-2),g=JSON.stringify(g);else if(I.isArray(g)&&NC(g)||(I.isFileList(g)||I.endsWith(p,"[]"))&&(C=I.toArray(g)))return p=Vp(p),C.forEach(function(w,E){!(I.isUndefined(w)||w===null)&&t.append(a===!0?zu([p],E,i):a===null?p:p+"[]",u(w))}),!1}return fa(g)?!0:(t.append(zu(y,p,i),u(g)),!1)}const f=[],m=Object.assign(AC,{defaultVisitor:d,convertValue:u,isVisitable:fa});function b(g,p){if(!I.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(g),I.forEach(g,function(C,T){(!(I.isUndefined(C)||C===null)&&o.call(t,C,I.isString(T)?T.trim():T,p,m))===!0&&b(C,p?p.concat(T):[T])}),f.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Wu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Cc(e,t){this._pairs=[],e&&Ji(e,this,t)}const Up=Cc.prototype;Up.append=function(t,n){this._pairs.push([t,n])};Up.toString=function(t){const n=t?function(r){return t.call(this,r,Wu)}:Wu;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function IC(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zp(e,t,n){if(!t)return e;const r=n&&n.encode||IC;I.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=I.isURLSearchParams(t)?t.toString():new Cc(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Hu{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Wp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_C=typeof URLSearchParams<"u"?URLSearchParams:Cc,MC=typeof FormData<"u"?FormData:null,$C=typeof Blob<"u"?Blob:null,DC={isBrowser:!0,classes:{URLSearchParams:_C,FormData:MC,Blob:$C},protocols:["http","https","file","blob","url","data"]},Tc=typeof window<"u"&&typeof document<"u",pa=typeof navigator=="object"&&navigator||void 0,LC=Tc&&(!pa||["ReactNative","NativeScript","NS"].indexOf(pa.product)<0),BC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",FC=Tc&&window.location.href||"http://localhost",VC=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tc,hasStandardBrowserEnv:LC,hasStandardBrowserWebWorkerEnv:BC,navigator:pa,origin:FC},Symbol.toStringTag,{value:"Module"})),nt={...VC,...DC};function UC(e,t){return Ji(e,new nt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nt.isNode&&I.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function zC(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function WC(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Hp(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),l=i>=n.length;return a=!a&&I.isArray(o)?o.length:a,l?(I.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!c):((!o[a]||!I.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&I.isArray(o[a])&&(o[a]=WC(o[a])),!c)}if(I.isFormData(e)&&I.isFunction(e.entries)){const n={};return I.forEachEntry(e,(r,o)=>{t(zC(r),o,n,0)}),n}return null}function HC(e,t,n){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Co={transitional:Wp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=I.isObject(t);if(i&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return o?JSON.stringify(Hp(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return UC(t,this.formSerializer).toString();if((c=I.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ji(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),HC(t)):t}],transformResponse:[function(t){const n=this.transitional||Co.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?fe.from(c,fe.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{Co.headers[e]={}});const qC=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),GC=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
306
|
+
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&qC[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},qu=Symbol("internals");function kr(e){return e&&String(e).trim().toLowerCase()}function ii(e){return e===!1||e==null?e:I.isArray(e)?e.map(ii):String(e)}function YC(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const KC=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ks(e,t,n,r,o){if(I.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!I.isString(t)){if(I.isString(r))return t.indexOf(r)!==-1;if(I.isRegExp(r))return r.test(t)}}function XC(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function JC(e,t){const n=I.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class ut{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(c,l,u){const d=kr(l);if(!d)throw new Error("header name must be a non-empty string");const f=I.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=ii(c))}const a=(c,l)=>I.forEach(c,(u,d)=>i(u,d,l));if(I.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(I.isString(t)&&(t=t.trim())&&!KC(t))a(GC(t),n);else if(I.isHeaders(t))for(const[c,l]of t.entries())i(l,c,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=kr(t),t){const r=I.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return YC(o);if(I.isFunction(n))return n.call(this,o,r);if(I.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=kr(t),t){const r=I.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ks(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=kr(a),a){const c=I.findKey(r,a);c&&(!n||ks(r,r[c],c,n))&&(delete r[c],o=!0)}}return I.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||ks(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return I.forEach(this,(o,i)=>{const a=I.findKey(r,i);if(a){n[a]=ii(o),delete n[i];return}const c=t?XC(i):String(i).trim();c!==i&&delete n[i],n[c]=ii(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return I.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&I.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
307
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[qu]=this[qu]={accessors:{}}).accessors,o=this.prototype;function i(a){const c=kr(a);r[c]||(JC(o,a),r[c]=!0)}return I.isArray(t)?t.forEach(i):i(t),this}}ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);I.reduceDescriptors(ut.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});I.freezeMethods(ut);function Ps(e,t){const n=this||Co,r=t||n,o=ut.from(r.headers);let i=r.data;return I.forEach(e,function(c){i=c.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function qp(e){return!!(e&&e.__CANCEL__)}function xr(e,t,n){fe.call(this,e??"canceled",fe.ERR_CANCELED,t,n),this.name="CanceledError"}I.inherits(xr,fe,{__CANCEL__:!0});function Gp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new fe("Request failed with status code "+n.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ZC(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function QC(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[i];a||(a=u),n[o]=l,r[o]=u;let f=i,m=0;for(;f!==o;)m+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const b=d&&u-d;return b?Math.round(m*1e3/b):void 0}}function eT(e,t){let n=0,r=1e3/t,o,i;const a=(u,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?a(u,d):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const Si=(e,t,n=3)=>{let r=0;const o=QC(50,250);return eT(i=>{const a=i.loaded,c=i.lengthComputable?i.total:void 0,l=a-r,u=o(l),d=a<=c;r=a;const f={loaded:a,total:c,progress:c?a/c:void 0,bytes:l,rate:u||void 0,estimated:u&&c&&d?(c-a)/u:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(f)},n)},Gu=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Yu=e=>(...t)=>I.asap(()=>e(...t)),tT=nt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,nt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(nt.origin),nt.navigator&&/(msie|trident)/i.test(nt.navigator.userAgent)):()=>!0,nT=nt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];I.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),I.isString(r)&&a.push("path="+r),I.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function rT(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function oT(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Yp(e,t){return e&&!rT(t)?oT(e,t):t}const Ku=e=>e instanceof ut?{...e}:e;function Bn(e,t){t=t||{};const n={};function r(u,d,f,m){return I.isPlainObject(u)&&I.isPlainObject(d)?I.merge.call({caseless:m},u,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function o(u,d,f,m){if(I.isUndefined(d)){if(!I.isUndefined(u))return r(void 0,u,f,m)}else return r(u,d,f,m)}function i(u,d){if(!I.isUndefined(d))return r(void 0,d)}function a(u,d){if(I.isUndefined(d)){if(!I.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function c(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(u,d,f)=>o(Ku(u),Ku(d),f,!0)};return I.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||o,m=f(e[d],t[d],d);I.isUndefined(m)&&f!==c||(n[d]=m)}),n}const Kp=e=>{const t=Bn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:c}=t;t.headers=a=ut.from(a),t.url=zp(Yp(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let l;if(I.isFormData(n)){if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...d].join("; "))}}if(nt.hasStandardBrowserEnv&&(r&&I.isFunction(r)&&(r=r(t)),r||r!==!1&&tT(t.url))){const u=o&&i&&nT.read(i);u&&a.set(o,u)}return t},iT=typeof XMLHttpRequest<"u",sT=iT&&function(e){return new Promise(function(n,r){const o=Kp(e);let i=o.data;const a=ut.from(o.headers).normalize();let{responseType:c,onUploadProgress:l,onDownloadProgress:u}=o,d,f,m,b,g;function p(){b&&b(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function C(){if(!y)return;const w=ut.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),S={data:!c||c==="text"||c==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};Gp(function(R){n(R),p()},function(R){r(R),p()},S),y=null}"onloadend"in y?y.onloadend=C:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(C)},y.onabort=function(){y&&(r(new fe("Request aborted",fe.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new fe("Network Error",fe.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||Wp;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),r(new fe(E,S.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&I.forEach(a.toJSON(),function(E,S){y.setRequestHeader(S,E)}),I.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),c&&c!=="json"&&(y.responseType=o.responseType),u&&([m,g]=Si(u,!0),y.addEventListener("progress",m)),l&&y.upload&&([f,b]=Si(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(d=w=>{y&&(r(!w||w.type?new xr(null,e,y):w),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const T=ZC(o.url);if(T&&nt.protocols.indexOf(T)===-1){r(new fe("Unsupported protocol "+T+":",fe.ERR_BAD_REQUEST,e));return}y.send(i||null)})},aT=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,c();const d=u instanceof Error?u:this.reason;r.abort(d instanceof fe?d:new xr(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new fe(`timeout ${t} of ms exceeded`,fe.ETIMEDOUT))},t);const c=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>I.asap(c),l}},cT=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},lT=async function*(e,t){for await(const n of uT(e))yield*cT(n,t)},uT=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Xu=(e,t,n,r)=>{const o=lT(e,t);let i=0,a,c=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await o.next();if(u){c(),l.close();return}let f=d.byteLength;if(n){let m=i+=f;n(m)}l.enqueue(new Uint8Array(d))}catch(u){throw c(u),u}},cancel(l){return c(l),o.return()}},{highWaterMark:2})},Zi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Xp=Zi&&typeof ReadableStream=="function",dT=Zi&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Jp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fT=Xp&&Jp(()=>{let e=!1;const t=new Request(nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ju=64*1024,ha=Xp&&Jp(()=>I.isReadableStream(new Response("").body)),wi={stream:ha&&(e=>e.body)};Zi&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!wi[t]&&(wi[t]=I.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new fe(`Response type '${t}' is not supported`,fe.ERR_NOT_SUPPORT,r)})})})(new Response);const pT=async e=>{if(e==null)return 0;if(I.isBlob(e))return e.size;if(I.isSpecCompliantForm(e))return(await new Request(nt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(I.isArrayBufferView(e)||I.isArrayBuffer(e))return e.byteLength;if(I.isURLSearchParams(e)&&(e=e+""),I.isString(e))return(await dT(e)).byteLength},hT=async(e,t)=>{const n=I.toFiniteNumber(e.getContentLength());return n??pT(t)},mT=Zi&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:c,onUploadProgress:l,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:m}=Kp(e);u=u?(u+"").toLowerCase():"text";let b=aT([o,i&&i.toAbortSignal()],a),g;const p=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let y;try{if(l&&fT&&n!=="get"&&n!=="head"&&(y=await hT(d,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),O;if(I.isFormData(r)&&(O=S.headers.get("content-type"))&&d.setContentType(O),S.body){const[R,P]=Gu(y,Si(Yu(l)));r=Xu(S.body,Ju,R,P)}}I.isString(f)||(f=f?"include":"omit");const C="credentials"in Request.prototype;g=new Request(t,{...m,signal:b,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:C?f:void 0});let T=await fetch(g);const w=ha&&(u==="stream"||u==="response");if(ha&&(c||w&&p)){const S={};["status","statusText","headers"].forEach(N=>{S[N]=T[N]});const O=I.toFiniteNumber(T.headers.get("content-length")),[R,P]=c&&Gu(O,Si(Yu(c),!0))||[];T=new Response(Xu(T.body,Ju,R,()=>{P&&P(),p&&p()}),S)}u=u||"text";let E=await wi[I.findKey(wi,u)||"text"](T,e);return!w&&p&&p(),await new Promise((S,O)=>{Gp(S,O,{data:E,headers:ut.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:g})})}catch(C){throw p&&p(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new fe("Network Error",fe.ERR_NETWORK,e,g),{cause:C.cause||C}):fe.from(C,C&&C.code,e,g)}}),ma={http:PC,xhr:sT,fetch:mT};I.forEach(ma,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zu=e=>`- ${e}`,gT=e=>I.isFunction(e)||e===null||e===!1,Zp={getAdapter:e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!gT(n)&&(r=ma[(a=String(n)).toLowerCase()],r===void 0))throw new fe(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
|
308
|
+
`+i.map(Zu).join(`
|
|
309
|
+
`):" "+Zu(i[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:ma};function Ns(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xr(null,e)}function Qu(e){return Ns(e),e.headers=ut.from(e.headers),e.data=Ps.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Zp.getAdapter(e.adapter||Co.adapter)(e).then(function(r){return Ns(e),r.data=Ps.call(e,e.transformResponse,r),r.headers=ut.from(r.headers),r},function(r){return qp(r)||(Ns(e),r&&r.response&&(r.response.data=Ps.call(e,e.transformResponse,r.response),r.response.headers=ut.from(r.response.headers))),Promise.reject(r)})}const Qp="1.7.9",Qi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qi[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ed={};Qi.transitional=function(t,n,r){function o(i,a){return"[Axios v"+Qp+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,c)=>{if(t===!1)throw new fe(o(a," has been removed"+(n?" in "+n:"")),fe.ERR_DEPRECATED);return n&&!ed[a]&&(ed[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,c):!0}};Qi.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function yT(e,t,n){if(typeof e!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const c=e[i],l=c===void 0||a(c,i,e);if(l!==!0)throw new fe("option "+i+" must be "+l,fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new fe("Unknown option "+i,fe.ERR_BAD_OPTION)}}const si={assertOptions:yT,validators:Qi},Ut=si.validators;class In{constructor(t){this.defaults=t,this.interceptors={request:new Hu,response:new Hu}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
310
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&si.assertOptions(r,{silentJSONParsing:Ut.transitional(Ut.boolean),forcedJSONParsing:Ut.transitional(Ut.boolean),clarifyTimeoutError:Ut.transitional(Ut.boolean)},!1),o!=null&&(I.isFunction(o)?n.paramsSerializer={serialize:o}:si.assertOptions(o,{encode:Ut.function,serialize:Ut.function},!0)),si.assertOptions(n,{baseUrl:Ut.spelling("baseURL"),withXsrfToken:Ut.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&I.merge(i.common,i[n.method]);i&&I.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=ut.concat(a,i);const c=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,c.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let d,f=0,m;if(!l){const g=[Qu.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,u),m=g.length,d=Promise.resolve(n);f<m;)d=d.then(g[f++],g[f++]);return d}m=c.length;let b=n;for(f=0;f<m;){const g=c[f++],p=c[f++];try{b=g(b)}catch(y){p.call(this,y);break}}try{d=Qu.call(this,b)}catch(g){return Promise.reject(g)}for(f=0,m=u.length;f<m;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=Bn(this.defaults,t);const n=Yp(t.baseURL,t.url);return zp(n,t.params,t.paramsSerializer)}}I.forEach(["delete","get","head","options"],function(t){In.prototype[t]=function(n,r){return this.request(Bn(r||{},{method:t,url:n,data:(r||{}).data}))}});I.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,c){return this.request(Bn(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}In.prototype[t]=n(),In.prototype[t+"Form"]=n(!0)});class Oc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(c=>{r.subscribe(c),i=c}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,c){r.reason||(r.reason=new xr(i,a,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Oc(function(o){t=o}),cancel:t}}}function vT(e){return function(n){return e.apply(null,n)}}function bT(e){return I.isObject(e)&&e.isAxiosError===!0}const ga={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ga).forEach(([e,t])=>{ga[t]=e});function eh(e){const t=new In(e),n=Np(In.prototype.request,t);return I.extend(n,In.prototype,t,{allOwnKeys:!0}),I.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return eh(Bn(e,o))},n}const Qe=eh(Co);Qe.Axios=In;Qe.CanceledError=xr;Qe.CancelToken=Oc;Qe.isCancel=qp;Qe.VERSION=Qp;Qe.toFormData=Ji;Qe.AxiosError=fe;Qe.Cancel=Qe.CanceledError;Qe.all=function(t){return Promise.all(t)};Qe.spread=vT;Qe.isAxiosError=bT;Qe.mergeConfig=Bn;Qe.AxiosHeaders=ut;Qe.formToJSON=e=>Hp(I.isHTMLForm(e)?new FormData(e):e);Qe.getAdapter=Zp.getAdapter;Qe.HttpStatusCode=ga;Qe.default=Qe;const th="/",xT="2.1.0";function ET(e){let t=null;if(document.cookie&&document.cookie!==""){const n=document.cookie.split(";");for(let r=0;r<n.length;r++){const o=n[r].trim();if(o.substring(0,e.length+1)===e+"="){t=decodeURIComponent(o.substring(e.length+1));break}}}return t}const ST=ET("csrftoken"),bn=Qe.create({baseURL:th,withCredentials:!0,headers:{"Content-Type":"application/json","X-CSRFToken":ST}}),wT=async e=>{try{return(await bn.get(`api/users/current/${e?`?course_id=${e}`:""}`)).data}catch(t){throw console.error("Error getting current user",t),t}},CT=async e=>{try{const t=await bn.get(`api/users/${e?`?course_id=${e}`:""}`);return console.log("response",t),t.data}catch(t){throw console.error("Error getting users",t),t}},TT=async()=>{try{await bn.post("/auth/lti_logout/")}catch(e){throw console.error("Error logging out user",e),e}},Dr="/static/images/student.png",Lr="/static/images/teacher.png",ya="/static/images/guest.png",As=[{id:"1",name:"Teacher User",email:"teacher@edu.com",role:"teacher",image:Lr,color:"#3f51b5"},{id:"2",name:"Student User",email:"student@edu.com",role:"student",image:Dr,color:"#f50057"},{id:"3",name:"Guest User",email:"",role:"guest",image:ya,color:"#f50057"}],xn=Eo(e=>({fetchState:"idle",user:null,testUsers:As,users:[],setTestUsers:t=>e({testUsers:t}),setUser:t=>e({user:t}),getUser:async t=>{try{e({fetchState:"loading"}),e({testUsers:As});const n=await wT(t);if(n.image=n.role==="student"?Dr:Lr,n){let r;n.role==="student"?r=Dr:n.role==="teacher"?r=Lr:r=ya,e({user:{...n,image:r},fetchState:"idle",testUsers:As.filter(o=>o.role!==n.role)})}}catch(n){console.log("Error getting user",n),e({fetchState:"error"})}},getUsers:async()=>{try{e({fetchState:"loading"});const t=await CT();t.forEach(n=>{n.image=n.role==="student"?Dr:Lr}),e(t?{users:t,fetchState:"idle"}:{fetchState:"error"})}catch{e({fetchState:"error"})}},changeRole:t=>e(n=>{if(n.user){let r;return t==="student"?r=Dr:t==="teacher"?r=Lr:r=ya,{user:{...n.user,role:t,image:r}}}return n}),clearUser:()=>e({user:null}),logout:async()=>{try{return await TT(),e({user:null}),Promise.resolve()}catch(t){return Promise.reject(t)}}})),OT=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/^_/,""),RT=e=>e.toLowerCase().replace(/_([a-z])/g,(t,n)=>n.toUpperCase()),Fn=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>Fn(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=RT(n);t[o]=Fn(r)}),t},Ci=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(n=>Ci(n));if(typeof e!="object")return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=OT(n);t[o]=Ci(r)}),t};async function jT(){try{const e=await bn.get("api/courses/current/");return Fn(e.data)}catch(e){throw new Error("Failed to retrieve current course: "+e)}}async function kT(){try{const e=await bn.get("api/courses/");return Fn(e.data)}catch(e){throw new Error("Failed to retrieve courses: "+e)}}async function PT(e){try{const t=btoa(e),n=await bn.get(`api/courses/?encoded_url=${t}`);return Fn(n.data[0])}catch(t){throw new Error("Failed to retrieve course by URL: "+t)}}async function NT(e){try{const t=await bn.put(`api/courses/${e.id}/`,Ci(e)),n=Fn(t.data);if(n.ltiLoginUrl!==e.ltiLoginUrl)throw new Error("Update verification failed");return n}catch(t){throw new Error(`Failed to update the course: ${t}`)}}const Nt=Eo(e=>({fetchState:"loading",currentCourseUrl:"",currentCourse:null,courses:[],currentCourseCode:null,getCourseByUrl:async t=>{try{const n=await PT(t);e({currentCourse:n})}catch(n){console.error("Failed to fetch course by URL:",n)}},setCurrentCourseUrl:t=>e({currentCourseUrl:t}),setCurrentCourse:t=>e({currentCourse:t}),setCurrentCourseCode:t=>e({currentCourseCode:t}),updateCurrentCourse:async t=>{try{const n=await NT(t);if(n&&n.id===t.id)return e({currentCourse:n}),e(r=>({courses:r.courses.map(o=>o.id===n.id?n:o)})),n;throw new Error("Invalid response from server")}catch(n){throw console.error("Failed to update the course:",n),n}},getCurrentCourse:async()=>{try{const t=await jT();e({currentCourse:t})}catch(t){console.error("Failed to fetch current course:",t)}},getCourses:async()=>{try{e({fetchState:"loading"});const n=await kT();e({fetchState:"idle"}),e({courses:n})}catch(t){e({fetchState:"error"}),console.error("Failed to fetch courses:",t)}}}));function nh(){const e=Pt(),t=Mt();return{pathname:t.pathname,searchParams:new URLSearchParams(t.search),navigate:e}}const rh=()=>{const{setCurrentCourse:e}=Nt(t=>t);return h.jsx(D.Box,{onClick:()=>e(null),sx:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flex:"1"},children:h.jsx(D.Typography,{variant:"h1",component:"h1",children:"EduML"})})},oh=D.createTheme({cssVariables:{colorSchemeSelector:"data-toolpad-color-scheme"},typography:{fontFamily:'"Roboto", "Helvetica", "Arial", sans-serif',h1:{fontSize:"1.5rem",fontWeight:600,lineHeight:1.2},h2:{fontSize:"1.25rem",fontWeight:600},h3:{fontSize:"1.1rem",fontWeight:500},h4:{fontSize:"1rem",fontWeight:500},h5:{fontSize:"0.875rem",fontWeight:500},h6:{fontSize:"0.75rem",fontWeight:500},subtitle1:{fontSize:"0.875rem",lineHeight:1.5},subtitle2:{fontSize:"0.75rem",lineHeight:1.5},body1:{fontSize:"0.875rem",lineHeight:1.5},body2:{fontSize:"0.75rem",lineHeight:1.5},button:{textTransform:"none",fontWeight:500},caption:{fontSize:"0.75rem",lineHeight:1.66},overline:{fontSize:"0.75rem",textTransform:"uppercase"}},shape:{borderRadius:8},spacing:8,colorSchemes:{light:{palette:{mode:"light",background:{default:"#f5f5f5",paper:"#ffffff"},primary:{main:"#6a1b9a",light:"#9c4dcc",dark:"#38006b",contrastText:"#ffffff"},secondary:{main:"#ff4081",light:"#ff79b0",dark:"#c60055",contrastText:"#000000"},error:{main:"#e57373",light:"#ff8a80",dark:"#d32f2f",contrastText:"#ffffff"},warning:{main:"#ffb74d",light:"#ffe97d",dark:"#f57c00",contrastText:"#000000"},info:{main:"#64b5f6",light:"#9be7ff",dark:"#2286c3",contrastText:"#000000"},success:{main:"#81c784",light:"#b2fab4",dark:"#519657",contrastText:"#000000"},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)"}},dark:{palette:{mode:"dark",background:{default:"#303030",paper:"#424242"},primary:{main:"#9575cd",light:"#c7a4ff",dark:"#65499c",contrastText:"#ffffff"},secondary:{main:"#ff4081",light:"#ff79b0",dark:"#c60055",contrastText:"#ffffff"},error:{main:"#ef9a9a",light:"#ffcccb",dark:"#ba6b6c",contrastText:"#000000"},warning:{main:"#ffb74d",light:"#ffe97d",dark:"#f57c00",contrastText:"#000000"},info:{main:"#64b5f6",light:"#9be7ff",dark:"#2286c3",contrastText:"#000000"},success:{main:"#81c784",light:"#b2fab4",dark:"#519657",contrastText:"#000000"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)"}}},breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},components:{MuiButton:{styleOverrides:{root:{textTransform:"none",borderRadius:8}}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}},MuiDialog:{styleOverrides:{paper:{borderRadius:12}}},MuiCard:{styleOverrides:{root:{borderRadius:12}}}},transitions:{easing:{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)"},duration:{shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}},zIndex:{mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}}),AT=({IconFC:e})=>{const t=n=>{n.preventDefault()};return e?h.jsx(D.Box,{onClick:t,children:h.jsx(e,{fontSize:"small"})}):null},Rc=e=>e.map(t=>{if(t.kind==="page"){const n=t.iconFC?h.jsx(AT,{IconFC:t.iconFC}):void 0,r=t.children?Rc(t.children).filter(o=>o.kind==="page"):void 0;return{...t,icon:n,children:r}}return t}),IT=({ActionHandler:e,props:t})=>{const n=r=>(r.preventDefault(),h.jsx(e,{...t}));return h.jsx(jd,{onClick:n,"data-testid":"action-fc-wrapper",sx:{width:"100%"},children:h.jsx(e,{...t})})},ih=(e,t)=>{var r;if(e.kind!=="page")return e;const n=(r=e.children)==null?void 0:r.map(o=>ih(o)).filter(o=>o.kind==="page");return e!=null&&e.actionFC?{...e,action:h.jsx(IT,{ActionHandler:e.actionFC,props:{}}),children:n}:{...e,children:n}},sh=(e,t)=>e.map(n=>ih(n));function ah(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ah(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Un(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ah(e))&&(r&&(r+=" "),r+=t);return r}let _T={data:""},MT=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||_T,$T=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,DT=/\/\*[^]*?\*\/| +/g,td=/\n+/g,Rn=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?Rn(a,i):i+"{"+Rn(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=Rn(a,t?t.replace(/([^,])+/g,c=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,c):c?c+" "+l:l)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Rn.p?Rn.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Xt={},ch=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+ch(e[n]);return t}return e},LT=(e,t,n,r,o)=>{let i=ch(e),a=Xt[i]||(Xt[i]=(l=>{let u=0,d=11;for(;u<l.length;)d=101*d+l.charCodeAt(u++)>>>0;return"go"+d})(i));if(!Xt[a]){let l=i!==e?e:(u=>{let d,f,m=[{}];for(;d=$T.exec(u.replace(DT,""));)d[4]?m.shift():d[3]?(f=d[3].replace(td," ").trim(),m.unshift(m[0][f]=m[0][f]||{})):m[0][d[1]]=d[2].replace(td," ").trim();return m[0]})(e);Xt[a]=Rn(o?{["@keyframes "+a]:l}:l,n?"":"."+a)}let c=n&&Xt.g?Xt.g:null;return n&&(Xt.g=Xt[a]),((l,u,d,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=d?l+u.data:u.data+l)})(Xt[a],t,r,c),a},BT=(e,t,n)=>e.reduce((r,o,i)=>{let a=t[i];if(a&&a.call){let c=a(n),l=c&&c.props&&c.props.className||/^go/.test(c)&&c;a=l?"."+l:c&&typeof c=="object"?c.props?"":Rn(c,""):c===!1?"":c}return r+o+(a??"")},"");function jc(e){let t=this||{},n=e.call?e(t.p):e;return LT(n.unshift?n.raw?BT(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,MT(t.target),t.g,t.o,t.k)}jc.bind({g:1});jc.bind({k:1});function FT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lh(e,t,n){return t&&FT(e.prototype,t),e}function ke(){return ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(this,arguments)}function uh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function To(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function nd(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var rd=function(){return""},dh=M.createContext({enqueueSnackbar:rd,closeSnackbar:rd}),Tn={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},od=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},kc=function(t){return""+od(t.vertical)+od(t.horizontal)},Uo=function(t){return!!t||t===0},zo="unmounted",Zn="exited",Qn="entering",Pr="entered",id="exiting",Pc=function(e){uh(t,e);function t(r){var o;o=e.call(this,r)||this;var i=r.appear,a;return o.appearStatus=null,r.in?i?(a=Zn,o.appearStatus=Qn):a=Pr:r.unmountOnExit||r.mountOnEnter?a=zo:a=Zn,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===zo?{status:Zn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Qn&&a!==Pr&&(i=Qn):(a===Qn||a===Pr)&&(i=id)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i=o,a=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(a=o.exit,i=o.enter),{exit:a,enter:i}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===Qn?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===Zn&&this.setState({status:zo})},n.performEnter=function(o){var i=this,a=this.props.enter,c=o,l=this.getTimeouts();if(!o&&!a){this.safeSetState({status:Pr},function(){i.props.onEntered&&i.props.onEntered(i.node,c)});return}this.props.onEnter&&this.props.onEnter(this.node,c),this.safeSetState({status:Qn},function(){i.props.onEntering&&i.props.onEntering(i.node,c),i.onTransitionEnd(l.enter,function(){i.safeSetState({status:Pr},function(){i.props.onEntered&&i.props.onEntered(i.node,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:Zn},function(){o.props.onExited&&o.props.onExited(o.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:id},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Zn},function(){o.props.onExited&&o.props.onExited(o.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(){a&&(a=!1,i.nextCallback=null,o())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=o==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===zo)return null;var i=this.props,a=i.children,c=To(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(o,c)},lh(t,[{key:"node",get:function(){var o,i=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(M.Component);function er(){}Pc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:er,onEntering:er,onEntered:er,onExit:er,onExiting:er,onExited:er};function sd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function va(e,t){return M.useMemo(function(){return e==null&&t==null?null:function(n){sd(e,n),sd(t,n)}},[e,t])}function Ti(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,o=e.mode;return{duration:typeof t=="object"?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var ba={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)"},fh=function(t){t.scrollTop=t.scrollTop},ad=function(t){return Math.round(t)+"ms"};function or(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,o=r===void 0?300:r,i=n.easing,a=i===void 0?ba.easeInOut:i,c=n.delay,l=c===void 0?0:c,u=Array.isArray(e)?e:[e];return u.map(function(d){var f=typeof o=="string"?o:ad(o),m=typeof l=="string"?l:ad(l);return d+" "+f+" "+a+" "+m}).join(",")}function VT(e){return e&&e.ownerDocument||document}function ph(e){var t=VT(e);return t.defaultView||window}function UT(e,t){t===void 0&&(t=166);var n;function r(){for(var o=this,i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var l=function(){e.apply(o,a)};clearTimeout(n),n=setTimeout(l,t)}return r.clear=function(){clearTimeout(n)},r}function zT(e,t){var n=t.getBoundingClientRect(),r=ph(t),o;if(t.fakeTransform)o=t.fakeTransform;else{var i=r.getComputedStyle(t);o=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,c=0;if(o&&o!=="none"&&typeof o=="string"){var l=o.split("(")[1].split(")")[0].split(",");a=parseInt(l[4],10),c=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+c-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-c)+"px)"}}function Wo(e,t){if(t){var n=zT(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var hh=M.forwardRef(function(e,t){var n=e.children,r=e.direction,o=r===void 0?"down":r,i=e.in,a=e.style,c=e.timeout,l=c===void 0?0:c,u=e.onEnter,d=e.onEntered,f=e.onExit,m=e.onExited,b=To(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),g=M.useRef(null),p=va(n.ref,g),y=va(p,t),C=function(R,P){Wo(o,R),fh(R),u&&u(R,P)},T=function(R){var P=(a==null?void 0:a.transitionTimingFunction)||ba.easeOut,N=Ti({timeout:l,mode:"enter",style:ke({},a,{transitionTimingFunction:P})});R.style.webkitTransition=or("-webkit-transform",N),R.style.transition=or("transform",N),R.style.webkitTransform="none",R.style.transform="none"},w=function(R){var P=(a==null?void 0:a.transitionTimingFunction)||ba.sharp,N=Ti({timeout:l,mode:"exit",style:ke({},a,{transitionTimingFunction:P})});R.style.webkitTransition=or("-webkit-transform",N),R.style.transition=or("transform",N),Wo(o,R),f&&f(R)},E=function(R){R.style.webkitTransition="",R.style.transition="",m&&m(R)},S=M.useCallback(function(){g.current&&Wo(o,g.current)},[o]);return M.useEffect(function(){if(!(i||o==="down"||o==="right")){var O=UT(function(){g.current&&Wo(o,g.current)}),R=ph(g.current);return R.addEventListener("resize",O),function(){O.clear(),R.removeEventListener("resize",O)}}},[o,i]),M.useEffect(function(){i||S()},[i,S]),M.createElement(Pc,Object.assign({appear:!0,nodeRef:g,onEnter:C,onEntered:d,onEntering:T,onExit:w,onExited:E,in:i,timeout:l},b),function(O,R){return M.cloneElement(n,ke({ref:y,style:ke({visibility:O==="exited"&&!i?"hidden":void 0},a,{},n.props.style)},R))})});hh.displayName="Slide";var es=function(t){return M.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},WT=function(){return M.createElement(es,null,M.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
311
|
+
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},HT=function(){return M.createElement(es,null,M.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},qT=function(){return M.createElement(es,null,M.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
312
312
|
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
313
|
-
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},
|
|
314
|
-
0 22,12A10,10 0 0,0 12,2Z`}))},zC={default:void 0,success:D.createElement(BC,null),warning:D.createElement(FC,null),error:D.createElement(VC,null),info:D.createElement(UC,null)},jn={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:zC,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:uh,transitionDuration:{enter:225,exit:195}},WC=function(t,n){var r=function(i){return typeof i=="number"||i===null};return r(t)?t:r(n)?n:jn.autoHideDuration},HC=function(t,n){var r=function(i,a){return a.some(function(c){return typeof i===c})};return r(t,["string","number"])?t:r(t,["object"])?Pe({},jn.transitionDuration,{},r(n,["object"])&&n,{},t):r(n,["string","number"])?n:r(n,["object"])?Pe({},jn.transitionDuration,{},n):jn.transitionDuration},qC=function(t,n){return function(r,o){return o===void 0&&(o=!1),o?Pe({},jn[r],{},n[r],{},t[r]):r==="autoHideDuration"?WC(t.autoHideDuration,n.autoHideDuration):r==="transitionDuration"?HC(t.transitionDuration,n.transitionDuration):t[r]||n[r]||jn[r]}};function To(e){return Object.entries(e).reduce(function(t,n){var r,o=n[0],i=n[1];return Pe({},t,(r={},r[o]=Tc(i),r))},{})}var hr={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},id=To({root:{height:0},entered:{height:"auto"}}),Ps="0px",Ns=175,dh=D.forwardRef(function(e,t){var n=e.children,r=e.in,o=e.onExited,i=D.useRef(null),a=D.useRef(null),c=pa(t,a),l=function(){return i.current?i.current.clientHeight:0},u=function(p){p.style.height=Ps},d=function(p){var y=l(),T=Si({timeout:Ns,mode:"enter"}),C=T.duration,w=T.easing;p.style.transitionDuration=typeof C=="string"?C:C+"ms",p.style.height=y+"px",p.style.transitionTimingFunction=w||""},f=function(p){p.style.height="auto"},h=function(p){p.style.height=l()+"px"},b=function(p){ch(p);var y=Si({timeout:Ns,mode:"exit"}),T=y.duration,C=y.easing;p.style.transitionDuration=typeof T=="string"?T:T+"ms",p.style.height=Ps,p.style.transitionTimingFunction=C||""};return D.createElement(Oc,{in:r,unmountOnExit:!0,onEnter:u,onEntered:f,onEntering:d,onExit:h,onExited:o,onExiting:b,nodeRef:a,timeout:Ns},function(m,p){return D.createElement("div",Object.assign({ref:c,className:Fn(id.root,m==="entered"&&id.entered),style:Pe({pointerEvents:"all",overflow:"hidden",minHeight:Ps,transition:rr("height")},m==="entered"&&{overflow:"visible"},{},m==="exited"&&!r&&{visibility:"hidden"})},p),D.createElement("div",{ref:i,className:hr.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});dh.displayName="Collapse";var sd={right:"left",left:"right",bottom:"up",top:"down"},GC=function(t){return t.horizontal!=="center"?sd[t.horizontal]:sd[t.vertical]},YC=function(t){return"anchorOrigin"+Cc(t)},KC=function(t){t===void 0&&(t={});var n={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(r){return!n[r]}).reduce(function(r,o){var i;return Pe({},r,(i={},i[o]=t[o],i))},{})},XC=function(){};function zr(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var l=[].concat(a);t&&l.indexOf(t)===-1&&l.push(t),n.apply(this,l),r.apply(this,l)}},XC)}var JC=typeof window<"u"?D.useLayoutEffect:D.useEffect;function ad(e){var t=D.useRef(e);return JC(function(){t.current=e}),D.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var fh=D.forwardRef(function(e,t){var n=e.children,r=e.className,o=e.autoHideDuration,i=e.disableWindowBlurListener,a=i===void 0?!1:i,c=e.onClose,l=e.id,u=e.open,d=e.SnackbarProps,f=d===void 0?{}:d,h=D.useRef(),b=ad(function(){c&&c.apply(void 0,arguments)}),m=ad(function(w){!c||w==null||(h.current&&clearTimeout(h.current),h.current=setTimeout(function(){b(null,"timeout",l)},w))});D.useEffect(function(){return u&&m(o),function(){h.current&&clearTimeout(h.current)}},[u,o,m]);var p=function(){h.current&&clearTimeout(h.current)},y=D.useCallback(function(){o!=null&&m(o*.5)},[o,m]),T=function(E){f.onMouseEnter&&f.onMouseEnter(E),p()},C=function(E){f.onMouseLeave&&f.onMouseLeave(E),y()};return D.useEffect(function(){if(!a&&u)return window.addEventListener("focus",y),window.addEventListener("blur",p),function(){window.removeEventListener("focus",y),window.removeEventListener("blur",p)}},[a,y,u]),D.createElement("div",Object.assign({ref:t},f,{className:Fn(hr.Snackbar,r),onMouseEnter:T,onMouseLeave:C}),n)});fh.displayName="Snackbar";var js,ZC=To({root:(js={display:"flex",flexWrap:"wrap",flexGrow:1},js[wn.upSm]={flexGrow:"initial",minWidth:"288px"},js)}),ph=D.forwardRef(function(e,t){var n=e.className,r=wo(e,["className"]);return D.createElement("div",Object.assign({ref:t,className:Fn(ZC.root,n)},r))});ph.displayName="SnackbarContent";var Nr=To({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),cd="notistack-snackbar",hh=D.forwardRef(function(e,t){var n=e.id,r=e.message,o=e.action,i=e.iconVariant,a=e.variant,c=e.hideIconVariant,l=e.style,u=e.className,d=i[a],f=o;return typeof f=="function"&&(f=f(n)),D.createElement(ph,{ref:t,role:"alert","aria-describedby":cd,style:l,className:Fn(hr.MuiContent,hr.MuiContentVariant(a),Nr.root,Nr[a],u,!c&&d&&Nr.lessPadding)},D.createElement("div",{id:cd,className:Nr.message},c?null:d,r),f&&D.createElement("div",{className:Nr.action},f))});hh.displayName="MaterialDesignContent";var QC=D.memo(hh),e1=To({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),t1=function(t){var n=D.useRef(),r=D.useState(!0),o=r[0],i=r[1],a=zr([t.snack.onClose,t.onClose]),c=function(){t.snack.requestClose&&a(null,"instructed",t.snack.id)},l=D.useCallback(function(){n.current=setTimeout(function(){i(function(j){return!j})},125)},[]);D.useEffect(function(){return function(){n.current&&clearTimeout(n.current)}},[]);var u=t.snack,d=t.classes,f=t.Component,h=f===void 0?QC:f,b=D.useMemo(function(){return KC(d)},[d]),m=u.open,p=u.SnackbarProps,y=u.TransitionComponent,T=u.TransitionProps,C=u.transitionDuration,w=u.disableWindowBlurListener,E=u.content,S=wo(u,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),O=Pe({direction:GC(S.anchorOrigin),timeout:C},T),R=E;typeof R=="function"&&(R=R(S.id,S.message));var N=["onEnter","onEntered","onExit","onExited"].reduce(function(j,x){var P;return Pe({},j,(P={},P[x]=zr([t.snack[x],t[x]],S.id),P))},{});return D.createElement(dh,{in:o,onExited:N.onExited},D.createElement(fh,{open:m,id:S.id,disableWindowBlurListener:w,autoHideDuration:S.autoHideDuration,className:Fn(e1.wrappedRoot,b.root,b[YC(S.anchorOrigin)]),SnackbarProps:p,onClose:a},D.createElement(y,Object.assign({},O,{appear:!0,in:m,onExit:N.onExit,onExited:l,onEnter:N.onEnter,onEntered:zr([N.onEntered,c],S.id)}),R||D.createElement(h,Object.assign({},S)))))},jr,As,zo,Wo,Is,Xt={view:{default:20,dense:4},snackbar:{default:6,dense:2}},ld="."+hr.CollapseWrapper,_s=16,Ho=To({root:(jr={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:rr(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},jr[ld]={padding:Xt.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},jr.maxWidth="calc(100% - "+Xt.view.default*2+"px)",jr[wn.downXs]={width:"100%",maxWidth:"calc(100% - "+_s*2+"px)"},jr),rootDense:(As={},As[ld]={padding:Xt.snackbar.dense+"px 0px"},As),top:{top:Xt.view.default-Xt.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:Xt.view.default-Xt.snackbar.default+"px",flexDirection:"column-reverse"},left:(zo={left:Xt.view.default+"px"},zo[wn.upSm]={alignItems:"flex-start"},zo[wn.downXs]={left:_s+"px"},zo),right:(Wo={right:Xt.view.default+"px"},Wo[wn.upSm]={alignItems:"flex-end"},Wo[wn.downXs]={right:_s+"px"},Wo),center:(Is={left:"50%",transform:"translateX(-50%)"},Is[wn.upSm]={alignItems:"center"},Is)}),n1=function(t){var n=t.classes,r=n===void 0?{}:n,o=t.anchorOrigin,i=t.dense,a=t.children,c=Fn(hr.SnackbarContainer,Ho[o.vertical],Ho[o.horizontal],Ho.root,r.containerRoot,r["containerAnchorOrigin"+Cc(o)],i&&Ho.rootDense);return D.createElement("div",{className:c},a)},r1=D.memo(n1),o1=process.env.NODE_ENV!=="production",i1={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},s1=function(e){if(o1){var t=i1[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}},ud=function(t){var n=typeof t=="string"||D.isValidElement(t);return!n},mh,gh=function(e){sh(t,e);function t(r){var o;return o=e.call(this,r)||this,o.enqueueSnackbar=function(i,a){if(a===void 0&&(a={}),i==null)throw new Error("enqueueSnackbar called with invalid argument");var c=ud(i)?i:a,l=ud(i)?i.message:i,u=c.key,d=c.preventDuplicate,f=wo(c,["key","preventDuplicate"]),h=Fo(u),b=h?u:new Date().getTime()+Math.random(),m=qC(f,o.props),p=Pe({id:b},f,{message:l,open:!0,entered:!1,requestClose:!1,persist:m("persist"),action:m("action"),content:m("content"),variant:m("variant"),anchorOrigin:m("anchorOrigin"),disableWindowBlurListener:m("disableWindowBlurListener"),autoHideDuration:m("autoHideDuration"),hideIconVariant:m("hideIconVariant"),TransitionComponent:m("TransitionComponent"),transitionDuration:m("transitionDuration"),TransitionProps:m("TransitionProps",!0),iconVariant:m("iconVariant",!0),style:m("style",!0),SnackbarProps:m("SnackbarProps",!0),className:Fn(o.props.className,f.className)});return p.persist&&(p.autoHideDuration=void 0),o.setState(function(y){if(d===void 0&&o.props.preventDuplicate||d){var T=function(S){return h?S.id===b:S.message===l},C=y.queue.findIndex(T)>-1,w=y.snacks.findIndex(T)>-1;if(C||w)return y}return o.handleDisplaySnack(Pe({},y,{queue:[].concat(y.queue,[p])}))}),b},o.handleDisplaySnack=function(i){var a=i.snacks;return a.length>=o.maxSnack?o.handleDismissOldest(i):o.processQueue(i)},o.processQueue=function(i){var a=i.queue,c=i.snacks;return a.length>0?Pe({},i,{snacks:[].concat(c,[a[0]]),queue:a.slice(1,a.length)}):i},o.handleDismissOldest=function(i){if(i.snacks.some(function(d){return!d.open||d.requestClose}))return i;var a=!1,c=!1,l=i.snacks.reduce(function(d,f){return d+(f.open&&f.persist?1:0)},0);l===o.maxSnack&&(process.env.NODE_ENV!=="production"&&s1("NO_PERSIST_ALL"),c=!0);var u=i.snacks.map(function(d){return!a&&(!d.persist||c)?(a=!0,d.entered?(d.onClose&&d.onClose(null,"maxsnack",d.id),o.props.onClose&&o.props.onClose(null,"maxsnack",d.id),Pe({},d,{open:!1})):Pe({},d,{requestClose:!0})):Pe({},d)});return Pe({},i,{snacks:u})},o.handleEnteredSnack=function(i,a,c){if(!Fo(c))throw new Error("handleEnteredSnack Cannot be called with undefined key");o.setState(function(l){var u=l.snacks;return{snacks:u.map(function(d){return d.id===c?Pe({},d,{entered:!0}):Pe({},d)})}})},o.handleCloseSnack=function(i,a,c){o.props.onClose&&o.props.onClose(i,a,c);var l=c===void 0;o.setState(function(u){var d=u.snacks,f=u.queue;return{snacks:d.map(function(h){return!l&&h.id!==c?Pe({},h):h.entered?Pe({},h,{open:!1}):Pe({},h,{requestClose:!0})}),queue:f.filter(function(h){return h.id!==c})}})},o.closeSnackbar=function(i){var a=o.state.snacks.find(function(c){return c.id===i});Fo(i)&&a&&a.onClose&&a.onClose(null,"instructed",i),o.handleCloseSnack(null,"instructed",i)},o.handleExitedSnack=function(i,a){if(!Fo(a))throw new Error("handleExitedSnack Cannot be called with undefined key");o.setState(function(c){var l=o.processQueue(Pe({},c,{snacks:c.snacks.filter(function(u){return u.id!==a})}));return l.queue.length===0?l:o.handleDismissOldest(l)})},o.enqueueSnackbar,mh=o.closeSnackbar,o.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:o.enqueueSnackbar.bind(Qu(o)),closeSnackbar:o.closeSnackbar.bind(Qu(o))}},o}var n=t.prototype;return n.render=function(){var o=this,i=this.state.contextValue,a=this.props,c=a.domRoot,l=a.children,u=a.dense,d=u===void 0?!1:u,f=a.Components,h=f===void 0?{}:f,b=a.classes,m=this.state.snacks.reduce(function(y,T){var C,w=Cc(T.anchorOrigin),E=y[w]||[];return Pe({},y,(C={},C[w]=[].concat(E,[T]),C))},{}),p=Object.keys(m).map(function(y){var T=m[y],C=T[0];return D.createElement(r1,{key:y,dense:d,anchorOrigin:C.anchorOrigin,classes:b},T.map(function(w){return D.createElement(t1,{key:w.id,snack:w,classes:b,Component:h[w.variant],onClose:o.handleCloseSnack,onEnter:o.props.onEnter,onExit:o.props.onExit,onExited:zr([o.handleExitedSnack,o.props.onExited],w.id),onEntered:zr([o.handleEnteredSnack,o.props.onEntered],w.id)})}))});return D.createElement(ah.Provider,{value:i},l,c?nr.createPortal(p,c):p)},ih(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||jn.maxSnack}}]),t}(D.Component),a1=function(){return D.useContext(ah)};const c1=e=>{if(!e)return!0;const t=`notification_shown_${e}`;return localStorage.getItem(t)?!1:(localStorage.setItem(t,"true"),!0)},Vn=bo(e=>({notifications:[],addNotificationData:t=>{t.singular&&!c1(t.singularId)||e(n=>({notifications:[...n.notifications,{...t,id:`${Date.now()*Math.random()}`}]}))},removeNotificationData:t=>{e(n=>({notifications:n.notifications.filter(r=>r.id!==`${t}`)}))}})),l1=e=>g.jsx(Y.IconButton,{onClick:()=>{mh(e)},children:g.jsx(ff,{})}),yh=()=>{const{notifications:e,removeNotificationData:t}=Vn(),{enqueueSnackbar:n}=a1();return D.useEffect(()=>{e.length>0&&e.forEach(r=>{n(r.message,{variant:r.type,action:l1}),t(Number(r.id))})},[e,n,t]),g.jsx(g.Fragment,{})},u1=()=>g.jsx(up,{children:g.jsx(Y.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"right",width:"100%"}})}),vh=()=>{var o;const e=dp(),t=Y.useTheme(),n=Y.useMediaQuery(t.breakpoints.down("sm"));let r=(e==null?void 0:e.breadcrumbs)||[];return n&&(r=((o=e==null?void 0:e.breadcrumbs)==null?void 0:o.slice(-2))||[]),g.jsx(fp,{title:"",breadcrumbs:r,sx:{display:"flex",flexDirection:"row",justifyContent:"left",alignItems:"center","& .MuiBreadcrumbs-root":{...n&&{fontSize:"0.575rem","& .MuiBreadcrumbs-li":{fontSize:"inherit"},"& .MuiBreadcrumbs-separator":{fontSize:"inherit"},"& .MuiBreadcrumbs-li:last-child":{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"inherit","& .MuiTypography-root":{fontSize:"inherit",fontWeight:"bold"}}}},"& .MuiStack-root":{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",margin:0,padding:0,alignItems:"center",flex:1}},slots:{toolbar:u1}})},d1="/static/images/tuni/face-purple-small.png",f1="/static/images/tuni/Tampere_University_logo.svg";function bh({mini:e}){return g.jsxs(Qd,{direction:"column",alignItems:"center",spacing:1,children:[g.jsxs(Y.Typography,{variant:"caption",color:"primary",sx:{m:1},children:["BETA ",e?"":"VERSION 0.1.0"]}),e?g.jsxs(g.Fragment,{children:[g.jsx("img",{style:{height:"3rem",width:"auto"},alt:"Tampere University",src:d1}),g.jsxs(Y.Typography,{variant:"caption",sx:{m:1},children:["© ",new Date().getFullYear()]})]}):g.jsxs(g.Fragment,{children:[g.jsx("img",{style:{height:"3rem",width:"auto"},alt:"Tampere University",src:f1}),g.jsxs(Y.Typography,{variant:"caption",sx:{m:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["© ",new Date().getFullYear()," Made with 💜 The EduML Team"]})]})]})}const p1=()=>{const{user:e,setUser:t,testUsers:n,setTestUsers:r}=Bn(),o=i=>{const a=n.filter(c=>c.id!==i.id);r([...a,e]),t(i)};return g.jsx(g.Fragment,{children:n.map(i=>g.jsxs(Y.MenuItem,{component:"button",onClick:()=>o(i),sx:{justifyContent:"flex-start",width:"100%",columnGap:2},children:[g.jsx(Y.ListItemIcon,{children:g.jsx(Y.Avatar,{sx:{width:32,height:32,fontSize:"0.95rem",bgcolor:i.color},src:i.image??"",alt:(i==null?void 0:i.name)??"",children:i.name[0]})}),g.jsx(Y.ListItemText,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%"},primary:i.name,secondary:i.email,primaryTypographyProps:{variant:"body2"},secondaryTypographyProps:{variant:"caption"}})]},i.id))})},h1=Ge(g.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),m1=()=>window.location.hostname==="localhost"?g.jsxs(g.Fragment,{children:[" ",g.jsxs(Y.Paper,{elevation:3,sx:{margin:2,p:2,maxWidth:300,backgroundColor:"warning.light"},children:[g.jsxs(Y.Typography,{variant:"h6",color:"warning.dark",sx:{fontWeight:"bold",display:"flex",alignItems:"center",fontSize:"1rem"},children:[g.jsx(h1,{}),"Development Tools"]}),g.jsx(Y.Typography,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.6rem"},children:"Note: Switching between users only affects the view. All backend requests (GET, POST, PUT, DELETE) will still be made with the original authenticated user."})]}),g.jsx(Y.MenuList,{id:"dev-menu",children:g.jsx(p1,{})})]}):null,xh=()=>g.jsx(ec,{slots:{popoverContent:g1}}),g1=()=>g.jsxs(Y.Stack,{direction:"column",children:[g.jsx(hi,{variant:"expanded"}),g.jsx(Y.Divider,{}),g.jsx(m1,{}),g.jsx(Y.Divider,{}),g.jsx(Kf,{children:g.jsx(Yf,{})})]});function Eh(){return g.jsx(Y.Stack,{direction:"row",alignItems:"center",spacing:2,children:g.jsx(ip,{})})}const y1=({children:e})=>{const[t,n]=D.useState(!1),{user:r,getUser:o,logout:i}=Bn(),{currentCourse:a,getCourses:c,setCurrentCourseUrl:l,getCourseByUrl:u}=Ht(),{navigation:d}=xo(),f=Zp(),[h,b]=D.useState(null),[m,p]=D.useState(null),{addNotificationData:y}=Vn();D.useEffect(()=>{o(a==null?void 0:a.id)},[t,a==null?void 0:a.id,o]),D.useEffect(()=>{c()},[c]),D.useEffect(()=>{d&&(a!=null&&a.id)&&b(nh(wc(d),(r==null?void 0:r.role)||""))},[d,r,a]),D.useEffect(()=>{const E=async S=>{const{url:O}=S.data;if(O&&(p(O),l(O),!(r!=null&&r.id)))try{await u(O)}catch(R){console.error("Failed to fetch course by URL:",R)}};return window.addEventListener("message",E),()=>window.removeEventListener("message",E)},[r,u,l]),D.useEffect(()=>{if(r!=null&&r.id){const E=localStorage.getItem("returnLocation");E&&(localStorage.removeItem("returnLocation"),window.location.href=E)}},[r,f]);const T=()=>{const E=(window==null?void 0:window.top)||window;n(!0),localStorage.setItem("returnLocation",m||window.location.href);const S=a==null?void 0:a.ltiLoginUrl;S?E.location.href=S:(a!=null&&a.id?y({type:"error",message:"Login is not available. Please contact the course staff."}):y({type:"error",message:"Failed to login. Please select a course first so that the login URL can be retrieved."}),n(!1))},C=async()=>{try{await i()}catch(E){console.error("Failed to logout:",E),y({type:"error",message:"Failed to logout. Please try again."})}},w={user:(r==null?void 0:r.id)&&r||void 0};return g.jsx(gh,{maxSnack:6,autoHideDuration:1e4,children:g.jsx(Cp,{branding:{logo:g.jsx(Qp,{}),title:""},navigation:a&&h||[],theme:eh,router:f,session:w,authentication:{signIn:T,signOut:C},children:g.jsxs(oc,{maxWidth:!0,slots:{toolbarAccount:xh,toolbarActions:Eh,sidebarFooter:bh},children:[g.jsx(vh,{}),e,g.jsx(yh,{})]})})})},v1=({children:e})=>{const[t,n]=D.useState(!1),{user:r,getUser:o,logout:i}=Bn(),{currentCourse:a,getCourses:c,setCurrentCourseUrl:l,getCourseByUrl:u}=Ht(),{navigation:d}=xo(),f=Zp(),[h,b]=D.useState(null),[m,p]=D.useState(null),{addNotificationData:y}=Vn();D.useEffect(()=>{o(a==null?void 0:a.id)},[t,a==null?void 0:a.id,o]),D.useEffect(()=>{c()},[c]),D.useEffect(()=>{d&&(a!=null&&a.id)&&b(nh(wc(d),(r==null?void 0:r.role)||""))},[d,r,a]),D.useEffect(()=>{const E=async S=>{const{url:O}=S.data;if(O&&(p(O),l(O),!(r!=null&&r.id)))try{await u(O)}catch(R){console.error("Failed to fetch course by URL:",R)}};return window.addEventListener("message",E),()=>window.removeEventListener("message",E)},[r,u,l]),D.useEffect(()=>{if(r!=null&&r.id){const E=localStorage.getItem("returnLocation");E&&(localStorage.removeItem("returnLocation"),window.location.href=E)}},[r,f]);const T=()=>{const E=(window==null?void 0:window.top)||window;n(!0),localStorage.setItem("returnLocation",m||window.location.href);const S=a==null?void 0:a.ltiLoginUrl;S?E.location.href=S:(a!=null&&a.id?y({type:"error",message:"Login is not available. Please contact the course staff."}):y({type:"error",message:"Failed to login. Please select a course first so that the login URL can be retrieved."}),n(!1))},C=async()=>{try{await i()}catch(E){console.error("Failed to logout:",E),y({type:"error",message:"Failed to logout. Please try again."})}},w={user:(r==null?void 0:r.id)&&r||void 0};return g.jsx(gh,{maxSnack:6,autoHideDuration:1e4,children:g.jsx(Cp,{branding:{logo:g.jsx(Qp,{}),title:""},navigation:a&&h||[],theme:eh,router:f,session:w,authentication:{signIn:T,signOut:C},children:g.jsxs(oc,{maxWidth:!0,slots:{toolbarAccount:xh,toolbarActions:Eh,sidebarFooter:bh},children:[g.jsx(vh,{}),e,g.jsx(yh,{})]})})})},Rc=bo(e=>({openDialog:null,setOpenDialog:t=>e({openDialog:t}),closeDialog:()=>e({openDialog:null})})),b1=({course:e,isSelected:t,onSelect:n})=>g.jsx(Y.ListItem,{onClick:()=>n(e),sx:{maxWidth:300,mb:1,borderRadius:1,cursor:"pointer",transition:"all 0.2s ease-in-out",bgcolor:t?r=>Ue(r.palette.primary.main,.1):"background.paper","&:hover":{bgcolor:r=>Ue(r.palette.primary.main,.05),transform:"translateX(8px)"},"&:active":{transform:"scale(0.98)"}},children:g.jsx(Y.ListItemText,{primary:g.jsx(Y.Typography,{variant:"h6",color:"primary",sx:{fontWeight:t?"bold":"medium"},children:e.title}),secondary:g.jsx(Y.Typography,{variant:"body2",color:"text.secondary",sx:{mt:.5,opacity:.8},children:e.description})})}),x1=()=>g.jsx(Y.ListItem,{children:g.jsx(Y.ListItemText,{primary:g.jsx(Y.Typography,{variant:"h6",color:"primary",children:"No Courses Found"}),secondary:g.jsx(Y.Typography,{variant:"body2",color:"text.secondary",children:"You must link a course to EduML to get started."})})}),E1=({courses:e,selectedCourse:t,onSelectCourse:n})=>g.jsx(Y.Paper,{elevation:3,children:g.jsx(Y.List,{sx:{p:2,display:"flex",flexDirection:"row",flex:1,gap:2},children:e.length===0?g.jsx(x1,{}):e.map(r=>g.jsx(b1,{course:r,isSelected:(t==null?void 0:t.id)===r.id,onSelect:n},r.id))})}),S1=()=>{const{courses:e,currentCourse:t}=Ht(),[n,r]=D.useState(!1),o=tn();return D.useEffect(()=>(r(!0),()=>r(!1)),[]),g.jsx(Y.Fade,{in:n,timeout:500,children:g.jsxs(Y.Box,{sx:{p:3,display:"flex",flexDirection:"column",gap:2},children:[g.jsx(Y.Typography,{variant:"h4",sx:{mb:3,fontWeight:"medium",color:"primary.main"},children:"Courses"}),g.jsx(E1,{courses:e,selectedCourse:t,onSelectCourse:i=>o(`${vc(i.title)}`)})]})})},w1=Y.keyframes`
|
|
313
|
+
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},GT=function(){return M.createElement(es,null,M.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
314
|
+
0 22,12A10,10 0 0,0 12,2Z`}))},YT={default:void 0,success:M.createElement(WT,null),warning:M.createElement(HT,null),error:M.createElement(qT,null),info:M.createElement(GT,null)},_n={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:YT,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:hh,transitionDuration:{enter:225,exit:195}},KT=function(t,n){var r=function(i){return typeof i=="number"||i===null};return r(t)?t:r(n)?n:_n.autoHideDuration},XT=function(t,n){var r=function(i,a){return a.some(function(c){return typeof i===c})};return r(t,["string","number"])?t:r(t,["object"])?ke({},_n.transitionDuration,{},r(n,["object"])&&n,{},t):r(n,["string","number"])?n:r(n,["object"])?ke({},_n.transitionDuration,{},n):_n.transitionDuration},JT=function(t,n){return function(r,o){return o===void 0&&(o=!1),o?ke({},_n[r],{},n[r],{},t[r]):r==="autoHideDuration"?KT(t.autoHideDuration,n.autoHideDuration):r==="transitionDuration"?XT(t.transitionDuration,n.transitionDuration):t[r]||n[r]||_n[r]}};function Oo(e){return Object.entries(e).reduce(function(t,n){var r,o=n[0],i=n[1];return ke({},t,(r={},r[o]=jc(i),r))},{})}var mr={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},cd=Oo({root:{height:0},entered:{height:"auto"}}),Is="0px",_s=175,mh=M.forwardRef(function(e,t){var n=e.children,r=e.in,o=e.onExited,i=M.useRef(null),a=M.useRef(null),c=va(t,a),l=function(){return i.current?i.current.clientHeight:0},u=function(p){p.style.height=Is},d=function(p){var y=l(),C=Ti({timeout:_s,mode:"enter"}),T=C.duration,w=C.easing;p.style.transitionDuration=typeof T=="string"?T:T+"ms",p.style.height=y+"px",p.style.transitionTimingFunction=w||""},f=function(p){p.style.height="auto"},m=function(p){p.style.height=l()+"px"},b=function(p){fh(p);var y=Ti({timeout:_s,mode:"exit"}),C=y.duration,T=y.easing;p.style.transitionDuration=typeof C=="string"?C:C+"ms",p.style.height=Is,p.style.transitionTimingFunction=T||""};return M.createElement(Pc,{in:r,unmountOnExit:!0,onEnter:u,onEntered:f,onEntering:d,onExit:m,onExited:o,onExiting:b,nodeRef:a,timeout:_s},function(g,p){return M.createElement("div",Object.assign({ref:c,className:Un(cd.root,g==="entered"&&cd.entered),style:ke({pointerEvents:"all",overflow:"hidden",minHeight:Is,transition:or("height")},g==="entered"&&{overflow:"visible"},{},g==="exited"&&!r&&{visibility:"hidden"})},p),M.createElement("div",{ref:i,className:mr.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});mh.displayName="Collapse";var ld={right:"left",left:"right",bottom:"up",top:"down"},ZT=function(t){return t.horizontal!=="center"?ld[t.horizontal]:ld[t.vertical]},QT=function(t){return"anchorOrigin"+kc(t)},e1=function(t){t===void 0&&(t={});var n={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(r){return!n[r]}).reduce(function(r,o){var i;return ke({},r,(i={},i[o]=t[o],i))},{})},t1=function(){};function zr(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,a=new Array(i),c=0;c<i;c++)a[c]=arguments[c];var l=[].concat(a);t&&l.indexOf(t)===-1&&l.push(t),n.apply(this,l),r.apply(this,l)}},t1)}var n1=typeof window<"u"?M.useLayoutEffect:M.useEffect;function ud(e){var t=M.useRef(e);return n1(function(){t.current=e}),M.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var gh=M.forwardRef(function(e,t){var n=e.children,r=e.className,o=e.autoHideDuration,i=e.disableWindowBlurListener,a=i===void 0?!1:i,c=e.onClose,l=e.id,u=e.open,d=e.SnackbarProps,f=d===void 0?{}:d,m=M.useRef(),b=ud(function(){c&&c.apply(void 0,arguments)}),g=ud(function(w){!c||w==null||(m.current&&clearTimeout(m.current),m.current=setTimeout(function(){b(null,"timeout",l)},w))});M.useEffect(function(){return u&&g(o),function(){m.current&&clearTimeout(m.current)}},[u,o,g]);var p=function(){m.current&&clearTimeout(m.current)},y=M.useCallback(function(){o!=null&&g(o*.5)},[o,g]),C=function(E){f.onMouseEnter&&f.onMouseEnter(E),p()},T=function(E){f.onMouseLeave&&f.onMouseLeave(E),y()};return M.useEffect(function(){if(!a&&u)return window.addEventListener("focus",y),window.addEventListener("blur",p),function(){window.removeEventListener("focus",y),window.removeEventListener("blur",p)}},[a,y,u]),M.createElement("div",Object.assign({ref:t},f,{className:Un(mr.Snackbar,r),onMouseEnter:C,onMouseLeave:T}),n)});gh.displayName="Snackbar";var Ms,r1=Oo({root:(Ms={display:"flex",flexWrap:"wrap",flexGrow:1},Ms[Tn.upSm]={flexGrow:"initial",minWidth:"288px"},Ms)}),yh=M.forwardRef(function(e,t){var n=e.className,r=To(e,["className"]);return M.createElement("div",Object.assign({ref:t,className:Un(r1.root,n)},r))});yh.displayName="SnackbarContent";var Nr=Oo({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),dd="notistack-snackbar",vh=M.forwardRef(function(e,t){var n=e.id,r=e.message,o=e.action,i=e.iconVariant,a=e.variant,c=e.hideIconVariant,l=e.style,u=e.className,d=i[a],f=o;return typeof f=="function"&&(f=f(n)),M.createElement(yh,{ref:t,role:"alert","aria-describedby":dd,style:l,className:Un(mr.MuiContent,mr.MuiContentVariant(a),Nr.root,Nr[a],u,!c&&d&&Nr.lessPadding)},M.createElement("div",{id:dd,className:Nr.message},c?null:d,r),f&&M.createElement("div",{className:Nr.action},f))});vh.displayName="MaterialDesignContent";var o1=M.memo(vh),i1=Oo({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),s1=function(t){var n=M.useRef(),r=M.useState(!0),o=r[0],i=r[1],a=zr([t.snack.onClose,t.onClose]),c=function(){t.snack.requestClose&&a(null,"instructed",t.snack.id)},l=M.useCallback(function(){n.current=setTimeout(function(){i(function(N){return!N})},125)},[]);M.useEffect(function(){return function(){n.current&&clearTimeout(n.current)}},[]);var u=t.snack,d=t.classes,f=t.Component,m=f===void 0?o1:f,b=M.useMemo(function(){return e1(d)},[d]),g=u.open,p=u.SnackbarProps,y=u.TransitionComponent,C=u.TransitionProps,T=u.transitionDuration,w=u.disableWindowBlurListener,E=u.content,S=To(u,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),O=ke({direction:ZT(S.anchorOrigin),timeout:T},C),R=E;typeof R=="function"&&(R=R(S.id,S.message));var P=["onEnter","onEntered","onExit","onExited"].reduce(function(N,x){var k;return ke({},N,(k={},k[x]=zr([t.snack[x],t[x]],S.id),k))},{});return M.createElement(mh,{in:o,onExited:P.onExited},M.createElement(gh,{open:g,id:S.id,disableWindowBlurListener:w,autoHideDuration:S.autoHideDuration,className:Un(i1.wrappedRoot,b.root,b[QT(S.anchorOrigin)]),SnackbarProps:p,onClose:a},M.createElement(y,Object.assign({},O,{appear:!0,in:g,onExit:P.onExit,onExited:l,onEnter:P.onEnter,onEntered:zr([P.onEntered,c],S.id)}),R||M.createElement(m,Object.assign({},S)))))},Ar,$s,Ho,qo,Ds,Jt={view:{default:20,dense:4},snackbar:{default:6,dense:2}},fd="."+mr.CollapseWrapper,Ls=16,Go=Oo({root:(Ar={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:or(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Ar[fd]={padding:Jt.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},Ar.maxWidth="calc(100% - "+Jt.view.default*2+"px)",Ar[Tn.downXs]={width:"100%",maxWidth:"calc(100% - "+Ls*2+"px)"},Ar),rootDense:($s={},$s[fd]={padding:Jt.snackbar.dense+"px 0px"},$s),top:{top:Jt.view.default-Jt.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:Jt.view.default-Jt.snackbar.default+"px",flexDirection:"column-reverse"},left:(Ho={left:Jt.view.default+"px"},Ho[Tn.upSm]={alignItems:"flex-start"},Ho[Tn.downXs]={left:Ls+"px"},Ho),right:(qo={right:Jt.view.default+"px"},qo[Tn.upSm]={alignItems:"flex-end"},qo[Tn.downXs]={right:Ls+"px"},qo),center:(Ds={left:"50%",transform:"translateX(-50%)"},Ds[Tn.upSm]={alignItems:"center"},Ds)}),a1=function(t){var n=t.classes,r=n===void 0?{}:n,o=t.anchorOrigin,i=t.dense,a=t.children,c=Un(mr.SnackbarContainer,Go[o.vertical],Go[o.horizontal],Go.root,r.containerRoot,r["containerAnchorOrigin"+kc(o)],i&&Go.rootDense);return M.createElement("div",{className:c},a)},c1=M.memo(a1),l1=process.env.NODE_ENV!=="production",u1={NO_PERSIST_ALL:"Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."},d1=function(e){if(l1){var t=u1[e];typeof console<"u"&&console.error("WARNING - notistack: "+t);try{throw new Error(t)}catch{}}},pd=function(t){var n=typeof t=="string"||M.isValidElement(t);return!n},bh,xh=function(e){uh(t,e);function t(r){var o;return o=e.call(this,r)||this,o.enqueueSnackbar=function(i,a){if(a===void 0&&(a={}),i==null)throw new Error("enqueueSnackbar called with invalid argument");var c=pd(i)?i:a,l=pd(i)?i.message:i,u=c.key,d=c.preventDuplicate,f=To(c,["key","preventDuplicate"]),m=Uo(u),b=m?u:new Date().getTime()+Math.random(),g=JT(f,o.props),p=ke({id:b},f,{message:l,open:!0,entered:!1,requestClose:!1,persist:g("persist"),action:g("action"),content:g("content"),variant:g("variant"),anchorOrigin:g("anchorOrigin"),disableWindowBlurListener:g("disableWindowBlurListener"),autoHideDuration:g("autoHideDuration"),hideIconVariant:g("hideIconVariant"),TransitionComponent:g("TransitionComponent"),transitionDuration:g("transitionDuration"),TransitionProps:g("TransitionProps",!0),iconVariant:g("iconVariant",!0),style:g("style",!0),SnackbarProps:g("SnackbarProps",!0),className:Un(o.props.className,f.className)});return p.persist&&(p.autoHideDuration=void 0),o.setState(function(y){if(d===void 0&&o.props.preventDuplicate||d){var C=function(S){return m?S.id===b:S.message===l},T=y.queue.findIndex(C)>-1,w=y.snacks.findIndex(C)>-1;if(T||w)return y}return o.handleDisplaySnack(ke({},y,{queue:[].concat(y.queue,[p])}))}),b},o.handleDisplaySnack=function(i){var a=i.snacks;return a.length>=o.maxSnack?o.handleDismissOldest(i):o.processQueue(i)},o.processQueue=function(i){var a=i.queue,c=i.snacks;return a.length>0?ke({},i,{snacks:[].concat(c,[a[0]]),queue:a.slice(1,a.length)}):i},o.handleDismissOldest=function(i){if(i.snacks.some(function(d){return!d.open||d.requestClose}))return i;var a=!1,c=!1,l=i.snacks.reduce(function(d,f){return d+(f.open&&f.persist?1:0)},0);l===o.maxSnack&&(process.env.NODE_ENV!=="production"&&d1("NO_PERSIST_ALL"),c=!0);var u=i.snacks.map(function(d){return!a&&(!d.persist||c)?(a=!0,d.entered?(d.onClose&&d.onClose(null,"maxsnack",d.id),o.props.onClose&&o.props.onClose(null,"maxsnack",d.id),ke({},d,{open:!1})):ke({},d,{requestClose:!0})):ke({},d)});return ke({},i,{snacks:u})},o.handleEnteredSnack=function(i,a,c){if(!Uo(c))throw new Error("handleEnteredSnack Cannot be called with undefined key");o.setState(function(l){var u=l.snacks;return{snacks:u.map(function(d){return d.id===c?ke({},d,{entered:!0}):ke({},d)})}})},o.handleCloseSnack=function(i,a,c){o.props.onClose&&o.props.onClose(i,a,c);var l=c===void 0;o.setState(function(u){var d=u.snacks,f=u.queue;return{snacks:d.map(function(m){return!l&&m.id!==c?ke({},m):m.entered?ke({},m,{open:!1}):ke({},m,{requestClose:!0})}),queue:f.filter(function(m){return m.id!==c})}})},o.closeSnackbar=function(i){var a=o.state.snacks.find(function(c){return c.id===i});Uo(i)&&a&&a.onClose&&a.onClose(null,"instructed",i),o.handleCloseSnack(null,"instructed",i)},o.handleExitedSnack=function(i,a){if(!Uo(a))throw new Error("handleExitedSnack Cannot be called with undefined key");o.setState(function(c){var l=o.processQueue(ke({},c,{snacks:c.snacks.filter(function(u){return u.id!==a})}));return l.queue.length===0?l:o.handleDismissOldest(l)})},o.enqueueSnackbar,bh=o.closeSnackbar,o.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:o.enqueueSnackbar.bind(nd(o)),closeSnackbar:o.closeSnackbar.bind(nd(o))}},o}var n=t.prototype;return n.render=function(){var o=this,i=this.state.contextValue,a=this.props,c=a.domRoot,l=a.children,u=a.dense,d=u===void 0?!1:u,f=a.Components,m=f===void 0?{}:f,b=a.classes,g=this.state.snacks.reduce(function(y,C){var T,w=kc(C.anchorOrigin),E=y[w]||[];return ke({},y,(T={},T[w]=[].concat(E,[C]),T))},{}),p=Object.keys(g).map(function(y){var C=g[y],T=C[0];return M.createElement(c1,{key:y,dense:d,anchorOrigin:T.anchorOrigin,classes:b},C.map(function(w){return M.createElement(s1,{key:w.id,snack:w,classes:b,Component:m[w.variant],onClose:o.handleCloseSnack,onEnter:o.props.onEnter,onExit:o.props.onExit,onExited:zr([o.handleExitedSnack,o.props.onExited],w.id),onEntered:zr([o.handleEnteredSnack,o.props.onEntered],w.id)})}))});return M.createElement(dh.Provider,{value:i},l,c?rr.createPortal(p,c):p)},lh(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||_n.maxSnack}}]),t}(M.Component),f1=function(){return M.useContext(dh)};const p1=e=>{if(!e)return!0;const t=`notification_shown_${e}`;return localStorage.getItem(t)?!1:(localStorage.setItem(t,"true"),!0)},En=Eo(e=>({notifications:[],addNotificationData:t=>{t.singular&&!p1(t.singularId)||e(n=>({notifications:[...n.notifications,{...t,id:`${Date.now()*Math.random()}`}]}))},removeNotificationData:t=>{e(n=>({notifications:n.notifications.filter(r=>r.id!==`${t}`)}))}})),h1=e=>h.jsx(D.IconButton,{onClick:()=>{bh(e)},children:h.jsx(gf,{})}),Eh=()=>{const{notifications:e,removeNotificationData:t}=En(),{enqueueSnackbar:n}=f1();return M.useEffect(()=>{e.length>0&&e.forEach(r=>{n(r.message,{variant:r.type,action:h1}),t(Number(r.id))})},[e,n,t]),h.jsx(h.Fragment,{})},m1=()=>h.jsx(hp,{children:h.jsx(D.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"right",width:"100%"}})}),Sh=()=>{var o;const e=mp(),t=D.useTheme(),n=D.useMediaQuery(t.breakpoints.down("sm"));let r=(e==null?void 0:e.breadcrumbs)||[];return n&&(r=((o=e==null?void 0:e.breadcrumbs)==null?void 0:o.slice(-2))||[]),h.jsx(gp,{title:"",breadcrumbs:r,sx:{display:"flex",flexDirection:"row",justifyContent:"left",alignItems:"center","& .MuiBreadcrumbs-root":{...n&&{fontSize:"0.575rem","& .MuiBreadcrumbs-li":{fontSize:"inherit"},"& .MuiBreadcrumbs-separator":{fontSize:"inherit"},"& .MuiBreadcrumbs-li:last-child":{display:"flex",alignItems:"center",justifyContent:"center",fontSize:"inherit","& .MuiTypography-root":{fontSize:"inherit",fontWeight:"bold"}}}},"& .MuiStack-root":{width:"100%",display:"flex",flexDirection:"row",justifyContent:"space-between",margin:0,padding:0,alignItems:"center",flex:1}},slots:{toolbar:m1}})},g1="/static/images/tuni/face-purple-small.png",y1="/static/images/tuni/Tampere_University_logo.svg";function wh({mini:e}){return h.jsxs(rf,{direction:"column",alignItems:"center",spacing:1,children:[h.jsx("div",{style:{width:e?"48px":"160px",textAlign:"center",transition:"all 0.2s ease-in-out",overflow:"hidden"},children:h.jsxs(D.Typography,{variant:"caption",color:"primary",sx:{m:1,display:"block",whiteSpace:"nowrap"},children:["BETA ",e?"":"VERSION "+xT]})}),h.jsxs("div",{style:{height:"3rem",width:e?"48px":"160px",position:"relative",overflow:"hidden",transition:"width 0.2s ease-in-out",margin:"0 auto"},children:[h.jsx("img",{style:{position:"absolute",top:0,left:0,height:"3rem",width:"48px",objectFit:"contain",opacity:e?1:0,transition:"opacity 0.2s ease-in-out",pointerEvents:e?"auto":"none"},alt:"Tampere University",src:g1}),h.jsx("img",{style:{position:"absolute",top:0,left:0,height:"3rem",width:"160px",objectFit:"contain",opacity:e?0:1,transition:"opacity 0.2s ease-in-out",pointerEvents:e?"none":"auto"},alt:"Tampere University",src:y1})]}),h.jsx("div",{style:{width:e?"48px":"200px",textAlign:"center",transition:"all 0.2s ease-in-out",overflow:"hidden"},children:h.jsxs(D.Typography,{variant:"caption",sx:{display:"block",whiteSpace:"nowrap"},children:["© ",new Date().getFullYear(),e?"":" Made with 💜 EduML Team"]})})]})}const v1=()=>{const{user:e,setUser:t,testUsers:n,setTestUsers:r}=xn(),o=i=>{const a=n.filter(c=>c.id!==i.id);r([...a,e]),t(i)};return h.jsx(h.Fragment,{children:n.map(i=>h.jsxs(D.MenuItem,{component:"button",onClick:()=>o(i),sx:{justifyContent:"flex-start",width:"100%",columnGap:2},children:[h.jsx(D.ListItemIcon,{children:h.jsx(D.Avatar,{sx:{width:32,height:32,fontSize:"0.95rem",bgcolor:i.color},src:i.image??"",alt:(i==null?void 0:i.name)??"",children:i.name[0]})}),h.jsx(D.ListItemText,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%"},primary:i.name,secondary:i.email,primaryTypographyProps:{variant:"body2"},secondaryTypographyProps:{variant:"caption"}})]},i.id))})},b1=Ue(h.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),x1=()=>window.location.hostname==="localhost"?h.jsxs(h.Fragment,{children:[" ",h.jsxs(D.Paper,{elevation:3,sx:{margin:2,p:2,maxWidth:300,backgroundColor:"warning.light"},children:[h.jsxs(D.Typography,{variant:"h6",color:"warning.dark",sx:{fontWeight:"bold",display:"flex",alignItems:"center",fontSize:"1rem"},children:[h.jsx(b1,{}),"Development Tools"]}),h.jsx(D.Typography,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.6rem"},children:"Note: Switching between users only affects the view. All backend requests (GET, POST, PUT, DELETE) will still be made with the original authenticated user."})]}),h.jsx(D.MenuList,{id:"dev-menu",children:h.jsx(v1,{})})]}):null,Ch=()=>h.jsx(ic,{slots:{popoverContent:E1}}),E1=()=>h.jsxs(D.Stack,{direction:"column",children:[h.jsx(yi,{variant:"expanded"}),h.jsx(D.Divider,{}),h.jsx(x1,{}),h.jsx(D.Divider,{}),h.jsx(Qf,{children:h.jsx(Zf,{})})]});function Th(){return h.jsx(D.Stack,{direction:"row",alignItems:"center",spacing:2,children:h.jsx(lp,{})})}const S1=({children:e})=>{const[t,n]=M.useState(!1),{user:r,getUser:o,logout:i}=xn(),{currentCourse:a,getCourses:c,setCurrentCourseUrl:l,getCourseByUrl:u}=Nt(),{navigation:d}=So(),f=nh(),[m,b]=M.useState(null),[g,p]=M.useState(null),{addNotificationData:y}=En();M.useEffect(()=>{o(a==null?void 0:a.id)},[t,a==null?void 0:a.id,o]),M.useEffect(()=>{c()},[c]),M.useEffect(()=>{d&&(a!=null&&a.id)&&b(sh(Rc(d),(r==null?void 0:r.role)||""))},[d,r,a]),M.useEffect(()=>{const E=async S=>{const{url:O}=S.data;if(O&&(p(O),l(O),!(r!=null&&r.id)))try{await u(O)}catch(R){console.error("Failed to fetch course by URL:",R)}};return window.addEventListener("message",E),()=>window.removeEventListener("message",E)},[r,u,l]),M.useEffect(()=>{if(r!=null&&r.id){const E=localStorage.getItem("returnLocation");E&&(localStorage.removeItem("returnLocation"),window.location.href=E)}},[r,f]);const C=()=>{const E=(window==null?void 0:window.top)||window;n(!0),localStorage.setItem("returnLocation",g||window.location.href);const S=a==null?void 0:a.ltiLoginUrl;S?E.location.href=S:(a!=null&&a.id?y({type:"error",message:"Login is not available. Please contact the course staff."}):y({type:"error",message:"Failed to login. Please select a course first so that the login URL can be retrieved."}),n(!1))},T=async()=>{try{await i()}catch(E){console.error("Failed to logout:",E),y({type:"error",message:"Failed to logout. Please try again."})}},w={user:(r==null?void 0:r.id)&&r||void 0};return h.jsx(xh,{maxSnack:6,autoHideDuration:1e4,children:h.jsx(jp,{branding:{logo:h.jsx(rh,{}),title:""},navigation:a&&m||[],theme:oh,router:f,session:w,authentication:{signIn:C,signOut:T},children:h.jsxs(lc,{maxWidth:!0,slots:{toolbarAccount:Ch,toolbarActions:Th,sidebarFooter:wh},children:[h.jsx(Sh,{}),e,h.jsx(Eh,{})]})})})},w1=({children:e})=>{const[t,n]=M.useState(!1),{user:r,getUser:o,logout:i}=xn(),{currentCourse:a,getCourses:c,setCurrentCourseUrl:l,getCourseByUrl:u}=Nt(),{navigation:d}=So(),f=nh(),[m,b]=M.useState(null),[g,p]=M.useState(null),{addNotificationData:y}=En();M.useEffect(()=>{o(a==null?void 0:a.id)},[t,a==null?void 0:a.id,o]),M.useEffect(()=>{c()},[c]),M.useEffect(()=>{d&&(a!=null&&a.id)&&b(sh(Rc(d),(r==null?void 0:r.role)||""))},[d,r,a]),M.useEffect(()=>{const E=async S=>{const{url:O}=S.data;if(O&&(p(O),l(O),!(r!=null&&r.id)))try{await u(O)}catch(R){console.error("Failed to fetch course by URL:",R)}};return window.addEventListener("message",E),()=>window.removeEventListener("message",E)},[r,u,l]),M.useEffect(()=>{if(r!=null&&r.id){const E=localStorage.getItem("returnLocation");E&&(localStorage.removeItem("returnLocation"),window.location.href=E)}},[r,f]);const C=()=>{const E=(window==null?void 0:window.top)||window;n(!0),localStorage.setItem("returnLocation",g||window.location.href);const S=a==null?void 0:a.ltiLoginUrl;S?E.location.href=S:(a!=null&&a.id?y({type:"error",message:"Login is not available. Please contact the course staff."}):y({type:"error",message:"Failed to login. Please select a course first so that the login URL can be retrieved."}),n(!1))},T=async()=>{try{await i()}catch(E){console.error("Failed to logout:",E),y({type:"error",message:"Failed to logout. Please try again."})}},w={user:(r==null?void 0:r.id)&&r||void 0};return h.jsx(xh,{maxSnack:6,autoHideDuration:1e4,children:h.jsx(jp,{branding:{logo:h.jsx(rh,{}),title:""},navigation:a&&m||[],theme:oh,router:f,session:w,authentication:{signIn:C,signOut:T},children:h.jsxs(lc,{maxWidth:!0,slots:{toolbarAccount:Ch,toolbarActions:Th,sidebarFooter:wh},children:[h.jsx(Sh,{}),e,h.jsx(Eh,{})]})})})},Nc=Eo(e=>({openDialog:null,setOpenDialog:t=>e({openDialog:t}),closeDialog:()=>e({openDialog:null})})),C1=({title:e})=>h.jsx(D.Typography,{variant:"h6",component:"div",gutterBottom:!0,children:e}),T1=({code:e})=>h.jsx(D.Typography,{color:"text.secondary",children:e}),O1=({instance:e})=>h.jsxs(D.Typography,{variant:"body2",color:"text.secondary",children:["Instance: ",e]}),R1=({date:e,isInactive:t})=>h.jsxs(D.Typography,{variant:"caption",color:t?"text.secondary":"primary.light",sx:{display:"block",mt:1,fontStyle:t?"italic":"normal",opacity:t?.8:1},children:["Last updated: ",new Date(e).toLocaleDateString()]}),hd=({course:e,isSelected:t,isInactive:n,onSelect:r,displayMode:o="course"})=>{const i=()=>h.jsxs(D.Stack,{spacing:1,children:[h.jsx(C1,{title:e.title}),o!=="instanceList"&&h.jsx(T1,{code:e.code}),(o==="instance"||o==="instanceList")&&h.jsx(O1,{instance:e.instance}),h.jsx(R1,{date:e.updatedAt,isInactive:n})]});return h.jsx(D.Card,{sx:{minWidth:200,cursor:"pointer",backgroundColor:t?"primary.light":"background.paper",opacity:n?.7:1,filter:n?"grayscale(30%)":"none","&:hover":{backgroundColor:"action.hover",opacity:1,filter:"none"},transition:"all 0.3s ease"},onClick:()=>r(e),children:h.jsx(D.CardContent,{children:i()})})},j1=()=>h.jsx(D.ListItem,{children:h.jsx(D.ListItemText,{primary:h.jsx(D.Typography,{variant:"h6",color:"primary",children:"No Courses Found"}),secondary:h.jsx(D.Typography,{variant:"body2",color:"text.secondary",children:"You must link a course to EduML to get started."})})}),Oh=e=>{const t=new Map;return e.forEach(n=>{const r=t.get(n.code)||[];t.set(n.code,[...r,n])}),Array.from(t.values()).map(n=>n.reduce((r,o)=>{const i=new Date(r.updatedAt);return new Date(o.updatedAt)>i?o:r}))},k1=30,Yo=e=>{const t=new Date(e.updatedAt),r=Math.abs(new Date().getTime()-t.getTime());return Math.ceil(r/(1e3*60*60*24))<=k1},P1=(e,t=!1)=>{if(e.length===0)return{active:[],inactive:[]};if(t)return e.reduce((a,c)=>(Yo(c)?a.active.push(c):a.inactive.push(c),a),{active:[],inactive:[]});if(e.every(a=>a.code===e[0].code))return e.reduce((a,c)=>(Yo(c)?a.active.push(c):a.inactive.push(c),a),{active:[],inactive:[]});const r=Oh(e),o=r.filter(a=>Yo(a)),i=r.filter(a=>!Yo(a));return{active:o,inactive:i}},Rh=({courses:e,selectedCourse:t,onSelectCourse:n,displayMode:r="course"})=>{const o=r==="instance"||r==="instanceList",{active:i,inactive:a}=P1(e,o);return e.length===0?h.jsx(j1,{}):h.jsxs(D.Box,{sx:{display:"flex",flexDirection:"column",gap:3},children:[h.jsx(D.List,{sx:{p:2,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",flexWrap:"wrap",gap:2},children:i.map(c=>h.jsx(hd,{course:c,isSelected:(t==null?void 0:t.id)===c.id,onSelect:n,displayMode:r},c.id))}),a.length>0&&h.jsxs(h.Fragment,{children:[h.jsx(D.Typography,{variant:"h6",color:"text.secondary",sx:{mt:2,px:2,alignSelf:"center"},children:"Inactive Courses"}),h.jsx(D.List,{sx:{p:2,display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignItems:"center",gap:2},children:a.map(c=>h.jsx(hd,{course:c,isSelected:(t==null?void 0:t.id)===c.id,onSelect:n,displayMode:r,isInactive:!0},c.id))})]})]})},Wr=({heading:e,subheading:t})=>h.jsxs(h.Fragment,{children:[h.jsx(D.Typography,{variant:"h1",sx:{textAlign:"center",mt:5,color:"text.secondary"},children:e}),t&&h.jsx(D.Typography,{variant:"h4",sx:{textAlign:"center",mt:2,color:"text.secondary"},children:t})]}),N1=({courses:e,navigationType:t="direct"})=>{const{currentCourse:n,setCurrentCourse:r}=Nt(),[o,i]=M.useState(!1),a=Pt();M.useEffect(()=>(i(!0),()=>i(!1)),[]);const c=u=>{r(u),a(t==="direct"?`${u.code}/${u.instance}`:`${u.code}`)},l=t==="instances"?Oh(e):e;return h.jsx(D.Fade,{in:o,timeout:500,children:h.jsxs(D.Box,{sx:{p:3,display:"flex",flexDirection:"column",justifyContent:"center",gap:2},children:[h.jsx(Wr,{heading:"Select a course to get started",subheading:"Choose a course to view its content"}),h.jsx(Rh,{courses:l,selectedCourse:n,onSelectCourse:c,displayMode:t==="direct"?"instance":"course"})]})})},A1=D.keyframes`
|
|
315
315
|
0% { transform: scale(0.95); opacity: 0.5; }
|
|
316
316
|
50% { transform: scale(1.05); opacity: 0.8; }
|
|
317
317
|
100% { transform: scale(0.95); opacity: 0.5; }
|
|
318
|
-
`,
|
|
318
|
+
`,I1=D.keyframes`
|
|
319
319
|
0% { content: ''; }
|
|
320
320
|
25% { content: '.'; }
|
|
321
321
|
50% { content: '..'; }
|
|
322
322
|
75% { content: '...'; }
|
|
323
323
|
100% { content: ''; }
|
|
324
|
-
`,
|
|
324
|
+
`,_1=D.keyframes`
|
|
325
325
|
from { opacity: 0; }
|
|
326
326
|
to { opacity: 1; }
|
|
327
|
-
`,kc=()=>g.jsxs(Y.Box,{"data-testid":"loading-screen",sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"100%",gap:3,backdropFilter:"blur(8px)",animation:`${C1} 0.5s ease-in`},children:[g.jsx(Y.Box,{sx:{position:"relative",animation:`${w1} 2s ease-in-out infinite`},children:g.jsx(Y.CircularProgress,{size:60,thickness:4,sx:{opacity:.8}})}),g.jsxs(Y.Typography,{variant:"h6",sx:{fontWeight:300,letterSpacing:1,display:"flex",alignItems:"center",gap:"2px"},children:["Loading",g.jsx(Y.Box,{sx:{display:"inline-block",width:"24px",position:"relative","&::after":{content:"''",left:0,animation:`${T1} 1.5s steps(4) infinite`}}})]})]}),O1=()=>{const{currentCourse:e,fetchState:t}=Ht();return g.jsxs(g.Fragment,{children:[g.jsx(S1,{}),!e&&t!=="loading"&&g.jsx(Y.Typography,{variant:"h1",sx:{textAlign:"center",mt:5,color:"text.secondary"},children:"Select a course to get started"}),t==="loading"&&g.jsx(kc,{})]})},Sh=({show:e,title:t,navigationItems:n,navItems:r,roleCheck:o})=>{const{user:i}=Bn(),a=r?r.filter(c=>{var l;return c.kind==="page"&&!!((l=c.metadata)!=null&&l.isRootTool)}).map(c=>{var u,d;const l=c.iconFC;return{path:`${c.segment}`,icon:l?g.jsx(l,{fontSize:"large"}):g.jsx(g.Fragment,{}),label:c.title,description:((u=c.metadata)==null?void 0:u.description)||"",forRoles:(d=c.metadata)==null?void 0:d.forRoles}}):n||[];return g.jsx(Y.Box,{sx:{p:3},"data-testid":"tool-selector",children:g.jsx(Y.Fade,{in:e,timeout:500,children:g.jsxs(Y.Box,{children:[g.jsx(Y.Typography,{variant:"h5",sx:{mb:4,color:"primary.main"},children:t}),g.jsx(Y.Box,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"stretch",justifyContent:"center",height:"fit-content",width:"100%",gap:4},children:a.map(c=>{var l;return!o||o&&((l=c.forRoles)!=null&&l.includes((i==null?void 0:i.role)||""))?g.jsx(R1,{item:c},c.path):null})})]})})})},R1=({item:e})=>{const t=Y.useTheme(),n=tn();return g.jsx(Y.Card,{"data-testid":"tool-card",sx:{height:"auto",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"stretch",transition:"all 0.2s ease-in-out",transform:"scale(1)",bgcolor:"background.paper","&:hover":{transform:"scale(1.02)",boxShadow:t.shadows[8],bgcolor:r=>r.palette.primary.main+"20",color:"primary.main"}},children:g.jsx(Y.CardActionArea,{sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"top"},onClick:()=>n(e.path),children:g.jsxs(Y.CardContent,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2,p:3,maxWidth:300,flex:1},children:[g.jsx(Y.Box,{sx:{color:"inherit"},children:e.icon}),g.jsx(Y.Typography,{variant:"h6",children:e.label}),g.jsx(Y.Typography,{variant:"body2",color:"text.secondary",align:"center",children:e.description})]})})})},k1=()=>{const{currentCourse:e,updateCurrentCourse:t}=Ht(),{addNotificationData:n}=Vn(),[r,o]=D.useState((e==null?void 0:e.ltiLoginUrl)||""),[i,a]=D.useState(!1),c=async l=>{if(l.preventDefault(),!e)return;const u=r.trim();if(!u){n({type:"error",message:"Please provide a valid URL"});return}a(!0);try{if((await t({...e,ltiLoginUrl:u})).ltiLoginUrl===u)n({type:"success",message:"LTI Login URL updated successfully."});else throw new Error("Failed to verify update")}catch(d){console.error("Failed to update LTI Login URL:",d),n({type:"error",message:"Failed to update LTI Login URL. Please try again."})}finally{a(!1)}};return g.jsxs(Y.Paper,{elevation:3,sx:{p:3,mt:4,mx:"auto",maxWidth:600,borderRadius:2,backgroundColor:"background.paper"},children:[g.jsx(Y.Typography,{variant:"h6",color:"primary",gutterBottom:!0,sx:{mb:2},children:"Update LTI Login URL"}),g.jsx(Y.Typography,{variant:"body2",color:"text.secondary",sx:{mb:3},children:"Please provide the LTI Login URL for this course. Students will be redirected to this URL when they need to authenticate."}),g.jsxs("form",{onSubmit:c,children:[g.jsx(Y.TextField,{label:"LTI Login URL",variant:"outlined",fullWidth:!0,required:!0,value:r,onChange:l=>o(l.target.value),sx:{mb:3,"& .MuiOutlinedInput-root":{"&:hover fieldset":{borderColor:"primary.main"}}},helperText:"The URL where students will be redirected for LTI authentication"}),g.jsx(Y.Box,{sx:{display:"flex",justifyContent:"flex-end"},children:g.jsx(Y.Button,{type:"submit",variant:"contained",color:"primary",disabled:i,sx:{px:4,py:1,textTransform:"none",fontWeight:500},children:i?"Updating...":"Update URL"})})]})]})},wh=()=>{const{courseSlug:e}=lc(),{currentCourse:t}=Ht(),{addNotificationData:n}=Vn(),{user:r}=Bn(),{sections:o}=xo(),[i,a]=D.useState(!0);return D.useEffect(()=>{a(!1);const c=setTimeout(()=>a(!0),300);return()=>clearTimeout(c)},[t]),D.useEffect(()=>{t&&(r==null?void 0:r.role)==="teacher"&&!t.ltiLoginUrl&&n({type:"info",message:"The LTI Login URL is missing for this course."})},[t,r,n]),e?(console.log("sections",o),o[e]?g.jsxs(g.Fragment,{children:[(r==null?void 0:r.role)==="teacher"&&!(t!=null&&t.ltiLoginUrl)&&g.jsx(k1,{}),g.jsx(Sh,{show:i,title:t!=null&&t.title?`${t.title} - Select a Tool`:"Select a Tool",navItems:o[e].children,roleCheck:!0})]}):g.jsx("h1",{children:"No sections found!"})):g.jsx("h1",{children:"No course selected!"})},P1=Ge(g.jsx("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 9h12v2H6zm8 5H6v-2h8zm4-6H6V6h12z"}),"Chat"),N1=Ge(g.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard"),j1=Ge(g.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}),"Assessment"),A1=Ge([g.jsx("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM19 14.9 14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1z"},"0"),g.jsx("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"},"1")],"ReportGmailerrorred"),I1=Ge(g.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People"),_1=Ge(g.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"),$1=Ge(g.jsx("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy"),M1={edit:g.jsx(_1,{}),chat:g.jsx(P1,{}),help:g.jsx(gc,{}),stats:g.jsx(j1,{}),reports:g.jsx(A1,{}),contact:g.jsx(yc,{}),logout:g.jsx(Gf,{}),instructions:g.jsx(N1,{}),chatbot:g.jsx($1,{}),"es-manager":g.jsx(I1,{})},D1=({title:e,dialogId:t,callOnOpen:n,showTitle:r=!0})=>{const{setOpenDialog:o}=Rc(),i=a=>{a.stopPropagation(),a.preventDefault(),o(t),n&&n(a)};return g.jsxs(Y.MenuItem,{component:Y.Button,onClick:i,style:{marginLeft:"auto",zIndex:1e3,width:"100%",display:"flex",justifyContent:"left",columnGap:2},children:[M1[e.toLowerCase()]," ",r&&e]})},Th=({children:e,open:t,onClose:n,...r})=>{const o=window.innerWidth<600;return g.jsx(Y.Dialog,{sx:{"& .MuiDialog-paper":{borderRadius:o?"0px !important":"14px"}},open:t,onClose:n,fullScreen:o,...r,children:e})},L1=({onSubmit:e,title:t,children:n,submitText:r="Submit",disableSubmit:o=!1,...i})=>{const{closeDialog:a}=Rc();return g.jsxs(Th,{open:!0,onClose:a,...i,children:[g.jsx(Y.DialogTitle,{children:t}),g.jsx(Y.DialogContent,{children:g.jsxs("form",{onSubmit:e,children:[n,g.jsxs(Y.DialogActions,{children:[g.jsx(Y.Button,{onClick:a,children:"Cancel"}),g.jsx(Y.Button,{type:"submit",disabled:o,children:r})]})]})})]})},B1=({Icon:e,size:t,title:n,sx:r})=>g.jsx(Y.Tooltip,{title:t+" "+n,children:g.jsx(Y.Badge,{sx:{fontSize:"0.5rem",...r,"& .MuiBadge-badge":{top:"0.3rem",padding:0,margin:0,height:"15px",minWidth:"15px"}},badgeContent:t,color:"error",children:g.jsx(e,{})})});class F1 extends D.Component{constructor(){super(...arguments);zn(this,"state",{hasError:!1})}static getDerivedStateFromError(n){return console.log(n),{hasError:!0}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){return this.state.hasError?g.jsxs(Y.Box,{sx:{p:3,textAlign:"center"},children:[g.jsx(Y.Typography,{variant:"h6",children:"Something went wrong"}),g.jsx(Y.Button,{variant:"contained",onClick:()=>this.setState({hasError:!1}),sx:{mt:2},children:"Try again"})]}):this.props.children}}const V1=({states:e,children:t})=>{const n=e.filter(r=>r===null||Object.values(r).includes(null)||Object.values(r).includes(void 0));return n.length>0?g.jsx("div",{children:g.jsxs("p",{children:["Warning: The following states are null:"," ",n.map((r,o)=>g.jsxs("span",{children:[Object.keys(r)[0]," "]},o))]})}):g.jsx(g.Fragment,{children:t})},U1=()=>{const{courseSlug:e}=lc(),{fetchState:t,courses:n,setCurrentCourse:r}=Ht(),{addNotificationData:o}=Vn(),i=tn();return D.useEffect(()=>{const a=n.find(c=>vc(c.title)===e);a?r(a):t!=="loading"&&(o({type:"error",message:"Course not found"}),i("/"))},[e,r,n,t,o,i]),t==="loading"?g.jsx(kc,{}):g.jsx(Ep,{})},z1=({microservices:e})=>{const{currentCourse:t}=Ht(),{user:n}=Bn(),{updateSection:r}=xo();return D.useEffect(()=>{t!=null&&t.id&&e.forEach(o=>{var i;(i=o.fetchHooks)==null||i.forEach(a=>a(t.id))})},[t,e]),D.useEffect(()=>{if(!(t!=null&&t.id)||!n)return;const o=n.role==="teacher";e.forEach(i=>{if(i.buildNavigation){const a=i.buildNavigation(t.id,o);r(t,i.path,a)}})},[t,n,e,r]),g.jsx(Sp,{children:g.jsxs(Ur,{path:":courseSlug",element:g.jsx(U1,{}),children:[g.jsx(Ur,{Component:wh,index:!0}),e.map(o=>g.jsx(Ur,{path:`${o.path}/*`,element:g.jsx(o.Component,{})},o.path))]})})};exports.BrowserRouter=pw;exports.CourseTools=wh;exports.DialogOpener=D1;exports.EduMLProvider=y1;exports.ErrorBoundary=F1;exports.ExtendedDialog=Th;exports.FormDialog=L1;exports.HashRouter=hw;exports.Home=O1;exports.IconWithBadge=B1;exports.LMSProvider=v1;exports.Link=mc;exports.LoadingScreen=kc;exports.MemoryRouter=XS;exports.MicroserviceRoutes=z1;exports.Navigate=JS;exports.NullStateWarning=V1;exports.Outlet=Ep;exports.Route=Ur;exports.Routes=Sp;exports.ToolSelector=Sh;exports.axios=bn;exports.baseUrl=Jp;exports.convertObjectKeysToCamelCase=Dn;exports.convertObjectKeysToUnderscore=Ei;exports.filterNavigationByRole=Fw;exports.useCourseStore=Ht;exports.useDialogStore=Rc;exports.useLocation=It;exports.useNavigate=tn;exports.useNavigationStore=xo;exports.useNotificationStore=Vn;exports.useParams=lc;exports.useUserStore=Bn;
|
|
327
|
+
`,ts=()=>h.jsxs(D.Box,{"data-testid":"loading-screen",sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:"100%",gap:3,backdropFilter:"blur(8px)",animation:`${_1} 0.5s ease-in`},children:[h.jsx(D.Box,{sx:{position:"relative",animation:`${A1} 2s ease-in-out infinite`},children:h.jsx(D.CircularProgress,{size:60,thickness:4,sx:{opacity:.8}})}),h.jsxs(D.Typography,{variant:"h6",sx:{fontWeight:300,letterSpacing:1,display:"flex",alignItems:"center",gap:"2px"},children:["Loading",h.jsx(D.Box,{sx:{display:"inline-block",width:"24px",position:"relative","&::after":{content:"''",left:0,animation:`${I1} 1.5s steps(4) infinite`}}})]})]}),M1=Ue(h.jsx("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"}),"FormatListBulleted"),$1=Ue(h.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"}),"Launch"),D1=({value:e,onChange:t})=>{const n=(r,o)=>{o!==null&&t(o)};return h.jsxs(D.ToggleButtonGroup,{value:e,exclusive:!0,onChange:n,"aria-label":"navigation type",size:"small",sx:{mb:2},children:[h.jsx(D.Tooltip,{title:"All Course Instances",children:h.jsx(D.ToggleButton,{value:"direct","aria-label":"course instances view",children:h.jsx($1,{})})}),h.jsx(D.Tooltip,{title:"All Courses",children:h.jsx(D.ToggleButton,{value:"instances","aria-label":"courses view",children:h.jsx(M1,{})})})]})},L1=()=>{const{courses:e,fetchState:t}=Nt(),[n,r]=M.useState("direct");return h.jsxs(D.Box,{sx:{p:2},children:[h.jsx(D.Box,{sx:{display:"flex",justifyContent:"flex-end"},children:h.jsx(D1,{value:n,onChange:r})}),h.jsx(N1,{courses:e,navigationType:n}),t==="loading"&&h.jsx(ts,{})]})},B1=()=>{const{currentCourse:e,updateCurrentCourse:t}=Nt(),{addNotificationData:n}=En(),[r,o]=M.useState((e==null?void 0:e.ltiLoginUrl)||""),[i,a]=M.useState(!1),c=async l=>{if(l.preventDefault(),!e)return;const u=r.trim();if(!u){n({type:"error",message:"Please provide a valid URL"});return}a(!0);try{if((await t({...e,ltiLoginUrl:u})).ltiLoginUrl===u)n({type:"success",message:"LTI Login URL updated successfully."});else throw new Error("Failed to verify update")}catch(d){console.error("Failed to update LTI Login URL:",d),n({type:"error",message:"Failed to update LTI Login URL. Please try again."})}finally{a(!1)}};return h.jsxs(D.Paper,{elevation:3,sx:{p:3,mt:4,mx:"auto",maxWidth:600,borderRadius:2,backgroundColor:"background.paper"},children:[h.jsx(D.Typography,{variant:"h6",color:"primary",gutterBottom:!0,sx:{mb:2},children:"Update LTI Login URL"}),h.jsx(D.Typography,{variant:"body2",color:"text.secondary",sx:{mb:3},children:"Please provide the LTI Login URL for this course. Students will be redirected to this URL when they need to authenticate."}),h.jsxs("form",{onSubmit:c,children:[h.jsx(D.TextField,{label:"LTI Login URL",variant:"outlined",fullWidth:!0,required:!0,value:r,onChange:l=>o(l.target.value),sx:{mb:3,"& .MuiOutlinedInput-root":{"&:hover fieldset":{borderColor:"primary.main"}}},helperText:"The URL where students will be redirected for LTI authentication"}),h.jsx(D.Box,{sx:{display:"flex",justifyContent:"flex-end"},children:h.jsx(D.Button,{type:"submit",variant:"contained",color:"primary",disabled:i,sx:{px:4,py:1,textTransform:"none",fontWeight:500},children:i?"Updating...":"Update URL"})})]})]})},F1=({item:e,onToggleService:t,isUsed:n})=>{var c;const r=D.useTheme(),o=Pt(),i=e.iconFC,a=i?h.jsx(i,{fontSize:"large"}):null;return h.jsxs(D.Card,{"data-testid":"tool-card",sx:{position:"relative",height:"auto",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"stretch",transition:"all 0.2s ease-in-out",transform:"scale(1)",bgcolor:"background.paper","&:hover":{transform:"scale(1.02)",boxShadow:r.shadows[8],bgcolor:l=>l.palette.primary.main+"20",color:"primary.main"},"&:hover .toggle-button":{display:"inline-flex"}},children:[h.jsx(D.CardActionArea,{sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"top"},onClick:()=>o(e.segment),children:h.jsxs(D.CardContent,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2,p:3,maxWidth:300,flex:1},children:[h.jsx(D.Box,{sx:{color:"inherit"},children:a}),h.jsx(D.Typography,{variant:"h6",children:e.title}),h.jsx(D.Typography,{variant:"body2",color:"text.secondary",align:"center",children:(c=e.metadata)==null?void 0:c.description})]})}),t&&h.jsx(D.Tooltip,{title:n?"Remove":"Add",arrow:!0,children:h.jsx(D.Button,{className:"toggle-button",sx:{display:"none",position:"absolute",top:8,right:8,minWidth:32,padding:0,fontSize:"1.25rem"},onClick:()=>t(e.segment),children:n?"-":"+"})})]})},Bs=({show:e,onToggleService:t,navItems:n,roleCheck:r,isUsed:o})=>{const{user:i}=xn();return h.jsx(D.Box,{sx:{p:3},"data-testid":"tool-selector",children:h.jsx(D.Fade,{in:e,timeout:500,children:h.jsx(D.Box,{children:h.jsxs(D.Box,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"stretch",justifyContent:"center",height:"fit-content",width:"100%",gap:4},children:[n.length===0&&h.jsxs(D.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",width:"100%",height:"100%",color:"text.secondary"},children:[h.jsxs(D.Typography,{variant:"h5",sx:{mb:4},children:["No tools available ",r?"for your role":""]}),r&&(i==null?void 0:i.role)==="student"&&h.jsx(D.Typography,{variant:"body1",sx:{mb:4},children:"Please let your teacher know if you need access to any tools."})]}),n.map(a=>{var c,l;return!r||r&&((l=(c=a.metadata)==null?void 0:c.forRoles)!=null&&l.includes((i==null?void 0:i.role)||""))?h.jsx(F1,{item:a,onToggleService:t,isUsed:o},a.segment):null})]})})})})},jh=({microservices:e})=>{const{instance:t,code:n}=bo(),{updateCurrentCourse:r,currentCourse:o}=Nt(),{addNotificationData:i}=En(),{user:a}=xn(),[c,l]=M.useState(!0),[u,d]=M.useState(e.filter(g=>{var p;return(p=o==null?void 0:o.services)==null?void 0:p.includes(g.segment)})),[f,m]=M.useState(e.filter(g=>{var p;return!((p=o==null?void 0:o.services)!=null&&p.includes(g.segment))}));M.useEffect(()=>{n&&t&&(d(e.filter(g=>{var p;return(p=o==null?void 0:o.services)==null?void 0:p.includes(g.segment)})),m(e.filter(g=>{var p;return!((p=o==null?void 0:o.services)!=null&&p.includes(g.segment))})))},[n,t,e,o]),M.useEffect(()=>{l(!1);const g=setTimeout(()=>l(!0),300);return()=>clearTimeout(g)},[o]),M.useEffect(()=>{o&&(a==null?void 0:a.role)==="teacher"&&!o.ltiLoginUrl&&i({type:"info",message:"The LTI Login URL is missing for this course."})},[o,a,i]);const b=async(g,p)=>{var T;if(!o)return;const y=p?((T=o.services)==null?void 0:T.filter(w=>w!==g))||[]:[...o.services||[],g],C={...o,services:y};await r(C)};return n?h.jsxs(h.Fragment,{children:[(a==null?void 0:a.role)==="teacher"&&!(o!=null&&o.ltiLoginUrl)&&h.jsx(B1,{}),(a==null?void 0:a.role)==="teacher"&&h.jsxs(h.Fragment,{children:[h.jsx(Wr,{heading:"Enabled Tools",subheading:"These tools are currently enabled for this course. Click on a tool to visit its page."}),h.jsx(Bs,{show:c,title:"Enabled Tools",navItems:u,roleCheck:!0,onToggleService:g=>b(g,!0),isUsed:!0}),h.jsx(Wr,{heading:"Available Tools",subheading:"These tools are available for this course. Click on a tool to enable it."}),h.jsx(Bs,{show:c,title:"Available Tools",navItems:f,roleCheck:!0,onToggleService:g=>b(g,!1),isUsed:!1})]}),!(a!=null&&a.role)||(a==null?void 0:a.role)!=="teacher"&&h.jsxs(h.Fragment,{children:[h.jsx(Wr,{heading:"Course Tools",subheading:"These tools are available for this course. Click on a tool to visit its page."}),h.jsx(Bs,{show:c,title:o!=null&&o.title?`${o.title} - Tools`:"Course Tools",navItems:u,roleCheck:!0})]})]}):h.jsx("h1",{children:"No course selected!"})},V1=({show:e,title:t,navigationItems:n,navItems:r,roleCheck:o})=>{const{user:i}=xn(),a=r?r.filter(c=>{var l;return c.kind==="page"&&!!((l=c.metadata)!=null&&l.isRootTool)}).map(c=>{var u,d;const l=c.iconFC;return{path:`${c.segment}`,icon:l?h.jsx(l,{fontSize:"large"}):h.jsx(h.Fragment,{}),label:c.title,description:((u=c.metadata)==null?void 0:u.description)||"",forRoles:(d=c.metadata)==null?void 0:d.forRoles}}):n||[];return h.jsx(D.Box,{sx:{p:3},"data-testid":"tool-selector",children:h.jsx(D.Fade,{in:e,timeout:500,children:h.jsxs(D.Box,{children:[h.jsx(D.Typography,{variant:"h5",sx:{mb:4,color:"primary.main"},children:t}),h.jsx(D.Box,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"stretch",justifyContent:"center",height:"fit-content",width:"100%",gap:4},children:a.map(c=>{var l;return!o||o&&((l=c.forRoles)!=null&&l.includes((i==null?void 0:i.role)||""))?h.jsx(U1,{item:c},c.path):null})})]})})})},U1=({item:e})=>{const t=D.useTheme(),n=Pt();return h.jsx(D.Card,{"data-testid":"tool-card",sx:{height:"auto",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"stretch",transition:"all 0.2s ease-in-out",transform:"scale(1)",bgcolor:"background.paper","&:hover":{transform:"scale(1.02)",boxShadow:t.shadows[8],bgcolor:r=>r.palette.primary.main+"20",color:"primary.main"}},children:h.jsx(D.CardActionArea,{sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"top"},onClick:()=>n(e.path),children:h.jsxs(D.CardContent,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2,p:3,maxWidth:300,flex:1},children:[h.jsx(D.Box,{sx:{color:"inherit"},children:e.icon}),h.jsx(D.Typography,{variant:"h6",children:e.label}),h.jsx(D.Typography,{variant:"body2",color:"text.secondary",align:"center",children:e.description})]})})})},z1=Ue(h.jsx("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 9h12v2H6zm8 5H6v-2h8zm4-6H6V6h12z"}),"Chat"),W1=Ue(h.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard"),H1=Ue(h.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"}),"Assessment"),q1=Ue([h.jsx("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM19 14.9 14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1z"},"0"),h.jsx("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"},"1")],"ReportGmailerrorred"),G1=Ue(h.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People"),Y1=Ue(h.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"),K1=Ue(h.jsx("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3M7.5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S9.83 13 9 13s-1.5-.67-1.5-1.5M16 17H8v-2h8zm-1-4c-.83 0-1.5-.67-1.5-1.5S14.17 10 15 10s1.5.67 1.5 1.5S15.83 13 15 13"}),"SmartToy"),X1={edit:h.jsx(Y1,{}),chat:h.jsx(z1,{}),help:h.jsx(Ec,{}),stats:h.jsx(H1,{}),reports:h.jsx(q1,{}),contact:h.jsx(Sc,{}),logout:h.jsx(Jf,{}),instructions:h.jsx(W1,{}),chatbot:h.jsx(K1,{}),"es-manager":h.jsx(G1,{})},J1=({title:e,dialogId:t,callOnOpen:n,showTitle:r=!0})=>{const{setOpenDialog:o}=Nc(),i=a=>{a.stopPropagation(),a.preventDefault(),o(t),n&&n(a)};return h.jsxs(D.MenuItem,{component:D.Button,onClick:i,style:{marginLeft:"auto",zIndex:1e3,width:"100%",display:"flex",justifyContent:"left",columnGap:2},children:[X1[e.toLowerCase()]," ",r&&e]})},kh=({children:e,open:t,onClose:n,...r})=>{const o=window.innerWidth<600;return h.jsx(D.Dialog,{sx:{"& .MuiDialog-paper":{borderRadius:o?"0px !important":"14px"}},open:t,onClose:n,fullScreen:o,...r,children:e})},Z1=({onSubmit:e,title:t,children:n,submitText:r="Submit",disableSubmit:o=!1,...i})=>{const{closeDialog:a}=Nc();return h.jsxs(kh,{open:!0,onClose:a,...i,children:[h.jsx(D.DialogTitle,{children:t}),h.jsx(D.DialogContent,{children:h.jsxs("form",{onSubmit:e,children:[n,h.jsxs(D.DialogActions,{children:[h.jsx(D.Button,{onClick:a,children:"Cancel"}),h.jsx(D.Button,{type:"submit",disabled:o,children:r})]})]})})]})},Q1=({Icon:e,size:t,title:n,sx:r})=>h.jsx(D.Tooltip,{title:t+" "+n,children:h.jsx(D.Badge,{sx:{fontSize:"0.5rem",...r,"& .MuiBadge-badge":{top:"0.3rem",padding:0,margin:0,height:"15px",minWidth:"15px"}},badgeContent:t,color:"error",children:h.jsx(e,{})})});class eO extends M.Component{constructor(){super(...arguments);Wn(this,"state",{hasError:!1})}static getDerivedStateFromError(n){return console.log(n),{hasError:!0}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){return this.state.hasError?h.jsxs(D.Box,{sx:{p:3,textAlign:"center"},children:[h.jsx(D.Typography,{variant:"h6",children:"Something went wrong"}),h.jsx(D.Button,{variant:"contained",onClick:()=>this.setState({hasError:!1}),sx:{mt:2},children:"Try again"})]}):this.props.children}}const tO=({states:e,children:t})=>{const n=e.filter(r=>r===null||Object.values(r).includes(null)||Object.values(r).includes(void 0));return n.length>0?h.jsx("div",{children:h.jsxs("p",{children:["Warning: The following states are null:"," ",n.map((r,o)=>h.jsxs("span",{children:[Object.keys(r)[0]," "]},o))]})}):h.jsx(h.Fragment,{children:t})},nO=()=>{const{instance:e,code:t}=bo(),{fetchState:n,courses:r,setCurrentCourse:o}=Nt(),{addNotificationData:i}=En(),a=Pt();return M.useEffect(()=>{const c=r.find(l=>l.instance===e);c?o(c):n!=="loading"&&(i({type:"error",message:"Course Instance not found"}),a("/"+t))},[e,o,r,n,i,a]),n==="loading"?h.jsx(ts,{}):h.jsx(yc,{})},rO=()=>{const{code:e}=bo(),{courses:t,setCurrentCourse:n}=Nt(),r=Pt(),o=t.filter(i=>i.code===e);return h.jsxs(D.Box,{sx:{p:3,display:"flex",flexDirection:"column",gap:2},children:[h.jsx(Wr,{heading:"Course Instances",subheading:"Below are all the instances of the selected course. Select an instance to view its content."}),h.jsx(Rh,{courses:o,onSelectCourse:i=>{n(i),r(`${i.instance}`)},displayMode:"instanceList"})]})},oO=()=>{const{code:e}=bo(),{fetchState:t,courses:n,setCurrentCourseCode:r}=Nt(),{addNotificationData:o}=En(),i=Pt(),{addSection:a}=So();return M.useEffect(()=>{if(!e)return;console.log("CourseCodeLoader: Setting course code:",e),r(e);const c=n.filter(l=>l.code===e);if(c.length>0){const l=c[0];a({segment:l.code,title:l.code.toUpperCase(),description:l.description,Icon:Pp,instances:c.map(u=>u.instance)})}else t!=="loading"&&(o({type:"error",message:"Course not found"}),i("/"))},[e,n,t,o,i,r]),t==="loading"?h.jsx(ts,{}):h.jsx(yc,{})},iO=({microservices:e})=>{const{currentCourse:t,currentCourseCode:n,courses:r}=Nt(),{user:o}=xn(),{updateCourseInstanceSection:i}=So(),[a,c]=M.useState([]);return M.useEffect(()=>{t!=null&&t.id&&e.forEach(l=>{var u;(u=l.fetchHooks)==null||u.forEach(d=>d(t.id))})},[t,e]),M.useEffect(()=>{if(t!=null&&t.id&&o){const l=o.role==="teacher",u=[];e.forEach(d=>{var f;if(d.buildNavigation&&typeof d.buildNavigation=="function"){const m=d.buildNavigation(t.id,l);u.push(...m),(f=t.services)!=null&&f.includes(d.path)&&i(t,m)}}),c(u)}else if(n&&o){console.log("Building navigation for course code:",n);const l=r.filter(u=>u.code===n);if(console.log("Matching courses:",l),l.length>0){const u=o.role==="teacher",d=[];e.forEach(f=>{f.buildNavigation&&typeof f.buildNavigation=="function"&&l.forEach(m=>{var b;if((b=m.services)!=null&&b.includes(f.path)){const g=f.buildNavigation(m.id,u);d.push(...g),i(m,g)}})}),c(d)}}},[t,n,r,o,e,i]),h.jsx(Tp,{children:h.jsxs(On,{path:":code",element:h.jsx(oO,{}),children:[h.jsx(On,{index:!0,element:h.jsx(rO,{})}),h.jsxs(On,{path:":instance",element:h.jsx(nO,{}),children:[h.jsx(On,{index:!0,element:h.jsx(jh,{microservices:a})}),e.map(l=>h.jsx(On,{path:`${l.path}/*`,element:h.jsx(l.Component,{})},l.path))]})]})})},sO=({segment:e,title:t,description:n,icon:r,forRoles:o,children:i})=>(console.log("Building EduTest Navigation"),[{kind:"page",segment:e,title:t,iconFC:r,metadata:{description:n,forRoles:o,isRootTool:!0},children:i}]);exports.BrowserRouter=vw;exports.CourseTools=jh;exports.DialogOpener=J1;exports.EduMLProvider=S1;exports.ErrorBoundary=eO;exports.ExtendedDialog=kh;exports.FormDialog=Z1;exports.HashRouter=bw;exports.Home=L1;exports.IconWithBadge=Q1;exports.LMSProvider=w1;exports.Link=xc;exports.LoadingScreen=ts;exports.MemoryRouter=tw;exports.MicroserviceRoutes=iO;exports.Navigate=nw;exports.NullStateWarning=tO;exports.Outlet=yc;exports.Route=On;exports.Routes=Tp;exports.ToolSelector=V1;exports.axios=bn;exports.baseUrl=th;exports.buildMicroServiceNavigation=sO;exports.convertObjectKeysToCamelCase=Fn;exports.convertObjectKeysToUnderscore=Ci;exports.filterNavigationByRole=Ww;exports.useCourseStore=Nt;exports.useDialogStore=Nc;exports.useLocation=Mt;exports.useNavigate=Pt;exports.useNavigationStore=So;exports.useNotificationStore=En;exports.useParams=bo;exports.useUserStore=xn;
|