@mui-toolpad-extended-tuni/calendar 3.0.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 +237 -0
- package/dist/Calendar.d.ts +3 -0
- package/dist/CalendarBody.d.ts +16 -0
- package/dist/CalendarEventAggregator.d.ts +9 -0
- package/dist/CalendarEventItem.d.ts +9 -0
- package/dist/CalendarHeader.d.ts +12 -0
- package/dist/CalendarManager.d.ts +3 -0
- package/dist/CalendarMicroservice.d.ts +32 -0
- package/dist/DatePickerPopover.d.ts +8 -0
- package/dist/components/EventDetails.d.ts +3 -0
- package/dist/components/EventMenu.d.ts +3 -0
- package/dist/components/EventViews.d.ts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/index.cjs +249 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +15361 -0
- package/dist/store/useCalendarStore.d.ts +44 -0
- package/dist/types.d.ts +49 -0
- package/package.json +56 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
"use strict";var Gs=Object.defineProperty;var qs=(e,t,n)=>t in e?Gs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wt=(e,t,n)=>qs(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const oe=require("react"),Y=require("@mui/material"),Ks=require("@emotion/styled"),ct=require("@emotion/react"),Pt=require("mui-toolpad-extended-tuni"),dn=require("react-dom"),Xs=require("@fullcalendar/react"),Js=require("@fullcalendar/daygrid"),Qs=require("@fullcalendar/timegrid"),Zs=require("@fullcalendar/interaction");function ei(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 x=ei(oe);function wa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fn={exports:{}},Ut={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var so;function ti(){if(so)return Ut;so=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var l in o)l!=="key"&&(a[l]=o[l])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:a}}return Ut.Fragment=t,Ut.jsx=n,Ut.jsxs=n,Ut}var Ht={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var io;function ni(){return io||(io=1,process.env.NODE_ENV!=="production"&&function(){function e(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===_?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case v:return"Fragment";case T:return"Profiler";case S:return"StrictMode";case D:return"Suspense";case M:return"SuspenseList";case U:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case f:return"Portal";case w:return C.displayName||"Context";case k:return(C._context.displayName||"Context")+".Consumer";case O:var j=C.render;return C=C.displayName,C||(C=j.displayName||j.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case V:return j=C.displayName||null,j!==null?j:e(C.type)||"Memo";case B:j=C._payload,C=C._init;try{return e(C(j))}catch{}}return null}function t(C){return""+C}function n(C){try{t(C);var j=!1}catch{j=!0}if(j){j=console;var K=j.error,G=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return K.call(j,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",G),t(C)}}function r(C){if(C===v)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===B)return"<...>";try{var j=e(C);return j?"<"+j+">":"<...>"}catch{return"<...>"}}function o(){var C=h.A;return C===null?null:C.getOwner()}function a(){return Error("react-stack-top-frame")}function i(C){if(P.call(C,"key")){var j=Object.getOwnPropertyDescriptor(C,"key").get;if(j&&j.isReactWarning)return!1}return C.key!==void 0}function l(C,j){function K(){$||($=!0,console.error("%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://react.dev/link/special-props)",j))}K.isReactWarning=!0,Object.defineProperty(C,"key",{get:K,configurable:!0})}function c(){var C=e(this.type);return L[C]||(L[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function u(C,j,K,G,Q,F){var H=K.ref;return C={$$typeof:g,type:C,key:j,props:K,_owner:G},(H!==void 0?H:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:c}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:F}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function d(C,j,K,G,Q,F){var H=j.children;if(H!==void 0)if(G)if(E(H)){for(G=0;G<H.length;G++)p(H[G]);Object.freeze&&Object.freeze(H)}else console.error("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 p(H);if(P.call(j,"key")){H=e(C);var q=Object.keys(j).filter(function(X){return X!=="key"});G=0<q.length?"{key: someKey, "+q.join(": ..., ")+": ...}":"{key: someKey}",N[H+G]||(q=0<q.length?"{"+q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,G,H,q,H),N[H+G]=!0)}if(H=null,K!==void 0&&(n(K),H=""+K),i(j)&&(n(j.key),H=""+j.key),"key"in j){K={};for(var z in j)z!=="key"&&(K[z]=j[z])}else K=j;return H&&l(K,typeof C=="function"?C.displayName||C.name||"Unknown":C),u(C,H,K,o(),Q,F)}function p(C){m(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===B&&(C._payload.status==="fulfilled"?m(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function m(C){return typeof C=="object"&&C!==null&&C.$$typeof===g}var y=oe,g=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),w=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),_=Symbol.for("react.client.reference"),h=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=Object.prototype.hasOwnProperty,E=Array.isArray,R=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(C){return C()}};var $,L={},J=y.react_stack_bottom_frame.bind(y,a)(),ee=R(r(a)),N={};Ht.Fragment=v,Ht.jsx=function(C,j,K){var G=1e4>h.recentlyCreatedOwnerStacks++;return d(C,j,K,!1,G?Error("react-stack-top-frame"):J,G?R(r(C)):ee)},Ht.jsxs=function(C,j,K){var G=1e4>h.recentlyCreatedOwnerStacks++;return d(C,j,K,!0,G?Error("react-stack-top-frame"):J,G?R(r(C)):ee)}}()),Ht}var lo;function ri(){return lo||(lo=1,process.env.NODE_ENV==="production"?fn.exports=ti():fn.exports=ni()),fn.exports}var b=ri();const co=e=>e,oi=()=>{let e=co;return{configure(t){e=t},generate(t){return e(t)},reset(){e=co}}},ai=oi();function nn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function re(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":nn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var pn={exports:{}},hn={exports:{}},he={};/** @license React v16.13.1
|
|
23
|
+
* react-is.production.min.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/var uo;function si(){if(uo)return he;uo=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,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function k(O){if(typeof O=="object"&&O!==null){var D=O.$$typeof;switch(D){case t:switch(O=O.type,O){case c:case u:case r:case a:case o:case p:return O;default:switch(O=O&&O.$$typeof,O){case l:case d:case g:case y:case i:return O;default:return D}}case n:return D}}}function w(O){return k(O)===u}return he.AsyncMode=c,he.ConcurrentMode=u,he.ContextConsumer=l,he.ContextProvider=i,he.Element=t,he.ForwardRef=d,he.Fragment=r,he.Lazy=g,he.Memo=y,he.Portal=n,he.Profiler=a,he.StrictMode=o,he.Suspense=p,he.isAsyncMode=function(O){return w(O)||k(O)===c},he.isConcurrentMode=w,he.isContextConsumer=function(O){return k(O)===l},he.isContextProvider=function(O){return k(O)===i},he.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},he.isForwardRef=function(O){return k(O)===d},he.isFragment=function(O){return k(O)===r},he.isLazy=function(O){return k(O)===g},he.isMemo=function(O){return k(O)===y},he.isPortal=function(O){return k(O)===n},he.isProfiler=function(O){return k(O)===a},he.isStrictMode=function(O){return k(O)===o},he.isSuspense=function(O){return k(O)===p},he.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===r||O===u||O===a||O===o||O===p||O===m||typeof O=="object"&&O!==null&&(O.$$typeof===g||O.$$typeof===y||O.$$typeof===i||O.$$typeof===l||O.$$typeof===d||O.$$typeof===v||O.$$typeof===S||O.$$typeof===T||O.$$typeof===f)},he.typeOf=k,he}var me={};/** @license React v16.13.1
|
|
30
|
+
* react-is.development.js
|
|
31
|
+
*
|
|
32
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the MIT license found in the
|
|
35
|
+
* LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/var fo;function ii(){return fo||(fo=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,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function k(A){return typeof A=="string"||typeof A=="function"||A===r||A===u||A===a||A===o||A===p||A===m||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===y||A.$$typeof===i||A.$$typeof===l||A.$$typeof===d||A.$$typeof===v||A.$$typeof===S||A.$$typeof===T||A.$$typeof===f)}function w(A){if(typeof A=="object"&&A!==null){var ie=A.$$typeof;switch(ie){case t:var pe=A.type;switch(pe){case c:case u:case r:case a:case o:case p:return pe;default:var xe=pe&&pe.$$typeof;switch(xe){case l:case d:case g:case y:case i:return xe;default:return ie}}case n:return ie}}}var O=c,D=u,M=l,V=i,B=t,U=d,_=r,h=g,P=y,E=n,R=a,$=o,L=p,J=!1;function ee(A){return J||(J=!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.")),N(A)||w(A)===c}function N(A){return w(A)===u}function C(A){return w(A)===l}function j(A){return w(A)===i}function K(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function G(A){return w(A)===d}function Q(A){return w(A)===r}function F(A){return w(A)===g}function H(A){return w(A)===y}function q(A){return w(A)===n}function z(A){return w(A)===a}function X(A){return w(A)===o}function le(A){return w(A)===p}me.AsyncMode=O,me.ConcurrentMode=D,me.ContextConsumer=M,me.ContextProvider=V,me.Element=B,me.ForwardRef=U,me.Fragment=_,me.Lazy=h,me.Memo=P,me.Portal=E,me.Profiler=R,me.StrictMode=$,me.Suspense=L,me.isAsyncMode=ee,me.isConcurrentMode=N,me.isContextConsumer=C,me.isContextProvider=j,me.isElement=K,me.isForwardRef=G,me.isFragment=Q,me.isLazy=F,me.isMemo=H,me.isPortal=q,me.isProfiler=z,me.isStrictMode=X,me.isSuspense=le,me.isValidElementType=k,me.typeOf=w}()),me}var po;function Ea(){return po||(po=1,process.env.NODE_ENV==="production"?hn.exports=si():hn.exports=ii()),hn.exports}/*
|
|
37
|
+
object-assign
|
|
38
|
+
(c) Sindre Sorhus
|
|
39
|
+
@license MIT
|
|
40
|
+
*/var sr,ho;function li(){if(ho)return sr;ho=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(c.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 sr=o()?Object.assign:function(a,i){for(var l,c=r(a),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var p in l)t.call(l,p)&&(c[p]=l[p]);if(e){u=e(l);for(var m=0;m<u.length;m++)n.call(l,u[m])&&(c[u[m]]=l[u[m]])}}return c},sr}var ir,mo;function Ar(){if(mo)return ir;mo=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ir=e,ir}var lr,go;function Ta(){return go||(go=1,lr=Function.call.bind(Object.prototype.hasOwnProperty)),lr}var cr,yo;function ci(){if(yo)return cr;yo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ar(),n={},r=Ta();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var p;try{if(typeof a[d]!="function"){var m=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=a[d](i,d,c,l,null,t)}catch(g){p=g}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var y=u?u():"";e("Failed "+l+" type: "+p.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},cr=o,cr}var ur,bo;function ui(){if(bo)return ur;bo=1;var e=Ea(),t=li(),n=Ar(),r=Ta(),o=ci(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return ur=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(N){var C=N&&(u&&N[u]||N[d]);if(typeof C=="function")return C}var m="<<anonymous>>",y={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:T(),arrayOf:k,element:w(),elementType:O(),instanceOf:D,node:U(),objectOf:V,oneOf:M,oneOfType:B,shape:h,exact:P};function g(N,C){return N===C?N!==0||1/N===1/C:N!==N&&C!==C}function f(N,C){this.message=N,this.data=C&&typeof C=="object"?C:{},this.stack=""}f.prototype=Error.prototype;function v(N){if(process.env.NODE_ENV!=="production")var C={},j=0;function K(Q,F,H,q,z,X,le){if(q=q||m,X=X||H,le!==n){if(c){var A=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 A.name="Invariant Violation",A}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ie=q+":"+H;!C[ie]&&j<3&&(a("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+q+"`. 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."),C[ie]=!0,j++)}}return F[H]==null?Q?F[H]===null?new f("The "+z+" `"+X+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new f("The "+z+" `"+X+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:N(F,H,q,z,X)}var G=K.bind(null,!1);return G.isRequired=K.bind(null,!0),G}function S(N){function C(j,K,G,Q,F,H){var q=j[K],z=$(q);if(z!==N){var X=L(q);return new f("Invalid "+Q+" `"+F+"` of type "+("`"+X+"` supplied to `"+G+"`, expected ")+("`"+N+"`."),{expectedType:N})}return null}return v(C)}function T(){return v(i)}function k(N){function C(j,K,G,Q,F){if(typeof N!="function")return new f("Property `"+F+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var H=j[K];if(!Array.isArray(H)){var q=$(H);return new f("Invalid "+Q+" `"+F+"` of type "+("`"+q+"` supplied to `"+G+"`, expected an array."))}for(var z=0;z<H.length;z++){var X=N(H,z,G,Q,F+"["+z+"]",n);if(X instanceof Error)return X}return null}return v(C)}function w(){function N(C,j,K,G,Q){var F=C[j];if(!l(F)){var H=$(F);return new f("Invalid "+G+" `"+Q+"` of type "+("`"+H+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return v(N)}function O(){function N(C,j,K,G,Q){var F=C[j];if(!e.isValidElementType(F)){var H=$(F);return new f("Invalid "+G+" `"+Q+"` of type "+("`"+H+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return v(N)}function D(N){function C(j,K,G,Q,F){if(!(j[K]instanceof N)){var H=N.name||m,q=ee(j[K]);return new f("Invalid "+Q+" `"+F+"` of type "+("`"+q+"` supplied to `"+G+"`, expected ")+("instance of `"+H+"`."))}return null}return v(C)}function M(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function C(j,K,G,Q,F){for(var H=j[K],q=0;q<N.length;q++)if(g(H,N[q]))return null;var z=JSON.stringify(N,function(le,A){var ie=L(A);return ie==="symbol"?String(A):A});return new f("Invalid "+Q+" `"+F+"` of value `"+String(H)+"` "+("supplied to `"+G+"`, expected one of "+z+"."))}return v(C)}function V(N){function C(j,K,G,Q,F){if(typeof N!="function")return new f("Property `"+F+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var H=j[K],q=$(H);if(q!=="object")return new f("Invalid "+Q+" `"+F+"` of type "+("`"+q+"` supplied to `"+G+"`, expected an object."));for(var z in H)if(r(H,z)){var X=N(H,z,G,Q,F+"."+z,n);if(X instanceof Error)return X}return null}return v(C)}function B(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var C=0;C<N.length;C++){var j=N[C];if(typeof j!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(j)+" at index "+C+"."),i}function K(G,Q,F,H,q){for(var z=[],X=0;X<N.length;X++){var le=N[X],A=le(G,Q,F,H,q,n);if(A==null)return null;A.data&&r(A.data,"expectedType")&&z.push(A.data.expectedType)}var ie=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new f("Invalid "+H+" `"+q+"` supplied to "+("`"+F+"`"+ie+"."))}return v(K)}function U(){function N(C,j,K,G,Q){return E(C[j])?null:new f("Invalid "+G+" `"+Q+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return v(N)}function _(N,C,j,K,G){return new f((N||"React class")+": "+C+" type `"+j+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function h(N){function C(j,K,G,Q,F){var H=j[K],q=$(H);if(q!=="object")return new f("Invalid "+Q+" `"+F+"` of type `"+q+"` "+("supplied to `"+G+"`, expected `object`."));for(var z in N){var X=N[z];if(typeof X!="function")return _(G,Q,F,z,L(X));var le=X(H,z,G,Q,F+"."+z,n);if(le)return le}return null}return v(C)}function P(N){function C(j,K,G,Q,F){var H=j[K],q=$(H);if(q!=="object")return new f("Invalid "+Q+" `"+F+"` of type `"+q+"` "+("supplied to `"+G+"`, expected `object`."));var z=t({},j[K],N);for(var X in z){var le=N[X];if(r(N,X)&&typeof le!="function")return _(G,Q,F,X,L(le));if(!le)return new f("Invalid "+Q+" `"+F+"` key `"+X+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(j[K],null," ")+`
|
|
41
|
+
Valid keys: `+JSON.stringify(Object.keys(N),null," "));var A=le(H,X,G,Q,F+"."+X,n);if(A)return A}return null}return v(C)}function E(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every(E);if(N===null||l(N))return!0;var C=p(N);if(C){var j=C.call(N),K;if(C!==N.entries){for(;!(K=j.next()).done;)if(!E(K.value))return!1}else for(;!(K=j.next()).done;){var G=K.value;if(G&&!E(G[1]))return!1}}else return!1;return!0;default:return!1}}function R(N,C){return N==="symbol"?!0:C?C["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&C instanceof Symbol:!1}function $(N){var C=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":R(C,N)?"symbol":C}function L(N){if(typeof N>"u"||N===null)return""+N;var C=$(N);if(C==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return C}function J(N){var C=L(N);switch(C){case"array":case"object":return"an "+C;case"boolean":case"date":case"regexp":return"a "+C;default:return C}}function ee(N){return!N.constructor||!N.constructor.name?m:N.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},ur}var dr,vo;function di(){if(vo)return dr;vo=1;var e=Ar();function t(){}function n(){}return n.resetWarningCache=t,dr=function(){function r(i,l,c,u,d,p){if(p!==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 a={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 a.PropTypes=a,a},dr}var xo;function fi(){if(xo)return pn.exports;if(xo=1,process.env.NODE_ENV!=="production"){var e=Ea(),t=!0;pn.exports=ui()(e.isElement,t)}else pn.exports=di()();return pn.exports}var pi=fi();const s=wa(pi);function Oa(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=Oa(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=Oa(e))&&(r&&(r+=" "),r+=t);return r}function Ue(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",l=!0;for(let c=0;c<a.length;c+=1){const u=a[c];u&&(i+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(i+=" "+n[u]))}r[o]=i}return r}function Tn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function _r(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Tn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var mn={exports:{}},be={};/**
|
|
42
|
+
* @license React
|
|
43
|
+
* react-is.production.js
|
|
44
|
+
*
|
|
45
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the MIT license found in the
|
|
48
|
+
* LICENSE file in the root directory of this source tree.
|
|
49
|
+
*/var Co;function hi(){if(Co)return be;Co=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"),a=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var v=f.$$typeof;switch(v){case e:switch(f=f.type,f){case n:case o:case r:case c:case u:case m:return f;default:switch(f=f&&f.$$typeof,f){case i:case l:case p:case d:return f;case a:return f;default:return v}}case t:return v}}}return be.ContextConsumer=a,be.ContextProvider=i,be.Element=e,be.ForwardRef=l,be.Fragment=n,be.Lazy=p,be.Memo=d,be.Portal=t,be.Profiler=o,be.StrictMode=r,be.Suspense=c,be.SuspenseList=u,be.isContextConsumer=function(f){return g(f)===a},be.isContextProvider=function(f){return g(f)===i},be.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},be.isForwardRef=function(f){return g(f)===l},be.isFragment=function(f){return g(f)===n},be.isLazy=function(f){return g(f)===p},be.isMemo=function(f){return g(f)===d},be.isPortal=function(f){return g(f)===t},be.isProfiler=function(f){return g(f)===o},be.isStrictMode=function(f){return g(f)===r},be.isSuspense=function(f){return g(f)===c},be.isSuspenseList=function(f){return g(f)===u},be.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===i||f.$$typeof===a||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},be.typeOf=g,be}var ve={};/**
|
|
50
|
+
* @license React
|
|
51
|
+
* react-is.development.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var So;function mi(){return So||(So=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(typeof f=="object"&&f!==null){var v=f.$$typeof;switch(v){case t:switch(f=f.type,f){case r:case a:case o:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case m:case p:return f;case i:return f;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");ve.ContextConsumer=i,ve.ContextProvider=l,ve.Element=t,ve.ForwardRef=c,ve.Fragment=r,ve.Lazy=m,ve.Memo=p,ve.Portal=n,ve.Profiler=a,ve.StrictMode=o,ve.Suspense=u,ve.SuspenseList=d,ve.isContextConsumer=function(f){return e(f)===i},ve.isContextProvider=function(f){return e(f)===l},ve.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},ve.isForwardRef=function(f){return e(f)===c},ve.isFragment=function(f){return e(f)===r},ve.isLazy=function(f){return e(f)===m},ve.isMemo=function(f){return e(f)===p},ve.isPortal=function(f){return e(f)===n},ve.isProfiler=function(f){return e(f)===a},ve.isStrictMode=function(f){return e(f)===o},ve.isSuspense=function(f){return e(f)===u},ve.isSuspenseList=function(f){return e(f)===d},ve.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===a||f===o||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===p||f.$$typeof===l||f.$$typeof===i||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},ve.typeOf=e}()),ve}var wo;function gi(){return wo||(wo=1,process.env.NODE_ENV==="production"?mn.exports=hi():mn.exports=mi()),mn.exports}var At=gi();function rt(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 Da(e){if(x.isValidElement(e)||At.isValidElementType(e)||!rt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Da(e[n])}),t}function vt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return rt(e)&&rt(t)&&Object.keys(t).forEach(o=>{x.isValidElement(t[o])||At.isValidElementType(t[o])?r[o]=t[o]:rt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&rt(e[o])?r[o]=vt(e[o],t[o],n):n.clone?r[o]=rt(t[o])?Da(t[o]):t[o]:r[o]=t[o]}),r}function en(e,t){return t?vt(e,t,{clone:!1}):e}const ut=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Eo(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,l;const a=/min-width:\s*([0-9.]+)/;return+(((i=r.match(a))==null?void 0:i[1])||0)-+(((l=o.match(a))==null?void 0:l[1])||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function yi(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function bi(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>\`.
|
|
58
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Tn(18,`(${t})`));return null}const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function vi(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...l)=>t(e.breakpoints.up(...l),i),a.down=(...l)=>t(e.breakpoints.down(...l),i),a.between=(...l)=>t(e.breakpoints.between(...l),i),a.only=(...l)=>t(e.breakpoints.only(...l),i),a.not=(...l)=>{const c=t(e.breakpoints.not(...l),i);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const _n={xs:0,sm:600,md:900,lg:1200,xl:1536},To={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${_n[e]}px)`},xi={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:_n[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function tt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||To;return t.reduce((i,l,c)=>(i[a.up(a.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const a=r.breakpoints||To;return Object.keys(t).reduce((i,l)=>{if(yi(a.keys,l)){const c=bi(r.containerQueries?r:xi,l);c&&(i[c]=n(t[l],l))}else if(Object.keys(a.values||_n).includes(l)){const c=a.up(l);i[c]=n(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return n(t)}function Ci(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function Oo(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function jn(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function On(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=jn(e,n)||r,t&&(o=t(o,r,e)),o}function Oe(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=jn(c,r)||{};return tt(i,l,p=>{let m=On(u,o,p);return p===m&&typeof p=="string"&&(m=On(u,o,`${t}${p==="default"?"":_r(p)}`,p)),n===!1?m:{[n]:m}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:ut}:{},a.filterProps=[t],a}function Si(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const wi={m:"margin",p:"padding"},Ei={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Do={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ti=Si(e=>{if(e.length>2)if(Do[e])e=Do[e];else return[e];const[t,n]=e.split(""),r=wi[t],o=Ei[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),Vn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ln=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Oi=[...Vn,...Ln];function an(e,t,n,r){const o=jn(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),typeof o=="string"?o.startsWith("var(")&&a===0?0:o.startsWith("var(")&&a===1?o:`calc(${a} * ${o})`:o*a):Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>o.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${i} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
59
|
+
`)):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(`
|
|
60
|
+
`)));const l=o[i];return a>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
61
|
+
`)),()=>{})}function jr(e){return an(e,"spacing",8,"spacing")}function sn(e,t){return typeof t=="string"||t==null?t:e(t)}function Di(e,t){return n=>e.reduce((r,o)=>(r[o]=sn(t,n),r),{})}function ki(e,t,n,r){if(!t.includes(n))return null;const o=Ti(n),a=Di(o,r),i=e[n];return tt(e,i,a)}function ka(e,t){const n=jr(e.theme);return Object.keys(e).map(r=>ki(e,t,r,n)).reduce(en,{})}function Ee(e){return ka(e,Vn)}Ee.propTypes=process.env.NODE_ENV!=="production"?Vn.reduce((e,t)=>(e[t]=ut,e),{}):{};Ee.filterProps=Vn;function Te(e){return ka(e,Ln)}Te.propTypes=process.env.NODE_ENV!=="production"?Ln.reduce((e,t)=>(e[t]=ut,e),{}):{};Te.filterProps=Ln;process.env.NODE_ENV!=="production"&&Oi.reduce((e,t)=>(e[t]=ut,e),{});function Bn(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?en(o,t[a](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 Be(e){return typeof e!="number"?e:`${e}px solid`}function ze(e,t){return Oe({prop:e,themeKey:"borders",transform:t})}const Ri=ze("border",Be),Mi=ze("borderTop",Be),Pi=ze("borderRight",Be),$i=ze("borderBottom",Be),Ii=ze("borderLeft",Be),Ni=ze("borderColor"),Ai=ze("borderTopColor"),_i=ze("borderRightColor"),ji=ze("borderBottomColor"),Vi=ze("borderLeftColor"),Li=ze("outline",Be),Bi=ze("outlineColor"),zn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=an(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:sn(t,r)});return tt(e,e.borderRadius,n)}return null};zn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ut}:{};zn.filterProps=["borderRadius"];Bn(Ri,Mi,Pi,$i,Ii,Ni,Ai,_i,ji,Vi,zn,Li,Bi);const Fn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=an(e.theme,"spacing",8,"gap"),n=r=>({gap:sn(t,r)});return tt(e,e.gap,n)}return null};Fn.propTypes=process.env.NODE_ENV!=="production"?{gap:ut}:{};Fn.filterProps=["gap"];const Wn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=an(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:sn(t,r)});return tt(e,e.columnGap,n)}return null};Wn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ut}:{};Wn.filterProps=["columnGap"];const Un=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=an(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:sn(t,r)});return tt(e,e.rowGap,n)}return null};Un.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ut}:{};Un.filterProps=["rowGap"];const zi=Oe({prop:"gridColumn"}),Fi=Oe({prop:"gridRow"}),Wi=Oe({prop:"gridAutoFlow"}),Ui=Oe({prop:"gridAutoColumns"}),Hi=Oe({prop:"gridAutoRows"}),Yi=Oe({prop:"gridTemplateColumns"}),Gi=Oe({prop:"gridTemplateRows"}),qi=Oe({prop:"gridTemplateAreas"}),Ki=Oe({prop:"gridArea"});Bn(Fn,Wn,Un,zi,Fi,Wi,Ui,Hi,Yi,Gi,qi,Ki);function $t(e,t){return t==="grey"?t:e}const Xi=Oe({prop:"color",themeKey:"palette",transform:$t}),Ji=Oe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$t}),Qi=Oe({prop:"backgroundColor",themeKey:"palette",transform:$t});Bn(Xi,Ji,Qi);function Ne(e){return e<=1&&e!==0?`${e*100}%`:e}const Zi=Oe({prop:"width",transform:Ne}),Vr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,a,i,l,c;const r=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[n])||_n[n];return r?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ne(n)}};return tt(e,e.maxWidth,t)}return null};Vr.filterProps=["maxWidth"];const el=Oe({prop:"minWidth",transform:Ne}),tl=Oe({prop:"height",transform:Ne}),nl=Oe({prop:"maxHeight",transform:Ne}),rl=Oe({prop:"minHeight",transform:Ne});Oe({prop:"size",cssProperty:"width",transform:Ne});Oe({prop:"size",cssProperty:"height",transform:Ne});const ol=Oe({prop:"boxSizing"});Bn(Zi,Vr,el,tl,nl,rl,ol);const ln={border:{themeKey:"borders",transform:Be},borderTop:{themeKey:"borders",transform:Be},borderRight:{themeKey:"borders",transform:Be},borderBottom:{themeKey:"borders",transform:Be},borderLeft:{themeKey:"borders",transform:Be},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Be},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zn},color:{themeKey:"palette",transform:$t},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$t},backgroundColor:{themeKey:"palette",transform:$t},p:{style:Te},pt:{style:Te},pr:{style:Te},pb:{style:Te},pl:{style:Te},px:{style:Te},py:{style:Te},padding:{style:Te},paddingTop:{style:Te},paddingRight:{style:Te},paddingBottom:{style:Te},paddingLeft:{style:Te},paddingX:{style:Te},paddingY:{style:Te},paddingInline:{style:Te},paddingInlineStart:{style:Te},paddingInlineEnd:{style:Te},paddingBlock:{style:Te},paddingBlockStart:{style:Te},paddingBlockEnd:{style:Te},m:{style:Ee},mt:{style:Ee},mr:{style:Ee},mb:{style:Ee},ml:{style:Ee},mx:{style:Ee},my:{style:Ee},margin:{style:Ee},marginTop:{style:Ee},marginRight:{style:Ee},marginBottom:{style:Ee},marginLeft:{style:Ee},marginX:{style:Ee},marginY:{style:Ee},marginInline:{style:Ee},marginInlineStart:{style:Ee},marginInlineEnd:{style:Ee},marginBlock:{style:Ee},marginBlockStart:{style:Ee},marginBlockEnd:{style:Ee},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Fn},rowGap:{style:Un},columnGap:{style:Wn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ne},maxWidth:{style:Vr},minWidth:{transform:Ne},height:{transform:Ne},maxHeight:{transform:Ne},minHeight:{transform:Ne},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 al(...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 sl(e,t){return typeof e=="function"?e(t):e}function il(){function e(n,r,o,a){const i={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:p}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const m=jn(o,u)||{};return p?p(i):tt(i,r,g=>{let f=On(m,d,g);return g===f&&typeof g=="string"&&(f=On(m,d,`${n}${g==="default"?"":_r(g)}`,g)),c===!1?f:{[c]:f}})}function t(n){const{sx:r,theme:o={},nested:a}=n||{};if(!r)return null;const i=o.unstable_sxConfig??ln;function l(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const d=Ci(o.breakpoints),p=Object.keys(d);let m=d;return Object.keys(u).forEach(y=>{const g=sl(u[y],o);if(g!=null)if(typeof g=="object")if(i[y])m=en(m,e(y,g,o,i));else{const f=tt({theme:o},g,v=>({[y]:v}));al(f,g)?m[y]=t({sx:g,theme:o,nested:!0}):m=en(m,f)}else m=en(m,e(y,g,o,i))}),!a&&o.modularCssLayers?{"@layer sx":Eo(o,Oo(p,m))}:Eo(o,Oo(p,m))}return Array.isArray(r)?r.map(l):l(r)}return t}const _t=il();_t.filterProps=["sx"];const ll=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??ln;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function cl(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=ll(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return rt(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}function ul(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 dl={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 fl(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var pl=/[A-Z]|^ms/g,hl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ra=function(t){return t.charCodeAt(1)===45},ko=function(t){return t!=null&&typeof t!="boolean"},fr=fl(function(e){return Ra(e)?e:e.replace(pl,"-$&").toLowerCase()}),Ro=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(hl,function(r,o,a){return at={name:o,styles:a,next:at},o})}return dl[t]!==1&&!Ra(t)&&typeof n=="number"&&n!==0?n+"px":n};function Dn(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 at={name:o.name,styles:o.styles,next:at},o.name;var a=n;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)at={name:i.name,styles:i.styles,next:at},i=i.next;var l=a.styles+";";return l}return ml(e,t,n)}}var c=n;return c}function ml(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Dn(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object"){var l=i;ko(l)&&(r+=fr(a)+":"+Ro(a,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var c=0;c<i.length;c++)ko(i[c])&&(r+=fr(a)+":"+Ro(a,i[c])+";");else{var u=Dn(e,t,i);switch(a){case"animation":case"animationName":{r+=fr(a)+":"+u+";";break}default:r+=a+"{"+u+"}"}}}return r}var Mo=/label:\s*([^\s;{]+)\s*(;|$)/g,at;function gl(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="";at=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,o+=Dn(n,t,a);else{var i=a;o+=i[0]}for(var l=1;l<e.length;l++)if(o+=Dn(n,t,e[l]),r){var c=a;o+=c[l]}Mo.lastIndex=0;for(var u="",d;(d=Mo.exec(o))!==null;)u+="-"+d[1];var p=ul(o)+u;return{name:p,styles:o,next:at}}/**
|
|
62
|
+
* @mui/styled-engine v7.3.3
|
|
63
|
+
*
|
|
64
|
+
* @license MIT
|
|
65
|
+
* This source code is licensed under the MIT license found in the
|
|
66
|
+
* LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/function yl(e,t){const n=Ks(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(`
|
|
68
|
+
`)):r.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function bl(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Po=[];function xt(e){return Po[0]=e,gl(Po)}const vl=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 xl(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=vl(t),i=Object.keys(a);function l(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function u(m,y){const g=i.indexOf(y);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:y)-r/100}${n})`}function d(m){return i.indexOf(m)+1<i.length?u(m,i[i.indexOf(m)+1]):l(m)}function p(m){const y=i.indexOf(m);return y===0?l(i[1]):y===i.length-1?c(i[y]):u(m,i[i.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:i,values:a,up:l,down:c,between:u,only:d,not:p,unit:n,...o}}const Cl={borderRadius:4};function Ma(e=8,t=jr({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(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function Sl(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 Lr(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e,l=xl(n),c=Ma(o);let u=vt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...Cl,...a}},i);return u=vi(u),u.applyStyles=Sl,u=t.reduce((d,p)=>vt(d,p),u),u.unstable_sxConfig={...ln,...i==null?void 0:i.unstable_sxConfig},u.unstable_sx=function(p){return _t({sx:p,theme:this})},u}function wl(e){return Object.keys(e).length===0}function Pa(e=null){const t=x.useContext(ct.ThemeContext);return!t||wl(t)?e:t}const El=Lr();function $a(e=El){return Pa(e)}function Ia(e,t=""){return e.displayName||e.name||t}function $o(e,t,n){const r=Ia(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Tl(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ia(e,"Component");if(typeof e=="object")switch(e.$$typeof){case At.ForwardRef:return $o(e,e.render,"ForwardRef");case At.Memo:return $o(e,e.type,"memo");default:return}}}function Na(e){const{variants:t,...n}=e,r={variants:t,style:xt(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=xt(o.style))}),r}const Ol=Lr();function pr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function yt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Dl(e){return e?(t,n)=>n[e]:null}function kl(e,t,n){e.theme=$l(e.theme)?n:e.theme[t]||e.theme}function Sn(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Sn(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?yt(r.style,n):r.style;else{const{variants:a,...i}=r;o=n?yt(xt(i),n):i}return Aa(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?yt(xt(r.style),n):r.style:n?yt(xt(r),n):r}function Aa(e,t,n=[],r=void 0){var a;let o;e:for(let i=0;i<t.length;i+=1){const l=t[i];if(typeof l.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(o))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((a=e.ownerState)==null?void 0:a[c])!==l.props[c])continue e;typeof l.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?yt(xt(l.style(o)),r):l.style(o))):n.push(r?yt(xt(l.style),r):l.style)}return n}function Rl(e={}){const{themeId:t,defaultTheme:n=Ol,rootShouldForwardProp:r=pr,slotShouldForwardProp:o=pr}=e;function a(l){kl(l,t,n)}return(l,c={})=>{bl(l,D=>D.filter(M=>M!==_t));const{name:u,slot:d,skipVariantsResolver:p,skipSx:m,overridesResolver:y=Dl(_a(d)),...g}=c,f=u&&u.startsWith("Mui")||d?"components":"custom",v=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,S=m||!1;let T=pr;d==="Root"||d==="root"?T=r:d?T=o:Il(l)&&(T=void 0);const k=yl(l,{shouldForwardProp:T,label:Pl(u,d),...g}),w=D=>{if(D.__emotion_real===D)return D;if(typeof D=="function")return function(V){return Sn(V,D,V.theme.modularCssLayers?f:void 0)};if(rt(D)){const M=Na(D);return function(B){return M.variants?Sn(B,M,B.theme.modularCssLayers?f:void 0):B.theme.modularCssLayers?yt(M.style,f):M.style}}return D},O=(...D)=>{const M=[],V=D.map(w),B=[];if(M.push(a),u&&y&&B.push(function(P){var L,J;const R=(J=(L=P.theme.components)==null?void 0:L[u])==null?void 0:J.styleOverrides;if(!R)return null;const $={};for(const ee in R)$[ee]=Sn(P,R[ee],P.theme.modularCssLayers?"theme":void 0);return y(P,$)}),u&&!v&&B.push(function(P){var $,L;const E=P.theme,R=(L=($=E==null?void 0:E.components)==null?void 0:$[u])==null?void 0:L.variants;return R?Aa(P,R,[],P.theme.modularCssLayers?"theme":void 0):null}),S||B.push(_t),Array.isArray(V[0])){const h=V.shift(),P=new Array(M.length).fill(""),E=new Array(B.length).fill("");let R;R=[...P,...h,...E],R.raw=[...P,...h.raw,...E],M.unshift(R)}const U=[...M,...V,...B],_=k(...U);return l.muiName&&(_.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(_.displayName=Ml(u,d,l)),_};return k.withConfig&&(O.withConfig=k.withConfig),O}}function Ml(e,t,n){return e?`${e}${_r(t||"")}`:`Styled(${Tl(n)})`}function Pl(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${_a(t||"Root")}`),n}function $l(e){for(const t in e)return!1;return!0}function Il(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _a(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function kn(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const i=e[a],l=t[a];if(!l)r[a]=i||{};else if(!i)r[a]=l;else{r[a]={...l};for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){const u=c;r[a][u]=kn(i[u],l[u],n)}}}else a==="className"&&n&&t.className?r.className=ae(e==null?void 0:e.className,t==null?void 0:t.className):a==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[a]===void 0&&(r[a]=e[a])}return r}function ja(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:kn(t.components[n].defaultProps,r)}function Nl({props:e,name:t,defaultTheme:n,themeId:r}){let o=$a(n);return o=o[r]||o,ja({theme:o,name:t,props:e})}const Al=typeof window<"u"?x.useLayoutEffect:x.useEffect;function _l(e,t,n,r,o){const[a,i]=x.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Al(()=>{if(!n)return;const l=n(e),c=()=>{i(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),a}const jl={...x},Va=jl.useSyncExternalStore;function Vl(e,t,n,r,o){const a=x.useCallback(()=>t,[t]),i=x.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return a},[a,e,r,o,n]),[l,c]=x.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const d=n(e);return[()=>d.matches,p=>(d.addEventListener("change",p),()=>{d.removeEventListener("change",p)})]},[a,n,e]);return Va(c,l,i)}function La(e={}){const{themeId:t}=e;return function(r,o={}){let a=Pa();a&&t&&(a=a[t]||a);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=i?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=ja({name:"MuiUseMediaQuery",props:o,theme:a});process.env.NODE_ENV!=="production"&&typeof r=="function"&&a===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(`
|
|
69
|
+
`));let p=typeof r=="function"?r(a):r;p=p.replace(/^@media( ?)/m,""),p.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
70
|
+
`));const y=(Va!==void 0?Vl:_l)(p,l,c,u,d);return process.env.NODE_ENV!=="production"&&x.useDebugValue({query:p,match:y}),y}}La();function Ll(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Br(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}].`),Ll(e,t,n)}function Bl(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 st(e){if(e.type)return e;if(e.charAt(0)==="#")return st(Bl(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.
|
|
71
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Tn(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.
|
|
72
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Tn(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const zl=e=>{const t=st(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Xt=(e,t)=>{try{return zl(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Hn(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<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 Ba(e){e=st(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(u,d=(u+n/30)%12)=>o-a*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Hn({type:l,values:c})}function Tr(e){e=st(e);let t=e.type==="hsl"||e.type==="hsla"?st(Ba(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 Io(e,t){const n=Tr(e),r=Tr(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function it(e,t){return e=st(e),t=Br(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Hn(e)}function dt(e,t,n){try{return it(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Yn(e,t){if(e=st(e),t=Br(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 Hn(e)}function ge(e,t,n){try{return Yn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Gn(e,t){if(e=st(e),t=Br(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 Hn(e)}function ye(e,t,n){try{return Gn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Fl(e,t=.15){return Tr(e)>.5?Yn(e,t):Gn(e,t)}function gn(e,t,n){try{return Fl(e,t)}catch{return e}}const Wl=x.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const cn=()=>x.useContext(Wl)??!1,Ul=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function Hl(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?kn(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?kn(o,r,t.components.mergeClassNameAndStyle):r}function Yl({props:e,name:t}){const n=x.useContext(Ul);return Hl({props:e,name:t,theme:{components:n}})}const No={theme:void 0};function Gl(e){let t,n;return function(o){let a=t;return(a===void 0||o.theme!==n)&&(No.theme=o.theme,a=Na(e(No)),t=a,n=o.theme),a}}function ql(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 Ao=(e,t,n,r=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},Kl=(e,t,n)=>{function r(o,a=[],i=[]){Object.entries(o).forEach(([l,c])=>{(!n||n&&!n([...a,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...a,l],Array.isArray(c)?[...i,l]:i):t([...a,l],c,i))})}r(e)},Xl=(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 hr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return Kl(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,p=Xl(l,c);Object.assign(o,{[d]:p}),Ao(a,l,`var(${d})`,u),Ao(i,l,`var(${d}, ${p})`,u)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function Jl(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:a}=t,{colorSchemes:i={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:m}=hr(u,t);let y=m;const g={},{[c]:f,...v}=i;if(Object.entries(v||{}).forEach(([w,O])=>{const{vars:D,css:M,varsWithDefaults:V}=hr(O,t);y=vt(y,V),g[w]={css:M,vars:D}}),f){const{css:w,vars:O,varsWithDefaults:D}=hr(f,t);y=vt(y,D),g[c]={css:w,vars:O}}function S(w,O){var M,V;let D=o;if(o==="class"&&(D=".%s"),o==="data"&&(D="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(D=`[${o}="%s"]`),w){if(D==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((V=(M=i[w])==null?void 0:M.palette)==null?void 0:V.mode)||w})`]:{":root":O}};if(D)return e.defaultColorScheme===w?`:root, ${D.replace("%s",String(w))}`:D.replace("%s",String(w))}return":root"}return{vars:y,generateThemeVars:()=>{let w={...d};return Object.entries(g).forEach(([,{vars:O}])=>{w=vt(w,O)}),w},generateStyleSheets:()=>{var B,U;const w=[],O=e.defaultColorScheme||"light";function D(_,h){Object.keys(h).length&&w.push(typeof _=="string"?{[_]:{...h}}:_)}D(n(void 0,{...p}),p);const{[O]:M,...V}=g;if(M){const{css:_}=M,h=(U=(B=i[O])==null?void 0:B.palette)==null?void 0:U.mode,P=!r&&h?{colorScheme:h,..._}:{..._};D(n(O,{...P}),P)}return Object.entries(V).forEach(([_,{css:h}])=>{var R,$;const P=($=(R=i[_])==null?void 0:R.palette)==null?void 0:$.mode,E=!r&&P?{colorScheme:P,...h}:{...h};D(n(_,{...E}),E)}),a&&w.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),w}}}function Ql(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)} &`:"&"}}function ot(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 za(e){if(x.isValidElement(e)||At.isValidElementType(e)||!ot(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=za(e[n])}),t}function Ct(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return ot(e)&&ot(t)&&Object.keys(t).forEach(o=>{x.isValidElement(t[o])||At.isValidElementType(t[o])?r[o]=t[o]:ot(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ot(e[o])?r[o]=Ct(e[o],t[o],n):n.clone?r[o]=ot(t[o])?za(t[o]):t[o]:r[o]=t[o]}),r}const rn={black:"#000",white:"#fff"},Zl={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"},Et={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Tt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Yt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ot={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Dt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},kt={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Fa(){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:rn.white,default:rn.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 Wa=Fa();function Ua(){return{text:{primary:rn.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:rn.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 Or=Ua();function _o(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Gn(e.main,o):t==="dark"&&(e.dark=Yn(e.main,a)))}function jo(e,t,n,r,o){const a=o.light||o,i=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(i*100).toFixed(0)}%)`))}function ec(e="light"){return e==="dark"?{main:Ot[200],light:Ot[50],dark:Ot[400]}:{main:Ot[700],light:Ot[400],dark:Ot[800]}}function tc(e="light"){return e==="dark"?{main:Et[200],light:Et[50],dark:Et[400]}:{main:Et[500],light:Et[300],dark:Et[700]}}function nc(e="light"){return e==="dark"?{main:Tt[500],light:Tt[300],dark:Tt[700]}:{main:Tt[700],light:Tt[400],dark:Tt[800]}}function rc(e="light"){return e==="dark"?{main:Dt[400],light:Dt[300],dark:Dt[700]}:{main:Dt[700],light:Dt[500],dark:Dt[900]}}function oc(e="light"){return e==="dark"?{main:kt[400],light:kt[300],dark:kt[700]}:{main:kt[800],light:kt[500],dark:kt[900]}}function ac(e="light"){return e==="dark"?{main:Yt[400],light:Yt[300],dark:Yt[700]}:{main:"#ed6c02",light:Yt[500],dark:Yt[900]}}function sc(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function zr(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...a}=e,i=e.primary||ec(t),l=e.secondary||tc(t),c=e.error||nc(t),u=e.info||rc(t),d=e.success||oc(t),p=e.warning||ac(t);function m(v){if(o)return sc(v);const S=Io(v,Or.text.primary)>=n?Or.text.primary:Wa.text.primary;if(process.env.NODE_ENV!=="production"){const T=Io(v,S);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${S} on ${v}`,"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(`
|
|
73
|
+
`))}return S}const y=({color:v,name:S,mainShade:T=500,lightShade:k=300,darkShade:w=700})=>{if(v={...v},!v.main&&v[T]&&(v.main=v[T]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
|
|
74
|
+
The color object needs to have a \`main\` property or a \`${T}\` property.`:nn(11,S?` (${S})`:"",T));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
|
|
75
|
+
\`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
|
|
76
|
+
|
|
77
|
+
Did you intend to use one of the following approaches?
|
|
78
|
+
|
|
79
|
+
import { green } from "@mui/material/colors";
|
|
80
|
+
|
|
81
|
+
const theme1 = createTheme({ palette: {
|
|
82
|
+
primary: green,
|
|
83
|
+
} });
|
|
84
|
+
|
|
85
|
+
const theme2 = createTheme({ palette: {
|
|
86
|
+
primary: { main: green[500] },
|
|
87
|
+
} });`:nn(12,S?` (${S})`:"",JSON.stringify(v.main)));return o?(jo(o,v,"light",k,r),jo(o,v,"dark",w,r)):(_o(v,"light",k,r),_o(v,"dark",w,r)),v.contrastText||(v.contrastText=m(v.main)),v};let g;return t==="light"?g=Fa():t==="dark"&&(g=Ua()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ct({common:{...rn},mode:t,primary:y({color:i,name:"primary"}),secondary:y({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:c,name:"error"}),warning:y({color:p,name:"warning"}),info:y({color:u,name:"info"}),success:y({color:d,name:"success"}),grey:Zl,contrastThreshold:n,getContrastText:m,augmentColor:y,tonalOffset:r,...g},a)}function ic(e){const t={};return Object.entries(e).forEach(r=>{const[o,a]=r;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}const lc={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 _e(e,t,n="Mui"){const r=lc[t];return r?`${n}-${r}`:`${ai.generate(e)}-${t}`}function cc(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function uc(e){return Math.round(e*1e5)/1e5}const Vo={textTransform:"uppercase"},Lo='"Roboto", "Helvetica", "Arial", sans-serif';function dc(e,t){const{fontFamily:n=Lo,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const m=r/14,y=d||(v=>`${v/c*m}rem`),g=(v,S,T,k,w)=>({fontFamily:n,fontWeight:v,fontSize:y(S),lineHeight:T,...n===Lo?{letterSpacing:`${uc(k/S)}em`}:{},...w,...u}),f={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(a,48,1.167,0),h4:g(a,34,1.235,.25),h5:g(a,24,1.334,0),h6:g(i,20,1.6,.15),subtitle1:g(a,16,1.75,.15),subtitle2:g(i,14,1.57,.1),body1:g(a,16,1.5,.15),body2:g(a,14,1.43,.15),button:g(i,14,1.75,.4,Vo),caption:g(a,12,1.66,.4),overline:g(a,12,2.66,1,Vo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ct({htmlFontSize:c,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:l,...f},p,{clone:!1})}const fc=.2,pc=.14,hc=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${fc})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${pc})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${hc})`].join(",")}const mc=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],gc={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)"},yc={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Bo(e){return`${Math.round(e)}ms`}function bc(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function vc(e){const t={...gc,...e.easing},n={...yc,...e.duration};return{getAutoHeightDuration:bc,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=a;if(process.env.NODE_ENV!=="production"){const d=m=>typeof m=="string",p=m=>!Number.isNaN(parseFloat(m));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(i)&&!d(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!p(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="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(`
|
|
88
|
+
`)),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 i=="string"?i:Bo(i)} ${l} ${typeof c=="string"?c:Bo(c)}`).join(",")},...e,easing:t,duration:n}}const xc={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Cc(e){return ot(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ha(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a<o.length;a++){const[i,l]=o[a];!Cc(l)||i.startsWith("unstable_")?delete r[i]:ot(l)&&(r[i]={...l},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
89
|
+
|
|
90
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
91
|
+
|
|
92
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
93
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
94
|
+
|
|
95
|
+
export default theme;`}function zo(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Sc=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function wc(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:it(t,Sc(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${zo(n)})`:Gn(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${zo(n)})`:Yn(t,n)}})}function Dr(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:l={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":nn(20));const p=zr({...a,colorSpace:u}),m=Lr(e);let y=Ct(m,{mixins:cc(m.breakpoints,r),palette:p,shadows:mc.slice(),typography:dc(p,l),transitions:vc(i),zIndex:{...xc}});if(y=Ct(y,d),y=t.reduce((g,f)=>Ct(g,f),y),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(v,S)=>{let T;for(T in v){const k=v[T];if(g.includes(T)&&Object.keys(k).length>0){if(process.env.NODE_ENV!=="production"){const w=_e("",T);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:k}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
96
|
+
`))}v[T]={}}}};Object.keys(y.components).forEach(v=>{const S=y.components[v].styleOverrides;S&&v.startsWith("Mui")&&f(S,v)})}return y.unstable_sxConfig={...ln,...d==null?void 0:d.unstable_sxConfig},y.unstable_sx=function(f){return _t({sx:f,theme:this})},y.toRuntimeSource=Ha,wc(y),y}function Ec(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 Tc=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Ec(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ya(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ga(e){return e==="dark"?Tc:[]}function Oc(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...a}=e,i=zr({...t,colorSpace:o});return{palette:i,opacity:{...Ya(i.mode),...n},overlays:r||Ga(i.mode),...a}}function Dc(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const kc=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Rc=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if(o==="class"&&(a=".%s"),o==="data"&&(a="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return kc(e.cssVarPrefix).forEach(l=>{i[l]=n[l],delete n[l]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace("%s",t)]:i,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function Mc(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function I(e,t,n){!e[t]&&n&&(e[t]=n)}function Jt(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ba(e)}function Je(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Xt(Jt(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().
|
|
97
|
+
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 Pc(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ge=e=>{try{return e()}catch{}},$c=(e="mui")=>ql(e);function mr(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const a=o==="dark"?"dark":"light";if(!r){t[o]=Oc({...n,palette:{mode:a,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:i,...l}=Dr({...r,palette:{mode:a,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...Ya(a),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Ga(a)},l}function Ic(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",nativeColor:i=!1,shouldSkipGeneratingVar:l=Dc,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],m=r||(n.light&&p!=="light"?"light":p),y=$c(a),{[m]:g,light:f,dark:v,...S}=n,T={...S};let k=g;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(k=!0),!k)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:nn(21,m));let w;i&&(w="oklch");const O=mr(w,T,k,d,m);f&&!T.light&&mr(w,T,f,void 0,"light"),v&&!T.dark&&mr(w,T,v,void 0,"dark");let D={defaultColorScheme:m,...O,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:u,getCssVar:y,colorSchemes:T,font:{...ic(O.typography),...O.font},spacing:Pc(d.spacing)};Object.keys(D.colorSchemes).forEach(_=>{const h=D.colorSchemes[_].palette,P=R=>{const $=R.split("-"),L=$[1],J=$[2];return y(R,h[L][J])};h.mode==="light"&&(I(h.common,"background","#fff"),I(h.common,"onBackground","#000")),h.mode==="dark"&&(I(h.common,"background","#000"),I(h.common,"onBackground","#fff"));function E(R,$,L){if(w){let J;return R===dt&&(J=`transparent ${((1-L)*100).toFixed(0)}%`),R===ge&&(J=`#000 ${(L*100).toFixed(0)}%`),R===ye&&(J=`#fff ${(L*100).toFixed(0)}%`),`color-mix(in ${w}, ${$}, ${J})`}return R($,L)}if(Mc(h,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),h.mode==="light"){I(h.Alert,"errorColor",E(ge,h.error.light,.6)),I(h.Alert,"infoColor",E(ge,h.info.light,.6)),I(h.Alert,"successColor",E(ge,h.success.light,.6)),I(h.Alert,"warningColor",E(ge,h.warning.light,.6)),I(h.Alert,"errorFilledBg",P("palette-error-main")),I(h.Alert,"infoFilledBg",P("palette-info-main")),I(h.Alert,"successFilledBg",P("palette-success-main")),I(h.Alert,"warningFilledBg",P("palette-warning-main")),I(h.Alert,"errorFilledColor",Ge(()=>h.getContrastText(h.error.main))),I(h.Alert,"infoFilledColor",Ge(()=>h.getContrastText(h.info.main))),I(h.Alert,"successFilledColor",Ge(()=>h.getContrastText(h.success.main))),I(h.Alert,"warningFilledColor",Ge(()=>h.getContrastText(h.warning.main))),I(h.Alert,"errorStandardBg",E(ye,h.error.light,.9)),I(h.Alert,"infoStandardBg",E(ye,h.info.light,.9)),I(h.Alert,"successStandardBg",E(ye,h.success.light,.9)),I(h.Alert,"warningStandardBg",E(ye,h.warning.light,.9)),I(h.Alert,"errorIconColor",P("palette-error-main")),I(h.Alert,"infoIconColor",P("palette-info-main")),I(h.Alert,"successIconColor",P("palette-success-main")),I(h.Alert,"warningIconColor",P("palette-warning-main")),I(h.AppBar,"defaultBg",P("palette-grey-100")),I(h.Avatar,"defaultBg",P("palette-grey-400")),I(h.Button,"inheritContainedBg",P("palette-grey-300")),I(h.Button,"inheritContainedHoverBg",P("palette-grey-A100")),I(h.Chip,"defaultBorder",P("palette-grey-400")),I(h.Chip,"defaultAvatarColor",P("palette-grey-700")),I(h.Chip,"defaultIconColor",P("palette-grey-700")),I(h.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),I(h.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),I(h.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),I(h.LinearProgress,"primaryBg",E(ye,h.primary.main,.62)),I(h.LinearProgress,"secondaryBg",E(ye,h.secondary.main,.62)),I(h.LinearProgress,"errorBg",E(ye,h.error.main,.62)),I(h.LinearProgress,"infoBg",E(ye,h.info.main,.62)),I(h.LinearProgress,"successBg",E(ye,h.success.main,.62)),I(h.LinearProgress,"warningBg",E(ye,h.warning.main,.62)),I(h.Skeleton,"bg",w?E(dt,h.text.primary,.11):`rgba(${P("palette-text-primaryChannel")} / 0.11)`),I(h.Slider,"primaryTrack",E(ye,h.primary.main,.62)),I(h.Slider,"secondaryTrack",E(ye,h.secondary.main,.62)),I(h.Slider,"errorTrack",E(ye,h.error.main,.62)),I(h.Slider,"infoTrack",E(ye,h.info.main,.62)),I(h.Slider,"successTrack",E(ye,h.success.main,.62)),I(h.Slider,"warningTrack",E(ye,h.warning.main,.62));const R=w?E(ge,h.background.default,.6825):gn(h.background.default,.8);I(h.SnackbarContent,"bg",R),I(h.SnackbarContent,"color",Ge(()=>w?Or.text.primary:h.getContrastText(R))),I(h.SpeedDialAction,"fabHoverBg",gn(h.background.paper,.15)),I(h.StepConnector,"border",P("palette-grey-400")),I(h.StepContent,"border",P("palette-grey-400")),I(h.Switch,"defaultColor",P("palette-common-white")),I(h.Switch,"defaultDisabledColor",P("palette-grey-100")),I(h.Switch,"primaryDisabledColor",E(ye,h.primary.main,.62)),I(h.Switch,"secondaryDisabledColor",E(ye,h.secondary.main,.62)),I(h.Switch,"errorDisabledColor",E(ye,h.error.main,.62)),I(h.Switch,"infoDisabledColor",E(ye,h.info.main,.62)),I(h.Switch,"successDisabledColor",E(ye,h.success.main,.62)),I(h.Switch,"warningDisabledColor",E(ye,h.warning.main,.62)),I(h.TableCell,"border",E(ye,E(dt,h.divider,1),.88)),I(h.Tooltip,"bg",E(dt,h.grey[700],.92))}if(h.mode==="dark"){I(h.Alert,"errorColor",E(ye,h.error.light,.6)),I(h.Alert,"infoColor",E(ye,h.info.light,.6)),I(h.Alert,"successColor",E(ye,h.success.light,.6)),I(h.Alert,"warningColor",E(ye,h.warning.light,.6)),I(h.Alert,"errorFilledBg",P("palette-error-dark")),I(h.Alert,"infoFilledBg",P("palette-info-dark")),I(h.Alert,"successFilledBg",P("palette-success-dark")),I(h.Alert,"warningFilledBg",P("palette-warning-dark")),I(h.Alert,"errorFilledColor",Ge(()=>h.getContrastText(h.error.dark))),I(h.Alert,"infoFilledColor",Ge(()=>h.getContrastText(h.info.dark))),I(h.Alert,"successFilledColor",Ge(()=>h.getContrastText(h.success.dark))),I(h.Alert,"warningFilledColor",Ge(()=>h.getContrastText(h.warning.dark))),I(h.Alert,"errorStandardBg",E(ge,h.error.light,.9)),I(h.Alert,"infoStandardBg",E(ge,h.info.light,.9)),I(h.Alert,"successStandardBg",E(ge,h.success.light,.9)),I(h.Alert,"warningStandardBg",E(ge,h.warning.light,.9)),I(h.Alert,"errorIconColor",P("palette-error-main")),I(h.Alert,"infoIconColor",P("palette-info-main")),I(h.Alert,"successIconColor",P("palette-success-main")),I(h.Alert,"warningIconColor",P("palette-warning-main")),I(h.AppBar,"defaultBg",P("palette-grey-900")),I(h.AppBar,"darkBg",P("palette-background-paper")),I(h.AppBar,"darkColor",P("palette-text-primary")),I(h.Avatar,"defaultBg",P("palette-grey-600")),I(h.Button,"inheritContainedBg",P("palette-grey-800")),I(h.Button,"inheritContainedHoverBg",P("palette-grey-700")),I(h.Chip,"defaultBorder",P("palette-grey-700")),I(h.Chip,"defaultAvatarColor",P("palette-grey-300")),I(h.Chip,"defaultIconColor",P("palette-grey-300")),I(h.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),I(h.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),I(h.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),I(h.LinearProgress,"primaryBg",E(ge,h.primary.main,.5)),I(h.LinearProgress,"secondaryBg",E(ge,h.secondary.main,.5)),I(h.LinearProgress,"errorBg",E(ge,h.error.main,.5)),I(h.LinearProgress,"infoBg",E(ge,h.info.main,.5)),I(h.LinearProgress,"successBg",E(ge,h.success.main,.5)),I(h.LinearProgress,"warningBg",E(ge,h.warning.main,.5)),I(h.Skeleton,"bg",w?E(dt,h.text.primary,.13):`rgba(${P("palette-text-primaryChannel")} / 0.13)`),I(h.Slider,"primaryTrack",E(ge,h.primary.main,.5)),I(h.Slider,"secondaryTrack",E(ge,h.secondary.main,.5)),I(h.Slider,"errorTrack",E(ge,h.error.main,.5)),I(h.Slider,"infoTrack",E(ge,h.info.main,.5)),I(h.Slider,"successTrack",E(ge,h.success.main,.5)),I(h.Slider,"warningTrack",E(ge,h.warning.main,.5));const R=w?E(ye,h.background.default,.985):gn(h.background.default,.98);I(h.SnackbarContent,"bg",R),I(h.SnackbarContent,"color",Ge(()=>w?Wa.text.primary:h.getContrastText(R))),I(h.SpeedDialAction,"fabHoverBg",gn(h.background.paper,.15)),I(h.StepConnector,"border",P("palette-grey-600")),I(h.StepContent,"border",P("palette-grey-600")),I(h.Switch,"defaultColor",P("palette-grey-300")),I(h.Switch,"defaultDisabledColor",P("palette-grey-600")),I(h.Switch,"primaryDisabledColor",E(ge,h.primary.main,.55)),I(h.Switch,"secondaryDisabledColor",E(ge,h.secondary.main,.55)),I(h.Switch,"errorDisabledColor",E(ge,h.error.main,.55)),I(h.Switch,"infoDisabledColor",E(ge,h.info.main,.55)),I(h.Switch,"successDisabledColor",E(ge,h.success.main,.55)),I(h.Switch,"warningDisabledColor",E(ge,h.warning.main,.55)),I(h.TableCell,"border",E(ge,E(dt,h.divider,1),.68)),I(h.Tooltip,"bg",E(dt,h.grey[700],.92))}Je(h.background,"default"),Je(h.background,"paper"),Je(h.common,"background"),Je(h.common,"onBackground"),Je(h,"divider"),Object.keys(h).forEach(R=>{const $=h[R];R!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&I(h[R],"mainChannel",Xt(Jt($.main))),$.light&&I(h[R],"lightChannel",Xt(Jt($.light))),$.dark&&I(h[R],"darkChannel",Xt(Jt($.dark))),$.contrastText&&I(h[R],"contrastTextChannel",Xt(Jt($.contrastText))),R==="text"&&(Je(h[R],"primary"),Je(h[R],"secondary")),R==="action"&&($.active&&Je(h[R],"active"),$.selected&&Je(h[R],"selected")))})}),D=t.reduce((_,h)=>Ct(_,h),D);const M={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:Rc(D),enableContrastVars:i},{vars:V,generateThemeVars:B,generateStyleSheets:U}=Jl(D,M);return D.vars=V,Object.entries(D.colorSchemes[D.defaultColorScheme]).forEach(([_,h])=>{D[_]=h}),D.generateThemeVars=B,D.generateStyleSheets=U,D.generateSpacing=function(){return Ma(d.spacing,jr(this))},D.getColorSchemeSelector=Ql(c),D.spacing=D.generateSpacing(),D.shouldSkipGeneratingVar=l,D.unstable_sxConfig={...ln,...d==null?void 0:d.unstable_sxConfig},D.unstable_sx=function(h){return _t({sx:h,theme:this})},D.toRuntimeSource=Ha,D}function Fo(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:zr({...n===!0?{}:n.palette,mode:t})})}function Nc(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...i}=e,l=a||"light",c=o==null?void 0:o[l],u={...o,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Dr(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const p=Dr({...e,palette:d},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Fo(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Fo(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),Ic({...i,colorSchemes:u,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const Fr=Nc(),qn="$$material";function Wr(){const e=$a(Fr);return process.env.NODE_ENV!=="production"&&x.useDebugValue(e),e[qn]||e}function Ac(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const qa=e=>Ac(e)&&e!=="classes",Z=Rl({themeId:qn,defaultTheme:Fr,rootShouldForwardProp:qa});function _c(){return cl}const qe=Gl;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Fe(e){return Yl(e)}function je(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=_e(e,o,n)}),r}function jc(e){return _e("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Vc=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${re(t)}`,`fontSize${re(n)}`]};return Ue(o,jc,r)},Lc=Z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${re(n.color)}`],t[`fontSize${re(n.fontSize)}`]]}})(qe(({theme:e})=>{var t,n,r,o,a,i,l,c,u,d,p,m,y,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:f=>!f.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,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(([,f])=>f&&f.main).map(([f])=>{var v,S;return{props:{color:f},style:{color:(S=(v=(e.vars??e).palette)==null?void 0:v[f])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(m=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:m.active}},{props:{color:"disabled"},style:{color:(g=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Rn=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:m="0 0 24 24",...y}=r,g=x.isValidElement(o)&&o.type==="svg",f={...r,color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:g},v={};d||(v.viewBox=m);const S=Vc(f);return b.jsxs(Lc,{as:l,className:ae(S.root,a),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...y,...g&&o.props,ownerState:f,children:[g?o.props.children:o,p?b.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Rn.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});Rn.muiName="SvgIcon";function De(e,t){function n(r,o){return b.jsx(Rn,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Rn.muiName,x.memo(x.forwardRef(n))}function Ka(e,t){var n,r,o;return x.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}const Bc=typeof window<"u"?x.useLayoutEffect:x.useEffect;let Wo=0;function zc(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(Wo+=1,n(`mui-${Wo}`))},[t]),r}const Fc={...x},Uo=Fc.useId;function Xa(e){if(Uo!==void 0){const t=Uo();return e??t}return zc(e)}function Wc(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const a=o||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function wn(e){const t=x.useRef(e);return Bc(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function jt(...e){const t=x.useRef(void 0),n=x.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,l=i(r);return typeof l=="function"?l:()=>{i(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a==null?void 0:a())}},e);return x.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const Uc=De(b.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Hc=De(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Yc=De(b.jsx("path",{d:"M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zM7 10h5v5H7z"}),"Today"),Mn=De(b.jsx("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"}),"CalendarMonth"),Gc=De(b.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),Ja=De(b.jsx("path",{d:"M5.33 20H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h1.33c1.1 0 2 .9 2 2v12c0 1.1-.89 2-2 2M22 18V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2H20c1.11 0 2-.9 2-2m-7.33 0V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h1.33c1.1 0 2-.9 2-2"}),"ViewWeek"),Qa=De(b.jsx("path",{d:"M2 21h19v-3H2zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1M2 3v3h19V3z"}),"ViewDay"),qc=[{icon:b.jsx(Mn,{}),name:"Month",value:"dayGridMonth"},{icon:b.jsx(Ja,{}),name:"Week",value:"timeGridWeek"},{icon:b.jsx(Qa,{}),name:"Day",value:"timeGridDay"}],Kc=({onPrev:e,onToday:t,onNext:n,onDatePickerOpen:r,calendarView:o,onViewChange:a,currentTitle:i})=>{const l={dayGridMonth:b.jsx(Mn,{}),timeGridWeek:b.jsx(Ja,{}),timeGridDay:b.jsx(Qa,{})};return b.jsxs(Y.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1,px:1},children:[b.jsxs(Y.Box,{sx:{display:"flex",gap:1},children:[b.jsx(Y.Tooltip,{title:"Previous",children:b.jsx(Y.IconButton,{size:"small",onClick:e,children:b.jsx(Uc,{fontSize:"small"})})}),b.jsx(Y.Tooltip,{title:"Go to today",children:b.jsx(Y.IconButton,{size:"small",onClick:t,children:b.jsx(Yc,{fontSize:"small"})})}),b.jsx(Y.Tooltip,{title:"Select date",children:b.jsx(Y.IconButton,{size:"small",onClick:r,children:b.jsx(Mn,{fontSize:"small"})})}),b.jsx(Y.Tooltip,{title:"Next",children:b.jsx(Y.IconButton,{size:"small",onClick:n,children:b.jsx(Hc,{fontSize:"small"})})})]}),b.jsx(Y.Typography,{variant:"subtitle1",children:i}),b.jsx(Pt.SpeedDialButton,{actions:qc,value:o,onChange:a,icons:l,openIcon:b.jsx(Gc,{})})]})};function W(){return W=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},W.apply(null,arguments)}function Me({props:e,name:t}){return Nl({props:e,name:t,defaultTheme:Fr,themeId:qn})}function Ce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}const Xc=["localeText"],Pn=x.createContext(null);process.env.NODE_ENV!=="production"&&(Pn.displayName="MuiPickersAdapterContext");const Za=function(t){const{localeText:n}=t,r=Ce(t,Xc),{utils:o,localeText:a}=x.useContext(Pn)??{utils:void 0,localeText:void 0},i=Me({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:p,localeText:m}=i,y=x.useMemo(()=>W({},m,a,n),[m,a,n]),g=x.useMemo(()=>{if(!c)return o||null;const S=new c({locale:p,formats:u,instance:d});if(!S.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
98
|
+
`));return S},[c,p,u,d,o]),f=x.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),v=x.useMemo(()=>({utils:g,defaultDates:f,localeText:y}),[f,g,y]);return b.jsx(Pn.Provider,{value:v,children:l})};process.env.NODE_ENV!=="production"&&(Za.propTypes={adapterLocale:s.any,children:s.node,dateAdapter:s.func,dateFormats:s.shape({dayOfMonth:s.string,dayOfMonthFull:s.string,fullDate:s.string,fullTime:s.string,fullTime12h:s.string,fullTime24h:s.string,hours12h:s.string,hours24h:s.string,keyboardDate:s.string,keyboardDateTime:s.string,keyboardDateTime12h:s.string,keyboardDateTime24h:s.string,meridiem:s.string,minutes:s.string,month:s.string,monthShort:s.string,normalDate:s.string,normalDateWithWeekday:s.string,seconds:s.string,shortDate:s.string,weekday:s.string,weekdayShort:s.string,year:s.string}),dateLibInstance:s.any,localeText:s.object});const Jc=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:W({},e)}}}}),es={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Qc=es;Jc(es);const Bt=()=>{const e=x.useContext(Pn);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
|
|
99
|
+
`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
|
|
100
|
+
`));const t=x.useMemo(()=>W({},Qc,e.localeText),[e.localeText]);return x.useMemo(()=>W({},e,{localeText:t}),[e,t])},Re=()=>Bt().utils,Kn=()=>Bt().defaultDates,Xn=e=>{const t=Re(),n=x.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current},Gt=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Zc=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let a;if(e!=null)a=e;else if(o.includes(t))a=t;else if(o.length>0)a=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:a}},$n=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},tn=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:a,utils:i,timezone:l})=>{const c=$n(i,i.date(void 0,l),e);n&&i.isBefore(o,c)&&(o=c),t&&i.isAfter(r,c)&&(r=c);let u=e,d=e;for(i.isBefore(e,o)&&(u=o,d=null),i.isAfter(e,r)&&(d&&(d=r),u=null);u||d;){if(u&&i.isAfter(u,r)&&(u=null),d&&i.isBefore(d,o)&&(d=null),u){if(!a(u))return u;u=i.addDays(u,1)}if(d){if(!a(d))return d;d=i.addDays(d,-1)}}return null},eu=(e,t)=>t==null||!e.isValid(t)?null:t,Ke=(e,t,n)=>t==null||!e.isValid(t)?n:t,tu=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),nu=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},ts=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),ru=["year","month","day"],Ho=e=>ru.includes(e),ou=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Gt(n,["year"])?o.year:Gt(n,["month"])?o.month:Gt(n,["day"])?o.dayOfMonth:Gt(n,["month","year"])?`${o.month} ${o.year}`:Gt(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate},au=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))};function su(e){return typeof e.main=="string"}function iu(e,t=[]){if(!su(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function et(e=[]){return([,t])=>t&&iu(t,e)}function lu(e){return _e("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const cu={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},uu=_c(),du=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,l={root:["root",a,e.align!=="inherit"&&`align${re(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ue(l,lu,i)},fu=Z("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${re(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(qe(({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(et()).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${re(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}}]}})),Yo={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},wt=x.forwardRef(function(t,n){const{color:r,...o}=Fe({props:t,name:"MuiTypography"}),a=!cu[r],i=uu({...o,...a&&{color:r}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:m=!1,variant:y="body1",variantMapping:g=Yo,...f}=i,v={...i,align:l,color:r,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:m,variant:y,variantMapping:g},S=u||(m?"p":g[y]||Yo[y])||"span",T=du(v);return b.jsx(fu,{as:S,ref:n,className:ae(T.root,c),...f,ownerState:v,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(wt.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});function Pe(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",l=!0;for(let c=0;c<a.length;c+=1){const u=a[c];u&&(i+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(i+=" "+n[u]))}r[o]=i}return r}const St=typeof window<"u"?x.useLayoutEffect:x.useEffect;let Go=0;function pu(e){const[t,n]=x.useState(e),r=t;return x.useEffect(()=>{t==null&&(Go+=1,n(`mui-${Go}`))},[t]),r}const hu={...x},qo=hu.useId;function mu(e){return qo!==void 0?qo():pu(e)}function Vt({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(e!==void 0),[a,i]=x.useState(t),l=o?e:a;if(process.env.NODE_ENV!=="production"){x.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(`
|
|
101
|
+
`))},[r,n,e]);const{current:u}=x.useRef(t);x.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(`
|
|
102
|
+
`))},[JSON.stringify(t)])}const c=x.useCallback(u=>{o||i(u)},[]);return[l,c]}function ue(e){const t=x.useRef(e);return St(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function Ur(...e){const t=x.useRef(void 0),n=x.useCallback(r=>{const o=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const i=a,l=i(r);return typeof l=="function"?l:()=>{i(null)}}return a.current=r,()=>{a.current=null}});return()=>{o.forEach(a=>a==null?void 0:a())}},e);return x.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const Ko=e=>e,gu=()=>{let e=Ko;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ko}}},yu=gu(),bu={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 $e(e,t,n="Mui"){const r=bu[t];return r?`${n}-${r}`:`${yu.generate(e)}-${t}`}function Ie(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=$e(e,o,n)}),r}function vu(e){return typeof e=="string"}function xu(e,t,n){return e===void 0||vu(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Cu(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 Xo(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 Su(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=ae(n==null?void 0:n.className,a,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},f={...n,...o,...r};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const i=Cu({...o,...r}),l=Xo(r),c=Xo(o),u=t(i),d=ae(u==null?void 0:u.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),p={...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,...c,...l};return d.length>0&&(m.className=d),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:u.ref}}function wu(e,t,n){return typeof e=="function"?e(t,n):e}function Ae(e){var p;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:wu(n,r),{props:l,internalRef:c}=Su({...a,externalSlotProps:i}),u=Ur(c,i==null?void 0:i.ref,(p=e.additionalProps)==null?void 0:p.ref);return xu(t,{...l,ref:u},r)}function Eu(e){return $e("MuiPickersToolbar",e)}Ie("MuiPickersToolbar",["root","content"]);const Tu=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],Ou=e=>{const{classes:t}=e;return Pe({root:["root"],content:["content"]},Eu,t)},Du=Z("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),ku=Z("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Ru=x.forwardRef(function(t,n){const r=Me({props:t,name:"MuiPickersToolbar"}),{children:o,className:a,toolbarTitle:i,hidden:l,titleId:c}=r,u=Ce(r,Tu),d=r,p=Ou(d);return l?null:b.jsxs(Du,W({ref:n,className:ae(p.root,a),ownerState:d},u,{children:[b.jsx(wt,{color:"text.secondary",variant:"overline",id:c,children:i}),b.jsx(ku,{className:p.content,ownerState:d,children:o})]}))}),Jn=()=>Bt().localeText;function Mu(e){return $e("MuiDatePickerToolbar",e)}Ie("MuiDatePickerToolbar",["root","title"]);const Pu=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],$u=e=>{const{classes:t}=e;return Pe({root:["root"],title:["title"]},Mu,t)},Iu=Z(Ru,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nu=Z(wt,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),ns=x.forwardRef(function(t,n){const r=Me({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:a,toolbarFormat:i,toolbarPlaceholder:l="––",views:c,className:u}=r,d=Ce(r,Pu),p=Re(),m=Jn(),y=$u(r),g=x.useMemo(()=>{if(!o)return l;const v=ou(p,{format:i,views:c});return p.formatByString(o,v)},[o,i,l,p,c]),f=r;return b.jsx(Iu,W({ref:n,toolbarTitle:m.datePickerToolbarTitle,isLandscape:a,className:ae(y.root,u)},d,{children:b.jsx(Nu,{variant:"h4",align:a?"left":"center",ownerState:f,className:y.title,children:g})}))});process.env.NODE_ENV!=="production"&&(ns.propTypes={classes:s.object,className:s.string,disabled:s.bool,hidden:s.bool,isLandscape:s.bool.isRequired,onChange:s.func.isRequired,onViewChange:s.func.isRequired,readOnly:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleId:s.string,toolbarFormat:s.string,toolbarPlaceholder:s.node,value:s.object,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});function Au(e,t){const n=Re(),r=Kn(),o=Me({props:e,name:t}),a=x.useMemo(()=>{var i;return((i=o.localeText)==null?void 0:i.toolbarTitle)==null?o.localeText:W({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return W({},o,{localeText:a},Zc({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:Ke(n,o.minDate,r.minDate),maxDate:Ke(n,o.maxDate,r.maxDate),slots:W({toolbar:ns},o.slots)})}const _u=["hours","minutes","seconds"],ju=e=>_u.includes(e),Jo=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Vu=(e,t)=>(n,r)=>e?t.isAfter(n,r):Jo(n,t)>Jo(r,t),Ze={year:1,month:2,day:3,minutes:5,seconds:6,milliseconds:7},qt=(e,t,n)=>{if(t===Ze.year)return e.startOfYear(n);if(t===Ze.month)return e.startOfMonth(n);if(t===Ze.day)return e.startOfDay(n);let r=n;return t<Ze.minutes&&(r=e.setMinutes(r,0)),t<Ze.seconds&&(r=e.setSeconds(r,0)),t<Ze.milliseconds&&(r=e.setMilliseconds(r,0)),r},Lu=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let a=o?o():qt(t,n,ts(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,a)&&(a=qt(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,a)&&(a=qt(t,n,e.maxDate));const i=Vu(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,a)&&(a=qt(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:$n(t,a,e.minTime))),e.maxTime!=null&&i(a,e.maxTime)&&(a=qt(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:$n(t,a,e.maxTime))),a},Bu=["value","referenceDate"],lt={emptyValue:null,getTodayValue:ts,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=Ce(e,Bu);return t!=null&&r.utils.isValid(t)?t:n??Lu(r)},cleanValue:eu,areValuesEqual:tu,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Hr=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:a,shouldDisableYear:i,disablePast:l,disableFuture:c}=e,u=r.utils.date(void 0,n),d=Ke(r.utils,e.minDate,r.defaultDates.minDate),p=Ke(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(a&&a(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(c&&r.utils.isAfterDay(t,u)):return"disableFuture";case!!(l&&r.utils.isBeforeDay(t,u)):return"disablePast";case!!(d&&r.utils.isBeforeDay(t,d)):return"minDate";case!!(p&&r.utils.isAfterDay(t,p)):return"maxDate";default:return null}};Hr.valueManager=lt;function zu(e){const{props:t,validator:n,value:r,timezone:o,onError:a}=e,i=Bt(),l=x.useRef(n.valueManager.defaultErrorState),c=n({adapter:i,value:r,timezone:o,props:t}),u=n.valueManager.hasError(c);x.useEffect(()=>{a&&!n.valueManager.isSameError(c,l.current)&&a(c,r),l.current=c},[n,a,c,r]);const d=ue(p=>n({adapter:i,value:p,timezone:o,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const rs=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i,timezone:l})=>{const c=Bt();return x.useCallback(u=>Hr({adapter:c,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:a,disablePast:i}})!==null,[c,e,t,n,r,o,a,i,l])},Fu=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return W({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const a=o.newTimezone;if(n.getTimezone(r.currentMonth)===a)return r;let i=n.setTimezone(r.currentMonth,a);return n.getMonth(i)!==n.getMonth(r.currentMonth)&&(i=n.setMonth(i,n.getMonth(r.currentMonth))),W({},r,{currentMonth:i})}case"finishMonthSwitchingAnimation":return W({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const a=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return W({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Wu=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:a=!1,maxDate:i,minDate:l,onMonthChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:p}=e,m=Re(),y=x.useRef(Fu(!!u,a,m)).current,g=x.useMemo(()=>lt.getInitialReferenceValue({value:t,utils:m,timezone:p,props:e,referenceDate:n,granularity:Ze.day}),[n,p]),[f,v]=x.useReducer(y,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:m.startOfMonth(g),slideDirection:"left"});x.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:m.getTimezone(g)})},[g,m]);const S=x.useCallback(D=>{v(W({type:"changeMonth"},D)),c&&c(D.newMonth)},[c]),T=x.useCallback(D=>{const M=D;m.isSameMonth(M,f.currentMonth)||S({newMonth:m.startOfMonth(M),direction:m.isAfterDay(M,f.currentMonth)?"left":"right"})},[f.currentMonth,S,m]),k=rs({shouldDisableDate:d,minDate:l,maxDate:i,disableFuture:r,disablePast:o,timezone:p}),w=x.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),O=ue((D,M)=>{k(D)||v({type:"changeFocusedDay",focusedDay:D,withoutMonthSwitchingAnimation:M})});return{referenceDate:g,calendarState:f,changeMonth:T,changeFocusedDay:O,isDateDisabled:k,onMonthSwitchingAnimationEnd:w,handleChangeMonth:S}};function kr(e,t){return kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},kr(e,t)}function Yr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kr(e,t)}function Uu(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Hu(e,t){e.classList?e.classList.add(t):Uu(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Qo(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Yu(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Qo(e.className,t):e.setAttribute("class",Qo(e.className&&e.className.baseVal||"",t))}const Zo={disabled:!1};var Gu=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,qu=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})]):null;const In=oe.createContext(null);var os=function(t){return t.scrollTop},Qt="unmounted",mt="exited",gt="entering",Mt="entered",Rr="exiting",He=function(e){Yr(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,c;return a.appearStatus=null,r.in?l?(c=mt,a.appearStatus=gt):c=Mt:r.unmountOnExit||r.mountOnEnter?c=Qt:c=mt,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Qt?{status:mt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==gt&&i!==Mt&&(a=gt):(i===gt||i===Mt)&&(a=Rr)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===gt){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:dn.findDOMNode(this);i&&os(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mt&&this.setState({status:Qt})},n.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[dn.findDOMNode(this),l],u=c[0],d=c[1],p=this.getTimeouts(),m=l?p.appear:p.enter;if(!o&&!i||Zo.disabled){this.safeSetState({status:Mt},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:gt},function(){a.props.onEntering(u,d),a.onTransitionEnd(m,function(){a.safeSetState({status:Mt},function(){a.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:dn.findDOMNode(this);if(!a||Zo.disabled){this.safeSetState({status:mt},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Rr},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:mt},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:dn.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Qt)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=Ce(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return oe.createElement(In.Provider,{value:null},typeof i=="function"?i(o,l):oe.cloneElement(oe.Children.only(i),l))},t}(oe.Component);He.contextType=In;He.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,r,o,a){var i=e[t];return s.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,a)}}),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=Gu;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];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 Rt(){}He.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rt,onEntering:Rt,onEntered:Rt,onExit:Rt,onExiting:Rt,onExited:Rt};He.UNMOUNTED=Qt;He.EXITED=mt;He.ENTERING=gt;He.ENTERED=Mt;He.EXITING=Rr;var Ku=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Hu(t,r)})},gr=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Yu(t,r)})},Gr=function(e){Yr(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return r=e.call.apply(e,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,c){var u=r.resolveArguments(l,c),d=u[0],p=u[1];r.removeClasses(d,"exit"),r.addClass(d,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,c)},r.onEntering=function(l,c){var u=r.resolveArguments(l,c),d=u[0],p=u[1],m=p?"appear":"enter";r.addClass(d,m,"active"),r.props.onEntering&&r.props.onEntering(l,c)},r.onEntered=function(l,c){var u=r.resolveArguments(l,c),d=u[0],p=u[1],m=p?"appear":"enter";r.removeClasses(d,m),r.addClass(d,m,"done"),r.props.onEntered&&r.props.onEntered(l,c)},r.onExit=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var c=r.resolveArguments(l),u=c[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,c){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,c]},r.getClassNames=function(l){var c=r.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",p=u?""+d+l:c[l],m=u?p+"-active":c[l+"Active"],y=u?p+"-done":c[l+"Done"];return{baseClassName:p,activeClassName:m,doneClassName:y}},r}var n=t.prototype;return n.addClass=function(o,a,i){var l=this.getClassNames(a)[i+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;a==="appear"&&i==="done"&&u&&(l+=" "+u),i==="active"&&o&&os(o),l&&(this.appliedClasses[a][i]=l,Ku(o,l))},n.removeClasses=function(o,a){var i=this.appliedClasses[a],l=i.base,c=i.active,u=i.done;this.appliedClasses[a]={},l&&gr(o,l),c&&gr(o,c),u&&gr(o,u)},n.render=function(){var o=this.props;o.classNames;var a=Ce(o,["classNames"]);return oe.createElement(He,W({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(oe.Component);Gr.defaultProps={classNames:""};Gr.propTypes=process.env.NODE_ENV!=="production"?W({},He.propTypes,{classNames:qu,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function Xu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qr(e,t){var n=function(a){return t&&oe.isValidElement(a)?t(a):a},r=Object.create(null);return e&&oe.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Ju(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 a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var i,l={};for(var c in t){if(r[c])for(i=0;i<r[c].length;i++){var u=r[c][i];l[r[c][i]]=n(u)}l[c]=n(c)}for(i=0;i<o.length;i++)l[o[i]]=n(o[i]);return l}function bt(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Qu(e,t){return qr(e.children,function(n){return oe.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:bt(n,"appear",e),enter:bt(n,"enter",e),exit:bt(n,"exit",e)})})}function Zu(e,t,n){var r=qr(e.children),o=Ju(t,r);return Object.keys(o).forEach(function(a){var i=o[a];if(oe.isValidElement(i)){var l=a in t,c=a in r,u=t[a],d=oe.isValidElement(u)&&!u.props.in;c&&(!l||d)?o[a]=oe.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:bt(i,"exit",e),enter:bt(i,"enter",e)}):!c&&l&&!d?o[a]=oe.cloneElement(i,{in:!1}):c&&l&&oe.isValidElement(u)&&(o[a]=oe.cloneElement(i,{onExited:n.bind(null,i),in:u.props.in,exit:bt(i,"exit",e),enter:bt(i,"enter",e)}))}}),o}var ed=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},td={component:"div",childFactory:function(t){return t}},un=function(e){Yr(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=a.handleExited.bind(Xu(a));return a.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},a}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,a){var i=a.children,l=a.handleExited,c=a.firstRender;return{children:c?Qu(o,l):Zu(o,i,l),firstRender:!1}},n.handleExited=function(o,a){var i=qr(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(l){var c=W({},l.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,a=o.component,i=o.childFactory,l=Ce(o,["component","childFactory"]),c=this.state.contextValue,u=ed(this.state.children).map(i);return delete l.appear,delete l.enter,delete l.exit,a===null?oe.createElement(In.Provider,{value:c},u):oe.createElement(In.Provider,{value:c},oe.createElement(a,l,u))},t}(oe.Component);un.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};un.defaultProps=td;function zt(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function nd(e){const{prototype:t={}}=e;return!!t.isReactComponent}function as(e,t,n,r,o){const a=e[t],i=o||t;if(a==null||typeof window>"u")return null;let l;const c=a.type;return typeof c=="function"&&!nd(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ss=zt(s.element,as);ss.isRequired=zt(s.element.isRequired,as);function rd(e){var t;return parseInt(x.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const od=e=>e.scrollTop;function ea(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}}const ad={entering:{opacity:1},entered:{opacity:1}},Kr=x.forwardRef(function(t,n){const r=Wr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:m,onExit:y,onExited:g,onExiting:f,style:v,timeout:S=o,TransitionComponent:T=He,...k}=t,w=x.useRef(null),O=jt(w,rd(l),n),D=E=>R=>{if(E){const $=w.current;R===void 0?E($):E($,R)}},M=D(m),V=D((E,R)=>{od(E);const $=ea({style:v,timeout:S,easing:c},{mode:"enter"});E.style.webkitTransition=r.transitions.create("opacity",$),E.style.transition=r.transitions.create("opacity",$),d&&d(E,R)}),B=D(p),U=D(f),_=D(E=>{const R=ea({style:v,timeout:S,easing:c},{mode:"exit"});E.style.webkitTransition=r.transitions.create("opacity",R),E.style.transition=r.transitions.create("opacity",R),y&&y(E)}),h=D(g),P=E=>{a&&a(w.current,E)};return b.jsx(T,{appear:i,in:u,nodeRef:w,onEnter:V,onEntered:B,onEntering:M,onExit:_,onExited:h,onExiting:U,addEndListener:P,timeout:S,...k,children:(E,{ownerState:R,...$})=>x.cloneElement(l,{style:{opacity:0,visibility:E==="exited"&&!u?"hidden":void 0,...ad[E],...v,...l.props.style},ref:O,...$})})});process.env.NODE_ENV!=="production"&&(Kr.propTypes={addEndListener:s.func,appear:s.bool,children:ss.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})])});const sd=e=>$e("MuiPickersFadeTransitionGroup",e);Ie("MuiPickersFadeTransitionGroup",["root"]);const id=e=>{const{classes:t}=e;return Pe({root:["root"]},sd,t)},ld=Z(un,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function is(e){const t=Me({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=id(t),l=Wr();return o?n:b.jsx(ld,{className:ae(i.root,r),children:b.jsx(Kr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},a)})}const cd=s.oneOfType([s.func,s.object]);function ud(e){const{prototype:t={}}=e;return!!t.isReactComponent}function dd(e,t,n,r,o){const a=e[t],i=o||t;if(a==null||typeof window>"u")return null;let l;return typeof a=="function"&&!ud(a)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ls=zt(s.elementType,dd);function ta(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
103
|
+
`))}return!1}const na={};function cs(e,t){const n=x.useRef(na);return n.current===na&&(n.current=e(t)),n}class Nn{constructor(){Wt(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 Nn}static use(){const t=cs(Nn.create).current,[n,r]=x.useState(!1);return t.shouldMount=n,t.setShouldMount=r,x.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=pd(),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 fd(){return Nn.use()}function pd(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}const hd=[];function md(e){x.useEffect(e,hd)}class Xr{constructor(){Wt(this,"currentId",null);Wt(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Wt(this,"disposeEffect",()=>this.clear)}static create(){return new Xr}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function gd(){const e=cs(Xr.create).current;return md(e.disposeEffect),e}function us(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:c,timeout:u}=e,[d,p]=x.useState(!1),m=ae(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},g=ae(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&p(!0),x.useEffect(()=>{if(!l&&c!=null){const f=setTimeout(c,u);return()=>{clearTimeout(f)}}},[c,l,u]),b.jsx("span",{className:m,style:y,children:b.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(us.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 Le=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Mr=550,yd=80,bd=ct.keyframes`
|
|
104
|
+
0% {
|
|
105
|
+
transform: scale(0);
|
|
106
|
+
opacity: 0.1;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
100% {
|
|
110
|
+
transform: scale(1);
|
|
111
|
+
opacity: 0.3;
|
|
112
|
+
}
|
|
113
|
+
`,vd=ct.keyframes`
|
|
114
|
+
0% {
|
|
115
|
+
opacity: 1;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
100% {
|
|
119
|
+
opacity: 0;
|
|
120
|
+
}
|
|
121
|
+
`,xd=ct.keyframes`
|
|
122
|
+
0% {
|
|
123
|
+
transform: scale(1);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
50% {
|
|
127
|
+
transform: scale(0.92);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
100% {
|
|
131
|
+
transform: scale(1);
|
|
132
|
+
}
|
|
133
|
+
`,Cd=Z("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Sd=Z(us,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
134
|
+
opacity: 0;
|
|
135
|
+
position: absolute;
|
|
136
|
+
|
|
137
|
+
&.${Le.rippleVisible} {
|
|
138
|
+
opacity: 0.3;
|
|
139
|
+
transform: scale(1);
|
|
140
|
+
animation-name: ${bd};
|
|
141
|
+
animation-duration: ${Mr}ms;
|
|
142
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&.${Le.ripplePulsate} {
|
|
146
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
& .${Le.child} {
|
|
150
|
+
opacity: 1;
|
|
151
|
+
display: block;
|
|
152
|
+
width: 100%;
|
|
153
|
+
height: 100%;
|
|
154
|
+
border-radius: 50%;
|
|
155
|
+
background-color: currentColor;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
& .${Le.childLeaving} {
|
|
159
|
+
opacity: 0;
|
|
160
|
+
animation-name: ${vd};
|
|
161
|
+
animation-duration: ${Mr}ms;
|
|
162
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
& .${Le.childPulsate} {
|
|
166
|
+
position: absolute;
|
|
167
|
+
/* @noflip */
|
|
168
|
+
left: 0px;
|
|
169
|
+
top: 0;
|
|
170
|
+
animation-name: ${xd};
|
|
171
|
+
animation-duration: 2500ms;
|
|
172
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
173
|
+
animation-iteration-count: infinite;
|
|
174
|
+
animation-delay: 200ms;
|
|
175
|
+
}
|
|
176
|
+
`,ds=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...l}=r,[c,u]=x.useState([]),d=x.useRef(0),p=x.useRef(null);x.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const m=x.useRef(!1),y=gd(),g=x.useRef(null),f=x.useRef(null),v=x.useCallback(w=>{const{pulsate:O,rippleX:D,rippleY:M,rippleSize:V,cb:B}=w;u(U=>[...U,b.jsx(Sd,{classes:{ripple:ae(a.ripple,Le.ripple),rippleVisible:ae(a.rippleVisible,Le.rippleVisible),ripplePulsate:ae(a.ripplePulsate,Le.ripplePulsate),child:ae(a.child,Le.child),childLeaving:ae(a.childLeaving,Le.childLeaving),childPulsate:ae(a.childPulsate,Le.childPulsate)},timeout:Mr,pulsate:O,rippleX:D,rippleY:M,rippleSize:V},d.current)]),d.current+=1,p.current=B},[a]),S=x.useCallback((w={},O={},D=()=>{})=>{const{pulsate:M=!1,center:V=o||O.pulsate,fakeElement:B=!1}=O;if((w==null?void 0:w.type)==="mousedown"&&m.current){m.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(m.current=!0);const U=B?null:f.current,_=U?U.getBoundingClientRect():{width:0,height:0,left:0,top:0};let h,P,E;if(V||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)h=Math.round(_.width/2),P=Math.round(_.height/2);else{const{clientX:R,clientY:$}=w.touches&&w.touches.length>0?w.touches[0]:w;h=Math.round(R-_.left),P=Math.round($-_.top)}if(V)E=Math.sqrt((2*_.width**2+_.height**2)/3),E%2===0&&(E+=1);else{const R=Math.max(Math.abs((U?U.clientWidth:0)-h),h)*2+2,$=Math.max(Math.abs((U?U.clientHeight:0)-P),P)*2+2;E=Math.sqrt(R**2+$**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{v({pulsate:M,rippleX:h,rippleY:P,rippleSize:E,cb:D})},y.start(yd,()=>{g.current&&(g.current(),g.current=null)})):v({pulsate:M,rippleX:h,rippleY:P,rippleSize:E,cb:D})},[o,v,y]),T=x.useCallback(()=>{S({},{pulsate:!0})},[S]),k=x.useCallback((w,O)=>{if(y.clear(),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{k(w,O)});return}g.current=null,u(D=>D.length>0?D.slice(1):D),p.current=O},[y]);return x.useImperativeHandle(n,()=>({pulsate:T,start:S,stop:k}),[T,S,k]),b.jsx(Cd,{className:ae(Le.root,a.root,i),ref:f,...l,children:b.jsx(un,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(ds.propTypes={center:s.bool,classes:s.object,className:s.string});function wd(e){return _e("MuiButtonBase",e)}const Ed=je("MuiButtonBase",["root","disabled","focusVisible"]),Td=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ue({root:["root",t&&"disabled",n&&"focusVisible"]},wd,o);return n&&r&&(i.root+=` ${r}`),i},Od=Z("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ed.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Lt=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:f,onClick:v,onContextMenu:S,onDragLeave:T,onFocus:k,onFocusVisible:w,onKeyDown:O,onKeyUp:D,onMouseDown:M,onMouseLeave:V,onMouseUp:B,onTouchEnd:U,onTouchMove:_,onTouchStart:h,tabIndex:P=0,TouchRippleProps:E,touchRippleRef:R,type:$,...L}=r,J=x.useRef(null),ee=fd(),N=jt(ee.ref,R),[C,j]=x.useState(!1);u&&C&&j(!1),x.useImperativeHandle(o,()=>({focusVisible:()=>{j(!0),J.current.focus()}}),[]);const K=ee.shouldMount&&!d&&!u;x.useEffect(()=>{C&&m&&!d&&ee.pulsate()},[d,m,C,ee]);const G=Qe(ee,"start",M,p),Q=Qe(ee,"stop",S,p),F=Qe(ee,"stop",T,p),H=Qe(ee,"stop",B,p),q=Qe(ee,"stop",se=>{C&&se.preventDefault(),V&&V(se)},p),z=Qe(ee,"start",h,p),X=Qe(ee,"stop",U,p),le=Qe(ee,"stop",_,p),A=Qe(ee,"stop",se=>{ta(se.target)||j(!1),f&&f(se)},!1),ie=wn(se=>{J.current||(J.current=se.currentTarget),ta(se.target)&&(j(!0),w&&w(se)),k&&k(se)}),pe=()=>{const se=J.current;return c&&c!=="button"&&!(se.tagName==="A"&&se.href)},xe=wn(se=>{m&&!se.repeat&&C&&se.key===" "&&ee.stop(se,()=>{ee.start(se)}),se.target===se.currentTarget&&pe()&&se.key===" "&&se.preventDefault(),O&&O(se),se.target===se.currentTarget&&pe()&&se.key==="Enter"&&!u&&(se.preventDefault(),v&&v(se))}),ne=wn(se=>{m&&se.key===" "&&C&&!se.defaultPrevented&&ee.stop(se,()=>{ee.pulsate(se)}),D&&D(se),v&&se.target===se.currentTarget&&pe()&&se.key===" "&&!se.defaultPrevented&&v(se)});let ce=c;ce==="button"&&(L.href||L.to)&&(ce=g);const te={};ce==="button"?(te.type=$===void 0?"button":$,te.disabled=u):(!L.href&&!L.to&&(te.role="button"),u&&(te["aria-disabled"]=u));const de=jt(n,J),ke={...r,centerRipple:a,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:m,tabIndex:P,focusVisible:C},Xe=Td(ke);return b.jsxs(Od,{as:ce,className:ae(Xe.root,l),ownerState:ke,onBlur:A,onClick:v,onContextMenu:Q,onFocus:ie,onKeyDown:xe,onKeyUp:ne,onMouseDown:G,onMouseLeave:q,onMouseUp:H,onDragLeave:F,onTouchEnd:X,onTouchMove:le,onTouchStart:z,ref:de,tabIndex:u?-1:P,type:$,...te,...L,children:[i,K?b.jsx(ds,{ref:N,center:a,...E}):null]})});function Qe(e,t,n,r=!1){return wn(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(Lt.propTypes={action:cd,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:ls,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])});const on=36,Qn=2,Zn=320,Dd=280,Jr=336;function kd(e){return $e("MuiPickersDay",e)}const ft=Ie("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Rd=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],Md=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:a,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:l,classes:c}=e,u=i&&!l;return Pe({root:["root",t&&!u&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},kd,c)},fs=({theme:e})=>W({},e.typography.caption,{width:on,height:on,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${ft.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ft.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ft.disabled}:not(.${ft.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${ft.disabled}&.${ft.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Qn}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${ft.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),ps=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Pd=Z(Lt,{name:"MuiPickersDay",slot:"Root",overridesResolver:ps})(fs),$d=Z("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ps})(({theme:e})=>W({},fs({theme:e}),{opacity:0,pointerEvents:"none"})),Kt=()=>{},hs=x.forwardRef(function(t,n){const r=Me({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:a,day:i,disabled:l=!1,disableHighlightToday:c=!1,disableMargin:u=!1,isAnimating:d,onClick:p,onDaySelect:m,onFocus:y=Kt,onBlur:g=Kt,onKeyDown:f=Kt,onMouseDown:v=Kt,onMouseEnter:S=Kt,outsideCurrentMonth:T,selected:k=!1,showDaysOutsideCurrentMonth:w=!1,children:O,today:D=!1}=r,M=Ce(r,Rd),V=W({},r,{autoFocus:o,disabled:l,disableHighlightToday:c,disableMargin:u,selected:k,showDaysOutsideCurrentMonth:w,today:D}),B=Md(V),U=Re(),_=x.useRef(null),h=Ur(_,n);St(()=>{o&&!l&&!d&&!T&&_.current.focus()},[o,l,d,T]);const P=R=>{v(R),T&&R.preventDefault()},E=R=>{l||m(i),T&&R.currentTarget.focus(),p&&p(R)};return T&&!w?b.jsx($d,{className:ae(B.root,B.hiddenDaySpacingFiller,a),ownerState:V,role:M.role}):b.jsx(Pd,W({className:ae(B.root,a),ref:h,centerRipple:!0,disabled:l,tabIndex:k?0:-1,onKeyDown:R=>f(R,i),onFocus:R=>y(R,i),onBlur:R=>g(R,i),onMouseEnter:R=>S(R,i),onClick:E,onMouseDown:P},M,{ownerState:V,children:O||U.format(i,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(hs.propTypes={action:s.oneOfType([s.func,s.shape({current:s.shape({focusVisible:s.func.isRequired})})]),centerRipple:s.bool,classes:s.object,className:s.string,component:s.elementType,day:s.object.isRequired,disabled:s.bool,disableHighlightToday:s.bool,disableMargin:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,isAnimating:s.bool,isFirstVisibleCell:s.bool.isRequired,isLastVisibleCell:s.bool.isRequired,onBlur:s.func,onDaySelect:s.func.isRequired,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onMouseEnter:s.func,outsideCurrentMonth:s.bool.isRequired,selected:s.bool,showDaysOutsideCurrentMonth:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,today:s.bool,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})})])});const Id=x.memo(hs),Nd=e=>$e("MuiPickersSlideTransition",e),Ve=Ie("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Ad=["children","className","reduceAnimations","slideDirection","transKey","classes"],_d=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Pe(r,Nd,t)},jd=Z(un,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ve["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ve["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ve.slideEnterActive}`]:t.slideEnterActive},{[`.${Ve.slideExit}`]:t.slideExit},{[`.${Ve["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ve["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Ve["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ve["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ve.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ve.slideExit}`]:{transform:"translate(0%)"},[`& .${Ve["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ve["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Vd(e){const t=Me({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:a}=t,i=Ce(t,Ad),l=_d(t),c=Wr();if(o)return b.jsx("div",{className:ae(l.root,r),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return b.jsx(jd,{className:ae(l.root,r),childFactory:d=>x.cloneElement(d,{classNames:u}),role:"presentation",children:b.jsx(Gr,W({mountOnEnter:!0,unmountOnExit:!0,timeout:c.transitions.duration.complex,classNames:u},i,{children:n}),a)})}const Ld=e=>$e("MuiDayCalendar",e);Ie("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Bd=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],zd=["ownerState"],Fd=e=>{const{classes:t}=e;return Pe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Ld,t)},ms=(on+Qn*2)*6,Wd=Z("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ud=Z("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),Hd=Z(wt,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),Yd=Z(wt,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),Gd=Z(wt,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>W({},e.typography.caption,{width:on,height:on,padding:0,margin:`0 ${Qn}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),qd=Z("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:ms}),Kd=Z(Vd,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:ms}),Xd=Z("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Jd=Z("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Qn}px 0`,display:"flex",justifyContent:"center"});function Qd(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:a,currentMonthNumber:i,isViewFocused:l}=e,c=Ce(e,Bd);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:m,slots:y,slotProps:g,timezone:f}=t,v=Re(),S=Xn(f),T=r!==null&&v.isSameDay(n,r),k=o.some(h=>v.isSameDay(h,n)),w=v.isSameDay(n,S),O=(y==null?void 0:y.day)??Id,D=Ae({elementType:O,externalSlotProps:g==null?void 0:g.day,additionalProps:W({disableHighlightToday:d,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:p,"data-timestamp":v.toJsDate(n).valueOf()},c),ownerState:W({},t,{day:n,selected:k})}),M=Ce(D,zd),V=x.useMemo(()=>u||a(n),[u,a,n]),B=x.useMemo(()=>v.getMonth(n)!==i,[v,n,i]),U=x.useMemo(()=>{const h=v.startOfMonth(v.setMonth(n,i));return m?v.isSameDay(n,v.startOfWeek(h)):v.isSameDay(n,h)},[i,n,m,v]),_=x.useMemo(()=>{const h=v.endOfMonth(v.setMonth(n,i));return m?v.isSameDay(n,v.endOfWeek(h)):v.isSameDay(n,h)},[i,n,m,v]);return b.jsx(O,W({},M,{day:n,disabled:V,autoFocus:l&&T,today:w,outsideCurrentMonth:B,isFirstVisibleCell:U,isLastVisibleCell:_,selected:k,tabIndex:T?0:-1,"aria-selected":k,"aria-current":w?"date":void 0}))}function Zd(e){const t=Me({props:e,name:"MuiDayCalendar"}),n=Re(),{onFocusedDayChange:r,className:o,currentMonth:a,selectedDays:i,focusedDay:l,loading:c,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:d,readOnly:p,reduceAnimations:m,renderLoading:y=()=>b.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:f,disablePast:v,disableFuture:S,minDate:T,maxDate:k,shouldDisableDate:w,shouldDisableMonth:O,shouldDisableYear:D,dayOfWeekFormatter:M=ne=>n.format(ne,"weekdayShort").charAt(0).toUpperCase(),hasFocus:V,onFocusedViewChange:B,gridLabelId:U,displayWeekNumber:_,fixedWeekNumber:h,autoFocus:P,timezone:E}=t,R=Xn(E),$=Fd(t),L=cn(),J=rs({shouldDisableDate:w,shouldDisableMonth:O,shouldDisableYear:D,minDate:T,maxDate:k,disablePast:v,disableFuture:S,timezone:E}),ee=Jn(),[N,C]=Vt({name:"DayCalendar",state:"hasFocus",controlled:V,default:P??!1}),[j,K]=x.useState(()=>l||R),G=ue(ne=>{p||u(ne)}),Q=ne=>{J(ne)||(r(ne),K(ne),B==null||B(!0),C(!0))},F=ue((ne,ce)=>{switch(ne.key){case"ArrowUp":Q(n.addDays(ce,-7)),ne.preventDefault();break;case"ArrowDown":Q(n.addDays(ce,7)),ne.preventDefault();break;case"ArrowLeft":{const te=n.addDays(ce,L?1:-1),de=n.addMonths(ce,L?1:-1),ke=tn({utils:n,date:te,minDate:L?te:n.startOfMonth(de),maxDate:L?n.endOfMonth(de):te,isDateDisabled:J,timezone:E});Q(ke||te),ne.preventDefault();break}case"ArrowRight":{const te=n.addDays(ce,L?-1:1),de=n.addMonths(ce,L?-1:1),ke=tn({utils:n,date:te,minDate:L?n.startOfMonth(de):te,maxDate:L?te:n.endOfMonth(de),isDateDisabled:J,timezone:E});Q(ke||te),ne.preventDefault();break}case"Home":Q(n.startOfWeek(ce)),ne.preventDefault();break;case"End":Q(n.endOfWeek(ce)),ne.preventDefault();break;case"PageUp":Q(n.addMonths(ce,1)),ne.preventDefault();break;case"PageDown":Q(n.addMonths(ce,-1)),ne.preventDefault();break}}),H=ue((ne,ce)=>Q(ce)),q=ue((ne,ce)=>{N&&n.isSameDay(j,ce)&&(B==null||B(!1))}),z=n.getMonth(a),X=n.getYear(a),le=x.useMemo(()=>i.filter(ne=>!!ne).map(ne=>n.startOfDay(ne)),[n,i]),A=`${X}-${z}`,ie=x.useMemo(()=>x.createRef(),[A]),pe=x.useMemo(()=>{const ne=n.startOfMonth(a),ce=n.endOfMonth(a);return J(j)||n.isAfterDay(j,ce)||n.isBeforeDay(j,ne)?tn({utils:n,date:j,minDate:ne,maxDate:ce,disablePast:v,disableFuture:S,isDateDisabled:J,timezone:E}):j},[a,S,v,j,J,n,E]),xe=x.useMemo(()=>{const ne=n.getWeekArray(a);let ce=n.addMonths(a,1);for(;h&&ne.length<h;){const te=n.getWeekArray(ce),de=n.isSameDay(ne[ne.length-1][0],te[0][0]);te.slice(de?1:0).forEach(ke=>{ne.length<h&&ne.push(ke)}),ce=n.addMonths(ce,1)}return ne},[a,h,n]);return b.jsxs(Wd,{role:"grid","aria-labelledby":U,className:$.root,children:[b.jsxs(Ud,{role:"row",className:$.header,children:[_&&b.jsx(Yd,{variant:"caption",role:"columnheader","aria-label":ee.calendarWeekNumberHeaderLabel,className:$.weekNumberLabel,children:ee.calendarWeekNumberHeaderText}),au(n,R).map((ne,ce)=>b.jsx(Hd,{variant:"caption",role:"columnheader","aria-label":n.format(ne,"weekday"),className:$.weekDayLabel,children:M(ne)},ce.toString()))]}),c?b.jsx(qd,{className:$.loadingContainer,children:y()}):b.jsx(Kd,W({transKey:A,onExited:d,reduceAnimations:m,slideDirection:g,className:ae(o,$.slideTransition)},f,{nodeRef:ie,children:b.jsx(Xd,{ref:ie,role:"rowgroup",className:$.monthContainer,children:xe.map((ne,ce)=>b.jsxs(Jd,{role:"row",className:$.weekContainer,"aria-rowindex":ce+1,children:[_&&b.jsx(Gd,{className:$.weekNumber,role:"rowheader","aria-label":ee.calendarWeekNumberAriaLabelText(n.getWeekNumber(ne[0])),children:ee.calendarWeekNumberText(n.getWeekNumber(ne[0]))}),ne.map((te,de)=>b.jsx(Qd,{parentProps:t,day:te,selectedDays:le,focusableDay:pe,onKeyDown:F,onFocus:H,onBlur:q,onDaySelect:G,isDateDisabled:J,currentMonthNumber:z,isViewFocused:N,"aria-colindex":de+1},te.toString()))]},`week-${ne[0]}`))})}))]})}function ef(e){return $e("MuiPickersMonth",e)}const yn=Ie("MuiPickersMonth",["root","monthButton","disabled","selected"]),tf=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],nf=e=>{const{disabled:t,selected:n,classes:r}=e;return Pe({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},ef,r)},rf=Z("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),of=Z("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${yn.disabled}`]:t.disabled},{[`&.${yn.selected}`]:t.selected}]})(({theme:e})=>W({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${yn.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${yn.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),af=x.memo(function(t){const n=Me({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:a,disabled:i,selected:l,value:c,tabIndex:u,onClick:d,onKeyDown:p,onFocus:m,onBlur:y,"aria-current":g,"aria-label":f,slots:v,slotProps:S}=n,T=Ce(n,tf),k=x.useRef(null),w=nf(n);St(()=>{var M;r&&((M=k.current)==null||M.focus())},[r]);const O=(v==null?void 0:v.monthButton)??of,D=Ae({elementType:O,externalSlotProps:S==null?void 0:S.monthButton,additionalProps:{children:a,disabled:i,tabIndex:u,ref:k,type:"button",role:"radio","aria-current":g,"aria-checked":l,"aria-label":f,onClick:M=>d(M,c),onKeyDown:M=>p(M,c),onFocus:M=>m(M,c),onBlur:M=>y(M,c)},ownerState:n,className:w.monthButton});return b.jsx(rf,W({className:ae(w.root,o),ownerState:n},T,{children:b.jsx(O,W({},D))}))});function sf(e){return $e("MuiMonthCalendar",e)}Ie("MuiMonthCalendar",["root"]);const gs=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:a})=>{const i=Re(),l=x.useRef(n),c=t??l.current??a.emptyValue,u=x.useMemo(()=>a.getTimezone(i,c),[i,a,c]),d=ue(g=>u==null?g:a.setTimezone(i,u,g));let p;e?p=e:u?p=u:r?p=i.getTimezone(r):p="default";const m=x.useMemo(()=>a.setTimezone(i,p,c),[a,i,p,c]),y=ue((g,...f)=>{const v=d(g);o==null||o(v,...f)});return{value:m,handleValueChange:y,timezone:p}},Qr=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:a,valueManager:i})=>{const[l,c]=Vt({name:e,state:"value",controlled:n,default:r??i.emptyValue}),u=ue((d,...p)=>{c(d),a==null||a(d,...p)});return gs({timezone:t,value:l,defaultValue:void 0,referenceDate:o,onChange:u,valueManager:i})},lf=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],cf=e=>{const{classes:t}=e;return Pe({root:["root"]},sf,t)};function uf(e,t){const n=Re(),r=Kn(),o=Me({props:e,name:t});return W({disableFuture:!1,disablePast:!1},o,{minDate:Ke(n,o.minDate,r.minDate),maxDate:Ke(n,o.maxDate,r.maxDate)})}const df=Z("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Zn,boxSizing:"border-box"}),ys=x.forwardRef(function(t,n){const r=uf(t,"MuiMonthCalendar"),{className:o,value:a,defaultValue:i,referenceDate:l,disabled:c,disableFuture:u,disablePast:d,maxDate:p,minDate:m,onChange:y,shouldDisableMonth:g,readOnly:f,autoFocus:v=!1,onMonthFocus:S,hasFocus:T,onFocusedViewChange:k,monthsPerRow:w=3,timezone:O,gridLabelId:D,slots:M,slotProps:V}=r,B=Ce(r,lf),{value:U,handleValueChange:_,timezone:h}=Qr({name:"MonthCalendar",timezone:O,value:a,defaultValue:i,referenceDate:l,onChange:y,valueManager:lt}),P=Xn(h),E=cn(),R=Re(),$=x.useMemo(()=>lt.getInitialReferenceValue({value:U,utils:R,props:r,timezone:h,referenceDate:l,granularity:Ze.month}),[]),L=r,J=cf(L),ee=x.useMemo(()=>R.getMonth(P),[R,P]),N=x.useMemo(()=>U!=null?R.getMonth(U):null,[U,R]),[C,j]=x.useState(()=>N||R.getMonth($)),[K,G]=Vt({name:"MonthCalendar",state:"hasFocus",controlled:T,default:v??!1}),Q=ue(A=>{G(A),k&&k(A)}),F=x.useCallback(A=>{const ie=R.startOfMonth(d&&R.isAfter(P,m)?P:m),pe=R.startOfMonth(u&&R.isBefore(P,p)?P:p),xe=R.startOfMonth(A);return R.isBefore(xe,ie)||R.isAfter(xe,pe)?!0:g?g(xe):!1},[u,d,p,m,P,g,R]),H=ue((A,ie)=>{if(f)return;const pe=R.setMonth(U??$,ie);_(pe)}),q=ue(A=>{F(R.setMonth(U??$,A))||(j(A),Q(!0),S&&S(A))});x.useEffect(()=>{j(A=>N!==null&&A!==N?N:A)},[N]);const z=ue((A,ie)=>{switch(A.key){case"ArrowUp":q((12+ie-3)%12),A.preventDefault();break;case"ArrowDown":q((12+ie+3)%12),A.preventDefault();break;case"ArrowLeft":q((12+ie+(E?1:-1))%12),A.preventDefault();break;case"ArrowRight":q((12+ie+(E?-1:1))%12),A.preventDefault();break}}),X=ue((A,ie)=>{q(ie)}),le=ue((A,ie)=>{C===ie&&Q(!1)});return b.jsx(df,W({ref:n,className:ae(J.root,o),ownerState:L,role:"radiogroup","aria-labelledby":D},B,{children:nu(R,U??$).map(A=>{const ie=R.getMonth(A),pe=R.format(A,"monthShort"),xe=R.format(A,"month"),ne=ie===N,ce=c||F(A);return b.jsx(af,{selected:ne,value:ie,onClick:H,onKeyDown:z,autoFocus:K&&ie===C,disabled:ce,tabIndex:ie===C&&!ce?0:-1,onFocus:X,onBlur:le,"aria-current":ee===ie?"date":void 0,"aria-label":xe,monthsPerRow:w,slots:M,slotProps:V,children:pe},pe)})}))});process.env.NODE_ENV!=="production"&&(ys.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableMonth:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object});function ff(e){return $e("MuiPickersYear",e)}const bn=Ie("MuiPickersYear",["root","yearButton","selected","disabled"]),pf=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],hf=e=>{const{disabled:t,selected:n,classes:r}=e;return Pe({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},ff,r)},mf=Z("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),gf=Z("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${bn.disabled}`]:t.disabled},{[`&.${bn.selected}`]:t.selected}]})(({theme:e})=>W({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:it(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${bn.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${bn.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),yf=x.memo(function(t){const n=Me({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:a,disabled:i,selected:l,value:c,tabIndex:u,onClick:d,onKeyDown:p,onFocus:m,onBlur:y,"aria-current":g,slots:f,slotProps:v}=n,S=Ce(n,pf),T=x.useRef(null),k=hf(n);St(()=>{var D;r&&((D=T.current)==null||D.focus())},[r]);const w=(f==null?void 0:f.yearButton)??gf,O=Ae({elementType:w,externalSlotProps:v==null?void 0:v.yearButton,additionalProps:{children:a,disabled:i,tabIndex:u,ref:T,type:"button",role:"radio","aria-current":g,"aria-checked":l,onClick:D=>d(D,c),onKeyDown:D=>p(D,c),onFocus:D=>m(D,c),onBlur:D=>y(D,c)},ownerState:n,className:k.yearButton});return b.jsx(mf,W({className:ae(k.root,o),ownerState:n},S,{children:b.jsx(w,W({},O))}))});function bf(e){return $e("MuiYearCalendar",e)}Ie("MuiYearCalendar",["root"]);const vf=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],xf=e=>{const{classes:t}=e;return Pe({root:["root"]},bf,t)};function Cf(e,t){const n=Re(),r=Kn(),o=Me({props:e,name:t});return W({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:Ke(n,o.minDate,r.minDate),maxDate:Ke(n,o.maxDate,r.maxDate)})}const Sf=Z("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Zn,maxHeight:Dd,boxSizing:"border-box",position:"relative"}),bs=x.forwardRef(function(t,n){const r=Cf(t,"MuiYearCalendar"),{autoFocus:o,className:a,value:i,defaultValue:l,referenceDate:c,disabled:u,disableFuture:d,disablePast:p,maxDate:m,minDate:y,onChange:g,readOnly:f,shouldDisableYear:v,onYearFocus:S,hasFocus:T,onFocusedViewChange:k,yearsOrder:w="asc",yearsPerRow:O,timezone:D,gridLabelId:M,slots:V,slotProps:B}=r,U=Ce(r,vf),{value:_,handleValueChange:h,timezone:P}=Qr({name:"YearCalendar",timezone:D,value:i,defaultValue:l,referenceDate:c,onChange:g,valueManager:lt}),E=Xn(P),R=cn(),$=Re(),L=x.useMemo(()=>lt.getInitialReferenceValue({value:_,utils:$,props:r,timezone:P,referenceDate:c,granularity:Ze.year}),[]),J=r,ee=xf(J),N=x.useMemo(()=>$.getYear(E),[$,E]),C=x.useMemo(()=>_!=null?$.getYear(_):null,[_,$]),[j,K]=x.useState(()=>C||$.getYear(L)),[G,Q]=Vt({name:"YearCalendar",state:"hasFocus",controlled:T,default:o??!1}),F=ue(te=>{Q(te),k&&k(te)}),H=x.useCallback(te=>{if(p&&$.isBeforeYear(te,E)||d&&$.isAfterYear(te,E)||y&&$.isBeforeYear(te,y)||m&&$.isAfterYear(te,m))return!0;if(!v)return!1;const de=$.startOfYear(te);return v(de)},[d,p,m,y,E,v,$]),q=ue((te,de)=>{if(f)return;const ke=$.setYear(_??L,de);h(ke)}),z=ue(te=>{H($.setYear(_??L,te))||(K(te),F(!0),S==null||S(te))});x.useEffect(()=>{K(te=>C!==null&&te!==C?C:te)},[C]);const X=w!=="desc"?O*1:O*-1,le=R&&w==="asc"||!R&&w==="desc"?-1:1,A=ue((te,de)=>{switch(te.key){case"ArrowUp":z(de-X),te.preventDefault();break;case"ArrowDown":z(de+X),te.preventDefault();break;case"ArrowLeft":z(de-le),te.preventDefault();break;case"ArrowRight":z(de+le),te.preventDefault();break}}),ie=ue((te,de)=>{z(de)}),pe=ue((te,de)=>{j===de&&F(!1)}),xe=x.useRef(null),ne=Ur(n,xe);x.useEffect(()=>{if(o||xe.current===null)return;const te=xe.current.querySelector('[tabindex="0"]');if(!te)return;const de=te.offsetHeight,ke=te.offsetTop,Xe=xe.current.clientHeight,se=xe.current.scrollTop,er=ke+de;de>Xe||ke<se||(xe.current.scrollTop=er-Xe/2-de/2)},[o]);const ce=$.getYearRange([y,m]);return w==="desc"&&ce.reverse(),b.jsx(Sf,W({ref:ne,className:ae(ee.root,a),ownerState:J,role:"radiogroup","aria-labelledby":M},U,{children:ce.map(te=>{const de=$.getYear(te),ke=de===C,Xe=u||H(te);return b.jsx(yf,{selected:ke,value:de,onClick:q,onKeyDown:A,autoFocus:G&&de===j,disabled:Xe,tabIndex:de===j&&!Xe?0:-1,onFocus:ie,onBlur:pe,"aria-current":N===de?"date":void 0,yearsPerRow:O,slots:V,slotProps:B,children:$.format(te,"year")},$.format(te,"year"))})}))});process.env.NODE_ENV!=="production"&&(bs.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});let yr=!1;function vs({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:a,focusedView:i,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&(yr||(r!=null&&!o.includes(r)&&(console.warn(`MUI X: \`view="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),yr=!0),r==null&&n!=null&&!o.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),yr=!0)));const c=x.useRef(n),u=x.useRef(o),d=x.useRef(o.includes(n)?n:o[0]),[p,m]=Vt({name:"useViews",state:"view",controlled:r,default:d.current}),y=x.useRef(a?p:null),[g,f]=Vt({name:"useViews",state:"focusedView",controlled:i,default:y.current});x.useEffect(()=>{(c.current&&c.current!==n||u.current&&u.current.some(M=>!o.includes(M)))&&(m(o.includes(n)?n:o[0]),u.current=o,c.current=n)},[n,m,p,o]);const v=o.indexOf(p),S=o[v-1]??null,T=o[v+1]??null,k=ue((M,V)=>{f(V?M:B=>M===B?null:B),l==null||l(M,V)}),w=ue(M=>{k(M,!0),M!==p&&(m(M),t&&t(M))}),O=ue(()=>{T&&w(T)}),D=ue((M,V,B)=>{const U=V==="finish",_=B?o.indexOf(B)<o.length-1:!!T;if(e(M,U&&_?"partial":V,B),B&&B!==p){const P=o[o.indexOf(B)+1];P&&w(P)}else U&&O()});return{view:p,setView:w,focusedView:g,setFocusedView:k,nextView:T,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:O,setValueAndGoToNextView:D}}const wf=e=>$e("MuiPickersCalendarHeader",e),Ef=Ie("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function Tf(e){return _e("MuiCircularProgress",e)}je("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const We=44,Pr=ct.keyframes`
|
|
177
|
+
0% {
|
|
178
|
+
transform: rotate(0deg);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
100% {
|
|
182
|
+
transform: rotate(360deg);
|
|
183
|
+
}
|
|
184
|
+
`,$r=ct.keyframes`
|
|
185
|
+
0% {
|
|
186
|
+
stroke-dasharray: 1px, 200px;
|
|
187
|
+
stroke-dashoffset: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
50% {
|
|
191
|
+
stroke-dasharray: 100px, 200px;
|
|
192
|
+
stroke-dashoffset: -15px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
100% {
|
|
196
|
+
stroke-dasharray: 1px, 200px;
|
|
197
|
+
stroke-dashoffset: -126px;
|
|
198
|
+
}
|
|
199
|
+
`,Of=typeof Pr!="string"?ct.css`
|
|
200
|
+
animation: ${Pr} 1.4s linear infinite;
|
|
201
|
+
`:null,Df=typeof $r!="string"?ct.css`
|
|
202
|
+
animation: ${$r} 1.4s ease-in-out infinite;
|
|
203
|
+
`:null,kf=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${re(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${re(n)}`,o&&"circleDisableShrink"]};return Ue(a,Tf,t)},Rf=Z("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${re(n.color)}`]]}})(qe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Of||{animation:`${Pr} 1.4s linear infinite`}},...Object.entries(e.palette).filter(et()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Mf=Z("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Pf=Z("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${re(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(qe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Df||{animation:`${$r} 1.4s ease-in-out infinite`}}]}))),$f=Z("circle",{name:"MuiCircularProgress",slot:"Track"})(qe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Zr=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:m="indeterminate",...y}=r,g={...r,color:a,disableShrink:i,size:c,thickness:d,value:p,variant:m,enableTrackSlot:l},f=kf(g),v={},S={},T={};if(m==="determinate"){const k=2*Math.PI*((We-d)/2);v.strokeDasharray=k.toFixed(3),T["aria-valuenow"]=Math.round(p),v.strokeDashoffset=`${((100-p)/100*k).toFixed(3)}px`,S.transform="rotate(-90deg)"}return b.jsx(Rf,{className:ae(f.root,o),style:{width:c,height:c,...S,...u},ownerState:g,ref:n,role:"progressbar",...T,...y,children:b.jsxs(Mf,{className:f.svg,ownerState:g,viewBox:`${We/2} ${We/2} ${We} ${We}`,children:[l?b.jsx($f,{className:f.track,ownerState:g,cx:We,cy:We,r:(We-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(Pf,{className:f.circle,style:v,ownerState:g,cx:We,cy:We,r:(We-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Zr.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:zt(s.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:s.bool,size:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),thickness:s.number,value:s.number,variant:s.oneOf(["determinate","indeterminate"])});function If(e){return _e("MuiIconButton",e)}const ra=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Nf=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a,loading:i}=e,l={root:["root",i&&"loading",n&&"disabled",r!=="default"&&`color${re(r)}`,o&&`edge${re(o)}`,`size${re(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ue(l,If,t)},Af=Z(Lt,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${re(n.color)}`],n.edge&&t[`edge${re(n.edge)}`],t[`size${re(n.size)}`]]}})(qe(({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.alpha((e.vars||e).palette.action.active,(e.vars||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}}]})),qe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(et()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(et()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||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)}}],[`&.${ra.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${ra.loading}`]:{color:"transparent"}}))),_f=Z("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),eo=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:m=null,loadingIndicator:y,...g}=r,f=Xa(p),v=y??b.jsx(Zr,{"aria-labelledby":f,color:"inherit",size:16}),S={...r,edge:o,color:l,disabled:c,disableFocusRipple:u,loading:m,loadingIndicator:v,size:d},T=Nf(S);return b.jsxs(Af,{id:m?f:p,className:ae(T.root,i),centerRipple:!0,focusRipple:!u,disabled:c||m,ref:n,...g,ownerState:S,children:[typeof m=="boolean"&&b.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:b.jsx(_f,{className:T.loadingIndicator,ownerState:S,children:m&&v})}),a]})});process.env.NODE_ENV!=="production"&&(eo.propTypes={children:zt(s.node,e=>x.Children.toArray(e.children).some(n=>x.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(`
|
|
204
|
+
`)):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]),id:s.string,loading:s.bool,loadingIndicator:s.node,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])});const jf=De(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Vf=De(b.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Lf=De(b.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");De(b.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");De(b.jsxs(x.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");De(b.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");De(b.jsxs(x.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");De(b.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"}),"Clear");function Bf(e){return $e("MuiPickersArrowSwitcher",e)}Ie("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const zf=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Ff=["ownerState"],Wf=["ownerState"],Uf=Z("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Hf=Z("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),oa=Z(eo,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Yf=e=>{const{classes:t}=e;return Pe({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Bf,t)},Gf=x.forwardRef(function(t,n){const r=cn(),o=Me({props:t,name:"MuiPickersArrowSwitcher"}),{children:a,className:i,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:p,nextLabel:m,isPreviousDisabled:y,isPreviousHidden:g,onGoToPrevious:f,previousLabel:v,labelId:S}=o,T=Ce(o,zf),k=o,w=Yf(k),O={isDisabled:u,isHidden:d,goTo:p,label:m},D={isDisabled:y,isHidden:g,goTo:f,label:v},M=(l==null?void 0:l.previousIconButton)??oa,V=Ae({elementType:M,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:D.label,"aria-label":D.label,disabled:D.isDisabled,edge:"end",onClick:D.goTo},ownerState:W({},k,{hidden:D.isHidden}),className:ae(w.button,w.previousIconButton)}),B=(l==null?void 0:l.nextIconButton)??oa,U=Ae({elementType:B,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"start",onClick:O.goTo},ownerState:W({},k,{hidden:O.isHidden}),className:ae(w.button,w.nextIconButton)}),_=(l==null?void 0:l.leftArrowIcon)??Vf,h=Ae({elementType:_,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:k,className:w.leftArrowIcon}),P=Ce(h,Ff),E=(l==null?void 0:l.rightArrowIcon)??Lf,R=Ae({elementType:E,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:k,className:w.rightArrowIcon}),$=Ce(R,Wf);return b.jsxs(Uf,W({ref:n,className:ae(w.root,i),ownerState:k},T,{children:[b.jsx(M,W({},V,{children:r?b.jsx(E,W({},$)):b.jsx(_,W({},P))})),a?b.jsx(wt,{variant:"subtitle1",component:"span",id:S,children:a}):b.jsx(Hf,{className:w.spacer,ownerState:k}),b.jsx(B,W({},U,{children:r?b.jsx(_,W({},P)):b.jsx(E,W({},$))}))]}))});function qf(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Re();return x.useMemo(()=>{const a=o.date(void 0,r),i=o.startOfMonth(t&&o.isBefore(a,n)?a:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function Kf(e,{disablePast:t,minDate:n,timezone:r}){const o=Re();return x.useMemo(()=>{const a=o.date(void 0,r),i=o.startOfMonth(t&&o.isAfter(a,n)?a:n);return!o.isBefore(i,e)},[t,n,e,o,r])}const Xf=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],Jf=["ownerState"],Qf=e=>{const{classes:t}=e;return Pe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},wf,t)},Zf=Z("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),ep=Z("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>W({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),tp=Z("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),np=Z(eo,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Ef.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),rp=Z(jf,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),xs=x.forwardRef(function(t,n){const r=Jn(),o=Re(),a=Me({props:t,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:p,maxDate:m,minDate:y,onMonthChange:g,onViewChange:f,view:v,reduceAnimations:S,views:T,labelId:k,className:w,timezone:O,format:D=`${o.formats.month} ${o.formats.year}`}=a,M=Ce(a,Xf),V=a,B=Qf(a),U=(i==null?void 0:i.switchViewButton)??np,_=Ae({elementType:U,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(v)},ownerState:V,className:B.switchViewButton}),h=(i==null?void 0:i.switchViewIcon)??rp,P=Ae({elementType:h,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:V,className:B.switchViewIcon}),E=Ce(P,Jf),R=()=>g(o.addMonths(c,1),"left"),$=()=>g(o.addMonths(c,-1),"right"),L=qf(c,{disableFuture:d,maxDate:m,timezone:O}),J=Kf(c,{disablePast:p,minDate:y,timezone:O}),ee=()=>{if(!(T.length===1||!f||u))if(T.length===2)f(T.find(C=>C!==v)||T[0]);else{const C=T.indexOf(v)!==0?0:1;f(T[C])}};if(T.length===1&&T[0]==="year")return null;const N=o.formatByString(c,D);return b.jsxs(Zf,W({},M,{ownerState:V,className:ae(B.root,w),ref:n,children:[b.jsxs(ep,{role:"presentation",onClick:ee,ownerState:V,"aria-live":"polite",className:B.labelContainer,children:[b.jsx(is,{reduceAnimations:S,transKey:N,children:b.jsx(tp,{id:k,ownerState:V,className:B.label,children:N})}),T.length>1&&!u&&b.jsx(U,W({},_,{children:b.jsx(h,W({},E))}))]}),b.jsx(Kr,{in:v==="day",appear:!S,enter:!S,children:b.jsx(Gf,{slots:i,slotProps:l,onGoToPrevious:$,isPreviousDisabled:J,previousLabel:r.previousMonth,onGoToNext:R,isNextDisabled:L,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(xs.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const op=Z("div")({overflow:"hidden",width:Zn,maxHeight:Jr,display:"flex",flexDirection:"column",margin:"0 auto"}),ap=La({themeId:qn}),sp="@media (prefers-reduced-motion: reduce)",It=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),aa=It&&It[1]?parseInt(It[1],10):null,sa=It&&It[2]?parseInt(It[2],10):null,ip=aa&&aa<10||sa&&sa<13||!1,lp=()=>ap(sp,{defaultMatches:!1})||ip,cp=e=>$e("MuiDateCalendar",e);Ie("MuiDateCalendar",["root","viewTransitionContainer"]);const up=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],dp=e=>{const{classes:t}=e;return Pe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},cp,t)};function fp(e,t){const n=Re(),r=Kn(),o=lp(),a=Me({props:e,name:t});return W({},a,{loading:a.loading??!1,disablePast:a.disablePast??!1,disableFuture:a.disableFuture??!1,openTo:a.openTo??"day",views:a.views??["year","day"],reduceAnimations:a.reduceAnimations??o,renderLoading:a.renderLoading??(()=>b.jsx("span",{children:"..."})),minDate:Ke(n,a.minDate,r.minDate),maxDate:Ke(n,a.maxDate,r.maxDate)})}const pp=Z(op,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Jr}),hp=Z(is,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Cs=x.forwardRef(function(t,n){const r=Re(),o=mu(),a=fp(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:l,value:c,defaultValue:u,referenceDate:d,disableFuture:p,disablePast:m,onChange:y,onYearChange:g,onMonthChange:f,reduceAnimations:v,shouldDisableDate:S,shouldDisableMonth:T,shouldDisableYear:k,view:w,views:O,openTo:D,className:M,disabled:V,readOnly:B,minDate:U,maxDate:_,disableHighlightToday:h,focusedView:P,onFocusedViewChange:E,showDaysOutsideCurrentMonth:R,fixedWeekNumber:$,dayOfWeekFormatter:L,slots:J,slotProps:ee,loading:N,renderLoading:C,displayWeekNumber:j,yearsOrder:K,yearsPerRow:G,monthsPerRow:Q,timezone:F}=a,H=Ce(a,up),{value:q,handleValueChange:z,timezone:X}=Qr({name:"DateCalendar",timezone:F,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:lt}),{view:le,setView:A,focusedView:ie,setFocusedView:pe,goToNextView:xe,setValueAndGoToNextView:ne}=vs({view:w,views:O,openTo:D,onChange:z,onViewChange:l,autoFocus:i,focusedView:P,onFocusedViewChange:E}),{referenceDate:ce,calendarState:te,changeFocusedDay:de,changeMonth:ke,handleChangeMonth:Xe,isDateDisabled:se,onMonthSwitchingAnimationEnd:er}=Wu({value:q,referenceDate:d,reduceAnimations:v,onMonthChange:f,minDate:U,maxDate:_,shouldDisableDate:S,disablePast:m,disableFuture:p,timezone:X}),Bs=V&&q||U,zs=V&&q||_,ro=`${o}-grid-label`,tr=ie!==null,oo=(J==null?void 0:J.calendarHeader)??xs,Fs=Ae({elementType:oo,externalSlotProps:ee==null?void 0:ee.calendarHeader,additionalProps:{views:O,view:le,currentMonth:te.currentMonth,onViewChange:A,onMonthChange:(we,Ye)=>Xe({newMonth:we,direction:Ye}),minDate:Bs,maxDate:zs,disabled:V,disablePast:m,disableFuture:p,reduceAnimations:v,timezone:X,labelId:ro},ownerState:a}),Ws=ue(we=>{const Ye=r.startOfMonth(we),Ft=r.endOfMonth(we),nt=se(we)?tn({utils:r,date:we,minDate:r.isBefore(U,Ye)?Ye:U,maxDate:r.isAfter(_,Ft)?Ft:_,disablePast:m,disableFuture:p,isDateDisabled:se,timezone:X}):we;nt?(ne(nt,"finish"),f==null||f(Ye)):(xe(),ke(Ye)),de(nt,!0)}),Us=ue(we=>{const Ye=r.startOfYear(we),Ft=r.endOfYear(we),nt=se(we)?tn({utils:r,date:we,minDate:r.isBefore(U,Ye)?Ye:U,maxDate:r.isAfter(_,Ft)?Ft:_,disablePast:m,disableFuture:p,isDateDisabled:se,timezone:X}):we;nt?(ne(nt,"finish"),g==null||g(nt)):(xe(),ke(Ye)),de(nt,!0)}),Hs=ue(we=>z(we&&$n(r,we,q??ce),"finish",le));x.useEffect(()=>{q!=null&&r.isValid(q)&&ke(q)},[q]);const nr=a,ao=dp(nr),rr={disablePast:m,disableFuture:p,maxDate:_,minDate:U},or={disableHighlightToday:h,readOnly:B,disabled:V,timezone:X,gridLabelId:ro,slots:J,slotProps:ee},ar=x.useRef(le);x.useEffect(()=>{ar.current!==le&&(ie===ar.current&&pe(le,!0),ar.current=le)},[ie,pe,le]);const Ys=x.useMemo(()=>[q],[q]);return b.jsxs(pp,W({ref:n,className:ae(ao.root,M),ownerState:nr},H,{children:[b.jsx(oo,W({},Fs,{slots:J,slotProps:ee})),b.jsx(hp,{reduceAnimations:v,className:ao.viewTransitionContainer,transKey:le,ownerState:nr,children:b.jsxs("div",{children:[le==="year"&&b.jsx(bs,W({},rr,or,{value:q,onChange:Us,shouldDisableYear:k,hasFocus:tr,onFocusedViewChange:we=>pe("year",we),yearsOrder:K,yearsPerRow:G,referenceDate:ce})),le==="month"&&b.jsx(ys,W({},rr,or,{hasFocus:tr,className:M,value:q,onChange:Ws,shouldDisableMonth:T,onFocusedViewChange:we=>pe("month",we),monthsPerRow:Q,referenceDate:ce})),le==="day"&&b.jsx(Zd,W({},te,rr,or,{onMonthSwitchingAnimationEnd:er,onFocusedDayChange:de,reduceAnimations:v,selectedDays:Ys,onSelectedDaysChange:Hs,shouldDisableDate:S,shouldDisableMonth:T,shouldDisableYear:k,hasFocus:tr,onFocusedViewChange:we=>pe("day",we),showDaysOutsideCurrentMonth:R,fixedWeekNumber:$,dayOfWeekFormatter:L,displayWeekNumber:j,loading:N,renderLoading:C}))]})})]}))});process.env.NODE_ENV!=="production"&&(Cs.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,fixedWeekNumber:s.number,focusedView:s.oneOf(["day","month","year"]),loading:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const br=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:m,minDate:y,maxDate:g,shouldDisableDate:f,shouldDisableMonth:v,shouldDisableYear:S,reduceAnimations:T,onMonthChange:k,monthsPerRow:w,onYearChange:O,yearsOrder:D,yearsPerRow:M,slots:V,slotProps:B,loading:U,renderLoading:_,disableHighlightToday:h,readOnly:P,disabled:E,showDaysOutsideCurrentMonth:R,dayOfWeekFormatter:$,sx:L,autoFocus:J,fixedWeekNumber:ee,displayWeekNumber:N,timezone:C})=>b.jsx(Cs,{view:e,onViewChange:t,views:n.filter(Ho),focusedView:r&&Ho(r)?r:null,onFocusedViewChange:o,value:a,defaultValue:i,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:m,minDate:y,maxDate:g,shouldDisableDate:f,shouldDisableMonth:v,shouldDisableYear:S,reduceAnimations:T,onMonthChange:k,monthsPerRow:w,onYearChange:O,yearsOrder:D,yearsPerRow:M,slots:V,slotProps:B,loading:U,renderLoading:_,disableHighlightToday:h,readOnly:P,disabled:E,showDaysOutsideCurrentMonth:R,dayOfWeekFormatter:$,sx:L,autoFocus:J,fixedWeekNumber:ee,displayWeekNumber:N,timezone:C}),ia=new Set;function mp(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
205
|
+
`):e;ia.has(n)||(ia.add(n),t==="error"?console.error(n):console.warn(n))}const gp=({open:e,onOpen:t,onClose:n})=>{const r=x.useRef(typeof e=="boolean").current,[o,a]=x.useState(!1);x.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const i=x.useCallback(l=>{r||a(l),l&&t&&t(),!l&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},yp=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},bp=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},vp=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},xp=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:a,onChange:i,value:l,defaultValue:c,closeOnSelect:u=r==="desktop",timezone:d,referenceDate:p}=e,{current:m}=x.useRef(c),{current:y}=x.useRef(l!==void 0),[g,f]=x.useState(d);process.env.NODE_ENV!=="production"&&(x.useEffect(()=>{y!==(l!==void 0)&&console.error([`MUI X: A component is changing the ${y?"":"un"}controlled value of a picker to be ${y?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor 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(`
|
|
206
|
+
`))},[l]),x.useEffect(()=>{!y&&m!==c&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
|
|
207
|
+
`))},[JSON.stringify(m)]));const v=Re(),S=Bt(),{isOpen:T,setIsOpen:k}=gp(e),{timezone:w,value:O,handleValueChange:D}=gs({timezone:d,value:l,defaultValue:m,referenceDate:p,onChange:i,valueManager:t}),[M,V]=x.useState(()=>{let z;return O!==void 0?z=O:m!==void 0?z=m:z=t.emptyValue,{draft:z,lastPublishedValue:z,lastCommittedValue:z,lastControlledValue:l,hasBeenModifiedSinceMount:!1}}),B=t.getTimezone(v,M.draft);g!==d&&(f(d),d&&B&&d!==B&&V(z=>W({},z,{draft:t.setTimezone(v,d,z.draft)})));const{getValidationErrorForNewValue:U}=zu({props:e,validator:o,timezone:w,value:M.draft,onError:e.onError}),_=ue(z=>{const X={action:z,dateState:M,hasChanged:ne=>!t.areValuesEqual(v,z.value,ne),isControlled:y,closeOnSelect:u},le=yp(X),A=bp(X),ie=vp(X);V(ne=>W({},ne,{draft:z.value,lastPublishedValue:le?z.value:ne.lastPublishedValue,lastCommittedValue:A?z.value:ne.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let pe=null;const xe=()=>(pe||(pe={validationError:z.name==="setValueFromField"?z.context.validationError:U(z.value)},z.name==="setValueFromShortcut"&&(pe.shortcut=z.shortcut)),pe);le&&D(z.value,xe()),A&&a&&a(z.value,xe()),ie&&k(!1)});if(M.lastControlledValue!==l){const z=t.areValuesEqual(v,M.draft,O);V(X=>W({},X,{lastControlledValue:l},z?{}:{lastCommittedValue:O,lastPublishedValue:O,draft:O,hasBeenModifiedSinceMount:!0}))}const h=ue(()=>{_({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),P=ue(()=>{_({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),E=ue(()=>{_({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),R=ue(()=>{_({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),$=ue(()=>{_({value:t.getTodayValue(v,w,n),name:"setValueFromAction",pickerAction:"today"})}),L=ue(z=>{z.preventDefault(),k(!0)}),J=ue(z=>{z==null||z.preventDefault(),k(!1)}),ee=ue((z,X="partial")=>_({name:"setValueFromView",value:z,selectionState:X})),N=ue((z,X,le)=>_({name:"setValueFromShortcut",value:z,changeImportance:X,shortcut:le})),C=ue((z,X)=>_({name:"setValueFromField",value:z,context:X})),j={onClear:h,onAccept:P,onDismiss:E,onCancel:R,onSetToday:$,onOpen:L,onClose:J},K={value:M.draft,onChange:C},G=x.useMemo(()=>t.cleanValue(v,M.draft),[v,t,M.draft]),Q={value:G,onChange:ee,onClose:J,open:T},H=W({},j,{value:G,onChange:ee,onSelectShortcut:N,isValid:z=>{const X=o({adapter:S,value:z,timezone:w,props:e});return!t.hasError(X)}}),q=x.useMemo(()=>({onOpen:L,onClose:J,open:T}),[T,J,L]);return{open:T,fieldProps:K,viewProps:Q,layoutProps:H,actions:j,contextValue:q}},Cp=["className","sx"],Sp=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:a})=>{const{onChange:i,open:l,onClose:c}=t,{view:u,views:d,openTo:p,onViewChange:m,viewRenderers:y,timezone:g}=e,f=Ce(e,Cp),{view:v,setView:S,defaultView:T,focusedView:k,setFocusedView:w,setValueAndGoToNextView:O}=vs({view:u,views:d,openTo:p,onChange:i,onViewChange:m,autoFocus:r}),{hasUIView:D,viewModeLookup:M}=x.useMemo(()=>d.reduce((E,R)=>{let $;return y[R]!=null?$="UI":$="field",E.viewModeLookup[R]=$,$==="UI"&&(E.hasUIView=!0),E},{hasUIView:!1,viewModeLookup:{}}),[y,d]),V=x.useMemo(()=>d.reduce((E,R)=>y[R]!=null&&ju(R)?E+1:E,0),[y,d]),B=M[v],U=ue(()=>B==="UI"),[_,h]=x.useState(B==="UI"?v:null);return _!==v&&M[v]==="UI"&&h(v),St(()=>{B==="field"&&l&&(c(),setTimeout(()=>{var E,R;(E=a==null?void 0:a.current)==null||E.setSelectedSections(v),(R=a==null?void 0:a.current)==null||R.focusField(v)}))},[v]),St(()=>{if(!l)return;let E=v;B==="field"&&_!=null&&(E=_),E!==T&&M[E]==="UI"&&M[T]==="UI"&&(E=T),E!==v&&S(E),w(E,!0)},[l]),{hasUIView:D,shouldRestoreFocus:U,layoutProps:{views:d,view:_,onViewChange:S},renderCurrentView:()=>{if(_==null)return null;const E=y[_];if(E==null)return null;const R=W({},f,n,t,{views:d,timezone:g,onChange:O,view:_,onViewChange:S,focusedView:k,onFocusedViewChange:w,showViewSwitcher:V>1,timeViewsCount:V});return o?o(y,_,R):E(R)}}};function wp(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}function la(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Ep=(e,t)=>{const[n,r]=x.useState(la);return St(()=>{const a=()=>{r(la())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),wp(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Tp=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,a=Ep(n.views,o),i=cn();return{layoutProps:W({},n,t,{isLandscape:a,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function Op(e){const{props:t,pickerValueResponse:n}=e;return x.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const Dp=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:a,autoFocusView:i,rendererInterceptor:l,fieldRef:c})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&mp(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=xp({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),d=Sp({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:c,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),p=Tp({props:e,wrapperVariant:r,propsFromPickerValue:u.layoutProps,propsFromPickerViews:d.layoutProps}),m=Op({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:d.renderCurrentView,hasUIView:d.hasUIView,shouldRestoreFocus:d.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:m}};function Ss(e){return $e("MuiPickersLayout",e)}const pt=Ie("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function ws(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const a=o;if(a==="components"||a==="slots")r[a]={...e[a],...r[a]};else if(a==="componentsProps"||a==="slotProps"){const i=e[a],l=t[a];if(!l)r[a]=i||{};else if(!i)r[a]=l;else{r[a]={...l};for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)){const u=c;r[a][u]=ws(i[u],l[u],n)}}}else a==="className"&&n&&t.className?r.className=ae(e==null?void 0:e.className,t==null?void 0:t.className):a==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[a]===void 0&&(r[a]=e[a])}return r}function kp(e){return _e("MuiButton",e)}const ht=je("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","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Es=x.createContext({});process.env.NODE_ENV!=="production"&&(Es.displayName="ButtonGroupContext");const Ts=x.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ts.displayName="ButtonGroupButtonContext");const Rp=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,loading:i,loadingPosition:l,classes:c}=e,u={root:["root",i&&"loading",a,`${a}${re(t)}`,`size${re(o)}`,`${a}Size${re(o)}`,`color${re(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${re(l)}`],startIcon:["icon","startIcon",`iconSize${re(o)}`],endIcon:["icon","endIcon",`iconSize${re(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Ue(u,kp,c);return{...c,...d}},Os=[{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}}}],Mp=Z(Lt,{shouldForwardProp:e=>qa(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${re(n.color)}`],t[`size${re(n.size)}`],t[`${n.variant}Size${re(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(qe(({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"},[`&.${ht.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]},[`&.${ht.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ht.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)",[`&.${ht.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(et()).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.alpha((e.vars||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.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ht.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ht.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ht.loading}`]:{color:"transparent"}}}]}})),Pp=Z("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${re(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Os]})),$p=Z("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${re(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Os]})),Ip=Z("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),ca=Z("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Zt=x.forwardRef(function(t,n){const r=x.useContext(Es),o=x.useContext(Ts),a=ws(r,t),i=Fe({props:a,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:m=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:v=!1,id:S,loading:T=null,loadingIndicator:k,loadingPosition:w="center",size:O="medium",startIcon:D,type:M,variant:V="text",...B}=i,U=Xa(S),_=k??b.jsx(Zr,{"aria-labelledby":U,color:"inherit",size:16}),h={...i,color:c,component:u,disabled:p,disableElevation:m,disableFocusRipple:y,fullWidth:v,loading:T,loadingIndicator:_,loadingPosition:w,size:O,type:M,variant:V},P=Rp(h),E=(D||T&&w==="start")&&b.jsx(Pp,{className:P.startIcon,ownerState:h,children:D||b.jsx(ca,{className:P.loadingIconPlaceholder,ownerState:h})}),R=(g||T&&w==="end")&&b.jsx($p,{className:P.endIcon,ownerState:h,children:g||b.jsx(ca,{className:P.loadingIconPlaceholder,ownerState:h})}),$=o||"",L=typeof T=="boolean"?b.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:T&&b.jsx(Ip,{className:P.loadingIndicator,ownerState:h,children:_})}):null;return b.jsxs(Mp,{ownerState:h,className:ae(r.className,P.root,d,$),component:u,disabled:p||T,focusRipple:!y,focusVisibleClassName:ae(P.focusVisible,f),ref:n,type:M,id:T?U:S,...B,classes:P,children:[E,w!=="end"&&L,l,w==="end"&&L,R]})});process.env.NODE_ENV!=="production"&&(Zt.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,id:s.string,loading:s.bool,loadingIndicator:s.node,loadingPosition:s.oneOf(["center","end","start"]),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])});function Np(e){return _e("MuiDialogActions",e)}je("MuiDialogActions",["root","spacing"]);const Ap=e=>{const{classes:t,disableSpacing:n}=e;return Ue({root:["root",!n&&"spacing"]},Np,t)},_p=Z("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Ds=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...i}=r,l={...r,disableSpacing:a},c=Ap(l);return b.jsx(_p,{className:ae(c.root,o),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Ds.propTypes={children:s.node,classes:s.object,className:s.string,disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const jp=["onAccept","onClear","onCancel","onSetToday","actions"];function ks(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:a}=e,i=Ce(e,jp),l=Jn();if(a==null||a.length===0)return null;const c=a==null?void 0:a.map(u=>{switch(u){case"clear":return b.jsx(Zt,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return b.jsx(Zt,{onClick:r,children:l.cancelButtonLabel},u);case"accept":return b.jsx(Zt,{onClick:t,children:l.okButtonLabel},u);case"today":return b.jsx(Zt,{onClick:o,children:l.todayButtonLabel},u);default:return null}});return b.jsx(Ds,W({},i,{children:c}))}process.env.NODE_ENV!=="production"&&(ks.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:s.bool,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onClear:s.func.isRequired,onSetToday:s.func.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Nt=x.createContext({});process.env.NODE_ENV!=="production"&&(Nt.displayName="ListContext");function Vp(e){return _e("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const Lp=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ue({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Vp,t)},Bp=Z("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}}]}),Rs=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=r,p=x.useMemo(()=>({dense:l}),[l]),m={...r,component:i,dense:l,disablePadding:c},y=Lp(m);return b.jsx(Nt.Provider,{value:p,children:b.jsxs(Bp,{as:i,className:ae(y.root,a),ref:n,ownerState:m,...d,children:[u,o]})})});process.env.NODE_ENV!=="production"&&(Rs.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 Ir(e){return typeof e=="string"}function zp(e){return _e("MuiListItem",e)}je("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Fp=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Wp(e){return _e("MuiListItemSecondaryAction",e)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const Up=e=>{const{disableGutters:t,classes:n}=e;return Ue({root:["root",t&&"disableGutters"]},Wp,n)},Hp=Z("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}}]}),to=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...a}=r,i=x.useContext(Nt),l={...r,disableGutters:i.disableGutters},c=Up(l);return b.jsx(Hp,{className:ae(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(to.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])});to.muiName="ListItemSecondaryAction";const Yp=(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]},Gp=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:i,hasSecondaryAction:l}=e;return Ue({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},zp,n)},qp=Z("div",{name:"MuiListItem",slot:"Root",overridesResolver:Yp})(qe(({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:{[`& > .${Fp.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}}]}))),Kp=Z("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Ms=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiListItem"}),{alignItems:o="center",children:a,className:i,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p,...m}={},dense:y=!1,disableGutters:g=!1,disablePadding:f=!1,divider:v=!1,secondaryAction:S,slotProps:T={},slots:k={},...w}=r,O=x.useContext(Nt),D=x.useMemo(()=>({dense:y||O.dense||!1,alignItems:o,disableGutters:g}),[o,O.dense,y,g]),M=x.useRef(null),V=x.Children.toArray(a),B=V.length&&Ka(V[V.length-1],["ListItemSecondaryAction"]),U={...r,alignItems:o,dense:D.dense,disableGutters:g,disablePadding:f,divider:v,hasSecondaryAction:B},_=Gp(U),h=jt(M,n),P=k.root||c.Root||qp,E=T.root||u.root||{},R={className:ae(_.root,E.className,i),...w};let $=l||"li";return B?($=!R.component&&!l?"div":$,d==="li"&&($==="li"?$="div":R.component==="li"&&(R.component="div")),b.jsx(Nt.Provider,{value:D,children:b.jsxs(Kp,{as:d,className:ae(_.container,p),ref:h,ownerState:U,...m,children:[b.jsx(P,{...E,...!Ir(P)&&{as:$,ownerState:{...U,...E.ownerState}},...R,children:V}),V.pop()]})})):b.jsx(Nt.Provider,{value:D,children:b.jsxs(P,{...E,as:$,ref:h,...!Ir(P)&&{ownerState:{...U,...E.ownerState}},...R,children:[V,S&&b.jsx(to,{children:S})]})})});process.env.NODE_ENV!=="production"&&(Ms.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:zt(s.node,e=>{const t=x.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const o=t[r];if(Ka(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:ls,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])});const Xp=De(b.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Jp(e){return _e("MuiChip",e)}const fe=je("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);function Qp(e,t,n){return e===void 0||Ir(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Zp(e,t,n){return typeof e=="function"?e(t,n):e}function eh(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 ua(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 th(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const y=ae(n==null?void 0:n.className,a,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},f={...n,...o,...r};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const i=eh({...o,...r}),l=ua(r),c=ua(o),u=t(i),d=ae(u==null?void 0:u.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),p={...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,...c,...l};return d.length>0&&(m.className=d),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:u.ref}}function da(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...m}=a,y=d[e]||r,g=Zp(p[e],o),{props:{component:f,...v},internalRef:S}=th({className:n,...c,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:g}),T=jt(S,g==null?void 0:g.ref,t.ref),k=e==="root"?f||u:f,w=Qp(y,{...e==="root"&&!u&&!d[e]&&i,...e!=="root"&&!d[e]&&i,...v,...k&&!l&&{as:k},...k&&l&&{component:k},ref:T},o);return[y,w]}const nh=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:a,onDelete:i,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${re(r)}`,`color${re(o)}`,l&&"clickable",l&&`clickableColor${re(o)}`,i&&"deletable",i&&`deletableColor${re(o)}`,`${c}${re(o)}`],label:["label",`label${re(r)}`],avatar:["avatar",`avatar${re(r)}`,`avatarColor${re(o)}`],icon:["icon",`icon${re(r)}`,`iconColor${re(a)}`],deleteIcon:["deleteIcon",`deleteIcon${re(r)}`,`deleteIconColor${re(o)}`,`deleteIcon${re(c)}Color${re(o)}`]};return Ue(u,Jp,t)},rh=Z("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:a,onDelete:i,size:l,variant:c}=n;return[{[`& .${fe.avatar}`]:t.avatar},{[`& .${fe.avatar}`]:t[`avatar${re(l)}`]},{[`& .${fe.avatar}`]:t[`avatarColor${re(r)}`]},{[`& .${fe.icon}`]:t.icon},{[`& .${fe.icon}`]:t[`icon${re(l)}`]},{[`& .${fe.icon}`]:t[`iconColor${re(o)}`]},{[`& .${fe.deleteIcon}`]:t.deleteIcon},{[`& .${fe.deleteIcon}`]:t[`deleteIcon${re(l)}`]},{[`& .${fe.deleteIcon}`]:t[`deleteIconColor${re(r)}`]},{[`& .${fe.deleteIcon}`]:t[`deleteIcon${re(c)}Color${re(r)}`]},t.root,t[`size${re(l)}`],t[`color${re(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${re(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${re(r)}`],t[c],t[`${c}${re(r)}`]]}})(qe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${fe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${fe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${fe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${fe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${fe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${fe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${fe.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${fe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${fe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(et(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${fe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${fe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${fe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${fe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(et(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${fe.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${fe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(et(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${fe.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${fe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${fe.avatar}`]:{marginLeft:4},[`& .${fe.avatarSmall}`]:{marginLeft:2},[`& .${fe.icon}`]:{marginLeft:4},[`& .${fe.iconSmall}`]:{marginLeft:2},[`& .${fe.deleteIcon}`]:{marginRight:5},[`& .${fe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(et()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${fe.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${fe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${fe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),oh=Z("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${re(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function fa(e){return e.key==="Backspace"||e.key==="Delete"}const Ps=x.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiChip"}),{avatar:o,className:a,clickable:i,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:m,onClick:y,onDelete:g,onKeyDown:f,onKeyUp:v,size:S="medium",variant:T="filled",tabIndex:k,skipFocusWhenDisabled:w=!1,slots:O={},slotProps:D={},...M}=r,V=x.useRef(null),B=jt(V,n),U=F=>{F.stopPropagation(),g&&g(F)},_=F=>{F.currentTarget===F.target&&fa(F)&&F.preventDefault(),f&&f(F)},h=F=>{F.currentTarget===F.target&&g&&fa(F)&&g(F),v&&v(F)},P=i!==!1&&y?!0:i,E=P||g?Lt:c||"div",R={...r,component:E,disabled:d,size:S,color:l,iconColor:x.isValidElement(p)&&p.props.color||l,onDelete:!!g,clickable:P,variant:T},$=nh(R),L=E===Lt?{component:c||"div",focusVisibleClassName:$.focusVisible,...g&&{disableRipple:!0}}:{};let J=null;g&&(J=u&&x.isValidElement(u)?x.cloneElement(u,{className:ae(u.props.className,$.deleteIcon),onClick:U}):b.jsx(Xp,{className:$.deleteIcon,onClick:U}));let ee=null;o&&x.isValidElement(o)&&(ee=x.cloneElement(o,{className:ae($.avatar,o.props.className)}));let N=null;p&&x.isValidElement(p)&&(N=x.cloneElement(p,{className:ae($.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&ee&&N&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const C={slots:O,slotProps:D},[j,K]=da("root",{elementType:rh,externalForwardedProps:{...C,...M},ownerState:R,shouldForwardComponentProp:!0,ref:B,className:ae($.root,a),additionalProps:{disabled:P&&d?!0:void 0,tabIndex:w&&d?-1:k,...L},getSlotProps:F=>({...F,onClick:H=>{var q;(q=F.onClick)==null||q.call(F,H),y==null||y(H)},onKeyDown:H=>{var q;(q=F.onKeyDown)==null||q.call(F,H),_(H)},onKeyUp:H=>{var q;(q=F.onKeyUp)==null||q.call(F,H),h(H)}})}),[G,Q]=da("label",{elementType:oh,externalForwardedProps:C,ownerState:R,className:$.label});return b.jsxs(j,{as:E,...K,children:[ee||N,b.jsx(G,{...Q,children:m}),J]})});process.env.NODE_ENV!=="production"&&(Ps.propTypes={avatar:s.element,children:Wc,classes:s.object,className:s.string,clickable:s.bool,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,deleteIcon:s.element,disabled:s.bool,icon:s.element,label:s.node,onClick:s.func,onDelete:s.func,onKeyDown:s.func,onKeyUp:s.func,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),skipFocusWhenDisabled:s.bool,slotProps:s.shape({label:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({label:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,variant:s.oneOfType([s.oneOf(["filled","outlined"]),s.string])});const ah=["items","changeImportance","isLandscape","onChange","isValid"],sh=["getValue"];function $s(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,a=Ce(e,ah);if(t==null||t.length===0)return null;const i=t.map(l=>{let{getValue:c}=l,u=Ce(l,sh);const d=c({isValid:o});return W({},u,{label:u.label,onClick:()=>{r(d,n,u)},disabled:!o(d)})});return b.jsx(Rs,W({dense:!0,sx:[{maxHeight:Jr,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:i.map(l=>b.jsx(Ms,{children:b.jsx(Ps,W({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&($s.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,isLandscape:s.bool.isRequired,isValid:s.func.isRequired,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),onChange:s.func.isRequired,style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function ih(e){return e.view!==null}const lh=e=>{const{classes:t,isLandscape:n}=e;return Pe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Ss,t)},ch=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:a,view:i,views:l,onViewChange:c,value:u,onChange:d,onSelectShortcut:p,isValid:m,isLandscape:y,disabled:g,readOnly:f,children:v,slots:S,slotProps:T}=e,k=lh(e),w=(S==null?void 0:S.actionBar)??ks,O=Ae({elementType:w,externalSlotProps:T==null?void 0:T.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:a,actions:t==="desktop"?[]:["cancel","accept"]},className:k.actionBar,ownerState:W({},e,{wrapperVariant:t})}),D=b.jsx(w,W({},O)),M=S==null?void 0:S.toolbar,V=Ae({elementType:M,externalSlotProps:T==null?void 0:T.toolbar,additionalProps:{isLandscape:y,onChange:d,value:u,view:i,onViewChange:c,views:l,disabled:g,readOnly:f},className:k.toolbar,ownerState:W({},e,{wrapperVariant:t})}),B=ih(V)&&M?b.jsx(M,W({},V)):null,U=v,_=S==null?void 0:S.tabs,h=i&&_?b.jsx(_,W({view:i,onViewChange:c,className:k.tabs},T==null?void 0:T.tabs)):null,P=(S==null?void 0:S.shortcuts)??$s,E=Ae({elementType:P,externalSlotProps:T==null?void 0:T.shortcuts,additionalProps:{isValid:m,isLandscape:y,onChange:p},className:k.shortcuts,ownerState:{isValid:m,isLandscape:y,onChange:p,wrapperVariant:t}}),R=i&&P?b.jsx(P,W({},E)):null;return{toolbar:B,content:U,tabs:h,actionBar:D,shortcuts:R}},uh=e=>{const{isLandscape:t,classes:n}=e;return Pe({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Ss,n)},dh=Z("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${pt.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${pt.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${pt.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${pt.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${pt.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${pt.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${pt.shortcuts}`]:{gridColumn:3}}}]}),fh=Z("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Is=x.forwardRef(function(t,n){const r=Me({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:a,tabs:i,actionBar:l,shortcuts:c}=ch(r),{sx:u,className:d,isLandscape:p,wrapperVariant:m}=r,y=uh(r);return b.jsxs(dh,{ref:n,sx:u,className:ae(y.root,d),ownerState:r,children:[p?c:o,p?o:c,b.jsx(fh,{className:y.contentWrapper,children:m==="desktop"?b.jsxs(x.Fragment,{children:[a,i]}):b.jsxs(x.Fragment,{children:[i,a]})}),l]})});process.env.NODE_ENV!=="production"&&(Is.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,isLandscape:s.bool.isRequired,isRtl:s.bool.isRequired,isValid:s.func.isRequired,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onChange:s.func.isRequired,onClear:s.func.isRequired,onClose:s.func.isRequired,onDismiss:s.func.isRequired,onOpen:s.func.isRequired,onSelectShortcut:s.func.isRequired,onSetToday:s.func.isRequired,onViewChange:s.func.isRequired,orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any,view:s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:s.arrayOf(s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:s.oneOf(["desktop","mobile"])});const ph=["props","ref"],hh=Z(Is)(({theme:e})=>({overflow:"hidden",minWidth:Zn,backgroundColor:(e.vars||e).palette.background.paper})),mh=e=>{let{props:t,ref:n}=e,r=Ce(e,ph);const{localeText:o,slots:a,slotProps:i,className:l,sx:c,displayStaticWrapperAs:u,autoFocus:d}=t,{layoutProps:p,renderCurrentView:m}=Dp(W({},r,{props:t,autoFocusView:d??!1,additionalViewProps:{},wrapperVariant:u})),y=(a==null?void 0:a.layout)??hh;return{renderPicker:()=>{var f,v,S;return b.jsx(Za,{localeText:o,children:b.jsx(y,W({},p,i==null?void 0:i.layout,{slots:a,slotProps:i,sx:[...Array.isArray(c)?c:[c],...Array.isArray((f=i==null?void 0:i.layout)==null?void 0:f.sx)?i.layout.sx:[(v=i==null?void 0:i.layout)==null?void 0:v.sx]],className:ae(l,(S=i==null?void 0:i.layout)==null?void 0:S.className),ref:n,children:m()}))})}}},Ns=x.forwardRef(function(t,n){var c;const r=Au(t,"MuiStaticDatePicker"),o=r.displayStaticWrapperAs??"mobile",a=W({day:br,month:br,year:br},r.viewRenderers),i=W({},r,{viewRenderers:a,displayStaticWrapperAs:o,yearsPerRow:r.yearsPerRow??(o==="mobile"?3:4),slotProps:W({},r.slotProps,{toolbar:W({hidden:o==="desktop"},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=mh({props:i,valueManager:lt,valueType:"date",validator:Hr,ref:n});return l()});Ns.propTypes={autoFocus:s.bool,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayStaticWrapperAs:s.oneOf(["desktop","mobile"]),displayWeekNumber:s.bool,fixedWeekNumber:s.number,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const gh=({anchorEl:e,onClose:t,onDateSelect:n})=>b.jsx(Y.Popover,{open:!!e,anchorEl:e,onClose:t,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:b.jsx(Ns,{displayStaticWrapperAs:"desktop",value:null,onChange:n})}),As=De(b.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn"),An=De(b.jsx("path",{fillRule:"evenodd",d:"m9 17 3-2.94c-.39-.04-.68-.06-1-.06-2.67 0-8 1.34-8 4v2h9zm2-5c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m4.47 8.5L12 17l1.4-1.41 2.07 2.08 5.13-5.17 1.4 1.41z"}),"HowToReg"),no=De(b.jsx("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"}),"Repeat"),yh=({courseCode:e,courseColor:t,requiresRegistration:n,recurring:r,theme:o})=>b.jsxs(Y.Box,{sx:{display:"flex",alignItems:"center",height:"100%",minHeight:18,position:"relative",gap:.5,px:.5,backgroundColor:`${t}30`,border:`1px solid ${t}50`,borderLeft:`3px solid ${t}`,boxShadow:`0 0 0 1px ${o.palette.background.paper}, 0 1px 2px ${o.palette.action.hover}`,"&:hover":{backgroundColor:`${t}40`,boxShadow:`0 0 0 1px ${o.palette.background.paper}, 0 2px 4px ${o.palette.action.hover}`,zIndex:1}},children:[b.jsx(Y.Typography,{variant:"caption",sx:{color:o.palette.text.primary,fontWeight:600,fontSize:"0.7rem",lineHeight:1},noWrap:!0,children:e}),(n||r)&&b.jsxs(Y.Box,{sx:{display:"flex",gap:.25,ml:"auto"},children:[n&&b.jsx(An,{sx:{fontSize:10,color:o.palette.warning.main}}),r&&b.jsx(no,{sx:{fontSize:10,color:t}})]})]}),bh=({eventInfo:e,courseCode:t,type:n,courseColor:r,requiresRegistration:o,recurring:a,eventTypeIcons:i,theme:l})=>{const c=new Date(e.event.start).getTime(),p=(new Date(e.event.end).getTime()-c)/(1e3*60),m=(y,g)=>{switch(y){case"lecture":return`linear-gradient(45deg, ${g}20, ${g}30)`;case"exercise":return`linear-gradient(135deg, ${g}20, ${g}30)`;case"exam":return`linear-gradient(90deg, ${g}30, ${g}40)`;case"deadline":return`linear-gradient(180deg, ${g}20, ${g}30)`;default:return`linear-gradient(90deg, ${g}20, ${g}25)`}};return p<30?b.jsxs(Y.Box,{sx:{display:"flex",alignItems:"center",height:"100%",minHeight:18,position:"relative",gap:.5,px:.5,background:m(n,r),border:`1px solid ${r}50`,borderLeft:`3px solid ${r}`,boxShadow:`0 0 0 1px ${l.palette.background.paper}, 0 1px 2px ${l.palette.action.hover}`,"&:hover":{background:m(n,r).replace(/[0-9]+/g,y=>(Number(y)+10).toString()),boxShadow:`0 0 0 1px ${l.palette.background.paper}, 0 2px 4px ${l.palette.action.hover}`,zIndex:1}},children:[b.jsx(Y.Typography,{variant:"caption",sx:{color:l.palette.text.primary,fontWeight:600,fontSize:"0.7rem",lineHeight:1},noWrap:!0,children:t}),(o||a)&&b.jsxs(Y.Box,{sx:{display:"flex",gap:.25,ml:"auto"},children:[o&&b.jsx(An,{sx:{fontSize:10,color:l.palette.warning.main}}),a&&b.jsx(no,{sx:{fontSize:10,color:r}})]})]}):b.jsxs(Y.Box,{sx:{display:"flex",alignItems:"flex-start",p:.75,height:"100%",position:"relative",gap:.5,background:m(n,r),border:`1px solid ${r}50`,borderLeft:`3px solid ${r}`,boxShadow:`0 0 0 1px ${l.palette.background.paper}, 0 1px 2px ${l.palette.action.hover}`,"&:hover":{background:m(n,r).replace(/[0-9]+/g,y=>(Number(y)+10).toString()),boxShadow:`0 0 0 1px ${l.palette.background.paper}, 0 2px 4px ${l.palette.action.hover}`,zIndex:1}},children:[b.jsx(Y.Box,{component:"img",src:i[n],alt:n,sx:{width:14,height:14,filter:`drop-shadow(0 0 1px ${r})`,flexShrink:0,mt:.25}}),b.jsxs(Y.Box,{sx:{minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:.25},children:[b.jsx(Y.Typography,{variant:"caption",sx:{color:r,fontWeight:600,lineHeight:1},noWrap:!0,children:t}),b.jsx(Y.Typography,{variant:"caption",sx:{lineHeight:1,color:l.palette.text.primary,fontWeight:500,fontSize:p<45?"0.7rem":"inherit"},noWrap:!0,children:e.event.title}),p>=45&&b.jsx(Y.Typography,{variant:"caption",sx:{lineHeight:1,color:l.palette.text.secondary,fontSize:"0.7rem"},noWrap:!0,children:e.timeText})]})]})},vh=({eventInfo:e,courseCode:t,type:n,courseColor:r,location:o,requiresRegistration:a,recurring:i,eventTypeIcons:l,theme:c})=>{const u=new Date(e.event.start).getTime(),m=(new Date(e.event.end).getTime()-u)/(1e3*60),y=(g,f)=>{switch(g){case"lecture":return`linear-gradient(45deg, ${f}20, ${f}30)`;case"exercise":return`linear-gradient(135deg, ${f}20, ${f}30)`;case"exam":return`linear-gradient(90deg, ${f}30, ${f}40)`;case"deadline":return`linear-gradient(180deg, ${f}20, ${f}30)`;default:return`linear-gradient(90deg, ${f}20, ${f}25)`}};return m<30?b.jsx(yh,{eventInfo:e,courseCode:t,type:n,courseColor:r,requiresRegistration:a,recurring:i,eventTypeIcons:l,theme:c}):b.jsxs(Y.Box,{sx:{display:"flex",flexDirection:"column",p:m<45?.75:1,height:"100%",position:"relative",gap:.5,background:y(n,r),border:`1px solid ${r}50`,borderLeft:`3px solid ${r}`,boxShadow:`0 0 0 1px ${c.palette.background.paper}, 0 1px 2px ${c.palette.action.hover}`,"&:hover":{background:y(n,r).replace(/[0-9]+/g,g=>(Number(g)+10).toString()),boxShadow:`0 0 0 1px ${c.palette.background.paper}, 0 2px 4px ${c.palette.action.hover}`,zIndex:1}},children:[b.jsx(Y.Box,{sx:{display:"flex",alignItems:"flex-start",gap:m<45?.5:.75},children:b.jsxs(Y.Box,{sx:{minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:.25},children:[b.jsxs(Y.Typography,{variant:"caption",sx:{color:r,fontWeight:600,lineHeight:1,fontSize:m<45?"0.7rem":"0.75rem"},noWrap:!0,children:[t," • ",n]}),b.jsx(Y.Typography,{variant:m<45?"caption":"body2",sx:{lineHeight:1.2,color:c.palette.text.primary,fontWeight:500},noWrap:!0,children:e.event.title}),m>=45&&b.jsx(Y.Typography,{variant:"caption",sx:{lineHeight:1,color:c.palette.text.secondary},noWrap:!0,children:e.timeText})]})}),m>=60&&o&&b.jsxs(Y.Box,{sx:{display:"flex",alignItems:"center",gap:.5,mt:"auto"},children:[b.jsx(As,{sx:{fontSize:14,color:r}}),b.jsx(Y.Typography,{variant:"caption",sx:{color:c.palette.text.secondary},noWrap:!0,children:o})]})]})},xh=De(b.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"),Ch=De(b.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),Sh=({description:e,location:t,courseColor:n,maxParticipants:r,requiresRegistration:o,teachers:a,type:i,recurring:l,onAddToCalendar:c,onRegister:u,theme:d})=>b.jsxs(Y.Stack,{spacing:2,children:[e&&b.jsxs(Y.Box,{children:[b.jsx(Y.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Description"}),b.jsx(Y.Typography,{variant:"body2",sx:{backgroundColor:`${n}08`,p:1.5,borderRadius:1,border:`1px solid ${n}20`},children:e})]}),t&&b.jsxs(Y.Box,{children:[b.jsx(Y.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Location"}),b.jsxs(Y.Box,{sx:{p:1.5,backgroundColor:`${n}08`,borderRadius:1,border:`1px solid ${n}20`,display:"flex",alignItems:"center",gap:1},children:[b.jsx(As,{sx:{color:n}}),b.jsx(Y.Typography,{variant:"body2",children:t})]})]}),(r||o)&&b.jsxs(Y.Box,{sx:{p:1.5,backgroundColor:d.palette.warning.light+"20",borderRadius:1,border:`1px solid ${d.palette.warning.light}40`},children:[b.jsx(Y.Typography,{variant:"subtitle2",gutterBottom:!0,color:"warning.dark",children:"Registration Details"}),b.jsxs(Y.Stack,{spacing:1,children:[r&&b.jsxs(Y.Typography,{variant:"body2",sx:{display:"flex",alignItems:"center",gap:1},children:[b.jsx(xh,{fontSize:"small"}),"Available spots: ",r]}),o&&b.jsxs(Y.Typography,{variant:"body2",sx:{display:"flex",alignItems:"center",gap:1,color:d.palette.warning.dark},children:[b.jsx(An,{fontSize:"small"}),"Registration required"]})]})]}),b.jsxs(Y.Box,{children:[b.jsx(Y.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Event Details"}),b.jsxs(Y.Stack,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:[b.jsx(Y.Chip,{label:i,size:"small",variant:"outlined",sx:{borderColor:n,color:n}}),l&&b.jsx(Y.Chip,{icon:b.jsx(no,{}),label:"Recurring",size:"small",variant:"outlined",sx:{borderColor:n,color:n}})]})]}),a&&a.length>0&&b.jsxs(Y.Box,{children:[b.jsx(Y.Typography,{variant:"subtitle2",gutterBottom:!0,children:"Teachers"}),b.jsx(Y.Stack,{direction:"row",spacing:1,flexWrap:"wrap",useFlexGap:!0,children:a.map((p,m)=>b.jsx(Y.Chip,{label:p.name,size:"small",variant:"outlined",sx:{borderColor:`${n}40`,"&:hover":{borderColor:n}}},m))})]}),b.jsx(Y.Divider,{}),b.jsxs(Y.Stack,{direction:"row",spacing:1,justifyContent:"flex-end",children:[b.jsx(Y.Button,{size:"small",startIcon:b.jsx(Ch,{}),onClick:c,variant:"outlined",sx:{borderColor:`${n}60`,color:n,"&:hover":{borderColor:n,backgroundColor:`${n}10`}},children:"Add to Calendar"}),o&&b.jsx(Y.Button,{size:"small",startIcon:b.jsx(An,{}),onClick:u,variant:"contained",sx:{backgroundColor:n,"&:hover":{backgroundColor:`${n}dd`}},children:"Register"})]})]}),wh=({open:e,anchorEl:t,onClose:n,eventInfo:r,courseColor:o,type:a,eventTypeIcons:i,courseTitle:l,courseCode:c,description:u,location:d,maxParticipants:p,requiresRegistration:m,teachers:y,recurring:g,theme:f})=>{const v=T=>{T.stopPropagation()},S=T=>{T.stopPropagation()};return b.jsx(Y.Popover,{open:e,anchorEl:t,onClose:n,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},TransitionComponent:Y.Fade,TransitionProps:{timeout:150},sx:{"& .MuiPopover-paper":{overflow:"visible",mt:1,"&:before":{content:'""',display:"block",position:"absolute",top:"50%",left:-6,width:12,height:12,bgcolor:"background.paper",transform:"rotate(45deg) translateY(-50%)",zIndex:0,borderLeft:`1px solid ${f.palette.divider}`,borderBottom:`1px solid ${f.palette.divider}`}}},children:b.jsx(Y.Paper,{elevation:4,sx:{width:{xs:"90vw",sm:400},maxWidth:400,position:"relative",overflow:"hidden",borderLeft:`4px solid ${o}`},children:b.jsxs(Y.Stack,{spacing:2,sx:{p:2},children:[b.jsxs(Y.Box,{sx:{display:"flex",gap:1.5},children:[b.jsx(Y.Box,{component:"img",src:i[a],alt:a,sx:{width:32,height:32,filter:`drop-shadow(0 0 1px ${o})`,mt:.5}}),b.jsxs(Y.Box,{sx:{flex:1},children:[b.jsx(Y.Typography,{variant:"h6",sx:{lineHeight:1.2,mb:.5},children:r.event.title}),b.jsxs(Y.Typography,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:[l," (",c,")"]}),b.jsx(Y.Typography,{variant:"body2",color:"text.secondary",children:r.timeText})]})]}),b.jsx(Y.Divider,{}),b.jsx(Sh,{description:u,location:d,courseColor:o,maxParticipants:p,requiresRegistration:m,teachers:y,type:a,recurring:g,onAddToCalendar:v,onRegister:S,theme:f})]})})})},pa={lecture:"/static/images/icons/brain.svg",exercise:"/static/images/icons/weight.svg",exam:"/static/images/icons/code.svg",deadline:"/static/images/icons/dna.svg",other:"/static/images/icons/atom.svg",meeting:"/static/images/icons/brain.svg",maintenance:"/static/images/icons/weight.svg"},Eh=({eventInfo:e})=>{var O,D;const t=Y.useTheme(),n=Y.useMediaQuery(t.breakpoints.down("sm")),[r,o]=oe.useState(null),a=e.event.extendedProps.courseCode||"",i=e.event.extendedProps.type,l=e.event.backgroundColor||t.palette.primary.main,{courseTitle:c,description:u,location:d,teachers:p,maxParticipants:m,requiresRegistration:y,recurring:g}=e.event.extendedProps,f=oe.useCallback(M=>{M.stopPropagation(),o(M.currentTarget)},[]),v=oe.useCallback(()=>{o(null)},[]),S={eventInfo:e,courseCode:a,type:i,courseColor:l,location:d,requiresRegistration:y,recurring:g,eventTypeIcons:pa,theme:t,courseTitle:c,maxParticipants:m},T=Number(((O=e.el)==null?void 0:O.style.getPropertyValue("--event-group-index"))||"0"),k=Number(((D=e.el)==null?void 0:D.style.getPropertyValue("--event-group-size"))||"1"),w=(M,V)=>V<=1?1:M%2===0?2:0;return b.jsxs(b.Fragment,{children:[b.jsx(Y.Box,{onClick:f,sx:{height:"100%",transition:"all 0.2s ease-in-out",position:"relative",overflow:"hidden",cursor:"pointer",m:"1px",ml:T>0?`${T*4}px`:"1px",width:k>1?`calc(100% - ${T*4}px)`:"auto",zIndex:w(T,k),"&:hover":{transform:"scale(1.01)",zIndex:10}},children:n?b.jsx(bh,{...S}):b.jsx(vh,{...S})}),b.jsx(wh,{open:!!r,anchorEl:r,onClose:v,eventInfo:e,courseColor:l,type:i,eventTypeIcons:pa,courseTitle:c,courseCode:a,description:u,location:d,maxParticipants:m,requiresRegistration:y,teachers:p,recurring:g,theme:t})]})},Th=({calendarRef:e,calendarView:t,events:n,onDatesSet:r,eventDidMount:o,showAllDaySlot:a,onMouseDown:i,onMouseMove:l,onMouseUp:c,onMouseLeave:u,density:d="comfortable"})=>{const p=Y.useTheme(),m=f=>{const v=f.view.calendar.getEvents().filter(k=>{var w,O,D,M;return((w=k.start)==null?void 0:w.getTime())===((O=f.event.start)==null?void 0:O.getTime())&&((D=k.end)==null?void 0:D.getTime())===((M=f.event.end)==null?void 0:M.getTime())&&k.allDay===f.event.allDay});v.sort((k,w)=>{const O=k.extendedProps.courseCode||"",D=w.extendedProps.courseCode||"";return O===D?v.indexOf(k)-v.indexOf(w):O.localeCompare(D)});const S=v.length,T=v.findIndex(k=>k.id===f.event.id);f.el.style.setProperty("--event-group-index",JSON.stringify(T)),f.el.style.setProperty("--event-group-size",JSON.stringify(S)),f.el.style.pointerEvents="all",o&&o(f)},g={compact:{margin:"0 !important",slotHeight:"2.5rem !important",minEventHeight:18,spacing:1},comfortable:{margin:"0 !important",slotHeight:"3rem !important",minEventHeight:20,spacing:2},spacious:{margin:"0 !important",slotHeight:"3.5rem !important",minEventHeight:24,spacing:3}}[d];return b.jsx(Y.Box,{onMouseDown:i,onMouseMove:l,onMouseUp:c,onMouseLeave:u,sx:{flex:1,minHeight:0,overflow:"hidden","& ::-webkit-scrollbar":{width:"8px",height:"8px"},"& ::-webkit-scrollbar-track":{background:p.palette.background.default},"& ::-webkit-scrollbar-thumb":{backgroundColor:p.palette.divider,borderRadius:"4px","&:hover":{backgroundColor:p.palette.action.hover}},"& .fc-scroller-liquid-absolute":{cursor:"grab","&:active":{cursor:"grabbing"}},".fc-timegrid-event-harness":{margin:g.margin,pointerEvents:"all !important","&:not(:first-of-type)":{borderTop:`2px solid ${p.palette.background.paper}`,marginTop:`-${2+g.spacing}px !important`,paddingTop:`${g.spacing}px !important`,"&::before":{content:'""',position:"absolute",top:-1,left:0,right:0,height:2,background:p.palette.background.paper,zIndex:1}},"&:hover":{zIndex:"5 !important","& + .fc-timegrid-event-harness":{zIndex:"4 !important"}}},".fc-timegrid-event":{margin:"0 !important",padding:"0 !important",background:"none !important",borderRadius:"0 !important",border:"none !important"},".fc-event":{background:"none !important",border:"none !important"},".fc-timegrid-col":{borderRight:`1px solid ${p.palette.divider}40 !important`},".fc-timegrid-slot":{height:g.slotHeight,borderColor:`${p.palette.divider}30 !important`,"&:nth-of-type(4n+1)":{borderTop:`2px solid ${p.palette.divider}50 !important`},"&:nth-of-type(2n)":{backgroundColor:`${p.palette.action.hover}05`}},".fc-timegrid-slot-minor":{borderColor:`${p.palette.divider}20 !important`},".fc-day-sun, .fc-day-sat":{backgroundColor:`${p.palette.action.hover}15 !important`},".fc-day-today":{backgroundColor:`${p.palette.primary.main}08 !important`,borderLeft:`2px solid ${p.palette.primary.main}40 !important`,borderRight:`2px solid ${p.palette.primary.main}40 !important`},".fc-col-header-cell":{padding:"8px 4px",backgroundColor:p.palette.background.default,borderBottom:`2px solid ${p.palette.divider} !important`,"&.fc-day-today":{backgroundColor:`${p.palette.primary.main}15 !important`,fontWeight:600}},".fc-timegrid-col-bg":{background:`repeating-linear-gradient(
|
|
208
|
+
to bottom,
|
|
209
|
+
${p.palette.background.paper},
|
|
210
|
+
${p.palette.background.paper} 3rem,
|
|
211
|
+
${p.palette.action.hover}10 3rem,
|
|
212
|
+
${p.palette.action.hover}10 6rem
|
|
213
|
+
)`},".fc-timegrid-axis":{borderRight:`2px solid ${p.palette.divider}`,"& .fc-timegrid-axis-cushion":{padding:"4px 8px",fontSize:"0.75rem",color:p.palette.text.secondary}},".fc-timegrid-now-indicator-line":{borderColor:p.palette.error.main,borderStyle:"dashed",opacity:.7,zIndex:3},".fc-timegrid-now-indicator-arrow":{borderColor:p.palette.error.main,opacity:.7},".fc .fc-day-today":{backgroundColor:p.palette.background.default+" !important"},".fc-timegrid-event-harness-inset .fc-timegrid-event, .fc-timegrid-event.fc-event-mirror, .fc-timegrid-more-link, .fc-timegrid-slot-lane, .fc-timegrid-slot-lane-frame":{border:"none !important",boxShadow:"none !important",font:p.typography.body2.fontFamily},"fc-event-main-frame":{backgroundColor:"white !important"},".fc-theme-standard td, .fc-theme-standard th":{border:"none !important"},".fc .fc-col-header-cell .fc-day .fc-day-mon .fc-day-past .fc-daygrid-day-frame, .fc .fc-daygrid-day-top, .fc .fc-daygrid-day-bg, .fc .fc-scrollgrid-liquid":{border:"none !important"},td:{border:"none !important",padding:0},".fc .fc-daygrid-body tbody tr:hover > td":{backgroundColor:p.palette.action.hover+" !important"},".fc-daygrid-row:hover":{"& .fc-daygrid-day":{backgroundColor:p.palette.action.hover+" !important"}},".fc-timegrid-slot-lane:hover":{backgroundColor:p.palette.action.hover+" !important"},".fc-daygrid-day:hover":{backgroundColor:p.palette.action.hover+" !important"}},children:b.jsx(Xs,{ref:e,plugins:[Js,Qs,Zs],initialView:t,events:n,eventDidMount:m,height:"100%",headerToolbar:!1,eventContent:f=>b.jsx(Eh,{eventInfo:f}),datesSet:r,editable:!1,selectable:!1,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",expandRows:!0,handleWindowResize:!0,allDaySlot:a,slotEventOverlap:!1,eventMinHeight:g.minEventHeight,eventOrder:"start,-duration,allDay,title",forceEventDuration:!0,nowIndicator:!0,slotDuration:"00:30:00",slotLabelInterval:{hours:1},slotLabelFormat:{hour:"numeric",minute:"2-digit",omitZeroMinute:!0,hour12:!1}},JSON.stringify(n))})};var vn={exports:{}},vr={},xn={exports:{}},xr={};/**
|
|
214
|
+
* @license React
|
|
215
|
+
* use-sync-external-store-shim.production.js
|
|
216
|
+
*
|
|
217
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the MIT license found in the
|
|
220
|
+
* LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/var ha;function Oh(){if(ha)return xr;ha=1;var e=oe;function t(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function l(p,m){var y=m(),g=r({inst:{value:y,getSnapshot:m}}),f=g[0].inst,v=g[1];return a(function(){f.value=y,f.getSnapshot=m,c(f)&&v({inst:f})},[p,y,m]),o(function(){return c(f)&&v({inst:f}),p(function(){c(f)&&v({inst:f})})},[p]),i(y),y}function c(p){var m=p.getSnapshot;p=p.value;try{var y=m();return!n(p,y)}catch{return!0}}function u(p,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return xr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,xr}var Cr={};/**
|
|
222
|
+
* @license React
|
|
223
|
+
* use-sync-external-store-shim.development.js
|
|
224
|
+
*
|
|
225
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the MIT license found in the
|
|
228
|
+
* LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/var ma;function Dh(){return ma||(ma=1,process.env.NODE_ENV!=="production"&&function(){function e(y,g){return y===g&&(y!==0||1/y===1/g)||y!==y&&g!==g}function t(y,g){d||o.startTransition===void 0||(d=!0,console.error("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 f=g();if(!p){var v=g();a(f,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}v=i({inst:{value:f,getSnapshot:g}});var S=v[0].inst,T=v[1];return c(function(){S.value=f,S.getSnapshot=g,n(S)&&T({inst:S})},[y,f,g]),l(function(){return n(S)&&T({inst:S}),y(function(){n(S)&&T({inst:S})})},[y]),u(f),f}function n(y){var g=y.getSnapshot;y=y.value;try{var f=g();return!a(y,f)}catch{return!0}}function r(y,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=oe,a=typeof Object.is=="function"?Object.is:e,i=o.useState,l=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,d=!1,p=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Cr.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Cr}var ga;function _s(){return ga||(ga=1,process.env.NODE_ENV==="production"?xn.exports=Oh():xn.exports=Dh()),xn.exports}/**
|
|
230
|
+
* @license React
|
|
231
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
232
|
+
*
|
|
233
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
234
|
+
*
|
|
235
|
+
* This source code is licensed under the MIT license found in the
|
|
236
|
+
* LICENSE file in the root directory of this source tree.
|
|
237
|
+
*/var ya;function kh(){if(ya)return vr;ya=1;var e=oe,t=_s();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,a=e.useRef,i=e.useEffect,l=e.useMemo,c=e.useDebugValue;return vr.useSyncExternalStoreWithSelector=function(u,d,p,m,y){var g=a(null);if(g.current===null){var f={hasValue:!1,value:null};g.current=f}else f=g.current;g=l(function(){function S(D){if(!T){if(T=!0,k=D,D=m(D),y!==void 0&&f.hasValue){var M=f.value;if(y(M,D))return w=M}return w=D}if(M=w,r(k,D))return M;var V=m(D);return y!==void 0&&y(M,V)?(k=D,M):(k=D,w=V)}var T=!1,k,w,O=p===void 0?null:p;return[function(){return S(d())},O===null?void 0:function(){return S(O())}]},[d,p,m,y]);var v=o(u,g[0],g[1]);return i(function(){f.hasValue=!0,f.value=v},[v]),c(v),v},vr}var Sr={};/**
|
|
238
|
+
* @license React
|
|
239
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
240
|
+
*
|
|
241
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
242
|
+
*
|
|
243
|
+
* This source code is licensed under the MIT license found in the
|
|
244
|
+
* LICENSE file in the root directory of this source tree.
|
|
245
|
+
*/var ba;function Rh(){return ba||(ba=1,process.env.NODE_ENV!=="production"&&function(){function e(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=oe,n=_s(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,a=t.useRef,i=t.useEffect,l=t.useMemo,c=t.useDebugValue;Sr.useSyncExternalStoreWithSelector=function(u,d,p,m,y){var g=a(null);if(g.current===null){var f={hasValue:!1,value:null};g.current=f}else f=g.current;g=l(function(){function S(D){if(!T){if(T=!0,k=D,D=m(D),y!==void 0&&f.hasValue){var M=f.value;if(y(M,D))return w=M}return w=D}if(M=w,r(k,D))return M;var V=m(D);return y!==void 0&&y(M,V)?(k=D,M):(k=D,w=V)}var T=!1,k,w,O=p===void 0?null:p;return[function(){return S(d())},O===null?void 0:function(){return S(O())}]},[d,p,m,y]);var v=o(u,g[0],g[1]);return i(function(){f.hasValue=!0,f.value=v},[v]),c(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Sr}var va;function Mh(){return va||(va=1,process.env.NODE_ENV==="production"?vn.exports=kh():vn.exports=Rh()),vn.exports}var Ph=Mh();const $h=wa(Ph),Ih={},xa=e=>{let t;const n=new Set,r=(d,p)=>{const m=typeof d=="function"?d(t):d;if(!Object.is(m,t)){const y=t;t=p??(typeof m!="object"||m===null)?m:Object.assign({},t,m),n.forEach(g=>g(t,y))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(Ih?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,c);return c},Nh=e=>e?xa(e):xa,{useDebugValue:Ah}=oe,{useSyncExternalStoreWithSelector:_h}=$h,jh=e=>e;function Vh(e,t=jh,n){const r=_h(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Ah(r),r}const Ca=(e,t)=>{const n=Nh(e),r=(o,a=t)=>Vh(n,o,a);return Object.assign(r,n),r},Lh=(e,t)=>e?Ca(e,t):Ca,wr={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Nr=new Map,Cn=e=>{const t=Nr.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},Bh=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=Nr.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return Nr.set(n.name,o),{type:"tracked",store:e,...o}},zh=(e,t={})=>(n,r,o)=>{const{enabled:a,anonymousActionType:i,store:l,...c}=t;let u;try{u=(a??(wr?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return(wr?"production":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:d,...p}=Bh(l,u,c);let m=!0;o.setState=(f,v,S)=>{const T=n(f,v);if(!m)return T;const k=S===void 0?{type:i||"anonymous"}:typeof S=="string"?{type:S}:S;return l===void 0?(d==null||d.send(k,r()),T):(d==null||d.send({...k,type:`${l}/${k.type}`},{...Cn(c.name),[l]:o.getState()}),T)};const y=(...f)=>{const v=m;m=!1,n(...f),m=v},g=e(o.setState,r,o);if(p.type==="untracked"?d==null||d.init(g):(p.stores[p.store]=o,d==null||d.init(Object.fromEntries(Object.entries(p.stores).map(([f,v])=>[f,f===p.store?g:v.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let f=!1;const v=o.dispatch;o.dispatch=(...S)=>{(wr?"production":void 0)!=="production"&&S[0].type==="__setState"&&!f&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),f=!0),v(...S)}}return d.subscribe(f=>{var v;switch(f.type){case"ACTION":if(typeof f.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Er(f.payload,S=>{if(S.type==="__setState"){if(l===void 0){y(S.state);return}Object.keys(S.state).length!==1&&console.error(`
|
|
246
|
+
[zustand devtools middleware] Unsupported __setState action format.
|
|
247
|
+
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
|
248
|
+
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
249
|
+
`);const T=S.state[l];if(T==null)return;JSON.stringify(o.getState())!==JSON.stringify(T)&&y(T);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(S)});case"DISPATCH":switch(f.payload.type){case"RESET":return y(g),l===void 0?d==null?void 0:d.init(o.getState()):d==null?void 0:d.init(Cn(c.name));case"COMMIT":if(l===void 0){d==null||d.init(o.getState());return}return d==null?void 0:d.init(Cn(c.name));case"ROLLBACK":return Er(f.state,S=>{if(l===void 0){y(S),d==null||d.init(o.getState());return}y(S[l]),d==null||d.init(Cn(c.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Er(f.state,S=>{if(l===void 0){y(S);return}JSON.stringify(o.getState())!==JSON.stringify(S[l])&&y(S[l])});case"IMPORT_STATE":{const{nextLiftedState:S}=f.payload,T=(v=S.computedStates.slice(-1)[0])==null?void 0:v.state;if(!T)return;y(l===void 0?T:T[l]),d==null||d.send(null,S);return}case"PAUSE_RECORDING":return m=!m}return}}),g},Fh=zh,Er=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},js=Lh()(Fh((e,t)=>({events:[],isLoading:!1,error:null,setEvents:n=>e({events:n}),addEvent:n=>e(r=>({events:[...r.events,n]})),updateEvent:(n,r)=>e(o=>({events:o.events.map(a=>a.id===n?{...a,...r}:a)})),removeEvent:n=>e(r=>({events:r.events.filter(o=>o.id!==n)})),clearEvents:()=>e({events:[]}),setLoading:n=>e({isLoading:n}),setError:n=>e({error:n}),getEventsForDateRange:(n,r)=>{const{events:o}=t();return o.filter(a=>{const i=new Date(a.start),l=a.end?new Date(a.end):i;return i<=r&&l>=n})}}),{name:"calendar-store"})),Wh=e=>{const t=e.replace("#",""),n=parseInt(t.substr(0,2),16),r=parseInt(t.substr(2,2),16),o=parseInt(t.substr(4,2),16);return(.299*n+.587*r+.114*o)/255>.5?"black":"white"},En=()=>{const{events:e}=js(),t=Y.useTheme(),n=Y.useMediaQuery(t.breakpoints.down("sm")),r=Y.useMediaQuery(t.breakpoints.between("sm","md")),o=n?"compact":r?"comfortable":"spacious",a=oe.useRef(null),i=oe.useRef(null),[l,c]=oe.useState("dayGridMonth"),[u,d]=oe.useState(!1),[p,m]=oe.useState(""),[y,g]=oe.useState(null),[f]=oe.useState(!1),[v,S]=oe.useState(!1),T=oe.useRef({x:0,scrollLeft:0}),k=oe.useRef(null);oe.useLayoutEffect(()=>{},[300,200]),oe.useLayoutEffect(()=>{if(!a.current||u)return;const L=ee=>{for(let N of ee){const C=N.contentRect.width,j=C>=1e3?"dayGridMonth":C>=600?"timeGridWeek":"timeGridDay";j!==l&&c(j)}},J=new ResizeObserver(L);return J.observe(a.current),()=>J.disconnect()},[u,l]),oe.useLayoutEffect(()=>{if(i.current){const L=i.current.getApi();requestAnimationFrame(()=>{L.changeView(l)})}},[l]),oe.useEffect(()=>{if(a.current){const L=a.current.querySelector(".fc-scroller");L&&(L.style.overflow="auto",k.current=L)}},[l]);const D=()=>{i.current&&i.current.getApi().prev()},M=()=>{i.current&&i.current.getApi().next()},V=()=>{i.current&&i.current.getApi().today()},B=L=>{c(L),d(!0),i.current&&i.current.getApi().changeView(L)},U=L=>{m(L.view.title)},_=oe.useCallback(L=>{const J=L.event.backgroundColor||L.event.extendedProps.backgroundColor,ee=L.event.borderColor||L.event.extendedProps.borderColor,N=L.event.textColor||L.event.extendedProps.textColor;J&&(L.el.style.backgroundColor=J),ee&&(L.el.style.borderColor=ee),N&&(L.el.style.color=N)},[]),h=oe.useCallback(L=>{k.current&&(S(!0),T.current={x:L.pageX,scrollLeft:k.current.scrollLeft})},[]),P=oe.useCallback(L=>{if(!v||!k.current)return;L.preventDefault();const J=L.pageX-T.current.x;k.current.scrollLeft=T.current.scrollLeft-J},[v]),E=oe.useCallback(()=>S(!1),[]),R=oe.useCallback(()=>S(!1),[]),$=L=>{L&&i.current&&i.current.getApi().gotoDate(L.toJSDate()),g(null)};return b.jsxs(Y.Box,{ref:a,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",color:t.palette.text.primary,padding:t.spacing(2),boxShadow:t.shadows[2],"& .fc-timegrid-event":{margin:"1px 0",padding:"1px"},"& .fc-daygrid-event":{margin:"1px 2px"},"& .fc td":{border:`1px solid ${t.palette.divider}`},"& .fc-timegrid-col-events":{margin:"0 2px"},"& .fc-event":{borderRadius:"4px"},"& .fc-event-main":{padding:0},"& .fc-event-title":{padding:"0 1px"},"& .fc-scrollgrid":{borderColor:t.palette.divider},"& .fc-col-header-cell":{borderColor:t.palette.divider},"& .fc-day:nth-of-type(even)":{backgroundColor:t.palette.background.default}},children:[b.jsx(Kc,{onPrev:D,onToday:V,onNext:M,onDatePickerOpen:L=>g(L.currentTarget),calendarView:l,onViewChange:B,currentTitle:p}),b.jsx(gh,{anchorEl:y,onClose:()=>g(null),onDateSelect:$}),b.jsx(Th,{calendarRef:i,calendarView:l,events:e,onDatesSet:U,eventDidMount:_,showAllDaySlot:f,onMouseDown:h,onMouseMove:P,onMouseUp:E,onMouseLeave:R,density:o})]})},Vs=()=>{const{registerGridItem:e,unregisterGridItem:t}=Pt.useGridItemContext();return oe.useEffect(()=>(Pt.registerMicroservice("calendar",En,{name:"Calendar",description:"Shows events and deadlines in a calendar view",category:"planning",iconComponent:Mn,metadata:{route:{path:"calendar",element:b.jsx(En,{})}}}),()=>{Pt.unregisterMicroservice("calendar")}),[]),oe.useEffect(()=>{const n=Pt.createGridItem({id:"calendar",x:0,y:0,w:15,h:2,minW:1,minH:1,maxW:15,maxH:15});return e("calendar",b.jsx(En,{}),n),()=>{t("calendar")}},[e,t]),null},Sa={"COMP.CS":{baseColor:"#2196f3",levelShades:{basic:"#90caf9",intermediate:"#2196f3",advanced:"#1565c0"}},MATH:{baseColor:"#4caf50",levelShades:{basic:"#a5d6a7",intermediate:"#4caf50",advanced:"#2e7d32"}},PHYS:{baseColor:"#f44336",levelShades:{basic:"#ef9a9a",intermediate:"#f44336",advanced:"#c62828"}},BIO:{baseColor:"#9c27b0",levelShades:{basic:"#ce93d8",intermediate:"#9c27b0",advanced:"#6a1b9a"}},CHEM:{baseColor:"#ff9800",levelShades:{basic:"#ffb74d",intermediate:"#ff9800",advanced:"#ef6c00"}},LANG:{baseColor:"#795548",levelShades:{basic:"#a1887f",intermediate:"#795548",advanced:"#4e342e"}}},Ls=()=>{const{setEvents:e,clearEvents:t}=js();return oe.useEffect(()=>Pt.eventBus.subscribe(r=>{if(r.length>0){const o=r.map(a=>{const i=a.metadata||{};let l="#2196f3",c="#1976d2";if(i.source==="courses"&&i.subject&&i.courseLevel){const u=Sa[i.subject]||Sa["COMP.CS"];l=u.levelShades[i.courseLevel]||u.levelShades.basic,c=u.baseColor}return{id:a.id,title:a.title,start:a.start,end:a.end,backgroundColor:l,borderColor:c,textColor:Wh(l),extendedProps:i}});e(o)}else t()}),[e,t]),null},Uh=({children:e})=>b.jsxs(b.Fragment,{children:[b.jsx(Vs,{}),b.jsx(Ls,{}),e]});exports.Calendar=En;exports.CalendarEventAggregator=Ls;exports.CalendarManager=Vs;exports.CalendarMicroservice=Uh;
|